kirograph 0.28.0 → 1.0.0
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/dist/architecture/index.js +4 -1
- package/dist/architecture/index.js.map +2 -2
- package/dist/architecture/manifest/index.js +13 -2
- package/dist/architecture/manifest/index.js.map +2 -2
- package/dist/bin/commands/install.js +2 -1
- package/dist/bin/commands/install.js.map +2 -2
- package/dist/bin/commands/status.js +2 -1
- package/dist/bin/commands/status.js.map +2 -2
- package/dist/bin/commands/uninit.js +2 -1
- package/dist/bin/commands/uninit.js.map +2 -2
- package/dist/bin/commands/vulns.js +10 -5
- package/dist/bin/commands/vulns.js.map +2 -2
- package/dist/bin/installer/common.js +7 -1
- package/dist/bin/installer/common.js.map +2 -2
- package/dist/bin/installer/config-prompt.js +117 -100
- package/dist/bin/installer/config-prompt.js.map +3 -3
- package/dist/bin/installer/detect.js +10 -0
- package/dist/bin/installer/detect.js.map +2 -2
- package/dist/bin/installer/hooks.js +13 -8
- package/dist/bin/installer/hooks.js.map +2 -2
- package/dist/bin/installer/targets/antigravity.js +1 -1
- package/dist/bin/installer/targets/antigravity.js.map +2 -2
- package/dist/bin/installer/targets/claude.js +1 -1
- package/dist/bin/installer/targets/claude.js.map +2 -2
- package/dist/bin/installer/targets/codex.js +1 -1
- package/dist/bin/installer/targets/codex.js.map +2 -2
- package/dist/bin/installer/targets/commandcode.js +84 -0
- package/dist/bin/installer/targets/commandcode.js.map +7 -0
- package/dist/bin/installer/targets/copilot.js +1 -1
- package/dist/bin/installer/targets/copilot.js.map +2 -2
- package/dist/bin/installer/targets/cursor.js +2 -2
- package/dist/bin/installer/targets/cursor.js.map +2 -2
- package/dist/bin/installer/targets/devin.js +1 -1
- package/dist/bin/installer/targets/devin.js.map +2 -2
- package/dist/bin/installer/targets/gemini-cli.js +1 -1
- package/dist/bin/installer/targets/gemini-cli.js.map +2 -2
- package/dist/bin/installer/targets/index.js +10 -0
- package/dist/bin/installer/targets/index.js.map +2 -2
- package/dist/bin/installer/targets/opencode.js +1 -1
- package/dist/bin/installer/targets/opencode.js.map +2 -2
- package/dist/bin/installer/targets/windsurf.js +1 -1
- package/dist/bin/installer/targets/windsurf.js.map +2 -2
- package/dist/bin/kirograph.js +1 -1
- package/dist/bin/kirograph.js.map +1 -1
- package/dist/config.js +21 -1
- package/dist/config.js.map +2 -2
- package/dist/core/pipeline.js +18 -6
- package/dist/core/pipeline.js.map +2 -2
- package/dist/extraction/extractor.js +58 -1
- package/dist/extraction/extractor.js.map +2 -2
- package/dist/extraction/grammars.js +38 -3
- package/dist/extraction/grammars.js.map +2 -2
- package/dist/extraction/wasm/tree-sitter-bash.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-c.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-c_sharp.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-cpp.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-csharp.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-css.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-dart.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-elisp.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-elixir.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-elm.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-embedded_template.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-embeddedtemplate.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-go.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-html.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-java.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-javascript.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-json.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-lua.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-objc.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-ocaml.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-php.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-python.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-ql.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-rescript.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-ruby.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-rust.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-solidity.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-swift.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-systemrdl.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-tlaplus.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-toml.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-tsx.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-typescript.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-vue.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-yaml.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-zig.wasm +0 -0
- package/dist/frameworks/index.js +68 -7
- package/dist/frameworks/index.js.map +2 -2
- package/dist/security/manifest/adapter.js +17 -2
- package/dist/security/manifest/adapter.js.map +2 -2
- package/dist/security/manifest/parser.js +2 -2
- package/dist/security/manifest/parser.js.map +2 -2
- package/dist/security/pipeline.js +4 -1
- package/dist/security/pipeline.js.map +2 -2
- package/dist/security/reachability.js +61 -45
- package/dist/security/reachability.js.map +3 -3
- package/dist/security/types.js.map +1 -1
- package/dist/security/vuln/epss-client.js +1 -1
- package/dist/security/vuln/epss-client.js.map +1 -1
- package/dist/security/vuln/osv-adapter.js +99 -31
- package/dist/security/vuln/osv-adapter.js.map +2 -2
- package/dist/sync/index.js +9 -2
- package/dist/sync/index.js.map +2 -2
- package/dist/vectors/libsql-index.js +287 -0
- package/dist/vectors/libsql-index.js.map +7 -0
- package/dist/vectors/turso-index.js +307 -0
- package/dist/vectors/turso-index.js.map +7 -0
- package/package.json +3 -2
- package/dist/architecture/index.d.ts +0 -11
- package/dist/architecture/index.d.ts.map +0 -1
- package/dist/architecture/layers/csharp.d.ts +0 -6
- package/dist/architecture/layers/csharp.d.ts.map +0 -1
- package/dist/architecture/layers/dart.d.ts +0 -10
- package/dist/architecture/layers/dart.d.ts.map +0 -1
- package/dist/architecture/layers/elixir.d.ts +0 -6
- package/dist/architecture/layers/elixir.d.ts.map +0 -1
- package/dist/architecture/layers/go.d.ts +0 -7
- package/dist/architecture/layers/go.d.ts.map +0 -1
- package/dist/architecture/layers/index.d.ts +0 -30
- package/dist/architecture/layers/index.d.ts.map +0 -1
- package/dist/architecture/layers/java.d.ts +0 -7
- package/dist/architecture/layers/java.d.ts.map +0 -1
- package/dist/architecture/layers/ocaml.d.ts +0 -6
- package/dist/architecture/layers/ocaml.d.ts.map +0 -1
- package/dist/architecture/layers/python.d.ts +0 -7
- package/dist/architecture/layers/python.d.ts.map +0 -1
- package/dist/architecture/layers/ruby.d.ts +0 -6
- package/dist/architecture/layers/ruby.d.ts.map +0 -1
- package/dist/architecture/layers/rust.d.ts +0 -6
- package/dist/architecture/layers/rust.d.ts.map +0 -1
- package/dist/architecture/layers/scala.d.ts +0 -6
- package/dist/architecture/layers/scala.d.ts.map +0 -1
- package/dist/architecture/layers/solidity.d.ts +0 -6
- package/dist/architecture/layers/solidity.d.ts.map +0 -1
- package/dist/architecture/layers/types.d.ts +0 -2
- package/dist/architecture/layers/types.d.ts.map +0 -1
- package/dist/architecture/layers/typescript.d.ts +0 -9
- package/dist/architecture/layers/typescript.d.ts.map +0 -1
- package/dist/architecture/layers/vue.d.ts +0 -6
- package/dist/architecture/layers/vue.d.ts.map +0 -1
- package/dist/architecture/manifest/cargo.d.ts +0 -3
- package/dist/architecture/manifest/cargo.d.ts.map +0 -1
- package/dist/architecture/manifest/csproj.d.ts +0 -3
- package/dist/architecture/manifest/csproj.d.ts.map +0 -1
- package/dist/architecture/manifest/elm.d.ts +0 -3
- package/dist/architecture/manifest/elm.d.ts.map +0 -1
- package/dist/architecture/manifest/go.d.ts +0 -3
- package/dist/architecture/manifest/go.d.ts.map +0 -1
- package/dist/architecture/manifest/gradle.d.ts +0 -3
- package/dist/architecture/manifest/gradle.d.ts.map +0 -1
- package/dist/architecture/manifest/index.d.ts +0 -12
- package/dist/architecture/manifest/index.d.ts.map +0 -1
- package/dist/architecture/manifest/maven.d.ts +0 -3
- package/dist/architecture/manifest/maven.d.ts.map +0 -1
- package/dist/architecture/manifest/npm.d.ts +0 -3
- package/dist/architecture/manifest/npm.d.ts.map +0 -1
- package/dist/architecture/manifest/ocaml.d.ts +0 -3
- package/dist/architecture/manifest/ocaml.d.ts.map +0 -1
- package/dist/architecture/manifest/python.d.ts +0 -3
- package/dist/architecture/manifest/python.d.ts.map +0 -1
- package/dist/architecture/manifest/scala.d.ts +0 -3
- package/dist/architecture/manifest/scala.d.ts.map +0 -1
- package/dist/architecture/manifest/types.d.ts +0 -2
- package/dist/architecture/manifest/types.d.ts.map +0 -1
- package/dist/architecture/types.d.ts +0 -91
- package/dist/architecture/types.d.ts.map +0 -1
- package/dist/banner.d.ts +0 -6
- package/dist/banner.d.ts.map +0 -1
- package/dist/banner.js +0 -67
- package/dist/banner.js.map +0 -1
- package/dist/bin/banner.d.ts +0 -6
- package/dist/bin/banner.d.ts.map +0 -1
- package/dist/bin/commands/affected.d.ts +0 -3
- package/dist/bin/commands/affected.d.ts.map +0 -1
- package/dist/bin/commands/architecture.d.ts +0 -3
- package/dist/bin/commands/architecture.d.ts.map +0 -1
- package/dist/bin/commands/attack-surface.d.ts +0 -3
- package/dist/bin/commands/attack-surface.d.ts.map +0 -1
- package/dist/bin/commands/benchmark.d.ts +0 -9
- package/dist/bin/commands/benchmark.d.ts.map +0 -1
- package/dist/bin/commands/budget.d.ts +0 -6
- package/dist/bin/commands/budget.d.ts.map +0 -1
- package/dist/bin/commands/caveman.d.ts +0 -7
- package/dist/bin/commands/caveman.d.ts.map +0 -1
- package/dist/bin/commands/communities.d.ts +0 -3
- package/dist/bin/commands/communities.d.ts.map +0 -1
- package/dist/bin/commands/compression.d.ts +0 -7
- package/dist/bin/commands/compression.d.ts.map +0 -1
- package/dist/bin/commands/configure-mcp.js +0 -104
- package/dist/bin/commands/configure-mcp.js.map +0 -7
- package/dist/bin/commands/context.d.ts +0 -3
- package/dist/bin/commands/context.d.ts.map +0 -1
- package/dist/bin/commands/coupling.d.ts +0 -3
- package/dist/bin/commands/coupling.d.ts.map +0 -1
- package/dist/bin/commands/dashboard.d.ts +0 -3
- package/dist/bin/commands/dashboard.d.ts.map +0 -1
- package/dist/bin/commands/data.d.ts +0 -3
- package/dist/bin/commands/data.d.ts.map +0 -1
- package/dist/bin/commands/dead-code.d.ts +0 -3
- package/dist/bin/commands/dead-code.d.ts.map +0 -1
- package/dist/bin/commands/dep-confusion.d.ts +0 -3
- package/dist/bin/commands/dep-confusion.d.ts.map +0 -1
- package/dist/bin/commands/docs.d.ts +0 -3
- package/dist/bin/commands/docs.d.ts.map +0 -1
- package/dist/bin/commands/exec.d.ts +0 -11
- package/dist/bin/commands/exec.d.ts.map +0 -1
- package/dist/bin/commands/export.d.ts +0 -3
- package/dist/bin/commands/export.d.ts.map +0 -1
- package/dist/bin/commands/files.d.ts +0 -3
- package/dist/bin/commands/files.d.ts.map +0 -1
- package/dist/bin/commands/flows.d.ts +0 -3
- package/dist/bin/commands/flows.d.ts.map +0 -1
- package/dist/bin/commands/gain.d.ts +0 -6
- package/dist/bin/commands/gain.d.ts.map +0 -1
- package/dist/bin/commands/help.d.ts +0 -11
- package/dist/bin/commands/help.d.ts.map +0 -1
- package/dist/bin/commands/hotspots.d.ts +0 -3
- package/dist/bin/commands/hotspots.d.ts.map +0 -1
- package/dist/bin/commands/index.d.ts +0 -3
- package/dist/bin/commands/index.d.ts.map +0 -1
- package/dist/bin/commands/init.d.ts +0 -3
- package/dist/bin/commands/init.d.ts.map +0 -1
- package/dist/bin/commands/install.d.ts +0 -3
- package/dist/bin/commands/install.d.ts.map +0 -1
- package/dist/bin/commands/licenses.d.ts +0 -3
- package/dist/bin/commands/licenses.d.ts.map +0 -1
- package/dist/bin/commands/mark-dirty.d.ts +0 -3
- package/dist/bin/commands/mark-dirty.d.ts.map +0 -1
- package/dist/bin/commands/memory.d.ts +0 -16
- package/dist/bin/commands/memory.d.ts.map +0 -1
- package/dist/bin/commands/package.d.ts +0 -3
- package/dist/bin/commands/package.d.ts.map +0 -1
- package/dist/bin/commands/path.d.ts +0 -3
- package/dist/bin/commands/path.d.ts.map +0 -1
- package/dist/bin/commands/pattern.d.ts +0 -3
- package/dist/bin/commands/pattern.d.ts.map +0 -1
- package/dist/bin/commands/qdrant.d.ts +0 -3
- package/dist/bin/commands/qdrant.d.ts.map +0 -1
- package/dist/bin/commands/qdrant.js +0 -159
- package/dist/bin/commands/qdrant.js.map +0 -1
- package/dist/bin/commands/query.d.ts +0 -3
- package/dist/bin/commands/query.d.ts.map +0 -1
- package/dist/bin/commands/reachability.d.ts +0 -3
- package/dist/bin/commands/reachability.d.ts.map +0 -1
- package/dist/bin/commands/read.d.ts +0 -6
- package/dist/bin/commands/read.d.ts.map +0 -1
- package/dist/bin/commands/refactor.d.ts +0 -3
- package/dist/bin/commands/refactor.d.ts.map +0 -1
- package/dist/bin/commands/remediation.d.ts +0 -3
- package/dist/bin/commands/remediation.d.ts.map +0 -1
- package/dist/bin/commands/sbom.d.ts +0 -3
- package/dist/bin/commands/sbom.d.ts.map +0 -1
- package/dist/bin/commands/security-ci-report.d.ts +0 -9
- package/dist/bin/commands/security-ci-report.d.ts.map +0 -1
- package/dist/bin/commands/security-export.d.ts +0 -2
- package/dist/bin/commands/security-export.d.ts.map +0 -1
- package/dist/bin/commands/security-flows.d.ts +0 -3
- package/dist/bin/commands/security-flows.d.ts.map +0 -1
- package/dist/bin/commands/security-secrets.d.ts +0 -3
- package/dist/bin/commands/security-secrets.d.ts.map +0 -1
- package/dist/bin/commands/security.d.ts +0 -3
- package/dist/bin/commands/security.d.ts.map +0 -1
- package/dist/bin/commands/serve.d.ts +0 -3
- package/dist/bin/commands/serve.d.ts.map +0 -1
- package/dist/bin/commands/snapshot.d.ts +0 -3
- package/dist/bin/commands/snapshot.d.ts.map +0 -1
- package/dist/bin/commands/staleness.d.ts +0 -3
- package/dist/bin/commands/staleness.d.ts.map +0 -1
- package/dist/bin/commands/status.d.ts +0 -3
- package/dist/bin/commands/status.d.ts.map +0 -1
- package/dist/bin/commands/stop.d.ts +0 -3
- package/dist/bin/commands/stop.d.ts.map +0 -1
- package/dist/bin/commands/stop.js +0 -81
- package/dist/bin/commands/stop.js.map +0 -1
- package/dist/bin/commands/supply-chain.d.ts +0 -3
- package/dist/bin/commands/supply-chain.d.ts.map +0 -1
- package/dist/bin/commands/surprising.d.ts +0 -3
- package/dist/bin/commands/surprising.d.ts.map +0 -1
- package/dist/bin/commands/sync-if-dirty.d.ts +0 -3
- package/dist/bin/commands/sync-if-dirty.d.ts.map +0 -1
- package/dist/bin/commands/sync.d.ts +0 -3
- package/dist/bin/commands/sync.d.ts.map +0 -1
- package/dist/bin/commands/typesense.d.ts +0 -3
- package/dist/bin/commands/typesense.d.ts.map +0 -1
- package/dist/bin/commands/typesense.js +0 -126
- package/dist/bin/commands/typesense.js.map +0 -1
- package/dist/bin/commands/uninit.d.ts +0 -4
- package/dist/bin/commands/uninit.d.ts.map +0 -1
- package/dist/bin/commands/unlock.d.ts +0 -3
- package/dist/bin/commands/unlock.d.ts.map +0 -1
- package/dist/bin/commands/utils.d.ts +0 -17
- package/dist/bin/commands/utils.d.ts.map +0 -1
- package/dist/bin/commands/vex.d.ts +0 -3
- package/dist/bin/commands/vex.d.ts.map +0 -1
- package/dist/bin/commands/vuln-suppress.d.ts +0 -3
- package/dist/bin/commands/vuln-suppress.d.ts.map +0 -1
- package/dist/bin/commands/vulns.d.ts +0 -3
- package/dist/bin/commands/vulns.d.ts.map +0 -1
- package/dist/bin/installer/archive.d.ts +0 -47
- package/dist/bin/installer/archive.d.ts.map +0 -1
- package/dist/bin/installer/auto-detect.d.ts +0 -16
- package/dist/bin/installer/auto-detect.d.ts.map +0 -1
- package/dist/bin/installer/caveman.d.ts +0 -12
- package/dist/bin/installer/caveman.d.ts.map +0 -1
- package/dist/bin/installer/cli-agent.d.ts +0 -20
- package/dist/bin/installer/cli-agent.d.ts.map +0 -1
- package/dist/bin/installer/common.d.ts +0 -36
- package/dist/bin/installer/common.d.ts.map +0 -1
- package/dist/bin/installer/config-prompt.d.ts +0 -13
- package/dist/bin/installer/config-prompt.d.ts.map +0 -1
- package/dist/bin/installer/dashboard.d.ts +0 -3
- package/dist/bin/installer/dashboard.d.ts.map +0 -1
- package/dist/bin/installer/detect.d.ts +0 -30
- package/dist/bin/installer/detect.d.ts.map +0 -1
- package/dist/bin/installer/hooks.d.ts +0 -8
- package/dist/bin/installer/hooks.d.ts.map +0 -1
- package/dist/bin/installer/index.d.ts +0 -12
- package/dist/bin/installer/index.d.ts.map +0 -1
- package/dist/bin/installer/instructions.d.ts +0 -14
- package/dist/bin/installer/instructions.d.ts.map +0 -1
- package/dist/bin/installer/mcp.d.ts +0 -5
- package/dist/bin/installer/mcp.d.ts.map +0 -1
- package/dist/bin/installer/prompts.d.ts +0 -45
- package/dist/bin/installer/prompts.d.ts.map +0 -1
- package/dist/bin/installer/qdrant-dashboard.d.ts +0 -4
- package/dist/bin/installer/qdrant-dashboard.d.ts.map +0 -1
- package/dist/bin/installer/steering.d.ts +0 -17
- package/dist/bin/installer/steering.d.ts.map +0 -1
- package/dist/bin/installer/targets/aider.d.ts +0 -6
- package/dist/bin/installer/targets/aider.d.ts.map +0 -1
- package/dist/bin/installer/targets/amp.d.ts +0 -6
- package/dist/bin/installer/targets/amp.d.ts.map +0 -1
- package/dist/bin/installer/targets/antigravity.d.ts +0 -13
- package/dist/bin/installer/targets/antigravity.d.ts.map +0 -1
- package/dist/bin/installer/targets/augment.d.ts +0 -6
- package/dist/bin/installer/targets/augment.d.ts.map +0 -1
- package/dist/bin/installer/targets/claude.d.ts +0 -6
- package/dist/bin/installer/targets/claude.d.ts.map +0 -1
- package/dist/bin/installer/targets/cline.d.ts +0 -13
- package/dist/bin/installer/targets/cline.d.ts.map +0 -1
- package/dist/bin/installer/targets/codex.d.ts +0 -6
- package/dist/bin/installer/targets/codex.d.ts.map +0 -1
- package/dist/bin/installer/targets/continue.d.ts +0 -12
- package/dist/bin/installer/targets/continue.d.ts.map +0 -1
- package/dist/bin/installer/targets/copilot-cli.d.ts +0 -12
- package/dist/bin/installer/targets/copilot-cli.d.ts.map +0 -1
- package/dist/bin/installer/targets/copilot.d.ts +0 -6
- package/dist/bin/installer/targets/copilot.d.ts.map +0 -1
- package/dist/bin/installer/targets/cursor.d.ts +0 -6
- package/dist/bin/installer/targets/cursor.d.ts.map +0 -1
- package/dist/bin/installer/targets/devin.d.ts +0 -13
- package/dist/bin/installer/targets/devin.d.ts.map +0 -1
- package/dist/bin/installer/targets/gemini-cli.d.ts +0 -16
- package/dist/bin/installer/targets/gemini-cli.d.ts.map +0 -1
- package/dist/bin/installer/targets/generic.d.ts +0 -59
- package/dist/bin/installer/targets/generic.d.ts.map +0 -1
- package/dist/bin/installer/targets/goose.d.ts +0 -6
- package/dist/bin/installer/targets/goose.d.ts.map +0 -1
- package/dist/bin/installer/targets/index.d.ts +0 -11
- package/dist/bin/installer/targets/index.d.ts.map +0 -1
- package/dist/bin/installer/targets/junie.d.ts +0 -13
- package/dist/bin/installer/targets/junie.d.ts.map +0 -1
- package/dist/bin/installer/targets/kilo.d.ts +0 -12
- package/dist/bin/installer/targets/kilo.d.ts.map +0 -1
- package/dist/bin/installer/targets/kiro.d.ts +0 -5
- package/dist/bin/installer/targets/kiro.d.ts.map +0 -1
- package/dist/bin/installer/targets/opencode.d.ts +0 -13
- package/dist/bin/installer/targets/opencode.d.ts.map +0 -1
- package/dist/bin/installer/targets/openhands.d.ts +0 -6
- package/dist/bin/installer/targets/openhands.d.ts.map +0 -1
- package/dist/bin/installer/targets/qoder.d.ts +0 -12
- package/dist/bin/installer/targets/qoder.d.ts.map +0 -1
- package/dist/bin/installer/targets/qwen.d.ts +0 -12
- package/dist/bin/installer/targets/qwen.d.ts.map +0 -1
- package/dist/bin/installer/targets/replit.d.ts +0 -6
- package/dist/bin/installer/targets/replit.d.ts.map +0 -1
- package/dist/bin/installer/targets/roo.d.ts +0 -13
- package/dist/bin/installer/targets/roo.d.ts.map +0 -1
- package/dist/bin/installer/targets/tabnine.d.ts +0 -6
- package/dist/bin/installer/targets/tabnine.d.ts.map +0 -1
- package/dist/bin/installer/targets/trae.d.ts +0 -6
- package/dist/bin/installer/targets/trae.d.ts.map +0 -1
- package/dist/bin/installer/targets/warp.d.ts +0 -12
- package/dist/bin/installer/targets/warp.d.ts.map +0 -1
- package/dist/bin/installer/targets/windsurf.d.ts +0 -13
- package/dist/bin/installer/targets/windsurf.d.ts.map +0 -1
- package/dist/bin/kirograph.d.ts +0 -6
- package/dist/bin/kirograph.d.ts.map +0 -1
- package/dist/bin/progress.d.ts +0 -29
- package/dist/bin/progress.d.ts.map +0 -1
- package/dist/bin/ui.d.ts +0 -11
- package/dist/bin/ui.d.ts.map +0 -1
- package/dist/compression/filters/aws.d.ts +0 -9
- package/dist/compression/filters/aws.d.ts.map +0 -1
- package/dist/compression/filters/docker.d.ts +0 -6
- package/dist/compression/filters/docker.d.ts.map +0 -1
- package/dist/compression/filters/files.d.ts +0 -6
- package/dist/compression/filters/files.d.ts.map +0 -1
- package/dist/compression/filters/generic.d.ts +0 -7
- package/dist/compression/filters/generic.d.ts.map +0 -1
- package/dist/compression/filters/git.d.ts +0 -6
- package/dist/compression/filters/git.d.ts.map +0 -1
- package/dist/compression/filters/github.d.ts +0 -6
- package/dist/compression/filters/github.d.ts.map +0 -1
- package/dist/compression/filters/lint.d.ts +0 -6
- package/dist/compression/filters/lint.d.ts.map +0 -1
- package/dist/compression/filters/misc.d.ts +0 -6
- package/dist/compression/filters/misc.d.ts.map +0 -1
- package/dist/compression/filters/package.d.ts +0 -6
- package/dist/compression/filters/package.d.ts.map +0 -1
- package/dist/compression/filters/test.d.ts +0 -6
- package/dist/compression/filters/test.d.ts.map +0 -1
- package/dist/compression/index.d.ts +0 -29
- package/dist/compression/index.d.ts.map +0 -1
- package/dist/compression/naive-cost.d.ts +0 -26
- package/dist/compression/naive-cost.d.ts.map +0 -1
- package/dist/compression/tracker.d.ts +0 -155
- package/dist/compression/tracker.d.ts.map +0 -1
- package/dist/compression/types.d.ts +0 -49
- package/dist/compression/types.d.ts.map +0 -1
- package/dist/config.d.ts +0 -138
- package/dist/config.d.ts.map +0 -1
- package/dist/context/index.d.ts +0 -61
- package/dist/context/index.d.ts.map +0 -1
- package/dist/core/file-tree.d.ts +0 -15
- package/dist/core/file-tree.d.ts.map +0 -1
- package/dist/core/lock-manager.d.ts +0 -22
- package/dist/core/lock-manager.d.ts.map +0 -1
- package/dist/core/pipeline.d.ts +0 -40
- package/dist/core/pipeline.d.ts.map +0 -1
- package/dist/core/snapshot.d.ts +0 -58
- package/dist/core/snapshot.d.ts.map +0 -1
- package/dist/data/filters.d.ts +0 -23
- package/dist/data/filters.d.ts.map +0 -1
- package/dist/data/indexer.d.ts +0 -25
- package/dist/data/indexer.d.ts.map +0 -1
- package/dist/data/linker.d.ts +0 -37
- package/dist/data/linker.d.ts.map +0 -1
- package/dist/data/linker.test.js +0 -60
- package/dist/data/linker.test.js.map +0 -7
- package/dist/data/lint.d.ts +0 -27
- package/dist/data/lint.d.ts.map +0 -1
- package/dist/data/parsers/__fixtures__/pdf-inspector-stub.js +0 -41
- package/dist/data/parsers/__fixtures__/pdf-inspector-stub.js.map +0 -7
- package/dist/data/parsers/csv.d.ts +0 -11
- package/dist/data/parsers/csv.d.ts.map +0 -1
- package/dist/data/parsers/excel.d.ts +0 -10
- package/dist/data/parsers/excel.d.ts.map +0 -1
- package/dist/data/parsers/index.d.ts +0 -28
- package/dist/data/parsers/index.d.ts.map +0 -1
- package/dist/data/parsers/json-array.d.ts +0 -9
- package/dist/data/parsers/json-array.d.ts.map +0 -1
- package/dist/data/parsers/jsonl.d.ts +0 -9
- package/dist/data/parsers/jsonl.d.ts.map +0 -1
- package/dist/data/parsers/parquet.d.ts +0 -10
- package/dist/data/parsers/parquet.d.ts.map +0 -1
- package/dist/data/parsers/pdf.test.js +0 -125
- package/dist/data/parsers/pdf.test.js.map +0 -7
- package/dist/data/pixelrag-bridge.js +0 -93
- package/dist/data/pixelrag-bridge.js.map +0 -7
- package/dist/data/pixelrag-manager.js +0 -416
- package/dist/data/pixelrag-manager.js.map +0 -7
- package/dist/data/profiler.d.ts +0 -29
- package/dist/data/profiler.d.ts.map +0 -1
- package/dist/data/queries.d.ts +0 -95
- package/dist/data/queries.d.ts.map +0 -1
- package/dist/data/types.d.ts +0 -103
- package/dist/data/types.d.ts.map +0 -1
- package/dist/db/database.d.ts +0 -190
- package/dist/db/database.d.ts.map +0 -1
- package/dist/docs/formats/asciidoc.d.ts +0 -9
- package/dist/docs/formats/asciidoc.d.ts.map +0 -1
- package/dist/docs/formats/html.d.ts +0 -10
- package/dist/docs/formats/html.d.ts.map +0 -1
- package/dist/docs/formats/index.d.ts +0 -31
- package/dist/docs/formats/index.d.ts.map +0 -1
- package/dist/docs/formats/markdown.d.ts +0 -11
- package/dist/docs/formats/markdown.d.ts.map +0 -1
- package/dist/docs/formats/openapi.d.ts +0 -17
- package/dist/docs/formats/openapi.d.ts.map +0 -1
- package/dist/docs/formats/org.d.ts +0 -9
- package/dist/docs/formats/org.d.ts.map +0 -1
- package/dist/docs/formats/plaintext.d.ts +0 -11
- package/dist/docs/formats/plaintext.d.ts.map +0 -1
- package/dist/docs/formats/rdoc.d.ts +0 -10
- package/dist/docs/formats/rdoc.d.ts.map +0 -1
- package/dist/docs/formats/rst.d.ts +0 -11
- package/dist/docs/formats/rst.d.ts.map +0 -1
- package/dist/docs/indexer.d.ts +0 -49
- package/dist/docs/indexer.d.ts.map +0 -1
- package/dist/docs/linker.d.ts +0 -30
- package/dist/docs/linker.d.ts.map +0 -1
- package/dist/docs/lint.d.ts +0 -27
- package/dist/docs/lint.d.ts.map +0 -1
- package/dist/docs/queries.d.ts +0 -78
- package/dist/docs/queries.d.ts.map +0 -1
- package/dist/docs/section-id.d.ts +0 -48
- package/dist/docs/section-id.d.ts.map +0 -1
- package/dist/docs/summarizer.d.ts +0 -13
- package/dist/docs/summarizer.d.ts.map +0 -1
- package/dist/docs/types.d.ts +0 -71
- package/dist/docs/types.d.ts.map +0 -1
- package/dist/docs/vectors.d.ts +0 -54
- package/dist/docs/vectors.d.ts.map +0 -1
- package/dist/errors.d.ts +0 -49
- package/dist/errors.d.ts.map +0 -1
- package/dist/extraction/extractor.d.ts +0 -29
- package/dist/extraction/extractor.d.ts.map +0 -1
- package/dist/extraction/grammars.d.ts +0 -54
- package/dist/extraction/grammars.d.ts.map +0 -1
- package/dist/extraction/languages.d.ts +0 -9
- package/dist/extraction/languages.d.ts.map +0 -1
- package/dist/extraction/notebook.d.ts +0 -14
- package/dist/extraction/notebook.d.ts.map +0 -1
- package/dist/frameworks/amplify.d.ts +0 -9
- package/dist/frameworks/amplify.d.ts.map +0 -1
- package/dist/frameworks/angular.d.ts +0 -9
- package/dist/frameworks/angular.d.ts.map +0 -1
- package/dist/frameworks/ansible.d.ts +0 -8
- package/dist/frameworks/ansible.d.ts.map +0 -1
- package/dist/frameworks/cloudformation.d.ts +0 -9
- package/dist/frameworks/cloudformation.d.ts.map +0 -1
- package/dist/frameworks/csharp.d.ts +0 -8
- package/dist/frameworks/csharp.d.ts.map +0 -1
- package/dist/frameworks/docker.d.ts +0 -9
- package/dist/frameworks/docker.d.ts.map +0 -1
- package/dist/frameworks/elixir.d.ts +0 -6
- package/dist/frameworks/elixir.d.ts.map +0 -1
- package/dist/frameworks/express.d.ts +0 -8
- package/dist/frameworks/express.d.ts.map +0 -1
- package/dist/frameworks/flutter.d.ts +0 -12
- package/dist/frameworks/flutter.d.ts.map +0 -1
- package/dist/frameworks/go.d.ts +0 -8
- package/dist/frameworks/go.d.ts.map +0 -1
- package/dist/frameworks/iac.d.ts +0 -10
- package/dist/frameworks/iac.d.ts.map +0 -1
- package/dist/frameworks/index.d.ts +0 -44
- package/dist/frameworks/index.d.ts.map +0 -1
- package/dist/frameworks/java.d.ts +0 -8
- package/dist/frameworks/java.d.ts.map +0 -1
- package/dist/frameworks/kubernetes.d.ts +0 -9
- package/dist/frameworks/kubernetes.d.ts.map +0 -1
- package/dist/frameworks/laravel.d.ts +0 -9
- package/dist/frameworks/laravel.d.ts.map +0 -1
- package/dist/frameworks/pulumi.d.ts +0 -9
- package/dist/frameworks/pulumi.d.ts.map +0 -1
- package/dist/frameworks/python.d.ts +0 -10
- package/dist/frameworks/python.d.ts.map +0 -1
- package/dist/frameworks/react.d.ts +0 -9
- package/dist/frameworks/react.d.ts.map +0 -1
- package/dist/frameworks/ruby.d.ts +0 -8
- package/dist/frameworks/ruby.d.ts.map +0 -1
- package/dist/frameworks/rust.d.ts +0 -8
- package/dist/frameworks/rust.d.ts.map +0 -1
- package/dist/frameworks/scala.d.ts +0 -6
- package/dist/frameworks/scala.d.ts.map +0 -1
- package/dist/frameworks/solidity.d.ts +0 -6
- package/dist/frameworks/solidity.d.ts.map +0 -1
- package/dist/frameworks/svelte.d.ts +0 -8
- package/dist/frameworks/svelte.d.ts.map +0 -1
- package/dist/frameworks/swift.d.ts +0 -10
- package/dist/frameworks/swift.d.ts.map +0 -1
- package/dist/frameworks/terraform.d.ts +0 -14
- package/dist/frameworks/terraform.d.ts.map +0 -1
- package/dist/frameworks/types.d.ts +0 -37
- package/dist/frameworks/types.d.ts.map +0 -1
- package/dist/frameworks/vue.d.ts +0 -7
- package/dist/frameworks/vue.d.ts.map +0 -1
- package/dist/graph/communities.d.ts +0 -43
- package/dist/graph/communities.d.ts.map +0 -1
- package/dist/graph/flows.d.ts +0 -55
- package/dist/graph/flows.d.ts.map +0 -1
- package/dist/graph/queries.d.ts +0 -53
- package/dist/graph/queries.d.ts.map +0 -1
- package/dist/graph/refactor.d.ts +0 -43
- package/dist/graph/refactor.d.ts.map +0 -1
- package/dist/graph/traversal.d.ts +0 -35
- package/dist/graph/traversal.d.ts.map +0 -1
- package/dist/index.d.ts +0 -134
- package/dist/index.d.ts.map +0 -1
- package/dist/installer/index.d.ts +0 -10
- package/dist/installer/index.d.ts.map +0 -1
- package/dist/installer/index.js +0 -526
- package/dist/installer/index.js.map +0 -1
- package/dist/mcp/cache.d.ts +0 -69
- package/dist/mcp/cache.d.ts.map +0 -1
- package/dist/mcp/read-modes.d.ts +0 -31
- package/dist/mcp/read-modes.d.ts.map +0 -1
- package/dist/mcp/server.d.ts +0 -17
- package/dist/mcp/server.d.ts.map +0 -1
- package/dist/mcp/tool-names.d.ts +0 -2
- package/dist/mcp/tool-names.d.ts.map +0 -1
- package/dist/mcp/tools.d.ts +0 -49
- package/dist/mcp/tools.d.ts.map +0 -1
- package/dist/mcp/transport.d.ts +0 -29
- package/dist/mcp/transport.d.ts.map +0 -1
- package/dist/memory/compress.d.ts +0 -19
- package/dist/memory/compress.d.ts.map +0 -1
- package/dist/memory/database.d.ts +0 -92
- package/dist/memory/database.d.ts.map +0 -1
- package/dist/memory/index.d.ts +0 -71
- package/dist/memory/index.d.ts.map +0 -1
- package/dist/memory/symbols.d.ts +0 -21
- package/dist/memory/symbols.d.ts.map +0 -1
- package/dist/memory/types.d.ts +0 -78
- package/dist/memory/types.d.ts.map +0 -1
- package/dist/memory/vectors.d.ts +0 -43
- package/dist/memory/vectors.d.ts.map +0 -1
- package/dist/patterns/graph.d.ts +0 -16
- package/dist/patterns/graph.d.ts.map +0 -1
- package/dist/patterns/index.d.ts +0 -4
- package/dist/patterns/index.d.ts.map +0 -1
- package/dist/patterns/indexer.d.ts +0 -15
- package/dist/patterns/indexer.d.ts.map +0 -1
- package/dist/patterns/loader.d.ts +0 -18
- package/dist/patterns/loader.d.ts.map +0 -1
- package/dist/patterns/runner.d.ts +0 -42
- package/dist/patterns/runner.d.ts.map +0 -1
- package/dist/patterns/types.d.ts +0 -27
- package/dist/patterns/types.d.ts.map +0 -1
- package/dist/resolution/bridges/android-rn.d.ts +0 -13
- package/dist/resolution/bridges/android-rn.d.ts.map +0 -1
- package/dist/resolution/bridges/expo-modules.d.ts +0 -10
- package/dist/resolution/bridges/expo-modules.d.ts.map +0 -1
- package/dist/resolution/bridges/flutter-channel.d.ts +0 -14
- package/dist/resolution/bridges/flutter-channel.d.ts.map +0 -1
- package/dist/resolution/bridges/index.d.ts +0 -40
- package/dist/resolution/bridges/index.d.ts.map +0 -1
- package/dist/resolution/bridges/native-events.d.ts +0 -10
- package/dist/resolution/bridges/native-events.d.ts.map +0 -1
- package/dist/resolution/bridges/native-views.d.ts +0 -13
- package/dist/resolution/bridges/native-views.d.ts.map +0 -1
- package/dist/resolution/bridges/react-native.d.ts +0 -9
- package/dist/resolution/bridges/react-native.d.ts.map +0 -1
- package/dist/resolution/bridges/swift-objc.d.ts +0 -14
- package/dist/resolution/bridges/swift-objc.d.ts.map +0 -1
- package/dist/resolution/bridges/turbomodules.d.ts +0 -10
- package/dist/resolution/bridges/turbomodules.d.ts.map +0 -1
- package/dist/resolution/index.d.ts +0 -81
- package/dist/resolution/index.d.ts.map +0 -1
- package/dist/resolution/name-matcher.d.ts +0 -25
- package/dist/resolution/name-matcher.d.ts.map +0 -1
- package/dist/scripts/postinstall.js +0 -64
- package/dist/search/query-utils.d.ts +0 -21
- package/dist/search/query-utils.d.ts.map +0 -1
- package/dist/search/searcher.d.ts +0 -15
- package/dist/search/searcher.d.ts.map +0 -1
- package/dist/security/attack-surface.d.ts +0 -46
- package/dist/security/attack-surface.d.ts.map +0 -1
- package/dist/security/context-warnings.d.ts +0 -40
- package/dist/security/context-warnings.d.ts.map +0 -1
- package/dist/security/data-flows.d.ts +0 -33
- package/dist/security/data-flows.d.ts.map +0 -1
- package/dist/security/dep-confusion.d.ts +0 -23
- package/dist/security/dep-confusion.d.ts.map +0 -1
- package/dist/security/errors.d.ts +0 -16
- package/dist/security/errors.d.ts.map +0 -1
- package/dist/security/export/fix-suggestions.d.ts +0 -21
- package/dist/security/export/fix-suggestions.d.ts.map +0 -1
- package/dist/security/export/sbom.d.ts +0 -33
- package/dist/security/export/sbom.d.ts.map +0 -1
- package/dist/security/export/serialization.d.ts +0 -62
- package/dist/security/export/serialization.d.ts.map +0 -1
- package/dist/security/export/vex.d.ts +0 -58
- package/dist/security/export/vex.d.ts.map +0 -1
- package/dist/security/index.d.ts +0 -21
- package/dist/security/index.d.ts.map +0 -1
- package/dist/security/integrator.d.ts +0 -63
- package/dist/security/integrator.d.ts.map +0 -1
- package/dist/security/license.d.ts +0 -33
- package/dist/security/license.d.ts.map +0 -1
- package/dist/security/manifest/adapter.d.ts +0 -92
- package/dist/security/manifest/adapter.d.ts.map +0 -1
- package/dist/security/manifest/parser.d.ts +0 -73
- package/dist/security/manifest/parser.d.ts.map +0 -1
- package/dist/security/manifest/plugins/cargo.d.ts +0 -11
- package/dist/security/manifest/plugins/cargo.d.ts.map +0 -1
- package/dist/security/manifest/plugins/composer.d.ts +0 -11
- package/dist/security/manifest/plugins/composer.d.ts.map +0 -1
- package/dist/security/manifest/plugins/go.d.ts +0 -12
- package/dist/security/manifest/plugins/go.d.ts.map +0 -1
- package/dist/security/manifest/plugins/gradle.d.ts +0 -12
- package/dist/security/manifest/plugins/gradle.d.ts.map +0 -1
- package/dist/security/manifest/plugins/hex.d.ts +0 -11
- package/dist/security/manifest/plugins/hex.d.ts.map +0 -1
- package/dist/security/manifest/plugins/maven.d.ts +0 -11
- package/dist/security/manifest/plugins/maven.d.ts.map +0 -1
- package/dist/security/manifest/plugins/npm.d.ts +0 -11
- package/dist/security/manifest/plugins/npm.d.ts.map +0 -1
- package/dist/security/manifest/plugins/nuget.d.ts +0 -12
- package/dist/security/manifest/plugins/nuget.d.ts.map +0 -1
- package/dist/security/manifest/plugins/pip.d.ts +0 -11
- package/dist/security/manifest/plugins/pip.d.ts.map +0 -1
- package/dist/security/manifest/plugins/pubspec.d.ts +0 -11
- package/dist/security/manifest/plugins/pubspec.d.ts.map +0 -1
- package/dist/security/manifest/plugins/pyproject.d.ts +0 -3
- package/dist/security/manifest/plugins/pyproject.d.ts.map +0 -1
- package/dist/security/manifest/plugins/rubygems.d.ts +0 -11
- package/dist/security/manifest/plugins/rubygems.d.ts.map +0 -1
- package/dist/security/manifest/plugins/swift.d.ts +0 -11
- package/dist/security/manifest/plugins/swift.d.ts.map +0 -1
- package/dist/security/owasp.d.ts +0 -16
- package/dist/security/owasp.d.ts.map +0 -1
- package/dist/security/pipeline.d.ts +0 -37
- package/dist/security/pipeline.d.ts.map +0 -1
- package/dist/security/reachability.d.ts +0 -67
- package/dist/security/reachability.d.ts.map +0 -1
- package/dist/security/remediation.d.ts +0 -51
- package/dist/security/remediation.d.ts.map +0 -1
- package/dist/security/secrets.d.ts +0 -38
- package/dist/security/secrets.d.ts.map +0 -1
- package/dist/security/staleness.d.ts +0 -43
- package/dist/security/staleness.d.ts.map +0 -1
- package/dist/security/supply-chain.d.ts +0 -34
- package/dist/security/supply-chain.d.ts.map +0 -1
- package/dist/security/suppressions.d.ts +0 -18
- package/dist/security/suppressions.d.ts.map +0 -1
- package/dist/security/types.d.ts +0 -144
- package/dist/security/types.d.ts.map +0 -1
- package/dist/security/vuln/client.d.ts +0 -90
- package/dist/security/vuln/client.d.ts.map +0 -1
- package/dist/security/vuln/epss-client.d.ts +0 -26
- package/dist/security/vuln/epss-client.d.ts.map +0 -1
- package/dist/security/vuln/index.d.ts +0 -6
- package/dist/security/vuln/index.d.ts.map +0 -1
- package/dist/security/vuln/osv-adapter.d.ts +0 -58
- package/dist/security/vuln/osv-adapter.d.ts.map +0 -1
- package/dist/security/vuln/types.d.ts +0 -29
- package/dist/security/vuln/types.d.ts.map +0 -1
- package/dist/sync/index.d.ts +0 -35
- package/dist/sync/index.d.ts.map +0 -1
- package/dist/types.d.ts +0 -137
- package/dist/types.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -52
- package/dist/utils.d.ts.map +0 -1
- package/dist/vectors/index.d.ts +0 -79
- package/dist/vectors/index.d.ts.map +0 -1
- package/dist/vectors/lancedb-index.d.ts +0 -50
- package/dist/vectors/lancedb-index.d.ts.map +0 -1
- package/dist/vectors/orama-index.d.ts +0 -54
- package/dist/vectors/orama-index.d.ts.map +0 -1
- package/dist/vectors/pglite-index.d.ts +0 -53
- package/dist/vectors/pglite-index.d.ts.map +0 -1
- package/dist/vectors/qdrant-index.d.ts +0 -77
- package/dist/vectors/qdrant-index.d.ts.map +0 -1
- package/dist/vectors/typesense-index.d.ts +0 -75
- package/dist/vectors/typesense-index.d.ts.map +0 -1
- package/dist/vectors/vec-index.d.ts +0 -52
- package/dist/vectors/vec-index.d.ts.map +0 -1
package/dist/index.d.ts
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* KiroGraph — Semantic code knowledge graph for Kiro
|
|
3
|
-
*
|
|
4
|
-
* Pure facade. Every method delegates to a focused sub-system.
|
|
5
|
-
* No business logic lives here.
|
|
6
|
-
*/
|
|
7
|
-
import { GraphDatabase } from './db/database';
|
|
8
|
-
import type { KiroGraphConfig } from './config';
|
|
9
|
-
import { SnapshotManager } from './core/snapshot';
|
|
10
|
-
import type { FileTreeNode, FileTree } from './core/file-tree';
|
|
11
|
-
import type { GraphSnapshot, GraphDiff } from './core/snapshot';
|
|
12
|
-
export type { GraphSnapshot, GraphDiff };
|
|
13
|
-
import type { Node, Edge, NodeKind, IndexResult, IndexProgress, SyncResult, TaskContext, SearchResult, SearchOptions, NodeContext, NodeMetrics } from './types';
|
|
14
|
-
import type { ArchitectureResult } from './architecture/types';
|
|
15
|
-
export type { FileTreeNode, FileTree };
|
|
16
|
-
export default class KiroGraph {
|
|
17
|
-
private readonly db;
|
|
18
|
-
private readonly config;
|
|
19
|
-
private readonly projectRoot;
|
|
20
|
-
private readonly queryManager;
|
|
21
|
-
private readonly resolver;
|
|
22
|
-
private readonly vectors;
|
|
23
|
-
private readonly contextBuilder;
|
|
24
|
-
private readonly arch;
|
|
25
|
-
private readonly lock;
|
|
26
|
-
private readonly pipeline;
|
|
27
|
-
private readonly searcher;
|
|
28
|
-
private constructor();
|
|
29
|
-
static init(projectRoot: string, config?: Partial<KiroGraphConfig>, onModelProgress?: (file: string, loaded: number, total: number, done: boolean) => void): Promise<KiroGraph>;
|
|
30
|
-
static open(projectRoot: string, onModelProgress?: (file: string, loaded: number, total: number, done: boolean) => void): Promise<KiroGraph>;
|
|
31
|
-
static isInitialized(projectRoot: string): boolean;
|
|
32
|
-
unlockForce(): void;
|
|
33
|
-
markDirty(): void;
|
|
34
|
-
clearDirty(): void;
|
|
35
|
-
isDirty(): boolean;
|
|
36
|
-
isIndexLocked(): boolean;
|
|
37
|
-
syncIfDirty(): Promise<SyncResult | null>;
|
|
38
|
-
/**
|
|
39
|
-
* Returns the number of files that have changed on disk but are not yet
|
|
40
|
-
* reflected in the index. Used by the MCP status tool to warn the agent
|
|
41
|
-
* when the index may be stale.
|
|
42
|
-
*/
|
|
43
|
-
getPendingSyncCount(): Promise<number>;
|
|
44
|
-
indexAll(opts?: {
|
|
45
|
-
onProgress?: (p: IndexProgress) => void;
|
|
46
|
-
force?: boolean;
|
|
47
|
-
signal?: AbortSignal;
|
|
48
|
-
}): Promise<IndexResult>;
|
|
49
|
-
sync(changedFilesOrOpts?: string[] | {
|
|
50
|
-
files?: string[];
|
|
51
|
-
onProgress?: (p: IndexProgress) => void;
|
|
52
|
-
}): Promise<SyncResult>;
|
|
53
|
-
searchNodes(query: string, kindOrOpts?: NodeKind | SearchOptions, limit?: number): SearchResult[];
|
|
54
|
-
getCallers(nodeId: string, limit?: number): Promise<Node[]>;
|
|
55
|
-
getCallees(nodeId: string, limit?: number): Promise<Node[]>;
|
|
56
|
-
getImpactRadius(nodeId: string, depth?: number): Promise<Node[]>;
|
|
57
|
-
getAllNodes(): Node[];
|
|
58
|
-
getAllEdges(): Edge[];
|
|
59
|
-
findDeadCode(limit?: number): Node[];
|
|
60
|
-
findCircularDependencies(): string[][];
|
|
61
|
-
findPath(fromId: string, toId: string, maxDepth?: number): Promise<Node[]>;
|
|
62
|
-
getTypeHierarchy(nodeId: string, direction?: 'up' | 'down' | 'both'): Node[];
|
|
63
|
-
getNode(id: string): Node | null;
|
|
64
|
-
getNodeContext(nodeId: string): NodeContext | null;
|
|
65
|
-
getNodeMetrics(nodeId: string): NodeMetrics;
|
|
66
|
-
getNodeSource(node: Node): string | null;
|
|
67
|
-
buildContext(task: string, opts?: {
|
|
68
|
-
maxNodes?: number;
|
|
69
|
-
includeCode?: boolean;
|
|
70
|
-
}): Promise<TaskContext>;
|
|
71
|
-
getFiles(opts?: {
|
|
72
|
-
filterPath?: string;
|
|
73
|
-
pattern?: string;
|
|
74
|
-
maxDepth?: number;
|
|
75
|
-
}): FileTree;
|
|
76
|
-
getAffectedTests(changedFiles: string[], opts?: {
|
|
77
|
-
depth?: number;
|
|
78
|
-
testPattern?: string;
|
|
79
|
-
}): string[];
|
|
80
|
-
findHotspots(limit?: number): Array<Node & {
|
|
81
|
-
degree: number;
|
|
82
|
-
inDegree: number;
|
|
83
|
-
outDegree: number;
|
|
84
|
-
}>;
|
|
85
|
-
findSurprisingConnections(limit?: number): Array<{
|
|
86
|
-
source: Node;
|
|
87
|
-
target: Node;
|
|
88
|
-
kind: string;
|
|
89
|
-
score: number;
|
|
90
|
-
}>;
|
|
91
|
-
createSnapshotManager(): SnapshotManager;
|
|
92
|
-
getStats(): Promise<{
|
|
93
|
-
pendingFiles: number;
|
|
94
|
-
syncRunning: boolean;
|
|
95
|
-
syncWarningThreshold: number;
|
|
96
|
-
architectureStats?: {
|
|
97
|
-
packages: number;
|
|
98
|
-
layers: number;
|
|
99
|
-
packageDeps: number;
|
|
100
|
-
};
|
|
101
|
-
embeddingCount: number;
|
|
102
|
-
embeddableNodeCount: number;
|
|
103
|
-
embeddingsEnabled: boolean;
|
|
104
|
-
embeddingModel: string;
|
|
105
|
-
useVecIndex: boolean;
|
|
106
|
-
semanticEngine: "cosine" | "sqlite-vec" | "orama" | "pglite" | "lancedb" | "qdrant" | "typesense";
|
|
107
|
-
vecIndexCount: number;
|
|
108
|
-
engineFallback: string | null;
|
|
109
|
-
frameworks: string[];
|
|
110
|
-
architectureEnabled: boolean;
|
|
111
|
-
files: number;
|
|
112
|
-
nodes: number;
|
|
113
|
-
edges: number;
|
|
114
|
-
nodesByKind: Record<string, number>;
|
|
115
|
-
filesByLanguage: Record<string, number>;
|
|
116
|
-
dbSizeBytes: number;
|
|
117
|
-
}>;
|
|
118
|
-
getEngineFallback(): string | null;
|
|
119
|
-
getArchitecture(): ArchitectureResult & {
|
|
120
|
-
filePackages: Record<string, string[]>;
|
|
121
|
-
fileLayers: Record<string, Array<{
|
|
122
|
-
layerId: string;
|
|
123
|
-
confidence: number;
|
|
124
|
-
matchedPattern: string;
|
|
125
|
-
}>>;
|
|
126
|
-
};
|
|
127
|
-
isArchitectureEnabled(): boolean;
|
|
128
|
-
getProjectRoot(): string;
|
|
129
|
-
getDatabase(): GraphDatabase;
|
|
130
|
-
close(): void;
|
|
131
|
-
}
|
|
132
|
-
/** Walk up directories to find the nearest .kirograph/ folder. */
|
|
133
|
-
export declare function findNearestKiroGraphRoot(startPath: string): string | null;
|
|
134
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* KiroGraph Installer for Kiro
|
|
3
|
-
*
|
|
4
|
-
* Wires up:
|
|
5
|
-
* 1. .kiro/settings/mcp.json — registers the MCP server
|
|
6
|
-
* 2. .kiro/hooks/*.json — auto-sync on file save/create/delete (via mark-dirty + sync-if-dirty)
|
|
7
|
-
* 3. .kiro/steering/kirograph.md — teaches Kiro to use the graph tools
|
|
8
|
-
*/
|
|
9
|
-
export declare function runInstaller(): Promise<void>;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/installer/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAsaH,wBAAsB,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAwGlD"}
|
package/dist/installer/index.js
DELETED
|
@@ -1,526 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* KiroGraph Installer for Kiro
|
|
4
|
-
*
|
|
5
|
-
* Wires up:
|
|
6
|
-
* 1. .kiro/settings/mcp.json — registers the MCP server
|
|
7
|
-
* 2. .kiro/hooks/*.json — auto-sync on file save/create/delete (via mark-dirty + sync-if-dirty)
|
|
8
|
-
* 3. .kiro/steering/kirograph.md — teaches Kiro to use the graph tools
|
|
9
|
-
*/
|
|
10
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
14
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
15
|
-
}
|
|
16
|
-
Object.defineProperty(o, k2, desc);
|
|
17
|
-
}) : (function(o, m, k, k2) {
|
|
18
|
-
if (k2 === undefined) k2 = k;
|
|
19
|
-
o[k2] = m[k];
|
|
20
|
-
}));
|
|
21
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
-
}) : function(o, v) {
|
|
24
|
-
o["default"] = v;
|
|
25
|
-
});
|
|
26
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
27
|
-
var ownKeys = function(o) {
|
|
28
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
29
|
-
var ar = [];
|
|
30
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
31
|
-
return ar;
|
|
32
|
-
};
|
|
33
|
-
return ownKeys(o);
|
|
34
|
-
};
|
|
35
|
-
return function (mod) {
|
|
36
|
-
if (mod && mod.__esModule) return mod;
|
|
37
|
-
var result = {};
|
|
38
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
39
|
-
__setModuleDefault(result, mod);
|
|
40
|
-
return result;
|
|
41
|
-
};
|
|
42
|
-
})();
|
|
43
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.runInstaller = runInstaller;
|
|
45
|
-
const fs = __importStar(require("fs"));
|
|
46
|
-
const path = __importStar(require("path"));
|
|
47
|
-
const readline = __importStar(require("readline"));
|
|
48
|
-
const child_process_1 = require("child_process");
|
|
49
|
-
const errors_1 = require("../errors");
|
|
50
|
-
const banner_1 = require("../bin/banner");
|
|
51
|
-
const progress_1 = require("../bin/progress");
|
|
52
|
-
// ── Helpers ───────────────────────────────────────────────────────────────────
|
|
53
|
-
const violet = '\x1b[38;5;99m';
|
|
54
|
-
const reset = '\x1b[0m';
|
|
55
|
-
const dim = '\x1b[2m';
|
|
56
|
-
function ask(rl, question) {
|
|
57
|
-
return new Promise(resolve => rl.question(question, resolve));
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Interactive arrow-key selection menu.
|
|
61
|
-
* Temporarily pauses the readline interface to take over raw stdin,
|
|
62
|
-
* then resumes it when done so subsequent prompts work normally.
|
|
63
|
-
*/
|
|
64
|
-
async function arrowSelect(rl, label, options, defaultIndex = 0) {
|
|
65
|
-
const bold = '\x1b[1m';
|
|
66
|
-
const green = '\x1b[32m';
|
|
67
|
-
const CURSOR_UP = '\x1b[A';
|
|
68
|
-
const CURSOR_DOWN = '\x1b[B';
|
|
69
|
-
const CLEAR_LINE = '\x1b[2K\x1b[G';
|
|
70
|
-
let selected = defaultIndex;
|
|
71
|
-
function render(first) {
|
|
72
|
-
if (!first) {
|
|
73
|
-
// Move cursor up by options.length + 1 (description line)
|
|
74
|
-
process.stdout.write(`\x1b[${options.length + 1}A`);
|
|
75
|
-
}
|
|
76
|
-
for (let i = 0; i < options.length; i++) {
|
|
77
|
-
const active = i === selected;
|
|
78
|
-
const cursor = active ? `${green}${bold}❯${reset}` : ' ';
|
|
79
|
-
const text = active ? `${bold}${options[i].label}${reset}` : `${dim}${options[i].label}${reset}`;
|
|
80
|
-
process.stdout.write(`${CLEAR_LINE} ${cursor} ${text}\n`);
|
|
81
|
-
}
|
|
82
|
-
const desc = options[selected].description;
|
|
83
|
-
process.stdout.write(`${CLEAR_LINE} ${dim}${desc}${reset}\n`);
|
|
84
|
-
}
|
|
85
|
-
return new Promise(resolve => {
|
|
86
|
-
console.log(`\n ${violet}${label}${reset}`);
|
|
87
|
-
render(true);
|
|
88
|
-
rl.pause();
|
|
89
|
-
const stdin = process.stdin;
|
|
90
|
-
const wasTTY = stdin.isTTY;
|
|
91
|
-
if (wasTTY)
|
|
92
|
-
stdin.setRawMode(true);
|
|
93
|
-
stdin.resume();
|
|
94
|
-
stdin.setEncoding('utf8');
|
|
95
|
-
function onData(key) {
|
|
96
|
-
if (key === CURSOR_UP || key === '\x1b[A') {
|
|
97
|
-
selected = (selected - 1 + options.length) % options.length;
|
|
98
|
-
render(false);
|
|
99
|
-
}
|
|
100
|
-
else if (key === CURSOR_DOWN || key === '\x1b[B') {
|
|
101
|
-
selected = (selected + 1) % options.length;
|
|
102
|
-
render(false);
|
|
103
|
-
}
|
|
104
|
-
else if (key === '\r' || key === '\n' || key === ' ') {
|
|
105
|
-
stdin.removeListener('data', onData);
|
|
106
|
-
if (wasTTY)
|
|
107
|
-
stdin.setRawMode(false);
|
|
108
|
-
stdin.pause();
|
|
109
|
-
rl.resume();
|
|
110
|
-
// Print final selection
|
|
111
|
-
process.stdout.write(`\x1b[${options.length + 1}A`);
|
|
112
|
-
for (let i = 0; i < options.length; i++) {
|
|
113
|
-
const active = i === selected;
|
|
114
|
-
const cursor = active ? `${green}${bold}❯${reset}` : ' ';
|
|
115
|
-
const text = active ? `${green}${bold}${options[i].label}${reset}` : `${dim}${options[i].label}${reset}`;
|
|
116
|
-
process.stdout.write(`${CLEAR_LINE} ${cursor} ${text}\n`);
|
|
117
|
-
}
|
|
118
|
-
process.stdout.write(`${CLEAR_LINE}\n`);
|
|
119
|
-
resolve(options[selected].value);
|
|
120
|
-
}
|
|
121
|
-
else if (key === '\x03') {
|
|
122
|
-
// Ctrl-C
|
|
123
|
-
stdin.removeListener('data', onData);
|
|
124
|
-
if (wasTTY)
|
|
125
|
-
stdin.setRawMode(false);
|
|
126
|
-
process.exit(1);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
stdin.on('data', onData);
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
function ensureDir(p) {
|
|
133
|
-
fs.mkdirSync(p, { recursive: true });
|
|
134
|
-
}
|
|
135
|
-
function readJson(p) {
|
|
136
|
-
try {
|
|
137
|
-
return JSON.parse(fs.readFileSync(p, 'utf8'));
|
|
138
|
-
}
|
|
139
|
-
catch {
|
|
140
|
-
return {};
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
function writeJson(p, data) {
|
|
144
|
-
fs.writeFileSync(p, JSON.stringify(data, null, 2) + '\n');
|
|
145
|
-
}
|
|
146
|
-
/**
|
|
147
|
-
* Prompt a yes/no question, re-prompting on invalid input.
|
|
148
|
-
* Accepts: "" (use default), "y", "Y", "n", "N".
|
|
149
|
-
*/
|
|
150
|
-
async function askBool(rl, question, description, defaultYes = true) {
|
|
151
|
-
const hint = defaultYes ? 'Y/n' : 'y/N';
|
|
152
|
-
console.log(`\n ${dim}${description}${reset}`);
|
|
153
|
-
while (true) {
|
|
154
|
-
const raw = await ask(rl, ` ${violet}${question}${reset} ${dim}(${hint})${reset} `);
|
|
155
|
-
if (raw === '')
|
|
156
|
-
return defaultYes;
|
|
157
|
-
if (raw === 'y' || raw === 'Y')
|
|
158
|
-
return true;
|
|
159
|
-
if (raw === 'n' || raw === 'N')
|
|
160
|
-
return false;
|
|
161
|
-
console.log(` Please enter y or n.`);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Prompt for a string value, returning the default on empty input.
|
|
166
|
-
*/
|
|
167
|
-
async function askString(rl, question, description, defaultValue) {
|
|
168
|
-
console.log(`\n ${dim}${description}${reset}`);
|
|
169
|
-
const raw = await ask(rl, ` ${violet}${question}${reset} ${dim}(${defaultValue})${reset} `);
|
|
170
|
-
return raw === '' ? defaultValue : raw;
|
|
171
|
-
}
|
|
172
|
-
// ── Config Options ────────────────────────────────────────────────────────────
|
|
173
|
-
const config_1 = require("../config");
|
|
174
|
-
const DEFAULT_EMBEDDING_MODEL = 'nomic-ai/nomic-embed-text-v1.5';
|
|
175
|
-
async function promptConfigOptions(rl) {
|
|
176
|
-
const enableEmbeddings = await askBool(rl, 'Enable semantic embeddings for similarity search? (requires a local embedding model)', 'Enables semantic/similarity-based code search. Increases indexing time and requires a compatible local embedding model (e.g. via Ollama).');
|
|
177
|
-
const patch = { enableEmbeddings, useVecIndex: false, semanticEngine: 'cosine', extractDocstrings: true, trackCallSites: true };
|
|
178
|
-
if (enableEmbeddings) {
|
|
179
|
-
console.log(`\n ${dim}HuggingFace model identifier for generating embeddings (e.g. org/model-name).${reset}`);
|
|
180
|
-
console.log(` ${dim}Press Enter to use the default: ${DEFAULT_EMBEDDING_MODEL}${reset}`);
|
|
181
|
-
let embeddingModel = DEFAULT_EMBEDDING_MODEL;
|
|
182
|
-
while (true) {
|
|
183
|
-
const raw = (await ask(rl, ` ${violet}Embedding model identifier:${reset} `)).trim();
|
|
184
|
-
if (raw === '') {
|
|
185
|
-
embeddingModel = DEFAULT_EMBEDDING_MODEL;
|
|
186
|
-
break;
|
|
187
|
-
}
|
|
188
|
-
if (raw.includes('/')) {
|
|
189
|
-
embeddingModel = raw;
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
console.log(` Expected a HuggingFace model ID in the format org/model-name (e.g. nomic-ai/nomic-embed-text-v1.5).`);
|
|
193
|
-
}
|
|
194
|
-
patch.embeddingModel = embeddingModel;
|
|
195
|
-
if (embeddingModel !== DEFAULT_EMBEDDING_MODEL) {
|
|
196
|
-
console.log(`\n ℹ To use this model locally, run: ollama pull ${embeddingModel}`);
|
|
197
|
-
}
|
|
198
|
-
// Engine selection
|
|
199
|
-
const semanticEngine = await arrowSelect(rl, 'Choose the semantic search engine:', [
|
|
200
|
-
{ value: 'cosine', label: 'cosine', description: 'In-process cosine similarity. No extra deps. Best for small/medium projects.' },
|
|
201
|
-
{ value: 'sqlite-vec', label: 'sqlite-vec', description: 'ANN index. Sub-linear search. Best for large codebases. Needs: better-sqlite3, sqlite-vec (native).' },
|
|
202
|
-
{ value: 'orama', label: 'orama', description: 'Hybrid search (full-text + vector). Pure JS. Needs: @orama/orama, @orama/plugin-data-persistence.' },
|
|
203
|
-
{ value: 'pglite', label: 'pglite', description: 'Hybrid search via PostgreSQL + pgvector. Exact results. Pure WASM. Needs: @electric-sql/pglite.' },
|
|
204
|
-
]);
|
|
205
|
-
patch.semanticEngine = semanticEngine;
|
|
206
|
-
patch.useVecIndex = semanticEngine === 'sqlite-vec'; // keep legacy field in sync
|
|
207
|
-
}
|
|
208
|
-
patch.extractDocstrings = await askBool(rl, 'Extract docstrings from source files?', 'Enriches symbol metadata and improves context quality. Slightly increases indexing time.');
|
|
209
|
-
patch.trackCallSites = await askBool(rl, 'Track call sites to enable caller/callee graph traversal?', 'Enables the kirograph_callers and kirograph_callees MCP tools for graph traversal. Increases index size.');
|
|
210
|
-
return patch;
|
|
211
|
-
}
|
|
212
|
-
// ── MCP Config ────────────────────────────────────────────────────────────────
|
|
213
|
-
function writeMcpConfig(kiroDir) {
|
|
214
|
-
const mcpPath = path.join(kiroDir, 'settings', 'mcp.json');
|
|
215
|
-
ensureDir(path.dirname(mcpPath));
|
|
216
|
-
const existing = readJson(mcpPath);
|
|
217
|
-
existing.mcpServers = existing.mcpServers ?? {};
|
|
218
|
-
existing.mcpServers.kirograph = {
|
|
219
|
-
command: 'kirograph',
|
|
220
|
-
args: ['serve', '--mcp'],
|
|
221
|
-
disabled: false,
|
|
222
|
-
autoApprove: [
|
|
223
|
-
'kirograph_search',
|
|
224
|
-
'kirograph_context',
|
|
225
|
-
'kirograph_callers',
|
|
226
|
-
'kirograph_callees',
|
|
227
|
-
'kirograph_impact',
|
|
228
|
-
'kirograph_node',
|
|
229
|
-
'kirograph_status',
|
|
230
|
-
'kirograph_files',
|
|
231
|
-
'kirograph_dead_code',
|
|
232
|
-
'kirograph_circular_deps',
|
|
233
|
-
'kirograph_path',
|
|
234
|
-
'kirograph_type_hierarchy',
|
|
235
|
-
],
|
|
236
|
-
};
|
|
237
|
-
writeJson(mcpPath, existing);
|
|
238
|
-
console.log(` ✓ MCP server registered in ${mcpPath}`);
|
|
239
|
-
}
|
|
240
|
-
// ── Kiro Hooks ────────────────────────────────────────────────────────────────
|
|
241
|
-
const FILE_PATTERNS = [
|
|
242
|
-
'**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx',
|
|
243
|
-
'**/*.py', '**/*.go', '**/*.rs', '**/*.java',
|
|
244
|
-
'**/*.cs', '**/*.rb', '**/*.php', '**/*.swift',
|
|
245
|
-
'**/*.kt', '**/*.dart',
|
|
246
|
-
];
|
|
247
|
-
const HOOKS = [
|
|
248
|
-
{
|
|
249
|
-
filename: 'kirograph-mark-dirty-on-save.json',
|
|
250
|
-
hook: {
|
|
251
|
-
name: 'KiroGraph Mark Dirty on Save',
|
|
252
|
-
version: '1.0.0',
|
|
253
|
-
description: 'Mark the KiroGraph index as dirty when source files are saved. Sync is deferred to agent idle.',
|
|
254
|
-
when: {
|
|
255
|
-
type: 'fileEdited',
|
|
256
|
-
patterns: FILE_PATTERNS,
|
|
257
|
-
},
|
|
258
|
-
then: {
|
|
259
|
-
type: 'runCommand',
|
|
260
|
-
command: 'kirograph mark-dirty 2>/dev/null || true',
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
filename: 'kirograph-mark-dirty-on-create.json',
|
|
266
|
-
hook: {
|
|
267
|
-
name: 'KiroGraph Mark Dirty on Create',
|
|
268
|
-
version: '1.0.0',
|
|
269
|
-
description: 'Mark the KiroGraph index as dirty when source files are created.',
|
|
270
|
-
when: {
|
|
271
|
-
type: 'fileCreated',
|
|
272
|
-
patterns: FILE_PATTERNS,
|
|
273
|
-
},
|
|
274
|
-
then: {
|
|
275
|
-
type: 'runCommand',
|
|
276
|
-
command: 'kirograph mark-dirty 2>/dev/null || true',
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
filename: 'kirograph-sync-on-delete.json',
|
|
282
|
-
hook: {
|
|
283
|
-
name: 'KiroGraph Sync on Delete',
|
|
284
|
-
version: '1.0.0',
|
|
285
|
-
description: 'Remove deleted files from the KiroGraph index immediately.',
|
|
286
|
-
when: {
|
|
287
|
-
type: 'fileDeleted',
|
|
288
|
-
patterns: FILE_PATTERNS,
|
|
289
|
-
},
|
|
290
|
-
then: {
|
|
291
|
-
type: 'runCommand',
|
|
292
|
-
command: 'kirograph sync-if-dirty 2>/dev/null || true',
|
|
293
|
-
},
|
|
294
|
-
},
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
filename: 'kirograph-sync-if-dirty.json',
|
|
298
|
-
hook: {
|
|
299
|
-
name: 'KiroGraph Deferred Sync',
|
|
300
|
-
version: '1.0.0',
|
|
301
|
-
description: 'Sync the KiroGraph index when the agent is idle and a dirty marker is present. Batches multiple rapid saves into one sync.',
|
|
302
|
-
when: {
|
|
303
|
-
type: 'agentStop',
|
|
304
|
-
},
|
|
305
|
-
then: {
|
|
306
|
-
type: 'runCommand',
|
|
307
|
-
command: 'kirograph sync-if-dirty --quiet 2>/dev/null || true',
|
|
308
|
-
},
|
|
309
|
-
},
|
|
310
|
-
},
|
|
311
|
-
];
|
|
312
|
-
function migrateOnIdleHooks(hooksDir) {
|
|
313
|
-
if (!fs.existsSync(hooksDir))
|
|
314
|
-
return;
|
|
315
|
-
let files;
|
|
316
|
-
try {
|
|
317
|
-
files = fs.readdirSync(hooksDir).filter(f => f.endsWith('.json'));
|
|
318
|
-
}
|
|
319
|
-
catch {
|
|
320
|
-
return;
|
|
321
|
-
}
|
|
322
|
-
for (const file of files) {
|
|
323
|
-
const filePath = path.join(hooksDir, file);
|
|
324
|
-
let raw;
|
|
325
|
-
try {
|
|
326
|
-
raw = fs.readFileSync(filePath, 'utf8');
|
|
327
|
-
}
|
|
328
|
-
catch {
|
|
329
|
-
(0, errors_1.logWarn)(`KiroGraph installer: could not read hook file ${filePath}`);
|
|
330
|
-
continue;
|
|
331
|
-
}
|
|
332
|
-
let obj;
|
|
333
|
-
try {
|
|
334
|
-
obj = JSON.parse(raw);
|
|
335
|
-
}
|
|
336
|
-
catch {
|
|
337
|
-
(0, errors_1.logWarn)(`KiroGraph installer: could not parse hook file ${filePath}`);
|
|
338
|
-
continue;
|
|
339
|
-
}
|
|
340
|
-
if (obj?.when?.type === 'onIdle') {
|
|
341
|
-
obj.when.type = 'agentStop';
|
|
342
|
-
try {
|
|
343
|
-
fs.writeFileSync(filePath, JSON.stringify(obj, null, 2) + '\n');
|
|
344
|
-
}
|
|
345
|
-
catch {
|
|
346
|
-
(0, errors_1.logWarn)(`KiroGraph installer: could not write migrated hook file ${filePath}`);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
function writeHooks(kiroDir) {
|
|
352
|
-
const hooksDir = path.join(kiroDir, 'hooks');
|
|
353
|
-
ensureDir(hooksDir);
|
|
354
|
-
// Migrate existing hooks from onIdle → agentStop
|
|
355
|
-
migrateOnIdleHooks(hooksDir);
|
|
356
|
-
// Remove old sync hooks that are now replaced
|
|
357
|
-
const oldHooks = [
|
|
358
|
-
'kirograph-sync-on-save.json',
|
|
359
|
-
'kirograph-sync-on-create.json',
|
|
360
|
-
];
|
|
361
|
-
for (const old of oldHooks) {
|
|
362
|
-
const p = path.join(hooksDir, old);
|
|
363
|
-
if (fs.existsSync(p))
|
|
364
|
-
fs.unlinkSync(p);
|
|
365
|
-
}
|
|
366
|
-
for (const { filename, hook } of HOOKS) {
|
|
367
|
-
writeJson(path.join(hooksDir, filename), hook);
|
|
368
|
-
}
|
|
369
|
-
console.log(` ✓ Auto-sync hooks written to ${hooksDir}`);
|
|
370
|
-
}
|
|
371
|
-
// ── Steering File ─────────────────────────────────────────────────────────────
|
|
372
|
-
const STEERING_CONTENT = `---
|
|
373
|
-
inclusion: always
|
|
374
|
-
---
|
|
375
|
-
|
|
376
|
-
# KiroGraph
|
|
377
|
-
|
|
378
|
-
KiroGraph builds a semantic knowledge graph of your codebase for faster, smarter code exploration.
|
|
379
|
-
|
|
380
|
-
## When \`.kirograph/\` exists in the project
|
|
381
|
-
|
|
382
|
-
Use KiroGraph MCP tools for exploration instead of grep/glob/file reads:
|
|
383
|
-
|
|
384
|
-
| Tool | Use For |
|
|
385
|
-
|------|---------|
|
|
386
|
-
| \`kirograph_search\` | Find symbols by name (functions, classes, types) |
|
|
387
|
-
| \`kirograph_context\` | Get relevant code context for a task — **start here** |
|
|
388
|
-
| \`kirograph_callers\` | Find what calls a function |
|
|
389
|
-
| \`kirograph_callees\` | Find what a function calls |
|
|
390
|
-
| \`kirograph_impact\` | See what's affected by changing a symbol |
|
|
391
|
-
| \`kirograph_node\` | Get details + source code for a symbol |
|
|
392
|
-
| \`kirograph_status\` | Check index health and statistics |
|
|
393
|
-
| \`kirograph_files\` | List the indexed file structure |
|
|
394
|
-
| \`kirograph_dead_code\` | Find symbols with no incoming references |
|
|
395
|
-
| \`kirograph_circular_deps\` | Detect circular import dependencies |
|
|
396
|
-
| \`kirograph_path\` | Find the shortest path between two symbols |
|
|
397
|
-
| \`kirograph_type_hierarchy\` | Traverse class/interface inheritance |
|
|
398
|
-
|
|
399
|
-
### Workflow
|
|
400
|
-
|
|
401
|
-
1. Start with \`kirograph_context\` for any task — it returns entry points and related code in one call.
|
|
402
|
-
2. Use \`kirograph_search\` instead of grep for finding symbols.
|
|
403
|
-
3. Use \`kirograph_callers\`/\`kirograph_callees\` to trace code flow.
|
|
404
|
-
4. Use \`kirograph_impact\` before making changes to understand blast radius.
|
|
405
|
-
5. Use \`kirograph_files\` to explore the project structure.
|
|
406
|
-
6. Use \`kirograph_dead_code\` to identify unused code before refactoring.
|
|
407
|
-
|
|
408
|
-
### If \`.kirograph/\` does NOT exist
|
|
409
|
-
|
|
410
|
-
Ask the user: "This project doesn't have KiroGraph initialized. Run \`kirograph init -i\` to build a code knowledge graph for faster exploration?"
|
|
411
|
-
`;
|
|
412
|
-
function writeSteering(kiroDir) {
|
|
413
|
-
const steeringDir = path.join(kiroDir, 'steering');
|
|
414
|
-
ensureDir(steeringDir);
|
|
415
|
-
const steeringPath = path.join(steeringDir, 'kirograph.md');
|
|
416
|
-
fs.writeFileSync(steeringPath, STEERING_CONTENT);
|
|
417
|
-
console.log(` ✓ Steering file written to ${steeringPath}`);
|
|
418
|
-
}
|
|
419
|
-
// ── Main Installer ────────────────────────────────────────────────────────────
|
|
420
|
-
async function runInstaller() {
|
|
421
|
-
(0, banner_1.printBanner)();
|
|
422
|
-
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
423
|
-
try {
|
|
424
|
-
// Determine workspace root
|
|
425
|
-
const cwd = process.cwd();
|
|
426
|
-
const kiroDir = path.join(cwd, '.kiro');
|
|
427
|
-
console.log(` Workspace: ${cwd}\n`);
|
|
428
|
-
const proceed = await ask(rl, ' Install KiroGraph for this Kiro workspace? (Y/n) ');
|
|
429
|
-
if (proceed.toLowerCase() === 'n') {
|
|
430
|
-
console.log(' Cancelled.');
|
|
431
|
-
rl.close();
|
|
432
|
-
return;
|
|
433
|
-
}
|
|
434
|
-
console.log();
|
|
435
|
-
// 1. MCP config
|
|
436
|
-
writeMcpConfig(kiroDir);
|
|
437
|
-
// 2. Hooks
|
|
438
|
-
writeHooks(kiroDir);
|
|
439
|
-
// 3. Steering
|
|
440
|
-
writeSteering(kiroDir);
|
|
441
|
-
// 4. Prompt for config options and persist
|
|
442
|
-
const patch = await promptConfigOptions(rl);
|
|
443
|
-
try {
|
|
444
|
-
await (0, config_1.updateConfig)(cwd, patch);
|
|
445
|
-
console.log(`\n Configuration saved to ${cwd}/.kirograph/config.json`);
|
|
446
|
-
console.log(` • enableEmbeddings: ${patch.enableEmbeddings}`);
|
|
447
|
-
if ('embeddingModel' in patch) {
|
|
448
|
-
console.log(` • embeddingModel: ${patch.embeddingModel}`);
|
|
449
|
-
}
|
|
450
|
-
if (patch.enableEmbeddings) {
|
|
451
|
-
console.log(` • semanticEngine: ${patch.semanticEngine}`);
|
|
452
|
-
if (patch.semanticEngine === 'sqlite-vec') {
|
|
453
|
-
console.log(`\n Installing sqlite-vec dependencies...`);
|
|
454
|
-
const result = (0, child_process_1.spawnSync)('npm', ['install', 'better-sqlite3', 'sqlite-vec'], {
|
|
455
|
-
stdio: 'inherit',
|
|
456
|
-
shell: true,
|
|
457
|
-
});
|
|
458
|
-
if (result.status === 0) {
|
|
459
|
-
console.log(` ✓ better-sqlite3 and sqlite-vec installed`);
|
|
460
|
-
}
|
|
461
|
-
else {
|
|
462
|
-
console.warn(` ✗ npm install failed (exit ${result.status}). Run manually:`);
|
|
463
|
-
console.warn(` npm install better-sqlite3 sqlite-vec`);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
else if (patch.semanticEngine === 'orama') {
|
|
467
|
-
console.log(`\n Installing Orama dependencies...`);
|
|
468
|
-
const result = (0, child_process_1.spawnSync)('npm', ['install', '@orama/orama', '@orama/plugin-data-persistence'], {
|
|
469
|
-
stdio: 'inherit',
|
|
470
|
-
shell: true,
|
|
471
|
-
});
|
|
472
|
-
if (result.status === 0) {
|
|
473
|
-
console.log(` ✓ @orama/orama and @orama/plugin-data-persistence installed`);
|
|
474
|
-
}
|
|
475
|
-
else {
|
|
476
|
-
console.warn(` ✗ npm install failed (exit ${result.status}). Run manually:`);
|
|
477
|
-
console.warn(` npm install @orama/orama @orama/plugin-data-persistence`);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
else if (patch.semanticEngine === 'pglite') {
|
|
481
|
-
console.log(`\n Installing PGlite dependencies...`);
|
|
482
|
-
const result = (0, child_process_1.spawnSync)('npm', ['install', '@electric-sql/pglite'], {
|
|
483
|
-
stdio: 'inherit',
|
|
484
|
-
shell: true,
|
|
485
|
-
});
|
|
486
|
-
if (result.status === 0) {
|
|
487
|
-
console.log(` ✓ @electric-sql/pglite installed`);
|
|
488
|
-
}
|
|
489
|
-
else {
|
|
490
|
-
console.warn(` ✗ npm install failed (exit ${result.status}). Run manually:`);
|
|
491
|
-
console.warn(` npm install @electric-sql/pglite`);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
console.log(` • extractDocstrings: ${patch.extractDocstrings}`);
|
|
496
|
-
console.log(` • trackCallSites: ${patch.trackCallSites}`);
|
|
497
|
-
}
|
|
498
|
-
catch (err) {
|
|
499
|
-
const reason = err instanceof Error ? err.message : String(err);
|
|
500
|
-
console.error(`\n ✗ Failed to write configuration: ${reason}`);
|
|
501
|
-
process.exit(1);
|
|
502
|
-
}
|
|
503
|
-
// 5. Optionally init + index
|
|
504
|
-
const doIndex = await ask(rl, '\n Initialize and index this project now? (Y/n) ');
|
|
505
|
-
if (doIndex.toLowerCase() !== 'n') {
|
|
506
|
-
const KiroGraph = (await Promise.resolve().then(() => __importStar(require('../index')))).default;
|
|
507
|
-
if (!KiroGraph.isInitialized(cwd)) {
|
|
508
|
-
await KiroGraph.init(cwd);
|
|
509
|
-
console.log(' ✓ Created .kirograph/');
|
|
510
|
-
}
|
|
511
|
-
const cg = await KiroGraph.open(cwd);
|
|
512
|
-
console.log(' Indexing...');
|
|
513
|
-
const result = await cg.indexAll({
|
|
514
|
-
onProgress: progress_1.renderIndexProgress,
|
|
515
|
-
});
|
|
516
|
-
process.stdout.write('\n');
|
|
517
|
-
console.log(` ✓ Indexed ${result.filesIndexed} files, ${result.nodesCreated} symbols, ${result.edgesCreated} edges`);
|
|
518
|
-
cg.close();
|
|
519
|
-
}
|
|
520
|
-
console.log('\n Done! Restart Kiro for the MCP server to load.\n');
|
|
521
|
-
}
|
|
522
|
-
finally {
|
|
523
|
-
rl.close();
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
//# sourceMappingURL=index.js.map
|