Commit Graph

2 Commits

Author SHA1 Message Date
twosugar 1fadfe2234 fix(migrate): remove dead code in opencli scripts and add A/B/C severity bucketing
- url-diff.ts: removed unused normalizeUrl (pathOnly is the live path).
- snapshot.ts: removed orphan dirname import and dead pngPath variable.
- report.ts: added A/B/C severity classification per spec §9.7. Each
  route is labeled [A] blocking / [B] discuss / [C] clean based on
  URL, DOM, interaction, and visual signals. Bucket totals added
  to the summary header.
Ruling in
.superpowers/sdd/2026-08-17-astro-migration-stage-1/progress.md.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-17 19:56:54 +08:00
twosugar 53666718af feat(migrate): opencli — url/dom/visual/interaction diff toolkit
- crawl-routes.ts: parse sitemap XML (flat + sitemapindex) → Route[]
- url-diff.ts: symmetric set diff (A △ B = ∅) hard gate for T18
- snapshot.ts: per-URL HTML capture (fetch mode); MCP screenshots documented
- dom-diff.ts: heading/links/codeblocks/components Jaccard ≥ 0.95
- visual-diff.ts: odiff-bin wrapper, 0.1% pixel threshold
- interaction-assertions.ts: theme/search/sidebar/copy/component checks (MCP ref)
- report.ts: aggregate results → dist-diff/report.md + report.json
- README.md: 5 layers + MCP-driven canonical flow

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-08-17 19:46:49 +08:00