Versions 63 to 64
Lines 23–29 at 64 (were 23–29 at 63)
26−import { dirname, join, relative, sep } from "node:path";
Lines 33–39 at 64 (were 33–38 at 63)
3535import { collisionText, parallelScript, runCommand, sameVersionHint, undoGitBashPaths } from "../src/commands.ts";
Lines 49–55 at 64 (were 48–53 at 63)
Lines 527–533 at 64 (were 525–531 at 63)
528− assert.equal((await avcs(bob, "join", name, "--agent", "bob", "--server", fake.url, "--dir", ".")).exit, 0);
Lines 2544–2596 at 64 (were 2542–2570 at 63)
25442546
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: () => {} });
2547+ it("join with no --agent writes here when this folder is empty, else into ./<project>, never over someone's files", () => {
2548+ const args = (...words: string[]) => parseArgs("join", ["p", ...words], { agent: "string", dir: "string" });
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);
2553+ assert.equal(joinFolder(args(), { cwd: prepared }, "p"), resolve(prepared), "only abso's own folder: still empty");
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>/);
2556+ assert.equal(joinFolder(args(), { cwd: busy }, "p"), resolve(busy, "p"), "files here: ./<project>");
2557+ assert.equal(joinFolder(args("--agent", "bob"), { cwd: busy }, "p"), resolve(busy), "--agent: here, as before");
25672565
2566+ it("join --agent joins a folder prepared with abso key install --server where it is, and sends that key", async () => {
2573+ const init = await main(["init", "--server", keyed.url, "--project", "prep", "--agent", "alice"], {
2593+
25682594 it("gives a call more time by what it sends: 1 s per 100 KB over the base (abso issue 34)", () => {
- MCP
- compare on this site's /mcp
- CLI
- abso diff 63 64 client/test/client.test.ts --json
- JSON
- /christopher/abso-core/compare/63..64?file=client%2Ftest%2Fclient.test.ts&format=json