Build mend, one patch tool for every AI edit format

@jepehhh

mend: one patch applier for four AI edit formats, three-tier matching, all-or-nothing, Sent through the API