Function: applyPatch()
applyPatch(
lines,patch):string[]
Defined in: aiui-lowering-pipeline/src/patch.ts:33
Apply a V4A-subset patch to a document given as lines. Returns the new lines, or throws with a reason (bad grammar, context not found) — callers treat a throw as "the model's patch didn't apply" and keep the original.
Parameters
lines
string[]
patch
string
Returns
string[]