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 62 to 63

Compare

+24 −1 in 2 places
Lines 525–531 at 63 (were 525–531 at 62)
525525 git("init", "-q");
526526 git("config", "core.autocrlf", "false");
527527 write(bob, { ".gitattributes": "*.txt eol=crlf\n*.bin -text\n" });
528− assert.equal((await avcs(bob, "join", name, "--agent", "bob", "--server", fake.url)).exit, 0);
528+ assert.equal((await avcs(bob, "join", name, "--agent", "bob", "--server", fake.url, "--dir", ".")).exit, 0);
529529 write(folders.alice!, { "a.txt": "one\ntwo\n", "b.md": "one\ntwo\n", "c.bin": "x\ny\n" });
530530 assert.equal((await avcs(folders.alice!, "publish", "-m", "three files")).exit, 0);
531531 assert.equal((await avcs(bob, "sync")).exit, 0);
Lines 2542–2570 at 63 (were 2542–2547 at 62)
25422542 assert.doesNotMatch(without.stdout, /Nothing is installed/);
25432543 });
25442544
2545+ it("join writes here when this folder is empty, else into ./<project>, never over someone's files (abso issue 351)", async () => {
2546+ const { name } = await project({ "a.ts": "one\n" }, "alice");
2547+ const run = (cwd: string, agent: string) =>
2548+ main(["join", name, "--agent", agent, "--server", fake.url], { cwd, env: ENV, write: () => {} });
2549+ const empty = temp();
2550+ const here = await run(empty, "bob");
2551+ assert.equal(here.exit, 0, here.stderr);
2552+ assert.equal(read(empty, "a.ts"), "one\n", "an empty folder: here");
2553+ assert.doesNotMatch(here.stdout, /^cd /m);
2554+ const busy = temp();
2555+ write(busy, { "notes.md": "mine\n" });
2556+ const sub = await run(busy, "carol");
2557+ assert.equal(sub.exit, 0, sub.stderr);
2558+ assert.equal(read(join(busy, name), "a.ts"), "one\n", "a folder with files in it: ./<project>");
2559+ assert.equal(read(busy, "notes.md"), "mine\n");
2560+ assert.match(sub.stdout, new RegExp(`^cd ${name}$`, "m"));
2561+ const taken = temp();
2562+ write(taken, { "notes.md": "mine\n", [`${name}/other.md`]: "theirs\n" });
2563+ const refused = await run(taken, "dave");
2564+ assert.notEqual(refused.exit, 0);
2565+ assert.match(refused.stderr, /already has files in it: say where to join with --dir <folder>/);
2566+ });
25452568 it("gives a call more time by what it sends: 1 s per 100 KB over the base (abso issue 34)", () => {
25462569 assert.equal(timeoutFor(30_000, undefined), 30_000);
25472570 assert.equal(timeoutFor(30_000, "{}"), 30_000);
MCP
compare on this site's /mcp
CLI
abso diff 62 63 client/test/client.test.ts --json
JSON
/christopher/abso-core/compare/62..63?file=client%2Ftest%2Fclient.test.ts&format=json