@nativeharness/store-sqlite
v0.1.0
Published
SQLite WorkspaceStore for nativeharness: one database per workspace, zero infrastructure.
Readme
@nativeharness/store-sqlite
The default WorkspaceStore: one SQLite database per workspace, plus the export and import
that make a workspace portable.
npm install @nativeharness/store-sqliteimport { SqliteWorkspaceStore } from "@nativeharness/store-sqlite";
const store = new SqliteWorkspaceStore({ root: "./data/workspaces" });One file per workspace rather than one database for all of them: a workspace can be copied, backed up, moved between machines or handed to a customer on its own, and one user's write contention is nobody else's problem.
The export format is defined before the store interface — every other store is a way of persisting the same shape:
workspace-a/
├── workspace.json manifest: id, sandbox config, connectors, permissions
├── state.db sessions, executions, approvals, the file index
├── files/ the working set
└── blobs/ large contentPart of nativeharness — the agent harness native to your app. Apache-2.0 · docs · source
