Edit Mermaid diagrams as Excalidraw whiteboards
mainWhen Mermaid diagrams (flowchart, sequence, class, ER, and state diagrams) are rendered in .mermaid containers, they become editable Excalidraw whiteboards in the browser.
Workflow for Agents:
- User Feedback: When a user queues feedback, the
pollcommand returns awhiteboardprompt containing a bounded edit summary, ascenePath(.excalidraw JSON), and apreviewPath(PNG). - Applying Edits: To apply changes, update the Mermaid source in the artifact. Do not attempt to write the Excalidraw scene file back to the filesystem.
- Other types: Mermaid diagrams that are not one of the supported types embed as images that can be drawn on, but are not converted to editable shapes.