{"draft":null,"from":27,"to":28,"files":[{"path":"client/src/project-file.ts","added":19,"removed":11,"diff":"--- a/client/src/project-file.ts\n+++ b/client/src/project-file.ts\n@@ -6,8 +6,16 @@\n import { existsSync, readFileSync, writeFileSync } from \"node:fs\";\n import { join } from \"node:path\";\n \n-export const PROJECT_FILE = \"avcs.json\";\n+/** The project file's name: abso.json, or avcs.json from before the rename. A new one is written as abso.json. */\n+export const PROJECT_FILE = \"abso.json\";\n+export const OLD_PROJECT_FILE = \"avcs.json\";\n \n+/** The name the folder's project file has: abso.json when it is there, else avcs.json when that is, else the new name. */\n+export function projectFileName(root: string): string {\n+\tif (existsSync(join(root, PROJECT_FILE))) return PROJECT_FILE;\n+\treturn existsSync(join(root, OLD_PROJECT_FILE)) ? OLD_PROJECT_FILE : PROJECT_FILE;\n+}\n+\n /** Each key optional; an empty string counts as missing. */\n export interface ProjectFile {\n \treadonly setup: string;\n@@ -20,22 +28,22 @@\n \n const KEYS = [\"setup\", \"check\", \"build\", \"out\"] as const;\n \n-/** The folder's avcs.json, or why it can't be read; null when there is none. */\n+/** The folder's abso.json (or avcs.json), or why it can't be read; null when there is none. */\n export function readProjectFile(root: string): { file: ProjectFile } | { error: string } | null {\n-\tconst path = join(root, PROJECT_FILE);\n+\tconst name = projectFileName(root);\n+\tconst path = join(root, name);\n \tif (!existsSync(path)) return null;\n \tlet raw: unknown;\n \ttry {\n \t\traw = JSON.parse(readFileSync(path, \"utf8\"));\n \t} catch (e) {\n-\t\treturn { error: `${PROJECT_FILE} isn't valid JSON (${(e as Error).message})` };\n+\t\treturn { error: `${name} isn't valid JSON (${(e as Error).message})` };\n \t}\n \tif (typeof raw !== \"object\" || raw === null || Array.isArray(raw))\n-\t\treturn { error: `${PROJECT_FILE} should hold an object, like {\"check\": \"npm test\"}` };\n+\t\treturn { error: `${name} should hold an object, like {\"check\": \"npm test\"}` };\n \tconst o = raw as Record<string, unknown>;\n \tfor (const k of KEYS) {\n-\t\tif (o[k] !== undefined && typeof o[k] !== \"string\")\n-\t\t\treturn { error: `\"${k}\" in ${PROJECT_FILE} should be a string` };\n+\t\tif (o[k] !== undefined && typeof o[k] !== \"string\") return { error: `\"${k}\" in ${name} should be a string` };\n \t}\n \tconst get = (k: (typeof KEYS)[number]) => ((o[k] as string | undefined) ?? \"\").trim();\n \treturn {\n@@ -52,7 +60,7 @@\n /** npm's placeholder test script, which always fails. */\n const NO_TEST = /no test specified/;\n \n-/** A starting avcs.json, guessed from package.json; empty where nothing can be guessed. */\n+/** A starting abso.json, guessed from package.json; empty where nothing can be guessed. */\n export function guessProjectFile(root: string): ProjectFile {\n \tlet pkg: {\n \t\tscripts?: Record<string, unknown>;\n@@ -80,20 +88,20 @@\n }\n \n /**\n- * Writes a guessed avcs.json when the folder has none and package.json gives\n+ * Writes a guessed abso.json (unless it has abso.json or avcs.json) when the folder has none and package.json gives\n  * a check or a build to guess (#39, Agent VCS: a project with nothing to\n  * check shouldn't start boxes; CI skips a version with nothing to run).\n  * Answers what it wrote; 'exists' or 'nothing' when it wrote none.\n  */\n export function writeStartingProjectFile(root: string): ProjectFile | \"exists\" | \"nothing\" {\n-\tif (existsSync(join(root, PROJECT_FILE))) return \"exists\";\n+\tif (existsSync(join(root, PROJECT_FILE)) || existsSync(join(root, OLD_PROJECT_FILE))) return \"exists\";\n \tconst guess = guessProjectFile(root);\n \tif (guess.check === \"\" && guess.build === \"\") return \"nothing\";\n \twriteFileSync(join(root, PROJECT_FILE), `${JSON.stringify(guess, null, 2)}\\n`);\n \treturn guess;\n }\n \n-/** What init says about avcs.json. */\n+/** What init says about abso.json. */\n export function startingProjectFileText(wrote: ProjectFile | \"exists\" | \"nothing\"): string[] {\n \tif (wrote === \"exists\") return [];\n \tif (wrote === \"nothing\") {"}],"unmatched":[]}