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 281 to 282

Compare

+14 −0 in 1 place
Lines 3–25 at 282 (were 3–11 at 281)
33import { test } from "node:test";
44import { CALLER_HEADER, CALLER_MAX, callerHeader, callerPlace, parseCaller } from "../../src/caller.ts";
55import { Api } from "../src/api.ts";
6+import { callerFor } from "../src/command-env.ts";
67
78const session = "0da5c2b7-ab07-4249-b868-e8f09b6ec7b6";
89
10+test("the client sends a hash of the session and only the folder's last part", () => {
11+ const header = callerFor(session, "DESKTOP-1", "C:\\Users\\sam\\repos\\abso\\groups")!;
12+ const caller = parseCaller(header)!;
13+ assert.equal(caller.folder, "groups");
14+ assert.match(caller.session!, /^[0-9a-f]{16}$/);
15+ assert.notEqual(caller.session, session);
16+ assert.doesNotMatch(Buffer.from(header, "base64url").toString(), /sam|0da5c2b7/);
17+ // The same chat hashes the same way, so the server still tells one chat from another.
18+ assert.equal(parseCaller(callerFor(session, "DESKTOP-1", "/x/groups"))!.session, caller.session);
19+ assert.equal(parseCaller(callerFor(undefined, "box", "/work/über"))!.session, undefined);
20+ assert.equal(callerPlace(caller), "groups on DESKTOP-1");
21+});
923test("a caller goes out and comes back as it was", () => {
1024 const header = callerHeader({ session, machine: "DESKTOP-1", folder: "C:\\Users\\sam\\repos\\abso\\groups" })!;
1125 assert.match(header, /^[A-Za-z0-9_-]+$/);
MCP
compare on this site's /mcp
CLI
abso diff 281 282 client/test/caller.test.ts --json
JSON
/christopher/abso-core/compare/281..282?file=client%2Ftest%2Fcaller.test.ts&format=json