v1.9.0
Highlights
Domain module split — no breaking changes to CLI, HTTP API, or SDK.
Changed
- Split
src/core/db.ts(2409 lines, 8 domains) into 11 focused modules undersrc/core/db/(schema,session,source,wiki,lint,sync,telemetry,verify,prune-export,recall,mappers). All 32 public exports remain unchanged viasrc/core/db/index.ts. - Split
src/cli.ts(~890 lines, 16 commands) into a thin 50-line Commander registration shell, with each command extracted intosrc/cli/commands/and shared helpers intosrc/cli/shared.ts,runtime.ts,preflight.ts. - Updated AGENTS.md, README.md, and README.zh-TW.md to reflect the new directory structure.
Verification
pnpm run check
pnpm run build && node dist/cli.mjs --help
bash scripts/test-smoke.sh
bash scripts/test-bootstrap.sh
bash scripts/test-no-clone-install.sh