Build mend, one patch tool for every AI edit format

@a-hasegawa

mend: three-tier patch tool for every AI edit format, Sent through the API