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 28 to 29

Compare

+13 −4 in 2 places
Lines 1925–1946 at 29 (were 1925–1940 at 28)
19251925 const one = await avcs(tester, "export", out, "--version", "1");
19261926 assert.equal(one.exit, 0, one.out);
19271927 assert.equal(one.json.version, 1);
1928− assert.deepEqual(listAll(out), [".abso-export.json", ".absoignore", "index.html", "src/game.ts", "src/new.ts"]);
1928+ assert.deepEqual(listAll(out), [".abso-export", ".absoignore", "index.html", "src/game.ts", "src/new.ts"]);
19291929 assert.equal(read(out, "src/game.ts"), "game v1\n");
19301930 assert.equal(read(out, "index.html"), "<p>v0</p>\n", "published files, not the unpublished edit");
1931− assert.equal(JSON.parse(read(out, ".abso-export.json")).version, 1);
1932− // The newest by default; an earlier export's folder is replaced whole.
1931+ // One line, no extension: the exported project's own formatter has nothing to say about it.
1932+ const stamp = read(out, ".abso-export");
1933+ assert.equal(stamp.split("\n").length, 2, stamp);
1934+ assert.equal(JSON.parse(stamp).version, 1);
1935+ // The newest by default; an earlier export's folder is replaced whole, one stamped by an older client too.
1936+ rmSync(join(out, ".abso-export"));
1937+ write(out, { ".abso-export.json": "{}\n" });
19331938 const newest = await main(["export", out], { cwd: tester, env: ENV, write: () => {} });
19341939 assert.match(
19351940 newest.stdout,
1936− /^Exported version 2 of shared to .*build: 4 files\. \.abso-export\.json there names the version/,
1941+ /^Exported version 2 of shared to .*build: 4 files\. \.abso-export there names the version/,
19371942 );
1943+ assert.equal(existsSync(join(out, ".abso-export.json")), false);
19381944 assert.equal(read(out, "src/game.ts"), "game v2\n");
19391945 // Exporting again keeps the build's node_modules (abso never exports it) and what --keep names, and nothing else.
19401946 write(out, {
Lines 2700–2708 at 29 (were 2694–2699 at 28)
26942700 assert.match(refused({ folder: "sub", attach: "../../x.png" }), /is outside/);
26952701 assert.match(refused({ clean: "../clean.json" }), /^--clean \.\.\/clean\.json is outside/);
26962702 assert.deepEqual(confineCall(start, { clean: "clean.json" }), { folder: start });
2703+ // A folder a tool writes to is confined the same way.
2704+ assert.match(refused({ "save-attachments": "../images" }), /^--save-attachments \.\.\/images is outside/);
2705+ assert.deepEqual(confineCall(start, { "save-attachments": "images" }), { folder: start });
26972706 assert.deepEqual(confineCall(start, { folder: "sub", attach: "../a.txt" }), { folder: join(start, "sub") });
26982707 const server = mcp(start);
26992708 try {
MCP
compare on this site's /mcp
CLI
abso diff 28 29 client/test/client.test.ts --json
JSON
/christopher/abso-core/compare/28..29?file=client%2Ftest%2Fclient.test.ts&format=json