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 62 to 63

Compare

+33 −0 in 2 places
Lines 13–19 at 63 (were 13–18 at 62)
1313 forgetBox,
1414 login,
1515 logout,
16+ mintFreeName,
1617 mintKey,
1718 readBox,
1819 signedInServers,
Lines 306–340 at 63 (were 305–307 at 62)
305306 );
306307 assert.equal(serverFrom(args(SERVER), none, h), SERVER, "--server settles it");
307308});
310+test("join with no --agent takes the box's name, skips names this box holds, and moves past a taken one (abso issue 351)", async () => {
311+ const seen: Seen = [];
312+ const fetcher = server(
313+ [
314+ [200, { box_id: record.id, agents: [{ project: "abso", agent: "snow", key_id: "k_0" }] }],
315+ [409, { error: "that agent name is already in use in this project; pick a new one" }],
316+ [200, { key: "abso_sk_new", id: "k_3" }],
317+ ],
318+ seen,
319+ );
320+ const got = await mintFreeName(record, "abso", "snow", fetcher);
321+ assert.deepEqual(got, { key: "abso_sk_new", id: "k_3", agent: "snow-3" });
322+ assert.deepEqual(
323+ seen.map((s) => [new URL(s.url).pathname, (s.body as { agent?: string } | null)?.agent ?? null]),
324+ [
325+ ["/box", null],
326+ ["/box/agent-key", "snow-2"],
327+ ["/box/agent-key", "snow-3"],
328+ ],
329+ "snow is this box's already: never minted again, which would replace its key",
330+ );
332+ const limit = server(
333+ [
334+ [200, { box_id: record.id, agents: [] }],
335+ [409, { error: "this box is at its agent limit" }],
336+ ],
337+ [],
338+ );
339+ await assert.rejects(mintFreeName(record, "abso", "snow", limit), /this box is at its agent limit \(5\)/);
340+});
MCP
compare on this site's /mcp
CLI
abso diff 62 63 client/test/box.test.ts --json
JSON
/christopher/abso-core/compare/62..63?file=client%2Ftest%2Fbox.test.ts&format=json