- MCP
- blame on this site's /mcp
- CLI
- abso blame client/src/join-commands.ts --version 261 --json
- JSON
- /christopher/abso-core/blame/client/src/join-commands.ts?version=261&format=json
392 linesFirst import 32% · box-grants 31% · pinch 17% · trials 11% · review 4% · onboard 3% · Last change onboard in version 224,
392 lines from 18 changes in 16 versions.
init0Start the project1// abso init and abso join: start a project from a folder, or join one into a folder.
box-grants185abso init, init --org and org new from a signed-in box (abso 663). On a server this box is signed in to and with no token for it, abso init makes the project as the person who approved the box, through the server's POST /box/projects (the website's own create): its folder (up to 24 MB) is the first version, --public or --private picks visibility (private by default), --org makes it an organization's project, and one Idempotency-Key per folder (kept in .abso/init-key until it finishes) makes a retry the same project. The folder then joins at once with its own key from the box (--agent, else the box's name). abso org new <name> [--name] makes an organization through POST /box/orgs. abso box and login say 'all of yours, now and later' for a member-all grant. Without a box, init and init --org say to abso login. Tests: orgs, box, help; full suite passes.Compare3import { randomUUID } from "node:crypto";
4import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare5import { join, relative, resolve } from "node:path";
7import { bool, type Parsed, str, UsageError } from "./args.ts";
8import { writeKnownBlobs } from "./blobs.ts";
box-grants185abso init, init --org and org new from a signed-in box (abso 663). On a server this box is signed in to and with no token for it, abso init makes the project as the person who approved the box, through the server's POST /box/projects (the website's own create): its folder (up to 24 MB) is the first version, --public or --private picks visibility (private by default), --org makes it an organization's project, and one Idempotency-Key per folder (kept in .abso/init-key until it finishes) makes a retry the same project. The folder then joins at once with its own key from the box (--agent, else the box's name). abso org new <name> [--name] makes an organization through POST /box/orgs. abso box and login say 'all of yours, now and later' for a member-all grant. Without a box, init and init --org say to abso login. Tests: orgs, box, help; full suite passes.Compare9import {
10 type BoxRecord,
11 boxCreateProject,
12 defaultAgentName,
13 mintFreeName,
14 mintKey,
15 type NewProject,
16 readBox,
17} from "./box.ts";
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare18import { STARTING_ABSOIGNORE } from "./check-ignore.ts";
20import { type Env, type Output, plural } from "./command-env.ts";
21import { leftOutText, syncFolder, uploadBlobs } from "./commands.ts";
review17New folders keep their state in .abso/, and the machine's sign-in, servers and admin token are read from ~/.abso/ first, then ~/.avcs/. A folder made before, with only .avcs/, is untouched: it keeps working, is never half-moved, and no older client or mod loses it. stateDir(root) and homeFile/homeWritePath are in the new client/src/state-dir.ts and replace the old AVCS_DIR constant everywhere. abso login writes only to ~/.abso/ and leaves ~/.avcs/ alone; logout removes both copies. The edit mod and the view mod read either folder. .abso is skipped like .avcs (including its odd spellings), the git exclude names whichever folder is in use, and the messages name .abso. Not changed: avcs.json (the server reads that name, so abso.json needs the server to learn it first), .avcsignore, env var names and wire headers. Tests: 709 run, 708 pass (one is skipped), including new ones for the folder choice, the home-file order and box sign-in; biome ci has no errors.Compare22import { findRoot, installKey, readConfig, type Settings, tokenFor, writeConfig } from "./config.ts";
speed156With nothing naming a server, the client now uses prod (https://api.abso.dev). Every command picks its server in one order: --server, else the joined folder's own server, else ABSO_SERVER, else prod. Which servers this box is signed in to no longer picks one, so a box signed in to staging and prod both, or to staging alone, goes to prod instead of refusing or quietly using staging; staging is a deliberate --server, a joined staging folder, or ABSO_SERVER. An explicit choice is used as given. A malformed ABSO_SERVER is refused like a malformed --server. When this box isn't signed in to the chosen server but is to others, whoami and join name them and how to pick one. Help states the order for every command that picks its server. For abso-core issue 9.Compare23import { elsewhereText } from "./doctor.ts";
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare24import { fromEnv } from "./env-names.ts";
init0Start the project25import { clearKnown, loadIgnore, readFolder, writeKnown } from "./folder.ts";
26import { modInstalled } from "./install.ts";
27import { type FullMode, foldModes, writeKnownModes } from "./modes.ts";
box-grants185abso init, init --org and org new from a signed-in box (abso 663). On a server this box is signed in to and with no token for it, abso init makes the project as the person who approved the box, through the server's POST /box/projects (the website's own create): its folder (up to 24 MB) is the first version, --public or --private picks visibility (private by default), --org makes it an organization's project, and one Idempotency-Key per folder (kept in .abso/init-key until it finishes) makes a retry the same project. The folder then joins at once with its own key from the box (--agent, else the box's name). abso org new <name> [--name] makes an organization through POST /box/orgs. abso box and login say 'all of yours, now and later' for a member-all grant. Without a box, init and init --org say to abso login. Tests: orgs, box, help; full suite passes.Compare28import { initInOrg, siteOf } from "./orgs.ts";
review28Client: abso.json is the project file (avcs.json still read; a new project gets abso.json unless it has either); new folders get .abso when no installed mod is older than 0.2.0; both mods are 0.2.0 (abso 253, 224)Compare29import { projectFileName, readProjectFile, startingProjectFileText, writeStartingProjectFile } from "./project-file.ts";
speed156With nothing naming a server, the client now uses prod (https://api.abso.dev). Every command picks its server in one order: --server, else the joined folder's own server, else ABSO_SERVER, else prod. Which servers this box is signed in to no longer picks one, so a box signed in to staging and prod both, or to staging alone, goes to prod instead of refusing or quietly using staging; staging is a deliberate --server, a joined staging folder, or ABSO_SERVER. An explicit choice is used as given. A malformed ABSO_SERVER is refused like a malformed --server. When this box isn't signed in to the chosen server but is to others, whoami and join name them and how to pick one. Help states the order for every command that picks its server. For abso-core issue 9.Compare31import { chooseServer, serverFlag } from "./server-choice.ts";
trials64join: a folder prepared with abso key install --server is joined where it is again (Pinch's catch on 63).
- --agent keeps 'here' as the default, as before 63, so scripts that join into a prepared folder still do. The ./<project> rule is only for a join with no --agent.
- A folder holding only abso's own state folder (.abso, or the older .avcs) counts as empty.
- New tests: joinFolder's rule (empty, only .abso, files here, --agent, --dir, a taken ./<project>), and a runJoin test that installs a key with --server and joins with --agent and no --dir: it joins here and sends that key (the shared token is wrong, so only the key gets through). The git line-endings test is back to joining without --dir.
- Issue numbers taken out of the new code comments and test names.Compare32import { OLD_STATE_DIR, STATE_DIR, stateDir } from "./state-dir.ts";
speed156With nothing naming a server, the client now uses prod (https://api.abso.dev). Every command picks its server in one order: --server, else the joined folder's own server, else ABSO_SERVER, else prod. Which servers this box is signed in to no longer picks one, so a box signed in to staging and prod both, or to staging alone, goes to prod instead of refusing or quietly using staging; staging is a deliberate --server, a joined staging folder, or ABSO_SERVER. An explicit choice is used as given. A malformed ABSO_SERVER is refused like a malformed --server. When this box isn't signed in to the chosen server but is to others, whoami and join name them and how to pick one. Help states the order for every command that picks its server. For abso-core issue 9.Compare34/** The server to join or start on, in the order every command picks one (server-choice.ts chooseServer). */
35export function serverFrom(args: Parsed, env: Pick<Env, "env" | "cwd">): string {
36 return chooseServer(serverFlag(args), env.cwd, env.env);
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare39const NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
pinch95Pipeline run key: when ABSO_KEY_FILE names a file holding an agent key and no token or folder key is set, the client sends that key (only to servers a token may go to), keeps it in memory only, and never prints it. abso join takes the agent from ABSO_AGENT for such a key; status and doctor name it as a pipeline run's key.Compare41function agentFrom(args: Parsed, named?: string): string {
42 const agent = named ?? str(args, "agent");
init0Start the project43 if (!agent) throw new UsageError("give this folder's agent name with --agent <name>");
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare44 if (!NAME.test(agent))
init0Start the project45 throw new UsageError(`agent names are letters, digits, dot, dash and underscore (got ${JSON.stringify(agent)})`);
46 return agent;
47}
49function makeSettings(args: Parsed, env: Env, project: string): Settings {
50 return { server: serverFrom(args, env), project, agent: agentFrom(args) };
51}
onboard224join: on a project with nothing in it yet, say what comes next. The join wrote no files and stopped there; now it adds: The project is empty. Put its files in this folder, then abso push -m "why" publishes them. Not for a reader, or when the folder already had files. Tests: client/test/join-empty.test.ts (2).Compare53/**
54 * A new project has nothing in it yet: say what comes next, since the join itself wrote nothing. Not for a reader, which
55 * can't push, or when files were already in the folder (the join's own line names them).
56 */
57export function emptyHint(version: number, written: number, kept: number, reader: boolean): string[] {
58 if (reader || version !== 0 || written > 0 || kept > 0) return [];
59 return ['The project is empty. Put its files in this folder, then abso push -m "why" publishes them.'];
60}
63 if (args.positionals.length > 1) throw new UsageError("init takes one folder");
64 const root = resolve(env.cwd, args.positionals[0] ?? ".");
65 if (!existsSync(root) || !statSync(root).isDirectory()) throw new UsageError(`${root} is not a folder`);
review17New folders keep their state in .abso/, and the machine's sign-in, servers and admin token are read from ~/.abso/ first, then ~/.avcs/. A folder made before, with only .avcs/, is untouched: it keeps working, is never half-moved, and no older client or mod loses it. stateDir(root) and homeFile/homeWritePath are in the new client/src/state-dir.ts and replace the old AVCS_DIR constant everywhere. abso login writes only to ~/.abso/ and leaves ~/.avcs/ alone; logout removes both copies. The edit mod and the view mod read either folder. .abso is skipped like .avcs (including its odd spellings), the git exclude names whichever folder is in use, and the messages name .abso. Not changed: avcs.json (the server reads that name, so abso.json needs the server to learn it first), .avcsignore, env var names and wire headers. Tests: 709 run, 708 pass (one is skipped), including new ones for the folder choice, the home-file order and box sign-in; biome ci has no errors.Compare66 if (findRoot(root) === root) throw new UsageError(`${root} already has .abso/config.json`);
68 if (!project) throw new UsageError("give the project a name with --project <name>");
box-grants185abso init, init --org and org new from a signed-in box (abso 663). On a server this box is signed in to and with no token for it, abso init makes the project as the person who approved the box, through the server's POST /box/projects (the website's own create): its folder (up to 24 MB) is the first version, --public or --private picks visibility (private by default), --org makes it an organization's project, and one Idempotency-Key per folder (kept in .abso/init-key until it finishes) makes a retry the same project. The folder then joins at once with its own key from the box (--agent, else the box's name). abso org new <name> [--name] makes an organization through POST /box/orgs. abso box and login say 'all of yours, now and later' for a member-all grant. Without a box, init and init --org say to abso login. Tests: orgs, box, help; full suite passes.Compare69 if (bool(args, "public") && bool(args, "private")) throw new UsageError("--public or --private, not both");
70 // A box signed in here, and no token for this server: the project is made as the person who approved the box,
71 // the way the website makes one (abso 663).
72 const server = serverFrom(args, env);
73 const box = readBox(server);
74 if (box && !tokenFor(server, env.env) && !fromEnv(env.env, "KEY_FILE"))
75 return initFromBox(args, env, root, project, server, box);
76 const org = str(args, "org");
77 if (org !== undefined) return initInOrg(org, server);
79 const asIs = bool(args, "as-is");
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare80 const absoignore = join(root, ".absoignore");
81 const wroteIgnore = !asIs && !existsSync(absoignore) && !existsSync(join(root, ".avcsignore"));
82 if (wroteIgnore) writeFileSync(absoignore, STARTING_ABSOIGNORE);
init0Start the project83 // What the server runs on each new version (#39), guessed from package.json; recorded with the rest.
84 const wroteProject = asIs ? "exists" : writeStartingProjectFile(root);
85 const { files, blobs, modes, leftOut } = readFolder(root, loadIgnore(root));
86 const token = tokenFor(config.server, env.env);
87 const api = new Api({ ...config, ...(token ? { token } : {}) });
88 await uploadBlobs(api, blobs);
89 const answer = await api.init(
90 Object.fromEntries(files),
91 modes,
92 Object.fromEntries([...blobs].map(([rel, b]) => [rel, b.sha])),
93 );
94 writeConfig(root, config);
95 clearKnown(root);
96 for (const [rel, text] of files) writeKnown(root, rel, text);
97 writeKnownBlobs(root, new Map([...blobs].map(([rel, b]) => [rel, b.sha])));
98 const knownModes = new Map<string, FullMode>();
99 foldModes(knownModes, modes);
100 writeKnownModes(root, knownModes);
101 const synced = await syncFolder(root, api);
102 return {
103 text: [
104 `Created project ${project} at version ${answer.version} from ${plural(files.size, "text file")} in ${root}.`,
105 ...leftOutText(leftOut),
106 ...(wroteIgnore
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare107 ? ["Wrote a starting .absoignore (Claude Code state and operating system files); edit it like .gitignore."]
109 ...startingProjectFileText(wroteProject),
110 ...(answer.skipped && answer.skipped.length > 0 ? [`The server skipped: ${answer.skipped.join(", ")}.`] : []),
review17New folders keep their state in .abso/, and the machine's sign-in, servers and admin token are read from ~/.abso/ first, then ~/.avcs/. A folder made before, with only .avcs/, is untouched: it keeps working, is never half-moved, and no older client or mod loses it. stateDir(root) and homeFile/homeWritePath are in the new client/src/state-dir.ts and replace the old AVCS_DIR constant everywhere. abso login writes only to ~/.abso/ and leaves ~/.avcs/ alone; logout removes both copies. The edit mod and the view mod read either folder. .abso is skipped like .avcs (including its odd spellings), the git exclude names whichever folder is in use, and the messages name .abso. Not changed: avcs.json (the server reads that name, so abso.json needs the server to learn it first), .avcsignore, env var names and wire headers. Tests: 709 run, 708 pass (one is skipped), including new ones for the folder choice, the home-file order and box sign-in; biome ci has no errors.Compare111 `This folder is agent ${config.agent}. Settings are in .abso/config.json.`,
113 ...(synced.kept.length > 0 ? [`Kept your copy of ${synced.kept.join(", ")}.`] : []),
114 hookHint(env.env),
115 ].join("\n"),
116 json: {
117 project,
118 version: answer.version,
119 files: files.size,
120 root,
121 agent: config.agent,
box-grants185abso init, init --org and org new from a signed-in box (abso 663). On a server this box is signed in to and with no token for it, abso init makes the project as the person who approved the box, through the server's POST /box/projects (the website's own create): its folder (up to 24 MB) is the first version, --public or --private picks visibility (private by default), --org makes it an organization's project, and one Idempotency-Key per folder (kept in .abso/init-key until it finishes) makes a retry the same project. The folder then joins at once with its own key from the box (--agent, else the box's name). abso org new <name> [--name] makes an organization through POST /box/orgs. abso box and login say 'all of yours, now and later' for a member-all grant. Without a box, init and init --org say to abso login. Tests: orgs, box, help; full suite passes.Compare122 wroteAbsoignore: wroteIgnore,
123 wroteProjectFile: typeof wroteProject === "string" ? null : wroteProject,
124 leftOut,
125 },
126 };
127}
129/** The most a new project's folder may be from a box: the server takes a body up to 25 MB, base64 and JSON included. */
130const BOX_INIT_MAX = 24 * 1024 * 1024;
131/** The Idempotency-Key of an abso init that didn't finish, so running it again makes the same project (abso 663). */
132const INIT_KEY = "init-key";
134/**
135 * abso init from a signed-in box (abso 663): the server makes the project as the person who approved the box, the way the
136 * website's New project does (owner, visibility, address), with the folder as its first version. This folder then
137 * joins it like abso join, with its own key from the box, so it works at once with no new approval.
138 */
139async function initFromBox(
140 args: Parsed,
141 env: Env,
142 root: string,
143 project: string,
144 server: string,
145 box: BoxRecord,
146): Promise<Output> {
147 if (!NAME.test(project))
148 throw new UsageError(
149 `project names are letters, digits, dot, dash and underscore (got ${JSON.stringify(project)})`,
150 );
151 const named = str(args, "agent");
152 if (named !== undefined) agentFrom(args);
153 const asIs = bool(args, "as-is");
154 const absoignore = join(root, ".absoignore");
155 const wroteIgnore = !asIs && !existsSync(absoignore) && !existsSync(join(root, ".avcsignore"));
156 if (wroteIgnore) writeFileSync(absoignore, STARTING_ABSOIGNORE);
157 const wroteProject = asIs ? "exists" : writeStartingProjectFile(root);
158 const { files, blobs, leftOut } = readFolder(root, loadIgnore(root));
159 const listed: NonNullable<NewProject["files"]>[number][] = [
160 ...[...files].map(([path, text]) => ({ path, text })),
161 ...[...blobs].map(([path, b]) => ({ path, base64: Buffer.from(b.bytes).toString("base64") })),
162 ];
163 const org = str(args, "org");
164 const body: NewProject = {
165 name: project,
166 ...(org === undefined ? {} : { owner: org }),
167 ...(bool(args, "public")
168 ? { visibility: "public" as const }
169 : bool(args, "private")
170 ? { visibility: "private" as const }
171 : {}),
172 ...(listed.length > 0 ? { files: listed } : {}),
173 };
174 if (JSON.stringify(body).length > BOX_INIT_MAX)
175 throw new UsageError(
176 `${root} is over 24 MB to send. Make ${project} with abso init on a smaller folder (or on the website), then copy the rest in and push.`,
177 );
178 // One key per folder until it finishes: running the same abso init again is the same project, never a second.
179 const keyPath = join(stateDir(root), INIT_KEY);
180 let key = existsSync(keyPath) ? readFileSync(keyPath, "utf8").trim() : "";
181 if (!/^[0-9a-f-]{36}$/.test(key)) {
182 key = randomUUID();
183 mkdirSync(stateDir(root), { recursive: true });
184 writeFileSync(keyPath, key);
185 }
186 const made = await boxCreateProject(box, body, key);
187 const visibility = typeof made.visibility === "string" ? made.visibility : "private";
188 const minted =
189 named !== undefined
190 ? { ...(await mintKey(box, project, named)), agent: named }
191 : await mintFreeName(box, project, defaultAgentName());
192 const config = { server, project, agent: minted.agent };
193 writeConfig(root, config);
194 clearKnown(root);
195 installKey(root, JSON.stringify({ key: minted.key, id: minted.id }));
196 rmSync(keyPath, { force: true });
197 const synced = await syncFolder(root, new Api(readConfig(root, env.env)), true);
198 const owner = org ?? "you";
199 return {
200 text: [
201 `Created project ${project} (${visibility}, owned by ${owner}) at version ${synced.version} from ${plural(listed.length, "file")} in ${root}.`,
202 ...leftOutText(leftOut),
203 ...(wroteIgnore
204 ? ["Wrote a starting .absoignore (Claude Code state and operating system files); edit it like .gitignore."]
205 : []),
206 ...startingProjectFileText(wroteProject),
207 `This folder is agent ${minted.agent}, with its own key, ${minted.id}, made from this box's sign-in. Settings are in .abso/config.json.`,
208 ...refusedText(synced.refused),
209 ...(synced.written.length > 0 ? [`Wrote ${plural(synced.written.length, "file")} from shared.`] : []),
210 hookHint(env.env),
211 ].join("\n"),
212 json: {
213 project,
214 id: made.id ?? null,
215 owner: made.owner ?? null,
216 visibility,
217 version: synced.version,
218 files: listed.length,
219 root,
220 agent: minted.agent,
221 key_id: minted.id,
review27Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)Compare222 wroteAbsoignore: wroteIgnore,
224 leftOut,
225 },
226 };
227}
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare229/**
trials64join: a folder prepared with abso key install --server is joined where it is again (Pinch's catch on 63).
- --agent keeps 'here' as the default, as before 63, so scripts that join into a prepared folder still do. The ./<project> rule is only for a join with no --agent.
- A folder holding only abso's own state folder (.abso, or the older .avcs) counts as empty.
- New tests: joinFolder's rule (empty, only .abso, files here, --agent, --dir, a taken ./<project>), and a runJoin test that installs a key with --server and joins with --agent and no --dir: it joins here and sends that key (the shared token is wrong, so only the key gets through). The git line-endings test is back to joining without --dir.
- Issue numbers taken out of the new code comments and test names.Compare230 * Where abso join writes: --dir, else here when --agent is given (as before, so a folder prepared with
231 * abso key install --server is joined where its key is). With no --agent: here when this folder is empty, else
232 * ./<project>, which has to be new or empty so nobody's files are written over. A folder holding only abso's own
233 * state folder counts as empty.
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare234 */
trials64join: a folder prepared with abso key install --server is joined where it is again (Pinch's catch on 63).
- --agent keeps 'here' as the default, as before 63, so scripts that join into a prepared folder still do. The ./<project> rule is only for a join with no --agent.
- A folder holding only abso's own state folder (.abso, or the older .avcs) counts as empty.
- New tests: joinFolder's rule (empty, only .abso, files here, --agent, --dir, a taken ./<project>), and a runJoin test that installs a key with --server and joins with --agent and no --dir: it joins here and sends that key (the shared token is wrong, so only the key gets through). The git line-endings test is back to joining without --dir.
- Issue numbers taken out of the new code comments and test names.Compare235export function joinFolder(args: Parsed, env: Pick<Env, "cwd">, project: string): string {
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare236 const dir = str(args, "dir");
237 if (dir !== undefined) return resolve(env.cwd, dir);
trials64join: a folder prepared with abso key install --server is joined where it is again (Pinch's catch on 63).
- --agent keeps 'here' as the default, as before 63, so scripts that join into a prepared folder still do. The ./<project> rule is only for a join with no --agent.
- A folder holding only abso's own state folder (.abso, or the older .avcs) counts as empty.
- New tests: joinFolder's rule (empty, only .abso, files here, --agent, --dir, a taken ./<project>), and a runJoin test that installs a key with --server and joins with --agent and no --dir: it joins here and sends that key (the shared token is wrong, so only the key gets through). The git line-endings test is back to joining without --dir.
- Issue numbers taken out of the new code comments and test names.Compare238 if (str(args, "agent") !== undefined) return resolve(env.cwd);
239 const empty = (path: string) => readdirSync(path).every((name) => name === STATE_DIR || name === OLD_STATE_DIR);
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare240 if (empty(env.cwd)) return resolve(env.cwd);
241 const sub = resolve(env.cwd, project);
242 if (existsSync(sub) && (!statSync(sub).isDirectory() || !empty(sub)))
243 throw new UsageError(`${sub} already has files in it: say where to join with --dir <folder>`);
244 return sub;
245}
pinch70join, signed out: a public project's page is linked as https://abso.dev/christopher/<project>, the website's address for it now that its /p/ pages are gone. Signed out, the server doesn't say who owns a project, and the website puts every project under that one owner for now.Compare247/** Signed out, the server doesn't say who owns a project, and the website puts every project under this one owner for now. */
248const SITE_OWNER = "christopher";
pinch69join, signed out: for a public project, the error names its page on the website and says the client needs a sign-in, even to read ('abso-core is public: read it at https://abso.dev/p/abso-core (every page is also JSON). The client needs a sign-in, even to read: abso login.'). Whether it's public is asked of the server with no credentials. A project that isn't public keeps the plain 'abso login signs it in'. Product Lead's wording.Compare250/**
pinch86Read a public project signed out: abso join <project> --reader with no sign-in makes a folder that reads it. The folder holds only its settings (server, project, visitor), sends no sign-in whatever the environment or the box holds, follows no redirect, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused before any call, from an allow-list a new command has to join. join answers a private project and a missing one alike, by the status answer's code alone. Tests in client/test/visitor.test.ts.Compare251 * Whether anyone can read the project: its status answers with no credentials. Only the answer's code
252 * counts, never its body, and no redirect is followed. A private project and a missing one look the same.
pinch69join, signed out: for a public project, the error names its page on the website and says the client needs a sign-in, even to read ('abso-core is public: read it at https://abso.dev/p/abso-core (every page is also JSON). The client needs a sign-in, even to read: abso login.'). Whether it's public is asked of the server with no credentials. A project that isn't public keeps the plain 'abso login signs it in'. Product Lead's wording.Compare253 */
pinch86Read a public project signed out: abso join <project> --reader with no sign-in makes a folder that reads it. The folder holds only its settings (server, project, visitor), sends no sign-in whatever the environment or the box holds, follows no redirect, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused before any call, from an allow-list a new command has to join. join answers a private project and a missing one alike, by the status answer's code alone. Tests in client/test/visitor.test.ts.Compare254export async function isPublic(server: string, project: string): Promise<boolean> {
pinch69join, signed out: for a public project, the error names its page on the website and says the client needs a sign-in, even to read ('abso-core is public: read it at https://abso.dev/p/abso-core (every page is also JSON). The client needs a sign-in, even to read: abso login.'). Whether it's public is asked of the server with no credentials. A project that isn't public keeps the plain 'abso login signs it in'. Product Lead's wording.Compare255 try {
pinch86Read a public project signed out: abso join <project> --reader with no sign-in makes a folder that reads it. The folder holds only its settings (server, project, visitor), sends no sign-in whatever the environment or the box holds, follows no redirect, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused before any call, from an allow-list a new command has to join. join answers a private project and a missing one alike, by the status answer's code alone. Tests in client/test/visitor.test.ts.Compare256 const response = await fetch(new URL(`/p/${encodeURIComponent(project)}/status`, server), {
257 redirect: "error",
258 signal: AbortSignal.timeout(3000),
259 });
260 return response.status === 200;
261 } catch {
262 return false;
263 }
264}
266/**
267 * Why a join failed signed out. Without --reader, the client reads only as an agent, which needs a
268 * sign-in; a public project is read signed out on the website, or with abso join --reader.
269 */
pinch69join, signed out: for a public project, the error names its page on the website and says the client needs a sign-in, even to read ('abso-core is public: read it at https://abso.dev/p/abso-core (every page is also JSON). The client needs a sign-in, even to read: abso login.'). Whether it's public is asked of the server with no credentials. A project that isn't public keeps the plain 'abso login signs it in'. Product Lead's wording.Compare270async function signedOut(server: string, project: string): Promise<string> {
pinch86Read a public project signed out: abso join <project> --reader with no sign-in makes a folder that reads it. The folder holds only its settings (server, project, visitor), sends no sign-in whatever the environment or the box holds, follows no redirect, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused before any call, from an allow-list a new command has to join. join answers a private project and a missing one alike, by the status answer's code alone. Tests in client/test/visitor.test.ts.Compare271 return (await isPublic(server, project))
272 ? `${project} is public: read it at ${siteOf(server)}/${SITE_OWNER}/${project} (every page is also JSON), or here with abso join ${project} --reader. To work on it: abso login.`
speed156With nothing naming a server, the client now uses prod (https://api.abso.dev). Every command picks its server in one order: --server, else the joined folder's own server, else ABSO_SERVER, else prod. Which servers this box is signed in to no longer picks one, so a box signed in to staging and prod both, or to staging alone, goes to prod instead of refusing or quietly using staging; staging is a deliberate --server, a joined staging folder, or ABSO_SERVER. An explicit choice is used as given. A malformed ABSO_SERVER is refused like a malformed --server. When this box isn't signed in to the chosen server but is to others, whoami and join name them and how to pick one. Help states the order for every command that picks its server. For abso-core issue 9.Compare273 : `This box isn't signed in to ${server}. abso login signs it in.${elsewhereText(server, `abso join ${project}`)}`;
pinch86Read a public project signed out: abso join <project> --reader with no sign-in makes a folder that reads it. The folder holds only its settings (server, project, visitor), sends no sign-in whatever the environment or the box holds, follows no redirect, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused before any call, from an allow-list a new command has to join. join answers a private project and a missing one alike, by the status answer's code alone. Tests in client/test/visitor.test.ts.Compare274}
276/** A folder that reads a public project signed out: no agent, no key, no copy of the files. */
277async function joinAsVisitor(root: string, server: string, project: string, env: Env): Promise<Output> {
278 writeConfig(root, { server, project, agent: "", visitor: true });
279 const api = new Api(readConfig(root, env.env));
280 let version: number;
281 try {
282 version = (await api.status()).version;
283 } catch (error) {
284 rmSync(stateDir(root), { recursive: true, force: true });
285 throw error;
286 }
287 return {
288 text: [
289 `Joined ${project} to read it signed out, at version ${version}, in ${root}. Nothing is sent with a sign-in, and nothing here is recorded.`,
290 `This folder holds no copy of the files: abso files lists them, abso show ${version}:<file> prints one, and status, log, blame, why, where, issues, issue and search read the rest.`,
291 `To work on ${project}: abso login, then abso join ${project} in a new folder.`,
292 ...(root === resolve(env.cwd) ? [] : [`cd ${relative(env.cwd, root) || root}`]),
293 ].join("\n"),
294 json: { project, visitor: true, version, root },
295 };
pinch69join, signed out: for a public project, the error names its page on the website and says the client needs a sign-in, even to read ('abso-core is public: read it at https://abso.dev/p/abso-core (every page is also JSON). The client needs a sign-in, even to read: abso login.'). Whether it's public is asked of the server with no credentials. A project that isn't public keeps the plain 'abso login signs it in'. Product Lead's wording.Compare296}
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare299 if (args.positionals.length !== 1) throw new UsageError("join takes the project name: abso join <project>");
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare301 if (!NAME.test(project))
302 throw new UsageError(
303 `project names are letters, digits, dot, dash and underscore (got ${JSON.stringify(project)})`,
304 );
305 const root = joinFolder(args, env, project);
review17New folders keep their state in .abso/, and the machine's sign-in, servers and admin token are read from ~/.abso/ first, then ~/.avcs/. A folder made before, with only .avcs/, is untouched: it keeps working, is never half-moved, and no older client or mod loses it. stateDir(root) and homeFile/homeWritePath are in the new client/src/state-dir.ts and replace the old AVCS_DIR constant everywhere. abso login writes only to ~/.abso/ and leaves ~/.avcs/ alone; logout removes both copies. The edit mod and the view mod read either folder. .abso is skipped like .avcs (including its odd spellings), the git exclude names whichever folder is in use, and the messages name .abso. Not changed: avcs.json (the server reads that name, so abso.json needs the server to learn it first), .avcsignore, env var names and wire headers. Tests: 709 run, 708 pass (one is skipped), including new ones for the folder choice, the home-file order and box sign-in; biome ci has no errors.Compare307 if (findRoot(root) === root) throw new UsageError(`${root} already has .abso/config.json`);
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare309 const server = serverFrom(args, env);
310 const box = readBox(server);
311 const hasKey = existsSync(join(stateDir(root), "key"));
312 let agent: string;
313 let minted: { key: string; id: string } | undefined;
314 if (str(args, "agent") !== undefined) {
315 agent = agentFrom(args);
pinch95Pipeline run key: when ABSO_KEY_FILE names a file holding an agent key and no token or folder key is set, the client sends that key (only to servers a token may go to), keeps it in memory only, and never prints it. abso join takes the agent from ABSO_AGENT for such a key; status and doctor name it as a pipeline run's key.Compare316 minted = box && !hasKey && !fromEnv(env.env, "KEY_FILE") ? await mintKey(box, project, agent) : undefined;
317 } else if (fromEnv(env.env, "KEY_FILE")) {
318 // A pipeline run's key (ABSO_KEY_FILE) belongs to one agent, which the runner names in ABSO_AGENT.
319 const named = fromEnv(env.env, "AGENT");
320 if (!named)
321 throw new UsageError("a pipeline run's key joins as its own agent: give it with --agent <name> or ABSO_AGENT");
322 agent = agentFrom(args, named);
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare323 } else {
pinch86Read a public project signed out: abso join <project> --reader with no sign-in makes a folder that reads it. The folder holds only its settings (server, project, visitor), sends no sign-in whatever the environment or the box holds, follows no redirect, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused before any call, from an allow-list a new command has to join. join answers a private project and a missing one alike, by the status answer's code alone. Tests in client/test/visitor.test.ts.Compare324 // No --agent: the box's name, or the next free -2, -3. Not signed in, --reader reads a public project signed out.
325 if (!box && reader && !hasKey && (await isPublic(server, project)))
326 return joinAsVisitor(root, server, project, env);
pinch69join, signed out: for a public project, the error names its page on the website and says the client needs a sign-in, even to read ('abso-core is public: read it at https://abso.dev/p/abso-core (every page is also JSON). The client needs a sign-in, even to read: abso login.'). Whether it's public is asked of the server with no credentials. A project that isn't public keeps the plain 'abso login signs it in'. Product Lead's wording.Compare327 if (!box)
328 throw new UsageError(
329 `${await signedOut(server, project)} (A folder that already has a key joins with --agent <name>.)`,
330 );
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare331 if (hasKey) throw new UsageError(`${root} already has a key: give its agent's name with --agent <name>`);
332 const free = await mintFreeName(box, project, defaultAgentName());
333 agent = free.agent;
334 minted = { key: free.key, id: free.id };
335 }
336 const config = { server, project, agent, ...(reader ? { reader: true } : {}) };
338 clearKnown(root);
339 if (minted) installKey(root, JSON.stringify(minted));
340 const settings = readConfig(root, env.env);
341 const api = new Api(settings);
342 let synced: Awaited<ReturnType<typeof syncFolder>>;
343 try {
344 // Before the sync, so the server never takes a record from this folder.
345 if (reader) await api.reader(true);
346 // Every file, even when the server has seen this agent sync before: its plain sync answer would hold only what changed since (#37).
347 synced = await syncFolder(root, api, true);
348 } catch (error) {
349 if (!(error instanceof ApiError && error.status === 401 && !box && !settings.token)) throw error;
review17New folders keep their state in .abso/, and the machine's sign-in, servers and admin token are read from ~/.abso/ first, then ~/.avcs/. A folder made before, with only .avcs/, is untouched: it keeps working, is never half-moved, and no older client or mod loses it. stateDir(root) and homeFile/homeWritePath are in the new client/src/state-dir.ts and replace the old AVCS_DIR constant everywhere. abso login writes only to ~/.abso/ and leaves ~/.avcs/ alone; logout removes both copies. The edit mod and the view mod read either folder. .abso is skipped like .avcs (including its odd spellings), the git exclude names whichever folder is in use, and the messages name .abso. Not changed: avcs.json (the server reads that name, so abso.json needs the server to learn it first), .avcsignore, env var names and wire headers. Tests: 709 run, 708 pass (one is skipped), including new ones for the folder choice, the home-file order and box sign-in; biome ci has no errors.Compare350 rmSync(stateDir(root), { recursive: true, force: true });
pinch69join, signed out: for a public project, the error names its page on the website and says the client needs a sign-in, even to read ('abso-core is public: read it at https://abso.dev/p/abso-core (every page is also JSON). The client needs a sign-in, even to read: abso login.'). Whether it's public is asked of the server with no credentials. A project that isn't public keeps the plain 'abso login signs it in'. Product Lead's wording.Compare351 throw new UsageError(await signedOut(config.server, project));
353 return {
354 text: [
rename100abso publish is now abso push, abso sync is now abso pull (abso 427)
Commands, help, flags, messages, MCP tool names and descriptions, hook text, README, SKILL.md and tests say push and pull; "shared" stays the noun ("Pushed version N"). No aliases, no notices. A queued push that was "pulled" is now "turned back", so pull means one thing.
push -f/--force/-u/--all/--tags and pull --rebase/--ff-only/--squash refuse with one plain line naming the abso way; push and pull take no remote or branch.
Kept as stored: log entry kinds (publish, sync, pulled), HTTP route paths, the pipeline trigger on: publish, the yours (unpublished) marker, npm-publish.Compare355 `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.` : ""}`,
357 ...(synced.kept.length > 0
358 ? [
359 `These files were already here and differ from shared, so they were left alone: ${synced.kept.join(", ")}. abso record sends them as your changes.`,
360 ]
361 : []),
onboard224join: on a project with nothing in it yet, say what comes next. The join wrote no files and stopped there; now it adds: The project is empty. Put its files in this folder, then abso push -m "why" publishes them. Not for a reader, or when the folder already had files. Tests: client/test/join-empty.test.ts (2).Compare362 ...emptyHint(synced.version, synced.written.length, synced.kept.length, reader),
364 hookHint(env.env),
trials63abso join <project> works with no --agent and no --dir (abso issue 351), so the project page can show npx abso-cli join <project>.
- Agent: the box's name (the hostname abso login sends), lower-cased; if taken, <name>-2, -3, up to 20 tries. Names this box already holds in the project (GET /box) are skipped without minting, since minting one again replaces that agent's key and would cut off its folder. A 409 for a taken name moves on; the agent-limit 409 says the limit and where to revoke. No box sign-in: abso login first, or --agent.
- Folder: --dir, else here when empty, else ./<project>, which must be new or empty; it prints cd <folder> when it isn't here.
- --agent, --dir and --server still win. Project names are checked before use as a folder.
Tests: box.test.ts (mintFreeName: held name skipped, 409 moves on, agent limit), client.test.ts (empty folder, ./<project>, refusing a non-empty one); the git line-endings test now joins with --dir . since its folder has files.Compare365 ...(root === resolve(env.cwd) ? [] : [`cd ${relative(env.cwd, root) || root}`]),
367 json: {
368 project,
369 agent: config.agent,
370 version: synced.version,
371 written: synced.written,
372 kept: synced.kept,
373 refused: synced.refused,
374 root,
375 },
376 };
377}
infra-split37Comments and test names give each reason in plain words, without naming who raised it
Notes like "(#37, Builder 5)" or "(AVCS - Security)" become "(#37)" or go, and a private commit hash after a name goes with it. Issue numbers and references such as git's CVE-2019-1353 stay. Only comments and test names change; no behavior changes.Compare379/** What to run before building or testing here (#43): a joined folder has the project's files, not what avcs.json's setup installs. */
381 const read = readProjectFile(root);
382 const setup = read !== null && "file" in read ? read.file.setup : "";
383 return setup === ""
384 ? []
review28Client: abso.json is the project file (avcs.json still read; a new project gets abso.json unless it has either); new folders get .abso when no installed mod is older than 0.2.0; both mods are 0.2.0 (abso 253, 224)Compare385 : [`Nothing is installed yet. Before building or testing here, run ${projectFileName(root)}'s setup: ${setup}`];
388function hookHint(env: Readonly<Record<string, string | undefined>>): string {
389 return modInstalled(env)
review16The client says abso, not avcs, in everything a person reads: the hints after an issue view and abso issue new, the help for issue, issues, ask, answer and waiting, the 'abso:' prefix on notices from run, publish --check, the queue and serve, the 'News from abso' header, the MCP server's name and the claude mcp add example, and the view mod's status line. Only printed words changed: file and folder names (avcs.json, .avcs/, ~/.avcs/token), environment variables and wire headers are as they were, and the tests were updated to the new words (704 pass, biome ci clean).Compare390 ? "Edits made by Claude Code here are recorded by the abso mod on this machine, signed in as this folder. Anything else: abso record."
391 : `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.`;