pub fn parse_patches(response: &str) -> Result<(Vec<PatchBlock>, String)>Expand description
Parse <!-- patch:name -->...<!-- /patch:name --> blocks from an agent response.
Content outside patch blocks is collected as “unmatched” and returned separately. Markers inside fenced code blocks (``` or ~~~) and inline code spans are ignored.
Also accepts the canonical <!-- replace:pending -->...<!-- /replace:pending -->
form as a synonym for <!-- patch:pending -->...<!-- /patch:pending -->. The
replace: prefix signals full-replacement semantics and is the canonical name
for pending mutations going forward. patch:pending is still parsed for one
release with a deprecation warning emitted to stderr. See #25ag.