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 162 to 318

Compare

+8 −3 in 3 places
Lines 2–8 at 318 (were 2–7 at 162)
22import type { WriterAdoptionFrame } from "../../worker/project/project.ts";
33import type { Entry } from "../../worker/project/project-types.ts";
44import type { SqliteLog, SqliteStorage } from "./engine-project.ts";
5+import { smallFrameJson } from "./small-frame-json.ts";
56import { StoredJson, storeJson } from "./stored-json.ts";
67import { storedJsonView } from "./stored-json-view.ts";
78import { SqliteWriterState, writerFrameChunksDigest } from "./writer-host.ts";
Lines 27–33 at 318 (were 26–32 at 162)
2627 return storage.transactionSync(() => {
2728 SqliteWriterState.initialize(storage);
2829 const state = new SqliteWriterState(storage, namespace);
29− // Temporary nodes are immutable after parsing; cap retained reads for the whole page.
30+ // Bound cached reads across all disk-backed frames in this page.
3031 const reads = new CachedStateStorage(state, 64 * 1024, 256);
3132 if (
3233 storage.sql.exec("SELECT 1 AS present FROM writer_state WHERE namespace = ? LIMIT 1", namespace).toArray().length
Lines 45–57 at 318 (were 44–52 at 162)
4445 throw Error("decoded frame exceeds page byte bound");
4546 }
4647 digest = writerFrameChunksDigest(digest, seq, log.frameChunks(seq));
47− storeJson(state, String(seq), log.frameChunks(seq));
4848 bytes += size;
49− yield { seq, bytes: size, entry: storedJsonView(new StoredJson(reads, String(seq))) as Entry };
49+ if (size <= 4096) {
50+ yield { seq, bytes: size, entry: smallFrameJson(log.frameChunks(seq)) as Entry };
51+ } else {
52+ storeJson(state, String(seq), log.frameChunks(seq), { finiteNumbers: true });
53+ yield { seq, bytes: size, entry: storedJsonView(new StoredJson(reads, String(seq))) as Entry };
54+ }
5055 }
5156 };
5257 try {
MCP
compare on this site's /mcp
CLI
abso diff 162 318 server/src/decoded-frames.ts --json
JSON
/christopher/abso-core/compare/162..318?file=server%2Fsrc%2Fdecoded-frames.ts&format=json