singularity-forge/packages
Mikael Hugo 980772cc90 refactor: migrate from better-sqlite3 to node:sqlite, npm glob to node:fs
Since Node >= 24 is the minimum engine, remove the better-sqlite3 fallback
chain from sf-db.ts, unit-ownership.ts, and cli-stats.ts. Use DatabaseSync
from node:sqlite directly. Also replace the `glob` npm package with built-in
node:fs/promises.glob and node:fs.globSync in pi-coding-agent LSP utils.

- Remove createRequire boilerplate and suppressSqliteWarning helper
- Simplify loadProvider() and openRawDb()
- Net -177 lines of fallback/middleware code

💘 Generated with Crush

Assisted-by: GLM-5.1 via Crush <crush@charm.land>
2026-05-02 06:13:57 +02:00
..
daemon chore: commit current worktree state 2026-05-02 05:11:03 +02:00
mcp-server chore: commit current worktree state 2026-05-02 05:11:03 +02:00
native test: stabilize vitest compatibility 2026-05-02 05:36:57 +02:00
pi-agent-core fix: convert node:test API calls to vitest equivalents 2026-05-02 04:42:38 +02:00
pi-ai test: include vitest test import 2026-05-02 05:38:37 +02:00
pi-coding-agent refactor: migrate from better-sqlite3 to node:sqlite, npm glob to node:fs 2026-05-02 06:13:57 +02:00
pi-tui test: stabilize vitest compatibility 2026-05-02 05:36:57 +02:00
rpc-client fix: convert node:test API calls to vitest equivalents 2026-05-02 04:42:38 +02:00