- MCP
- show on this site's /mcp
- CLI
- abso show 28 --json
- JSON
- /christopher/abso-core/versions/28?format=json
Client: abso.json is the project file (avcs.json still read; a new project gets abso.json unless it has either); new folders get .abso when no installed mod is older than 0.2.0; both mods are 0.2.0 (abso 253, 224)
of shared·review··Not checked
Version 27 · Files at version 28
16 files, 116 lines added, 44 removed.
--- a/client/.claude-plugin/plugin.json
+++ b/client/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
3− "version": "0.1.0",
44 "description": "Records each Claude Code edit into the agent's draft on the avcs server, and hands news about others' published work back to the agent.",
--- a/client/src/blobs.ts
+++ b/client/src/blobs.ts
@@ -21,7 +21,7 @@
2121
24− * (#46): a text file matching avcs.json's "whole", or over 1 MB, is stored
--- a/client/src/ci-answers.ts
+++ b/client/src/ci-answers.ts
@@ -73,7 +73,7 @@
76− /** The failing step: setup, build, check, avcs.json or box. */
--- a/client/src/ci.ts
+++ b/client/src/ci.ts
@@ -1,4 +1,4 @@
1−// What the project's CI says (#39): the server runs avcs.json's setup, build
44
@@ -51,7 +51,7 @@
5151 shared > v ? (ci.running !== null ? running : ci.skipped ? "" : ` Versions after ${v} aren't checked yet.`) : "";
5252 if (ci.checked.result === "pass") lines.push(`Shared is green: version ${v} passed its check.${newer}`);
5353 else if (ci.checked.result === "fail") lines.push(`Version ${v} failed its check. abso ci ${v} shows why.${newer}`);
54− else lines.push(`CI couldn't check version ${v} (the box failed twice, or avcs.json has nothing to run).${newer}`);
54+ else lines.push(`CI couldn't check version ${v} (the box failed twice, or abso.json has nothing to run).${newer}`);
@@ -114,7 +114,7 @@
114114 ? `Version ${job.version} passed${covered}${took === "" ? "" : ` (${took})`}${job.built ? "; its build is kept for the preview" : ""}.`
116116 ? `Version ${job.version} failed at ${job.step ?? "a step"}${job.exit === undefined || job.exit === null ? "" : ` (exit ${job.exit})`}${covered}${took === "" ? "" : `, ${took}`}.`
117− : `Version ${job.version} wasn't checked${job.step === undefined ? "" : ` (${job.step})`}: the box failed twice, or avcs.json has nothing to run.`;
117+ : `Version ${job.version} wasn't checked${job.step === undefined ? "" : ` (${job.step})`}: the box failed twice, or abso.json has nothing to run.`;
--- a/client/src/join-commands.ts
+++ b/client/src/join-commands.ts
@@ -15,7 +15,7 @@
18−import { PROJECT_FILE, readProjectFile, startingProjectFileText, writeStartingProjectFile } from "./project-file.ts";
18+import { projectFileName, readProjectFile, startingProjectFileText, writeStartingProjectFile } from "./project-file.ts";
2121
@@ -153,7 +153,7 @@
156− : [`Nothing is installed yet. Before building or testing here, run ${PROJECT_FILE}'s setup: ${setup}`];
156+ : [`Nothing is installed yet. Before building or testing here, run ${projectFileName(root)}'s setup: ${setup}`];
158158
--- a/client/src/pipeline-commands.ts
+++ b/client/src/pipeline-commands.ts
@@ -11,7 +11,7 @@
1212
14−export const PIPELINE_FILES = ["abso.yml", "abso.yaml", "avcs.json"] as const;
1515
--- a/client/src/project-file.ts
+++ b/client/src/project-file.ts
@@ -6,8 +6,16 @@
88
9−export const PROJECT_FILE = "avcs.json";
9+/** The project file's name: abso.json, or avcs.json from before the rename. A new one is written as abso.json. */
1012
13+/** The name the folder's project file has: abso.json when it is there, else avcs.json when that is, else the new name. */
18+
@@ -20,22 +28,22 @@
2028
2230
23−/** The folder's avcs.json, or why it can't be read; null when there is none. */
2432export function readProjectFile(root: string): { file: ProjectFile } | { error: string } | null {
25− const path = join(root, PROJECT_FILE);
31− return { error: `${PROJECT_FILE} isn't valid JSON (${(e as Error).message})` };
34− return { error: `${PROJECT_FILE} should hold an object, like {"check": "npm test"}` };
37− if (o[k] !== undefined && typeof o[k] !== "string")
38− return { error: `"${k}" in ${PROJECT_FILE} should be a string` };
46+ if (o[k] !== undefined && typeof o[k] !== "string") return { error: `"${k}" in ${name} should be a string` };
@@ -52,7 +60,7 @@
5462
55−/** A starting avcs.json, guessed from package.json; empty where nothing can be guessed. */
@@ -80,20 +88,20 @@
8189
83− * Writes a guessed avcs.json when the folder has none and package.json gives
91+ * Writes a guessed abso.json (unless it has abso.json or avcs.json) when the folder has none and package.json gives
89− if (existsSync(join(root, PROJECT_FILE))) return "exists";
97+ if (existsSync(join(root, PROJECT_FILE)) || existsSync(join(root, OLD_PROJECT_FILE))) return "exists";
95103
96−/** What init says about avcs.json. */
--- a/client/src/publish-commands.ts
+++ b/client/src/publish-commands.ts
@@ -24,7 +24,7 @@
2626import { absolute, forgetKnown, isLocalOnly, type LeftOut, loadIgnore, readText, writeFileAtomic } from "./folder.ts";
27−import { PROJECT_FILE, readProjectFile } from "./project-file.ts";
@@ -89,6 +89,7 @@
8989 // --check alone: the build and check in the draft's own avcs.json, as the server's job runs them on
9495 pf === null ? `there is no ${PROJECT_FILE}` : "error" in pf ? pf.error : `${PROJECT_FILE} has no "check"`;
--- a/client/src/queue.ts
+++ b/client/src/queue.ts
@@ -1,4 +1,4 @@
1−// The merge queue on the client (#39): with "queue": true in avcs.json, a
--- a/client/src/state-dir.ts
+++ b/client/src/state-dir.ts
@@ -1,27 +1,56 @@
11// Where abso keeps its state (the rename from avcs). Reading takes .abso/ first, then .avcs/, so a folder in
2−// either works. A new folder is still made with .avcs/ for now: an edit mod or Cursor hook installed before the
3−// rename looks only for .avcs/config.json, and would stop recording a .abso/ folder's edits without a word.
4−// New folders move to .abso/ once installs can say which mods know it; `abso migrate` will move old ones. The
5−// user's files are written to ~/.abso/ (an older client that can't find them says so: it isn't silent).
6−// No imports from the rest of the client, so any module can use this.
2+// either works. A new folder is made with .abso/ unless an edit mod installed here is from before the rename:
3+// such a mod looks only for .avcs/config.json, and would stop recording a .abso/ folder's edits without a word.
4+// So a new folder gets .avcs/ while any installed mod is older than MOD_KNOWS_ABSO, and .abso/ otherwise.
5+// The user's files are written to ~/.abso/ (an older client that can't find them says so: it isn't silent).
77
8−import { existsSync } from "node:fs";
1011
1415
15−/** A folder's state folder: whichever has a config.json (.abso first), else whichever exists, else .avcs for a folder not made yet (see above). */
16+/** A folder's state folder: whichever has a config.json (.abso first), else whichever exists, else the new folder's name (newFolderDir). */
1718 for (const name of STATE_DIRS) if (existsSync(join(root, name, "config.json"))) return join(root, name);
19− return join(root, NEW_FOLDER_DIR);
2122
22−/** What a new folder is made with: .avcs until installed mods can be relied on to know .abso. */
23−export const NEW_FOLDER_DIR: string = OLD_STATE_DIR;
23+/** The first mod version whose hooks look for .abso/config.json as well as .avcs/config.json. */
2425
28+
37+
38+/** What a new folder is made with: .abso, unless an installed mod is older than the rename (see the top). */
39+export function newFolderDir(env: Readonly<Record<string, string | undefined>> = process.env): string {
44+ version = (JSON.parse(readFileSync(join(skills, name, ".avcs-install.json"), "utf8")) as { version?: unknown })
49+ if (typeof version !== "string" || !versionAtLeast(version, MOD_KNOWS_ABSO)) return OLD_STATE_DIR;
53+
2554/** A file under the user's home to read: ~/.abso/<parts>, else the old ~/.avcs/<parts> when only that exists, else the new place. */
--- a/client/test/client.test.ts
+++ b/client/test/client.test.ts
@@ -2808,7 +2808,7 @@
28092809 const pkg = JSON.stringify({ scripts: { typecheck: "tsc", test: "node --test" }, devDependencies: { vite: "^5" } });
28102810 const { name } = await project({ "package.json": pkg, "package-lock.json": "{}\n" }, "alice");
2811− assert.deepEqual(JSON.parse(shared(name)["avcs.json"]!), {
@@ -2816,6 +2816,11 @@
@@ -2828,15 +2833,15 @@
2831− JSON.parse(read(dir, "avcs.json")),
2837− /\nWrote avcs\.json: CI will run on every new version of shared \(setup "npm install", build "npm run build"\)\. Fill in check, out when the project has them\./,
2842+ /\nWrote abso.json: CI will run on every new version of shared \(setup "npm install", build "npm run build"\)\. Fill in check, out when the project has them\./,
2839− // Nothing to check or build: no avcs.json, so CI has nothing to run and starts no boxes (#39, Agent VCS).
2844+ // Nothing to check or build: no abso.json, so CI has nothing to run and starts no boxes (#39, Agent VCS).
28412846 write(bare, { "a.txt": "a\n", "package.json": JSON.stringify({ scripts: { start: "node a.js" } }) });
28422847 const off = await main(["init", "--server", fake.url, "--project", "guess-none", "--agent", "alice"], {
@@ -2845,10 +2850,10 @@
2848− assert.equal(existsSync(join(bare, "avcs.json")), false);
2851− /\nNo avcs\.json written: package\.json gives no check or build to guess, so CI has nothing to run on each new version\. To give it a check, publish an avcs\.json like \{"check": "npm test"\}/,
2856+ /\nNo abso.json written: package\.json gives no check or build to guess, so CI has nothing to run on each new version\. To give it a check, publish an abso.json like \{"check": "npm test"\}/,
28532858 // --as-is (an import, #58): the folder goes up exactly as it is, with nothing of avcs's own added.
@@ -2928,7 +2933,7 @@
2931− /--check alone runs the project's check, but there is no avcs\.json\. Set "check" in avcs\.json/,
2936+ /--check alone runs the project's check, but there is no abso.json\. Set "check" in abso.json/,
@@ -3062,7 +3067,7 @@
30643069 assert.deepEqual(ciText({ ...base, checked: { version: 2, result: "none" }, running: null }, 3, now), [
3065− "CI couldn't check version 2 (the box failed twice, or avcs.json has nothing to run). Versions after 2 aren't checked yet.",
3070+ "CI couldn't check version 2 (the box failed twice, or abso.json has nothing to run). Versions after 2 aren't checked yet.",
30683073 ciText({ ...base, running: null, red: { version: 1, agent: null, message: null, lastGood: null } }, 1, now),
--- a/client/test/install.test.ts
+++ b/client/test/install.test.ts
@@ -346,7 +346,7 @@
349− /^the avcs mod: 0\.1\.0\+aaaaaaa in .*skills[\\/]avcs, installed 2026-10-05 04:30 UTC; this client has 0\.1\.0(\+[0-9a-f]{7}(\.dirty)?)?: node client\/install-mod\.ts installs it$/,
349+ /^the avcs mod: 0\.1\.0\+aaaaaaa in .*skills[\\/]avcs, installed 2026-10-05 04:30 UTC; this client has 0.2.0(\+[0-9a-f]{7}(\.dirty)?)?: node client\/install-mod\.ts installs it$/,
--- /dev/null
+++ b/client/test/new-folder-dir.test.ts
@@ -0,0 +1,29 @@
7+
18+
19+test("a new folder gets .abso when no mod is installed, or every installed mod knows it", () => {
21+ assert.equal(newFolderDir(claudeWith({ avcs: "0.2.0+abc1234", "avcs-view": "0.2.0" })), ".abso");
24+
--- a/client/test/pipeline-commands.test.ts
+++ b/client/test/pipeline-commands.test.ts
@@ -91,7 +91,7 @@
94− assert.match(none.stderr, /no pipeline file in .*: looked for abso\.yml, abso\.yaml, avcs\.json/);
94+ assert.match(none.stderr, /no pipeline file in .*: looked for abso\.yml, abso\.yaml, abso\.json, avcs\.json/);
--- a/client/view/.claude-plugin/plugin.json
+++ b/client/view/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
3− "version": "0.1.0",
44 "description": "Shows this chat's abso state: its space, its draft, who else is on the same files, and recent news",
--- a/src/pipeline/pipeline.ts
+++ b/src/pipeline/pipeline.ts
@@ -107,7 +107,7 @@
108108 return fail([{ at: "file", message: `${fileName} isn't valid ${json ? "JSON" : "YAML"}${where}: ${first}` }]);
110− return checkPipelines(doc, { avcsJson: /(^|[\\/])avcs\.json$/i.test(fileName) });
112112
113113/** Checks a parsed file. With `avcsJson`, today's CI keys beside the pipelines are allowed. */