Function: computeInRunGroundingDiffs()
ts
function computeInRunGroundingDiffs(params): Promise<readonly InRunGroundingDiffRecord[]>;Defined in: runtime/prefix/internal/compute-in-run-grounding-diffs.ts:17
Computes in-run grounding diffs against a run's pinned CompiledWirePrefix.groundingSnapshots (SPEC.md §3.2.1).
Re-loads .sharedGrounding() sources with scopeHandle attached to ResolutionContext so mid-run edits to grounding files are surfaced in [ROLE_AND_SCOPE_CONTEXT] and [TOPOLOGY_SYNC] without mutating byte 0 of systemPromptText.
Parameters
| Parameter | Type | Description |
|---|---|---|
params | InRunGroundingDiffParams | Prefix group, pinned prefix, and active scope handle. |
Returns
Promise<readonly InRunGroundingDiffRecord[]>
Frozen array of grounding diff records for modified sources.