Skip to content

collectProvenance()

PromptScript API


collectProvenance(input, options?): ProvenanceTrace

Defined in: core/src/provenance.ts:622

Collect source and composition provenance from a legacy or canonical program.

The collector is intentionally separate from AST projections. It can retain exact canonical entry locations while callers continue consuming the legacy mutable AST.

Parameters

input

ProgramInput

options?

entry?

string

events?

readonly ProvenanceEvent[]

inherited?

readonly ProvenanceEntry[]

Returns

ProvenanceTrace