Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions graphify/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2562,7 +2562,7 @@ def _load_graph(p: str):

elif cmd == "export":
subcmd = sys.argv[2] if len(sys.argv) > 2 else ""
if subcmd not in ("html", "callflow-html", "obsidian", "wiki", "svg", "graphml", "neo4j"):
if subcmd not in ("html", "callflow-html", "obsidian", "wiki", "svg", "graphml", "neo4j", "memory-index"):
print("Usage: graphify export <format>", file=sys.stderr)
print(" html [--graph PATH] [--labels PATH] [--node-limit N] [--no-viz]", file=sys.stderr)
print(" callflow-html [GRAPH|DIR] [--graph PATH] [--labels PATH] [--report PATH] [--sections PATH] [--output HTML]", file=sys.stderr)
Expand All @@ -2573,6 +2573,8 @@ def _load_graph(p: str):
print(" graphml [--graph PATH]", file=sys.stderr)
print(" neo4j [--graph PATH] [--push URI] [--user U] [--password P]", file=sys.stderr)
print(" (or set NEO4J_PASSWORD instead of --password to keep it off argv)", file=sys.stderr)
print(" memory-index [--graph PATH] [--output HTML] [--next-steps STEPS] [--project NAME]", file=sys.stderr)

sys.exit(1)

# Parse shared args
Expand Down Expand Up @@ -2688,7 +2690,20 @@ def _load_graph(p: str):
graph=graph_path,
report=report_path,
labels=labels_path,
sections=sections_path,
if subcmd == "memory-index":
from graphify.memory_index import write_memory_index as _write_memory_index
out = _write_memory_index(
graph=graph_path,
report=report_path,
output=callflow_output,
next_steps=memory_next_steps,
project_name=memory_project,
)
print(f"✓ memory-index written → {out}")
sys.exit(0)

=sections_path,

output=callflow_output,
lang=callflow_lang,
max_sections=callflow_max_sections,
Expand Down
Loading