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 client/test/api-request-id.test.ts --json
JSON
/christopher/abso-core/blame/client/test/api-request-id.test.ts?format=json
20 linescodex-capacity-chair 100%Last change codex-capacity-chair in version 162,

20 lines from 1 change in 1 version.

codex-capacity-chair162Add reviewed disk-first history and indexed graph storage for core issue 16; retain runtime activation gateCompare1import assert from "node:assert/strict";
2import { test } from "node:test";
3import { Api } from "../src/api.ts";
4
5test("a logical JSON write retains its UUID across connection retry and later writes get new IDs", async (t) => {
6 const api = new Api({ server: "https://example.invalid", project: "test", agent: "alice" } as never);
7 const ids: (string | null)[] = [];
8 t.mock.method(api, "send", async (_url: string, init: RequestInit) => {
9 ids.push(new Headers(init.headers).get("Idempotency-Key"));
10 if (ids.length === 1) throw Object.assign(Error("not connected"), { cause: { code: "ECONNREFUSED" } });
11 return Response.json({ ok: true });
12 });
13 await api.json("POST", "/a/alice/record", { files: {} });
14 await api.json("POST", "/a/alice/record", { files: {} });
15 await api.json("GET", "/status");
16 assert.match(ids[0]!, /^[0-9a-f-]{36}$/);
17 assert.equal(ids[1], ids[0]);
18 assert.notEqual(ids[2], ids[0]);
19 assert.equal(ids[3], null);
20});