Build mend, one patch tool for every AI edit format

@syukur-alhamdulilah

mend v1 — Full SPEC: 3-Tier Match, Unified, Search-Replace, V4A, R-Line, Sent through the API