{"version":251,"agent":"capacity","message":"Author totals: each shared file's lines by author and its size, kept as versions land, so tree with authors reads them instead of laying every file out (abso Capacity, issue 664; docs/disk-first-2.md; Security yes on ask 2096).\n\nversion-files.ts keeps, beside the head line counts, each file's totals at the newest version (head-authors) and at every version that changed them (author-totals), from version 0 on and only while every version since has kept them. A version on the fast path adds each inserted visible line to its author and takes each deleted one off its writer's, with its UTF-8 bytes and newline (joinLines). A version with moves, drops or a closure change counts every touched file from its layout, so a line rewritten with the same text by someone else still moves its author. Shared only; a draft's view takes its base's totals for the files the draft doesn't touch (touchedBeyond) and lays out the rest, and a named draft never reads them. Kept in the writer's state, so whatever replaces or clears it (a new adoption, a restore, a live drop) takes them too. A writer adopted before this keeps none and lays out as before.\n\nOn a fresh abso adoption (my machine): tree with authors at 1224 takes 333 ms first and 50 ms again (11 to 16 s and 1.8 to 2.4 s before); an agent's tree with authors 619 ms again (2 to 3.4 s). Adoption 7.2 min, the same as before. A full run matches 33 of 33 answers.\n\nTest: author-totals.test.ts, tree with authors at every version and in every agent's view, the stored writer against the in-memory project: moved lines, a rename by record and by move, a drop, a binary file, text beyond ASCII, drafts that edit, move lines or have nothing. With the path, move, drop, draft, adoption and version-files tests: 47 of 47.","time":1792088097804,"timeIso":"2026-10-15T18:14:57.804Z","changes":20,"change":3907,"files":["worker/project/history.ts","worker/project/project.ts","worker/project/test/author-totals.test.ts","worker/project/version-files.ts"],"draft":null,"diff":[{"path":"worker/project/history.ts","added":23,"removed":5,"diff":"--- a/worker/project/history.ts\n+++ b/worker/project/history.ts\n@@ -6,6 +6,7 @@\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\";\n+import type { FileTotals } from \"./version-files.ts\";\n \n /** What the history reads need from a project. */\n export interface HistoryHost {\n@@ -18,6 +19,15 @@\n \tviewAt(space: Space, version: number): ReadView;\n \t/** A version's file list from kept version shapes, when every version up to it has one (pathindex.ts). */\n \tkeptPaths?(space: Space, version: number): string[] | undefined;\n+\t/**\n+\t * Each file's kept author totals (version-files.ts) for a version of shared, or an agent's view of it: a lookup that\n+\t * answers undefined for a file it can't, which is then laid out. Undefined when none are kept.\n+\t */\n+\tauthorTotals?(\n+\t\tspace: Space,\n+\t\tversion: number,\n+\t\tagent?: { readonly name: string; readonly space: string; readonly base: number },\n+\t): ((path: string) => FileTotals | undefined) | undefined;\n \tagentView(agent: { readonly name: string; readonly space: string; readonly base: number }): ReadView;\n \tspellingIn(view: ReadView, asked: string): string;\n \tpathsOf(space: Space): Map<string, PathLifeRecord>;\n@@ -131,6 +141,8 @@\n \t\tauthors.set(id, author);\n \t\treturn author;\n \t};\n+\t// Each file's lines by author and size kept as versions land (abso Capacity), for the files it can answer.\n+\tconst totalsOf = options.authors ? h.authorTotals?.(space, version, agent) : undefined;\n \tfor (const path of paths) {\n \t\tconst e = entryOf(path);\n \t\tif (!e) continue;\n@@ -140,13 +152,19 @@\n \t\tif (agent && differs(base, view, path)) e.changed = true;\n \t\tif (options.authors) {\n \t\t\tconst counts = (e.authors ??= new Map());\n-\t\t\tfor (const l of view.lines(path)) {\n-\t\t\t\tconst author = authorOf(l.atom);\n-\t\t\t\tcounts.set(author, (counts.get(author) ?? 0) + 1);\n-\t\t\t}\n \t\t\tconst blob = view.attrs(path).blob;\n+\t\t\tconst totals = totalsOf?.(path);\n+\t\t\tif (totals) {\n+\t\t\t\tfor (const [author, n] of totals.authors) counts.set(author, (counts.get(author) ?? 0) + n);\n+\t\t\t\tif (blob === null) e.bytes += totals.bytes;\n+\t\t\t} else {\n+\t\t\t\tfor (const l of view.lines(path)) {\n+\t\t\t\t\tconst author = authorOf(l.atom);\n+\t\t\t\t\tcounts.set(author, (counts.get(author) ?? 0) + 1);\n+\t\t\t\t}\n+\t\t\t\tif (blob === null) e.bytes += utf8Bytes(view.text(path));\n+\t\t\t}\n \t\t\tif (blob !== null) (e.blobs ??= []).push(blob);\n-\t\t\telse e.bytes += utf8Bytes(view.text(path));\n \t\t}\n \t}\n \t// A file the agent took out still marks the folder it was in, when that folder is still listed."},{"path":"worker/project/project.ts","added":27,"removed":1,"diff":"--- a/worker/project/project.ts\n+++ b/worker/project/project.ts\n@@ -200,8 +200,14 @@\n import { switchTo as hostedSwitchTo, type SwitchHost } from \"./switch-to.ts\";\n import { sync as hostedSync, type SyncHost } from \"./sync.ts\";\n import { treeHash } from \"./tree.ts\";\n-import { versionFiles as keptVersionFiles, type VersionFilesHost } from \"./version-files.ts\";\n import {\n+\tauthoredVersion,\n+\tauthorTotalsAt,\n+\ttype FileTotals,\n+\tversionFiles as keptVersionFiles,\n+\ttype VersionFilesHost,\n+} from \"./version-files.ts\";\n+import {\n \ttype LogHost,\n \tcompare as versionCompare,\n \tcompareSummary as versionCompareSummary,\n@@ -1787,6 +1793,7 @@\n \t\t\tcheckVersion: (space, version) => this.#checkVersion(space, version),\n \t\t\tviewAt: (space, version) => this.#viewAt(space, version),\n \t\t\tkeptPaths: (space, version) => this.#keptPaths(space, version),\n+\t\t\tauthorTotals: (space, version, agent) => this.#authorTotals(space, version, agent as AgentState | undefined),\n \t\t\tagentView: (agent) => this.#agentView(agent as AgentState),\n \t\t\tspellingIn: (view, asked) => this.spellingIn(view, asked),\n \t\t\tpathsOf: (space) => this.#paths.pathsOf(space),\n@@ -1802,6 +1809,25 @@\n \t\treturn this.#writerStorage && space.name === SHARED ? this.#paths.keptPaths(space, version) : undefined;\n \t}\n \n+\t/**\n+\t * Each file's kept author totals for tree with authors (version-files.ts), on a stored writer and for shared only. An\n+\t * agent's view takes its base's totals for every file its draft doesn't touch, as its layout does (touchedBeyond),\n+\t * and lays out the rest; a draft that moves lines lays out everything.\n+\t */\n+\t#authorTotals(\n+\t\tspace: Space,\n+\t\tversion: number,\n+\t\tagent?: AgentState,\n+\t): ((path: string) => FileTotals | undefined) | undefined {\n+\t\tconst storage = this.#writerStorage;\n+\t\tif (!storage || space.name !== SHARED || authoredVersion(storage) === undefined) return undefined;\n+\t\tif (!agent || agent.mine.length === 0) return (path) => authorTotalsAt(storage, path, version);\n+\t\tconst base = this.#viewAt(space, version);\n+\t\tconst except = touchedBeyond(this.#graph, base.set, agent.mine, [base, this.#agentView(agent)]);\n+\t\tif (!except) return undefined;\n+\t\treturn (path) => (except.has(path) ? undefined : authorTotalsAt(storage, path, version));\n+\t}\n+\n \t/** One folder at a version (history.ts). */\n \ttree(...args: Tail<Parameters<typeof historyTree>>): ReturnType<typeof historyTree> {\n \t\treturn historyTree(this.#history, ...args);"},{"path":"worker/project/test/author-totals.test.ts","added":109,"removed":0,"diff":"--- /dev/null\n+++ b/worker/project/test/author-totals.test.ts\n@@ -0,0 +1,109 @@\n+// Author totals (abso Capacity, issue 664; version-files.ts): each shared file's lines by author and its size, kept as\n+// versions land, answer tree with authors on a stored writer without laying files out. Every tree with authors must\n+// match the in-memory project's, at every version and in every agent's view: lines rewritten with the same text by\n+// someone else, lines moved between files, a file renamed by record and by move, a drop, a binary file, text beyond\n+// ASCII, and drafts that edit, move lines, or hold nothing.\n+\n+import assert from \"node:assert/strict\";\n+import { test } from \"node:test\";\n+import { storedArray } from \"../../../src/engine/state-source.ts\";\n+import { SqlState } from \"../../../src/engine/test/storage-helper.ts\";\n+import { MemoryStore, Project } from \"../project.ts\";\n+import type { Entry, ProjectStore } from \"../project-types.ts\";\n+import { authoredVersion } from \"../version-files.ts\";\n+\n+function writer() {\n+\tconst storage = new SqlState();\n+\tconst entries = storedArray<Entry>(storage, \"canonical-log\");\n+\tconst store: ProjectStore = {\n+\t\tappend(batch) {\n+\t\t\tfor (const entry of batch) entries.push(entry);\n+\t\t},\n+\t};\n+\treturn { storage, project: new Project(store, { writerStorage: storage, hasBlob: () => true }) };\n+}\n+\n+const AREA = \"export function area(r: number) {\\n  return 3.14 * r * r;\\n}\\n\";\n+const BLOB = \"c\".repeat(64);\n+const AGENTS = [\"ann\", \"bob\", \"cy\", \"dee\", \"eve\", \"fay\", \"old\"];\n+\n+function history(project: Project) {\n+\tlet t = 0;\n+\tproject.init(\n+\t\t{\n+\t\t\t\"src/shapes.ts\": `// shapes\\n${AREA}`,\n+\t\t\t\"src/geometry.ts\": \"// geometry\\n\",\n+\t\t\t\"notes.md\": \"a\\nb\\n\",\n+\t\t\t\"src/x.ts\": \"x\\n\",\n+\t\t},\n+\t\tt,\n+\t\t{},\n+\t\t{ \"logo.png\": BLOB },\n+\t);\n+\tproject.sync(\"old\");\n+\t// bob adds a line beyond ASCII to a file init wrote.\n+\tproject.record(\"bob\", { \"notes.md\": \"a\\nb\\nmore ünïcode ✓\\n\" }, ++t);\n+\tassert.equal(project.publish(\"bob\", \"Notes\", ++t).ok, true);\n+\t// ann moves area() into geometry.ts (a move once published), then renames x.ts by record.\n+\tproject.edit(\"ann\", { file: \"src/shapes.ts\", old: AREA, new: \"\" }, ++t);\n+\tproject.edit(\"ann\", { file: \"src/geometry.ts\", content: `// geometry\\n${AREA}` }, ++t);\n+\tassert.equal(project.publish(\"ann\", \"Move area\", ++t).ok, true);\n+\tproject.record(\"ann\", { \"src/x.ts\": null, \"src/y.ts\": \"x\\n\" }, ++t);\n+\tassert.equal(project.publish(\"ann\", \"Rename x\", ++t).ok, true);\n+\t// cy edits a moved line; the mover moves a file.\n+\tproject.edit(\"cy\", { file: \"src/geometry.ts\", old: \"3.14\", new: \"Math.PI\" }, ++t);\n+\tassert.equal(project.publish(\"cy\", \"Pi\", ++t).ok, true);\n+\tproject.move(\"mover\", \"notes.md\", \"docs/notes.md\", ++t);\n+\tassert.equal(project.publish(\"mover\", \"Move notes\", ++t).ok, true);\n+\t// A version dropped again.\n+\tproject.record(\"dee\", { \"src/y.ts\": \"x\\ny\\n\" }, ++t);\n+\tconst addY = project.publish(\"dee\", \"Add y\", ++t) as { ok: boolean; version: number };\n+\tassert.equal(addY.ok, true);\n+\tassert.equal(project.drop(\"dee\", [addY.version], \"Not y\", ++t).ok, true);\n+\t// Drafts: eve edits, fay moves lines, ann has nothing, old sits on version 0.\n+\tfor (const agent of [\"ann\", \"eve\", \"fay\"]) project.sync(agent);\n+\tproject.record(\"eve\", { \"src/geometry.ts\": \"// geometry\\nnew\\n\", \"src/z.ts\": \"z\\n\" }, ++t);\n+\tproject.edit(\"fay\", { file: \"src/geometry.ts\", old: \"// geometry\\n\", new: \"\" }, ++t);\n+\tproject.edit(\"fay\", { file: \"src/moved.ts\", content: \"// geometry\\n\" }, ++t);\n+}\n+\n+const trees = (project: Project) => {\n+\tconst out: Record<string, unknown> = {};\n+\tconst last = project.log().versions[0]!.version;\n+\tfor (let v = 0; v <= last; v++)\n+\t\tfor (const folder of [\"\", \"src\"])\n+\t\t\ttry {\n+\t\t\t\tout[`${v} ${folder}`] = project.tree(folder, { version: v, authors: true });\n+\t\t\t} catch (e) {\n+\t\t\t\tout[`${v} ${folder}`] = String(e);\n+\t\t\t}\n+\tfor (const agent of AGENTS)\n+\t\tfor (const folder of [\"\", \"src\"]) out[`${agent} ${folder}`] = project.tree(folder, { agent, authors: true });\n+\treturn out;\n+};\n+\n+test(\"tree with authors from kept totals matches the in-memory project at every version and in every draft\", () => {\n+\tconst oracle = new Project(new MemoryStore(), { hasBlob: () => true });\n+\tconst { storage, project } = writer();\n+\thistory(oracle);\n+\thistory(project);\n+\tconst expected = trees(oracle);\n+\tassert.deepEqual(trees(project), expected);\n+\t// The totals answered: kept up to shared's newest version.\n+\tassert.equal(authoredVersion(storage), project.log().versions[0]!.version);\n+\t// The cases the test is for, so a history change can't empty it.\n+\tconst at = (v: number, name: string) =>\n+\t\t(expected[`${v} `] as { entries: { name: string; authors?: { agent: string }[] }[] }).entries.find(\n+\t\t\t(e) => e.name === name,\n+\t\t);\n+\tassert.deepEqual(at(1, \"notes.md\")!.authors, [\n+\t\t{ agent: \"init\", lines: 2 },\n+\t\t{ agent: \"bob\", lines: 1 },\n+\t]);\n+\tassert.ok(JSON.stringify(expected).includes('\"agent\":\"cy\"'));\n+\tassert.equal(\n+\t\t(expected[\"0 \"] as { entries: { name: string; blobs?: string[] }[] }).entries.find((e) => e.name === \"logo.png\")!\n+\t\t\t.blobs![0],\n+\t\tBLOB,\n+\t);\n+});"},{"path":"worker/project/version-files.ts","added":123,"removed":4,"diff":"--- a/worker/project/version-files.ts\n+++ b/worker/project/version-files.ts\n@@ -10,12 +10,96 @@\n import { type AtomId, type Graph, type ReadView, View } from \"../../src/engine/index.ts\";\n import type { GraphStateStorage } from \"../../src/engine/state-source.ts\";\n import { touchedFiles } from \"./collisions.ts\";\n+import { utf8Bytes } from \"./project-helpers.ts\";\n import type { Published } from \"./spaces.ts\";\n import { differs } from \"./view-changes.ts\";\n \n const COUNTS = \"head-visible\";\n const META = \"head-visible:meta\";\n \n+// Author totals (docs/disk-first-2.md, abso Capacity, issue 664): each shared file's lines by author and its text's size\n+// in UTF-8 bytes, as tree with authors counts them, so it reads one value per file instead of laying every file out.\n+// AUTHORS holds each file's totals at the newest version kept; AUTHORS_LOG each file's totals at every version that\n+// changed them, oldest first. Shared only, never a draft (Security on ask 2096). They live in the writer's state, so\n+// whatever clears or replaces that state (a new adoption, a restore, a drop of the project) takes them with it.\n+const AUTHORS = \"head-authors\";\n+const AUTHORS_LOG = \"author-totals\";\n+const AUTHORS_META = \"head-authors:meta\";\n+\n+/** A file's lines by author and its text's size, stored: authors by name, none at zero; null when it has no lines. */\n+type StoredTotals = { a: [string, number][]; b: number };\n+\n+/** A shared file's lines by author and its text's size in UTF-8 bytes. */\n+export interface FileTotals {\n+\treadonly authors: ReadonlyMap<string, number>;\n+\treadonly bytes: number;\n+}\n+\n+const NO_TOTALS: FileTotals = { authors: new Map(), bytes: 0 };\n+\n+/** The newest shared version whose author totals are kept, or undefined when this writer keeps none. */\n+export function authoredVersion(storage: GraphStateStorage): number | undefined {\n+\treturn storage.read(AUTHORS_META, \"version\") as number | undefined;\n+}\n+\n+/** A shared file's totals at version `v`, or undefined when they aren't kept that far: lay the file out instead. */\n+export function authorTotalsAt(storage: GraphStateStorage, path: string, v: number): FileTotals | undefined {\n+\tconst upTo = authoredVersion(storage);\n+\tif (upTo === undefined || v > upTo) return undefined;\n+\tconst log = storage.read(AUTHORS_LOG, path) as [number, StoredTotals | null][] | undefined;\n+\tif (!log) return NO_TOTALS;\n+\t// The newest entry at or before v.\n+\tlet lo = 0;\n+\tlet hi = log.length - 1;\n+\tlet found = -1;\n+\twhile (lo <= hi) {\n+\t\tconst mid = (lo + hi) >> 1;\n+\t\tif (log[mid]![0] <= v) {\n+\t\t\tfound = mid;\n+\t\t\tlo = mid + 1;\n+\t\t} else hi = mid - 1;\n+\t}\n+\tconst totals = found < 0 ? null : log[found]![1];\n+\treturn totals ? { authors: new Map(totals.a), bytes: totals.b } : NO_TOTALS;\n+}\n+\n+/** Each atom's author, read once. */\n+function authorsOf(graph: Graph): (id: AtomId) => string {\n+\tconst known = new Map<AtomId, string>();\n+\treturn (id) => {\n+\t\tlet author = known.get(id);\n+\t\tif (author === undefined) known.set(id, (author = graph.atom(id).author));\n+\t\treturn author;\n+\t};\n+}\n+\n+/** Totals in stored form: authors sorted, none at zero; null for a file with no lines. */\n+function normalTotals(authors: ReadonlyMap<string, number>, bytes: number): StoredTotals | null {\n+\tconst a = [...authors].filter(([, n]) => n !== 0).sort(([x], [y]) => (x < y ? -1 : x > y ? 1 : 0));\n+\treturn a.length === 0 && bytes === 0 ? null : { a, b: bytes };\n+}\n+\n+/** A file's totals from its layout in a view, as tree with authors counts them. */\n+function laidOutTotals(view: ReadView, path: string, authorOf: (id: AtomId) => string): StoredTotals | null {\n+\tif (!view.hasFile(path)) return null;\n+\tconst authors = new Map<string, number>();\n+\tfor (const l of view.lines(path)) {\n+\t\tconst author = authorOf(l.atom);\n+\t\tauthors.set(author, (authors.get(author) ?? 0) + 1);\n+\t}\n+\treturn normalTotals(authors, authors.size === 0 ? 0 : utf8Bytes(view.text(path)));\n+}\n+\n+/** Keep a file's totals at version `v`, when they differ from what it had. */\n+function keepTotals(storage: GraphStateStorage, v: number, path: string, totals: StoredTotals | null): void {\n+\tconst was = (storage.read(AUTHORS, path) as StoredTotals | undefined) ?? null;\n+\tif (JSON.stringify(was) === JSON.stringify(totals)) return;\n+\tif (totals) storage.write(AUTHORS, path, totals);\n+\telse storage.remove(AUTHORS, path);\n+\tconst log = (storage.read(AUTHORS_LOG, path) as [number, StoredTotals | null][] | undefined) ?? [];\n+\tstorage.write(AUTHORS_LOG, path, [...log, [v, totals]]);\n+}\n+\n /** The shared version the running counts describe, or undefined when this writer keeps none. */\n export function countedVersion(storage: GraphStateStorage): number | undefined {\n \treturn storage.read(META, \"version\") as number | undefined;\n@@ -58,6 +142,10 @@\n \t// The same moves as the version before: share them, and where lines sit, instead of resolving them again.\n \tif (fast && before instanceof View && after instanceof View) after.shareMoves(before);\n \tconst touched = touchedFiles(graph, atoms, [before, after]);\n+\t// Author totals start with the first version too, and are kept only while every version since has kept them.\n+\tconst authored = authoredVersion(storage);\n+\tconst authoring = authored === v - 1 || (v === 0 && authored === undefined);\n+\tconst authorOf = authorsOf(graph);\n \tlet files: string[];\n \tif (!fast) {\n \t\tfiles = [...touched].filter((path) => differs(before, after, path)).sort();\n@@ -66,6 +154,12 @@\n \t\t\tfor (const path of files) storage.write(COUNTS, path, visibleCount(after, path));\n \t\t\tstorage.write(META, \"version\", v);\n \t\t}\n+\t\t// Every touched file's totals from its layout: one whose lines are the same texts by someone else isn't among\n+\t\t// the changed files, but its authors changed.\n+\t\tif (authoring) {\n+\t\t\tfor (const path of touched) keepTotals(storage, v, path, laidOutTotals(after, path, authorOf));\n+\t\t\tstorage.write(AUTHORS_META, \"version\", v);\n+\t\t}\n \t\treturn { files };\n \t}\n \tconst beforeSet = host.at(v - 1);\n@@ -76,11 +170,15 @@\n \t};\n \tconst fileOf = (view: ReadView, line: string, n: number) =>\n \t\tview.hasMoves() ? view.fileOf(line) : graph.writtenIn(n);\n-\t// Per file: visible lines added minus removed, and the texts' balance.\n-\tconst changes = new Map<string, { net: number; texts: Map<string, number>; lines: number }>();\n+\t// Per file: visible lines added minus removed, and the texts' balance; and, while totals are kept, each author's lines\n+\t// and the bytes added minus removed (a line and its newline, as joinLines makes the file).\n+\tconst changes = new Map<\n+\t\tstring,\n+\t\t{ net: number; texts: Map<string, number>; lines: number; authors: Map<string, number>; bytes: number }\n+\t>();\n \tconst change = (path: string) => {\n \t\tlet c = changes.get(path);\n-\t\tif (!c) changes.set(path, (c = { net: 0, texts: new Map(), lines: 0 }));\n+\t\tif (!c) changes.set(path, (c = { net: 0, texts: new Map(), lines: 0, authors: new Map(), bytes: 0 }));\n \t\treturn c;\n \t};\n \tfor (const id of p.atoms) {\n@@ -92,17 +190,38 @@\n \t\t\tc.net++;\n \t\t\tc.lines++;\n \t\t\tc.texts.set(text, (c.texts.get(text) ?? 0) + 1);\n+\t\t\tif (authoring) {\n+\t\t\t\tconst author = authorOf(id);\n+\t\t\t\tc.authors.set(author, (c.authors.get(author) ?? 0) + 1);\n+\t\t\t\tc.bytes += utf8Bytes(text) + 1;\n+\t\t\t}\n \t\t}\n \t\tfor (const line of graph.deletedLines(id)) {\n \t\t\tconst n = graph.lineN(line);\n-\t\t\tif (!beforeSet.has(graph.idOfSeq(graph.writerSeqOf(n))) || !visibleIn(beforeSet, n)) continue;\n+\t\t\tconst writer = graph.idOfSeq(graph.writerSeqOf(n));\n+\t\t\tif (!beforeSet.has(writer) || !visibleIn(beforeSet, n)) continue;\n \t\t\tconst c = change(fileOf(before, line, n));\n \t\t\tconst text = graph.textOf(n);\n \t\t\tc.net--;\n \t\t\tc.lines++;\n \t\t\tc.texts.set(text, (c.texts.get(text) ?? 0) - 1);\n+\t\t\tif (authoring) {\n+\t\t\t\tconst author = authorOf(writer);\n+\t\t\t\tc.authors.set(author, (c.authors.get(author) ?? 0) - 1);\n+\t\t\t\tc.bytes -= utf8Bytes(text) + 1;\n+\t\t\t}\n \t\t}\n \t}\n+\tif (authoring) {\n+\t\tfor (const [path, c] of changes) {\n+\t\t\tif (c.lines === 0) continue;\n+\t\t\tconst was = storage.read(AUTHORS, path) as StoredTotals | undefined;\n+\t\t\tconst authors = new Map(was?.a ?? []);\n+\t\t\tfor (const [author, d] of c.authors) authors.set(author, (authors.get(author) ?? 0) + d);\n+\t\t\tkeepTotals(storage, v, path, normalTotals(authors, (was?.b ?? 0) + c.bytes));\n+\t\t}\n+\t\tstorage.write(AUTHORS_META, \"version\", v);\n+\t}\n \tfiles = [];\n \tconst exists = new Map<string, readonly [boolean, boolean]>();\n \tfor (const path of touched) {"}],"ci":null}