Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 20
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
Expand Down
4 changes: 2 additions & 2 deletions docs/2026-06-19-sqlite-axi-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ compact schema snapshot is a large token win, and read-only access sidesteps all

## Driver

**`better-sqlite3`** (v12, requires Node ≥20). Synchronous API, ships prebuilt binaries.
**`better-sqlite3`** (v13, requires Node ≥22). Synchronous API, ships prebuilt binaries.

Open sequence (gives both clean AXI errors and a hard read-only guarantee):

Expand Down Expand Up @@ -237,6 +237,6 @@ them in a writable temp dir; the tool still opens targets read-only). Cover:

## Package & submission

- `engines.node: ">=20"` (better-sqlite3 floor). `files`: `dist`, `README.md`, `LICENSE`.
- `engines.node: ">=22"` (better-sqlite3 floor). `files`: `dist`, `README.md`, `LICENSE`.
- Runtime deps: `axi-sdk-js`, `better-sqlite3`. MIT license, author SSBrouhard.
- Repo `github.com/SSBrouhard/sqlite-axi`; PR adds one row to the AXI Community catalog.
8 changes: 4 additions & 4 deletions docs/2026-06-19-sqlite-axi-plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

**Architecture:** `better-sqlite3` opened `{ readonly: true }` is the hard read-only layer; a `SELECT`/`EXPLAIN`-only allowlist gives clean errors. Pure modules (discover, resolve, validate, format) feed four pure command transforms; `db.ts` is the only impure boundary. The SDK (`axi-sdk-js`) handles dispatch and TOON; a custom `formatError` maps usage-error codes to exit 2.

**Tech Stack:** TypeScript (ESM, NodeNext), `axi-sdk-js`, `better-sqlite3`, `@toon-format/toon`, vitest. Node ≥20.
**Tech Stack:** TypeScript (ESM, NodeNext), `axi-sdk-js`, `better-sqlite3`, `@toon-format/toon`, vitest. Node ≥22.

---

Expand Down Expand Up @@ -52,7 +52,7 @@ test/*.test.ts one per module
"type": "module",
"bin": { "sqlite-axi": "dist/bin/sqlite-axi.js" },
"files": ["dist", "README.md", "LICENSE"],
"engines": { "node": ">=20" },
"engines": { "node": ">=22" },
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "tsx src/bin/sqlite-axi.ts",
Expand All @@ -63,7 +63,7 @@ test/*.test.ts one per module
"dependencies": {
"@toon-format/toon": "^2.3.0",
"axi-sdk-js": "^0.1.7",
"better-sqlite3": "^12.0.0"
"better-sqlite3": "^13.0.1"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.11",
Expand Down Expand Up @@ -2039,7 +2039,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: npm
- run: npm ci
- run: npm run build
Expand Down
Loading