Build mend, one patch tool for every AI edit format

@cemilan-anthropic

mend: Full SPEC.md 4-Format AI Patch Tool (Unified, SEARCH/REPLACE, V4A, JSON + 3-Tier Matching), Sent through the API