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

Compare

+15 −15 in 13 places
Lines 206–212 at 27 (were 206–212 at 26)
206206 );
207207 writeFileSync(join(folders.alice!, "pic.bin"), new Uint8Array([1, 0, 2]));
208208 assert.deepEqual(Object.keys(shared(name)).sort(), [
209− ".avcsignore",
209+ ".absoignore",
210210 ".gitignore",
211211 "empty.ts",
212212 "keep.log",
Lines 215–221 at 27 (were 215–221 at 26)
215215 "src/a.ts",
216216 ]);
217217 assert.equal(shared(name)["empty.ts"], "", "an empty file is a file");
218− assert.match(shared(name)[".avcsignore"]!, /^\.claude\/$/m, "init writes a starting .avcsignore");
218+ assert.match(shared(name)[".absoignore"]!, /^\.claude\/$/m, "init writes a starting .absoignore");
219219 assert.equal((await avcs(folders.alice!, "record")).json.sent, 1, "a binary file added later goes up as a blob");
220220 assert.ok(
221221 calls(name, "alice").some(
Lines 1566–1572 at 27 (were 1566–1572 at 26)
15661566 assert.equal(r.exit, 1);
15671567 assert.match(
15681568 r.stderr,
1569− /this folder's server is https:\/\/evil\.example, and abso sends your token only to .*If https:\/\/evil\.example is yours, name it in ~\/\.abso\/servers\.json or AVCS_TRUSTED_SERVERS/,
1569+ /this folder's server is https:\/\/evil\.example, and abso sends your token only to .*If https:\/\/evil\.example is yours, name it in ~\/\.abso\/servers\.json or ABSO_TRUSTED_SERVERS/,
15701570 );
15711571 const join2 = await main(["join", "x", "--agent", "bob", "--server", "https://evil.example"], {
15721572 cwd: temp(),
Lines 1832–1838 at 27 (were 1832–1838 at 26)
18321832 it("brings back what abso ignores, and names what it would not write", async () => {
18331833 const { folders } = await project({ "make.js": `${MAKE}\n`, "notes.txt": "mine\n" }, "alice");
18341834 const alice = folders.alice!;
1835− writeFileSync(join(alice, ".avcsignore"), `${read(alice, ".avcsignore")}out/\n`);
1835+ writeFileSync(join(alice, ".absoignore"), `${read(alice, ".absoignore")}out/\n`);
18361836 let err = "";
18371837 const r = await main(["run", "--fetch", "out/*,notes.txt", "node", "make.js"], {
18381838 cwd: alice,
Lines 1844–1850 at 27 (were 1844–1850 at 26)
18441844 assert.match(err, /Fetched 2 files from the box: out\/run\.log, out\/shot\.png\.\n/);
18451845 assert.match(
18461846 err,
1847− /Not fetched \(1\):\n {2}notes\.txt: abso records it, so writing it would make an edit; add it to \.avcsignore to fetch it\n/,
1847+ /Not fetched \(1\):\n {2}notes\.txt: abso records it, so writing it would make an edit; add it to \.absoignore to fetch it\n/,
18481848 );
18491849 assert.deepEqual([...readFileSync(join(alice, "out", "shot.png"))], [137, 80, 78, 71, 0, 1, 2]);
18501850 assert.equal(read(alice, "notes.txt"), "mine\n", "a recorded file is left alone");
Lines 1867–1873 at 27 (were 1867–1873 at 26)
18671867 it("screens the box's paths as a sync's: nothing outside the folder, in .git, or a link", async () => {
18681868 const { folders } = await project({ "make.js": `${MAKE}\n` }, "alice");
18691869 const alice = folders.alice!;
1870− writeFileSync(join(alice, ".avcsignore"), `${read(alice, ".avcsignore")}out/\n`);
1870+ writeFileSync(join(alice, ".absoignore"), `${read(alice, ".absoignore")}out/\n`);
18711871 await main(["run", "node", "make.js"], { cwd: alice, env: ENV, write: () => {}, writeErr: () => {} });
18721872 fake.boxExtra = [
18731873 { path: "../evil.txt", data: new TextEncoder().encode("x") },
Lines 1925–1939 at 27 (were 1925–1939 at 26)
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), [".avcs-export.json", ".avcsignore", "index.html", "src/game.ts", "src/new.ts"]);
1928+ assert.deepEqual(listAll(out), [".abso-export.json", ".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, ".avcs-export.json")).version, 1);
1931+ assert.equal(JSON.parse(read(out, ".abso-export.json")).version, 1);
19321932 // The newest by default; an earlier export's folder is replaced whole.
19331933 const newest = await main(["export", out], { cwd: tester, env: ENV, write: () => {} });
19341934 assert.match(
19351935 newest.stdout,
1936− /^Exported version 2 of shared to .*build: 4 files\. \.avcs-export\.json there names the version/,
1936+ /^Exported version 2 of shared to .*build: 4 files\. \.abso-export\.json there names the version/,
19371937 );
19381938 assert.equal(read(out, "src/game.ts"), "game v2\n");
19391939 // Exporting again keeps the build's node_modules (abso never exports it) and what --keep names, and nothing else.
Lines 1968–1974 at 27 (were 1968–1974 at 26)
19681968 assert.equal(inside.exit, 1);
19691969 assert.match(inside.out, /abso would record the export/);
19701970 assert.match((await avcs(folders.alice!, "export", ".")).out, /holds this abso folder/);
1971− write(folders.alice!, { ".avcsignore": `${read(folders.alice!, ".avcsignore")}build/\n` });
1971+ write(folders.alice!, { ".absoignore": `${read(folders.alice!, ".absoignore")}build/\n` });
19721972 assert.equal((await avcs(folders.alice!, "export", "build")).exit, 0);
19731973 assert.equal(read(folders.alice!, "build/src/game.ts"), "game v0\n");
19741974 });
Lines 2021–2027 at 27 (were 2021–2027 at 26)
20212021 listed.stdout,
20222022 [
20232023 "Your view holds 5 files: shared at version 0, with your unpublished changes. 2 of them are missing from this folder (abso sync --full writes them).",
2024− ".avcsignore",
2024+ ".absoignore",
20252025 "src/main.ts",
20262026 "src/state.ts (missing from this folder)",
20272027 "tools/play.mjs",
Lines 2054–2060 at 27 (were 2054–2060 at 26)
20542054 const { folders } = await project(FILES, "alice", "bob");
20552055 write(folders.alice!, { "src/new.ts": "new\n" });
20562056 assert.equal((await avcs(folders.alice!, "publish", "-m", "new")).exit, 0);
2057− assert.equal((await avcs(folders.bob!, "files", "--version", "0")).json.files.length, 5, "4 files and .avcsignore");
2057+ assert.equal((await avcs(folders.bob!, "files", "--version", "0")).json.files.length, 5, "4 files and .absoignore");
20582058 const now = await main(["files", "--draft", "shared"], { cwd: folders.bob!, env: ENV, write: () => {} });
20592059 assert.match(now.stdout, /^shared at version 1 holds 6 files\.\n/);
20602060 assert.match(now.stdout, /\nsrc\/new\.ts\n/);
Lines 2860–2866 at 27 (were 2860–2866 at 26)
28602860 });
28612861 assert.equal(imported.exit, 0, imported.stdout + imported.stderr);
28622862 assert.equal(existsSync(join(asIs, "avcs.json")), false);
2863− assert.equal(existsSync(join(asIs, ".avcsignore")), false);
2863+ assert.equal(existsSync(join(asIs, ".absoignore")), false);
28642864 assert.doesNotMatch(imported.stdout, /Wrote|No avcs\.json written/);
28652865 });
28662866
Lines 4239–4245 at 27 (were 4239–4245 at 26)
42394239 const { name, folders } = await project({ "a.ts": "one\n", "b.ts": "b\n" }, "alice", "bob");
42404240 renameSync(join(folders.alice!, "a.ts"), join(folders.alice!, "A.ts"));
42414241 assert.equal((await avcs(folders.alice!, "publish", "-m", "rename a.ts to A.ts")).exit, 0);
4242− assert.deepEqual(Object.keys(shared(name)).sort(), [".avcsignore", "A.ts", "b.ts"]);
4242+ assert.deepEqual(Object.keys(shared(name)).sort(), [".absoignore", "A.ts", "b.ts"]);
42434243 assert.equal(
42444244 (await avcs(folders.alice!, "status")).json.unrecorded?.length ?? 0,
42454245 0,
Lines 4277–4283 at 27 (were 4277–4283 at 26)
42774277 "nothing left to record: the moves are in the draft",
42784278 );
42794279 assert.equal((await avcs(folders.alice!, "publish", "-m", "renames")).exit, 0);
4280− assert.deepEqual(Object.keys(shared(name)).sort(), [".avcsignore", "README.md", "lib/a.ts"]);
4280+ assert.deepEqual(Object.keys(shared(name)).sort(), [".absoignore", "README.md", "lib/a.ts"]);
42814281 // The lines kept their history: blame still names the init version.
42824282 assert.match((await run(folders.alice!, "blame", "README.md")).stdout, /\binit\b/);
42834283 assert.equal((await avcs(folders.bob!, "sync")).exit, 0);
MCP
compare on this site's /mcp
CLI
abso diff 26 27 client/test/client.test.ts --json
JSON
/christopher/abso-core/compare/26..27?file=client%2Ftest%2Fclient.test.ts&format=json