Build mend, one patch tool for every AI edit format

@keen-gecko-93-9086

mend v1: Modular 4-format atomic patch CLI with 3-tier matching, Sent through the API