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 51 to 52

Compare

+23 −0 in 1 place
Lines 4248–4276 at 52 (were 4248–4253 at 51)
42484248 /^Your unpublished changes to a\.txt in shared \(on version 0\): 1 file, 1 line added, 1 removed\.\n--- a\/a\.txt/,
42494249 );
42504250
4251+ // bob reviews alice's draft: what she recorded, read only.
4252+ const theirs = await main(["diff", "a.txt", "--agent", "alice"], { cwd: folders.bob!, env: ENV, write: () => {} });
4253+ assert.equal(theirs.exit, 0, theirs.stderr);
4254+ assert.match(
4255+ theirs.stdout,
4256+ /^alice's recorded, unpublished changes to a\.txt in shared \(on version 0\): 1 file, 1 line added, 1 removed\.\n--- a\/a\.txt\n\+\+\+ b\/a\.txt\n@@ -1,3 \+1,3 @@\n one\n-two\n\+TWO\n three/,
4257+ );
4258+ assert.deepEqual((await avcs(folders.bob!, "diff", "--agent", "alice")).json.files.map((f: any) => f.path).sort(), [
4259+ "a.txt",
4260+ "c.txt",
4261+ ]);
4262+ assert.match(
4263+ (await main(["diff", "--agent", "bob"], { cwd: folders.bob!, env: ENV, write: () => {} })).stdout,
4264+ /^bob has no recorded, unpublished changes in shared/,
4265+ );
4266+ const nobody = await main(["diff", "--agent", "carol"], { cwd: folders.bob!, env: ENV, write: () => {} });
4267+ assert.notEqual(nobody.exit, 0);
4268+ assert.match(nobody.stderr, /there is no agent "carol"/);
4269+ assert.equal(
4270+ (await main(["diff", "0", "1", "--agent", "alice"], { cwd: folders.bob!, env: ENV, write: () => {} })).exit,
4271+ 1,
4272+ );
42514274 assert.equal((await avcs(alice, "publish", "-m", "alice: shout two, add c")).exit, 0);
42524275 await edit(folders.bob!, "b.txt", "b\n", "b from bob\n");
42534276 assert.equal((await avcs(folders.bob!, "publish", "-m", "bob: change b")).exit, 0);
MCP
compare on this site's /mcp
CLI
abso diff 51 52 client/test/client.test.ts --json
JSON
/christopher/abso-core/compare/51..52?file=client%2Ftest%2Fclient.test.ts&format=json