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

Compare

+11 −3 in 2 places
Lines 204–216 at 318 (were 204–215 at 153)
204204 assert.equal(folderB["notes.md"], `one\ntwo\n${block}four\nfive\n`);
205205 assert.deepEqual(Object.keys(synced.files), ["notes.md"]); // b's own engine.ts edit was already in its folder
206206
207− // b settles it with an edit that takes the markers out, and publish goes through, saying what b kept.
207+ // b settles it with an edit that takes the markers out, and publish goes through, saying what b kept
208+ // and what its held push said.
208209 project.edit("b", { file: "notes.md", old: block, new: "three (a and b)\n" }, 7);
209210 const settled = project.publish("b", "Settle three", 8);
210211 assert.deepEqual(settled.ok && "version" in settled && [settled.version, settled.settled], [
211212 2,
212− [{ file: "notes.md", kept: "rewrote", theirs: { agent: "a", version: 1 } }],
213+ [{ file: "notes.md", kept: "rewrote", theirs: { agent: "a", version: 1 }, held: "Mark three for b" }],
213214 ]);
214215 assert.equal(project.files()["notes.md"], "one\ntwo\nthree (a and b)\nfour\nfive\n");
215216 assert.equal(project.files()["engine.ts"], "export function match(p, s) {\n return void 0;\n}\n");
Lines 358–371 at 318 (were 357–363 at 153)
357358 assert.equal(project.publish("bob", "c", 3).ok, false);
358359 assert.deepEqual(project.status().refusals, { total: 1, lines: 1, definition: 0, attribute: 0, duplicate: 0 });
359360 assert.deepEqual(project.refusals().refusals, [
360− { agent: "bob", draft: null, via: "publish", time: 3, collisions: [{ kind: "lines", file: "a.txt" }] },
361+ {
362+ agent: "bob",
363+ draft: null,
364+ via: "publish",
365+ time: 3,
366+ collisions: [{ kind: "lines", file: "a.txt" }],
367+ message: "c",
368+ },
361369 ]);
362370 assert.deepEqual(Project.load(store.entries, new MemoryStore()).refusals(), project.refusals());
363371});
MCP
compare on this site's /mcp
CLI
abso diff 153 318 worker/project/test/project.test.ts --json
JSON
/christopher/abso-core/compare/153..318?file=worker%2Fproject%2Ftest%2Fproject.test.ts&format=json