Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
TypeScript antigravity-skillsbusiness-knowledgeclaude-codeclaude-skillscodebase-analysiscodexcodex-skillsdeveloper-tools-ai-agentgemini-cli-skillskarpathy-llm-wikiknowledge-baseknowledge-graphmemoryopencode-skillspi-agentunderstandcodevibe-coding
fix(core): return validated data from loadGraph and fix edge type count comment
Lum1104b41cf15ce943
diff --git a/packages/core/src/persistence/index.ts b/packages/core/src/persistence/index.tsindex f0262dad..36ba5cf0 100644--- a/packages/core/src/persistence/index.ts+++ b/packages/core/src/persistence/index.ts@@ -36,6 +36,7 @@ export function loadGraph(`Invalid knowledge graph: ${result.errors!.join("; ")}`,);}+ return result.data as KnowledgeGraph;}return data as KnowledgeGraph;diff --git a/packages/core/src/types.ts b/packages/core/src/types.tsindex d9884e33..f5fef33d 100644--- a/packages/core/src/types.ts+++ b/packages/core/src/types.ts@@ -1,4 +1,4 @@-// Edge types (17 total in 5 categories: Structural, Behavioral, Data flow, Dependencies, Semantic)+// Edge types (18 total in 5 categories: Structural, Behavioral, Data flow, Dependencies, Semantic)export type EdgeType =| "imports" | "exports" | "contains" | "inherits" | "implements" // Structural| "calls" | "subscribes" | "publishes" | "middleware" // Behavioral