@ikunin/sprintpilot 2.3.6 → 2.3.7
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.
|
@@ -136,18 +136,32 @@ silence communicates "not tracked" rather than spamming `[no issue]`.
|
|
|
136
136
|
|
|
137
137
|
**PNG sibling render.** As a side-effect of the mermaid render, the
|
|
138
138
|
script tries to produce a `<file>.png` next to the `.mmd` via the
|
|
139
|
-
official Mermaid CLI (`mmdc`).
|
|
139
|
+
official Mermaid CLI (`mmdc`). You **MUST** examine the envelope's
|
|
140
|
+
`png_*` fields and surface one of the three outcomes to the user —
|
|
141
|
+
silence is a bug, especially when mmdc is missing.
|
|
140
142
|
|
|
141
|
-
-
|
|
143
|
+
- **`png_file` set** → PNG produced. Report:
|
|
142
144
|
> Also wrote PNG: `<png_file>` (rendered via Mermaid CLI).
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
>
|
|
147
|
-
>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
145
|
+
|
|
146
|
+
- **`png_reason: "mmdc-missing"`** → Mermaid CLI is not installed.
|
|
147
|
+
You **MUST** tell the user how to install it, verbatim:
|
|
148
|
+
> PNG render skipped — Mermaid CLI (`mmdc`) is not installed.
|
|
149
|
+
> To get a `.png` alongside the `.mmd` next time, install it:
|
|
150
|
+
>
|
|
151
|
+
> ```
|
|
152
|
+
> npm install -g @mermaid-js/mermaid-cli
|
|
153
|
+
> ```
|
|
154
|
+
>
|
|
155
|
+
> Works on Windows, Linux, and macOS. Requires Node 18+.
|
|
156
|
+
> After installing, re-run `/sprintpilot-dependency-graph mermaid`.
|
|
157
|
+
|
|
158
|
+
Do not silently drop this. The `.mmd` file is still useful but the
|
|
159
|
+
install hint is the primary value of this code path.
|
|
160
|
+
|
|
161
|
+
- **`png_reason: "render-failed"`** → mmdc was found but errored.
|
|
162
|
+
Report the `png_message` verbatim and suggest re-running with
|
|
163
|
+
`mmdc -i <mmd-path> -o <png-path>` outside the skill to see the
|
|
164
|
+
full toolchain error.
|
|
151
165
|
|
|
152
166
|
### Graphviz
|
|
153
167
|
|
|
@@ -239,4 +253,6 @@ have different leading hyphen segments — leverage the JSON output).</action>
|
|
|
239
253
|
| Plan file corrupt | Surface the parse error from `sprint-plan.js read`; suggest re-running the planning skill. |
|
|
240
254
|
| Cycle detected (`resolve-dag.js` exits 1 with "cycle detected") | Report the cycling node list verbatim. Suggest reviewing `plan.dependencies.stories` for the named keys, or re-running `/sprintpilot-plan-sprint` to re-infer. |
|
|
241
255
|
| Graphviz binary missing | Note the fallback; tell the user how to install `dot`; do NOT silently retry with a different format. |
|
|
256
|
+
| Mermaid CLI (`mmdc`) missing (mermaid format, `png_reason: "mmdc-missing"`) | You **MUST** report the install command: `npm install -g @mermaid-js/mermaid-cli` (cross-platform, requires Node 18+). The `.mmd` file is still written, but never skip the install hint — that's the user-actionable signal. |
|
|
257
|
+
| Mermaid CLI present but errored (`png_reason: "render-failed"`) | Surface `png_message` verbatim; suggest re-running `mmdc -i <mmd> -o <png>` outside the skill to see the full toolchain error. |
|
|
242
258
|
| Output file write fails (permission, disk full) | Surface the error from the resolve-dag stderr; chat-render the JSON output as a fallback so the user still gets something usable. |
|
package/package.json
CHANGED