{"draft":null,"from":76,"to":318,"files":[{"path":"worker/project/draft-diff.ts","added":8,"removed":5,"diff":"--- a/worker/project/draft-diff.ts\n+++ b/worker/project/draft-diff.ts\n@@ -1,7 +1,7 @@\n // An agent's unpublished changes, file by file. They read through DraftDiffHost; today the host is the project\n // in memory.\n \n-import type { AtomId, View } from \"../../src/engine/index.ts\";\n+import type { AtomId, ReadView } from \"../../src/engine/index.ts\";\n import { ProjectError } from \"./project-error.ts\";\n import type { DiffAnswer } from \"./project-types.ts\";\n import { SHARED } from \"./spaces.ts\";\n@@ -17,9 +17,10 @@\n \treadonly agents: ReadonlyMap<string, Agent>;\n \tneedInit(): void;\n \tdraft(agent: Agent): AtomId[];\n-\tagentView(agent: Agent): View;\n-\tview(set: ReadonlySet<AtomId>): View;\n-\ttouchedFiles(ids: Iterable<AtomId>, views: readonly View[]): Set<string>;\n+\tagentView(agent: Agent): ReadView;\n+\tagentViewWithout?(agent: Agent, excluded: ReadonlySet<AtomId>): ReadView;\n+\tview(set: ReadonlySet<AtomId>): ReadView;\n+\ttouchedFiles(ids: Iterable<AtomId>, views: readonly ReadView[]): Set<string>;\n }\n \n /** An agent's draft diff for a reader (#41, the website): never creates the agent, never writes. */\n@@ -35,7 +36,9 @@\n \tconst draft = host.draft(agent);\n \tconst after = host.agentView(agent);\n \tconst without = new Set(draft);\n-\tconst before = host.view(new Set([...after.set].filter((id) => !without.has(id))));\n+\tconst before = host.agentViewWithout\n+\t\t? host.agentViewWithout(agent, without)\n+\t\t: host.view(new Set([...after.set].filter((id) => !without.has(id))));\n \tconst files = host.touchedFiles(draft, [before, after]);\n \treturn {\n \t\tdraft: agent.space === SHARED ? null : agent.space,"}],"unmatched":[]}