{"draft":null,"from":17,"to":18,"files":[{"path":"client/src/state-dir.ts","added":10,"removed":5,"diff":"--- a/client/src/state-dir.ts\n+++ b/client/src/state-dir.ts\n@@ -1,6 +1,8 @@\n-// Where abso keeps its state (the rename from avcs). A new folder keeps it in .abso/ and the user's in ~/.abso/.\n-// Folders and machines from before keep working on .avcs/ and ~/.avcs/, untouched: a folder is never half-moved,\n-// so an older client or installed mod still finds it. A later `abso migrate` moves a folder once its mods are updated.\n+// Where abso keeps its state (the rename from avcs). Reading takes .abso/ first, then .avcs/, so a folder in\n+// either works. A new folder is still made with .avcs/ for now: an edit mod or Cursor hook installed before the\n+// rename looks only for .avcs/config.json, and would stop recording a .abso/ folder's edits without a word.\n+// New folders move to .abso/ once installs can say which mods know it; `abso migrate` will move old ones. The\n+// user's files are written to ~/.abso/ (an older client that can't find them says so: it isn't silent).\n // No imports from the rest of the client, so any module can use this.\n \n import { existsSync } from \"node:fs\";\n@@ -10,13 +12,16 @@\n export const OLD_STATE_DIR = \".avcs\";\n const STATE_DIRS = [STATE_DIR, OLD_STATE_DIR] as const;\n \n-/** A folder's state folder: whichever has a config.json (.abso first), else whichever exists, else .abso for a folder not made yet. */\n+/** 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). */\n export function stateDir(root: string): string {\n \tfor (const name of STATE_DIRS) if (existsSync(join(root, name, \"config.json\"))) return join(root, name);\n \tfor (const name of STATE_DIRS) if (existsSync(join(root, name))) return join(root, name);\n-\treturn join(root, STATE_DIR);\n+\treturn join(root, NEW_FOLDER_DIR);\n }\n \n+/** What a new folder is made with: .avcs until installed mods can be relied on to know .abso. */\n+export const NEW_FOLDER_DIR: string = OLD_STATE_DIR;\n+\n /** A file under the user's home to read: ~/.abso/<parts>, else the old ~/.avcs/<parts> when only that exists, else the new place. */\n export function homeFile(home: string, ...parts: string[]): string {\n \tfor (const name of STATE_DIRS) {"}],"unmatched":[]}