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 10 to 11

Compare

+12 −2 in 2 places
Lines 232–243 at 11 (were 232–238 at 10)
232232 assert.deepEqual(init.json.leftOut, [{ path: "huge.bin", reason: "too big" }]);
233233 const hosted = fake.projects.get("blobs")!;
234234 assert.deepEqual(Object.keys(hosted.project.blobs()).sort(), ["big.txt", "pic.bin"]);
235− assert.equal((await avcs(dir, "record")).json.sent, 0, "the known blobs match");
235+ const again = await avcs(dir, "record");
236+ assert.equal(again.json.sent, 0, "the known blobs match");
237+ assert.equal(again.exit, 1, "a file left out for size is not a success");
238+ const saidSo = await main(["record"], { cwd: dir, env: ENV, write: () => {} });
239+ assert.match(saidSo.stdout, /Left out, over the server's 20 MB limit.*huge\.bin/);
240+ assert.match(saidSo.stdout, /Exit 1: 1 file was not sent\./);
236241
237242 // Another agent gets the bytes.
238243 const bob = temp();
Lines 256–267 at 11 (were 251–257 at 10)
251256 refused.stdout,
252257 /NOT SENT: b\.txt was text and now has a NUL byte at line 1 \(byte 0\)\..*pass --binary b\.txt\.\nNot published\./,
253258 );
254− assert.equal((await avcs(dir, "publish", "-m", "new picture, b is binary now", "--binary", "b.txt")).exit, 0);
259+ // The publish goes through, and still says the huge file was left out, with a non-zero exit.
260+ const published = await avcs(dir, "publish", "-m", "new picture, b is binary now", "--binary", "b.txt");
261+ assert.equal(published.exit, 1, published.out);
262+ assert.ok(published.json.version !== undefined, "the rest was published");
263+ assert.deepEqual(published.json.leftOut, [{ path: "huge.bin", reason: "too big" }]);
264+ rmSync(join(dir, "huge.bin")); // the rest of the test is about the files that do go
255265 assert.equal("b.txt" in shared("blobs"), false);
256266 assert.ok("b.txt" in hosted.project.blobs());
257267 assert.equal((await avcs(bob, "sync")).exit, 0);
MCP
compare on this site's /mcp
CLI
abso diff 10 11 client/test/client.test.ts --json
JSON
/christopher/abso-core/compare/10..11?file=client%2Ftest%2Fclient.test.ts&format=json