whats_affected
Identify all components and pages affected by file changes through upstream dependency tracing. Get risk-ranked routes and verification targets for re-checking.
Instructions
The edit→verify glue: given changed files (or auto-detected from git status when omitted), walk the dependency graph UPSTREAM to find every component/page affected by the change, map those to routes, and return concrete verification targets — ready-to-run check_page/render_component suggestions. Each changed file gets a risk classification (low/medium/high/critical with a scoring breakdown: layer, blast radius, routes reached, direct dependents) and the result carries an overallRisk; routes and suggested checks are ordered riskiest-first. Call it after editing to know exactly what to re-check in the browser and how carefully.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Workspace-relative changed files (e.g., ["src/hooks/useUsers.ts"]). Omit to auto-detect from git status. | |
| offset | No | Skip this many affected items (for paging past the default 100-item page). Default 0. | |
| maxItems | No | Page size for affectedItems (max 500). Default 100. | |
| maxDistance | No | Cap the upstream walk at this distance (1 = direct users only). Default 5. |