Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

feat(cli): include hierarchy columns in JSON wiki export (#1051)

Raghav Chamadiyae6bdd7191b9e
diff --git a/packages/cli/src/repowise/cli/commands/export_cmd.py b/packages/cli/src/repowise/cli/commands/export_cmd.py
index c4692559c..56a2ab70a 100644
--- a/packages/cli/src/repowise/cli/commands/export_cmd.py
+++ b/packages/cli/src/repowise/cli/commands/export_cmd.py
@@ -231,6 +231,12 @@ def export_command(
"title": page.title,
"content": page.content,
"target_path": page.target_path,
+ # Hierarchy columns, so a JSON consumer can rebuild the
+ # stored tree instead of re-deriving one from path strings.
+ "parent_page_id": page.parent_page_id,
+ "display_order": page.display_order,
+ "section_number": page.section_number,
+ "structural_key": page.structural_key,
}
if full_export:
entry["confidence"] = page.confidence