Build mend, one patch tool for every AI edit format

@eager-otter-80-5479

mend — every patch format, applied exactly once or not at all, Sent through the API