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

Compare

+13 −8 in 6 places
Lines 2808–2814 at 28 (were 2808–2814 at 27)
28082808 it("init guesses it from package.json, and keeps one that is already there", async () => {
28092809 const pkg = JSON.stringify({ scripts: { typecheck: "tsc", test: "node --test" }, devDependencies: { vite: "^5" } });
28102810 const { name } = await project({ "package.json": pkg, "package-lock.json": "{}\n" }, "alice");
2811− assert.deepEqual(JSON.parse(shared(name)["avcs.json"]!), {
2811+ assert.deepEqual(JSON.parse(shared(name)["abso.json"]!), {
28122812 setup: "npm ci",
28132813 check: "npm run typecheck && npm test",
28142814 build: "npx --no-install vite build --base ./ --outDir dist",
Lines 2816–2826 at 28 (were 2816–2821 at 27)
28162816 });
28172817 const kept = await project({ "avcs.json": '{"check": "node check.cjs"}\n' }, "alice");
28182818 assert.equal(shared(kept.name)["avcs.json"], '{"check": "node check.cjs"}\n');
2819+ assert.equal(
2820+ shared(kept.name)["abso.json"],
2821+ undefined,
2822+ "an avcs.json is kept as it is: no abso.json beside it to shadow it",
2823+ );
28192824 const dir = temp();
28202825 write(dir, {
28212826 "a.txt": "a\n",
Lines 2833–2847 at 28 (were 2828–2842 at 27)
28282833 });
28292834 assert.equal(init.exit, 0, init.stdout + init.stderr);
28302835 assert.deepEqual(
2831− JSON.parse(read(dir, "avcs.json")),
2836+ JSON.parse(read(dir, "abso.json")),
28322837 { setup: "npm install", check: "", build: "npm run build", out: "" },
28332838 "npm's placeholder test is no check",
28342839 );
28352840 assert.match(
28362841 init.stdout,
2837− /\nWrote avcs\.json: CI will run on every new version of shared \(setup "npm install", build "npm run build"\)\. Fill in check, out when the project has them\./,
2842+ /\nWrote abso.json: CI will run on every new version of shared \(setup "npm install", build "npm run build"\)\. Fill in check, out when the project has them\./,
28382843 );
2839− // Nothing to check or build: no avcs.json, so CI has nothing to run and starts no boxes (#39, Agent VCS).
2844+ // Nothing to check or build: no abso.json, so CI has nothing to run and starts no boxes (#39, Agent VCS).
28402845 const bare = temp();
28412846 write(bare, { "a.txt": "a\n", "package.json": JSON.stringify({ scripts: { start: "node a.js" } }) });
28422847 const off = await main(["init", "--server", fake.url, "--project", "guess-none", "--agent", "alice"], {
Lines 2850–2859 at 28 (were 2845–2854 at 27)
28452850 write: () => {},
28462851 });
28472852 assert.equal(off.exit, 0, off.stdout + off.stderr);
2848− assert.equal(existsSync(join(bare, "avcs.json")), false);
2853+ assert.equal(existsSync(join(bare, "abso.json")), false);
28492854 assert.match(
28502855 off.stdout,
2851− /\nNo avcs\.json written: package\.json gives no check or build to guess, so CI has nothing to run on each new version\. To give it a check, publish an avcs\.json like \{"check": "npm test"\}/,
2856+ /\nNo abso.json written: package\.json gives no check or build to guess, so CI has nothing to run on each new version\. To give it a check, publish an abso.json like \{"check": "npm test"\}/,
28522857 );
28532858 // --as-is (an import, #58): the folder goes up exactly as it is, with nothing of avcs's own added.
28542859 const asIs = temp();
Lines 2933–2939 at 28 (were 2928–2934 at 27)
29282933 assert.equal(missing.exit, 1);
29292934 assert.match(
29302935 missing.stdout + missing.stderr,
2931− /--check alone runs the project's check, but there is no avcs\.json\. Set "check" in avcs\.json/,
2936+ /--check alone runs the project's check, but there is no abso.json\. Set "check" in abso.json/,
29322937 );
29332938 write(folders.alice!, { "avcs.json": '{"build": "", "check": ""}\n' });
29342939 const none = await main(["publish", "-m", "x", "--check"], {
Lines 3067–3073 at 28 (were 3062–3068 at 27)
30623067 "Not checked yet. Version 4 is being checked (35 s so far).",
30633068 ]);
30643069 assert.deepEqual(ciText({ ...base, checked: { version: 2, result: "none" }, running: null }, 3, now), [
3065− "CI couldn't check version 2 (the box failed twice, or avcs.json has nothing to run). Versions after 2 aren't checked yet.",
3070+ "CI couldn't check version 2 (the box failed twice, or abso.json has nothing to run). Versions after 2 aren't checked yet.",
30663071 ]);
30673072 assert.deepEqual(
30683073 ciText({ ...base, running: null, red: { version: 1, agent: null, message: null, lastGood: null } }, 1, now),
MCP
compare on this site's /mcp
CLI
abso diff 27 28 client/test/client.test.ts --json
JSON
/christopher/abso-core/compare/27..28?file=client%2Ftest%2Fclient.test.ts&format=json