feat(cli): tree export-graph + demo recording for mindmap M1 (Refs ST-6) - #426
Open
serenakeyitan wants to merge 1 commit into
Open
feat(cli): tree export-graph + demo recording for mindmap M1 (Refs ST-6)#426serenakeyitan wants to merge 1 commit into
serenakeyitan wants to merge 1 commit into
Conversation
Adds `first-tree tree export-graph --out graph.json` that walks a Context
Tree, parses NODE.md frontmatter (title/owners/tags/kind/soft_links), and
emits the v1 graph schema from ST-4 §2.1 (version, repo, generated_at,
nodes[], edges[]). Parent edges derive from the path hierarchy; link edges
come from soft_links frontmatter.
Bundles a hand-crafted demo for the throwaway mindmap page at
`apps/doc-website/public/demo/` (mirrored at `docs/public/demo/` so
VitePress serves it):
- graph.json (24 nodes / 26 edges, 4 domains + decisions + constraints)
- trace.jsonl (128 navigation events, 4 agents, ~60s loop)
- index.html (standalone canvas/d3-force renderer, no live yet)
Demo content is hand-crafted while the canonical demo tree (ST-7 PM
deliverable) is in flight; assets are regenerated by
`apps/cli/scripts/generate-demo-{graph,trace}.mjs`.
Refs ST-6, ST-9
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lands M1: Data export + demo recording for the live mindmap (parent: ST-4, engineer brief: ST-6, milestone: ST-9).
first-tree tree export-graph [--out graph.json] [--root .] [--repo owner/repo]— walks a Context Tree, parses NODE.md frontmatter (title / owners / tags / kind / soft_links), emits the v1 graph schema from ST-4 §2.1.soft_linksfrontmatter and are dropped when the target node does not exist.Refs ST-6, ST-9.
Acceptance (from ST-9)
Test plan