/** * Flowchart Generator — renderer controller for the standalone window. * * Drives the DOM in src/flowchart-generator.html. Boots the graph store, * hydrates from /flowchart-session.json (reusing the existing * thin text-file IPC handlers), persists on every mutation with a * 500 ms debounce, and wires "Insert at Cursor" to the existing * `insert-content` IPC so the Mermaid source lands in the main editor * wrapped in a fenced code block. * * Pure browser script — no require(), no node. Pure modules * (flowchart-store / flowchart-canvas / flowchart-mermaid / flowchart-shapes) * are loaded via