feat(mermaid): summarize compile failures (#97) #109

Merged
barrettruth merged 1 commit from feat/mermaid-failure-summary into main 2026-04-26 02:53:54 +00:00
barrettruth commented 2026-04-26 02:53:38 +00:00

Problem

mermaid compile failures still fall back to generic notifications for real parse errors, and the old parser can greedily capture source excerpts or stack traces instead of the actual Expecting ... got ... payload from current mmdc output.

Solution

Add a mermaid failure_summary that only summarizes trusted parse-error shapes, tighten the diagnostic parser to use the same anchored matches, and update the fixtures and specs to cover noisy parse output and conservative fallback cases. Closes #97.

## Problem `mermaid` compile failures still fall back to generic notifications for real parse errors, and the old parser can greedily capture source excerpts or stack traces instead of the actual `Expecting ... got ...` payload from current `mmdc` output. ## Solution Add a `mermaid` `failure_summary` that only summarizes trusted parse-error shapes, tighten the diagnostic parser to use the same anchored matches, and update the fixtures and specs to cover noisy parse output and conservative fallback cases. Closes #97.
Sign in to join this conversation.
No description provided.