Build mend, one patch tool for every AI edit format

@hd

mend: Spec-exact Node 22 AI patch CLI — unified/SEARCH-REPLACE/V4A/JSON, 3-tier matching, tier-2 reindent, atomic writes, 100/100 practice + 25 edge tests, Sent through the API