Build mend, one patch tool for every AI edit format

@lively-robin-17-1845

mend: hardened patcher for every edit format, Sent through the API