{"draft":null,"from":2,"to":318,"files":[{"path":"client/src/blobs.ts","added":4,"removed":4,"diff":"--- a/client/src/blobs.ts\n+++ b/client/src/blobs.ts\n@@ -7,8 +7,8 @@\n import { createHash } from \"node:crypto\";\n import { readFileSync, statSync } from \"node:fs\";\n import { join } from \"node:path\";\n-import { AVCS_DIR } from \"./config.ts\";\n import { writeFileAtomic } from \"./folder.ts\";\n+import { stateDir } from \"./state-dir.ts\";\n \n /** The server's limit for one file's bytes. */\n export const MAX_BLOB_BYTES = 20 * 1024 * 1024;\n@@ -21,7 +21,7 @@\n \n /**\n  * Whether normalized text is the file the server keeps whole under `sha`\n- * (#46): a text file matching avcs.json's \"whole\", or over 1 MB, is stored\n+ * (#46): a text file matching abso.json's \"whole\", or over 1 MB, is stored\n  * like a binary file, by the hash of its text with LF endings. The client\n  * keeps that hash in blobs.json, and the file on disk stays text.\n  */\n@@ -47,7 +47,7 @@\n export function readKnownBlobs(root: string): Map<string, string> {\n \ttry {\n \t\treturn new Map(\n-\t\t\tObject.entries(JSON.parse(readFileSync(join(root, AVCS_DIR, BLOBS_FILE), \"utf8\")) as Record<string, string>),\n+\t\t\tObject.entries(JSON.parse(readFileSync(join(stateDir(root), BLOBS_FILE), \"utf8\")) as Record<string, string>),\n \t\t);\n \t} catch {\n \t\treturn new Map();\n@@ -56,7 +56,7 @@\n \n export function writeKnownBlobs(root: string, blobs: ReadonlyMap<string, string>): void {\n \tconst sorted = Object.fromEntries([...blobs].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0)));\n-\twriteFileAtomic(join(root, AVCS_DIR, BLOBS_FILE), `${JSON.stringify(sorted, null, 1)}\\n`);\n+\twriteFileAtomic(join(stateDir(root), BLOBS_FILE), `${JSON.stringify(sorted, null, 1)}\\n`);\n }\n \n /** Short form of a hash for people: the first 12 hex digits. */"}],"unmatched":[]}