Create structured AST patch
carve_create_ast_patchCompare two Carve ASTs to generate a position-independent patch of add, replace, and remove operations.
Instructions
Compare two PART 12 Carve ASTs and return position-independent add, replace, and remove operations.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | PART 12 AST after the edit (maximum 1000000 JSON bytes) | |
| before | Yes | PART 12 AST before the edit (maximum 1000000 JSON bytes) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | ||
| operations | Yes | ||
| changeCount | Yes | ||
| operationCount | Yes |