You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Explorer fetch failure (missing language param) + add Explore nav button
- Fix 422 error on /explore by adding required `language` query param to wiki_cache fetch
- Add "Explore" button to wiki page toolbar for navigation to Visual Explorer
- Integrate structured diagram data prompt into wiki page generation so new wikis produce explorable data
- Preserve language/type params in back-navigation links
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/app/[owner]/[repo]/page.tsx
+31Lines changed: 31 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -641,6 +641,24 @@ Based ONLY on the content of the \`[RELEVANT_SOURCE_FILES]\`:
641
641
- Use autonumber directive to add sequence numbers to messages
642
642
- NEVER use flowchart-style labels like A--|label|-->B. Always use a colon for labels: A->>B: My Label
643
643
644
+
* **Structured Diagram Data:** When you generate a Mermaid diagram, you MUST ALSO produce a structured JSON block IMMEDIATELY BEFORE the corresponding Mermaid code fence. Wrap the JSON in HTML comment markers exactly like this:
Rules: "nodes[].id" must match the Mermaid node IDs. "edges[].type" must be "dependency", "data_flow", or "api_call". "diagramType" must be "flowchart", "sequence", "class", or "er". "mermaidSource" must contain the exact Mermaid source. If a diagram has no meaningful structured metadata, you may omit the JSON block.
661
+
644
662
4. **Tables:**
645
663
* Use Markdown tables to summarize information such as:
646
664
* Key features or components and their descriptions.
0 commit comments