Skip to content

PromptScript API


Function: createOutputPlan()

createOutputPlan(candidates): OutputPlan

Defined in: core/src/output-plan.ts:314

Build a deterministic output plan from formatter artifacts.

Primary artifacts replace conflicting earlier artifacts, matching compiler target precedence. Resources and injected artifacts preserve the first owner so a nested resource cannot clobber an already selected file.

Parameters

candidates

readonly OutputPlanCandidate[]

Returns

OutputPlan