analyze_api_surface_mutation
Compare a file against its HEAD version to classify changes as breaking API changes or internal refactors, answering whether a PR is a breaking change or safe refactor.
Instructions
Compares a file against its HEAD version and classifies the change as breaking_api_change (exported function signature changed, parameter removed/added, interface field removed) or internal_refactor (only implementation body changed). Use to answer: is this PR a breaking change or a safe refactor?
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the changed file (absolute or relative to project_root) | |
| project_root | Yes | Absolute path to the TypeScript project root (must contain tsconfig.json) |