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.