pi-mono/packages/session-backends/sqlite-node
2026-08-06 12:29:45 +02:00
..
scripts chore: rename storage package to session-backends 2026-08-05 09:28:44 +02:00
src fix: project open operation id to lanes (#7654) 2026-08-05 16:57:41 +02:00
test chore: qa2 tests (#7706) 2026-08-06 11:24:09 +02:00
CHANGELOG.md docs: audit unreleased changelogs 2026-08-06 12:29:45 +02:00
package.json chore: rename storage package to session-backends 2026-08-05 09:28:44 +02:00
README.md chore: rename storage package to session-backends 2026-08-05 09:28:44 +02:00
tsconfig.build.json chore: rename storage package to session-backends 2026-08-05 09:28:44 +02:00
vitest.config.ts feat: extract telemetry package 2026-08-05 23:23:12 +02:00

@earendil-works/pi-session-backend-sqlite-node

Node sqlite session backend for @earendil-works/pi-agent-core sessions. Provides the node:sqlite adapter (SqliteDatabase implementation), SQLite session repository, migrations, materialized views, and optional FTS search.

await using repository = new SqliteSessionRepository(options);
const search = createSqliteSessionSearch(options);
const session = await repository.create({ cwd });
const hits = await search.search({ text: "needle" });

The repository lazily owns one shared database connection. Search is an independent, query-only projection over the same canonical database.