Add graph markdown and canvas outputs

This commit is contained in:
2026-05-06 20:00:50 +08:00
parent 1478972e53
commit f7f5e2c67c
22 changed files with 313 additions and 15 deletions

View File

@@ -94,9 +94,20 @@ gsp pack <id> [--root .] [--depth 3] [--budget 12000] [--out context-pack.json]
Generate a relation graph.
```bash
gsp graph [id] [--root .] [--depth 3] [--format json|mermaid] [--out graph.json]
gsp graph [id] [--root .] [--depth 3] [--format json|mermaid|md|canvas] [--out graph.json]
```
Formats:
```text
json Machine-readable graph.
mermaid Mermaid graph body.
md Markdown file with Mermaid block.
canvas Obsidian JSON Canvas file.
```
Graph display uses `title` when present and falls back to `id`.
## stage-check
Check minimum resolution for a stage.