jade.apply
Apply multiple code edits as one atomic operation: all succeed or none. Validate anchors upfront, format files, and run a single end-to-end validation to prevent partial changes.
Instructions
Apply several edits as one atomic unit: all land or none do. Ops: replace_text, replace_range, replace_symbol, delete_symbol, insert. Anchors are validated before anything is written, touched files are formatted, and one validation runs at the end instead of one per edit. Prefer this over several single edits when changing more than one site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| check | No | Run one validation after all edits: build, typecheck, tests (the edited files' tests), or impact (those plus tests of callers of touched declarations). | |
| edits | Yes | Edits to apply in order. | |
| format | No | Format touched files afterwards (default true). | |
| expectedRevision | No | Revision expected before editing. |