{"draft":null,"from":95,"to":318,"files":[{"path":"worker/project/add-draft.ts","added":4,"removed":4,"diff":"--- a/worker/project/add-draft.ts\n+++ b/worker/project/add-draft.ts\n@@ -11,7 +11,7 @@\n \ttype Graph,\n \ttype MoveInput,\n \tparseKey,\n-\ttype View,\n+\ttype ReadView,\n } from \"../../src/engine/index.ts\";\n import type { Pair } from \"./collisions.ts\";\n import type { AgentState, Entry, Meta } from \"./project-types.ts\";\n@@ -20,7 +20,7 @@\n export interface AddDraftHost {\n \treadonly graph: Graph;\n \topenPairs(agent: AgentState): Pair[];\n-\tmarkersSettled(agent: AgentState, view: View, atom: Atom): AtomId[];\n+\tmarkersSettled(agent: AgentState, view: ReadView, atom: Atom): AtomId[];\n \tapply(entry: Entry): void;\n }\n \n@@ -32,7 +32,7 @@\n export function addDraft(\n \thost: AddDraftHost,\n \tagent: AgentState,\n-\tview: View,\n+\tview: ReadView,\n \tinput: { edits: readonly EditInput[]; attrs?: readonly AttrSet[]; move?: MoveInput },\n \ttime: number,\n \tmeta: Meta,\n@@ -50,7 +50,7 @@\n \tconst touched = new Set<AtomId>();\n \tfor (const key of claimsOf(atom)) {\n \t\tconst { kind, node } = parseKey(key);\n-\t\tif (kind === \"line\") touched.add(host.graph.line(node)!.atom);\n+\t\tif (kind === \"line\") touched.add(host.graph.idOfSeq(host.graph.writerSeqOf(host.graph.lineN(node))));\n \t\t// Setting an attribute again settles a collision over it.\n \t\tif (kind === \"attr\") for (const w of host.graph.writersOf(key)) touched.add(w);\n \t}"}],"unmatched":[]}