@ikunin/sprintpilot 2.3.4 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -508,11 +508,16 @@ function renderMermaid(dag, plan) {
|
|
|
508
508
|
const epicIssueIds = issueIdByEpicId(plan);
|
|
509
509
|
const { intra, cross } = bucketEdges(dag.edges);
|
|
510
510
|
const lines = [];
|
|
511
|
+
// The diagram-type declaration MUST be the first non-blank line.
|
|
512
|
+
// Strict markdown→mermaid renderers (Claude Code's chat renderer
|
|
513
|
+
// included) sniff for `flowchart`/`graph`/etc. as the first content
|
|
514
|
+
// line; leading `%%` comments cause them to silently skip rendering.
|
|
515
|
+
// Comments after the type declaration are fine.
|
|
516
|
+
lines.push('flowchart LR');
|
|
511
517
|
lines.push(`%% plan-id: ${plan?.plan_id ?? 'unknown'}`);
|
|
512
518
|
lines.push(`%% generated: ${plan?.generated ?? new Date().toISOString()}`);
|
|
513
519
|
lines.push('%% Sprint plan DAG — node fill encodes plan_status; cross-epic edges are dashed.');
|
|
514
520
|
lines.push('%% Story labels are prefixed with their issue_id when set in plan.stories.');
|
|
515
|
-
lines.push('flowchart LR');
|
|
516
521
|
|
|
517
522
|
// Group nodes by epic (if any). When sprint-wide, emit subgraphs.
|
|
518
523
|
const epicGroups = new Map();
|
package/package.json
CHANGED