{"draft":null,"from":142,"to":143,"files":[{"path":"src/engine/view.ts","added":12,"removed":2,"diff":"--- a/src/engine/view.ts\n+++ b/src/engine/view.ts\n@@ -45,6 +45,11 @@\n \treadonly blob: string | null;\n }\n \n+/** Structural read boundary shared by historical and transaction-bound projections. */\n+export type ReadView = Omit<Pick<View, keyof View>, \"sameText\"> & {\n+\tsameText(path: string, other: ReadView): boolean;\n+};\n+\n const NO_ATTRS: FileAttrs = { exists: false, exec: false, link: null, blob: null };\n const NONE: readonly never[] = Object.freeze([]);\n \n@@ -523,7 +528,12 @@\n \t}\n \n \t/** Whether a file reads the same here and in `other` (of the same graph), compared line by line without joining either (#46). */\n-\tsameText(path: string, other: View): boolean {\n+\tsameText(path: string, other: ReadView): boolean {\n+\t\tif (!(other instanceof View)) {\n+\t\t\tconst a = this.lines(path),\n+\t\t\t\tb = other.lines(path);\n+\t\t\treturn a.length === b.length && a.every((line, i) => line.text === b[i]!.text);\n+\t\t}\n \t\tconst a = this.#file(path).vis;\n \t\tconst b = other.#file(path).vis;\n \t\tif (a.length !== b.length) return false;\n@@ -698,7 +708,7 @@\n }\n \n /** Where a node sits in a file's sequence: the index just after it (0 for a start node). */\n-export function indexAfter(view: View, path: string, node: NodeId): number {\n+export function indexAfter(view: Pick<ReadView, \"sequenceIndex\">, path: string, node: NodeId): number {\n \tif (isStartNode(node)) return 0;\n \tconst i = view.sequenceIndex(path, node);\n \tif (i < 0) throw new EngineError(\"not-in-view\", `line ${node} is not in ${path} in this view`);"}],"unmatched":[]}