chore: upgrade @ocas/* to ^0.3.0, migrate better-sqlite3 → node:sqlite #30
Reference in New Issue
Block a user
Delete Branch "chore/upgrade-ocas-0.3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Upgrade OCAS dependencies and remove native sqlite dependency.
Why
@ocas 0.3.0 migrated from better-sqlite3 to node:sqlite (Node 22+ built-in). This eliminates the native compilation dependency.
Changes
@ocas/coreand@ocas/fs:^0.2.2→^0.3.0(all 6 packages)agent-hermes/src/session-detail.ts:better-sqlite3→node:sqlite(DatabaseSync)agent-hermes/__tests__/session-detail.test.ts: updated test helpersbetter-sqlite3and@types/better-sqlite3from agent-hermes depsbunreferences in cli test helpers (execFileSync)Test Results
627/627 pass, 1 skipped
Ref
Refs #28
Review — chore: upgrade @ocas/* to ^0.3.0, migrate better-sqlite3 → node:sqlite
✅ All Good
Dependency upgrade — 6 packages
@ocas/core+@ocas/fsfrom^0.2.2→^0.3.0, clean and consistent.better-sqlite3 → node:sqlite migration (
session-detail.ts)Database→DatabaseSync✅{ readonly: true }→{ readOnly: true }✅ (correct node:sqlite API)better-sqlite3+@types/better-sqlite3removed from deps ✅Test helpers updated (
session-detail.test.ts) — same migration pattern, tests mirror source.bun → npx tsx in CLI test helpers — aligns with the pnpm/node toolchain.
Lockfile cleanup — all better-sqlite3 transitive deps (prebuild-install, tar-fs, etc.) properly removed. Much lighter dependency tree.
627/627 tests pass ✅
No issues found. Clean migration.
Reviewed by 小墨