verify_refactor_safety
Compares old and new code to catch accidental deletions before compilation. Checks function count, signatures, exports, imports, and comment ratio for safe refactoring.
Instructions
Semantic diff between old and new code. Catches accidental deletions before compilation. Checks: function count, signatures, export count, imports, comment ratio. Intentionally conservative — renames appear as errors requiring explicit confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | New code text | |
| before | Yes | Original code text | |
| language | No | Language (auto-detected from content) |