mirror of
https://github.com/cathrynlavery/diagram-design.git
synced 2026-09-14 16:31:34 +08:00
859f06493f
Two defects from automated review (Greptile) on PR #169, both verified independently before fixing: - commands/export-diagram.md and prompts/export-diagram.md: --registry used alone still fell through to the unconditional "produce both .svg and .png" default, pulling in a Playwright dependency a metadata-only call should never have. --registry alone is now explicitly registry-only; combine with --svg-only/--png-only to also get an image. - scripts/verify-block-registry.py: the tag matcher used [^>]* to find a tag's end, so a literal '>' inside a quoted attribute value (valid HTML, e.g. data-block-constraint="output > input") truncated the match. If that attribute sat before data-block-id in the tag, the whole block vanished from the scan silently -- a file with a real block passed CI as if it had none. The matcher now treats a quoted span (either quote style) as one unit, and the attribute matcher accepts single quotes too, which it previously didn't. Four new regression cases in scripts/test-verify-block-registry.py cover both orderings of the truncation hazard, single quotes, and mixed quoting in one tag. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>