{"draft":null,"from":16,"to":17,"files":[{"path":"client/src/commands.ts","added":4,"removed":3,"diff":"--- a/client/src/commands.ts\n+++ b/client/src/commands.ts\n@@ -17,7 +17,7 @@\n import { bool, type Parsed, str, UsageError } from \"./args.ts\";\n import { blobOf, keptWholeAs, MAX_BLOB_BYTES, readKnownBlobs, writeKnownBlobs } from \"./blobs.ts\";\n import { type Env, EXIT, heard, type Output, open } from \"./command-env.ts\";\n-import { AVCS_DIR, findRoot, isReader } from \"./config.ts\";\n+import { findRoot, isReader } from \"./config.ts\";\n import { spellingText, uncomposedText } from \"./core.ts\";\n import { pairRenames } from \"./diff.ts\";\n import type { BlobToSend, TurnedBinary } from \"./folder.ts\";\n@@ -76,6 +76,7 @@\n } from \"./status-commands.ts\";\n \n import { gitMarkerLine } from \"./settle.ts\";\n+import { stateDir } from \"./state-dir.ts\";\n \n // --- record ---\n \n@@ -461,7 +462,7 @@\n /** Files earlier syncs couldn't write here, kept in .avcs/unwritten.json until a write of them works. */\n export function readUnwritten(root: string): Record<string, Unwritten> {\n \ttry {\n-\t\treturn JSON.parse(readFileSync(join(root, AVCS_DIR, UNWRITTEN_FILE), \"utf8\")) as Record<string, Unwritten>;\n+\t\treturn JSON.parse(readFileSync(join(stateDir(root), UNWRITTEN_FILE), \"utf8\")) as Record<string, Unwritten>;\n \t} catch {\n \t\treturn {};\n \t}\n@@ -626,7 +627,7 @@\n \t\t\t\t\t.map((f) => ({ from: f.from!, to: f.path }))\n \t\t\t: [];\n \tif (JSON.stringify(unwritten) !== unwrittenBefore)\n-\t\twriteFileAtomic(join(root, AVCS_DIR, UNWRITTEN_FILE), `${JSON.stringify(unwritten, null, 1)}\\n`);\n+\t\twriteFileAtomic(join(stateDir(root), UNWRITTEN_FILE), `${JSON.stringify(unwritten, null, 1)}\\n`);\n \treturn {\n \t\tversion: answer.version,\n \t\twritten,"}],"unmatched":[]}