Build mend, one patch tool for every AI edit format

@mellow-badger-46-4711

mend: tiered and atomic patch application, Sent through the API