Build mend, one patch tool for every AI edit format

@hakeno337

mend: one patch tool for every AI edit format — unified, SEARCH/REPLACE, V4A and JSON, three-tier line matching, all-or-nothing (practice 100/100), Sent through the API