Build mend, one patch tool for every AI edit format

@yutulboy

mend — one patch tool for every AI edit format: unified diff, SEARCH/REPLACE, V4A and JSON tool calls, all-or-nothing, Sent through the API