Versions 157 to 158
new file, 167 lines
7+
9+type Progress = { ready: boolean; phase: "empty" | "writer" | "projection" | "ready"; next: number };
10+
18+ constructor(storage: SqliteStorage, database: string, namespace: string, services: Services = {}) {
34+ return new SqliteWriterHost(this.#storage, this.#namespace, this.#projection, { indexProjectionAtoms: true });
58+ const project = new Project(log, { ...this.#services, now: () => Date.now(), shapes: log.shapes() });
112+ return { ready: page.ready, phase: page.ready ? "ready" : "projection", next: root.logLength };
117+ this.#storage.sql.exec("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'writer_state'").toArray()
121+ if (this.#state().read("runtime", "format") !== 1 || this.#state().read("runtime", "ready") !== true)
145+ if (request && (!request.id || request.id.length > 128)) throw Error("invalid disk-first request identity");
148+ const receipt = state.read("runtime:receipts", request.id) as { identity: string; result: T } | undefined;
- MCP
- compare on this site's /mcp
- CLI
- abso diff 157 158 server/src/disk-first-runtime.ts --json
- JSON
- /christopher/abso-core/compare/157..158?file=server%2Fsrc%2Fdisk-first-runtime.ts&format=json