fix(package): 把 sync-lock.ts 加入 npm tarball
cli.ts 直接 import { SyncLockTimeoutError } from "./sync-lock",但
package.json 的 files 字段一直漏了 sync-lock.ts,导致 npm 装的全局
binary 一启动就报 "Cannot find module './sync-lock'",任何子命令都
无法运行。
实测路径: npm pack && npm i -g --prefix /tmp/test ./cxs-0.1.0.tgz
后跑 cxs --version 直接 exit 1。补 sync-lock.ts 后重测:
- --version / --help OK
- current --state-db <bad> --json 输出结构化 state_db_unavailable
- sync 空目录返回 SyncSummary 全 0
- stats / find 在空索引上正常返回
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Entire-Checkpoint: 7ed6acd590f0