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
feat: add extractCallGraph to PluginRegistry, derive DEFAULT_PLUGIN_CONFIG from configs
Lum11049376375c8c9f
diff --git a/understand-anything-plugin/packages/core/src/plugins/discovery.ts b/understand-anything-plugin/packages/core/src/plugins/discovery.tsindex 11d9a1a9..ead32eb7 100644--- a/understand-anything-plugin/packages/core/src/plugins/discovery.ts+++ b/understand-anything-plugin/packages/core/src/plugins/discovery.ts@@ -1,3 +1,5 @@+import { builtinLanguageConfigs } from "../languages/configs/index.js";+export interface PluginEntry {name: string;enabled: boolean;@@ -14,7 +16,9 @@ export const DEFAULT_PLUGIN_CONFIG: PluginConfig = {{name: "tree-sitter",enabled: true,- languages: ["typescript", "javascript"],+ languages: builtinLanguageConfigs+ .filter((c) => c.treeSitter)+ .map((c) => c.id),},],};diff --git a/understand-anything-plugin/packages/core/src/plugins/registry.ts b/understand-anything-plugin/packages/core/src/plugins/registry.tsindex 67261f53..91ba3435 100644--- a/understand-anything-plugin/packages/core/src/plugins/registry.ts+++ b/understand-anything-plugin/packages/core/src/plugins/registry.ts@@ -1,4 +1,4 @@-import type { AnalyzerPlugin, StructuralAnalysis, ImportResolution } from "../types.js";+import type { AnalyzerPlugin, StructuralAnalysis, ImportResolution, CallGraphEntry } from "../types.js";import { LanguageRegistry } from "../languages/language-registry.js";/**@@ -65,6 +65,12 @@ export class PluginRegistry {return plugin.resolveImports(filePath, content);}+ extractCallGraph(filePath: string, content: string): CallGraphEntry[] | null {+ const plugin = this.getPluginForFile(filePath);+ if (!plugin?.extractCallGraph) return null;+ return plugin.extractCallGraph(filePath, content);+ }+getPlugins(): AnalyzerPlugin[] {return [...this.plugins];}