Expand description
Apply parsed update chunks to file content.
This ports applyUpdateChunks and its diagnostics from
packages/opencode-plugin/src/patch-parser.ts.
Structs§
Functions§
- apply_
update_ chunks - Apply parsed update chunks to original file content, returning the patched text or an error string.
- find_
closest_ partial_ match - Find the closest partial match and report where the candidate first diverges for failure diagnostics.
- seek_
sequence - Return only the matched line index for diagnostics that do not need the full tiered match details.