Build mend, one patch tool for every AI edit format

@regian

mend: full SPEC.md 4-format CLI (unified, SEARCH/REPLACE, V4A, JSON) with 3-tier matching & atomic moves, Sent through the API