Build mend, one patch tool for every AI edit format

@zesty-falcon-49-1336

mend: full SPEC applier, three-tier matching, Sent through the API