Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed
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
8888## Servers and tokens
8989
90−The client reads its token from `AVCS_TOKEN`, or else from `~/.avcs/token`.
90+The client reads its token from `ABSO_TOKEN`, or else from `~/.abso/token`.
9191It never writes the token into a project folder.
9292
9393It sends the token only to abso's own servers (`https://api.abso.dev` and
9494`https://issues.abso.dev`) and to this machine. A folder that names any other
9595server is refused before any call. To trust another server, name it in
96−`~/.avcs/servers.json`, with its Issues server if it has one:
96+`~/.abso/servers.json`, with its Issues server if it has one:
9797
9898```json
9999{ "servers": { "https://abso.example.com": { "issues": "https://issues.example.com" } } }
100100```
101101
102−`AVCS_TRUSTED_SERVERS` (comma-separated) does the same for one shell. Off
102+`ABSO_TRUSTED_SERVERS` (comma-separated) does the same for one shell. Off
103103this machine, only `https://` servers count. A server you trust gets your
104104token: the same token goes to every server you name, so name only servers
105105you would hand it to.
--- a/client/README.md
+++ b/client/README.md
@@ -13,28 +13,32 @@
1313
1414## Setting up a folder
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.
16+Folders and machines set up before abso had its name keep working: the older
17+`.avcs/` folder, `~/.avcs/` files, `AVCS_` environment names and `.avcsignore` are
18+read when the new ones are not there. New things are written under the new names.
20+The token comes from the `ABSO_TOKEN` environment variable, or else from
21+`~/.abso/token`, outside every repo. It is never written into the folder.
1822It goes only to abso's server (`https://api.abso.dev`) and its Issues Worker
1923(`https://issues.abso.dev`), to servers this
20−machine names, and to this machine itself, since any `.avcs/config.json` can
24+machine names, and to this machine itself, since any `.abso/config.json` can
2125name a server and anyone can write one. A folder naming another server is
2226refused before any call. To use a server you run, or a test one, name it in
23−`~/.avcs/servers.json`, beside the token, with its Issues Worker if it has one:
27+`~/.abso/servers.json`, beside the token, with its Issues Worker if it has one:
2428
2529```json
2630{ "servers": { "https://abso.example.com": { "issues": "https://issues.example.com" } } }
2731```
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.
33+`ABSO_TRUSTED_SERVERS` (comma-separated) adds servers for one shell, and
34+`ABSO_ISSUES_SERVER` names the Issues Worker. The mods follow the same rule.
3135Off this machine only `https://` servers count. A server you trust gets your
3236token: the same token goes to every server named, so name only servers you
3337would hand it to.
3438
3539Every path a sync, switch, join or restore answer names is checked before
3640the client touches the disk: nothing is written outside the folder, into
37−`.git`, `.claude` or `.avcs` (in any case), onto a Windows device name, or
41+`.git`, `.claude` or `.abso` (in any case), onto a Windows device name, or
3842through a folder that is a link. A refused path is named in the output
3943("REFUSED ... paths from the server").
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 @@
104108Every command takes `--json`.
105109
106110The Issues commands talk to the Issues Worker beside the folder's server,
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
111+with the same token: the one `~/.abso/servers.json` names for that server, or
112+`ABSO_ISSUES_SERVER`. The token goes there only where it would go as a
109113folder's server: abso's, one this machine names, or this machine itself.
110114
111115### Text with several lines: `--comment-file`, `--file`
@@ -174,14 +178,14 @@
174178After each Edit, MultiEdit, Write or NotebookEdit, the hook:
175179
1761801. finds the abso folder above the edited file (and does nothing outside one);
177−2. replays the edit on `.avcs/known/<file>`, the client's copy of what the
181+2. replays the edit on `.abso/known/<file>`, the client's copy of what the
178182 server has. If the replay gives exactly the file on disk, it sends the edit
179183 (old and new text, with the session and subagent ids). If not, it sends the
180184 whole file with `record`. That happens after a shell command changed the
181185 file, for `replace_all`, or when the server answers "out of step";
1821863. hands any news back to the agent as extra context.
183187
184−It never stops the agent. On any error it writes a line to `.avcs/hook.log`
188+It never stops the agent. On any error it writes a line to `.abso/hook.log`
185189and forgets the file's known copy, so the next `abso record` sends it whole.
186190Every call is logged with its timing. The decisions live in `src/core.ts`,
187191shared by both forms below.
@@ -207,7 +211,7 @@
207211 for one session with `claude --plugin-dir <repo>/client`. Function hooks are
208212 an early-access Claude Code API; a headless `claude -p` loads them only with
209213 `CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1`. While the mod is installed, the command
210− hook below stands down (`AVCS_HOOK_FORCE=1` overrides), so no edit is sent
214+ hook below stands down (`ABSO_HOOK_FORCE=1` overrides), so no edit is sent
211215 twice.
212216- **The command hook (about 320 ms per edit), for anything else.** `abso hook`
213217 reads Claude Code's PostToolUse JSON on stdin, always exits 0, and prints the
@@ -265,7 +269,7 @@
265269 the same files, and news you haven't looked at.
266270- **`/avcs-view`** opens a pane with the whole picture: the space and version,
267271 your draft's files, work parked in other spaces, who else is on which of
268− your files, and the latest news (from `.avcs/news.log`, which the hooks and
272+ your files, and the latest news (from `.abso/news.log`, which the hooks and
269273 commands write).
270274
271275Outside an abso folder it costs one folder lookup when the chat starts. In one,
@@ -275,15 +279,15 @@
275279
276280## What the folder holds
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
282+- `.abso/config.json`: `{server, project, agent}`. When the folder is a git
283+ repo, `/.abso/` goes into `.git/info/exclude`. Nothing under `.abso/` is
280284 ever recorded, published or sent to a box.
281−- `.avcs/known/`: the known copy described above.
282−- `.avcs/modes.json`: the executable files and links the server has, as far
285+- `.abso/known/`: the known copy described above.
286+- `.abso/modes.json`: the executable files and links the server has, as far
283287 as the client knows. It is to modes what the known copy is to text.
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.
288+- `.abso/hook.log`: one line per hook call.
289+- `.abso/news.log`: the news the agent was given, one dated line each.
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
288292## Empty files, the executable bit and links
289293
@@ -302,12 +306,12 @@
302306
303307## What is left out
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`
309+Always: `.git`, `.abso`, `.claude` and `node_modules`, in any case. Beyond
310+those, abso follows git's ignore rules, for `.gitignore` and `.absoignore`
307311alike, except for case:
308312
309313- Any folder may have either file. Its patterns are relative to its folder,
310− and a deeper file beats a shallower one. In one folder, `.avcsignore` beats
314+ and a deeper file beats a shallower one. In one folder, `.absoignore` beats
311315 `.gitignore`, so it can bring back what `.gitignore` leaves out (`!dist/`).
312316- Below those come `.git/info/exclude`, then git's global excludes file
313317 (`core.excludesFile`, or `~/.config/git/ignore`).
@@ -315,7 +319,7 @@
315319 only), `\` escapes and trailing spaces all work as in git. The last matching
316320 line wins.
317321- Nothing inside an ignored folder can be brought back with `!`, as in git.
318−- Case: every pattern, from `.avcsignore`, `.gitignore` or git's own exclude
322+- Case: every pattern, from `.absoignore`, `.gitignore` or git's own exclude
319323 files, matches by the same rule as abso's paths, on every platform:
320324 any case, and either Unicode form of an accented letter. So `.env` also
321325 leaves out `.ENV`. This ignores case and Unicode form even where
@@ -324,14 +328,14 @@
324328
325329Binary files (a NUL byte or invalid UTF-8), and text over 2 MB, go up as
326330blobs: the client uploads the bytes under their SHA-256, records the
327−hash, and keeps the hashes it knows in `.avcs/blobs.json`. Sync, switch and
331+hash, and keeps the hashes it knows in `.abso/blobs.json`. Sync, switch and
328332restore fetch the bytes, and never overwrite a binary file the agent changed
329333and hasn't recorded. `diff` says `Binary file x changed: <hash> -> <hash>`.
330334Files over the server's 20 MB limit are left out; `init`, `record` and
331335`status` name them (`leftOut` in `--json`), and what the server has of them
332336stays. `abso run` still sends every file to the box.
333337
334−`abso init` writes a starting `.avcsignore` (Claude Code state and operating
338+`abso init` writes a starting `.absoignore` (Claude Code state and operating
335339system files) when the folder has none. `abso check-ignore <path...>` says
336340whether each path is left out and which line of which file decided.
337341`client/test/ignore.test.ts` checks the rules against `git check-ignore`.
@@ -360,4 +364,4 @@
360364```
361365
362366To point a real folder at it, run `node client/test/fake-server.ts 47811`.
363−It takes the token from `AVCS_TOKEN` (default `fake-token`).
367+It takes the token from `ABSO_TOKEN` (default `fake-token`).
--- a/client/scripts/import-git.ts
+++ b/client/scripts/import-git.ts
@@ -97,7 +97,7 @@
9797 extract(sha, dir);
9898 const message = `${git(["log", "-1", "--format=%B", sha]).trim()}\n\ngit ${sha.slice(0, 12)}, ${git(["log", "-1", "--format=%an, %aI", sha]).trim()}`;
9999 const subject = message.split("\n")[0]!.slice(0, 72);
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.
101101 const argv =
102102 i === 0
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 @@
141141 /** Waits between tries when a run's stream breaks; tests shorten them. */
142142 readonly reconnectDelaysMs: readonly number[];
143143 readonly startRetryDelaysMs: readonly number[];
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. */
145145 box: string | undefined;
146146
147147 constructor(
@@ -419,7 +419,7 @@
419419 /** A call to the Issues Worker (#54), with the same token. */
420420 #issues<T>(method: "GET" | "POST", path: string, body?: unknown): Promise<T> {
421421 if (this.issuesServer === undefined)
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`);
423423 return this.json(method, path, body, this.issuesServer);
424424 }
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. */
474474 async attachmentUpload(bytes: Uint8Array, name: string): Promise<Attachment> {
475475 if (this.issuesServer === undefined)
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`);
477477 const path = this.agentPath("attachments");
478478 let res: Response;
479479 try {
--- a/client/src/box-commands.ts
+++ b/client/src/box-commands.ts
@@ -10,6 +10,7 @@
1010import { type Env, EXIT, type Output, open, plural } from "./command-env.ts";
1111import { LISTED, recordFolder } from "./commands.ts";
1212import { findRoot } from "./config.ts";
13+import { fromEnv, withOldNames } from "./env-names.ts";
1314import { fetchedText, fetchFromBox } from "./fetch.ts";
1415import { absolute, isLocalOnly, loadIgnore, readText, walk, writeFileAtomic } from "./folder.ts";
1516import { onDisk, PLAIN, readKnownModes } from "./modes.ts";
@@ -380,10 +381,10 @@
380381 if (at !== undefined) {
381382 // A past version in the box; the folder's files stay as they are (Backtracker's bisect).
382383 const snap = await snapshotAt(root, api, at);
383− const space = stamp.AVCS_SPACE === "shared" ? "shared" : `draft ${stamp.AVCS_SPACE}`;
384+ const space = stamp.ABSO_SPACE === "shared" ? "shared" : `draft ${stamp.ABSO_SPACE}`;
384385 if (filesGlob === undefined) {
385386 entries = await snapshotEntries(api, snap);
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) };
387388 notice(
388389 `abso: running version ${at} of ${space} in the box (${plural(entries.length, "file")}); your folder is untouched.\n`,
389390 );
@@ -392,7 +393,7 @@
392393 const old = await snapshotEntries(api, snap, pick);
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}` };
396+ stamp = { ...stamp, ABSO_AT: `${at} files ${filesGlob}` };
396397 const said =
397398 old.length === 0 && gone.length === 0
398399 ? `no file matches ${filesGlob} in your folder or at version ${at}`
@@ -444,15 +445,15 @@
444445 json: { ...p },
445446 };
446447 }
447− // A broken stream reconnects to the run quietly; .avcs/run.log says when and why.
448+ // A broken stream reconnects to the run quietly; .abso/run.log says when and why.
448449 // (Tests shorten the waits with these.)
449450 const delays = (name: string) =>
450− env.env[name]
451+ fromEnv(env.env, name)
451452 ?.split(",")
452453 .map(Number)
453454 .filter((n) => Number.isFinite(n) && n >= 0);
454− const reconnect = delays("AVCS_RUN_RECONNECT_MS");
455− const retry = delays("AVCS_RUN_RETRY_MS");
455+ const reconnect = delays("RUN_RECONNECT_MS");
456+ const retry = delays("RUN_RETRY_MS");
456457 const runner =
457458 reconnect?.length || retry?.length
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. */
513514/**
514515 * Which of the agent's boxes run, logs and fetch use (#37): --box <name>, else
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
517+ * (ABSO_BOX=2 in its environment), so their runs don't wait on each other.
517518 */
518519/**
519520 * What this folder last heard about a box's prep: a run's X-Avcs-Prep, or
@@ -549,7 +550,7 @@
549550}
550551
551552export function boxOf(args: Parsed, env: Env): string | undefined {
552− const box = str(args, "box") ?? (env.env.AVCS_BOX || undefined);
553+ const box = str(args, "box") ?? fromEnv(env.env, "BOX");
553554 if (box !== undefined && !/^[A-Za-z0-9_-]{1,24}$/.test(box))
554555 throw new UsageError(`a box name is 1-24 letters, digits, - or _ (got ${JSON.stringify(box)})`);
555556 return box;
@@ -581,17 +582,17 @@
581582
582583/** What `abso run` tells the command about the code it runs, as environment variables. */
583584export interface RunStamp {
584− readonly AVCS_AGENT: string;
585+ readonly ABSO_AGENT: string;
585586 /** shared, or the named draft. */
586− readonly AVCS_SPACE: string;
587+ readonly ABSO_SPACE: string;
587588 /** The version of that space the draft builds on. */
588− readonly AVCS_VERSION: string;
589+ readonly ABSO_VERSION: string;
589590 /** How many unpublished changes the draft holds (0: the run is exactly that version). */
590− readonly AVCS_DRAFT: string;
591+ readonly ABSO_DRAFT: string;
591592 /** A short hash of the draft's files as they are, "" when the draft is empty. */
592− readonly AVCS_DRAFT_HASH: string;
593+ readonly ABSO_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;
595+ readonly ABSO_AT?: string;
595596}
596597
597598async function runStamp(root: string, agent: string, api: Api): Promise<RunStamp> {
@@ -605,18 +606,19 @@
605606 hash = h.digest("hex").slice(0, 12);
606607 }
607608 return {
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,
609+ ABSO_AGENT: agent,
610+ ABSO_SPACE: me?.draft ?? "shared",
611+ ABSO_VERSION: String(me?.base ?? status.version),
612+ ABSO_DRAFT: String(me?.draftChanges ?? 0),
613+ ABSO_DRAFT_HASH: hash,
613614 };
614615}
615616
616617/** `export A='x' B='y'; `: on every part of a compound command, unlike a bare assignment prefix. */
617618function stampPrefix(stamp: RunStamp): string {
618619 const quote = (v: string) => `'${v.replace(/'/g, `'''`)}'`;
619− return `export ${Object.entries(stamp)
620+ return `export ${Object.entries(withOldNames({ ...stamp }))
621+ .filter((e): e is [string, string] => e[1] !== undefined)
620622 .map(([k, v]) => `${k}=${quote(v)}`)
621623 .join(" ")}; `;
622624}
--- a/client/src/check-ignore.ts
+++ b/client/src/check-ignore.ts
@@ -10,8 +10,8 @@
1010import type { IgnoreMatch } from "./core.ts";
1111import { gitHome, loadIgnore, relativeTo } from "./folder.ts";
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
13+/** Starting .absoignore for `abso init`, when the folder has none. */
14+export const STARTING_ABSOIGNORE = `# Files abso leaves out, on top of .gitignore. Same rules as .gitignore; this
1515# file wins over .gitignore in the same folder. \`abso check-ignore <path>\`
1616# says which line decided. .git, .abso, .avcs, .claude and node_modules are always
1717# left out.
--- a/client/src/config.ts
+++ b/client/src/config.ts
@@ -1,7 +1,7 @@
11// The folder's settings (.avcs/config.json), finding the folder that holds
22// them, and the token.
33//
4−// The token is never in the folder: it comes from the AVCS_TOKEN environment
4+// The token is never in the folder: it comes from the ABSO_TOKEN environment
55// variable, or else from ~/.avcs/token, outside every repo.
66
77import { chmodSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
@@ -9,6 +9,7 @@
99import { basename, dirname, join, resolve } from "node:path";
1010import { UsageError } from "./args.ts";
1111import { type MachineServers, machineServers, TOKEN_SERVERS, tokenGoesTo, trustedList } from "./core.ts";
12+import { fromEnv } from "./env-names.ts";
1213import { homeFile, stateDir } from "./state-dir.ts";
1314
1415/** What .avcs/config.json holds. */
@@ -166,15 +167,15 @@
166167 const trusted = trustedServers(env);
167168 if (token === undefined || tokenGoesTo(server, trusted)) return token;
168169 throw new UsageError(
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.`,
171172 );
172173}
173174
174175let machine: MachineServers | undefined;
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));
178179 machine ??= machineServers(readOr(homeFile(homedir(), "servers.json")));
179180 return machine;
180181}
@@ -186,14 +187,15 @@
186187 }
187188};
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));
192+ return trustedList(fromEnv(env, "TRUSTED_SERVERS"), readMachineServers(env));
192193}
193194
194−/** AVCS_TOKEN if set, else ~/.abso/token, else ~/.avcs/token, else none. */
195+/** ABSO_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();
197+ const fromVar = fromEnv(env, "TOKEN");
198+ if (fromVar) return fromVar.trim();
197199 try {
198200 return readFileSync(homeFile(homedir(), "token"), "utf8").trim() || undefined;
199201 } catch {
--- 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.
9292 * A folder's .avcs/config.json can name any server, and a planted or cloned
9393 * one would otherwise receive every edit with the token. Others are trusted by
94− * this machine's ~/.abso/servers.json (machineServers) or AVCS_TRUSTED_SERVERS
94+ * this machine's ~/.abso/servers.json (machineServers) or ABSO_TRUSTED_SERVERS
9595 * (comma-separated): a server you run yourself, or a test one.
9696 */
9797export const TOKEN_SERVERS: readonly string[] = ["https://api.abso.dev", "https://issues.abso.dev"];
@@ -140,14 +140,14 @@
140140 return { trusted, issues };
141141}
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. */
144144export function trustedList(fromEnv: string | undefined, machine: MachineServers): string {
145145 return [...(fromEnv ?? "").split(","), ...machine.trusted].filter((t) => t.trim() !== "").join(",");
146146}
147147
148148/**
149149 * The Issues Worker beside an avcs server (#54): this machine's servers.json
150− * first, then abso's own. AVCS_ISSUES_SERVER overrides both (issues.ts).
150+ * first, then abso's own. ABSO_ISSUES_SERVER overrides both (issues.ts).
151151 */
152152export function issuesServerFor(server: string, machine?: MachineServers): string | undefined {
153153 const o = serverOrigin(server);
@@ -197,11 +197,11 @@
197197
198198// --- ignore rules ---
199199//
200−// git's rules (gitignore(5)), for .gitignore and .avcsignore alike:
200+// git's rules (gitignore(5)), for .gitignore, .avcsignore and .absoignore alike:
201201//
202202// - Every folder may have both files. Their patterns are relative to their
203203// folder and apply only below it. A deeper file beats a shallower one, and
204−// in one folder .avcsignore beats .gitignore.
204+// in one folder .absoignore beats .avcsignore, which beats .gitignore.
205205// - Below those come .git/info/exclude, then git's global excludes file
206206// (core.excludesFile, or ~/.config/git/ignore), both relative to the root.
207207// - Within a file the last matching line wins, and `!` brings a path back.
@@ -214,7 +214,7 @@
214214// any number of folders.
215215
216216/** The per-folder ignore files, weakest first. */
217−export const IGNORE_FILES: readonly string[] = [".gitignore", ".avcsignore"];
217+export const IGNORE_FILES: readonly string[] = [".gitignore", ".avcsignore", ".absoignore"];
218218
219219export interface IgnoreRule {
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 @@
1+// Environment names: ABSO_<NAME>, or the older AVCS_<NAME> from before the rename.
2+// Read the new one first; where abso sets one for a program it runs, it sets both.
3+
4+export type EnvMap = Readonly<Record<string, string | undefined>>;
5+
6+/** ABSO_<name> if set (and not empty), else AVCS_<name>. */
7+export function fromEnv(env: EnvMap, name: string): string | undefined {
8+ return env[`ABSO_${name}`] || env[`AVCS_${name}`] || undefined;
9+}
11+/** Each ABSO_ entry once more under its AVCS_ name, for programs written before the rename. */
12+export function withOldNames<T extends Record<string, string | undefined>>(
13+ vars: T,
14+): Record<string, string | undefined> {
15+ const out: Record<string, string | undefined> = { ...vars };
16+ for (const [k, v] of Object.entries(vars)) if (k.startsWith("ABSO_")) out[`AVCS_${k.slice(5)}`] = v;
17+ return out;
18+}
--- a/client/src/export.ts
+++ b/client/src/export.ts
@@ -1,6 +1,6 @@
11// abso export <dir> [--version N]: one published version of this folder's
22// space, written to a folder of its own, for a build that doesn't move while
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
44// the version, to stamp the build with. Exporting again replaces the folder,
55// keeping node_modules (and what --keep names) so a build needs no new install.
66//
@@ -19,7 +19,9 @@
1919import { type Refused, unsafePath } from "./safety.ts";
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";
22+export const EXPORT_STAMP = ".abso-export.json";
23+/** The name before the rename: an export made then still counts as one. */
24+const OLD_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. */
2527function checkTarget(root: string, target: string): void {
@@ -29,12 +31,16 @@
2931 }
3032 if (inside !== undefined && !ignoredHere(loadIgnore(root), inside, true)) {
3133 throw new UsageError(
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`,
3335 );
3436 }
3537 if (!existsSync(target)) return;
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))) {
39+ if (
40+ readdirSync(target).length > 0 &&
41+ !existsSync(join(target, EXPORT_STAMP)) &&
42+ !existsSync(join(target, OLD_EXPORT_STAMP))
43+ ) {
3844 throw new UsageError(
3945 `${target} has files in it; export to an empty folder (an export replaces only a folder an earlier export made)`,
4046 );
--- a/client/src/fetch.ts
+++ b/client/src/fetch.ts
@@ -50,7 +50,7 @@
5050 (throughLink(root, e.path) ? "a folder on its way is a link" : undefined) ??
5151 (e.link !== undefined ? "it is a link; fetch makes none" : undefined) ??
5252 (!ignoredHere(ignore, e.path)
53− ? "abso records it, so writing it would make an edit; add it to .avcsignore to fetch it"
53+ ? "abso records it, so writing it would make an edit; add it to .absoignore to fetch it"
5454 : undefined);
5555 if (why !== undefined) {
5656 skipped.push({ path: e.path, why });
--- a/client/src/folder.ts
+++ b/client/src/folder.ts
@@ -7,7 +7,7 @@
77// edit, and `sync` only overwrites files that still match it.
88//
99// Skipped everywhere: .git, .avcs, .claude and node_modules, plus what git's
10−// ignore rules leave out: every .gitignore and .avcsignore in the folder,
10+// ignore rules leave out: every .gitignore and .absoignore in the folder,
1111// .git/info/exclude and git's global excludes file (core.ts has the rules).
1212
1313import { execFileSync } from "node:child_process";
--- a/client/src/hook.ts
+++ b/client/src/hook.ts
@@ -18,6 +18,7 @@
1818import { Api, type News, newsLines } from "./api.ts";
1919import { findRoot, isReader, readConfig } from "./config.ts";
2020import { editBody, newsContext, normalize, spellingText, uncomposedText } from "./core.ts";
21+import { fromEnv } from "./env-names.ts";
2122import { forgetKnown, isPaused, loadIgnore, logNews, readKnown, readText, relativeTo, writeKnown } from "./folder.ts";
2223import { tryFolderLock } from "./lock.ts";
2324import { readKnownModes } from "./modes.ts";
@@ -59,7 +60,7 @@
5960 }
6061 // With the abso mod installed, every Claude Code session on this machine sends
6162 // its edits in-process, so this hook stands down rather than send them twice.
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"))) {
6364 return { stdout: "", outcome: "skipped: the abso mod sends edits" };
6465 }
6566 const tool = input.tool_name ?? "";
@@ -87,7 +88,7 @@
8788 outcome = "skipped: a link (a file standing in for one); abso record sends links";
8889 } else {
8990 const config = readConfig(root, env);
90− const timeout = Number(env.AVCS_HOOK_TIMEOUT_MS) || DEFAULT_TIMEOUT_MS;
91+ const timeout = Number(fromEnv(env, "HOOK_TIMEOUT_MS")) || DEFAULT_TIMEOUT_MS;
9192 const api = new Api(config, timeout);
9293 const who = {
9394 ...(input.session_id ? { session: input.session_id } : {}),
--- a/client/src/issues.ts
+++ b/client/src/issues.ts
@@ -1,6 +1,6 @@
11// Issues (#54): abso issues, abso issue, abso ask, abso waiting and avcs
22// answer. The Issues Worker keeps them (avcs-issues beside avcs, or
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
44// an issue (abso start --issue N) puts it In progress, an open ask Blocked or
55// In review, and publish --done closes it. Other agents' and people's words
66// are quoted as JSON, so none can print as another line (#30).
@@ -24,6 +24,7 @@
2424import { type Env, type Output, open, plural } from "./commands.ts";
2525import { type Config, readMachineServers, trustedServers } from "./config.ts";
2626import { issuesServerFor, tokenGoesTo } from "./core.ts";
27+import { fromEnv } from "./env-names.ts";
2728import { seenText, shortWhen } from "./times.ts";
2829
2930const q = (s: string): string => JSON.stringify(s);
@@ -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. */
3233function openIssues(env: Env): { config: Config; api: Api } {
3334 const { config, api } = open(env);
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));
3536 if (server === undefined)
3637 throw new UsageError(
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`,
3839 );
3940 if (config.token !== undefined && !tokenGoesTo(server, trustedServers(env.env))) {
4041 throw new UsageError(
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.`,
4243 );
4344 }
4445 api.issuesServer = server;
--- a/client/src/join-commands.ts
+++ b/client/src/join-commands.ts
@@ -6,11 +6,12 @@
66import { bool, type Parsed, str, UsageError } from "./args.ts";
77import { writeKnownBlobs } from "./blobs.ts";
88import { mintKey, readBox } from "./box.ts";
9−import { STARTING_AVCSIGNORE } from "./check-ignore.ts";
9+import { STARTING_ABSOIGNORE } from "./check-ignore.ts";
1010import { CLIENT_DIR } from "./client-version.ts";
1111import { type Env, type Output, plural } from "./command-env.ts";
1212import { leftOutText, syncFolder, uploadBlobs } from "./commands.ts";
1313import { findRoot, installKey, readConfig, type Settings, tokenFor, writeConfig } from "./config.ts";
14+import { fromEnv } from "./env-names.ts";
1415import { clearKnown, loadIgnore, readFolder, writeKnown } from "./folder.ts";
1516import { modInstalled } from "./install.ts";
1617import { type FullMode, foldModes, writeKnownModes } from "./modes.ts";
@@ -19,8 +20,8 @@
1920import { stateDir } from "./state-dir.ts";
2021
2122function serverFrom(args: Parsed, env: Env): string {
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)");
23+ const server = str(args, "server") ?? fromEnv(env.env, "SERVER");
24+ if (!server) throw new UsageError("give the server with --server <url> (or ABSO_SERVER)");
2425 return server;
2526}
2627
@@ -45,9 +46,9 @@
4546 if (!project) throw new UsageError("give the project a name with --project <name>");
4647 const config = makeSettings(args, env, project);
4748 const asIs = bool(args, "as-is");
48− const avcsignore = join(root, ".avcsignore");
49− const wroteIgnore = !asIs && !existsSync(avcsignore);
50− if (wroteIgnore) writeFileSync(avcsignore, STARTING_AVCSIGNORE);
49+ const absoignore = join(root, ".absoignore");
50+ const wroteIgnore = !asIs && !existsSync(absoignore) && !existsSync(join(root, ".avcsignore"));
51+ if (wroteIgnore) writeFileSync(absoignore, STARTING_ABSOIGNORE);
5152 // What the server runs on each new version (#39), guessed from package.json; recorded with the rest.
5253 const wroteProject = asIs ? "exists" : writeStartingProjectFile(root);
5354 const { files, blobs, modes, leftOut } = readFolder(root, loadIgnore(root));
@@ -72,7 +73,7 @@
7273 `Created project ${project} at version ${answer.version} from ${plural(files.size, "text file")} in ${root}.`,
7374 ...leftOutText(leftOut),
7475 ...(wroteIgnore
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."]
7677 : []),
7778 ...startingProjectFileText(wroteProject),
7879 ...(answer.skipped && answer.skipped.length > 0 ? [`The server skipped: ${answer.skipped.join(", ")}.`] : []),
@@ -87,7 +88,7 @@
8788 files: files.size,
8889 root,
8990 agent: config.agent,
90− wroteAvcsignore: wroteIgnore,
91+ wroteAbsoignore: wroteIgnore,
9192 wroteProjectFile: typeof wroteProject === "string" ? null : wroteProject,
9293 leftOut,
9394 },
--- a/client/src/key-admin.ts
+++ b/client/src/key-admin.ts
@@ -6,6 +6,7 @@
66import { join } from "node:path";
77import { UsageError } from "./args.ts";
88import type { Config } from "./config.ts";
9+import { fromEnv } from "./env-names.ts";
910import { homeFile } from "./state-dir.ts";
1011
1112function originOf(server: string): string {
@@ -16,7 +17,7 @@
1617 }
1718}
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. */
2021export function adminGoesTo(server: string, extra = ""): boolean {
2122 const allowed = [
2223 ...extra
@@ -29,13 +30,13 @@
2930}
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;
33+ const fromVar = fromEnv(env, "ADMIN_TOKEN")?.trim();
34+ if (fromVar) return fromVar;
3435 try {
3536 const fromFile = readFileSync(homeFile(homedir(), "admin-token"), "utf8").trim();
3637 if (fromFile) return fromFile;
3738 } catch {}
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");
3940}
4041
4142function scrub(text: string, secrets: readonly string[]): string {
@@ -45,9 +46,9 @@
4546}
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))
49+ if (!adminGoesTo(config.server, fromEnv(process.env, "ADMIN_SERVERS")))
4950 throw new UsageError(
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`,
5152 );
5253 const secrets = [admin, config.token ?? ""].filter((s) => s.length > 0);
5354 let response: Response;
--- a/client/src/lock.ts
+++ b/client/src/lock.ts
@@ -17,6 +17,7 @@
1717import { basename, join } from "node:path";
1818import { UsageError } from "./args.ts";
1919import { LOCK_FILE, LOCK_STALE_MS, type LockInfo } from "./core.ts";
20+import { fromEnv } from "./env-names.ts";
2021import { writeFileAtomic } from "./folder.ts";
2122import { stateDir } from "./state-dir.ts";
2223
@@ -142,8 +143,8 @@
142143 const mine = held.get(root);
143144 if (mine) mine.depth++;
144145 else {
145− // AVCS_LOCK_WAIT_MS shortens the wait in tests.
146− const until = Date.now() + (Number(process.env.AVCS_LOCK_WAIT_MS) || WAIT_MS);
146+ // ABSO_LOCK_WAIT_MS shortens the wait in tests.
147+ const until = Date.now() + (Number(fromEnv(process.env, "LOCK_WAIT_MS")) || WAIT_MS);
147148 for (;;) {
148149 const got = take(root, what);
149150 if (got === "no folder") return fn(); // no .avcs/ yet (init): nothing to protect
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -89,7 +89,7 @@
8989 flags: { server: "string", project: "string", agent: "string", "as-is": "boolean" },
9090 usage: "abso init [folder] --server <url> --project <name> --agent <name> [--as-is]",
9191 about:
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).",
9393 run: runInit,
9494 },
9595 key: {
@@ -562,7 +562,7 @@
562562 flags: { version: "string", keep: "string" },
563563 usage: "abso export <dir> [--version <N>] [--keep <glob>]",
564564 about:
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.",
566566 run: runExport,
567567 },
568568 files: {
@@ -686,7 +686,7 @@
686686 flags: {},
687687 usage: "abso check-ignore <path...>",
688688 about:
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).",
690690 run: runCheckIgnore,
691691 },
692692 pipeline: {
@@ -725,7 +725,7 @@
725725 " abso --version",
726726 " This client's version and commit, and the abso mods installed on this machine.",
727727 "",
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).",
729729 ].join("\n");
730730}
731731
--- a/client/src/mcp.ts
+++ b/client/src/mcp.ts
@@ -2,7 +2,7 @@
22// command, run by the same code as the command line and answering with the
33// same text, so the CLI and the tools can't drift apart and an agent learns
44// one set of words. The folder and the token come from where the server runs,
5−// as for the CLI: .avcs/config.json, and AVCS_TOKEN or ~/.avcs/token.
5+// as for the CLI: .avcs/config.json, and ABSO_TOKEN or ~/.abso/token.
66//
77// claude mcp add avcs -- node <repo>/client/avcs.ts mcp
88//
--- a/client/src/publish-commands.ts
+++ b/client/src/publish-commands.ts
@@ -21,6 +21,7 @@
2121 withLeftOut,
2222} from "./commands.ts";
2323import { type Config, isReader } from "./config.ts";
24+import { fromEnv } from "./env-names.ts";
2425import { ignoredHere } from "./fetch.ts";
2526import { absolute, forgetKnown, isLocalOnly, type LeftOut, loadIgnore, readText, writeFileAtomic } from "./folder.ts";
2627import { PROJECT_FILE, readProjectFile } from "./project-file.ts";
@@ -352,7 +353,7 @@
352353 answer.queued,
353354 waitSeconds * 1000,
354355 say,
355− Number(env.env.AVCS_QUEUE_POLL_MS) || 3000,
356+ Number(fromEnv(env.env, "QUEUE_POLL_MS")) || 3000,
356357 );
357358 if (out.kind !== "waiting") heard(root, out.news);
358359 if (out.kind === "landed")
--- a/client/src/review.ts
+++ b/client/src/review.ts
@@ -8,6 +8,7 @@
88import type { ChangeAnswer, NoteAnswer } from "./api.ts";
99import { bool, type Parsed, str, UsageError } from "./args.ts";
1010import { type Env, type Output, open, plural, recordFolder } from "./commands.ts";
11+import { fromEnv } from "./env-names.ts";
1112import { writeFileAtomic } from "./folder.ts";
1213import { fileArg, when } from "./history.ts";
1314import { stateDir } from "./state-dir.ts";
@@ -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.
172173 const firstLook = mark === undefined && raw === undefined;
173− // AVCS_REVIEW_PAGE shortens the page in tests.
174− const pageSize = Number(process.env.AVCS_REVIEW_PAGE) || 200;
174+ // ABSO_REVIEW_PAGE shortens the page in tests.
175+ const pageSize = Number(fromEnv(process.env, "REVIEW_PAGE")) || 200;
175176 const answer = await api.changes(since, firstLook ? 20 : pageSize);
176177 const all = [...answer.changes];
177178 for (
--- a/client/src/serve-commands.ts
+++ b/client/src/serve-commands.ts
@@ -36,15 +36,15 @@
3636}
3737
3838/**
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: ",
39+ * The script abso shot runs in the box (from /w/.abso-shot, so 'playwright' is
40+ * the project's own). It reads its setup from ABSO_SHOT and prints marked
41+ * lines the client picks out: ABSO_SHOT_IMAGE {json}, blocks between
42+ * ABSO_SHOT_BEGIN <name> and ABSO_SHOT_END, and "eval: ", "page error: ",
4343 * "console " lines. No backticks or dollar-braces in here: it's a raw string.
4444 */
4545const SHOOTER = String.raw`import { chromium } from 'playwright';
4646import { writeFileSync } from 'node:fs';
47−const c = JSON.parse(process.env.AVCS_SHOT);
47+const c = JSON.parse(process.env.ABSO_SHOT);
4848const b = await chromium.launch();
4949const p = await b.newPage({ viewport: { width: c.w, height: c.h } });
5050const logged = [];
@@ -97,9 +97,9 @@
9797 return out;
9898};
9999const block = (name, text, max) => {
100− console.log('AVCS_SHOT_BEGIN ' + name);
100+ console.log('ABSO_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');
102+ console.log('ABSO_SHOT_END');
103103};
104104const at = async (spec) => {
105105 if (spec.ref === undefined) return [spec.x, spec.y];
@@ -148,7 +148,7 @@
148148 h = sh;
149149 }
150150 writeFileSync(c.out, png);
151− console.log('AVCS_SHOT_IMAGE ' + JSON.stringify({ w, h, bytes: png.length }));
151+ console.log('ABSO_SHOT_IMAGE ' + JSON.stringify({ w, h, bytes: png.length }));
152152}
153153for (const l of logged) console.log('console ' + l);
154154if (dropped > 0) console.log('console (' + dropped + ' more messages not shown)');
@@ -260,7 +260,7 @@
260260 eval: evalJs ?? null,
261261 clicks,
262262 mouse,
263− out: `.avcs-shot/${name}`,
263+ out: `.abso-shot/${name}`,
264264 image,
265265 scale,
266266 region,
@@ -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`,
284+ "mkdir -p .abso-shot",
285+ `cat > .abso-shot/shoot.mjs <<'ABSO_SHOT_EOF'\n${SHOOTER}\nABSO_SHOT_EOF`,
286+ `ABSO_SHOT=${shellWord(JSON.stringify(setup))} node .abso-shot/shoot.mjs`,
287287 ].join("\n");
288288 const said: string[] = [];
289289 const keep = (t: string) => void said.push(t);
@@ -308,10 +308,10 @@
308308 }
309309 const blocks: { name: string; text: string }[] = [];
310310 for (let i = 0; i < lines.length; i++) {
311− if (!lines[i]!.startsWith("AVCS_SHOT_BEGIN ")) continue;
312− const end = lines.indexOf("AVCS_SHOT_END", i + 1);
311+ if (!lines[i]!.startsWith("ABSO_SHOT_BEGIN ")) continue;
312+ const end = lines.indexOf("ABSO_SHOT_END", i + 1);
313313 blocks.push({
314− name: lines[i]!.slice("AVCS_SHOT_BEGIN ".length),
314+ name: lines[i]!.slice("ABSO_SHOT_BEGIN ".length),
315315 text: lines.slice(i + 1, end < 0 ? undefined : end).join("\n"),
316316 });
317317 if (end > i) i = end;
@@ -327,15 +327,15 @@
327327 const out: string[] = [];
328328 let shot: { path: string; w: number; h: number; bytes: number; tokens: number } | null = null;
329329 if (image) {
330− const info = lines.find((l) => l.startsWith("AVCS_SHOT_IMAGE "));
330+ const info = lines.find((l) => l.startsWith("ABSO_SHOT_IMAGE "));
331331 const { root, api } = open(env);
332332 void root;
333333 api.box = boxOf(args, env);
334− const gz = await api.boxFiles(`.avcs-shot/${name}`);
335− const png = gz === null ? undefined : untarGz(gz).find((e) => e.path === `.avcs-shot/${name}`);
334+ const gz = await api.boxFiles(`.abso-shot/${name}`);
335+ const png = gz === null ? undefined : untarGz(gz).find((e) => e.path === `.abso-shot/${name}`);
336336 if (!png || !info)
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 };
339339 const path = resolve(env.cwd, str(args, "out") ?? join(".avcs", "shots", name));
340340 mkdirSync(join(path, ".."), { recursive: true });
341341 writeFileSync(path, png.data);
--- a/client/test/client.test.ts
+++ b/client/test/client.test.ts
@@ -206,7 +206,7 @@
206206 );
207207 writeFileSync(join(folders.alice!, "pic.bin"), new Uint8Array([1, 0, 2]));
208208 assert.deepEqual(Object.keys(shared(name)).sort(), [
209− ".avcsignore",
209+ ".absoignore",
210210 ".gitignore",
211211 "empty.ts",
212212 "keep.log",
@@ -215,7 +215,7 @@
215215 "src/a.ts",
216216 ]);
217217 assert.equal(shared(name)["empty.ts"], "", "an empty file is a file");
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");
220220 assert.ok(
221221 calls(name, "alice").some(
@@ -1566,7 +1566,7 @@
15661566 assert.equal(r.exit, 1);
15671567 assert.match(
15681568 r.stderr,
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/,
15701570 );
15711571 const join2 = await main(["join", "x", "--agent", "bob", "--server", "https://evil.example"], {
15721572 cwd: temp(),
@@ -1832,7 +1832,7 @@
18321832 it("brings back what abso ignores, and names what it would not write", async () => {
18331833 const { folders } = await project({ "make.js": `${MAKE}\n`, "notes.txt": "mine\n" }, "alice");
18341834 const alice = folders.alice!;
1835− writeFileSync(join(alice, ".avcsignore"), `${read(alice, ".avcsignore")}out/\n`);
1835+ writeFileSync(join(alice, ".absoignore"), `${read(alice, ".absoignore")}out/\n`);
18361836 let err = "";
18371837 const r = await main(["run", "--fetch", "out/*,notes.txt", "node", "make.js"], {
18381838 cwd: alice,
@@ -1844,7 +1844,7 @@
18441844 assert.match(err, /Fetched 2 files from the box: out\/run\.log, out\/shot\.png\.\n/);
18451845 assert.match(
18461846 err,
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/,
18481848 );
18491849 assert.deepEqual([...readFileSync(join(alice, "out", "shot.png"))], [137, 80, 78, 71, 0, 1, 2]);
18501850 assert.equal(read(alice, "notes.txt"), "mine\n", "a recorded file is left alone");
@@ -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 () => {
18681868 const { folders } = await project({ "make.js": `${MAKE}\n` }, "alice");
18691869 const alice = folders.alice!;
1870− writeFileSync(join(alice, ".avcsignore"), `${read(alice, ".avcsignore")}out/\n`);
1870+ writeFileSync(join(alice, ".absoignore"), `${read(alice, ".absoignore")}out/\n`);
18711871 await main(["run", "node", "make.js"], { cwd: alice, env: ENV, write: () => {}, writeErr: () => {} });
18721872 fake.boxExtra = [
18731873 { path: "../evil.txt", data: new TextEncoder().encode("x") },
@@ -1925,15 +1925,15 @@
19251925 const one = await avcs(tester, "export", out, "--version", "1");
19261926 assert.equal(one.exit, 0, one.out);
19271927 assert.equal(one.json.version, 1);
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"]);
19291929 assert.equal(read(out, "src/game.ts"), "game v1\n");
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);
1931+ assert.equal(JSON.parse(read(out, ".abso-export.json")).version, 1);
19321932 // The newest by default; an earlier export's folder is replaced whole.
19331933 const newest = await main(["export", out], { cwd: tester, env: ENV, write: () => {} });
19341934 assert.match(
19351935 newest.stdout,
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/,
19371937 );
19381938 assert.equal(read(out, "src/game.ts"), "game v2\n");
19391939 // Exporting again keeps the build's node_modules (abso never exports it) and what --keep names, and nothing else.
@@ -1968,7 +1968,7 @@
19681968 assert.equal(inside.exit, 1);
19691969 assert.match(inside.out, /abso would record the export/);
19701970 assert.match((await avcs(folders.alice!, "export", ".")).out, /holds this abso folder/);
1971− write(folders.alice!, { ".avcsignore": `${read(folders.alice!, ".avcsignore")}build/\n` });
1971+ write(folders.alice!, { ".absoignore": `${read(folders.alice!, ".absoignore")}build/\n` });
19721972 assert.equal((await avcs(folders.alice!, "export", "build")).exit, 0);
19731973 assert.equal(read(folders.alice!, "build/src/game.ts"), "game v0\n");
19741974 });
@@ -2021,7 +2021,7 @@
20212021 listed.stdout,
20222022 [
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",
2024+ ".absoignore",
20252025 "src/main.ts",
20262026 "src/state.ts (missing from this folder)",
20272027 "tools/play.mjs",
@@ -2054,7 +2054,7 @@
20542054 const { folders } = await project(FILES, "alice", "bob");
20552055 write(folders.alice!, { "src/new.ts": "new\n" });
20562056 assert.equal((await avcs(folders.alice!, "publish", "-m", "new")).exit, 0);
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: () => {} });
20592059 assert.match(now.stdout, /^shared at version 1 holds 6 files\.\n/);
20602060 assert.match(now.stdout, /\nsrc\/new\.ts\n/);
@@ -2860,7 +2860,7 @@
28602860 });
28612861 assert.equal(imported.exit, 0, imported.stdout + imported.stderr);
28622862 assert.equal(existsSync(join(asIs, "avcs.json")), false);
2863− assert.equal(existsSync(join(asIs, ".avcsignore")), false);
2863+ assert.equal(existsSync(join(asIs, ".absoignore")), false);
28642864 assert.doesNotMatch(imported.stdout, /Wrote|No avcs\.json written/);
28652865 });
28662866
@@ -4239,7 +4239,7 @@
42394239 const { name, folders } = await project({ "a.ts": "one\n", "b.ts": "b\n" }, "alice", "bob");
42404240 renameSync(join(folders.alice!, "a.ts"), join(folders.alice!, "A.ts"));
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"]);
4242+ assert.deepEqual(Object.keys(shared(name)).sort(), [".absoignore", "A.ts", "b.ts"]);
42434243 assert.equal(
42444244 (await avcs(folders.alice!, "status")).json.unrecorded?.length ?? 0,
42454245 0,
@@ -4277,7 +4277,7 @@
42774277 "nothing left to record: the moves are in the draft",
42784278 );
42794279 assert.equal((await avcs(folders.alice!, "publish", "-m", "renames")).exit, 0);
4280− assert.deepEqual(Object.keys(shared(name)).sort(), [".avcsignore", "README.md", "lib/a.ts"]);
4280+ assert.deepEqual(Object.keys(shared(name)).sort(), [".absoignore", "README.md", "lib/a.ts"]);
42814281 // The lines kept their history: blame still names the init version.
42824282 assert.match((await run(folders.alice!, "blame", "README.md")).stdout, /\binit\b/);
42834283 assert.equal((await avcs(folders.bob!, "sync")).exit, 0);
--- /dev/null
+++ b/client/test/env-names.test.ts
@@ -0,0 +1,25 @@
1+import assert from "node:assert/strict";
2+import { test } from "node:test";
3+import { readToken, trustedServers } from "../src/config.ts";
4+import { fromEnv, withOldNames } from "../src/env-names.ts";
5+
6+test("ABSO_ names win over AVCS_ ones, and the old ones still work", () => {
7+ assert.equal(fromEnv({ ABSO_X: "new", AVCS_X: "old" }, "X"), "new");
8+ assert.equal(fromEnv({ AVCS_X: "old" }, "X"), "old");
9+ assert.equal(fromEnv({ ABSO_X: "", AVCS_X: "old" }, "X"), "old");
10+ assert.equal(fromEnv({}, "X"), undefined);
11+ assert.equal(readToken({ ABSO_TOKEN: " new ", AVCS_TOKEN: "old" }), "new");
12+ assert.equal(readToken({ AVCS_TOKEN: "old" }), "old");
13+ assert.match(
14+ trustedServers({ ABSO_TRUSTED_SERVERS: "https://a.example", ABSO_SERVERS_FILE: "no-servers.json" }),
15+ /a\.example/,
16+ );
17+});
19+test("a program abso runs gets both the new and the old names", () => {
20+ const out = withOldNames({ ABSO_AGENT: "a", ABSO_SPACE: "shared", OTHER: "x" });
21+ assert.equal(out.AVCS_AGENT, "a");
22+ assert.equal(out.AVCS_SPACE, "shared");
23+ assert.equal(out.ABSO_AGENT, "a");
24+ assert.equal(out.AVCS_OTHER, undefined);
25+});
--- a/client/test/ignore.test.ts
+++ b/client/test/ignore.test.ts
@@ -305,6 +305,24 @@
305305 assert.equal(ignore.why("src/b.md", false).rule?.source, "src/.avcsignore");
306306 });
307307
308+ it("read .absoignore, which beats .avcsignore and .gitignore in the same folder", () => {
309+ const root = temp();
310+ write(root, {
311+ ".gitignore": "*.txt\n",
312+ ".avcsignore": "*.md\n",
313+ ".absoignore": "!a.txt\n!a.md\n*.log\n",
314+ "a.txt": "x",
315+ "a.md": "x",
316+ "b.md": "x",
317+ "c.log": "x",
318+ });
319+ const ignore = loadIgnore(root, { home: temp() });
320+ assert.equal(ignore("a.txt", false), false);
321+ assert.equal(ignore("a.md", false), false);
322+ assert.equal(ignore("c.log", false), true);
323+ assert.equal(ignore.why("c.log", false).rule?.source, ".absoignore");
324+ });
308326 it("always skip .git, .abso, .claude and node_modules", () => {
309327 const ignore = loadIgnore(temp(), {});
310328 assert.equal(ignore.why(".claude/scheduled_tasks.lock", false).alwaysSkipped, ".claude");
--- a/client/test/issues.test.ts
+++ b/client/test/issues.test.ts
@@ -114,7 +114,7 @@
114114 assert.notEqual(none.exit, 0);
115115 assert.match(
116116 none.out,
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/,
118118 );
119119 });
120120
--- a/client/test/key-admin.test.ts
+++ b/client/test/key-admin.test.ts
@@ -60,7 +60,8 @@
6060
6161test("the admin token comes from the environment, not from a file argument", () => {
6262 assert.equal(adminToken({ AVCS_ADMIN_TOKEN: ADMIN }), ADMIN);
63− assert.throws(() => adminToken({}), /AVCS_ADMIN_TOKEN/);
63+ assert.equal(adminToken({ ABSO_ADMIN_TOKEN: ADMIN }), ADMIN);
64+ assert.throws(() => adminToken({}), /ABSO_ADMIN_TOKEN/);
6465});
6566
6667test("key new sends the admin token as a header and returns the key once", async () => {