fix(current): 校验 threads 必需列,完善 schema drift 防御
之前仅检查 threads 表存在,如果表存在但列(rollout_path / updated_at_ms 等)
被上游改名,SELECT 会冒泡 SQLiteError 堆栈而不是走 CurrentStateDbError +
CLI 结构化错误分支。
补 PRAGMA table_info(threads) 列检查:用 THREADS_REQUIRED_COLUMNS 常量
列出 SELECT 引用的所有列(id, rollout_path, cwd, title, updated_at_ms),
缺任意一列即抛 CurrentStateDbError 指明缺哪些列。
测试: query.test.ts +1, cli.test.ts +1, 后者额外断言 stdout 不含
"SQLiteError" 锁定结构化 payload 契约。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Entire-Checkpoint: b9987d117979