{"draft":null,"from":142,"to":143,"files":[{"path":"worker/project/version-log.ts","added":14,"removed":9,"diff":"--- a/worker/project/version-log.ts\n+++ b/worker/project/version-log.ts\n@@ -1,8 +1,9 @@\n+import { View } from \"../../src/engine/index.ts\";\n // The version list reads: log (versions newest first, or one file's history), ribbon (who published each version),\n // show (one version's changes), fileAt, compare and viewAt. They read through LogHost; today the host is the project\n // in memory.\n \n-import { type AtomId, type Graph, View } from \"../../src/engine/index.ts\";\n+import type { AtomId, Graph, ReadView } from \"../../src/engine/index.ts\";\n import { checkReadPath } from \"./path-rules.ts\";\n import type { PathIndex } from \"./pathindex.ts\";\n import { ProjectError } from \"./project-error.ts\";\n@@ -19,12 +20,12 @@\n \tneedInit(): void;\n \tspaceFor(options: { draft?: string | null; agent?: string }): Space;\n \tcheckVersion(space: Space, version: number): void;\n-\tviewAt(space: Space, version: number): View;\n-\tview(set: ReadonlySet<AtomId>): View;\n+\tviewAt(space: Space, version: number): ReadView;\n+\tview(set: ReadonlySet<AtomId>): ReadView;\n \tat(space: Space, version: number): ReadonlySet<AtomId>;\n-\tspellingIn(view: View, path: string): string;\n+\tspellingIn(view: ReadView, path: string): string;\n \tversionChange(space: Space, version: number): number | undefined;\n-\ttouchedFiles(ids: Iterable<AtomId>, views: readonly View[]): Set<string>;\n+\ttouchedFiles(ids: Iterable<AtomId>, views: readonly ReadView[]): Set<string>;\n }\n \n /**\n@@ -59,7 +60,7 @@\n \t// A file's history (#43): only versions whose changes name the file, or a file moves can carry lines from, can have changed it.\n \tconst sources = path === undefined ? undefined : new Set(names.flatMap((n) => [...moveSources(host.graph, n.path)]));\n \tconst g = host.graph;\n-\tconst views = new Map<number, View>();\n+\tconst views = new Map<number, ReadView>();\n \tfor (; v >= 0 && versions.length < limit; v--) {\n \t\tif (sources && !host.paths.knowsFiles(space, v)) {\n \t\t\tconst p = space.versions[v]!;\n@@ -179,7 +180,7 @@\n \t};\n }\n \n-function logEntry(host: LogHost, space: Space, version: number, views?: Map<number, View>): LogEntry {\n+function logEntry(host: LogHost, space: Space, version: number, views?: Map<number, ReadView>): LogEntry {\n \tconst p = space.versions[version]!;\n \tlet changes = 0;\n \tfor (const id of p.atoms) {\n@@ -264,8 +265,12 @@\n \treturn { from, to, files: changesBetween(host.view(a), host.view(b), files) };\n }\n \n-/** A version of shared (or of a named draft) as a View, for reading lines (blame at a version). */\n-export function viewAt(host: LogHost, version: number, options: { draft?: string | null; agent?: string } = {}): View {\n+/** A version of shared (or of a named draft) as a ReadView, for reading lines (blame at a version). */\n+export function viewAt(\n+\thost: LogHost,\n+\tversion: number,\n+\toptions: { draft?: string | null; agent?: string } = {},\n+): ReadView {\n \thost.needInit();\n \tconst space = host.spaceFor(options);\n \thost.checkVersion(space, version);"}],"unmatched":[]}