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

+4 −4 in 2 places
Lines 24–30 at 318 (were 24–30 at 2)
2424 lines: string[];
2525}
2626
27−test("changes that do not collide give the same files in every publish order", () => {
27+test("changes that do not collide give the same files in every push order", () => {
2828 for (let seed = 1; seed <= 60; seed++) {
2929 const rand = rng(seed);
3030 const pick = (n: number): number => Math.floor(rand() * n);
Lines 45–62 at 318 (were 45–62 at 2)
4545
4646 const expected = [...base];
4747 for (const p of [...plans].reverse()) expected.splice(p.start, p.end - p.start, ...p.lines);
48− const expectedText = expected.length > 0 ? expected.join("\n") + "\n" : undefined;
48+ const expectedText = expected.length > 0 ? `${expected.join("\n")}\n` : undefined;
4949
5050 const orders = [plans.map((_, i) => i), plans.map((_, i) => plans.length - 1 - i)];
5151 for (let k = 0; k < 3; k++) orders.push([...orders[0]!].sort(() => rand() - 0.5));
5252 for (const order of orders) {
5353 const project = new Project(new MemoryStore());
54− project.init({ "f.txt": base.join("\n") + "\n" }, 0);
54+ project.init({ "f.txt": `${base.join("\n")}\n` }, 0);
5555 for (const p of plans) {
5656 project.sync(p.agent);
5757 const lines = [...base];
5858 lines.splice(p.start, p.end - p.start, ...p.lines);
59− project.record(p.agent, { "f.txt": lines.join("\n") + "\n" }, 1);
59+ project.record(p.agent, { "f.txt": `${lines.join("\n")}\n` }, 1);
6060 }
6161 for (const i of order) {
6262 const answer = project.publish(plans[i]!.agent, "m", 2);
MCP
compare on this site's /mcp
CLI
abso diff 2 318 worker/project/test/order.test.ts --json
JSON
/christopher/abso-core/compare/2..318?file=worker%2Fproject%2Ftest%2Forder.test.ts&format=json