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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ greplica proposal apply <proposal.json>
- `greplica graph context "<query>"` - returns Markdown for agent use. Add `--debug` for the full retrieval payload with ranking signals.
- `greplica graph read` - prints the current graph view: all components, flows, claims, sources, and edges in scope.
- `greplica graph view` to visualise the current memory in a local HTML, opens in your default browser. Use `--out` to choose where the file is written; by default it goes to a temp path.
- `greplica graph export <dir>` - writes an offline graph export. Open `<dir>/index.html` for a self-contained visualization with search, node-type filters, node details, and immediate relationships. The export also includes Markdown index files for browsing components, flows, claims, and sources.
- `greplica transcript bundle` - converts one or more Codex, Claude Code, or GitHub Copilot CLI JSONL transcripts into a sanitized Markdown bundle for `greplica-fast-session-bootstrap`.
- `greplica doctor` - verifies installation and diagnoses configuration failures. Not a required preflight before every command.
- `greplica install` prepares repo state, local storage, and agent integration; normal repo commands require install first.
Expand Down
1 change: 1 addition & 0 deletions apps/cli/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ function runGraphExportCommand(args: string[]): void {
const files = buildGraphFolderExport(service.readGraph(repo));
writeGraphFolderExport(outputDir, files);
console.log(`Exported current graph view to ${outputDir}`);
console.log(`HTML: ${join(outputDir, "index.html")}`);
console.log(`Files: ${files.length}`);
}

Expand Down
5 changes: 5 additions & 0 deletions libs/knowledge-graph/folder-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { Claim, ClaimKind } from "./claim.js";
import type { Edge } from "./edge.js";
import type { GraphReadResult } from "./service.js";
import type { Component, Flow, Source } from "./schema.js";
import { buildGraphHtmlExport } from "./html-export.js";

export interface ExportedGraphFile {
path: string;
Expand Down Expand Up @@ -35,6 +36,10 @@ export function buildGraphFolderExport(graph: GraphReadResult): ExportedGraphFil
path: "index.md",
content: renderRootIndex(graph, components, flows),
},
{
path: "index.html",
content: buildGraphHtmlExport(graph),
},
{
path: "sources.md",
content: renderSources(graph.sources, graph.claims, evidenceByClaimId),
Expand Down
Loading