Versions 280 to 281
Lines 3–9 at 281 (were 3–9 at 280)
44import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
6−import { Api, ApiError } from "./api.ts";
Lines 16–24 at 281 (were 16–24 at 280)
19−import { CLIENT_DIR } from "./client-version.ts";
21−import { leftOutText, syncFolder, uploadBlobs } from "./commands.ts";
21+import { applyAnswer, leftOutText, pullAnswer, pullWritten, syncFolder, uploadBlobs } from "./commands.ts";
Lines 32–38 at 281 (were 32–38 at 280)
35−import { modInstalled } from "./install.ts";
3838import { projectFileName, readProjectFile, startingProjectFileText, writeStartingProjectFile } from "./project-file.ts";
Lines 141–160 at 281 (were 141–152 at 280)
141141 say(`Signing in with ${credential?.words ?? `no credential: nothing here signs in to ${server}`}.
144− await uploadBlobs(api, blobs);
145− const answer = await api.init(
146− Object.fromEntries(files),
147− modes,
148− Object.fromEntries([...blobs].map(([rel, b]) => [rel, b.sha])),
149− );
155+ if (typeof wroteProject !== "string") rmSync(join(root, projectFileName(root)), { force: true });
Lines 359–374 at 281 (were 351–356 at 280)
353361
362+/** A join that failed before writing files: its state goes, but a key (already here, or made for it) stays for the next try. */
369+ for (const entry of readdirSync(dir)) if (entry !== "key") rmSync(join(dir, entry), { recursive: true, force: true });
371+
355373 if (args.positionals.length !== 1) throw new UsageError("join takes the project name: abso join <project>");
Lines 417–450 at 281 (were 399–423 at 280)
402− const read = readConfig(root, env.env, false);
405429 `Signing in with ${minted && box ? `a new key from this box's sign-in, ${box.id}` : hasKey ? "this folder's key" : (credential?.words ?? `no credential: nothing here signs in to ${server}`)}.
409− let synced: Awaited<ReturnType<typeof syncFolder>>;
413437 // Every file, even when the server has seen this agent sync before: its plain sync answer would hold only what changed since (#37).
414− synced = await syncFolder(root, api, true);
416442 if (!(error instanceof ApiError && error.status === 401 && !box && !settings.token)) throw error;
417− rmSync(stateDir(root), { recursive: true, force: true });
419444 throw new UsageError(!tokenFileAsked && tokenFile() !== undefined ? `${why} ${TOKEN_FILE_ASKED}` : why);
423450 `Joined ${project} as ${config.agent} at version ${synced.version}: wrote ${plural(synced.written.length, "file")} into ${root}.${reader ? " It is a reader: status, pull, log, show, files and export work, and nothing it does is recorded or pushed." : ""}${minted ? ` It signs in with its own key, ${minted.id}, made from this box's sign-in.` : ""}`,
Lines 481–489 at 281 (were 454–460 at 280)
455482
457− return modInstalled(env)
458− ? "Edits made by Claude Code here are recorded by the abso mod on this machine, signed in as this folder. Anything else: abso record."
459− : `Edits made by Claude Code reach the server through the abso mod, which isn't on this machine yet: node ${join(CLIENT_DIR, "install-mod.ts")} installs it, and new chats load it. Anything else: abso record.`;
485+ return "Edits made by Claude Code here are recorded by the abso mod on this machine, signed in as this folder. Anything else: abso record.";
488+ return `Edits made by Claude Code reach the server through the abso mod, which isn't on this machine yet: ${installerCommand("install-mod.ts")} installs it, and new chats load it. Anything else: abso record.`;
- MCP
- compare on this site's /mcp
- CLI
- abso diff 280 281 client/src/join-commands.ts --json
- JSON
- /christopher/abso-core/compare/280..281?file=client%2Fsrc%2Fjoin-commands.ts&format=json