{"draft":null,"from":116,"to":318,"files":[{"path":"worker/project/notes.ts","added":12,"removed":12,"diff":"--- a/worker/project/notes.ts\n+++ b/worker/project/notes.ts\n@@ -2,7 +2,7 @@\n // reviews which files by avcs.json, the notes list, every agent's start note, and writing or closing\n // a note. Reads go through NoteHost, writes through NoteWriteHost; today the host is Project.\n \n-import type { AtomId, Graph, LineId, View } from \"../../src/engine/index.ts\";\n+import type { AtomId, Graph, LineId, ReadView } from \"../../src/engine/index.ts\";\n import { matchesPattern } from \"./globs.ts\";\n import { type NewsItem, noteClosedItem, noteSaid } from \"./news.ts\";\n import { checkReadPath } from \"./path-rules.ts\";\n@@ -27,11 +27,11 @@\n \treadonly notes: ReadonlyMap<number, NoteRecord>;\n \tinitialized(): boolean;\n \tshared(): Space;\n-\tsharedView(): View;\n-\tspellingIn(view: View, path: string): string;\n-\tviewAt(space: Space, version: number): View;\n-\tagentView(agent: AgentState): View;\n-\tview(set: ReadonlySet<AtomId>): View;\n+\tsharedView(): ReadView;\n+\tspellingIn(view: ReadView, path: string): string;\n+\tviewAt(space: Space, version: number): ReadView;\n+\tagentView(agent: AgentState): ReadView;\n+\tview(set: ReadonlySet<AtomId>): ReadView;\n \tat(space: Space, version: number): ReadonlySet<AtomId>;\n \tliveNote(agent: AgentState): Starting | undefined;\n }\n@@ -43,9 +43,9 @@\n \treadonly changes: ReadonlyMap<number, ChangeRecord>;\n \treadonly graph: Graph;\n \tlastNote(): number;\n-\tagentView(agent: AgentState): View;\n-\tviewAtVersion(version: number): View;\n-\tsharedView(): View;\n+\tagentView(agent: AgentState): ReadView;\n+\tviewAtVersion(version: number): ReadView;\n+\tsharedView(): ReadView;\n \tchangeOfLines(lines: readonly LineId[]): number | undefined;\n \tapply(entry: Entry): void;\n \tflush(entries: Entry[]): void;\n@@ -99,7 +99,7 @@\n }\n \n /** A note as reads show it, from the view its lines live in (undefined when no space holds them any more). */\n-export function noteAnswerIn(n: NoteRecord, view: View | undefined): NoteAnswer {\n+export function noteAnswerIn(n: NoteRecord, view: ReadView | undefined): NoteAnswer {\n \t// Where the lines are now, found by their ids: a move (#49) can have taken them to another file.\n \tlet lines: [number, number] | null = null;\n \tlet file = n.file;\n@@ -138,7 +138,7 @@\n  * published into; else their author's draft, where it works now or where it\n  * parked it. Undefined when no space holds them any more (a discarded draft).\n  */\n-export function noteView(host: NoteHost, n: NoteRecord): View | undefined {\n+export function noteView(host: NoteHost, n: NoteRecord): ReadView | undefined {\n \tconst writers = new Set(n.lines.map((l) => host.graph.lineAtom(l)).filter((a): a is AtomId => a !== undefined));\n \tconst holds = (set: ReadonlySet<AtomId> | readonly AtomId[]) =>\n \t\t[...writers].some((a) => (set instanceof Set ? set.has(a) : (set as readonly AtomId[]).includes(a)));\n@@ -218,7 +218,7 @@\n \t\t\tthrow new ProjectError(\"bad-request\", \"a note needs {file, from, to}, or {reply}\");\n \t\tfile = body.file;\n \t\tcheckReadPath(file);\n-\t\tlet view: View;\n+\t\tlet view: ReadView;\n \t\tif (typeof body.of === \"string\") {\n \t\t\tconst of = host.agents.get(body.of);\n \t\t\tif (!of) throw new ProjectError(\"not-found\", `there is no agent ${JSON.stringify(body.of)}`);"}],"unmatched":[]}