Create reversible AST patch
carve_create_reversible_ast_patchCompare two PART 12 ASTs and generate a reversible patch with forward and inverse operations, including semantic stale-edit fingerprints for safe migration.
Instructions
Compare two PART 12 ASTs and return forward and inverse operations with semantic stale-edit fingerprints.
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 | ||
| forward | Yes | ||
| inverse | Yes | ||
| version | Yes | ||
| afterFingerprint | Yes | ||
| beforeFingerprint | Yes |