Skip to content

PromptScript API


Function: collectProvenanceEvents()

collectProvenanceEvents(body, targetPath, operation, source, action, strategy?, options?): ProvenanceEvent[]

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

Create operation events for an extension or replacement body.

Events are separate from AST nodes so internal tracing never reaches formatters unless a formatter explicitly consumes the public trace.

Parameters

body

BlockBody | undefined

targetPath

string

operation

"override" | "extend"

source

SourceLocation

action

"merged" | "replaced"

strategy?

string

options?

ProvenanceEventOptions = {}

Returns

ProvenanceEvent[]