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

Compare

+22 −4 in 1 place
Lines 21–53 at 318 (were 21–35 at 2)
2121 const at = Date.parse("2026-10-08T08:34:00Z");
2222 assert.equal(
2323 newsWithTime("Announcement from ann (as claimed): Split api.ts", at, now),
24− "Announcement from ann (as claimed), 08:34 UTC: Split api.ts",
24+ "ann (as claimed) told you, 08:34 UTC:\nSplit api.ts",
2525 );
2626 assert.equal(
2727 newsWithTime('Announcement from C (a person, signed in on the website, id cf-1): "hi"', at, now),
28− 'Announcement from C (a person, signed in on the website, id cf-1), 08:34 UTC: "hi"',
28+ "C (a person) told you, 08:34 UTC:\nhi",
2929 );
3030 assert.equal(
31− newsWithTime('w1 published "x" (version 3), which changes a.txt line 2', at, now),
32− 'w1 published "x" (version 3), which changes a.txt line 2 (08:34 UTC)',
31+ newsWithTime("Announcement from ann (as claimed): Split api.ts", null, now),
32+ "ann (as claimed) told you:\nSplit api.ts",
3333 );
34+ assert.equal(
35+ newsWithTime('w1 pushed "x" (version 3), which changes a.txt line 2', at, now),
36+ 'w1 pushed "x" (version 3), which changes a.txt line 2 (08:34 UTC)',
37+ );
3438 assert.equal(newsWithTime("from before times", null, now), "from before times");
3539});
41+test("a tell is shown as who told you and how sure that is, with what was said below", () => {
42+ const shown = (text: string) => newsWithTime(text, null, now);
43+ assert.equal(shown("Announcement from ann (key k_0123abcd): Go"), "ann (checked) told you:\nGo");
44+ assert.equal(shown("Announcement from ann (key k_0123abcd, box b7): Go"), "ann (checked, box b7) told you:\nGo");
45+ assert.equal(shown("Announcement from ann (shared token): Go"), "ann (as claimed) told you:\nGo");
46+ // A person's words are unquoted, line breaks and all; their id is left out.
47+ const person = shown(
48+ `Announcement from Robin Ash (a person, signed in on the website, id cf-9): ${JSON.stringify('Two\nlines "here"')}`,
49+ );
50+ assert.equal(person, 'Robin Ash (a person) told you:\nTwo\nlines "here"');
51+ // Anything else that starts the same way is other news, shown as it is.
52+ assert.equal(shown("Announcement from ann (made up): Go"), "Announcement from ann (made up): Go");
53+});
MCP
compare on this site's /mcp
CLI
abso diff 2 318 client/test/times.test.ts --json
JSON
/christopher/abso-core/compare/2..318?file=client%2Ftest%2Ftimes.test.ts&format=json