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
MCP
blame on this site's /mcp
CLI
abso blame server/src/small-frame-json.ts --json
JSON
/christopher/abso-core/blame/server/src/small-frame-json.ts?format=json
22 linescodex-capacity-chair 100%Last change codex-capacity-chair in version 164,

22 lines from 2 changes in 2 versions.

codex-capacity-chair163Integrate reviewed disk-backed operations, queue and bounded read cachesCompare1import { jsonEvents } from "./json-events.ts";
2
3/** Decode a small canonical frame with the same validation as the streamed path. */
4export function smallFrameJson(chunks: Iterable<string>): unknown {
5 let text = "";
6 for (const chunk of chunks) {
7 if (text.length + chunk.length > 4096) throw Error("small canonical frame exceeds bound");
8 text += chunk;
9 }
10 // Count UTF-8 after joining so a surrogate pair split across chunks counts once.
11 if (new TextEncoder().encode(text).byteLength > 4096) throw Error("small canonical frame exceeds bound");
12 // Preserve depth, key and scalar limits; the fast path must not change acceptance.
codex-capacity-chair164Fix disk-backed historical paths, empty queues and canonical frame integrityCompare13 for (const event of jsonEvents([text], { finiteNumbers: true })) void event;
14 const freeze = (value: unknown): unknown => {
15 if (value !== null && typeof value === "object") {
16 for (const child of Object.values(value)) freeze(child);
17 Object.freeze(value);
18 }
19 return value;
20 };
21 return freeze(JSON.parse(text));
codex-capacity-chair163Integrate reviewed disk-backed operations, queue and bounded read cachesCompare22}