qmd/src
Tobi Lutke dcedfb5268
feat: cross-runtime SQLite compat layer (bun:sqlite + better-sqlite3)
Add src/db.ts that dynamically imports bun:sqlite under Bun and
better-sqlite3 under Node.js. Exports openDatabase(), loadSqliteVec(),
and a shared Database interface.

- sqlite-vec loading is now optional — FTS works without it, vector
  ops throw a clear error if unavailable
- CI tests both runtimes: Node 22/23 via vitest, Bun via bun test
- All 104 unit tests pass on both Node and Bun
2026-02-15 17:15:47 -04:00
..
integration test: split integration/model suites 2026-02-15 16:57:13 -04:00
models feat: cross-runtime SQLite compat layer (bun:sqlite + better-sqlite3) 2026-02-15 17:15:47 -04:00
bench-rerank.ts perf: CPU parallelism via multi-context thread splitting 2026-02-15 11:21:45 -05:00
collections.ts Fix: Add missing --index option to argument parser (#84) 2026-02-01 16:36:51 -05:00
db.ts feat: cross-runtime SQLite compat layer (bun:sqlite + better-sqlite3) 2026-02-15 17:15:47 -04:00
eval-bm25.test.ts feat: cross-runtime SQLite compat layer (bun:sqlite + better-sqlite3) 2026-02-15 17:15:47 -04:00
formatter.test.ts test: split integration/model suites 2026-02-15 16:57:13 -04:00
formatter.ts fix: add missing context to search results markdown and XML formatters 2026-02-13 00:34:23 -05:00
llm.ts perf: CPU parallelism via multi-context thread splitting 2026-02-15 11:21:45 -05:00
mcp.ts docs: update node usage and bump version 2026-02-15 16:44:47 -04:00
qmd.ts feat: cross-runtime SQLite compat layer (bun:sqlite + better-sqlite3) 2026-02-15 17:15:47 -04:00
store-paths.test.ts test: split integration/model suites 2026-02-15 16:57:13 -04:00
store.helpers.unit.test.ts test: split integration/model suites 2026-02-15 16:57:13 -04:00
store.ts feat: cross-runtime SQLite compat layer (bun:sqlite + better-sqlite3) 2026-02-15 17:15:47 -04:00
test-preload.ts fix: proper cleanup of Metal GPU resources in tests 2026-02-15 14:20:09 -04:00