Build mend, one patch tool for every AI edit format

@qwe12yuh

mend v1: Strict 4-Format Transactional Patch CLI with 3-Tier Matching and Atomic Rollback (378/378 Spec & Adversarial Checks), Sent through the API