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

Compare

+12 −1 in 3 places
Lines 1–5 at 318 (were 1–4 at 166)
11import assert from "node:assert/strict";
2+import { createHash } from "node:crypto";
23import { mkdtempSync, rmdirSync, unlinkSync } from "node:fs";
34import { tmpdir } from "node:os";
45import { join } from "node:path";
Lines 357–363 at 318 (were 356–362 at 166)
356357 () => {},
357358 );
358359 while (!runtime().preparePage(() => {}).ready) {}
359− const large = "x".repeat(8_100_000);
360+ const large = "x".repeat(65503) + "🚀" + '\u0000\n"\\é中\ud800'.repeat(1_000_000);
360361 const request = { id: "large-response", identity: { agent: "alice", operation: "large-fixture" } };
361362 const result = runtime().write(
362363 (calls) => {
Lines 369–384 at 318 (were 368–373 at 166)
368369 request,
369370 );
370371 assert.equal(result.body.length, large.length);
372+ const state = new SqliteWriterState(storage, "large-receipt");
373+ const header = state.read("runtime:receipts", request.id) as { parts: number; characters: number; digest: string };
374+ const expected = JSON.stringify({ result });
375+ assert.equal(header.characters, expected.length);
376+ assert.equal(header.digest, createHash("sha256").update(expected).digest("hex"));
377+ for (let part = 0; part < header.parts; part++)
378+ assert.equal(
379+ state.read(`runtime:receipt:${request.id}`, String(part)),
380+ expected.slice(part * 65536, (part + 1) * 65536),
381+ );
371382 const before = storage.db.prepare("SELECT * FROM log ORDER BY seq,part").all();
372383 const replay = runtime().write(
373384 () => {
MCP
compare on this site's /mcp
CLI
abso diff 166 318 server/test/disk-first-runtime.test.ts --json
JSON
/christopher/abso-core/compare/166..318?file=server%2Ftest%2Fdisk-first-runtime.test.ts&format=json