kirograph 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1171 -0
- package/dist/architecture/index.d.ts +11 -0
- package/dist/architecture/index.d.ts.map +1 -0
- package/dist/architecture/index.js +207 -0
- package/dist/architecture/index.js.map +7 -0
- package/dist/architecture/layers/csharp.d.ts +6 -0
- package/dist/architecture/layers/csharp.d.ts.map +1 -0
- package/dist/architecture/layers/csharp.js +100 -0
- package/dist/architecture/layers/csharp.js.map +7 -0
- package/dist/architecture/layers/elixir.js +116 -0
- package/dist/architecture/layers/elixir.js.map +7 -0
- package/dist/architecture/layers/go.d.ts +7 -0
- package/dist/architecture/layers/go.d.ts.map +1 -0
- package/dist/architecture/layers/go.js +117 -0
- package/dist/architecture/layers/go.js.map +7 -0
- package/dist/architecture/layers/index.d.ts +30 -0
- package/dist/architecture/layers/index.d.ts.map +1 -0
- package/dist/architecture/layers/index.js +100 -0
- package/dist/architecture/layers/index.js.map +7 -0
- package/dist/architecture/layers/java.d.ts +7 -0
- package/dist/architecture/layers/java.d.ts.map +1 -0
- package/dist/architecture/layers/java.js +119 -0
- package/dist/architecture/layers/java.js.map +7 -0
- package/dist/architecture/layers/python.d.ts +7 -0
- package/dist/architecture/layers/python.d.ts.map +1 -0
- package/dist/architecture/layers/python.js +111 -0
- package/dist/architecture/layers/python.js.map +7 -0
- package/dist/architecture/layers/ruby.d.ts +6 -0
- package/dist/architecture/layers/ruby.d.ts.map +1 -0
- package/dist/architecture/layers/ruby.js +95 -0
- package/dist/architecture/layers/ruby.js.map +7 -0
- package/dist/architecture/layers/rust.d.ts +6 -0
- package/dist/architecture/layers/rust.d.ts.map +1 -0
- package/dist/architecture/layers/rust.js +98 -0
- package/dist/architecture/layers/rust.js.map +7 -0
- package/dist/architecture/layers/types.d.ts +2 -0
- package/dist/architecture/layers/types.d.ts.map +1 -0
- package/dist/architecture/layers/types.js +17 -0
- package/dist/architecture/layers/types.js.map +7 -0
- package/dist/architecture/layers/typescript.d.ts +9 -0
- package/dist/architecture/layers/typescript.d.ts.map +1 -0
- package/dist/architecture/layers/typescript.js +143 -0
- package/dist/architecture/layers/typescript.js.map +7 -0
- package/dist/architecture/manifest/cargo.d.ts +3 -0
- package/dist/architecture/manifest/cargo.d.ts.map +1 -0
- package/dist/architecture/manifest/cargo.js +94 -0
- package/dist/architecture/manifest/cargo.js.map +7 -0
- package/dist/architecture/manifest/csproj.d.ts +3 -0
- package/dist/architecture/manifest/csproj.d.ts.map +1 -0
- package/dist/architecture/manifest/csproj.js +75 -0
- package/dist/architecture/manifest/csproj.js.map +7 -0
- package/dist/architecture/manifest/go.d.ts +3 -0
- package/dist/architecture/manifest/go.d.ts.map +1 -0
- package/dist/architecture/manifest/go.js +85 -0
- package/dist/architecture/manifest/go.js.map +7 -0
- package/dist/architecture/manifest/gradle.d.ts +3 -0
- package/dist/architecture/manifest/gradle.d.ts.map +1 -0
- package/dist/architecture/manifest/gradle.js +80 -0
- package/dist/architecture/manifest/gradle.js.map +7 -0
- package/dist/architecture/manifest/index.d.ts +12 -0
- package/dist/architecture/manifest/index.d.ts.map +1 -0
- package/dist/architecture/manifest/index.js +130 -0
- package/dist/architecture/manifest/index.js.map +7 -0
- package/dist/architecture/manifest/maven.d.ts +3 -0
- package/dist/architecture/manifest/maven.d.ts.map +1 -0
- package/dist/architecture/manifest/maven.js +76 -0
- package/dist/architecture/manifest/maven.js.map +7 -0
- package/dist/architecture/manifest/npm.d.ts +3 -0
- package/dist/architecture/manifest/npm.d.ts.map +1 -0
- package/dist/architecture/manifest/npm.js +103 -0
- package/dist/architecture/manifest/npm.js.map +7 -0
- package/dist/architecture/manifest/python.d.ts +3 -0
- package/dist/architecture/manifest/python.d.ts.map +1 -0
- package/dist/architecture/manifest/python.js +105 -0
- package/dist/architecture/manifest/python.js.map +7 -0
- package/dist/architecture/manifest/types.d.ts +2 -0
- package/dist/architecture/manifest/types.d.ts.map +1 -0
- package/dist/architecture/manifest/types.js +17 -0
- package/dist/architecture/manifest/types.js.map +7 -0
- package/dist/architecture/types.d.ts +91 -0
- package/dist/architecture/types.d.ts.map +1 -0
- package/dist/architecture/types.js +17 -0
- package/dist/architecture/types.js.map +7 -0
- package/dist/assets/logo.png +0 -0
- package/dist/banner.d.ts +6 -0
- package/dist/banner.d.ts.map +1 -0
- package/dist/banner.js +67 -0
- package/dist/banner.js.map +1 -0
- package/dist/bin/banner.d.ts +6 -0
- package/dist/bin/banner.d.ts.map +1 -0
- package/dist/bin/banner.js +88 -0
- package/dist/bin/banner.js.map +7 -0
- package/dist/bin/commands/affected.d.ts +3 -0
- package/dist/bin/commands/affected.d.ts.map +1 -0
- package/dist/bin/commands/affected.js +78 -0
- package/dist/bin/commands/affected.js.map +7 -0
- package/dist/bin/commands/architecture.d.ts +3 -0
- package/dist/bin/commands/architecture.d.ts.map +1 -0
- package/dist/bin/commands/architecture.js +125 -0
- package/dist/bin/commands/architecture.js.map +7 -0
- package/dist/bin/commands/caveman.js +136 -0
- package/dist/bin/commands/caveman.js.map +7 -0
- package/dist/bin/commands/context.d.ts +3 -0
- package/dist/bin/commands/context.d.ts.map +1 -0
- package/dist/bin/commands/context.js +81 -0
- package/dist/bin/commands/context.js.map +7 -0
- package/dist/bin/commands/coupling.d.ts +3 -0
- package/dist/bin/commands/coupling.d.ts.map +1 -0
- package/dist/bin/commands/coupling.js +164 -0
- package/dist/bin/commands/coupling.js.map +7 -0
- package/dist/bin/commands/dashboard.d.ts +3 -0
- package/dist/bin/commands/dashboard.d.ts.map +1 -0
- package/dist/bin/commands/dashboard.js +209 -0
- package/dist/bin/commands/dashboard.js.map +7 -0
- package/dist/bin/commands/dead-code.js +77 -0
- package/dist/bin/commands/dead-code.js.map +7 -0
- package/dist/bin/commands/export.js +2620 -0
- package/dist/bin/commands/export.js.map +7 -0
- package/dist/bin/commands/files.d.ts +3 -0
- package/dist/bin/commands/files.d.ts.map +1 -0
- package/dist/bin/commands/files.js +104 -0
- package/dist/bin/commands/files.js.map +7 -0
- package/dist/bin/commands/help.d.ts +4 -0
- package/dist/bin/commands/help.d.ts.map +1 -0
- package/dist/bin/commands/help.js +212 -0
- package/dist/bin/commands/help.js.map +7 -0
- package/dist/bin/commands/hotspots.js +77 -0
- package/dist/bin/commands/hotspots.js.map +7 -0
- package/dist/bin/commands/index.d.ts +3 -0
- package/dist/bin/commands/index.d.ts.map +1 -0
- package/dist/bin/commands/index.js +58 -0
- package/dist/bin/commands/index.js.map +7 -0
- package/dist/bin/commands/init.d.ts +3 -0
- package/dist/bin/commands/init.d.ts.map +1 -0
- package/dist/bin/commands/init.js +68 -0
- package/dist/bin/commands/init.js.map +7 -0
- package/dist/bin/commands/install.d.ts +3 -0
- package/dist/bin/commands/install.d.ts.map +1 -0
- package/dist/bin/commands/install.js +34 -0
- package/dist/bin/commands/install.js.map +7 -0
- package/dist/bin/commands/mark-dirty.d.ts +3 -0
- package/dist/bin/commands/mark-dirty.d.ts.map +1 -0
- package/dist/bin/commands/mark-dirty.js +51 -0
- package/dist/bin/commands/mark-dirty.js.map +7 -0
- package/dist/bin/commands/package.d.ts +3 -0
- package/dist/bin/commands/package.d.ts.map +1 -0
- package/dist/bin/commands/package.js +139 -0
- package/dist/bin/commands/package.js.map +7 -0
- package/dist/bin/commands/path.js +93 -0
- package/dist/bin/commands/path.js.map +7 -0
- package/dist/bin/commands/qdrant.d.ts +3 -0
- package/dist/bin/commands/qdrant.d.ts.map +1 -0
- package/dist/bin/commands/qdrant.js +159 -0
- package/dist/bin/commands/qdrant.js.map +1 -0
- package/dist/bin/commands/query.d.ts +3 -0
- package/dist/bin/commands/query.d.ts.map +1 -0
- package/dist/bin/commands/query.js +47 -0
- package/dist/bin/commands/query.js.map +7 -0
- package/dist/bin/commands/serve.d.ts +3 -0
- package/dist/bin/commands/serve.d.ts.map +1 -0
- package/dist/bin/commands/serve.js +59 -0
- package/dist/bin/commands/serve.js.map +7 -0
- package/dist/bin/commands/snapshot.js +122 -0
- package/dist/bin/commands/snapshot.js.map +7 -0
- package/dist/bin/commands/status.d.ts +3 -0
- package/dist/bin/commands/status.d.ts.map +1 -0
- package/dist/bin/commands/status.js +107 -0
- package/dist/bin/commands/status.js.map +7 -0
- package/dist/bin/commands/stop.d.ts +3 -0
- package/dist/bin/commands/stop.d.ts.map +1 -0
- package/dist/bin/commands/stop.js +81 -0
- package/dist/bin/commands/stop.js.map +1 -0
- package/dist/bin/commands/surprising.js +79 -0
- package/dist/bin/commands/surprising.js.map +7 -0
- package/dist/bin/commands/sync-if-dirty.d.ts +3 -0
- package/dist/bin/commands/sync-if-dirty.d.ts.map +1 -0
- package/dist/bin/commands/sync-if-dirty.js +67 -0
- package/dist/bin/commands/sync-if-dirty.js.map +7 -0
- package/dist/bin/commands/sync.d.ts +3 -0
- package/dist/bin/commands/sync.d.ts.map +1 -0
- package/dist/bin/commands/sync.js +81 -0
- package/dist/bin/commands/sync.js.map +7 -0
- package/dist/bin/commands/typesense.d.ts +3 -0
- package/dist/bin/commands/typesense.d.ts.map +1 -0
- package/dist/bin/commands/typesense.js +126 -0
- package/dist/bin/commands/typesense.js.map +1 -0
- package/dist/bin/commands/uninit.d.ts +4 -0
- package/dist/bin/commands/uninit.d.ts.map +1 -0
- package/dist/bin/commands/uninit.js +123 -0
- package/dist/bin/commands/uninit.js.map +7 -0
- package/dist/bin/commands/unlock.d.ts +3 -0
- package/dist/bin/commands/unlock.d.ts.map +1 -0
- package/dist/bin/commands/unlock.js +53 -0
- package/dist/bin/commands/unlock.js.map +7 -0
- package/dist/bin/commands/utils.d.ts +12 -0
- package/dist/bin/commands/utils.d.ts.map +1 -0
- package/dist/bin/commands/utils.js +56 -0
- package/dist/bin/commands/utils.js.map +7 -0
- package/dist/bin/installer/archive.js +230 -0
- package/dist/bin/installer/archive.js.map +7 -0
- package/dist/bin/installer/caveman.js +57 -0
- package/dist/bin/installer/caveman.js.map +7 -0
- package/dist/bin/installer/cli-agent.d.ts +15 -0
- package/dist/bin/installer/cli-agent.d.ts.map +1 -0
- package/dist/bin/installer/cli-agent.js +89 -0
- package/dist/bin/installer/cli-agent.js.map +7 -0
- package/dist/bin/installer/config-prompt.d.ts +13 -0
- package/dist/bin/installer/config-prompt.d.ts.map +1 -0
- package/dist/bin/installer/config-prompt.js +158 -0
- package/dist/bin/installer/config-prompt.js.map +7 -0
- package/dist/bin/installer/dashboard.d.ts +3 -0
- package/dist/bin/installer/dashboard.d.ts.map +1 -0
- package/dist/bin/installer/dashboard.js +149 -0
- package/dist/bin/installer/dashboard.js.map +7 -0
- package/dist/bin/installer/hooks.d.ts +5 -0
- package/dist/bin/installer/hooks.d.ts.map +1 -0
- package/dist/bin/installer/hooks.js +155 -0
- package/dist/bin/installer/hooks.js.map +7 -0
- package/dist/bin/installer/index.d.ts +11 -0
- package/dist/bin/installer/index.d.ts.map +1 -0
- package/dist/bin/installer/index.js +228 -0
- package/dist/bin/installer/index.js.map +7 -0
- package/dist/bin/installer/mcp.d.ts +5 -0
- package/dist/bin/installer/mcp.d.ts.map +1 -0
- package/dist/bin/installer/mcp.js +80 -0
- package/dist/bin/installer/mcp.js.map +7 -0
- package/dist/bin/installer/prompts.d.ts +28 -0
- package/dist/bin/installer/prompts.d.ts.map +1 -0
- package/dist/bin/installer/prompts.js +134 -0
- package/dist/bin/installer/prompts.js.map +7 -0
- package/dist/bin/installer/qdrant-dashboard.d.ts +4 -0
- package/dist/bin/installer/qdrant-dashboard.d.ts.map +1 -0
- package/dist/bin/installer/qdrant-dashboard.js +115 -0
- package/dist/bin/installer/qdrant-dashboard.js.map +7 -0
- package/dist/bin/installer/steering.d.ts +5 -0
- package/dist/bin/installer/steering.d.ts.map +1 -0
- package/dist/bin/installer/steering.js +283 -0
- package/dist/bin/installer/steering.js.map +7 -0
- package/dist/bin/kirograph.d.ts +6 -0
- package/dist/bin/kirograph.d.ts.map +1 -0
- package/dist/bin/kirograph.js +95 -0
- package/dist/bin/kirograph.js.map +7 -0
- package/dist/bin/progress.d.ts +14 -0
- package/dist/bin/progress.d.ts.map +1 -0
- package/dist/bin/progress.js +201 -0
- package/dist/bin/progress.js.map +7 -0
- package/dist/bin/ui.d.ts +11 -0
- package/dist/bin/ui.d.ts.map +1 -0
- package/dist/bin/ui.js +71 -0
- package/dist/bin/ui.js.map +7 -0
- package/dist/config.d.ts +48 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +273 -0
- package/dist/config.js.map +7 -0
- package/dist/context/index.d.ts +61 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +224 -0
- package/dist/context/index.js.map +7 -0
- package/dist/core/file-tree.d.ts +15 -0
- package/dist/core/file-tree.d.ts.map +1 -0
- package/dist/core/file-tree.js +69 -0
- package/dist/core/file-tree.js.map +7 -0
- package/dist/core/lock-manager.d.ts +20 -0
- package/dist/core/lock-manager.d.ts.map +1 -0
- package/dist/core/lock-manager.js +120 -0
- package/dist/core/lock-manager.js.map +7 -0
- package/dist/core/pipeline.d.ts +37 -0
- package/dist/core/pipeline.d.ts.map +1 -0
- package/dist/core/pipeline.js +375 -0
- package/dist/core/pipeline.js.map +7 -0
- package/dist/core/snapshot.js +141 -0
- package/dist/core/snapshot.js.map +7 -0
- package/dist/db/database.d.ts +133 -0
- package/dist/db/database.d.ts.map +1 -0
- package/dist/db/database.js +929 -0
- package/dist/db/database.js.map +7 -0
- package/dist/db/schema.sql +174 -0
- package/dist/errors.d.ts +49 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +160 -0
- package/dist/errors.js.map +7 -0
- package/dist/extraction/extractor.d.ts +29 -0
- package/dist/extraction/extractor.d.ts.map +1 -0
- package/dist/extraction/extractor.js +764 -0
- package/dist/extraction/extractor.js.map +7 -0
- package/dist/extraction/grammars.d.ts +48 -0
- package/dist/extraction/grammars.d.ts.map +1 -0
- package/dist/extraction/grammars.js +166 -0
- package/dist/extraction/grammars.js.map +7 -0
- package/dist/extraction/languages.d.ts +9 -0
- package/dist/extraction/languages.d.ts.map +1 -0
- package/dist/extraction/languages.js +103 -0
- package/dist/extraction/languages.js.map +7 -0
- package/dist/extraction/wasm/tree-sitter-pascal.wasm +0 -0
- package/dist/frameworks/csharp.d.ts +8 -0
- package/dist/frameworks/csharp.d.ts.map +1 -0
- package/dist/frameworks/csharp.js +93 -0
- package/dist/frameworks/csharp.js.map +7 -0
- package/dist/frameworks/elixir.js +142 -0
- package/dist/frameworks/elixir.js.map +7 -0
- package/dist/frameworks/express.d.ts +8 -0
- package/dist/frameworks/express.d.ts.map +1 -0
- package/dist/frameworks/express.js +143 -0
- package/dist/frameworks/express.js.map +7 -0
- package/dist/frameworks/go.d.ts +8 -0
- package/dist/frameworks/go.d.ts.map +1 -0
- package/dist/frameworks/go.js +85 -0
- package/dist/frameworks/go.js.map +7 -0
- package/dist/frameworks/index.d.ts +30 -0
- package/dist/frameworks/index.d.ts.map +1 -0
- package/dist/frameworks/index.js +243 -0
- package/dist/frameworks/index.js.map +7 -0
- package/dist/frameworks/java.d.ts +8 -0
- package/dist/frameworks/java.d.ts.map +1 -0
- package/dist/frameworks/java.js +87 -0
- package/dist/frameworks/java.js.map +7 -0
- package/dist/frameworks/laravel.d.ts +9 -0
- package/dist/frameworks/laravel.d.ts.map +1 -0
- package/dist/frameworks/laravel.js +115 -0
- package/dist/frameworks/laravel.js.map +7 -0
- package/dist/frameworks/python.d.ts +10 -0
- package/dist/frameworks/python.d.ts.map +1 -0
- package/dist/frameworks/python.js +158 -0
- package/dist/frameworks/python.js.map +7 -0
- package/dist/frameworks/react.d.ts +9 -0
- package/dist/frameworks/react.d.ts.map +1 -0
- package/dist/frameworks/react.js +230 -0
- package/dist/frameworks/react.js.map +7 -0
- package/dist/frameworks/ruby.d.ts +8 -0
- package/dist/frameworks/ruby.d.ts.map +1 -0
- package/dist/frameworks/ruby.js +136 -0
- package/dist/frameworks/ruby.js.map +7 -0
- package/dist/frameworks/rust.d.ts +8 -0
- package/dist/frameworks/rust.d.ts.map +1 -0
- package/dist/frameworks/rust.js +82 -0
- package/dist/frameworks/rust.js.map +7 -0
- package/dist/frameworks/svelte.d.ts +8 -0
- package/dist/frameworks/svelte.d.ts.map +1 -0
- package/dist/frameworks/svelte.js +174 -0
- package/dist/frameworks/svelte.js.map +7 -0
- package/dist/frameworks/swift.d.ts +10 -0
- package/dist/frameworks/swift.d.ts.map +1 -0
- package/dist/frameworks/swift.js +151 -0
- package/dist/frameworks/swift.js.map +7 -0
- package/dist/frameworks/types.d.ts +37 -0
- package/dist/frameworks/types.d.ts.map +1 -0
- package/dist/frameworks/types.js +17 -0
- package/dist/frameworks/types.js.map +7 -0
- package/dist/graph/queries.d.ts +53 -0
- package/dist/graph/queries.d.ts.map +1 -0
- package/dist/graph/queries.js +224 -0
- package/dist/graph/queries.js.map +7 -0
- package/dist/graph/traversal.d.ts +35 -0
- package/dist/graph/traversal.d.ts.map +1 -0
- package/dist/graph/traversal.js +148 -0
- package/dist/graph/traversal.js.map +7 -0
- package/dist/index.d.ts +102 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +303 -0
- package/dist/index.js.map +7 -0
- package/dist/installer/index.d.ts +10 -0
- package/dist/installer/index.d.ts.map +1 -0
- package/dist/installer/index.js +526 -0
- package/dist/installer/index.js.map +1 -0
- package/dist/mcp/server.d.ts +16 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +116 -0
- package/dist/mcp/server.js.map +7 -0
- package/dist/mcp/tools.d.ts +37 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +779 -0
- package/dist/mcp/tools.js.map +7 -0
- package/dist/mcp/transport.d.ts +29 -0
- package/dist/mcp/transport.d.ts.map +1 -0
- package/dist/mcp/transport.js +70 -0
- package/dist/mcp/transport.js.map +7 -0
- package/dist/resolution/index.d.ts +56 -0
- package/dist/resolution/index.d.ts.map +1 -0
- package/dist/resolution/index.js +384 -0
- package/dist/resolution/index.js.map +7 -0
- package/dist/resolution/name-matcher.d.ts +25 -0
- package/dist/resolution/name-matcher.d.ts.map +1 -0
- package/dist/resolution/name-matcher.js +60 -0
- package/dist/resolution/name-matcher.js.map +7 -0
- package/dist/scripts/postinstall.js +64 -0
- package/dist/search/query-utils.d.ts +21 -0
- package/dist/search/query-utils.d.ts.map +1 -0
- package/dist/search/query-utils.js +219 -0
- package/dist/search/query-utils.js.map +7 -0
- package/dist/search/searcher.d.ts +15 -0
- package/dist/search/searcher.d.ts.map +1 -0
- package/dist/search/searcher.js +49 -0
- package/dist/search/searcher.js.map +7 -0
- package/dist/sync/index.d.ts +33 -0
- package/dist/sync/index.d.ts.map +1 -0
- package/dist/sync/index.js +200 -0
- package/dist/sync/index.js.map +7 -0
- package/dist/types.d.ts +131 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +37 -0
- package/dist/types.js.map +7 -0
- package/dist/utils.d.ts +52 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +254 -0
- package/dist/utils.js.map +7 -0
- package/dist/vectors/index.d.ts +71 -0
- package/dist/vectors/index.d.ts.map +1 -0
- package/dist/vectors/index.js +480 -0
- package/dist/vectors/index.js.map +7 -0
- package/dist/vectors/lancedb-index.d.ts +50 -0
- package/dist/vectors/lancedb-index.d.ts.map +1 -0
- package/dist/vectors/lancedb-index.js +153 -0
- package/dist/vectors/lancedb-index.js.map +7 -0
- package/dist/vectors/orama-index.d.ts +54 -0
- package/dist/vectors/orama-index.d.ts.map +1 -0
- package/dist/vectors/orama-index.js +213 -0
- package/dist/vectors/orama-index.js.map +7 -0
- package/dist/vectors/pglite-index.d.ts +53 -0
- package/dist/vectors/pglite-index.d.ts.map +1 -0
- package/dist/vectors/pglite-index.js +194 -0
- package/dist/vectors/pglite-index.js.map +7 -0
- package/dist/vectors/qdrant-index.d.ts +70 -0
- package/dist/vectors/qdrant-index.d.ts.map +1 -0
- package/dist/vectors/qdrant-index.js +364 -0
- package/dist/vectors/qdrant-index.js.map +7 -0
- package/dist/vectors/typesense-index.d.ts +75 -0
- package/dist/vectors/typesense-index.d.ts.map +1 -0
- package/dist/vectors/typesense-index.js +453 -0
- package/dist/vectors/typesense-index.js.map +7 -0
- package/dist/vectors/vec-index.d.ts +52 -0
- package/dist/vectors/vec-index.d.ts.map +1 -0
- package/dist/vectors/vec-index.js +198 -0
- package/dist/vectors/vec-index.js.map +7 -0
- package/package.json +67 -0
package/README.md
ADDED
|
@@ -0,0 +1,1171 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# KiroGraph
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
Semantic code knowledge graph for [Kiro](https://kiro.dev): fewer tool calls, instant symbol lookups, 100% local.
|
|
8
|
+
|
|
9
|
+
Inspired by [CodeGraph](https://github.com/colbymchenry/codegraph) by [colbymchenry](https://github.com/colbymchenry) for Claude Code, rebuilt natively for Kiro's MCP and hooks system.
|
|
10
|
+
|
|
11
|
+
## Why KiroGraph?
|
|
12
|
+
|
|
13
|
+
When you ask Kiro to work on a complex task, it explores your codebase using file reads, grep, and glob searches. Every one of those is a tool call, and tool calls consume context and slow things down.
|
|
14
|
+
|
|
15
|
+
KiroGraph gives Kiro a semantic knowledge graph that's pre-indexed and always up to date. Instead of scanning files to understand your code, Kiro queries the graph instantly: symbol relationships, call graphs, type hierarchies, impact radius — all in a single MCP tool call.
|
|
16
|
+
|
|
17
|
+
The result is fewer tool calls, less context used, and faster responses on complex tasks.
|
|
18
|
+
|
|
19
|
+
## What Gets Indexed?
|
|
20
|
+
|
|
21
|
+
KiroGraph uses [tree-sitter](https://tree-sitter.github.io/tree-sitter/) to parse your source files into an AST and extract:
|
|
22
|
+
|
|
23
|
+
- **Nodes** — functions, methods, classes, interfaces, types, enums, variables, constants, routes, components, and more (24 node kinds total)
|
|
24
|
+
- **Edges** — calls, imports, exports, extends, implements, contains, references, instantiates, overrides, decorates, type_of, returns
|
|
25
|
+
|
|
26
|
+
Everything is stored in a local SQLite database (`.kirograph/kirograph.db`). **Nothing leaves your machine.** No API keys. No external services.
|
|
27
|
+
|
|
28
|
+
The index is kept fresh automatically via Kiro hooks — no background watcher process needed.
|
|
29
|
+
|
|
30
|
+
## How Indexing Works
|
|
31
|
+
|
|
32
|
+
Indexing has three layers: **structural** (always on), **semantic** (opt-in), and **architecture** (opt-in).
|
|
33
|
+
|
|
34
|
+
### Structural indexing
|
|
35
|
+
|
|
36
|
+
tree-sitter parses every source file into an AST. Nodes and edges are extracted and written to `kirograph.db`. This is what powers all graph traversal tools (`kirograph_callers`, `kirograph_impact`, `kirograph_path`, etc.) and exact/FTS symbol search.
|
|
37
|
+
|
|
38
|
+
This layer has no extra dependencies and runs on every `kirograph index` or `kirograph sync`.
|
|
39
|
+
|
|
40
|
+
### Semantic indexing (opt-in)
|
|
41
|
+
|
|
42
|
+
When `enableEmbeddings: true` is set, KiroGraph additionally generates 768-dimensional vector embeddings for every embeddable symbol (`function`, `method`, `class`, `interface`, `type_alias`, `component`, `module`) using the `nomic-ai/nomic-embed-text-v1.5` model (~130MB, downloaded once to `~/.kirograph/models/`).
|
|
43
|
+
|
|
44
|
+
These embeddings power natural-language search in `kirograph_context` and act as a fallback in `kirograph_search`. The embeddings are stored in the **semantic engine** of your choice:
|
|
45
|
+
|
|
46
|
+
| Engine | Store | Search type | Extra deps |
|
|
47
|
+
|--------|-------|-------------|------------|
|
|
48
|
+
| `cosine` *(default)* | `kirograph.db` (`vectors` table) | Exact cosine, linear scan | none |
|
|
49
|
+
| `sqlite-vec` | `.kirograph/vec.db` | ANN (approximate), sub-linear | `better-sqlite3`, `sqlite-vec` (native) |
|
|
50
|
+
| `orama` | `.kirograph/orama.json` | Hybrid (full-text + vector) | `@orama/orama`, `@orama/plugin-data-persistence` |
|
|
51
|
+
| `pglite` | `.kirograph/pglite/` | Hybrid (full-text + vector), exact | `@electric-sql/pglite` (WASM) |
|
|
52
|
+
| `lancedb` | `.kirograph/lancedb/` | ANN (approximate), sub-linear | `@lancedb/lancedb` (pure JS) |
|
|
53
|
+
| `qdrant` | `.kirograph/qdrant/` | ANN (HNSW), sub-linear | `qdrant-local` (embedded binary) |
|
|
54
|
+
| `typesense` | `.kirograph/typesense/` | ANN (HNSW), sub-linear | `typesense` (auto-downloaded binary) |
|
|
55
|
+
|
|
56
|
+
Each engine owns its embedding store exclusively — nothing is written to the SQLite `vectors` table when a non-cosine engine is active. If an engine's optional dependency is not installed, KiroGraph silently falls back to `cosine`.
|
|
57
|
+
|
|
58
|
+
Enable and configure via `kirograph install` (interactive arrow-key menu) or directly in `.kirograph/config.json`:
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"enableEmbeddings": true,
|
|
63
|
+
"semanticEngine": "pglite"
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Architecture analysis (opt-in)
|
|
68
|
+
|
|
69
|
+
When `enableArchitecture: true` is set, KiroGraph detects the high-level structure of your project — packages and architectural layers — and computes coupling metrics between them. Results are stored in `arch_*` tables inside `kirograph.db` and exposed via dedicated MCP tools and CLI commands.
|
|
70
|
+
|
|
71
|
+
Enable via `kirograph install` or directly in `.kirograph/config.json`:
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"enableArchitecture": true
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
See the [Architecture Analysis](#architecture-analysis-opt-in-1) section below for full details.
|
|
80
|
+
|
|
81
|
+
## Installation
|
|
82
|
+
|
|
83
|
+
### From npm (not yet available on npm registry)
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm install -g kirograph
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### From source
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
git clone https://github.com/davide-desio-eleva/kirograph.git
|
|
93
|
+
cd kirograph
|
|
94
|
+
npm install
|
|
95
|
+
npm run build
|
|
96
|
+
sudo npm install -g .
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
After building, the `kirograph` and `kg` commands are available globally.
|
|
100
|
+
|
|
101
|
+
### Verify
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
kirograph --version
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Uninstallation
|
|
108
|
+
|
|
109
|
+
### Remove from a project
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
kirograph uninit [path] # Remove .kirograph/, hooks, and steering file from the project
|
|
113
|
+
kirograph uninit --force # Skip confirmation prompt
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
This removes:
|
|
117
|
+
- `.kirograph/` — index database, snapshots, and export directory
|
|
118
|
+
- `.kiro/hooks/kirograph-*.json` — all KiroGraph hooks
|
|
119
|
+
- `.kiro/steering/kirograph.md` — the steering file
|
|
120
|
+
- `.kiro/agents/kirograph.json` — the CLI agent config
|
|
121
|
+
|
|
122
|
+
### Remove the CLI globally
|
|
123
|
+
|
|
124
|
+
If installed from npm:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
npm uninstall -g kirograph
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
If installed from source:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
cd kirograph
|
|
134
|
+
npm uninstall -g .
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Quick Start
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
# In your project:
|
|
141
|
+
kirograph install # wire up MCP + hooks + steering + CLI agent in .kiro/
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
Restart Kiro IDE, or switch to the `kirograph` agent in Kiro CLI. It will now use KiroGraph tools automatically.
|
|
145
|
+
|
|
146
|
+
Or using the short alias:
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
kg install
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## How It Works
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
┌─────────────────────────────────────────┐
|
|
156
|
+
│ Kiro │
|
|
157
|
+
│ │
|
|
158
|
+
│ "Fix the auth bug" │
|
|
159
|
+
│ │ │
|
|
160
|
+
│ ▼ │
|
|
161
|
+
│ kirograph_context("auth bug") │
|
|
162
|
+
│ │ │
|
|
163
|
+
└───────────┼─────────────────────────────┘
|
|
164
|
+
▼
|
|
165
|
+
┌───────────────────────────────────────────┐
|
|
166
|
+
│ KiroGraph MCP Server │
|
|
167
|
+
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
|
|
168
|
+
│ │ search │ │ callers │ │ context │ │
|
|
169
|
+
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
|
|
170
|
+
│ └────────────┼────────────┘ │
|
|
171
|
+
│ SQLite Graph DB (.kirograph/) │
|
|
172
|
+
└───────────────────────────────────────────┘
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Kiro hooks mark the index dirty on every file save or create, then flush on agent idle — batching changes efficiently with no overhead during active editing.
|
|
176
|
+
|
|
177
|
+
## Using with Kiro
|
|
178
|
+
|
|
179
|
+
`kirograph install` sets up four things in your Kiro workspace — all coexist, so you can switch between IDE and CLI freely:
|
|
180
|
+
|
|
181
|
+
### MCP Server (`.kiro/settings/mcp.json`)
|
|
182
|
+
|
|
183
|
+
Registers the KiroGraph MCP server. Used by both the IDE and the CLI agent:
|
|
184
|
+
|
|
185
|
+
```json
|
|
186
|
+
{
|
|
187
|
+
"mcpServers": {
|
|
188
|
+
"kirograph": {
|
|
189
|
+
"command": "kirograph",
|
|
190
|
+
"args": ["serve", "--mcp"],
|
|
191
|
+
"autoApprove": [
|
|
192
|
+
"kirograph_search", "kirograph_context", "kirograph_callers",
|
|
193
|
+
"kirograph_callees", "kirograph_impact", "kirograph_node",
|
|
194
|
+
"kirograph_status", "kirograph_files", "kirograph_dead_code",
|
|
195
|
+
"kirograph_circular_deps", "kirograph_path", "kirograph_type_hierarchy",
|
|
196
|
+
"kirograph_architecture", "kirograph_coupling", "kirograph_package"
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### IDE Auto-Sync Hooks (`.kiro/hooks/`)
|
|
204
|
+
|
|
205
|
+
Four hooks keep the index fresh automatically in the Kiro IDE:
|
|
206
|
+
|
|
207
|
+
| Hook | Event | Action |
|
|
208
|
+
|------|-------|--------|
|
|
209
|
+
| `kirograph-mark-dirty-on-save.json` | `fileEdited` | `kirograph mark-dirty` |
|
|
210
|
+
| `kirograph-mark-dirty-on-create.json` | `fileCreated` | `kirograph mark-dirty` |
|
|
211
|
+
| `kirograph-sync-on-delete.json` | `fileDeleted` | `kirograph sync-if-dirty` |
|
|
212
|
+
| `kirograph-sync-if-dirty.json` | `agentStop` | `kirograph sync-if-dirty --quiet` |
|
|
213
|
+
|
|
214
|
+
File changes are batched: saves and creates write a dirty marker; the actual sync runs when the agent stops. Deletes sync immediately. This means no overhead during active editing.
|
|
215
|
+
|
|
216
|
+
Hooks fire for: `.ts`, `.tsx`, `.js`, `.jsx`, `.py`, `.go`, `.rs`, `.java`, `.cs`, `.rb`, `.php`, `.swift`, `.kt`, `.dart`, `.ex`, `.exs`
|
|
217
|
+
|
|
218
|
+
### CLI Agent Config (`.kiro/agents/kirograph.json`)
|
|
219
|
+
|
|
220
|
+
A custom agent for Kiro CLI that wires up the MCP server, inlines the steering instructions as a prompt, and handles sync in the CLI's own hook format. The CLI has no file-watch events, so syncing is handled at session boundaries instead:
|
|
221
|
+
|
|
222
|
+
| Hook | Event | Action |
|
|
223
|
+
|------|-------|--------|
|
|
224
|
+
| `agentSpawn` | Agent starts | `kirograph sync-if-dirty --quiet` — catches edits made between sessions |
|
|
225
|
+
| `userPromptSubmit` | Each prompt | `kirograph sync-if-dirty --quiet` — keeps graph fresh within a session |
|
|
226
|
+
| `stop` | End of each turn | `kirograph sync-if-dirty --quiet` — deferred flush, mirrors IDE `agentStop` |
|
|
227
|
+
|
|
228
|
+
Use it with:
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
kiro-cli --agent kirograph
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
Or swap to it inside an active session:
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
/agent swap kirograph
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
> Note: restart `kiro-cli` after running `kirograph install` for the agent to be picked up.
|
|
241
|
+
|
|
242
|
+
### Steering File (`.kiro/steering/kirograph.md`)
|
|
243
|
+
|
|
244
|
+
Teaches the Kiro IDE to prefer graph tools over file scanning when `.kirograph/` exists. The CLI agent has the same instructions inlined directly in its `prompt` field.
|
|
245
|
+
|
|
246
|
+
## MCP Tools
|
|
247
|
+
|
|
248
|
+
All tools are auto-approved and available to Kiro once installed.
|
|
249
|
+
|
|
250
|
+
### `kirograph_context`
|
|
251
|
+
|
|
252
|
+
Comprehensive context for a task or feature — often sufficient alone without additional tool calls.
|
|
253
|
+
|
|
254
|
+
| Parameter | Type | Default | Description |
|
|
255
|
+
|-----------|------|---------|-------------|
|
|
256
|
+
| `task` | string | required | Task, bug, or feature description |
|
|
257
|
+
| `maxNodes` | number | 20 | Max symbols to include |
|
|
258
|
+
| `includeCode` | boolean | true | Include code snippets |
|
|
259
|
+
| `projectPath` | string | cwd | Project root path |
|
|
260
|
+
|
|
261
|
+
**How it works:** Extracts symbol tokens from the task description (CamelCase, snake_case, SCREAMING_SNAKE, dot.notation) → runs exact name lookup + FTS + **vector search** against the active semantic engine → resolves imports to their definitions → expands through the graph to related symbols → returns entry points, related nodes, edges, and code snippets. This is the only tool that uses the vector engine on every call.
|
|
262
|
+
|
|
263
|
+
### `kirograph_search`
|
|
264
|
+
|
|
265
|
+
Quick symbol search by name. Returns locations only, no code.
|
|
266
|
+
|
|
267
|
+
| Parameter | Type | Default | Description |
|
|
268
|
+
|-----------|------|---------|-------------|
|
|
269
|
+
| `query` | string | required | Symbol name or partial name |
|
|
270
|
+
| `kind` | string | — | Filter: `function`, `method`, `class`, `interface`, `type_alias`, `variable`, `route`, `component` |
|
|
271
|
+
| `limit` | number | 10 | Max results (1–100) |
|
|
272
|
+
| `projectPath` | string | cwd | Project root path |
|
|
273
|
+
|
|
274
|
+
**How it works:** Exact name match → SQLite FTS → LIKE fallback → **vector search** only if all three return nothing. Pure graph database lookup in the common case; vector engine only as a last resort.
|
|
275
|
+
|
|
276
|
+
### `kirograph_callers`
|
|
277
|
+
|
|
278
|
+
Find all functions/methods that call a specific symbol.
|
|
279
|
+
|
|
280
|
+
| Parameter | Type | Default | Description |
|
|
281
|
+
|-----------|------|---------|-------------|
|
|
282
|
+
| `symbol` | string | required | Symbol name |
|
|
283
|
+
| `limit` | number | 20 | Max results (1–100) |
|
|
284
|
+
| `projectPath` | string | cwd | Project root path |
|
|
285
|
+
|
|
286
|
+
**How it works:** BFS traversal of incoming `call` edges in the graph database. No vector engine involved.
|
|
287
|
+
|
|
288
|
+
### `kirograph_callees`
|
|
289
|
+
|
|
290
|
+
Find all functions/methods that a specific symbol calls.
|
|
291
|
+
|
|
292
|
+
| Parameter | Type | Default | Description |
|
|
293
|
+
|-----------|------|---------|-------------|
|
|
294
|
+
| `symbol` | string | required | Symbol name |
|
|
295
|
+
| `limit` | number | 20 | Max results (1–100) |
|
|
296
|
+
| `projectPath` | string | cwd | Project root path |
|
|
297
|
+
|
|
298
|
+
**How it works:** BFS traversal of outgoing `call` edges in the graph database. No vector engine involved.
|
|
299
|
+
|
|
300
|
+
### `kirograph_impact`
|
|
301
|
+
|
|
302
|
+
Analyze what code would be affected by changing a symbol. Use before making changes.
|
|
303
|
+
|
|
304
|
+
| Parameter | Type | Default | Description |
|
|
305
|
+
|-----------|------|---------|-------------|
|
|
306
|
+
| `symbol` | string | required | Symbol name |
|
|
307
|
+
| `depth` | number | 2 | Traversal depth |
|
|
308
|
+
| `projectPath` | string | cwd | Project root path |
|
|
309
|
+
|
|
310
|
+
**How it works:** BFS traversal of all incoming edges (`call`, `import`, `reference`, etc.) up to the specified depth. No vector engine involved.
|
|
311
|
+
|
|
312
|
+
### `kirograph_node`
|
|
313
|
+
|
|
314
|
+
Get details about a specific symbol, optionally including source code.
|
|
315
|
+
|
|
316
|
+
| Parameter | Type | Default | Description |
|
|
317
|
+
|-----------|------|---------|-------------|
|
|
318
|
+
| `symbol` | string | required | Symbol name |
|
|
319
|
+
| `includeCode` | boolean | false | Include source code |
|
|
320
|
+
| `projectPath` | string | cwd | Project root path |
|
|
321
|
+
|
|
322
|
+
Returns: kind, name, qualified name, file location, signature, docstring, and optionally source code.
|
|
323
|
+
|
|
324
|
+
**How it works:** Single row lookup by symbol name in the graph database. If `includeCode` is true, reads the relevant lines directly from the source file on disk. No vector engine involved.
|
|
325
|
+
|
|
326
|
+
### `kirograph_type_hierarchy`
|
|
327
|
+
|
|
328
|
+
Traverse the type hierarchy of a class or interface.
|
|
329
|
+
|
|
330
|
+
| Parameter | Type | Default | Description |
|
|
331
|
+
|-----------|------|---------|-------------|
|
|
332
|
+
| `symbol` | string | required | Class or interface name |
|
|
333
|
+
| `direction` | string | `both` | `up` (base types), `down` (derived types), `both` |
|
|
334
|
+
| `projectPath` | string | cwd | Project root path |
|
|
335
|
+
|
|
336
|
+
**How it works:** Recursive traversal of `extends` and `implements` edges in the graph database. No vector engine involved.
|
|
337
|
+
|
|
338
|
+
### `kirograph_path`
|
|
339
|
+
|
|
340
|
+
Find the shortest path between two symbols in the dependency graph.
|
|
341
|
+
|
|
342
|
+
| Parameter | Type | Default | Description |
|
|
343
|
+
|-----------|------|---------|-------------|
|
|
344
|
+
| `from` | string | required | Source symbol name |
|
|
345
|
+
| `to` | string | required | Target symbol name |
|
|
346
|
+
| `projectPath` | string | cwd | Project root path |
|
|
347
|
+
|
|
348
|
+
**How it works:** BFS shortest-path search across all edge types in the graph database. No vector engine involved.
|
|
349
|
+
|
|
350
|
+
### `kirograph_dead_code`
|
|
351
|
+
|
|
352
|
+
Find symbols with no incoming references (potential dead code). Only unexported symbols are considered.
|
|
353
|
+
|
|
354
|
+
| Parameter | Type | Default | Description |
|
|
355
|
+
|-----------|------|---------|-------------|
|
|
356
|
+
| `limit` | number | 50 | Max results (1–100) |
|
|
357
|
+
| `projectPath` | string | cwd | Project root path |
|
|
358
|
+
|
|
359
|
+
**How it works:** Queries the graph database for nodes with zero incoming edges, filtered to non-exported symbols. No vector engine involved.
|
|
360
|
+
|
|
361
|
+
### `kirograph_circular_deps`
|
|
362
|
+
|
|
363
|
+
Find circular import dependencies in the codebase.
|
|
364
|
+
|
|
365
|
+
| Parameter | Type | Default | Description |
|
|
366
|
+
|-----------|------|---------|-------------|
|
|
367
|
+
| `projectPath` | string | cwd | Project root path |
|
|
368
|
+
|
|
369
|
+
**How it works:** Tarjan's strongly connected components algorithm over `import` edges in the graph database. No vector engine involved.
|
|
370
|
+
|
|
371
|
+
### `kirograph_files`
|
|
372
|
+
|
|
373
|
+
List the indexed file structure with filtering and format options.
|
|
374
|
+
|
|
375
|
+
| Parameter | Type | Default | Description |
|
|
376
|
+
|-----------|------|---------|-------------|
|
|
377
|
+
| `filterPath` | string | — | Filter by directory prefix (e.g., `src/`) |
|
|
378
|
+
| `pattern` | string | — | Filter by glob pattern (e.g., `**/*.ts`) |
|
|
379
|
+
| `maxDepth` | number | — | Limit tree depth |
|
|
380
|
+
| `format` | string | `tree` | `tree`, `flat`, or `grouped` |
|
|
381
|
+
| `includeMetadata` | boolean | true | Include language and symbol counts |
|
|
382
|
+
| `projectPath` | string | cwd | Project root path |
|
|
383
|
+
|
|
384
|
+
**How it works:** Reads file records from the graph database and builds a tree structure in memory. Filtering is applied before tree construction. No vector engine involved.
|
|
385
|
+
|
|
386
|
+
### `kirograph_status`
|
|
387
|
+
|
|
388
|
+
Check index health and statistics: files indexed, symbol count, edge count, breakdown by kind and language, frameworks detected, database size, and semantic search status.
|
|
389
|
+
|
|
390
|
+
| Parameter | Type | Default | Description |
|
|
391
|
+
|-----------|------|---------|-------------|
|
|
392
|
+
| `projectPath` | string | cwd | Project root path |
|
|
393
|
+
|
|
394
|
+
**How it works:** Reads aggregate counts from the graph database + calls `count()` on the active vector engine to report embedding coverage. No graph traversal, no vector search.
|
|
395
|
+
|
|
396
|
+
### `kirograph_architecture` *(requires `enableArchitecture: true`)*
|
|
397
|
+
|
|
398
|
+
Get the full architecture overview: detected packages, layers, and the dependency graph between them.
|
|
399
|
+
|
|
400
|
+
| Parameter | Type | Default | Description |
|
|
401
|
+
|-----------|------|---------|-------------|
|
|
402
|
+
| `projectPath` | string | cwd | Project root path |
|
|
403
|
+
|
|
404
|
+
Returns: packages (with source, language, version, external deps, file membership), layers (with file counts and detection patterns), package dependency edges, layer dependency edges, and per-file package/layer assignments.
|
|
405
|
+
|
|
406
|
+
**How it works:** Reads the `arch_*` tables populated during the last `kirograph index` run. Returns nothing useful if architecture analysis was not enabled at index time.
|
|
407
|
+
|
|
408
|
+
### `kirograph_coupling` *(requires `enableArchitecture: true`)*
|
|
409
|
+
|
|
410
|
+
Get coupling metrics for all packages or a specific one.
|
|
411
|
+
|
|
412
|
+
| Parameter | Type | Default | Description |
|
|
413
|
+
|-----------|------|---------|-------------|
|
|
414
|
+
| `packageId` | string | — | Package ID (e.g. `pkg:npm:src/auth`). Omit for all packages. |
|
|
415
|
+
| `projectPath` | string | cwd | Project root path |
|
|
416
|
+
|
|
417
|
+
Returns per-package: **Ca** (afferent — how many other packages depend on this one), **Ce** (efferent — how many packages this one depends on), and **instability** (`Ce / (Ca + Ce)`, 0 = maximally stable, 1 = maximally unstable). When `packageId` is given, also returns the full list of incoming and outgoing package dependencies.
|
|
418
|
+
|
|
419
|
+
### `kirograph_package` *(requires `enableArchitecture: true`)*
|
|
420
|
+
|
|
421
|
+
Inspect the files and dependencies of a specific package.
|
|
422
|
+
|
|
423
|
+
| Parameter | Type | Default | Description |
|
|
424
|
+
|-----------|------|---------|-------------|
|
|
425
|
+
| `packageId` | string | required | Package ID (e.g. `pkg:npm:src/auth`) |
|
|
426
|
+
| `projectPath` | string | cwd | Project root path |
|
|
427
|
+
|
|
428
|
+
Returns: package metadata, all files assigned to the package, packages it depends on (with import counts), and packages that depend on it.
|
|
429
|
+
|
|
430
|
+
### `kirograph_hotspots`
|
|
431
|
+
|
|
432
|
+
Find the most-connected symbols by total edge degree (incoming + outgoing). Excludes structural `contains` edges.
|
|
433
|
+
|
|
434
|
+
| Parameter | Type | Default | Description |
|
|
435
|
+
|-----------|------|---------|-------------|
|
|
436
|
+
| `limit` | number | 20 | Max results (1–100) |
|
|
437
|
+
| `projectPath` | string | cwd | Project root path |
|
|
438
|
+
|
|
439
|
+
Returns each symbol with total degree, in-degree, and out-degree. Useful for identifying core abstractions and high blast-radius code before making changes.
|
|
440
|
+
|
|
441
|
+
### `kirograph_surprising`
|
|
442
|
+
|
|
443
|
+
Find non-obvious cross-file connections: direct edges between symbols in structurally distant files.
|
|
444
|
+
|
|
445
|
+
| Parameter | Type | Default | Description |
|
|
446
|
+
|-----------|------|---------|-------------|
|
|
447
|
+
| `limit` | number | 20 | Max results (1–100) |
|
|
448
|
+
| `projectPath` | string | cwd | Project root path |
|
|
449
|
+
|
|
450
|
+
**How it works:** Queries all cross-file edges (excluding `contains` and `import`). Scores each by path distance between source and target files × edge-kind weight (`calls=1.0`, `references=0.8`, `type_of=0.7`, etc.). Returns the highest-scoring unique pairs — the ones that represent the most unexpected coupling in the codebase.
|
|
451
|
+
|
|
452
|
+
### `kirograph_diff`
|
|
453
|
+
|
|
454
|
+
Compare the current graph state against a saved snapshot. Shows added/removed symbols and edges.
|
|
455
|
+
|
|
456
|
+
| Parameter | Type | Default | Description |
|
|
457
|
+
|-----------|------|---------|-------------|
|
|
458
|
+
| `snapshot` | string | latest | Snapshot label. Omit to use the most recent saved snapshot. |
|
|
459
|
+
| `projectPath` | string | cwd | Project root path |
|
|
460
|
+
|
|
461
|
+
Use `kirograph snapshot save` (CLI) to save a snapshot before a refactor or PR. Run `kirograph_diff` after to see what changed structurally.
|
|
462
|
+
|
|
463
|
+
## CLI Reference
|
|
464
|
+
|
|
465
|
+
### Setup
|
|
466
|
+
|
|
467
|
+
```bash
|
|
468
|
+
kirograph install # Wire up MCP + hooks + steering in .kiro/
|
|
469
|
+
kirograph init [path] # Initialize .kirograph/ in a project
|
|
470
|
+
kirograph init --index # Initialize and index immediately
|
|
471
|
+
kirograph uninit [path] # Remove .kirograph/, hooks, and steering file
|
|
472
|
+
kirograph uninit --force # Skip confirmation prompt
|
|
473
|
+
```
|
|
474
|
+
|
|
475
|
+
### Indexing
|
|
476
|
+
|
|
477
|
+
```bash
|
|
478
|
+
kirograph index [path] # Full re-index of the project
|
|
479
|
+
kirograph index --force # Force re-index all files (ignore hash cache)
|
|
480
|
+
kirograph sync [path] # Incremental sync of changed files
|
|
481
|
+
kirograph sync --files a.ts b.ts # Sync specific files only
|
|
482
|
+
kirograph sync-if-dirty [path] # Sync only if a dirty marker is present
|
|
483
|
+
kirograph mark-dirty [path] # Write a dirty marker for deferred sync
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
### Status & Maintenance
|
|
487
|
+
|
|
488
|
+
```bash
|
|
489
|
+
kirograph status [path] # Show index stats (files, symbols, edges, frameworks)
|
|
490
|
+
kirograph unlock [path] # Force-release a stale lock file
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
### Search & Exploration
|
|
494
|
+
|
|
495
|
+
```bash
|
|
496
|
+
kirograph query <term> # Search symbols by name
|
|
497
|
+
kirograph query <term> --kind class # Filter by kind
|
|
498
|
+
kirograph query <term> --limit 20 # Limit results (default: 10)
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
Supported kinds: `function`, `method`, `class`, `struct`, `interface`, `trait`, `protocol`, `enum`, `type_alias`, `property`, `field`, `variable`, `constant`, `enum_member`, `parameter`, `import`, `export`, `route`, `component`, `file`, `module`, `namespace`
|
|
502
|
+
|
|
503
|
+
### File Structure
|
|
504
|
+
|
|
505
|
+
```bash
|
|
506
|
+
kirograph files [path] # Show indexed file tree
|
|
507
|
+
kirograph files --format flat # Flat list of all files
|
|
508
|
+
kirograph files --format grouped # Files grouped by language
|
|
509
|
+
kirograph files --filter src/components # Filter by directory prefix
|
|
510
|
+
kirograph files --pattern "**/*.test.ts" # Filter by glob pattern
|
|
511
|
+
kirograph files --max-depth 2 # Limit tree depth
|
|
512
|
+
kirograph files --no-metadata # Hide language/symbol counts
|
|
513
|
+
kirograph files --json # Output as JSON
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
### Context Building
|
|
517
|
+
|
|
518
|
+
```bash
|
|
519
|
+
kirograph context "fix checkout bug"
|
|
520
|
+
kirograph context "add user authentication" --format json
|
|
521
|
+
kirograph context "refactor payment service" --max-nodes 30
|
|
522
|
+
kirograph context "validate token" --no-code
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
Extracts symbol tokens from the task description (CamelCase, snake_case, SCREAMING_SNAKE, dot.notation), finds relevant entry points, expands through the graph, and outputs structured markdown or JSON.
|
|
526
|
+
|
|
527
|
+
### Affected Tests
|
|
528
|
+
|
|
529
|
+
Find test files that depend on changed source files — useful in CI or pre-commit hooks.
|
|
530
|
+
|
|
531
|
+
```bash
|
|
532
|
+
kirograph affected src/utils.ts src/api.ts # Pass files as arguments
|
|
533
|
+
git diff --name-only | kirograph affected --stdin # Pipe from git diff
|
|
534
|
+
kirograph affected --stdin --json < changed.txt # JSON output
|
|
535
|
+
kirograph affected src/auth.ts --filter "e2e/**" # Custom test file glob
|
|
536
|
+
kirograph affected src/lib.ts --depth 3 --quiet # Paths only, shallow traversal
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
| Option | Description | Default |
|
|
540
|
+
|--------|-------------|---------|
|
|
541
|
+
| `--stdin` | Read file list from stdin, one per line | false |
|
|
542
|
+
| `-d, --depth <n>` | Max dependency traversal depth | 5 |
|
|
543
|
+
| `-f, --filter <glob>` | Custom glob to identify test files | auto-detect |
|
|
544
|
+
| `-j, --json` | Output as JSON | false |
|
|
545
|
+
| `-q, --quiet` | Output file paths only | false |
|
|
546
|
+
| `-p, --path <path>` | Project path | cwd |
|
|
547
|
+
|
|
548
|
+
Example CI integration:
|
|
549
|
+
|
|
550
|
+
```bash
|
|
551
|
+
#!/usr/bin/env bash
|
|
552
|
+
AFFECTED=$(git diff --name-only HEAD | kirograph affected --stdin --quiet)
|
|
553
|
+
if [ -n "$AFFECTED" ]; then
|
|
554
|
+
npx vitest run $AFFECTED
|
|
555
|
+
fi
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
### 🪨 Caveman Mode 🪨
|
|
559
|
+
|
|
560
|
+

|
|
561
|
+
|
|
562
|
+
Caveman mode compresses the agent's communication style, cutting token usage on responses without affecting tool calls or code output. Inspired by [caveman](https://github.com/JuliusBrussee/caveman) 🪨 by [JuliusBrussee](https://github.com/JuliusBrussee).
|
|
563
|
+
|
|
564
|
+
**Why it's useful:** KiroGraph's graph tools return compact, structured data. The bottleneck in long coding sessions isn't the tool calls — it's the verbose prose the agent wraps around them. Caveman mode strips that overhead so you get the signal without the filler. The rules are injected at session start via the steering file (IDE) and the inline agent prompt (kiro-cli), so they're always in context with no extra tool calls.
|
|
565
|
+
|
|
566
|
+
Four levels:
|
|
567
|
+
|
|
568
|
+
| Mode | Style |
|
|
569
|
+
|------|-------|
|
|
570
|
+
| `off` | Normal responses *(default)* |
|
|
571
|
+
| `lite` | Compact, no filler, full sentences |
|
|
572
|
+
| `full` | Fragments, no articles, short synonyms |
|
|
573
|
+
| `ultra` | Maximum compression, abbreviations, `→` for causality |
|
|
574
|
+
|
|
575
|
+
```bash
|
|
576
|
+
kirograph caveman lite # compact, still readable
|
|
577
|
+
kirograph caveman full # fragments, no articles
|
|
578
|
+
kirograph caveman ultra # maximum compression
|
|
579
|
+
kirograph caveman off # back to normal
|
|
580
|
+
kirograph caveman # show current mode
|
|
581
|
+
```
|
|
582
|
+
|
|
583
|
+
Set during `kirograph install` (interactive arrow-key menu) or any time after. Takes effect on the next agent session.
|
|
584
|
+
|
|
585
|
+
Caveman mode never touches code blocks, file paths, URLs, or technical terms — only prose.
|
|
586
|
+
|
|
587
|
+
**Auto-clarity exceptions:** the agent temporarily reverts to normal prose for security warnings, confirmations of irreversible actions (delete, overwrite, force-push), and multi-step sequences where fragment order could cause misunderstanding. Compressed style resumes immediately after.
|
|
588
|
+
|
|
589
|
+
### Architecture Analysis *(requires `enableArchitecture: true`)*
|
|
590
|
+
|
|
591
|
+
Visualize the detected package graph, architectural layers, and package dependencies.
|
|
592
|
+
|
|
593
|
+
```bash
|
|
594
|
+
kirograph architecture [path] # Show packages + layers + all deps
|
|
595
|
+
kirograph architecture --packages # Show packages section only
|
|
596
|
+
kirograph architecture --layers # Show layers section only
|
|
597
|
+
kirograph architecture --format json # JSON output
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
**Output includes:**
|
|
601
|
+
- Each detected package with its source (`manifest` or `directory`), language, version, and declared external deps
|
|
602
|
+
- Package-to-package dependency edges with import counts
|
|
603
|
+
- Detected layers (`api`, `service`, `data`, `ui`, `shared`) with file counts
|
|
604
|
+
- Layer-to-layer dependency edges
|
|
605
|
+
|
|
606
|
+
### Package Inspection *(requires `enableArchitecture: true`)*
|
|
607
|
+
|
|
608
|
+
Drill into a single package: metadata, coupling metrics, dependencies, and files.
|
|
609
|
+
|
|
610
|
+
```bash
|
|
611
|
+
kirograph package <name> # Inspect a package by name or path fragment
|
|
612
|
+
kirograph package auth # Partial match accepted (e.g. matches "pkg:npm:src/auth")
|
|
613
|
+
kirograph package src/auth --no-files # Omit file list
|
|
614
|
+
kirograph package auth --format json # JSON output
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
Shows package source (manifest or directory), language, version, manifest path, coupling metrics (Ca/Ce/instability), outgoing dependencies, incoming dependents, declared external deps, and the full list of files belonging to the package.
|
|
618
|
+
|
|
619
|
+
### Coupling Metrics *(requires `enableArchitecture: true`)*
|
|
620
|
+
|
|
621
|
+
Inspect coupling health across your package graph.
|
|
622
|
+
|
|
623
|
+
```bash
|
|
624
|
+
kirograph coupling [path] # All packages, sorted by instability
|
|
625
|
+
kirograph coupling --sort ca # Sort by afferent coupling (most depended-on first)
|
|
626
|
+
kirograph coupling --sort ce # Sort by efferent coupling (most dependent first)
|
|
627
|
+
kirograph coupling --sort name # Sort alphabetically
|
|
628
|
+
kirograph coupling --package auth # Detail view for a single package
|
|
629
|
+
kirograph coupling --format json # JSON output
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
The table shows each package with:
|
|
633
|
+
- **Ca** — afferent coupling: how many packages depend on this one (higher = more stable)
|
|
634
|
+
- **Ce** — efferent coupling: how many packages this one depends on (higher = more unstable)
|
|
635
|
+
- **Instability** — `Ce / (Ca + Ce)`, rendered as a color-coded bar: green (stable) → yellow (neutral) → red (unstable)
|
|
636
|
+
|
|
637
|
+
The `--package` detail view shows who depends on this package and what it depends on, with import counts for each relationship.
|
|
638
|
+
|
|
639
|
+
### Hotspots
|
|
640
|
+
|
|
641
|
+
Find the most-connected symbols in the codebase by total edge degree (incoming + outgoing, excluding structural `contains` edges). Useful for identifying core abstractions, load-bearing code, or high blast-radius change points.
|
|
642
|
+
|
|
643
|
+
```bash
|
|
644
|
+
kirograph hotspots [path] # Top 20 most-connected symbols
|
|
645
|
+
kirograph hotspots --limit 10 # Limit results
|
|
646
|
+
kirograph hotspots --format json # JSON output
|
|
647
|
+
```
|
|
648
|
+
|
|
649
|
+
Output shows each symbol with an inline bar chart, total degree, and in/out breakdown.
|
|
650
|
+
|
|
651
|
+
### Surprising Connections
|
|
652
|
+
|
|
653
|
+
Find non-obvious cross-file connections: direct edges (`calls`, `references`, etc.) between symbols in structurally distant parts of the codebase. High-score pairs indicate unexpected coupling worth investigating.
|
|
654
|
+
|
|
655
|
+
```bash
|
|
656
|
+
kirograph surprising [path] # Top 20 surprising connections
|
|
657
|
+
kirograph surprising --limit 10 # Limit results
|
|
658
|
+
kirograph surprising --format json # JSON output
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
Score = path distance between files × edge-kind weight (`calls=1.0`, `references=0.8`, `type_of=0.7`, etc.).
|
|
662
|
+
|
|
663
|
+
### Snapshots & Diff
|
|
664
|
+
|
|
665
|
+
Save lightweight graph snapshots and compare them to track structural changes over time — useful before/after refactors, or in CI to audit what a PR added or removed.
|
|
666
|
+
|
|
667
|
+
```bash
|
|
668
|
+
kirograph snapshot save [label] # Save current graph state with optional label
|
|
669
|
+
kirograph snapshot save pre-refactor # Named snapshot
|
|
670
|
+
kirograph snapshot list # List all saved snapshots
|
|
671
|
+
kirograph snapshot diff # Diff current graph vs latest snapshot
|
|
672
|
+
kirograph snapshot diff pre-refactor # Diff current graph vs named snapshot
|
|
673
|
+
kirograph snapshot diff --format full # Show full added/removed symbol lists
|
|
674
|
+
kirograph snapshot diff --format json # JSON output
|
|
675
|
+
```
|
|
676
|
+
|
|
677
|
+
Snapshots are stored in `.kirograph/snapshots/` as JSON and include all node IDs and edge tuples. The diff is computed as a set operation — O(n) regardless of codebase size.
|
|
678
|
+
|
|
679
|
+
The `kirograph_diff` MCP tool exposes the same capability to the agent: compare the current graph against the latest (or a named) snapshot without leaving the conversation.
|
|
680
|
+
|
|
681
|
+
### Dead Code
|
|
682
|
+
|
|
683
|
+
Find unexported symbols with zero incoming references — candidates for removal.
|
|
684
|
+
|
|
685
|
+
```bash
|
|
686
|
+
kirograph dead-code [path] # List dead code grouped by file
|
|
687
|
+
kirograph dead-code --limit 20 # Limit results
|
|
688
|
+
kirograph dead-code --format json # JSON output
|
|
689
|
+
```
|
|
690
|
+
|
|
691
|
+
Only unexported symbols are considered, since exported symbols may be used by consumers outside the indexed project.
|
|
692
|
+
|
|
693
|
+
### Path
|
|
694
|
+
|
|
695
|
+
Find the shortest connection between any two symbols, traversing all edge types in both directions.
|
|
696
|
+
|
|
697
|
+
```bash
|
|
698
|
+
kirograph path <from> <to> # Find path between two symbols
|
|
699
|
+
kirograph path LoginController Pool # Example: how are these connected?
|
|
700
|
+
kirograph path --format json # JSON output
|
|
701
|
+
```
|
|
702
|
+
|
|
703
|
+
The command resolves symbol names using the same fuzzy search as `kirograph query`, preferring real symbol kinds (class, function, method…) over import/file nodes. The result shows each hop with file and line.
|
|
704
|
+
|
|
705
|
+
### Graph Export
|
|
706
|
+
|
|
707
|
+
Export the full graph as an interactive dashboard — three files served from a local directory, no server required, works offline.
|
|
708
|
+
|
|
709
|
+
```bash
|
|
710
|
+
kirograph export build [path] # Generate .kirograph/export/{index.html,app.css,app.js}
|
|
711
|
+
kirograph export start [path] # Generate and open in browser
|
|
712
|
+
kirograph export build -o /tmp/myexport # Custom output directory
|
|
713
|
+
kirograph export build --include-contains # Include structural contains edges (adds noise, off by default)
|
|
714
|
+
```
|
|
715
|
+
|
|
716
|
+
Output lands in `.kirograph/export/` by default. Open `index.html` in any browser.
|
|
717
|
+
|
|
718
|
+

|
|
719
|
+
|
|
720
|
+
#### Graph & navigation
|
|
721
|
+
|
|
722
|
+
- **Color-coded nodes** by kind (class, function, method, component…) with size proportional to degree
|
|
723
|
+
- **Directed edges** with kind labels; dashed lines for imports and references
|
|
724
|
+
- **Click a node** to zoom in and inspect it — kind, file, line, degree, signature, and a copy button for the file reference
|
|
725
|
+
- **Click two nodes** to instantly find and highlight the shortest path between them, with detail cards for both endpoints
|
|
726
|
+
- **History** — ‹ › navigation through previously inspected nodes
|
|
727
|
+
- **Keyboard shortcuts** — `f` to fit the graph, `Esc` to exit focus or path mode
|
|
728
|
+
|
|
729
|
+
#### Controls
|
|
730
|
+
|
|
731
|
+
| Button | What it does |
|
|
732
|
+
|--------|-------------|
|
|
733
|
+
| **⊞ Fit** | Fit the entire graph to the viewport |
|
|
734
|
+
| **⚡ Physics** | Toggle the force-directed layout |
|
|
735
|
+
| **⛶ Fullscreen** | Collapse the side panel for maximum graph space |
|
|
736
|
+
| **📷 PNG** | Save the current view as an image |
|
|
737
|
+
| **◎ Focus** | Show only the selected node and its direct neighbors |
|
|
738
|
+
| **⟶ Path** | Find the shortest path between two nodes |
|
|
739
|
+
| **⬡ Cluster** | Group nodes by directory; click a cluster to expand it |
|
|
740
|
+
| **🌡 Heat** | Color nodes by how recently their file was modified |
|
|
741
|
+
| **📊 Charts** | Open the analytics panel |
|
|
742
|
+
|
|
743
|
+
#### Search
|
|
744
|
+
|
|
745
|
+
Type to search by name, qualified name, or file path. Matching nodes are highlighted and the viewport fits to them.
|
|
746
|
+
|
|
747
|
+
#### Legend & filters
|
|
748
|
+
|
|
749
|
+
- **Node kind filter** — Legend tab; click any kind to hide or show all nodes of that type
|
|
750
|
+
- **Edge kind filter** — Legend tab; click any edge kind to hide or show edges of that type
|
|
751
|
+
- **Degree slider** — Filters tab; hide nodes below N connections to surface the most-connected symbols
|
|
752
|
+
|
|
753
|
+
#### Minimap
|
|
754
|
+
|
|
755
|
+
An overview of the full graph is always visible in the bottom-left corner. Click anywhere on it to pan the main graph.
|
|
756
|
+
|
|
757
|
+
#### Right-click menu
|
|
758
|
+
|
|
759
|
+
Right-click any node to focus its neighbors, start a path from it, copy its ID or file path, or highlight all nodes of the same kind.
|
|
760
|
+
|
|
761
|
+
#### Analytics charts
|
|
762
|
+
|
|
763
|
+
The 📊 Charts button opens a panel with three charts:
|
|
764
|
+
|
|
765
|
+
| Chart | What it shows |
|
|
766
|
+
|-------|--------------|
|
|
767
|
+
| **Bar** | The 15 most-connected symbols |
|
|
768
|
+
| **Donut** | How node kinds are distributed across the codebase |
|
|
769
|
+
| **Line** | How many symbols have each connection count — reveals the overall connectivity shape of the graph |
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
### Dashboard
|
|
773
|
+
|
|
774
|
+
When `semanticEngine` is set to `qdrant` or `typesense`, use these commands to manage the background server and its dashboard UI.
|
|
775
|
+
|
|
776
|
+
```bash
|
|
777
|
+
kirograph dashboard start [path] # Start server (if not running) and open dashboard
|
|
778
|
+
kirograph dashboard stop [path] # Stop the running engine server
|
|
779
|
+
```
|
|
780
|
+
|
|
781
|
+
**`dashboard start`**
|
|
782
|
+
|
|
783
|
+
Reads `semanticEngine` from `.kirograph/config.json` and dispatches accordingly:
|
|
784
|
+
|
|
785
|
+
- **qdrant**: Downloads the [Qdrant Web UI](https://github.com/qdrant/qdrant-web-ui) on first use (cached at `.kirograph/qdrant/dashboard/`), spawns the Qdrant server with `QDRANT__SERVICE__STATIC_CONTENT_DIR` set so the dashboard is served natively, and opens `http://127.0.0.1:<port>/dashboard` in your browser. If the server is already running with the dashboard, reconnects instead of restarting.
|
|
786
|
+
- **typesense**: Downloads the [Typesense Dashboard](https://github.com/bfritscher/typesense-dashboard) static UI on first use (cached at `.kirograph/typesense/dashboard/`), starts the Typesense server if not already running, serves the dashboard locally via a Node HTTP server, and opens it in your browser. Press Ctrl+C to stop the dashboard server — the Typesense server keeps running as a background daemon.
|
|
787
|
+
|
|
788
|
+
Both servers run as persistent daemons. The state file (`.kirograph/qdrant-server.json` or `.kirograph/typesense-server.json`) tracks the PID and port for reconnection across `kg` commands.
|
|
789
|
+
|
|
790
|
+
**`dashboard stop`**
|
|
791
|
+
|
|
792
|
+
Reads `semanticEngine` from config and sends SIGTERM to the running background process, then removes the state file. Does nothing if no server is running.
|
|
793
|
+
|
|
794
|
+
### MCP Server
|
|
795
|
+
|
|
796
|
+
```bash
|
|
797
|
+
kirograph serve --mcp # Start MCP server (used by Kiro)
|
|
798
|
+
kirograph serve --mcp --path /my/project # Specify project path
|
|
799
|
+
```
|
|
800
|
+
|
|
801
|
+
## Configuration
|
|
802
|
+
|
|
803
|
+
KiroGraph stores its config in `.kirograph/config.json`. You can edit it directly.
|
|
804
|
+
|
|
805
|
+
| Field | Type | Default | Description |
|
|
806
|
+
|-------|------|---------|-------------|
|
|
807
|
+
| `languages` | string[] | `[]` | Limit indexing to specific languages (empty = all) |
|
|
808
|
+
| `include` | string[] | `[]` | Glob patterns to include (empty = include everything not excluded) |
|
|
809
|
+
| `exclude` | string[] | see below | Glob patterns to exclude |
|
|
810
|
+
| `maxFileSize` | number | `1048576` | Skip files larger than this (bytes) |
|
|
811
|
+
| `extractDocstrings` | boolean | `true` | Extract JSDoc, docstrings, and comments |
|
|
812
|
+
| `trackCallSites` | boolean | `true` | Record line/column for call edges |
|
|
813
|
+
| `enableEmbeddings` | boolean | `false` | Generate semantic embeddings (opt-in) |
|
|
814
|
+
| `embeddingModel` | string | `nomic-ai/nomic-embed-text-v1.5` | HuggingFace `feature-extraction` model ID |
|
|
815
|
+
| `embeddingDim` | number | `768` | Output dimension of the chosen embedding model |
|
|
816
|
+
| `semanticEngine` | string | `cosine` | Search engine: `cosine`, `sqlite-vec`, `orama`, `pglite`, `lancedb`, `qdrant`, or `typesense` |
|
|
817
|
+
| `useVecIndex` | boolean | `false` | Deprecated alias for `semanticEngine: "sqlite-vec"` |
|
|
818
|
+
| `enableArchitecture` | boolean | `false` | Enable architecture analysis (package graph + layer detection, opt-in) |
|
|
819
|
+
| `architectureLayers` | object | — | Custom layer definitions: `{ "layerName": ["glob/**"] }` |
|
|
820
|
+
| `minLogLevel` | string | `warn` | Log level: `debug`, `info`, `warn`, `error` |
|
|
821
|
+
| `fuzzyResolutionThreshold` | number | `0.5` | Name matching threshold for cross-file resolution (0.0–1.0) |
|
|
822
|
+
| `cavemanMode` | string | `off` | Agent communication style: `off`, `lite`, `full`, `ultra` |
|
|
823
|
+
|
|
824
|
+
Default exclude patterns: `node_modules/**`, `dist/**`, `build/**`, `.git/**`, `*.min.js`, `.kirograph/**`
|
|
825
|
+
|
|
826
|
+
### Semantic Search (Optional)
|
|
827
|
+
|
|
828
|
+
By default, KiroGraph uses exact name lookup and full-text search. Enable semantic search for natural-language queries:
|
|
829
|
+
|
|
830
|
+
```json
|
|
831
|
+
{
|
|
832
|
+
"enableEmbeddings": true
|
|
833
|
+
}
|
|
834
|
+
```
|
|
835
|
+
|
|
836
|
+
This generates vector embeddings for all functions, methods, classes, interfaces, type aliases, components, and modules using a local embedding model (downloaded automatically to `~/.kirograph/models/` on first use). Embeddings are kept in sync automatically via Kiro hooks — on every file save, create, or delete.
|
|
837
|
+
|
|
838
|
+
Run `kirograph install` to be guided through model and engine selection interactively with arrow-key menus, or set the fields manually in `.kirograph/config.json`.
|
|
839
|
+
|
|
840
|
+
#### Embedding models
|
|
841
|
+
|
|
842
|
+
`kirograph install` offers a curated selection of models compatible with `@huggingface/transformers`:
|
|
843
|
+
|
|
844
|
+
| Model | Dim | Size | Notes |
|
|
845
|
+
|-------|-----|------|-------|
|
|
846
|
+
| `nomic-ai/nomic-embed-text-v1.5` | 768 | ~130MB | **Default.** Best quality for code search. |
|
|
847
|
+
| `onnx-community/embeddinggemma-300m-ONNX` | 768 | ~300MB | Google Gemma-based. Multilingual, 2048-token context window. |
|
|
848
|
+
| `Xenova/all-MiniLM-L6-v2` | 384 | ~23MB | Lightweight, fast. Lower accuracy. |
|
|
849
|
+
| `BAAI/bge-base-en-v1.5` | 768 | ~110MB | Strong general-purpose alternative to nomic. |
|
|
850
|
+
| Custom | any | — | Any HuggingFace `feature-extraction` model. Provide ID + output dimension. |
|
|
851
|
+
|
|
852
|
+
The embedding dimension is stored in `embeddingDim` in `.kirograph/config.json` and used to initialise all vector engines correctly. Switching models requires a full re-index (`kirograph index --force`).
|
|
853
|
+
|
|
854
|
+
Configure manually:
|
|
855
|
+
|
|
856
|
+
```json
|
|
857
|
+
{
|
|
858
|
+
"enableEmbeddings": true,
|
|
859
|
+
"embeddingModel": "onnx-community/embeddinggemma-300m-ONNX",
|
|
860
|
+
"embeddingDim": 768
|
|
861
|
+
}
|
|
862
|
+
```
|
|
863
|
+
|
|
864
|
+
#### Storage architecture
|
|
865
|
+
|
|
866
|
+
Each engine owns its embedding store exclusively — there is no redundant write to the main graph database:
|
|
867
|
+
|
|
868
|
+
| Engine | Graph store | Vector store |
|
|
869
|
+
|--------|-------------|--------------|
|
|
870
|
+
| `cosine` | `kirograph.db` (SQLite) | `kirograph.db` (`vectors` table) |
|
|
871
|
+
| `sqlite-vec` | `kirograph.db` (SQLite) | `.kirograph/vec.db` (sqlite-vec) |
|
|
872
|
+
| `orama` | `kirograph.db` (SQLite) | `.kirograph/orama.json` (Orama) |
|
|
873
|
+
| `pglite` | `kirograph.db` (SQLite) | `.kirograph/pglite/` (PGlite+pgvector) |
|
|
874
|
+
| `lancedb` | `kirograph.db` (SQLite) | `.kirograph/lancedb/` (Apache Lance) |
|
|
875
|
+
| `qdrant` | `kirograph.db` (SQLite) | `.kirograph/qdrant/` (Qdrant embedded) |
|
|
876
|
+
| `typesense` | `kirograph.db` (SQLite) | `.kirograph/typesense/` (Typesense embedded) |
|
|
877
|
+
|
|
878
|
+
The graph store (`kirograph.db`) always holds nodes, edges, files, and all structural data regardless of which engine is active.
|
|
879
|
+
|
|
880
|
+
#### Engine comparison
|
|
881
|
+
|
|
882
|
+
| Engine | Search type | Extra deps | Native? | Best for |
|
|
883
|
+
|--------|-------------|------------|---------|----------|
|
|
884
|
+
| `cosine` *(default)* | Exact cosine, linear scan | none | — | Small / medium projects, zero setup |
|
|
885
|
+
| `sqlite-vec` | ANN (approximate), sub-linear | `better-sqlite3`, `sqlite-vec` | yes | Large codebases, fast ANN search |
|
|
886
|
+
| `orama` | Hybrid (full-text + vector) | `@orama/orama`, `@orama/plugin-data-persistence` | no (pure JS) | Best result quality, no native deps |
|
|
887
|
+
| `pglite` | Hybrid (full-text + vector), exact | `@electric-sql/pglite` | no (pure WASM) | Exact results, no native deps, PostgreSQL semantics |
|
|
888
|
+
| `lancedb` | ANN (approximate), sub-linear | `@lancedb/lancedb` | no (pure JS) | Fast ANN search, no native compilation required |
|
|
889
|
+
| `qdrant` | ANN (HNSW), sub-linear | `qdrant-local` | yes (binary) | Full Qdrant feature set, HNSW index, embedded binary |
|
|
890
|
+
| `typesense` | ANN (HNSW), sub-linear | `typesense` | yes (binary) | Fast ANN search, auto-downloaded binary, no manual install |
|
|
891
|
+
|
|
892
|
+
All non-cosine engines fall back silently to `cosine` if their optional dependencies are not installed.
|
|
893
|
+
|
|
894
|
+
#### cosine (default)
|
|
895
|
+
|
|
896
|
+
In-process cosine similarity over all stored embeddings. No extra dependencies. Embeddings are stored in the `vectors` table inside `kirograph.db`.
|
|
897
|
+
|
|
898
|
+
```json
|
|
899
|
+
{
|
|
900
|
+
"enableEmbeddings": true,
|
|
901
|
+
"semanticEngine": "cosine"
|
|
902
|
+
}
|
|
903
|
+
```
|
|
904
|
+
|
|
905
|
+
#### sqlite-vec
|
|
906
|
+
|
|
907
|
+
Approximate nearest-neighbour (ANN) index stored in `.kirograph/vec.db`. Sub-linear search time — ideal for large codebases with thousands of indexed symbols. The SQLite `vectors` table is not written to; `vec.db` is the sole embedding store.
|
|
908
|
+
|
|
909
|
+
```json
|
|
910
|
+
{
|
|
911
|
+
"enableEmbeddings": true,
|
|
912
|
+
"semanticEngine": "sqlite-vec"
|
|
913
|
+
}
|
|
914
|
+
```
|
|
915
|
+
|
|
916
|
+
```bash
|
|
917
|
+
npm install better-sqlite3 sqlite-vec
|
|
918
|
+
```
|
|
919
|
+
|
|
920
|
+
Requires two native dependencies (compiled C extensions). If not installed, falls back to `cosine`.
|
|
921
|
+
|
|
922
|
+
#### orama
|
|
923
|
+
|
|
924
|
+
Hybrid search powered by [Orama](https://github.com/oramasearch/orama) — combines full-text relevance and vector similarity in a **single query**, producing higher-quality results than running the two searches separately. The index is persisted to `.kirograph/orama.json` and is the sole embedding store. Pure JS, no native compilation required.
|
|
925
|
+
|
|
926
|
+
```json
|
|
927
|
+
{
|
|
928
|
+
"enableEmbeddings": true,
|
|
929
|
+
"semanticEngine": "orama"
|
|
930
|
+
}
|
|
931
|
+
```
|
|
932
|
+
|
|
933
|
+
```bash
|
|
934
|
+
npm install @orama/orama @orama/plugin-data-persistence
|
|
935
|
+
```
|
|
936
|
+
|
|
937
|
+
If not installed, falls back to `cosine`.
|
|
938
|
+
|
|
939
|
+
#### pglite
|
|
940
|
+
|
|
941
|
+
Hybrid search powered by [PGlite](https://github.com/electric-sql/pglite) — a WASM-compiled PostgreSQL with the [pgvector](https://github.com/pgvector/pgvector) extension. Combines **exact** nearest-neighbour vector search with full-text ranking (`ts_rank`) in a single SQL query. The database is persisted to `.kirograph/pglite/` using PostgreSQL's WAL-based storage and is the sole embedding store. Pure WASM — no native compilation required.
|
|
942
|
+
|
|
943
|
+
```json
|
|
944
|
+
{
|
|
945
|
+
"enableEmbeddings": true,
|
|
946
|
+
"semanticEngine": "pglite"
|
|
947
|
+
}
|
|
948
|
+
```
|
|
949
|
+
|
|
950
|
+
```bash
|
|
951
|
+
npm install @electric-sql/pglite
|
|
952
|
+
```
|
|
953
|
+
|
|
954
|
+
Key advantages:
|
|
955
|
+
- **Exact** vector results (not approximate) — deterministic and reproducible
|
|
956
|
+
- Native SQL `ON CONFLICT` upsert — no remove+insert workaround
|
|
957
|
+
- HNSW index (`vector_cosine_ops`) keeps search fast as the index grows
|
|
958
|
+
- Single dependency, zero native binaries
|
|
959
|
+
|
|
960
|
+
If not installed, falls back to `cosine`.
|
|
961
|
+
|
|
962
|
+
#### LanceDB
|
|
963
|
+
|
|
964
|
+
ANN vector search powered by [LanceDB](https://github.com/lancedb/lancedb) — stores embeddings in Apache Lance columnar format at `.kirograph/lancedb/`. Sub-linear search time using cosine distance. Pure JS, no native compilation required.
|
|
965
|
+
|
|
966
|
+
```json
|
|
967
|
+
{
|
|
968
|
+
"enableEmbeddings": true,
|
|
969
|
+
"semanticEngine": "lancedb"
|
|
970
|
+
}
|
|
971
|
+
```
|
|
972
|
+
|
|
973
|
+
```bash
|
|
974
|
+
npm install @lancedb/lancedb
|
|
975
|
+
```
|
|
976
|
+
|
|
977
|
+
Key characteristics:
|
|
978
|
+
- **Columnar storage** (Apache Lance format) — efficient for batch reads and writes
|
|
979
|
+
- **ANN cosine search** — fast, sub-linear query time
|
|
980
|
+
- Pure JS — no native binaries or WASM required
|
|
981
|
+
|
|
982
|
+
If not installed, falls back to `cosine`.
|
|
983
|
+
|
|
984
|
+
#### qdrant
|
|
985
|
+
|
|
986
|
+
ANN vector search powered by [Qdrant](https://github.com/qdrant/qdrant) running in embedded mode. The engine spawns the Qdrant binary as a managed child process, persisting data to `.kirograph/qdrant/`. Uses [`@qdrant/qdrant-js`](https://github.com/qdrant/qdrant-js) as the REST client.
|
|
987
|
+
|
|
988
|
+
```json
|
|
989
|
+
{
|
|
990
|
+
"enableEmbeddings": true,
|
|
991
|
+
"semanticEngine": "qdrant"
|
|
992
|
+
}
|
|
993
|
+
```
|
|
994
|
+
|
|
995
|
+
```bash
|
|
996
|
+
npm install qdrant-local
|
|
997
|
+
```
|
|
998
|
+
|
|
999
|
+
Key characteristics:
|
|
1000
|
+
- **HNSW index** — high-quality ANN search with Qdrant's native indexing
|
|
1001
|
+
- **Embedded binary** — no separate server setup; the process is spawned and managed automatically
|
|
1002
|
+
- **Persistent daemon** — the server stays running between `kg` commands; state tracked in `.kirograph/qdrant-server.json`
|
|
1003
|
+
- **Built-in dashboard** — run `kg dashboard start` to download the [Qdrant Web UI](https://github.com/qdrant/qdrant-web-ui) and open it (cached at `.kirograph/qdrant/dashboard/`, served via Qdrant's built-in static content feature)
|
|
1004
|
+
- **Async startup** — polls `/readyz` instead of blocking with a fixed sleep
|
|
1005
|
+
- **Cosine distance** metric
|
|
1006
|
+
- Data persists across restarts in `.kirograph/qdrant/`
|
|
1007
|
+
|
|
1008
|
+
Manage the server:
|
|
1009
|
+
|
|
1010
|
+
```bash
|
|
1011
|
+
kirograph dashboard start # start server + open dashboard
|
|
1012
|
+
kirograph dashboard stop # stop server
|
|
1013
|
+
```
|
|
1014
|
+
|
|
1015
|
+
If not installed, falls back to `cosine`.
|
|
1016
|
+
|
|
1017
|
+
#### typesense
|
|
1018
|
+
|
|
1019
|
+
ANN vector search powered by [Typesense](https://github.com/typesense/typesense) running in embedded mode. The engine automatically downloads the Typesense server binary (~37 MB, cached at `~/.kirograph/bin/`) on first use and spawns it as a managed child process. Uses the official [`typesense`](https://www.npmjs.com/package/typesense) Node.js client.
|
|
1020
|
+
|
|
1021
|
+
```json
|
|
1022
|
+
{
|
|
1023
|
+
"enableEmbeddings": true,
|
|
1024
|
+
"semanticEngine": "typesense"
|
|
1025
|
+
}
|
|
1026
|
+
```
|
|
1027
|
+
|
|
1028
|
+
```bash
|
|
1029
|
+
npm install typesense
|
|
1030
|
+
```
|
|
1031
|
+
|
|
1032
|
+
Key characteristics:
|
|
1033
|
+
- **HNSW index** — high-quality ANN search with Typesense's native indexing
|
|
1034
|
+
- **Auto-downloaded binary** — no manual server setup; the binary is fetched and cached at `~/.kirograph/bin/` on first run
|
|
1035
|
+
- **Persistent daemon** — the server stays running between `kg` commands; state tracked in `.kirograph/typesense-server.json`
|
|
1036
|
+
- **Local dashboard** — run `kg dashboard start` to open the built-in Typesense Dashboard UI (served locally, cached at `.kirograph/typesense/dashboard/`)
|
|
1037
|
+
- **Async startup** — polls `/health` instead of blocking with a fixed sleep
|
|
1038
|
+
- **Cosine distance** metric
|
|
1039
|
+
- Data persists across restarts in `.kirograph/typesense/`
|
|
1040
|
+
|
|
1041
|
+
Manage the server:
|
|
1042
|
+
|
|
1043
|
+
```bash
|
|
1044
|
+
kirograph dashboard start # start server + open dashboard
|
|
1045
|
+
kirograph dashboard stop # stop server
|
|
1046
|
+
```
|
|
1047
|
+
|
|
1048
|
+
If not installed (or binary download fails), falls back to `cosine`.
|
|
1049
|
+
|
|
1050
|
+
### Architecture Analysis (opt-in)
|
|
1051
|
+
|
|
1052
|
+
When `enableArchitecture: true` is set, KiroGraph analyses the high-level structure of your project during indexing and populates `arch_*` tables in `kirograph.db`. Zero behavioral change when disabled.
|
|
1053
|
+
|
|
1054
|
+
#### What it detects
|
|
1055
|
+
|
|
1056
|
+
**Packages** — logical groupings of files. Detected two ways:
|
|
1057
|
+
|
|
1058
|
+
1. **Manifest-based** — parsed from `package.json`, `go.mod`, `Cargo.toml`, `pyproject.toml`/`setup.py`/`setup.cfg`, `pom.xml`, `build.gradle`/`build.gradle.kts`, and `.csproj` files. Produces IDs like `pkg:npm:src/auth`.
|
|
1059
|
+
2. **Directory fallback** — for files not covered by any manifest, groups them by their nearest ancestor directory. Produces IDs like `pkg:dir:src/utils`.
|
|
1060
|
+
|
|
1061
|
+
**Layers** — architectural tiers detected from file paths using per-language glob patterns:
|
|
1062
|
+
|
|
1063
|
+
| Layer | Examples |
|
|
1064
|
+
|-------|---------|
|
|
1065
|
+
| `api` | `**/controllers/**`, `**/routes/**`, `**/handlers/**`, `**/api/**` |
|
|
1066
|
+
| `service` | `**/services/**`, `**/usecases/**`, `**/domain/**` |
|
|
1067
|
+
| `data` | `**/repositories/**`, `**/models/**`, `**/db/**`, `**/migrations/**` |
|
|
1068
|
+
| `ui` | `**/components/**`, `**/views/**`, `**/pages/**`, `**/screens/**` |
|
|
1069
|
+
| `shared` | `**/utils/**`, `**/helpers/**`, `**/lib/**`, `**/common/**` |
|
|
1070
|
+
|
|
1071
|
+
Layer detection is per-language (TypeScript/JS, Python, Go, Java, Ruby, Rust, C#) with framework-specific patterns where applicable (Django, Rails, Spring MVC, ASP.NET, etc.). Custom layer overrides are supported via `architectureLayers` in config.
|
|
1072
|
+
|
|
1073
|
+
**Package dependencies** — rolled up from existing `imports` edges in the graph. No re-parsing required.
|
|
1074
|
+
|
|
1075
|
+
**Coupling metrics** — computed per package:
|
|
1076
|
+
- **Ca** (afferent) — how many other packages depend on this one
|
|
1077
|
+
- **Ce** (efferent) — how many packages this one depends on
|
|
1078
|
+
- **Instability** — `Ce / (Ca + Ce)`: 0 = maximally stable (everyone depends on it, it depends on nothing), 1 = maximally unstable (depends on everything, nobody depends on it)
|
|
1079
|
+
|
|
1080
|
+
#### Custom layer definitions
|
|
1081
|
+
|
|
1082
|
+
Override or extend the auto-detected layer patterns in `.kirograph/config.json`:
|
|
1083
|
+
|
|
1084
|
+
```json
|
|
1085
|
+
{
|
|
1086
|
+
"enableArchitecture": true,
|
|
1087
|
+
"architectureLayers": {
|
|
1088
|
+
"api": ["src/routes/**", "src/controllers/**"],
|
|
1089
|
+
"service": ["src/domain/**", "src/application/**"],
|
|
1090
|
+
"data": ["src/infrastructure/**", "src/persistence/**"]
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
```
|
|
1094
|
+
|
|
1095
|
+
When `architectureLayers` is set, those patterns take precedence over the auto-detected ones for the specified layer names.
|
|
1096
|
+
|
|
1097
|
+
#### Storage
|
|
1098
|
+
|
|
1099
|
+
All architecture data is stored in `kirograph.db` alongside the symbol graph:
|
|
1100
|
+
|
|
1101
|
+
| Table | Contents |
|
|
1102
|
+
|-------|---------|
|
|
1103
|
+
| `arch_packages` | Package definitions (id, name, path, source, language, version, deps) |
|
|
1104
|
+
| `arch_layers` | Layer definitions (id, name, patterns) |
|
|
1105
|
+
| `arch_file_packages` | File → package assignments |
|
|
1106
|
+
| `arch_file_layers` | File → layer assignments (with confidence score) |
|
|
1107
|
+
| `arch_package_deps` | Package → package dependency edges (with import count) |
|
|
1108
|
+
| `arch_layer_deps` | Layer → layer dependency edges |
|
|
1109
|
+
| `arch_coupling` | Per-package Ca, Ce, instability metrics |
|
|
1110
|
+
|
|
1111
|
+
#### IndexProgress phase
|
|
1112
|
+
|
|
1113
|
+
Architecture analysis runs as a dedicated phase during `kirograph index`. Progress is reported with `phase: 'architecture'`.
|
|
1114
|
+
|
|
1115
|
+
## Supported Languages
|
|
1116
|
+
|
|
1117
|
+
| Language | Extensions |
|
|
1118
|
+
|----------|-----------|
|
|
1119
|
+
| TypeScript | `.ts` |
|
|
1120
|
+
| JavaScript | `.js` |
|
|
1121
|
+
| TSX | `.tsx` |
|
|
1122
|
+
| JSX | `.jsx` |
|
|
1123
|
+
| Python | `.py` |
|
|
1124
|
+
| Go | `.go` |
|
|
1125
|
+
| Rust | `.rs` |
|
|
1126
|
+
| Java | `.java` |
|
|
1127
|
+
| C | `.c`, `.h` |
|
|
1128
|
+
| C++ | `.cpp`, `.cc`, `.cxx`, `.hpp` |
|
|
1129
|
+
| C# | `.cs` |
|
|
1130
|
+
| PHP | `.php` |
|
|
1131
|
+
| Ruby | `.rb` |
|
|
1132
|
+
| Swift | `.swift` |
|
|
1133
|
+
| Kotlin | `.kt` |
|
|
1134
|
+
| Dart | `.dart` |
|
|
1135
|
+
| Svelte | `.svelte` |
|
|
1136
|
+
| Elixir | `.ex`, `.exs` |
|
|
1137
|
+
|
|
1138
|
+
## Framework Detection
|
|
1139
|
+
|
|
1140
|
+
KiroGraph automatically detects frameworks and enriches the graph with framework-specific semantics (routes, components, lifecycle methods):
|
|
1141
|
+
|
|
1142
|
+
**JavaScript / TypeScript:** React, Next.js, React Native, Svelte, SvelteKit, Express, Fastify, Koa
|
|
1143
|
+
|
|
1144
|
+
**Python:** Django, Flask, FastAPI
|
|
1145
|
+
|
|
1146
|
+
**Ruby:** Rails
|
|
1147
|
+
|
|
1148
|
+
**Java:** Spring, Spring Boot, Spring MVC
|
|
1149
|
+
|
|
1150
|
+
**Go:** generic Go resolver
|
|
1151
|
+
|
|
1152
|
+
**Rust:** generic Rust resolver
|
|
1153
|
+
|
|
1154
|
+
**C#:** ASP.NET Core
|
|
1155
|
+
|
|
1156
|
+
**Swift:** SwiftUI, UIKit, Vapor
|
|
1157
|
+
|
|
1158
|
+
**PHP:** Laravel
|
|
1159
|
+
|
|
1160
|
+
**Elixir:** Phoenix
|
|
1161
|
+
|
|
1162
|
+
Detected frameworks are stored in config and used to improve symbol extraction and resolution.
|
|
1163
|
+
|
|
1164
|
+
## Requirements
|
|
1165
|
+
|
|
1166
|
+
- Node.js >= 18
|
|
1167
|
+
- Kiro IDE
|
|
1168
|
+
|
|
1169
|
+
## License
|
|
1170
|
+
|
|
1171
|
+
MIT
|