Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 110 to 111

Compare

+6 −3 in 1 place
Lines 2–17 at 111 (were 2–14 at 110)
22import type { GraphStateStorage } from "../state-source.ts";
33
44export class SqlState implements GraphStateStorage {
5− readonly db = new DatabaseSync(":memory:");
5+ readonly db: DatabaseSync;
66 reads = 0;
77 writes = 0;
88 scans = 0;
99 failWrite = Infinity;
10− constructor() {
11− this.db.exec("CREATE TABLE state (collection TEXT, key TEXT, value TEXT, PRIMARY KEY(collection,key))");
10+ constructor(filename = ":memory:") {
11+ this.db = new DatabaseSync(filename);
12+ this.db.exec(
13+ "CREATE TABLE IF NOT EXISTS state (collection TEXT, key TEXT, value TEXT, PRIMARY KEY(collection,key))",
14+ );
1215 }
1316 read(collection: string, key: string): unknown {
1417 this.reads++;
MCP
compare on this site's /mcp
CLI
abso diff 110 111 src/engine/test/storage-helper.ts --json
JSON
/christopher/abso-core/compare/110..111?file=src%2Fengine%2Ftest%2Fstorage-helper.ts&format=json