- MCP
- show on this site's /mcp
- CLI
- abso show 27 --json
- JSON
- /christopher/abso-core/versions/27?format=json
Client: ABSO_ environment names (AVCS_ still read), .absoignore (.avcsignore still read), .abso-export.json, shot files; READMEs say abso (abso 224)
of shared·review··Not checked
Version 26 · Files at version 27
27 files, 231 lines added, 148 removed.
--- a/README.md
+++ b/README.md
@@ -87,19 +87,19 @@
8787
8989
90−The client reads its token from `AVCS_TOKEN`, or else from `~/.avcs/token`.
9292
96−`~/.avcs/servers.json`, with its Issues server if it has one:
9797
101101
102−`AVCS_TRUSTED_SERVERS` (comma-separated) does the same for one shell. Off
--- a/client/README.md
+++ b/client/README.md
@@ -13,28 +13,32 @@
1313
1515
16−The token comes from the `AVCS_TOKEN` environment variable, or else from
17−`~/.avcs/token`, outside every repo. It is never written into the folder.
19+
20−machine names, and to this machine itself, since any `.avcs/config.json` can
23−`~/.avcs/servers.json`, beside the token, with its Issues Worker if it has one:
2428
2832
29−`AVCS_TRUSTED_SERVERS` (comma-separated) adds servers for one shell, and
30−`AVCS_ISSUES_SERVER` names the Issues Worker. The mods follow the same rule.
3438
37−`.git`, `.claude` or `.avcs` (in any case), onto a Windows device name, or
4044
@@ -62,14 +66,14 @@
6266| `abso run --parallel "<command>" "<command>"...` | One upload, then the commands run at once in the box. Each line a command prints starts with its label (`[1]`, `[2]`, ...; the labels are listed first), stdout and stderr kept apart; at the end, each command's exit code, and `abso run` exits with the worst (highest) of them. |
6367| `abso run --at <version> [--files <glob>] ...` | Runs a past version of the folder's space in the box instead of the folder (for bisecting), or, with `--files`, the folder with only the matching files as they were at that version (`*` within a folder, `**` across folders, comma-separated; a plain path takes a file or a whole folder). The folder is never touched, so nothing old gets recorded. The run sees `AVCS_AT`. |
6468| `abso run --with <box path>=<local path>[,...] ...` | Adds files, or every file under a local folder, to this run only: they go to the box (text with LF line endings) and are never written to your folder or recorded, so an A/B run leaves the project alone. A path already in the folder is replaced for this run. |
65−| `abso fetch <glob...>` / `abso run --fetch <glob>[,<glob>...] ...` | Files a run left in the box's `/w` (bash globs: `out/*.png`, `**/*.log`; `fetch` takes them space-separated, `run --fetch` comma-separated in one argument), written into the folder, but only where abso ignores them (add `out/` to `.avcsignore`, say), so a fetched file never becomes an edit; the rest are named and left alone, and every path is screened as a sync's are. `run --fetch` fetches when the run ends. The box's `/w` is replaced by your folder on every run; the rest of the box (`/tmp`, `~/.cache`, `/w/node_modules`) lasts between runs until the box stops (idle 30 minutes, or restarted). |
69+| `abso fetch <glob...>` / `abso run --fetch <glob>[,<glob>...] ...` | Files a run left in the box's `/w` (bash globs: `out/*.png`, `**/*.log`; `fetch` takes them space-separated, `run --fetch` comma-separated in one argument), written into the folder, but only where abso ignores them (add `out/` to `.absoignore`, say), so a fetched file never becomes an edit; the rest are named and left alone, and every path is screened as a sync's are. `run --fetch` fetches when the run ends. The box's `/w` is replaced by your folder on every run; the rest of the box (`/tmp`, `~/.cache`, `/w/node_modules`) lasts between runs until the box stops (idle 30 minutes, or restarted). |
6670| `abso pause` / `abso resume` | While paused, nothing from the folder is sent: the edit hook skips, `abso record` refuses, and other commands don't record first. For swapping files in by hand; `abso run --at` usually does it better. |
6771| `abso logs <run id>` | A run's output from its start (stdout and stderr apart), for as long as the box keeps it, waiting until it ends; exits with its code. For a detached run, or one whose connection was lost. |
6872| `abso run -- <program> <arg...>` | The same, but each word reaches the program exactly as typed: the client quotes it for the box's shell, so quotes, backslashes and regex text (`'a(b)'`, `'\w+'`) need no second layer of quoting. |
6973| `abso status` | Shared's version, each agent's base and draft, what in this folder is not yet recorded, any file of your view the folder is missing, and files that differ from what abso recorded only in line endings (CRLF on disk; abso records them, and `abso run` sends them, with LF). `--short` prints one word to stamp a build with: the version the folder is on (`214`), with a named draft (`coast@3`), and `+unpublished` when it holds changes not yet published. |
7074| `abso who <file...>` | For each file: who last changed it, who has unpublished changes in it (and at which lines), and whose `abso start` note names it. For asking before you work in someone's file. |
7175| `abso fix-eol` | Rewrites the files that differ from what abso recorded only in line endings (CRLF here) with LF, as recorded. Their text is unchanged, so nothing is recorded; `abso status` stops counting them. |
72−| `abso export <dir> [--version <N>]` | Writes one published version of this folder's space (the newest unless `--version`) into a folder of its own, for a build that doesn't move while shared does. The folder must be empty, an earlier export (which it replaces, keeping its `node_modules` and whatever `--keep <glob>` names), or inside the abso folder only where `.avcsignore` leaves it out. `.avcs-export.json` there names the version. Your folder and your base are untouched. |
76+| `abso export <dir> [--version <N>]` | Writes one published version of this folder's space (the newest unless `--version`) into a folder of its own, for a build that doesn't move while shared does. The folder must be empty, an earlier export (which it replaces, keeping its `node_modules` and whatever `--keep <glob>` names), or inside the abso folder only where `.absoignore` leaves it out. `.avcs-export.json` there names the version. Your folder and your base are untouched. |
7377| `abso files [glob...]` | The files your folder should hold (your view), marking any it's missing. `--draft <name>` (or `--draft shared`) and `--version <N>` list a space's files as published. |
7478| `abso switch <draft>` / `abso switch shared` | Records, then moves the folder to a named draft (made on shared's newest version if it's new) or back to shared. Your unpublished changes are parked on the server where you leave, and come back when you return. Then it syncs, so the folder shows the space as it is now; collisions are listed as sync lists them. |
7579| `abso switch -c <draft>` | Starts a new named draft that carries your current unpublished changes. |
@@ -90,7 +94,7 @@
9094| `abso pluck <draft> <version...> -m "why" [--with-dependencies]` | Takes some versions of a named draft into shared as one version, like `git cherry-pick`. The draft stays as it is. |
9195| `abso amend -m "new message"` | Corrects the message of your newest publish in this space. The log keeps the first message. |
9296| `abso label <name> [--version n] [--remove]` / `abso labels` | Puts a label on a version of shared (the newest by default) or takes it off, like a git tag; `labels` lists them all. |
93−| `abso follow <label>` / `abso follow --none` | Makes this folder follow a label: every sync takes it to the newest version of shared with that label. `--none` goes back to shared's newest. Saved in `.avcs/config.json`. |
97+| `abso follow <label>` / `abso follow --none` | Makes this folder follow a label: every sync takes it to the newest version of shared with that label. `--none` goes back to shared's newest. Saved in `.abso/config.json`. |
9498| `abso check-ignore <path...>` | Whether abso leaves each path out, and which line of which ignore file decided (see "What is left out"). |
9599| `abso pipeline check [file] [--on <event>]` | Reads the folder's pipeline file (abso.yml, abso.yaml or avcs.json, or the file named) and lists each problem as `<path>: <message>`: a cycle in needs, a job or pipeline that doesn't exist, secrets in a pipeline a draft can start, keys it doesn't know. Exits 1 on problems; otherwise lists each pipeline's jobs in the order they run. With `--on publish|draft|green|land|hand|schedule` (and `--space`, `--pipeline` or `--every`), says which pipelines that event starts, with their jobs in waves that can run side by side, and why the others don't. Reads only the file. The shape is still a draft. |
96100| `abso issues [--open] [--status <s>] [--agent <a>] [--parent <N>] [--label <l,l>]` | The project's issues, most recently updated first. Statuses come from the work: `abso start --issue N` puts an issue In progress, an open ask makes it Blocked (In review for a review), and `publish --done` closes it. `--label friction` keeps the issues with every label named: a ready list of work to pick up. `abso issues --labels` lists the labels in use, with how many issues are open under each. |
@@ -104,8 +108,8 @@
105109
107−with the same token: the one `~/.avcs/servers.json` names for that server, or
108−`AVCS_ISSUES_SERVER`. The token goes there only where it would go as a
110114
@@ -174,14 +178,14 @@
175179
177−2. replays the edit on `.avcs/known/<file>`, the client's copy of what the
183187
184−It never stops the agent. On any error it writes a line to `.avcs/hook.log`
@@ -207,7 +211,7 @@
210− hook below stands down (`AVCS_HOOK_FORCE=1` overrides), so no edit is sent
@@ -265,7 +269,7 @@
268− your files, and the latest news (from `.avcs/news.log`, which the hooks and
270274
@@ -275,15 +279,15 @@
275279
277281
278−- `.avcs/config.json`: `{server, project, agent}`. When the folder is a git
279− repo, `/.avcs/` goes into `.git/info/exclude`. Nothing under `.avcs/` is
281−- `.avcs/known/`: the known copy described above.
282−- `.avcs/modes.json`: the executable files and links the server has, as far
284−- `.avcs/hook.log`: one line per hook call.
285−- `.avcs/news.log`: the news the agent was given, one dated line each.
286−- `.avcs/run.log`: when `abso run` reconnected to a run, or started it again because the connection failed before the server answered (up to 3 more tries, 0.5 to 3 seconds apart; never once the server has answered), and why.
290+- `.abso/run.log`: when `abso run` reconnected to a run, or started it again because the connection failed before the server answered (up to 3 more tries, 0.5 to 3 seconds apart; never once the server has answered), and why.
287291
289293
@@ -302,12 +306,12 @@
302306
304308
305−Always: `.git`, `.avcs`, `.claude` and `node_modules`, in any case. Beyond
306−those, abso follows git's ignore rules, for `.gitignore` and `.avcsignore`
308312
310− and a deeper file beats a shallower one. In one folder, `.avcsignore` beats
@@ -315,7 +319,7 @@
318−- Case: every pattern, from `.avcsignore`, `.gitignore` or git's own exclude
@@ -324,14 +328,14 @@
324328
327−hash, and keeps the hashes it knows in `.avcs/blobs.json`. Sync, switch and
333337
334−`abso init` writes a starting `.avcsignore` (Claude Code state and operating
@@ -360,4 +364,4 @@
361365
363−It takes the token from `AVCS_TOKEN` (default `fake-token`).
--- a/client/scripts/import-git.ts
+++ b/client/scripts/import-git.ts
@@ -97,7 +97,7 @@
9898 const message = `${git(["log", "-1", "--format=%B", sha]).trim()}\n\ngit ${sha.slice(0, 12)}, ${git(["log", "-1", "--format=%an, %aI", sha]).trim()}`;
100− // The first commit makes the project; --as-is adds no starting .avcsignore or avcs.json git never had.
100+ // The first commit makes the project; --as-is adds no starting .absoignore or avcs.json git never had.
103103 ? ["init", dir, "--server", values.server!, "--project", values.project!, "--agent", values.agent!, "--as-is"]
--- a/client/src/api.ts
+++ b/client/src/api.ts
@@ -141,7 +141,7 @@
144− /** Another box of this agent for run, logs and fetch (--box or AVCS_BOX, #37); undefined is its own box. */
144+ /** Another box of this agent for run, logs and fetch (--box or ABSO_BOX, #37); undefined is its own box. */
146146
@@ -419,7 +419,7 @@
422− throw new ApiError(`${this.config.server} has no Issues Worker beside it; AVCS_ISSUES_SERVER names one`);
422+ throw new ApiError(`${this.config.server} has no Issues Worker beside it; ABSO_ISSUES_SERVER names one`);
425425
@@ -473,7 +473,7 @@
473473 /** Uploads an image to the Issues Worker (abso issue 171): it checks the type by the bytes, strips metadata and answers its id. */
476− throw new ApiError(`${this.config.server} has no Issues Worker beside it; AVCS_ISSUES_SERVER names one`);
476+ throw new ApiError(`${this.config.server} has no Issues Worker beside it; ABSO_ISSUES_SERVER names one`);
--- a/client/src/box-commands.ts
+++ b/client/src/box-commands.ts
@@ -10,6 +10,7 @@
1415import { absolute, isLocalOnly, loadIgnore, readText, walk, writeFileAtomic } from "./folder.ts";
@@ -380,10 +381,10 @@
383− const space = stamp.AVCS_SPACE === "shared" ? "shared" : `draft ${stamp.AVCS_SPACE}`;
386− stamp = { ...stamp, AVCS_VERSION: String(at), AVCS_DRAFT: "0", AVCS_DRAFT_HASH: "", AVCS_AT: String(at) };
387+ stamp = { ...stamp, ABSO_VERSION: String(at), ABSO_DRAFT: "0", ABSO_DRAFT_HASH: "", ABSO_AT: String(at) };
388389 `abso: running version ${at} of ${space} in the box (${plural(entries.length, "file")}); your folder is untouched.\n`,
@@ -392,7 +393,7 @@
393394 const gone = entries.filter((e) => pick(e.path) && !old.some((o) => o.path === e.path)).map((e) => e.path);
394395 entries = [...entries.filter((e) => !pick(e.path)), ...old].sort((a, b) => a.path.localeCompare(b.path));
395− stamp = { ...stamp, AVCS_AT: `${at} files ${filesGlob}` };
@@ -444,15 +445,15 @@
447− // A broken stream reconnects to the run quietly; .avcs/run.log says when and why.
450− env.env[name]
454− const reconnect = delays("AVCS_RUN_RECONNECT_MS");
455− const retry = delays("AVCS_RUN_RETRY_MS");
458459 ? new Api(api.config, api.timeoutMs, reconnect?.length ? reconnect : undefined, retry?.length ? retry : undefined)
@@ -512,8 +513,8 @@
512513/** abso fetch <glob...>: files the box made, written into the folder where abso ignores them. */
515− * AVCS_BOX, else the agent's own. A lead can give each subagent its own box
516− * (AVCS_BOX=2 in its environment), so their runs don't wait on each other.
516+ * ABSO_BOX (or the older AVCS_BOX), else the agent's own. A lead can give each subagent its own box
@@ -549,7 +550,7 @@
550551
552− const box = str(args, "box") ?? (env.env.AVCS_BOX || undefined);
554555 throw new UsageError(`a box name is 1-24 letters, digits, - or _ (got ${JSON.stringify(box)})`);
@@ -581,17 +582,17 @@
581582
584− readonly AVCS_AGENT: string;
586− readonly AVCS_SPACE: string;
588− readonly AVCS_VERSION: string;
590− readonly AVCS_DRAFT: string;
592− readonly AVCS_DRAFT_HASH: string;
593594 /** With abso run --at: the version run ("12"), or the files taken from it ("12 files src/*.ts"). */
594− readonly AVCS_AT?: string;
596597
@@ -605,18 +606,19 @@
608− AVCS_AGENT: agent,
609− AVCS_SPACE: me?.draft ?? "shared",
610− AVCS_VERSION: String(me?.base ?? status.version),
611− AVCS_DRAFT: String(me?.draftChanges ?? 0),
612− AVCS_DRAFT_HASH: hash,
615616
616617/** `export A='x' B='y'; `: on every part of a compound command, unlike a bare assignment prefix. */
619− return `export ${Object.entries(stamp)
--- a/client/src/check-ignore.ts
+++ b/client/src/check-ignore.ts
@@ -10,8 +10,8 @@
1212
13−/** Starting .avcsignore for `abso init`, when the folder has none. */
14−export const STARTING_AVCSIGNORE = `# Files abso leaves out, on top of .gitignore. Same rules as .gitignore; this
14+export const STARTING_ABSOIGNORE = `# Files abso leaves out, on top of .gitignore. Same rules as .gitignore; this
--- a/client/src/config.ts
+++ b/client/src/config.ts
@@ -1,7 +1,7 @@
4−// The token is never in the folder: it comes from the AVCS_TOKEN environment
66
@@ -9,6 +9,7 @@
1111import { type MachineServers, machineServers, TOKEN_SERVERS, tokenGoesTo, trustedList } from "./core.ts";
1314
@@ -166,15 +167,15 @@
169− `this folder's server is ${server}, and abso sends your token only to ${[...TOKEN_SERVERS, "this machine"].join(", ")}, and the servers ~/.abso/servers.json or AVCS_TRUSTED_SERVERS name. ` +
170− `If ${server} is yours, name it in ~/.abso/servers.json or AVCS_TRUSTED_SERVERS (comma-separated); if you didn't set it, someone else wrote .abso/config.json.`,
170+ `this folder's server is ${server}, and abso sends your token only to ${[...TOKEN_SERVERS, "this machine"].join(", ")}, and the servers ~/.abso/servers.json or ABSO_TRUSTED_SERVERS name. ` +
171+ `If ${server} is yours, name it in ~/.abso/servers.json or ABSO_TRUSTED_SERVERS (comma-separated); if you didn't set it, someone else wrote .abso/config.json.`,
173174
175−/** This machine's servers (core.ts machineServers), from ~/.abso/servers.json (or ~/.abso/servers.json), read once. AVCS_SERVERS_FILE names another file (tests). */
176+/** This machine's servers (core.ts machineServers), from ~/.abso/servers.json (or the older ~/.avcs/servers.json), read once. ABSO_SERVERS_FILE names another file (tests). */
176177export function readMachineServers(env: Readonly<Record<string, string | undefined>> = process.env): MachineServers {
177− if (env.AVCS_SERVERS_FILE !== undefined) return machineServers(readOr(env.AVCS_SERVERS_FILE));
178+ if (fromEnv(env, "SERVERS_FILE") !== undefined) return machineServers(readOr(fromEnv(env, "SERVERS_FILE") as string));
@@ -186,14 +187,15 @@
188189
189−/** The servers the token may go to beyond abso's own: AVCS_TRUSTED_SERVERS, then this machine's servers.json. */
190+/** The servers the token may go to beyond abso's own: ABSO_TRUSTED_SERVERS, then this machine's servers.json. */
190191export function trustedServers(env: Readonly<Record<string, string | undefined>> = process.env): string {
191− return trustedList(env.AVCS_TRUSTED_SERVERS, readMachineServers(env));
193194
194−/** AVCS_TOKEN if set, else ~/.abso/token, else ~/.avcs/token, else none. */
195196export function readToken(env: Readonly<Record<string, string | undefined>> = process.env): string | undefined {
196− if (env.AVCS_TOKEN) return env.AVCS_TOKEN.trim();
--- a/client/src/core.ts
+++ b/client/src/core.ts
@@ -91,7 +91,7 @@
9191 * The servers abso sends the token to on its own (#30): abso's hosted server and its Issues Worker.
94− * this machine's ~/.abso/servers.json (machineServers) or AVCS_TRUSTED_SERVERS
9797export const TOKEN_SERVERS: readonly string[] = ["https://api.abso.dev", "https://issues.abso.dev"];
@@ -140,14 +140,14 @@
142142
143−/** The servers trusted beyond TOKEN_SERVERS, as tokenGoesTo takes them: AVCS_TRUSTED_SERVERS, then this machine's. */
143+/** The servers trusted beyond TOKEN_SERVERS, as tokenGoesTo takes them: ABSO_TRUSTED_SERVERS, then this machine's. */
145145 return [...(fromEnv ?? "").split(","), ...machine.trusted].filter((t) => t.trim() !== "").join(",");
147147
150− * first, then abso's own. AVCS_ISSUES_SERVER overrides both (issues.ts).
152152export function issuesServerFor(server: string, machine?: MachineServers): string | undefined {
@@ -197,11 +197,11 @@
197197
200−// git's rules (gitignore(5)), for .gitignore and .avcsignore alike:
204−// in one folder .avcsignore beats .gitignore.
@@ -214,7 +214,7 @@
215215
217−export const IGNORE_FILES: readonly string[] = [".gitignore", ".avcsignore"];
218218
220220 /** Where the line came from: a folder-relative path such as `src/.gitignore`, or the global file's path. */
--- /dev/null
+++ b/client/src/env-names.ts
@@ -0,0 +1,18 @@
3+
5+
10+
16+ for (const [k, v] of Object.entries(vars)) if (k.startsWith("ABSO_")) out[`AVCS_${k.slice(5)}`] = v;
--- a/client/src/export.ts
+++ b/client/src/export.ts
@@ -1,6 +1,6 @@
3−// shared does (#37, Playtester 1). The folder gets .avcs-export.json naming
3+// shared does (#37, Playtester 1). The folder gets .abso-export.json (.avcs-export.json before the rename) naming
@@ -19,7 +19,9 @@
2020
2121/** The file an export leaves in its folder: what it holds, and the sign that the folder is one export may replace. */
22−export const EXPORT_STAMP = ".avcs-export.json";
2325
2426/** Where an export may go: outside the abso folder, or in a part of it abso leaves out. Empty, or an earlier export. */
@@ -29,12 +31,16 @@
32− `${inside} is inside this abso folder, so abso would record the export as your edits. Export outside the folder, or into a folder .avcsignore leaves out`,
34+ `${inside} is inside this abso folder, so abso would record the export as your edits. Export outside the folder, or into a folder .absoignore leaves out`,
3638 if (!statSync(target).isDirectory()) throw new UsageError(`${target} is a file; export to a folder`);
37− if (readdirSync(target).length > 0 && !existsSync(join(target, EXPORT_STAMP))) {
3945 `${target} has files in it; export to an empty folder (an export replaces only a folder an earlier export made)`,
--- a/client/src/fetch.ts
+++ b/client/src/fetch.ts
@@ -50,7 +50,7 @@
53− ? "abso records it, so writing it would make an edit; add it to .avcsignore to fetch it"
--- a/client/src/folder.ts
+++ b/client/src/folder.ts
@@ -7,7 +7,7 @@
10−// ignore rules leave out: every .gitignore and .avcsignore in the folder,
1212
--- a/client/src/hook.ts
+++ b/client/src/hook.ts
@@ -18,6 +18,7 @@
2122import { forgetKnown, isPaused, loadIgnore, logNews, readKnown, readText, relativeTo, writeKnown } from "./folder.ts";
@@ -59,7 +60,7 @@
62− if (env.AVCS_HOOK_FORCE !== "1" && existsSync(join(modDir(env), ".claude-plugin", "plugin.json"))) {
63+ if (fromEnv(env, "HOOK_FORCE") !== "1" && existsSync(join(modDir(env), ".claude-plugin", "plugin.json"))) {
@@ -87,7 +88,7 @@
90− const timeout = Number(env.AVCS_HOOK_TIMEOUT_MS) || DEFAULT_TIMEOUT_MS;
--- a/client/src/issues.ts
+++ b/client/src/issues.ts
@@ -1,6 +1,6 @@
3−// AVCS_ISSUES_SERVER), and takes the same token. Statuses come from the work: a start note naming
3+// ABSO_ISSUES_SERVER), and takes the same token. Statuses come from the work: a start note naming
@@ -24,6 +24,7 @@
2829
@@ -31,14 +32,14 @@
3132/** The folder, with its Api pointed at the Issues Worker: the token goes only where tokenGoesTo allows, as for the avcs server. */
34− const server = env.env.AVCS_ISSUES_SERVER || issuesServerFor(config.server, readMachineServers(env.env));
35+ const server = fromEnv(env.env, "ISSUES_SERVER") || issuesServerFor(config.server, readMachineServers(env.env));
37− `${config.server} has no Issues Worker beside it that abso knows; ~/.abso/servers.json or AVCS_ISSUES_SERVER names one`,
38+ `${config.server} has no Issues Worker beside it that abso knows; ~/.abso/servers.json or ABSO_ISSUES_SERVER names one`,
41− `the Issues Worker is ${server}, and abso sends your token only to its own servers and this machine. If ${server} is yours, name it in ~/.abso/servers.json or AVCS_TRUSTED_SERVERS.`,
42+ `the Issues Worker is ${server}, and abso sends your token only to its own servers and this machine. If ${server} is yours, name it in ~/.abso/servers.json or ABSO_TRUSTED_SERVERS.`,
--- a/client/src/join-commands.ts
+++ b/client/src/join-commands.ts
@@ -6,11 +6,12 @@
9−import { STARTING_AVCSIGNORE } from "./check-ignore.ts";
1313import { findRoot, installKey, readConfig, type Settings, tokenFor, writeConfig } from "./config.ts";
@@ -19,8 +20,8 @@
2021
22− const server = str(args, "server") ?? env.env.AVCS_SERVER;
23− if (!server) throw new UsageError("give the server with --server <url> (or AVCS_SERVER)");
2627
@@ -45,9 +46,9 @@
48− const avcsignore = join(root, ".avcsignore");
49− const wroteIgnore = !asIs && !existsSync(avcsignore);
50− if (wroteIgnore) writeFileSync(avcsignore, STARTING_AVCSIGNORE);
5152 // What the server runs on each new version (#39), guessed from package.json; recorded with the rest.
@@ -72,7 +73,7 @@
7273 `Created project ${project} at version ${answer.version} from ${plural(files.size, "text file")} in ${root}.`,
75− ? ["Wrote a starting .avcsignore (Claude Code state and operating system files); edit it like .gitignore."]
76+ ? ["Wrote a starting .absoignore (Claude Code state and operating system files); edit it like .gitignore."]
7879 ...(answer.skipped && answer.skipped.length > 0 ? [`The server skipped: ${answer.skipped.join(", ")}.`] : []),
@@ -87,7 +88,7 @@
90− wroteAvcsignore: wroteIgnore,
--- a/client/src/key-admin.ts
+++ b/client/src/key-admin.ts
@@ -6,6 +6,7 @@
1011
@@ -16,7 +17,7 @@
1819
19−/** The admin token goes only to a server named in AVCS_ADMIN_SERVERS (comma-separated): none is built in. */
20+/** The admin token goes only to a server named in ABSO_ADMIN_SERVERS (comma-separated): none is built in. */
@@ -29,13 +30,13 @@
3031
3132export function adminToken(env: Readonly<Record<string, string | undefined>> = process.env): string {
32− const fromEnv = env.AVCS_ADMIN_TOKEN?.trim();
33− if (fromEnv) return fromEnv;
38− throw new UsageError("abso key needs the admin token in AVCS_ADMIN_TOKEN or ~/.abso/admin-token");
39+ throw new UsageError("abso key needs the admin token in ABSO_ADMIN_TOKEN or ~/.abso/admin-token");
4041
@@ -45,9 +46,9 @@
4647
4748async function call(config: Config, admin: string, method: "GET" | "POST", path: string): Promise<unknown> {
48− if (!adminGoesTo(config.server, process.env.AVCS_ADMIN_SERVERS))
50− `abso key will not send the admin token to ${config.server}; AVCS_ADMIN_SERVERS names the servers it may go to`,
51+ `abso key will not send the admin token to ${config.server}; ABSO_ADMIN_SERVERS names the servers it may go to`,
--- a/client/src/lock.ts
+++ b/client/src/lock.ts
@@ -17,6 +17,7 @@
2223
@@ -142,8 +143,8 @@
145− // AVCS_LOCK_WAIT_MS shortens the wait in tests.
146− const until = Date.now() + (Number(process.env.AVCS_LOCK_WAIT_MS) || WAIT_MS);
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -89,7 +89,7 @@
92− "Create a project on the server from a folder's text files. The folder becomes that agent's folder. It writes a starting .avcsignore, and, when the folder has no avcs.json and package.json gives a check or a build to guess, an avcs.json (setup, check, build and out): what the server's CI runs on each new version of shared. Without one, CI runs what it can guess itself, or nothing. --as-is writes neither: the folder goes up exactly as it is (an import).",
92+ "Create a project on the server from a folder's text files. The folder becomes that agent's folder. It writes a starting .absoignore, and, when the folder has no avcs.json and package.json gives a check or a build to guess, an avcs.json (setup, check, build and out): what the server's CI runs on each new version of shared. Without one, CI runs what it can guess itself, or nothing. --as-is writes neither: the folder goes up exactly as it is (an import).",
@@ -562,7 +562,7 @@
565− "Write one published version of this folder's space (the newest unless --version) into a folder of its own, for a build that doesn't move. The folder must be empty, an earlier export (which it replaces, keeping node_modules and what --keep names), or one .avcsignore leaves out; .avcs-export.json there names the version.",
565+ "Write one published version of this folder's space (the newest unless --version) into a folder of its own, for a build that doesn't move. The folder must be empty, an earlier export (which it replaces, keeping node_modules and what --keep names), or one .absoignore leaves out; .avcs-export.json there names the version.",
@@ -686,7 +686,7 @@
689− "Whether abso leaves each path out, and which line of which ignore file decided (git's rules, for .gitignore and .avcsignore).",
689+ "Whether abso leaves each path out, and which line of which ignore file decided (git's rules, for .gitignore and .absoignore).",
@@ -725,7 +725,7 @@
728− "Every command takes --json. Settings live in .abso/config.json (.avcs/config.json in a folder from before the rename). The token comes from AVCS_TOKEN, or else ~/.abso/token (or ~/.avcs/token from before).",
728+ "Every command takes --json. Settings live in .abso/config.json (.avcs/config.json in a folder from before the rename). The token comes from ABSO_TOKEN, or else ~/.abso/token (or ~/.avcs/token from before).",
731731
--- a/client/src/mcp.ts
+++ b/client/src/mcp.ts
@@ -2,7 +2,7 @@
5−// as for the CLI: .avcs/config.json, and AVCS_TOKEN or ~/.avcs/token.
--- a/client/src/publish-commands.ts
+++ b/client/src/publish-commands.ts
@@ -21,6 +21,7 @@
2526import { absolute, forgetKnown, isLocalOnly, type LeftOut, loadIgnore, readText, writeFileAtomic } from "./folder.ts";
@@ -352,7 +353,7 @@
355− Number(env.env.AVCS_QUEUE_POLL_MS) || 3000,
--- a/client/src/review.ts
+++ b/client/src/review.ts
@@ -8,6 +8,7 @@
@@ -170,8 +171,8 @@
170171 // A first look shows the newest 20. Otherwise every change since the mark (or the span) is listed, page by
171172 // page, before the mark moves past them (AVCS - Git Lessons' review): one page would drop the older ones.
173− // AVCS_REVIEW_PAGE shortens the page in tests.
174− const pageSize = Number(process.env.AVCS_REVIEW_PAGE) || 200;
--- a/client/src/serve-commands.ts
+++ b/client/src/serve-commands.ts
@@ -36,15 +36,15 @@
3737
39− * The script abso shot runs in the box (from /w/.avcs-shot, so 'playwright' is
40− * the project's own). It reads its setup from AVCS_SHOT and prints marked
41− * lines the client picks out: AVCS_SHOT_IMAGE {json}, blocks between
42− * AVCS_SHOT_BEGIN <name> and AVCS_SHOT_END, and "eval: ", "page error: ",
47−const c = JSON.parse(process.env.AVCS_SHOT);
@@ -97,9 +97,9 @@
100− console.log('AVCS_SHOT_BEGIN ' + name);
101101 console.log(text.length > max ? text.slice(0, max) + '\n... (' + (text.length - max) + ' more characters; --max-chars raises the cap)' : text);
102− console.log('AVCS_SHOT_END');
@@ -148,7 +148,7 @@
151− console.log('AVCS_SHOT_IMAGE ' + JSON.stringify({ w, h, bytes: png.length }));
@@ -260,7 +260,7 @@
263− out: `.avcs-shot/${name}`,
@@ -281,9 +281,9 @@
281281 "(npx --no-install vite --host 127.0.0.1 --port 4173 --strictPort >/tmp/shot-vite.log 2>&1 &)",
282282 "for i in $(seq 120); do curl -sf -o /dev/null http://127.0.0.1:4173/ && break; sleep 0.5; done",
283283 'curl -sf -o /dev/null http://127.0.0.1:4173/ || { echo "the vite dev server did not start:"; tail -20 /tmp/shot-vite.log; exit 1; }',
284− "mkdir -p .avcs-shot",
285− `cat > .avcs-shot/shoot.mjs <<'AVCS_SHOT_EOF'\n${SHOOTER}\nAVCS_SHOT_EOF`,
286− `AVCS_SHOT=${shellWord(JSON.stringify(setup))} node .avcs-shot/shoot.mjs`,
@@ -308,10 +308,10 @@
311− if (!lines[i]!.startsWith("AVCS_SHOT_BEGIN ")) continue;
312− const end = lines.indexOf("AVCS_SHOT_END", i + 1);
314− name: lines[i]!.slice("AVCS_SHOT_BEGIN ".length),
@@ -327,15 +327,15 @@
328328 let shot: { path: string; w: number; h: number; bytes: number; tokens: number } | null = null;
330− const info = lines.find((l) => l.startsWith("AVCS_SHOT_IMAGE "));
334− const gz = await api.boxFiles(`.avcs-shot/${name}`);
335− const png = gz === null ? undefined : untarGz(gz).find((e) => e.path === `.avcs-shot/${name}`);
335+ const png = gz === null ? undefined : untarGz(gz).find((e) => e.path === `.abso-shot/${name}`);
337337 return { exit: EXIT.error, text: "The screenshot ran but its file was not in the box.", json: { notes } };
338− const { w, h } = JSON.parse(info.slice("AVCS_SHOT_IMAGE ".length)) as { w: number; h: number };
338+ const { w, h } = JSON.parse(info.slice("ABSO_SHOT_IMAGE ".length)) as { w: number; h: number };
--- a/client/test/client.test.ts
+++ b/client/test/client.test.ts
@@ -206,7 +206,7 @@
209− ".avcsignore",
@@ -215,7 +215,7 @@
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");
@@ -1566,7 +1566,7 @@
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/,
15711571 const join2 = await main(["join", "x", "--agent", "bob", "--server", "https://evil.example"], {
@@ -1832,7 +1832,7 @@
18331833 const { folders } = await project({ "make.js": `${MAKE}\n`, "notes.txt": "mine\n" }, "alice");
1835− writeFileSync(join(alice, ".avcsignore"), `${read(alice, ".avcsignore")}out/\n`);
@@ -1844,7 +1844,7 @@
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/,
18491849 assert.deepEqual([...readFileSync(join(alice, "out", "shot.png"))], [137, 80, 78, 71, 0, 1, 2]);
@@ -1867,7 +1867,7 @@
18671867 it("screens the box's paths as a sync's: nothing outside the folder, in .git, or a link", async () => {
1870− writeFileSync(join(alice, ".avcsignore"), `${read(alice, ".avcsignore")}out/\n`);
18711871 await main(["run", "node", "make.js"], { cwd: alice, env: ENV, write: () => {}, writeErr: () => {} });
@@ -1925,15 +1925,15 @@
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"]);
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);
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/,
19391939 // Exporting again keeps the build's node_modules (abso never exports it) and what --keep names, and nothing else.
@@ -1968,7 +1968,7 @@
1971− write(folders.alice!, { ".avcsignore": `${read(folders.alice!, ".avcsignore")}build/\n` });
@@ -2021,7 +2021,7 @@
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",
@@ -2054,7 +2054,7 @@
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: () => {} });
@@ -2860,7 +2860,7 @@
2863− assert.equal(existsSync(join(asIs, ".avcsignore")), false);
28662866
@@ -4239,7 +4239,7 @@
42394239 const { name, folders } = await project({ "a.ts": "one\n", "b.ts": "b\n" }, "alice", "bob");
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"]);
@@ -4277,7 +4277,7 @@
4280− assert.deepEqual(Object.keys(shared(name)).sort(), [".avcsignore", "README.md", "lib/a.ts"]);
--- /dev/null
+++ b/client/test/env-names.test.ts
@@ -0,0 +1,25 @@
5+
14+ trustedServers({ ABSO_TRUSTED_SERVERS: "https://a.example", ABSO_SERVERS_FILE: "no-servers.json" }),
18+
--- a/client/test/issues.test.ts
+++ b/client/test/issues.test.ts
@@ -114,7 +114,7 @@
117− /has no Issues Worker beside it that abso knows; ~\/\.abso\/servers\.json or AVCS_ISSUES_SERVER names one/,
117+ /has no Issues Worker beside it that abso knows; ~\/\.abso\/servers\.json or ABSO_ISSUES_SERVER names one/,
120120