Skip to content

PromptScript API


Function: removeStaleOwned()

removeStaleOwned(target, plan): void

Defined in: formatters/src/structured-output.ts:128

Remove previously owned entries that have disappeared from generated output.

Walks the target object and removes any key that has the ownership marker but is not present in the current plan's operations.

Parameters

target

Record\<string, unknown>

The parsed settings object (mutated in place)

plan

StructuredMergePlan

The current merge plan

Returns

void