{"version":78,"agent":"pinch","message":"Biome is silent: about 90 hints cleared. String joins as templates, dotted keys, unused imports, variables and a private method removed, optional chains (one kept boolean with === true), the preset field instead of the deprecated recommended. Two rules off where they don't fit: noExplicitAny in the hook modules, whose engine types come from the host, and noTemplateCurlyInString in tests, which hold source text as data.","time":1791612106058,"timeIso":"2026-10-10T06:01:46.058Z","changes":47,"change":889,"files":["biome.json","client/hooks/register.ts","client/src/box-commands.ts","client/src/commands.ts","client/src/drafts.ts","client/src/folder.ts","client/src/key-admin.ts","client/src/queue.ts","client/test/client.test.ts","client/test/ignore.test.ts","src/engine/build.ts","src/engine/test/build.test.ts","src/engine/test/concurrent.test.ts","src/engine/test/gen.ts","src/engine/test/helpers.ts","src/engine/test/moves.test.ts","src/engine/test/properties.test.ts","src/engine/test/scenarios.test.ts","src/engine/test/text.test.ts","src/engine/test/view.test.ts","src/engine/text.ts","src/gitview/test/ingest.test.ts","src/gitview/test/random.test.ts","src/gitview/trailers.ts","src/gitview/tree.ts","worker/project/collisions.ts","worker/project/definition-rule.ts","worker/project/draft-collisions.ts","worker/project/express-moves.ts","worker/project/history.ts","worker/project/news.ts","worker/project/project.ts","worker/project/queue.ts","worker/project/test/bench.ts","worker/project/test/merge.test.ts","worker/project/test/moves.test.ts","worker/project/test/order.test.ts","worker/project/test/project-file.test.ts","worker/project/test/queue.test.ts","worker/project/test/queued-moves.test.ts","worker/project/test/reviewers.test.ts","worker/project/test/tells.test.ts","worker/project/test/whole.test.ts","worker/project/whole-files.ts"],"draft":null,"diff":[{"path":"biome.json","added":12,"removed":1,"diff":"--- a/biome.json\n+++ b/biome.json\n@@ -28,7 +28,7 @@\n \t\"linter\": {\n \t\t\"enabled\": true,\n \t\t\"rules\": {\n-\t\t\t\"recommended\": true,\n+\t\t\t\"preset\": \"recommended\",\n \t\t\t\"style\": {\n \t\t\t\t\"noNonNullAssertion\": \"off\"\n \t\t\t},\n@@ -56,6 +56,17 @@\n \t\t\t\"linter\": {\n \t\t\t\t\"rules\": {\n \t\t\t\t\t\"suspicious\": {\n+\t\t\t\t\t\t\"noExplicitAny\": \"off\",\n+\t\t\t\t\t\t\"noTemplateCurlyInString\": \"off\"\n+\t\t\t\t\t}\n+\t\t\t\t}\n+\t\t\t}\n+\t\t},\n+\t\t{\n+\t\t\t\"includes\": [\"client/hooks/**\", \"client/view/hooks/**\"],\n+\t\t\t\"linter\": {\n+\t\t\t\t\"rules\": {\n+\t\t\t\t\t\"suspicious\": {\n \t\t\t\t\t\t\"noExplicitAny\": \"off\"\n \t\t\t\t\t}\n \t\t\t\t}"},{"path":"client/hooks/register.ts","added":1,"removed":1,"diff":"--- a/client/hooks/register.ts\n+++ b/client/hooks/register.ts\n@@ -144,7 +144,7 @@\n \t\t\t\t\t),\n \t\t\t\t),\n \t\t\t\tsnapshot: text === undefined || looksBinary(text) ? undefined : normalize(text),\n-\t\t\t\t...(text !== undefined && text.includes(\"\\u0000\")\n+\t\t\t\t...(text?.includes(\"\\u0000\")\n \t\t\t\t\t? { nul: { at: text.indexOf(\"\\u0000\"), line: text.slice(0, text.indexOf(\"\\u0000\")).split(\"\\n\").length } }\n \t\t\t\t\t: {}),\n \t\t\t\tagentId: typeof input.agentId === \"string\" ? input.agentId : undefined,"},{"path":"client/src/box-commands.ts","added":2,"removed":3,"diff":"--- a/client/src/box-commands.ts\n+++ b/client/src/box-commands.ts\n@@ -106,8 +106,7 @@\n \t\t\t: [[box, local] as const];\n \t\tfor (const [path, from] of files) {\n \t\t\tconst text = readText(from);\n-\t\t\tconst data =\n-\t\t\t\ttext !== undefined && text.includes(\"\\r\") ? Buffer.from(text.replace(/\\r\\n?/g, \"\\n\")) : readFileSync(from);\n+\t\t\tconst data = text?.includes(\"\\r\") ? Buffer.from(text.replace(/\\r\\n?/g, \"\\n\")) : readFileSync(from);\n \t\t\tconst exec = (statSync(from).mode & 0o111) !== 0 || (data[0] === 0x23 && data[1] === 0x21);\n \t\t\tout.push({ path, data, ...(exec ? { mode: 0o755 } : {}) });\n \t\t}\n@@ -364,7 +363,7 @@\n \t\t\tcontinue;\n \t\t}\n \t\t// Text goes as abso records it, with LF line endings: a CRLF script fails in the box's sh (#37).\n-\t\tconst lf = d.text !== undefined && d.text.includes(\"\\r\") ? Buffer.from(d.text.replace(/\\r\\n?/g, \"\\n\")) : undefined;\n+\t\tconst lf = d.text?.includes(\"\\r\") ? Buffer.from(d.text.replace(/\\r\\n?/g, \"\\n\")) : undefined;\n \t\tif (lf !== undefined) toLf.push(rel);\n \t\tconst data = lf ?? readFileSync(path);\n \t\t// The bit from the disk, or (on Windows) from the server; a script with \"#!\" runs either way."},{"path":"client/src/commands.ts","added":0,"removed":1,"diff":"--- a/client/src/commands.ts\n+++ b/client/src/commands.ts\n@@ -28,7 +28,6 @@\n \tisPaused,\n \ttype LeftOut,\n \tlistKnown,\n-\tMAX_TEXT_BYTES,\n \tnewFileEndings,\n \tnormalize,\n \tpausedPath,"},{"path":"client/src/drafts.ts","added":0,"removed":1,"diff":"--- a/client/src/drafts.ts\n+++ b/client/src/drafts.ts\n@@ -16,7 +16,6 @@\n \ttype Env,\n \tEXIT,\n \tmergedLinesText,\n-\tnewsText,\n \ttype Output,\n \topen,\n \tplural,"},{"path":"client/src/folder.ts","added":1,"removed":1,"diff":"--- a/client/src/folder.ts\n+++ b/client/src/folder.ts\n@@ -455,7 +455,7 @@\n \t}\n \tconst autocrlf = config.get(\"core.autocrlf\");\n \tconst coreEol = config.get(\"core.eol\") ?? \"native\";\n-\tconst attrs = git([\"check-attr\", \"--stdin\", \"-z\", \"text\", \"eol\"], rels.join(\"\\0\") + \"\\0\");\n+\tconst attrs = git([\"check-attr\", \"--stdin\", \"-z\", \"text\", \"eol\"], `${rels.join(\"\\0\")}\\0`);\n \tif (attrs === undefined) return out;\n \tconst f = attrs.split(\"\\0\");\n \tconst seen = new Map<string, { text?: string; eol?: string }>();"},{"path":"client/src/key-admin.ts","added":0,"removed":1,"diff":"--- a/client/src/key-admin.ts\n+++ b/client/src/key-admin.ts\n@@ -3,7 +3,6 @@\n \n import { readFileSync } from \"node:fs\";\n import { homedir } from \"node:os\";\n-import { join } from \"node:path\";\n import { UsageError } from \"./args.ts\";\n import type { Config } from \"./config.ts\";\n import { fromEnv } from \"./env-names.ts\";"},{"path":"client/src/queue.ts","added":1,"removed":1,"diff":"--- a/client/src/queue.ts\n+++ b/client/src/queue.ts\n@@ -6,7 +6,7 @@\n \n import { type Api, newsLines, type QueueItem, type QueueState } from \"./api.ts\";\n import { type Parsed, UsageError } from \"./args.ts\";\n-import { type Env, type Output, open, plural } from \"./commands.ts\";\n+import { type Env, type Output, open } from \"./commands.ts\";\n import { logNews } from \"./folder.ts\";\n \n /** How long publish waits by default: under the 2 minutes a Claude Code shell command gets (#39). */"},{"path":"client/test/client.test.ts","added":5,"removed":5,"diff":"--- a/client/test/client.test.ts\n+++ b/client/test/client.test.ts\n@@ -1328,7 +1328,7 @@\n \t];\n \n \tit(\"refuses each one, writes nothing for it, and says which and why\", async () => {\n-\t\tconst { name, folders } = await project({ \"ok.txt\": \"ok\\n\" }, \"alice\", \"bob\", \"carol\");\n+\t\tconst { folders } = await project({ \"ok.txt\": \"ok\\n\" }, \"alice\", \"bob\", \"carol\");\n \t\tconst bob = folders.bob!;\n \t\tconst files = Object.fromEntries([...HOSTILE.map((p) => [p, \"pwned\\n\"] as const), [\"fine/new.txt\", \"fine\\n\"]]);\n \t\tconst parent = dirname(bob);\n@@ -1474,7 +1474,7 @@\n \t});\n \n \tit(\"refuses a link out of the folder, and a write through a folder that is a link\", async () => {\n-\t\tconst { name, folders } = await project({ \"ok.txt\": \"ok\\n\" }, \"alice\", \"bob\");\n+\t\tconst { folders } = await project({ \"ok.txt\": \"ok\\n\" }, \"alice\", \"bob\");\n \t\tconst bob = folders.bob!;\n \t\tfake.injectSync = {\n \t\t\tfiles: { up: \"\", \"in-folder\": \"\" },\n@@ -1783,7 +1783,7 @@\n \t\t);\n \t\t// Settle: a file with no markers is refused, and settles nothing.\n \t\tassert.match(\n-\t\t\t(await main([\"settle\", \"b.txt\", \"--theirs\"], { cwd: alice, env: ENV, write: () => {} })).stdout + \"\",\n+\t\t\t`${(await main([\"settle\", \"b.txt\", \"--theirs\"], { cwd: alice, env: ENV, write: () => {} })).stdout}`,\n \t\t\t/^$/,\n \t\t);\n \t\tconst none = await main([\"settle\", \"a.txt\", \"b.txt\", \"--theirs\"], { cwd: alice, env: ENV, write: () => {} });\n@@ -4249,8 +4249,8 @@\n \t\tconst { name, folders } = await project({ \"a.txt\": \"a\\n\" }, \"alice\");\n \t\tsymlinkSync(\"a.txt\", join(folders.alice!, \"link\"));\n \t\tassert.equal((await avcs(folders.alice!, \"publish\", \"-m\", \"add a link\")).exit, 0);\n-\t\tassert.equal(shared(name)[\"link\"], \"\");\n-\t\tassert.deepEqual(fake.projects.get(name)!.project.modes()[\"link\"], { link: \"a.txt\" });\n+\t\tassert.equal(shared(name).link, \"\");\n+\t\tassert.deepEqual(fake.projects.get(name)!.project.modes().link, { link: \"a.txt\" });\n \t});\n \n \tit(\"shows mode changes in diffs and attribute collisions in words\", () => {"},{"path":"client/test/ignore.test.ts","added":1,"removed":1,"diff":"--- a/client/test/ignore.test.ts\n+++ b/client/test/ignore.test.ts\n@@ -59,7 +59,7 @@\n \t\t{\n \t\t\tcwd: root,\n \t\t\tenv,\n-\t\t\tinput: paths.join(\"\\0\") + \"\\0\",\n+\t\t\tinput: `${paths.join(\"\\0\")}\\0`,\n \t\t\tencoding: \"utf8\",\n \t\t},\n \t);"},{"path":"src/engine/build.ts","added":1,"removed":1,"diff":"--- a/src/engine/build.ts\n+++ b/src/engine/build.ts\n@@ -487,7 +487,7 @@\n \tif (replacement !== \"\" && !replacement.endsWith(\"\\n\")) {\n \t\tif (endLine + 1 < visible.length) {\n \t\t\tendLine++;\n-\t\t\treplacement += visible[endLine]!.text + \"\\n\";\n+\t\t\treplacement += `${visible[endLine]!.text}\\n`;\n \t\t} else {\n \t\t\treplacement += \"\\n\";\n \t\t}"},{"path":"src/engine/test/build.test.ts","added":1,"removed":1,"diff":"--- a/src/engine/test/build.test.ts\n+++ b/src/engine/test/build.test.ts\n@@ -127,7 +127,7 @@\n \t\tconst atom = repo.edit({ edits: [{ file: \"f.txt\", old: \"five\\n\", new: \"five\\nsix\\n\" }] });\n \t\tassert.deepEqual(atom.writes, [gapKey(\"a0.4\")]);\n \t\tassert.deepEqual(atom.reads, [lineKey(\"a0.4\")]);\n-\t\tassert.equal(repo.text(\"f.txt\"), FIVE + \"six\\n\");\n+\t\tassert.equal(repo.text(\"f.txt\"), `${FIVE}six\\n`);\n \t});\n });\n "},{"path":"src/engine/test/concurrent.test.ts","added":5,"removed":5,"diff":"--- a/src/engine/test/concurrent.test.ts\n+++ b/src/engine/test/concurrent.test.ts\n@@ -24,13 +24,13 @@\n \tView,\n } from \"../index.ts\";\n \n-const textOf = (lines: readonly string[]): string => (lines.length === 0 ? \"\" : lines.join(\"\\n\") + \"\\n\");\n+const textOf = (lines: readonly string[]): string => (lines.length === 0 ? \"\" : `${lines.join(\"\\n\")}\\n`);\n \n import { EditGen, type Files, filesFromView, filesToRecord, sameFiles } from \"./gen.ts\";\n import { Repo, Rng } from \"./helpers.ts\";\n \n-const BASE_SEED = Number(process.env[\"PROP_SEED\"] ?? 20260621);\n-const CASES = Number(process.env[\"PROP_CASES\"] ?? 250);\n+const BASE_SEED = Number(process.env.PROP_SEED ?? 20260621);\n+const CASES = Number(process.env.PROP_CASES ?? 250);\n \n /** A hunk in terms of the old view's visible lines. start === end is a pure insertion at gap start. */\n interface PlainHunk {\n@@ -98,7 +98,7 @@\n \t\t\tusedFiles.add(path);\n \t\t\tconst lines = fresh(rng.range(1, 3));\n \t\t\thunks.push({ file: path, start: 0, end: 0, lines });\n-\t\t\tedits.push({ file: path, old: \"\", new: lines.join(\"\\n\") + \"\\n\" });\n+\t\t\tedits.push({ file: path, old: \"\", new: `${lines.join(\"\\n\")}\\n` });\n \t\t\tparts.push(`create ${path} ${JSON.stringify(lines)}`);\n \t\t\treturn;\n \t\t}\n@@ -429,7 +429,7 @@\n \t\t\tconst a = Math.max(0, i - rng.range(0, 2));\n \t\t\tconst b = Math.min(n, j + rng.range(0, 2));\n \t\t\tconst edit = gen.textEdit(file, all, i, j, add, \"both\") as { old: string; new: string };\n-\t\t\tconst text = (ls: readonly string[]) => (ls.length ? ls.join(\"\\n\") + \"\\n\" : \"\");\n+\t\t\tconst text = (ls: readonly string[]) => (ls.length ? `${ls.join(\"\\n\")}\\n` : \"\");\n \t\t\tconst whole = text(all);\n \t\t\tconst wider = { file, old: text(all.slice(a, b)), new: text([...all.slice(a, i), ...add, ...all.slice(j, b)]) };\n \t\t\tconst unique = wider.old !== \"\" && whole.indexOf(wider.old) === whole.lastIndexOf(wider.old);"},{"path":"src/engine/test/gen.ts","added":3,"removed":3,"diff":"--- a/src/engine/test/gen.ts\n+++ b/src/engine/test/gen.ts\n@@ -21,13 +21,13 @@\n \tconst out: Record<string, string> = {};\n \tfor (const path of [...files.keys()].sort()) {\n \t\tconst lines = files.get(path)!;\n-\t\tif (lines.length > 0) out[path] = lines.join(\"\\n\") + \"\\n\";\n+\t\tif (lines.length > 0) out[path] = `${lines.join(\"\\n\")}\\n`;\n \t}\n \treturn out;\n }\n \n function textOf(lines: readonly string[]): string {\n-\treturn lines.length === 0 ? \"\" : lines.join(\"\\n\") + \"\\n\";\n+\treturn lines.length === 0 ? \"\" : `${lines.join(\"\\n\")}\\n`;\n }\n \n function occurrences(text: string, needle: string): number {\n@@ -247,7 +247,7 @@\n \t\tlet old = t.slice(c1, this.rng.range(c1 + 1, t.length));\n \t\tif (this.rng.chance(0.3) && i + 1 < lines.length) {\n \t\t\tconst next = lines[i + 1]!;\n-\t\t\told = t.slice(c1) + \"\\n\" + next.slice(0, this.rng.int(next.length + 1));\n+\t\t\told = `${t.slice(c1)}\\n${next.slice(0, this.rng.int(next.length + 1))}`;\n \t\t}\n \t\tconst replacement = this.rng.pick([\"\", \"Z\", \"q\\nr\", \"\\n\", \"w\\n\", \"yy\", \"Z\\nZ\", this.fresh()]);\n \t\tconst text = textOf(lines);"},{"path":"src/engine/test/helpers.ts","added":1,"removed":1,"diff":"--- a/src/engine/test/helpers.ts\n+++ b/src/engine/test/helpers.ts\n@@ -133,5 +133,5 @@\n \n /** Lines of text with a trailing newline. */\n export function lines(...items: string[]): string {\n-\treturn items.map((s) => s + \"\\n\").join(\"\");\n+\treturn items.map((s) => `${s}\\n`).join(\"\");\n }"},{"path":"src/engine/test/moves.test.ts","added":3,"removed":3,"diff":"--- a/src/engine/test/moves.test.ts\n+++ b/src/engine/test/moves.test.ts\n@@ -8,8 +8,8 @@\n import { type Atom, type AtomId, conflicts } from \"../index.ts\";\n import { lines, Repo, Rng } from \"./helpers.ts\";\n \n-const BASE_SEED = Number(process.env[\"PROP_SEED\"] ?? 20261004);\n-const CASES = Number(process.env[\"PROP_CASES\"] ?? 200);\n+const BASE_SEED = Number(process.env.PROP_SEED ?? 20261004);\n+const CASES = Number(process.env.PROP_CASES ?? 200);\n \n const FN = [\"function area(r) {\", \"  const pi = 3.14;\", \"  return pi * r * r;\", \"}\"];\n const START = {\n@@ -133,7 +133,7 @@\n \t\tconst repo = Repo.init(START);\n \t\tconcurrently(\n \t\t\trepo,\n-\t\t\t(base) => repo.draft({ edits: [{ file: \"shapes.js\", old: FN.join(\"\\n\") + \"\\n\", new: \"\" }] }, base),\n+\t\t\t(base) => repo.draft({ edits: [{ file: \"shapes.js\", old: `${FN.join(\"\\n\")}\\n`, new: \"\" }] }, base),\n \t\t\t(base) => moveArea(repo, base),\n \t\t);\n \t\tassert.deepEqual(conflicts(repo.graph, repo.shared), []);"},{"path":"src/engine/test/properties.test.ts","added":2,"removed":2,"diff":"--- a/src/engine/test/properties.test.ts\n+++ b/src/engine/test/properties.test.ts\n@@ -21,8 +21,8 @@\n import { EditGen, type Files, filesFromView, filesToRecord, sameFiles } from \"./gen.ts\";\n import { Repo, Rng } from \"./helpers.ts\";\n \n-const BASE_SEED = Number(process.env[\"PROP_SEED\"] ?? 20260621);\n-const CASES = Number(process.env[\"PROP_CASES\"] ?? 250);\n+const BASE_SEED = Number(process.env.PROP_SEED ?? 20260621);\n+const CASES = Number(process.env.PROP_CASES ?? 250);\n \n /** Run `body` once per seed; on failure report the seed and the steps taken. */\n export function forCases(name: string, body: (rng: Rng, log: string[]) => void): void {"},{"path":"src/engine/test/scenarios.test.ts","added":3,"removed":3,"diff":"--- a/src/engine/test/scenarios.test.ts\n+++ b/src/engine/test/scenarios.test.ts\n@@ -166,8 +166,8 @@\n \t}\n \tconst insertAfter = (anchor: string, line: string, mode: \"both\" | \"after\" = \"both\") => ({\n \t\tfile: \"Sidebar.tsx\",\n-\t\told: anchor + \"\\n\",\n-\t\tnew: anchor + \"\\n\" + line + \"\\n\",\n+\t\told: `${anchor}\\n`,\n+\t\tnew: `${anchor}\\n${line}\\n`,\n \t\tmode,\n \t});\n \tconst railAfter = (anchor: string, mode: \"both\" | \"after\" = \"both\"): Spec => ({\n@@ -240,7 +240,7 @@\n \t\t\tauthor: \"reviewer\",\n \t\t\tmessage: \"keep both imports, Rail before Footer\",\n \t\t\tresolves: [a.id, b.id],\n-\t\t\tedits: [{ file: \"Sidebar.tsx\", old: FOOTER + \"\\n\" + RAIL + \"\\n\", new: RAIL + \"\\n\" + FOOTER + \"\\n\" }],\n+\t\t\tedits: [{ file: \"Sidebar.tsx\", old: `${FOOTER}\\n${RAIL}\\n`, new: `${RAIL}\\n${FOOTER}\\n` }],\n \t\t});\n \t\tassert.deepEqual(\n \t\t\tresolver.deps.filter((d) => d === a.id || d === b.id),"},{"path":"src/engine/test/text.test.ts","added":4,"removed":4,"diff":"--- a/src/engine/test/text.test.ts\n+++ b/src/engine/test/text.test.ts\n@@ -115,9 +115,9 @@\n \t\tassert.deepEqual(\n \t\t\tdiffLines(\n \t\t\t\ta,\n-\t\t\t\ta.map((s) => s + \"!\"),\n+\t\t\t\ta.map((s) => `${s}!`),\n \t\t\t),\n-\t\t\t[{ start: 0, end: 2100, lines: a.map((s) => s + \"!\") }],\n+\t\t\t[{ start: 0, end: 2100, lines: a.map((s) => `${s}!`) }],\n \t\t);\n \t});\n \n@@ -192,8 +192,8 @@\n \t\t\tconst base = Array.from({ length: 6 + rnd(10) }, (_, k) => `l${k}`);\n \t\t\t// ours edits the first half, theirs the second, with a gap between.\n \t\t\tconst cut = Math.floor(base.length / 2);\n-\t\t\tconst ours = base.map((l, k) => (k < cut - 1 && rnd(3) === 0 ? l + \"o\" : l));\n-\t\t\tconst theirs = base.map((l, k) => (k > cut && rnd(3) === 0 ? l + \"t\" : l));\n+\t\t\tconst ours = base.map((l, k) => (k < cut - 1 && rnd(3) === 0 ? `${l}o` : l));\n+\t\t\tconst theirs = base.map((l, k) => (k > cut && rnd(3) === 0 ? `${l}t` : l));\n \t\t\tconst expected = base.map((l, k) => (ours[k] !== l ? ours[k] : theirs[k]));\n \t\t\tconst got = mergeLines(base, ours, theirs);\n \t\t\tif (got.conflicts === 0) assert.deepEqual(got.lines, expected, `seed ${seed}`);"},{"path":"src/engine/test/view.test.ts","added":1,"removed":1,"diff":"--- a/src/engine/test/view.test.ts\n+++ b/src/engine/test/view.test.ts\n@@ -78,7 +78,7 @@\n \tit(\"projects a long file (a deep chain) without recursion limits\", () => {\n \t\tconst big = Array.from({ length: 30_000 }, (_, i) => `line ${i}`);\n \t\tconst graph = new Graph();\n-\t\tgraph.add(buildBase({ \"big.txt\": big.join(\"\\n\") + \"\\n\" }, { author: \"import\", message: \"big\" }));\n+\t\tgraph.add(buildBase({ \"big.txt\": `${big.join(\"\\n\")}\\n` }, { author: \"import\", message: \"big\" }));\n \t\tconst files = project(graph, [\"a0\"]);\n \t\tassert.equal(files[\"big.txt\"]!.split(\"\\n\").length, 30_001);\n \t});"},{"path":"src/engine/text.ts","added":1,"removed":1,"diff":"--- a/src/engine/text.ts\n+++ b/src/engine/text.ts\n@@ -15,7 +15,7 @@\n \n /** Join lines into file text. A non-empty file always ends with \"\\n\". */\n export function joinLines(lines: readonly string[]): string {\n-\treturn lines.length === 0 ? \"\" : lines.join(\"\\n\") + \"\\n\";\n+\treturn lines.length === 0 ? \"\" : `${lines.join(\"\\n\")}\\n`;\n }\n \n /** Normalize, then make a non-empty text end with \"\\n\" (how files are projected). */"},{"path":"src/gitview/test/ingest.test.ts","added":1,"removed":1,"diff":"--- a/src/gitview/test/ingest.test.ts\n+++ b/src/gitview/test/ingest.test.ts\n@@ -241,7 +241,7 @@\n \t\t\tedits: [{ file: \"notes.md\", old: \"two\\n\", new: \"two\\nthree\\n\" }],\n \t\t});\n \t\tperson.setLine(\"app.txt\", 9, \"app line nine\");\n-\t\tperson.write(\"app.txt\", person.read(\"app.txt\") + \"app line 13\\n\");\n+\t\tperson.write(\"app.txt\", `${person.read(\"app.txt\")}app line 13\\n`);\n \t\tperson.commit(\"Pat edits the bottom\");\n \n \t\tconst result = await ingest(repo.graph, repo.shared, person.dir);"},{"path":"src/gitview/test/random.test.ts","added":3,"removed":3,"diff":"--- a/src/gitview/test/random.test.ts\n+++ b/src/gitview/test/random.test.ts\n@@ -16,8 +16,8 @@\n \n after(cleanup);\n \n-const BASE_SEED = Number(process.env[\"PROP_SEED\"] ?? 20261003);\n-const CASES = Number(process.env[\"PROP_CASES\"] ?? 30);\n+const BASE_SEED = Number(process.env.PROP_SEED ?? 20261003);\n+const CASES = Number(process.env.PROP_CASES ?? 30);\n \n // A small vocabulary, so files repeat lines and diffs have choices to make.\n const WORDS = [\"{\", \"}\", \"x\", \"y\", \"return x;\", \"\", \"let a = 1;\", \"let b = 2;\"];\n@@ -28,7 +28,7 @@\n \treturn Array.from({ length: rng.range(min, max) }, (_, i) => (rng.chance(0.5) ? rng.pick(WORDS) : `${tag} ${i}`));\n }\n \n-const text = (lines: readonly string[]): string => lines.map((l) => l + \"\\n\").join(\"\");\n+const text = (lines: readonly string[]): string => lines.map((l) => `${l}\\n`).join(\"\");\n \n /** One person's commit: a few random line edits, sometimes a new or deleted file. */\n function randomCommit(rng: Rng, files: Files, n: number): Files {"},{"path":"src/gitview/trailers.ts","added":1,"removed":1,"diff":"--- a/src/gitview/trailers.ts\n+++ b/src/gitview/trailers.ts\n@@ -34,7 +34,7 @@\n  */\n export function withTrailers(message: string, trailers: readonly Trailer[], fallback: string): string {\n \tconst body = cleanMessage(message) || fallback;\n-\tif (trailers.length === 0) return body + \"\\n\";\n+\tif (trailers.length === 0) return `${body}\\n`;\n \tconst block = trailers.map((t) => `${t.key}: ${oneLine(t.value)}`).join(\"\\n\");\n \treturn `${body}\\n\\n${block}\\n`;\n }"},{"path":"src/gitview/tree.ts","added":1,"removed":1,"diff":"--- a/src/gitview/tree.ts\n+++ b/src/gitview/tree.ts\n@@ -61,7 +61,7 @@\n \t\tfor (const entry of tree) {\n \t\t\tconst path = prefix + entry.path;\n \t\t\tif (entry.mode === MODE_TREE) {\n-\t\t\t\tawait visit(entry.oid, path + \"/\");\n+\t\t\t\tawait visit(entry.oid, `${path}/`);\n \t\t\t} else if (entry.mode === MODE_SUBMODULE) {\n \t\t\t\tskipped.push({ path, reason: \"submodule\", oid: entry.oid });\n \t\t\t} else if (entry.mode === MODE_LINK) {"},{"path":"worker/project/collisions.ts","added":2,"removed":2,"diff":"--- a/worker/project/collisions.ts\n+++ b/worker/project/collisions.ts\n@@ -240,8 +240,8 @@\n \t\t\t\tkind: \"duplicate\",\n \t\t\t\tname,\n \t\t\t\tfile,\n-\t\t\t\tyours: { lines: [yours.start + 1, yours.end], text: yours.text + \"\\n\" },\n-\t\t\t\ttheirs: { lines: [theirs.start + 1, theirs.end], text: theirs.text + \"\\n\", ...originOf(host, by, space.name) },\n+\t\t\t\tyours: { lines: [yours.start + 1, yours.end], text: `${yours.text}\\n` },\n+\t\t\t\ttheirs: { lines: [theirs.start + 1, theirs.end], text: `${theirs.text}\\n`, ...originOf(host, by, space.name) },\n \t\t\t});\n \t\t}\n \t}"},{"path":"worker/project/definition-rule.ts","added":1,"removed":1,"diff":"--- a/worker/project/definition-rule.ts\n+++ b/worker/project/definition-rule.ts\n@@ -168,7 +168,7 @@\n \t\t\tconst visible = view.lines(file);\n \t\t\tconst def = after[0];\n \t\t\tconst theirs = def\n-\t\t\t\t? { file: def.file, lines: [def.start + 1, def.end] as [number, number], text: def.text + \"\\n\" }\n+\t\t\t\t? { file: def.file, lines: [def.start + 1, def.end] as [number, number], text: `${def.text}\\n` }\n \t\t\t\t: { file: before[0]!.file, lines: [before[0]!.start + 1, before[0]!.start] as [number, number], text: \"\" };\n \t\t\tconst collision: Collision = {\n \t\t\t\tkind: \"definition\","},{"path":"worker/project/draft-collisions.ts","added":2,"removed":2,"diff":"--- a/worker/project/draft-collisions.ts\n+++ b/worker/project/draft-collisions.ts\n@@ -114,8 +114,8 @@\n \t\t\t\t\t\t\tkind: \"duplicate\",\n \t\t\t\t\t\t\tname,\n \t\t\t\t\t\t\tfile,\n-\t\t\t\t\t\t\tfirst: { agent: a.name, file, lines: [dA.start + 1, dA.end], text: dA.text + \"\\n\" },\n-\t\t\t\t\t\t\tsecond: { agent: b.name, file, lines: [dB.start + 1, dB.end], text: dB.text + \"\\n\" },\n+\t\t\t\t\t\t\tfirst: { agent: a.name, file, lines: [dA.start + 1, dA.end], text: `${dA.text}\\n` },\n+\t\t\t\t\t\t\tsecond: { agent: b.name, file, lines: [dB.start + 1, dB.end], text: `${dB.text}\\n` },\n \t\t\t\t\t\t});\n \t\t\t\t\t}\n \t\t\t\t}"},{"path":"worker/project/express-moves.ts","added":1,"removed":1,"diff":"--- a/worker/project/express-moves.ts\n+++ b/worker/project/express-moves.ts\n@@ -127,7 +127,7 @@\n \t\t\t\t}\n \t\t\t\tif (len > 0 && (!best || len > best.len)) best = { block, q, len };\n \t\t\t}\n-\t\t\tif (best && best.block.texts.slice(best.q, best.q + best.len).some((t) => !PLAIN_LINE.test(t))) {\n+\t\t\tif (best?.block.texts.slice(best.q, best.q + best.len).some((t) => !PLAIN_LINE.test(t))) {\n \t\t\t\tconst ids = best.block.ids.slice(best.q, best.q + best.len);\n \t\t\t\tfor (const id of ids) used.add(id);\n \t\t\t\tmatches.push({ from: best.block.file, ids, to: run.file, at: run.start + p });"},{"path":"worker/project/history.ts","added":1,"removed":1,"diff":"--- a/worker/project/history.ts\n+++ b/worker/project/history.ts\n@@ -2,7 +2,7 @@\n // (pathLife), and where lines went (follow). They read through HistoryHost, the one seam the derived tables\n // (abso issues 48 and 79) plug into: today the host is the project in memory.\n \n-import type { AtomId, Graph, LineId, View } from \"../../src/engine/index.ts\";\n+import type { Graph, LineId, View } from \"../../src/engine/index.ts\";\n import { pathKey } from \"./pathkey.ts\";\n import { checkReadPath, differs, type LastChange, ProjectError, utf8Bytes } from \"./project.ts\";\n import { last, SHARED, type Space } from \"./spaces.ts\";"},{"path":"worker/project/news.ts","added":1,"removed":1,"diff":"--- a/worker/project/news.ts\n+++ b/worker/project/news.ts\n@@ -86,7 +86,7 @@\n \tconst about = note.change !== undefined ? ` (change \"${clip(note.change)}\")` : \"\";\n \tconst verb = note.reply ? \"replies on\" : note.kind === \"objection\" ? \"objects on\" : \"comments on\";\n \tconst ask =\n-\t\tnote.kind === \"objection\" ? \" Fix it, or answer: abso note --reply \" + id : \" Answer: abso note --reply \" + id;\n+\t\tnote.kind === \"objection\" ? ` Fix it, or answer: abso note --reply ${id}` : ` Answer: abso note --reply ${id}`;\n \treturn note.person\n \t\t? `${note.person.person.name} (a person, signed in on the website, id ${note.person.person.id}) ${verb} ${file} ${span}${about}: ${JSON.stringify(clip(note.text))}.${ask}`\n \t\t: `${note.writer} ${verb} ${file} ${span}${about}: \"${clip(note.text)}\".${ask}`;"},{"path":"worker/project/project.ts","added":2,"removed":27,"diff":"--- a/worker/project/project.ts\n+++ b/worker/project/project.ts\n@@ -12,18 +12,7 @@\n // agents publish into under the same rules, and that lands in shared as one\n // unit. Every agent works in one space at a time.\n \n-import {\n-\ttype Atom,\n-\ttype AtomId,\n-\ttype ConflictKey,\n-\tconflictKeys,\n-\ttype EditInput,\n-\tEngineError,\n-\tGraph,\n-\ttype LineId,\n-\ttype MoveInput,\n-\ttype View,\n-} from \"../../src/engine/index.ts\";\n+import { type Atom, type AtomId, EngineError, Graph, type LineId, type View } from \"../../src/engine/index.ts\";\n import { type AddDraftHost, addDraft as hostedAddDraft } from \"./add-draft.ts\";\n import { type AmendHost, amend as hostedAmend } from \"./amend.ts\";\n import { type AnnounceHost, announce as hostedAnnounce, announcePerson as hostedAnnouncePerson } from \"./announce.ts\";\n@@ -98,7 +87,6 @@\n \tcloseNote as hostedCloseNote,\n \tnoteAnswer as hostedNoteAnswer,\n \tnotes as hostedNotes,\n-\tnoteView as hostedNoteView,\n \tstartingNotes as hostedStartingNotes,\n \twriteNote as hostedWriteNote,\n \ttype NoteHost,\n@@ -140,8 +128,6 @@\n \tEntry,\n \tLandAnswer,\n \tMergedLine,\n-\tMeta,\n-\tMode,\n \tModes,\n \tNoteAnswer,\n \tNoteBody,\n@@ -155,7 +141,6 @@\n \tRefusal,\n \tSettled,\n \tStarting,\n-\tSwitchAnswer,\n \tTail,\n \tTellRecord,\n } from \"./project-types.ts\";\n@@ -178,7 +163,7 @@\n import { recordFile as hostedRecordFile, type RecordFileHost } from \"./record-file.ts\";\n import { refusals as hostedRefusals, refuse as hostedRefuse, type RefuseHost } from \"./refuse.ts\";\n import { restore as hostedRestore, type RestoreHost } from \"./restore.ts\";\n-import { addVersion, last, Membership, newSpace, type Published, SHARED, type Space, sharedBaseOf } from \"./spaces.ts\";\n+import { last, Membership, SHARED, type Space, sharedBaseOf } from \"./spaces.ts\";\n import { starting as hostedStarting, type StartingHost } from \"./start.ts\";\n import { switchTo as hostedSwitchTo, type SwitchHost } from \"./switch-to.ts\";\n import { sync as hostedSync, type SyncHost } from \"./sync.ts\";\n@@ -740,16 +725,6 @@\n \t\treturn author ? this.#currentChange(author, this.#now?.() ?? this.#lastTime) : undefined;\n \t}\n \n-\t/**\n-\t * The view a note's lines live in (#44):\n-\t * shared once any were published there; else the named draft they were\n-\t * published into; else their author's draft, where it works now or where it\n-\t * parked it. Undefined when no space holds them any more (a discarded draft).\n-\t */\n-\t#noteView(n: NoteRecord): View | undefined {\n-\t\treturn hostedNoteView(this.#notesHost, n);\n-\t}\n-\n \t#noteAnswer(n: NoteRecord): NoteAnswer {\n \t\treturn hostedNoteAnswer(this.#notesHost, n);\n \t}"},{"path":"worker/project/queue.ts","added":2,"removed":2,"diff":"--- a/worker/project/queue.ts\n+++ b/worker/project/queue.ts\n@@ -137,10 +137,10 @@\n \t\t\t\t\tkind: \"duplicate\",\n \t\t\t\t\tname,\n \t\t\t\t\tfile,\n-\t\t\t\t\tyours: { lines: [yours.start + 1, yours.end], text: yours.text + \"\\n\" },\n+\t\t\t\t\tyours: { lines: [yours.start + 1, yours.end], text: `${yours.text}\\n` },\n \t\t\t\t\ttheirs: {\n \t\t\t\t\t\tlines: [theirs.start + 1, theirs.end],\n-\t\t\t\t\t\ttext: theirs.text + \"\\n\",\n+\t\t\t\t\t\ttext: `${theirs.text}\\n`,\n \t\t\t\t\t\tagent: q.agent,\n \t\t\t\t\t\tmessage: q.message,\n \t\t\t\t\t\tversion: last(space),"},{"path":"worker/project/test/bench.ts","added":1,"removed":1,"diff":"--- a/worker/project/test/bench.ts\n+++ b/worker/project/test/bench.ts\n@@ -15,7 +15,7 @@\n \n const files: Record<string, string> = {};\n for (let f = 0; f < fileCount; f++) {\n-\tfiles[`src/f${f}.ts`] = Array.from({ length: linesPer }, (_, i) => lineOf(f, i)).join(\"\\n\") + \"\\n\";\n+\tfiles[`src/f${f}.ts`] = `${Array.from({ length: linesPer }, (_, i) => lineOf(f, i)).join(\"\\n\")}\\n`;\n }\n \n const store = new MemoryStore();"},{"path":"worker/project/test/merge.test.ts","added":1,"removed":1,"diff":"--- a/worker/project/test/merge.test.ts\n+++ b/worker/project/test/merge.test.ts\n@@ -54,7 +54,7 @@\n \tproject.record(\"prefix\", { \"engine/classset.ts\": CALLS + HELPER }, 1);\n \tassert.equal(project.publish(\"prefix\", \"isHex instead of regex literals\", 2).ok, true);\n \t// fuzzer, unpublished: the same calls, and its own helper at the top.\n-\tconst mine = CALLS.replace(\"// classset\\n\", \"// classset\\n\" + HELPER.replace(\"no RegExp\", \"hex only\"));\n+\tconst mine = CALLS.replace(\"// classset\\n\", `// classset\\n${HELPER.replace(\"no RegExp\", \"hex only\")}`);\n \tproject.record(\"fuzzer\", { \"engine/classset.ts\": mine }, 3);\n \tconst s = project.sync(\"fuzzer\");\n \tconst text = project.draftOf(\"fuzzer\")!.view.text(\"engine/classset.ts\");"},{"path":"worker/project/test/moves.test.ts","added":2,"removed":2,"diff":"--- a/worker/project/test/moves.test.ts\n+++ b/worker/project/test/moves.test.ts\n@@ -192,10 +192,10 @@\n test(\"past the move limit only the longest blocks move: a rewrite of many single lines still publishes, and a block moved whole keeps someone's edit (abso issue 137)\", () => {\n \tconst keys = Array.from({ length: 200 }, (_, i) => `  \"k${i}\": ${i},`);\n \tconst block = [\"  // block\", '  \"b1\": \"one\",', '  \"b2\": \"two\",', '  \"b3\": \"three\",', \"  // end block\"];\n-\tconst before = [\"{\", ...block, ...keys, \"}\"].join(\"\\n\") + \"\\n\";\n+\tconst before = `${[\"{\", ...block, ...keys, \"}\"].join(\"\\n\")}\\n`;\n \t// The draft reverses the keys with a new line between each, so every one is its own one-line match.\n \tconst rewritten = keys.toReversed().flatMap((k, i) => [k, `  \"n${i}\": 0,`]);\n-\tconst after = [\"{\", ...rewritten, ...block, \"}\"].join(\"\\n\") + \"\\n\";\n+\tconst after = `${[\"{\", ...rewritten, ...block, \"}\"].join(\"\\n\")}\\n`;\n \tconst store = new MemoryStore();\n \tconst project = new Project(store);\n \tproject.init({ \"f.json\": before }, 0);"},{"path":"worker/project/test/order.test.ts","added":3,"removed":3,"diff":"--- a/worker/project/test/order.test.ts\n+++ b/worker/project/test/order.test.ts\n@@ -45,18 +45,18 @@\n \n \t\tconst expected = [...base];\n \t\tfor (const p of [...plans].reverse()) expected.splice(p.start, p.end - p.start, ...p.lines);\n-\t\tconst expectedText = expected.length > 0 ? expected.join(\"\\n\") + \"\\n\" : undefined;\n+\t\tconst expectedText = expected.length > 0 ? `${expected.join(\"\\n\")}\\n` : undefined;\n \n \t\tconst orders = [plans.map((_, i) => i), plans.map((_, i) => plans.length - 1 - i)];\n \t\tfor (let k = 0; k < 3; k++) orders.push([...orders[0]!].sort(() => rand() - 0.5));\n \t\tfor (const order of orders) {\n \t\t\tconst project = new Project(new MemoryStore());\n-\t\t\tproject.init({ \"f.txt\": base.join(\"\\n\") + \"\\n\" }, 0);\n+\t\t\tproject.init({ \"f.txt\": `${base.join(\"\\n\")}\\n` }, 0);\n \t\t\tfor (const p of plans) {\n \t\t\t\tproject.sync(p.agent);\n \t\t\t\tconst lines = [...base];\n \t\t\t\tlines.splice(p.start, p.end - p.start, ...p.lines);\n-\t\t\t\tproject.record(p.agent, { \"f.txt\": lines.join(\"\\n\") + \"\\n\" }, 1);\n+\t\t\t\tproject.record(p.agent, { \"f.txt\": `${lines.join(\"\\n\")}\\n` }, 1);\n \t\t\t}\n \t\t\tfor (const i of order) {\n \t\t\t\tconst answer = project.publish(plans[i]!.agent, \"m\", 2);"},{"path":"worker/project/test/project-file.test.ts","added":1,"removed":1,"diff":"--- a/worker/project/test/project-file.test.ts\n+++ b/worker/project/test/project-file.test.ts\n@@ -6,7 +6,7 @@\n import { test } from \"node:test\";\n import { MemoryStore, Project } from \"../project.ts\";\n \n-const review = (reviewer: string) => JSON.stringify({ review: [{ paths: [\"src/**\"], reviewer }] }) + \"\\n\";\n+const review = (reviewer: string) => `${JSON.stringify({ review: [{ paths: [\"src/**\"], reviewer }] })}\\n`;\n \n function touchSrc(project: Project, time: number): void {\n \tproject.sync(\"builder\");"},{"path":"worker/project/test/queue.test.ts","added":1,"removed":1,"diff":"--- a/worker/project/test/queue.test.ts\n+++ b/worker/project/test/queue.test.ts\n@@ -20,7 +20,7 @@\n \tproject.checkerReady = true;\n \tproject.init(\n \t\t{\n-\t\t\t\"avcs.json\": JSON.stringify({ queue }) + \"\\n\",\n+\t\t\t\"avcs.json\": `${JSON.stringify({ queue })}\\n`,\n \t\t\t\"a.ts\": \"export const a = 1;\\n\",\n \t\t\t\"b.ts\": \"export const b = 1;\\n\",\n \t\t\t\"c.ts\": \"export const c = 1;\\n\","},{"path":"worker/project/test/queued-moves.test.ts","added":2,"removed":2,"diff":"--- a/worker/project/test/queued-moves.test.ts\n+++ b/worker/project/test/queued-moves.test.ts\n@@ -20,7 +20,7 @@\n \tproject.checkerReady = true;\n \tproject.init(\n \t\t{\n-\t\t\t\"avcs.json\": JSON.stringify({ queue: true }) + \"\\n\",\n+\t\t\t\"avcs.json\": `${JSON.stringify({ queue: true })}\\n`,\n \t\t\t\"a.ts\": \"export const a = 1;\\nexport function kept() {\\n\\treturn 'x';\\n}\\n\",\n \t\t\t\"c.ts\": \"export const c = 1;\\n\",\n \t\t},\n@@ -66,7 +66,7 @@\n \tconst project = new Project(store);\n \tproject.checkerReady = true;\n \tproject.init(\n-\t\t{ \"avcs.json\": JSON.stringify({ queue: true }) + \"\\n\", \"a.ts\": \"export const a = 1;\\nexport const b = 1;\\n\" },\n+\t\t{ \"avcs.json\": `${JSON.stringify({ queue: true })}\\n`, \"a.ts\": \"export const a = 1;\\nexport const b = 1;\\n\" },\n \t\t0,\n \t);\n \tproject.sync(\"one\");"},{"path":"worker/project/test/reviewers.test.ts","added":1,"removed":1,"diff":"--- a/worker/project/test/reviewers.test.ts\n+++ b/worker/project/test/reviewers.test.ts\n@@ -23,7 +23,7 @@\n \tconst project = new Project(new MemoryStore(), { now: () => 100 });\n \tproject.init(\n \t\t{\n-\t\t\t\"avcs.json\": JSON.stringify(RULES) + \"\\n\",\n+\t\t\t\"avcs.json\": `${JSON.stringify(RULES)}\\n`,\n \t\t\t\"src/auth/login.ts\": \"export const login = 1;\\n\",\n \t\t\t\"src/game.ts\": \"export const game = 1;\\n\",\n \t\t\t\"README.md\": \"# readme\\n\","},{"path":"worker/project/test/tells.test.ts","added":1,"removed":1,"diff":"--- a/worker/project/test/tells.test.ts\n+++ b/worker/project/test/tells.test.ts\n@@ -58,7 +58,7 @@\n \tfor (let i = 0; i < TELLS_KEPT + 3; i++) project.announce(\"lead\", `Tell ${i}.`, [\"b2\"], 3 + i);\n \tconst kept = project.status().tells;\n \tassert.equal(kept.length, TELLS_KEPT);\n-\tassert.match(kept[0]!.text, new RegExp(`Tell ${TELLS_KEPT + 2}\\.$`));\n+\tassert.match(kept[0]!.text, new RegExp(`Tell ${TELLS_KEPT + 2}\\\\.$`));\n });\n \n test(\"a person's tell is kept like an agent's\", () => {"},{"path":"worker/project/test/whole.test.ts","added":4,"removed":4,"diff":"--- a/worker/project/test/whole.test.ts\n+++ b/worker/project/test/whole.test.ts\n@@ -21,13 +21,13 @@\n \t};\n \tconst log = new MemoryStore();\n \tconst project = new Project(log, { hasBlob: (sha) => store.has(sha), whole });\n-\tproject.init({ \"avcs.json\": JSON.stringify(config) + \"\\n\", \"src/a.ts\": \"export const a = 1;\\n\" }, 0);\n+\tproject.init({ \"avcs.json\": `${JSON.stringify(config)}\\n`, \"src/a.ts\": \"export const a = 1;\\n\" }, 0);\n \tfor (const a of [\"ann\", \"bob\"]) project.sync(a);\n \treturn { project, store, log, whole };\n }\n \n const recording = (n: number) =>\n-\tJSON.stringify({ frames: Array.from({ length: 50 }, (_, i) => i * n) }, null, 2) + \"\\n\";\n+\t`${JSON.stringify({ frames: Array.from({ length: 50 }, (_, i) => i * n) }, null, 2)}\\n`;\n \n test(\"a path the project marks whole is stored as a blob, and publishes and syncs like one\", () => {\n \tconst { project, store } = setup();\n@@ -44,7 +44,7 @@\n \n test(\"text over 1 MB is kept whole whatever its path; smaller text is tracked by line\", () => {\n \tconst { project } = setup({});\n-\tconst big = \"x\".repeat(80) + \"\\n\";\n+\tconst big = `${\"x\".repeat(80)}\\n`;\n \tproject.record(\"ann\", { \"gen/big.txt\": big.repeat(13_000), \"src/small.txt\": \"small\\n\" }, 1);\n \tproject.publish(\"ann\", \"two files\", 2);\n \tassert.ok(project.blobs()[\"gen/big.txt\"], \"the big one is a blob\");\n@@ -54,7 +54,7 @@\n \n test(\"once whole, a file stays whole even when it shrinks; an Edit of it is out of step so the client sends the file\", () => {\n \tconst { project, store } = setup({});\n-\tproject.record(\"ann\", { \"gen/big.txt\": (\"y\".repeat(80) + \"\\n\").repeat(13_000) }, 1);\n+\tproject.record(\"ann\", { \"gen/big.txt\": `${\"y\".repeat(80)}\\n`.repeat(13_000) }, 1);\n \tproject.publish(\"ann\", \"big\", 2);\n \tproject.sync(\"bob\");\n \tproject.record(\"bob\", { \"gen/big.txt\": \"tiny now\\n\" }, 3);"},{"path":"worker/project/whole-files.ts","added":1,"removed":1,"diff":"--- a/worker/project/whole-files.ts\n+++ b/worker/project/whole-files.ts\n@@ -52,7 +52,7 @@\n \treturn (\n \t\trules.some((p) => matchesPattern(p, path)) ||\n \t\tlength > WHOLE_LIMIT ||\n-\t\t(view !== undefined && view.hasFile(path) && view.attrs(path).blob !== null)\n+\t\t(view?.hasFile(path) === true && view.attrs(path).blob !== null)\n \t);\n }\n "}],"ci":null}