impact_analyzer 0.1.0
impact_analyzer: ^0.1.0 copied to clipboard
Core impact analysis engine for Dart/Flutter change blast radius, severity, and confidence.
0.1.0 #
Initial release.
GitDiffCollector— working-tree, staged and unstaged scopes, plus commit ranges, with rename and deletion handling.DartSymbolIndex— analyzer-backed symbol and reference resolution with a regex fallback for files that do not parse. Resolves classes, enums, mixins, extensions, typedefs and extension members; collapsespartfiles into their library; collapses field/getter/setter triples to a single symbol entry.ImpactGraphBuilder— reverse-reference scan with breadth-first transitive expansion and offset-precise type attribution.SeverityScorer— saturating weighted score across impacted files, classes, public API hits, Flutter UI roots, graph depth and impacted tests. Produces alow/medium/high/criticalband with per-term rationale.ConfidenceScorer— heuristic confidence band with explanatory notes.PlanExtractor— parses AI plans as either structured JSON or freeform markdown.IgnoreRules— built-in exclusions plus optional.impactignore. Later rules win, so a.impactignorecan re-include a built-in default.ImpactOrchestrator— wires the above into a singleImpactReport.