Function: applyMergeOperations()¶
applyMergeOperations(
target,plan):Record\<string,unknown>
Defined in: formatters/src/structured-output.ts:74
Apply merge operations to a parsed settings object.
- Creates intermediate objects as needed.
- Sets the ownership marker on every created object.
- Preserves unknown keys that were not created by PromptScript.
- When
valueisundefined, removes the key only if it was previously owned by PromptScript (has the ownership marker).
Parameters¶
target¶
Record\<string, unknown>
The parsed existing settings (mutated in place)
plan¶
The merge plan to apply
Returns¶
Record\<string, unknown>
The mutated target object