@optave/codegraph 3.1.5 → 3.3.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/README.md +50 -56
- package/dist/ast-analysis/engine.d.ts +17 -0
- package/dist/ast-analysis/engine.d.ts.map +1 -0
- package/dist/ast-analysis/engine.js +328 -0
- package/dist/ast-analysis/engine.js.map +1 -0
- package/dist/ast-analysis/metrics.d.ts +51 -0
- package/dist/ast-analysis/metrics.d.ts.map +1 -0
- package/dist/ast-analysis/metrics.js +106 -0
- package/dist/ast-analysis/metrics.js.map +1 -0
- package/dist/ast-analysis/rules/csharp.d.ts +24 -0
- package/dist/ast-analysis/rules/csharp.d.ts.map +1 -0
- package/dist/ast-analysis/rules/csharp.js +192 -0
- package/dist/ast-analysis/rules/csharp.js.map +1 -0
- package/dist/ast-analysis/rules/go.d.ts +24 -0
- package/dist/ast-analysis/rules/go.d.ts.map +1 -0
- package/dist/ast-analysis/rules/go.js +173 -0
- package/dist/ast-analysis/rules/go.js.map +1 -0
- package/dist/ast-analysis/rules/index.d.ts +31 -0
- package/dist/ast-analysis/rules/index.d.ts.map +1 -0
- package/dist/ast-analysis/rules/index.js +72 -0
- package/dist/ast-analysis/rules/index.js.map +1 -0
- package/dist/ast-analysis/rules/java.d.ts +24 -0
- package/dist/ast-analysis/rules/java.d.ts.map +1 -0
- package/dist/ast-analysis/rules/java.js +166 -0
- package/dist/ast-analysis/rules/java.js.map +1 -0
- package/dist/ast-analysis/rules/javascript.d.ts +31 -0
- package/dist/ast-analysis/rules/javascript.d.ts.map +1 -0
- package/dist/ast-analysis/rules/javascript.js +235 -0
- package/dist/ast-analysis/rules/javascript.js.map +1 -0
- package/dist/ast-analysis/rules/php.d.ts +24 -0
- package/dist/ast-analysis/rules/php.d.ts.map +1 -0
- package/dist/ast-analysis/rules/php.js +210 -0
- package/dist/ast-analysis/rules/php.js.map +1 -0
- package/dist/ast-analysis/rules/python.d.ts +24 -0
- package/dist/ast-analysis/rules/python.d.ts.map +1 -0
- package/dist/ast-analysis/rules/python.js +188 -0
- package/dist/ast-analysis/rules/python.js.map +1 -0
- package/dist/ast-analysis/rules/ruby.d.ts +24 -0
- package/dist/ast-analysis/rules/ruby.d.ts.map +1 -0
- package/dist/ast-analysis/rules/ruby.js +193 -0
- package/dist/ast-analysis/rules/ruby.js.map +1 -0
- package/dist/ast-analysis/rules/rust.d.ts +24 -0
- package/dist/ast-analysis/rules/rust.d.ts.map +1 -0
- package/dist/ast-analysis/rules/rust.js +165 -0
- package/dist/ast-analysis/rules/rust.js.map +1 -0
- package/dist/ast-analysis/shared.d.ts +106 -0
- package/dist/ast-analysis/shared.d.ts.map +1 -0
- package/dist/ast-analysis/shared.js +186 -0
- package/dist/ast-analysis/shared.js.map +1 -0
- package/dist/ast-analysis/visitor-utils.d.ts +41 -0
- package/dist/ast-analysis/visitor-utils.d.ts.map +1 -0
- package/dist/ast-analysis/visitor-utils.js +180 -0
- package/dist/ast-analysis/visitor-utils.js.map +1 -0
- package/dist/ast-analysis/visitor.d.ts +119 -0
- package/dist/ast-analysis/visitor.d.ts.map +1 -0
- package/dist/ast-analysis/visitor.js +146 -0
- package/dist/ast-analysis/visitor.js.map +1 -0
- package/dist/ast-analysis/visitors/ast-store-visitor.d.ts +11 -0
- package/dist/ast-analysis/visitors/ast-store-visitor.d.ts.map +1 -0
- package/dist/ast-analysis/visitors/ast-store-visitor.js +147 -0
- package/dist/ast-analysis/visitors/ast-store-visitor.js.map +1 -0
- package/dist/ast-analysis/visitors/cfg-visitor.d.ts +8 -0
- package/dist/ast-analysis/visitors/cfg-visitor.d.ts.map +1 -0
- package/dist/ast-analysis/visitors/cfg-visitor.js +660 -0
- package/dist/ast-analysis/visitors/cfg-visitor.js.map +1 -0
- package/dist/ast-analysis/visitors/complexity-visitor.d.ts +17 -0
- package/dist/ast-analysis/visitors/complexity-visitor.d.ts.map +1 -0
- package/dist/ast-analysis/visitors/complexity-visitor.js +216 -0
- package/dist/ast-analysis/visitors/complexity-visitor.js.map +1 -0
- package/dist/ast-analysis/visitors/dataflow-visitor.d.ts +8 -0
- package/dist/ast-analysis/visitors/dataflow-visitor.d.ts.map +1 -0
- package/dist/ast-analysis/visitors/dataflow-visitor.js +321 -0
- package/dist/ast-analysis/visitors/dataflow-visitor.js.map +1 -0
- package/dist/cli/commands/ast.d.ts +9 -0
- package/dist/cli/commands/ast.d.ts.map +1 -0
- package/dist/cli/commands/ast.js +23 -0
- package/dist/cli/commands/ast.js.map +1 -0
- package/dist/cli/commands/audit.d.ts +9 -0
- package/dist/cli/commands/audit.d.ts.map +1 -0
- package/dist/cli/commands/audit.js +46 -0
- package/dist/cli/commands/audit.js.map +1 -0
- package/dist/cli/commands/batch.d.ts +9 -0
- package/dist/cli/commands/batch.d.ts.map +1 -0
- package/dist/cli/commands/batch.js +70 -0
- package/dist/cli/commands/batch.js.map +1 -0
- package/dist/cli/commands/branch-compare.d.ts +7 -0
- package/dist/cli/commands/branch-compare.d.ts.map +1 -0
- package/dist/cli/commands/branch-compare.js +22 -0
- package/dist/cli/commands/branch-compare.js.map +1 -0
- package/dist/cli/commands/brief.d.ts +7 -0
- package/dist/cli/commands/brief.d.ts.map +1 -0
- package/dist/cli/commands/brief.js +12 -0
- package/dist/cli/commands/brief.js.map +1 -0
- package/dist/cli/commands/build.d.ts +7 -0
- package/dist/cli/commands/build.d.ts.map +1 -0
- package/dist/cli/commands/build.js +26 -0
- package/dist/cli/commands/build.js.map +1 -0
- package/dist/cli/commands/cfg.d.ts +10 -0
- package/dist/cli/commands/cfg.d.ts.map +1 -0
- package/dist/cli/commands/cfg.js +27 -0
- package/dist/cli/commands/cfg.js.map +1 -0
- package/dist/cli/commands/check.d.ts +8 -0
- package/dist/cli/commands/check.d.ts.map +1 -0
- package/dist/cli/commands/check.js +65 -0
- package/dist/cli/commands/check.js.map +1 -0
- package/dist/cli/commands/children.d.ts +9 -0
- package/dist/cli/commands/children.d.ts.map +1 -0
- package/dist/cli/commands/children.js +33 -0
- package/dist/cli/commands/children.js.map +1 -0
- package/dist/cli/commands/co-change.d.ts +7 -0
- package/dist/cli/commands/co-change.d.ts.map +1 -0
- package/dist/cli/commands/co-change.js +62 -0
- package/dist/cli/commands/co-change.js.map +1 -0
- package/dist/cli/commands/communities.d.ts +8 -0
- package/dist/cli/commands/communities.d.ts.map +1 -0
- package/dist/cli/commands/communities.js +20 -0
- package/dist/cli/commands/communities.js.map +1 -0
- package/dist/cli/commands/complexity.d.ts +9 -0
- package/dist/cli/commands/complexity.d.ts.map +1 -0
- package/dist/cli/commands/complexity.js +47 -0
- package/dist/cli/commands/complexity.js.map +1 -0
- package/dist/cli/commands/context.d.ts +10 -0
- package/dist/cli/commands/context.d.ts.map +1 -0
- package/dist/cli/commands/context.js +35 -0
- package/dist/cli/commands/context.js.map +1 -0
- package/dist/cli/commands/cycles.d.ts +7 -0
- package/dist/cli/commands/cycles.d.ts.map +1 -0
- package/dist/cli/commands/cycles.js +33 -0
- package/dist/cli/commands/cycles.js.map +1 -0
- package/dist/cli/commands/dataflow.d.ts +10 -0
- package/dist/cli/commands/dataflow.d.ts.map +1 -0
- package/dist/cli/commands/dataflow.js +29 -0
- package/dist/cli/commands/dataflow.js.map +1 -0
- package/dist/cli/commands/deps.d.ts +8 -0
- package/dist/cli/commands/deps.d.ts.map +1 -0
- package/dist/cli/commands/deps.js +18 -0
- package/dist/cli/commands/deps.js.map +1 -0
- package/dist/cli/commands/diff-impact.d.ts +7 -0
- package/dist/cli/commands/diff-impact.d.ts.map +1 -0
- package/dist/cli/commands/diff-impact.js +28 -0
- package/dist/cli/commands/diff-impact.js.map +1 -0
- package/dist/cli/commands/embed.d.ts +8 -0
- package/dist/cli/commands/embed.d.ts.map +1 -0
- package/dist/cli/commands/embed.js +29 -0
- package/dist/cli/commands/embed.js.map +1 -0
- package/dist/cli/commands/export.d.ts +7 -0
- package/dist/cli/commands/export.d.ts.map +1 -0
- package/dist/cli/commands/export.js +72 -0
- package/dist/cli/commands/export.js.map +1 -0
- package/dist/cli/commands/exports.d.ts +8 -0
- package/dist/cli/commands/exports.d.ts.map +1 -0
- package/dist/cli/commands/exports.js +14 -0
- package/dist/cli/commands/exports.js.map +1 -0
- package/dist/cli/commands/flow.d.ts +10 -0
- package/dist/cli/commands/flow.d.ts.map +1 -0
- package/dist/cli/commands/flow.js +32 -0
- package/dist/cli/commands/flow.js.map +1 -0
- package/dist/cli/commands/fn-impact.d.ts +10 -0
- package/dist/cli/commands/fn-impact.d.ts.map +1 -0
- package/dist/cli/commands/fn-impact.js +33 -0
- package/dist/cli/commands/fn-impact.js.map +1 -0
- package/dist/cli/commands/impact.d.ts +7 -0
- package/dist/cli/commands/impact.d.ts.map +1 -0
- package/dist/cli/commands/impact.js +12 -0
- package/dist/cli/commands/impact.js.map +1 -0
- package/dist/cli/commands/implementations.d.ts +10 -0
- package/dist/cli/commands/implementations.d.ts.map +1 -0
- package/dist/cli/commands/implementations.js +29 -0
- package/dist/cli/commands/implementations.js.map +1 -0
- package/dist/cli/commands/info.d.ts +6 -0
- package/dist/cli/commands/info.d.ts.map +1 -0
- package/dist/cli/commands/info.js +66 -0
- package/dist/cli/commands/info.js.map +1 -0
- package/dist/cli/commands/interfaces.d.ts +10 -0
- package/dist/cli/commands/interfaces.d.ts.map +1 -0
- package/dist/cli/commands/interfaces.js +29 -0
- package/dist/cli/commands/interfaces.js.map +1 -0
- package/dist/cli/commands/map.d.ts +7 -0
- package/dist/cli/commands/map.d.ts.map +1 -0
- package/dist/cli/commands/map.js +19 -0
- package/dist/cli/commands/map.js.map +1 -0
- package/dist/cli/commands/mcp.d.ts +7 -0
- package/dist/cli/commands/mcp.d.ts.map +1 -0
- package/dist/cli/commands/mcp.js +19 -0
- package/dist/cli/commands/mcp.js.map +1 -0
- package/dist/cli/commands/models.d.ts +6 -0
- package/dist/cli/commands/models.d.ts.map +1 -0
- package/dist/cli/commands/models.js +17 -0
- package/dist/cli/commands/models.js.map +1 -0
- package/dist/cli/commands/owners.d.ts +8 -0
- package/dist/cli/commands/owners.d.ts.map +1 -0
- package/dist/cli/commands/owners.js +27 -0
- package/dist/cli/commands/owners.js.map +1 -0
- package/dist/cli/commands/path.d.ts +8 -0
- package/dist/cli/commands/path.d.ts.map +1 -0
- package/dist/cli/commands/path.js +36 -0
- package/dist/cli/commands/path.js.map +1 -0
- package/dist/cli/commands/plot.d.ts +7 -0
- package/dist/cli/commands/plot.d.ts.map +1 -0
- package/dist/cli/commands/plot.js +94 -0
- package/dist/cli/commands/plot.js.map +1 -0
- package/dist/cli/commands/query.d.ts +10 -0
- package/dist/cli/commands/query.d.ts.map +1 -0
- package/dist/cli/commands/query.js +51 -0
- package/dist/cli/commands/query.js.map +1 -0
- package/dist/cli/commands/registry.d.ts +16 -0
- package/dist/cli/commands/registry.d.ts.map +1 -0
- package/dist/cli/commands/registry.js +95 -0
- package/dist/cli/commands/registry.js.map +1 -0
- package/dist/cli/commands/roles.d.ts +9 -0
- package/dist/cli/commands/roles.d.ts.map +1 -0
- package/dist/cli/commands/roles.js +31 -0
- package/dist/cli/commands/roles.js.map +1 -0
- package/dist/cli/commands/search.d.ts +9 -0
- package/dist/cli/commands/search.d.ts.map +1 -0
- package/dist/cli/commands/search.js +47 -0
- package/dist/cli/commands/search.js.map +1 -0
- package/dist/cli/commands/sequence.d.ts +10 -0
- package/dist/cli/commands/sequence.d.ts.map +1 -0
- package/dist/cli/commands/sequence.js +29 -0
- package/dist/cli/commands/sequence.js.map +1 -0
- package/dist/cli/commands/snapshot.d.ts +11 -0
- package/dist/cli/commands/snapshot.d.ts.map +1 -0
- package/dist/cli/commands/snapshot.js +61 -0
- package/dist/cli/commands/snapshot.js.map +1 -0
- package/dist/cli/commands/stats.d.ts +7 -0
- package/dist/cli/commands/stats.d.ts.map +1 -0
- package/dist/cli/commands/stats.js +15 -0
- package/dist/cli/commands/stats.js.map +1 -0
- package/dist/cli/commands/structure.d.ts +7 -0
- package/dist/cli/commands/structure.d.ts.map +1 -0
- package/dist/cli/commands/structure.js +33 -0
- package/dist/cli/commands/structure.js.map +1 -0
- package/dist/cli/commands/triage.d.ts +8 -0
- package/dist/cli/commands/triage.d.ts.map +1 -0
- package/dist/cli/commands/triage.js +89 -0
- package/dist/cli/commands/triage.js.map +1 -0
- package/dist/cli/commands/watch.d.ts +6 -0
- package/dist/cli/commands/watch.d.ts.map +1 -0
- package/dist/cli/commands/watch.js +12 -0
- package/dist/cli/commands/watch.js.map +1 -0
- package/dist/cli/commands/where.d.ts +9 -0
- package/dist/cli/commands/where.d.ts.map +1 -0
- package/dist/cli/commands/where.js +20 -0
- package/dist/cli/commands/where.js.map +1 -0
- package/dist/cli/index.d.ts +31 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +109 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/shared/open-graph.d.ts +14 -0
- package/dist/cli/shared/open-graph.d.ts.map +1 -0
- package/dist/cli/shared/open-graph.js +13 -0
- package/dist/cli/shared/open-graph.js.map +1 -0
- package/dist/cli/shared/options.d.ts +31 -0
- package/dist/cli/shared/options.d.ts.map +1 -0
- package/dist/cli/shared/options.js +58 -0
- package/dist/cli/shared/options.js.map +1 -0
- package/dist/cli/shared/output.d.ts +2 -0
- package/dist/cli/shared/output.d.ts.map +1 -0
- package/dist/cli/shared/output.js +2 -0
- package/dist/cli/shared/output.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +15 -0
- package/dist/cli.js.map +1 -0
- package/dist/db/connection.d.ts +39 -0
- package/dist/db/connection.d.ts.map +1 -0
- package/dist/db/connection.js +217 -0
- package/dist/db/connection.js.map +1 -0
- package/dist/db/index.d.ts +5 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +6 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/migrations.d.ts +8 -0
- package/dist/db/migrations.d.ts.map +1 -0
- package/dist/db/migrations.js +323 -0
- package/dist/db/migrations.js.map +1 -0
- package/dist/db/query-builder.d.ts +106 -0
- package/dist/db/query-builder.d.ts.map +1 -0
- package/dist/db/query-builder.js +313 -0
- package/dist/db/query-builder.js.map +1 -0
- package/dist/db/repository/base.d.ts +115 -0
- package/dist/db/repository/base.d.ts.map +1 -0
- package/dist/db/repository/base.js +165 -0
- package/dist/db/repository/base.js.map +1 -0
- package/dist/db/repository/build-stmts.d.ts +25 -0
- package/dist/db/repository/build-stmts.d.ts.map +1 -0
- package/dist/db/repository/build-stmts.js +86 -0
- package/dist/db/repository/build-stmts.js.map +1 -0
- package/dist/db/repository/cached-stmt.d.ts +13 -0
- package/dist/db/repository/cached-stmt.d.ts.map +1 -0
- package/dist/db/repository/cached-stmt.js +20 -0
- package/dist/db/repository/cached-stmt.js.map +1 -0
- package/dist/db/repository/cfg.d.ts +27 -0
- package/dist/db/repository/cfg.d.ts.map +1 -0
- package/dist/db/repository/cfg.js +57 -0
- package/dist/db/repository/cfg.js.map +1 -0
- package/dist/db/repository/cochange.d.ts +20 -0
- package/dist/db/repository/cochange.d.ts.map +1 -0
- package/dist/db/repository/cochange.js +45 -0
- package/dist/db/repository/cochange.js.map +1 -0
- package/dist/db/repository/complexity.d.ts +15 -0
- package/dist/db/repository/complexity.d.ts.map +1 -0
- package/dist/db/repository/complexity.js +15 -0
- package/dist/db/repository/complexity.js.map +1 -0
- package/dist/db/repository/dataflow.d.ts +7 -0
- package/dist/db/repository/dataflow.d.ts.map +1 -0
- package/dist/db/repository/dataflow.js +17 -0
- package/dist/db/repository/dataflow.js.map +1 -0
- package/dist/db/repository/edges.d.ts +173 -0
- package/dist/db/repository/edges.d.ts.map +1 -0
- package/dist/db/repository/edges.js +231 -0
- package/dist/db/repository/edges.js.map +1 -0
- package/dist/db/repository/embeddings.d.ts +20 -0
- package/dist/db/repository/embeddings.d.ts.map +1 -0
- package/dist/db/repository/embeddings.js +47 -0
- package/dist/db/repository/embeddings.js.map +1 -0
- package/dist/db/repository/graph-read.d.ts +41 -0
- package/dist/db/repository/graph-read.d.ts.map +1 -0
- package/dist/db/repository/graph-read.js +41 -0
- package/dist/db/repository/graph-read.js.map +1 -0
- package/dist/db/repository/in-memory-repository.d.ts +156 -0
- package/dist/db/repository/in-memory-repository.d.ts.map +1 -0
- package/dist/db/repository/in-memory-repository.js +533 -0
- package/dist/db/repository/in-memory-repository.js.map +1 -0
- package/dist/db/repository/index.d.ts +14 -0
- package/dist/db/repository/index.d.ts.map +1 -0
- package/dist/db/repository/index.js +15 -0
- package/dist/db/repository/index.js.map +1 -0
- package/dist/db/repository/nodes.d.ts +151 -0
- package/dist/db/repository/nodes.d.ts.map +1 -0
- package/dist/db/repository/nodes.js +244 -0
- package/dist/db/repository/nodes.js.map +1 -0
- package/dist/db/repository/sqlite-repository.d.ts +100 -0
- package/dist/db/repository/sqlite-repository.d.ts.map +1 -0
- package/dist/db/repository/sqlite-repository.js +143 -0
- package/dist/db/repository/sqlite-repository.js.map +1 -0
- package/dist/domain/analysis/brief.d.ts +16 -0
- package/dist/domain/analysis/brief.d.ts.map +1 -0
- package/dist/domain/analysis/brief.js +147 -0
- package/dist/domain/analysis/brief.js.map +1 -0
- package/dist/domain/analysis/context.d.ts +3 -0
- package/dist/domain/analysis/context.d.ts.map +1 -0
- package/dist/domain/analysis/context.js +378 -0
- package/dist/domain/analysis/context.js.map +1 -0
- package/dist/domain/analysis/dependencies.d.ts +60 -0
- package/dist/domain/analysis/dependencies.d.ts.map +1 -0
- package/dist/domain/analysis/dependencies.js +359 -0
- package/dist/domain/analysis/dependencies.js.map +1 -0
- package/dist/domain/analysis/exports.d.ts +2 -0
- package/dist/domain/analysis/exports.d.ts.map +1 -0
- package/dist/domain/analysis/exports.js +168 -0
- package/dist/domain/analysis/exports.js.map +1 -0
- package/dist/domain/analysis/impact.d.ts +39 -0
- package/dist/domain/analysis/impact.d.ts.map +1 -0
- package/dist/domain/analysis/impact.js +596 -0
- package/dist/domain/analysis/impact.js.map +1 -0
- package/dist/domain/analysis/implementations.d.ts +59 -0
- package/dist/domain/analysis/implementations.d.ts.map +1 -0
- package/dist/domain/analysis/implementations.js +93 -0
- package/dist/domain/analysis/implementations.js.map +1 -0
- package/dist/domain/analysis/module-map.d.ts +64 -0
- package/dist/domain/analysis/module-map.d.ts.map +1 -0
- package/dist/domain/analysis/module-map.js +334 -0
- package/dist/domain/analysis/module-map.js.map +1 -0
- package/dist/domain/analysis/roles.d.ts +2 -0
- package/dist/domain/analysis/roles.d.ts.map +1 -0
- package/dist/domain/analysis/roles.js +50 -0
- package/dist/domain/analysis/roles.js.map +1 -0
- package/dist/domain/analysis/symbol-lookup.d.ts +12 -0
- package/dist/domain/analysis/symbol-lookup.d.ts.map +1 -0
- package/dist/domain/analysis/symbol-lookup.js +202 -0
- package/dist/domain/analysis/symbol-lookup.js.map +1 -0
- package/dist/domain/graph/builder/context.d.ts +91 -0
- package/dist/domain/graph/builder/context.d.ts.map +1 -0
- package/dist/domain/graph/builder/context.js +78 -0
- package/dist/domain/graph/builder/context.js.map +1 -0
- package/dist/domain/graph/builder/helpers.d.ts +43 -0
- package/dist/domain/graph/builder/helpers.d.ts.map +1 -0
- package/dist/domain/graph/builder/helpers.js +209 -0
- package/dist/domain/graph/builder/helpers.js.map +1 -0
- package/dist/domain/graph/builder/incremental.d.ts +17 -0
- package/dist/domain/graph/builder/incremental.d.ts.map +1 -0
- package/dist/domain/graph/builder/incremental.js +191 -0
- package/dist/domain/graph/builder/incremental.js.map +1 -0
- package/dist/domain/graph/builder/pipeline.d.ts +13 -0
- package/dist/domain/graph/builder/pipeline.d.ts.map +1 -0
- package/dist/domain/graph/builder/pipeline.js +146 -0
- package/dist/domain/graph/builder/pipeline.js.map +1 -0
- package/dist/domain/graph/builder/stages/build-edges.d.ts +5 -0
- package/dist/domain/graph/builder/stages/build-edges.d.ts.map +1 -0
- package/dist/domain/graph/builder/stages/build-edges.js +387 -0
- package/dist/domain/graph/builder/stages/build-edges.js.map +1 -0
- package/dist/domain/graph/builder/stages/build-structure.d.ts +5 -0
- package/dist/domain/graph/builder/stages/build-structure.d.ts.map +1 -0
- package/dist/domain/graph/builder/stages/build-structure.js +107 -0
- package/dist/domain/graph/builder/stages/build-structure.js.map +1 -0
- package/dist/domain/graph/builder/stages/collect-files.d.ts +5 -0
- package/dist/domain/graph/builder/stages/collect-files.d.ts.map +1 -0
- package/dist/domain/graph/builder/stages/collect-files.js +45 -0
- package/dist/domain/graph/builder/stages/collect-files.js.map +1 -0
- package/dist/domain/graph/builder/stages/detect-changes.d.ts +5 -0
- package/dist/domain/graph/builder/stages/detect-changes.d.ts.map +1 -0
- package/dist/domain/graph/builder/stages/detect-changes.js +358 -0
- package/dist/domain/graph/builder/stages/detect-changes.js.map +1 -0
- package/dist/domain/graph/builder/stages/finalize.d.ts +5 -0
- package/dist/domain/graph/builder/stages/finalize.d.ts.map +1 -0
- package/dist/domain/graph/builder/stages/finalize.js +123 -0
- package/dist/domain/graph/builder/stages/finalize.js.map +1 -0
- package/dist/domain/graph/builder/stages/insert-nodes.d.ts +5 -0
- package/dist/domain/graph/builder/stages/insert-nodes.d.ts.map +1 -0
- package/dist/domain/graph/builder/stages/insert-nodes.js +183 -0
- package/dist/domain/graph/builder/stages/insert-nodes.js.map +1 -0
- package/dist/domain/graph/builder/stages/parse-files.d.ts +5 -0
- package/dist/domain/graph/builder/stages/parse-files.d.ts.map +1 -0
- package/dist/domain/graph/builder/stages/parse-files.js +25 -0
- package/dist/domain/graph/builder/stages/parse-files.js.map +1 -0
- package/dist/domain/graph/builder/stages/resolve-imports.d.ts +18 -0
- package/dist/domain/graph/builder/stages/resolve-imports.d.ts.map +1 -0
- package/dist/domain/graph/builder/stages/resolve-imports.js +139 -0
- package/dist/domain/graph/builder/stages/resolve-imports.js.map +1 -0
- package/dist/domain/graph/builder/stages/run-analyses.d.ts +5 -0
- package/dist/domain/graph/builder/stages/run-analyses.d.ts.map +1 -0
- package/dist/domain/graph/builder/stages/run-analyses.js +39 -0
- package/dist/domain/graph/builder/stages/run-analyses.js.map +1 -0
- package/dist/domain/graph/builder.d.ts +4 -0
- package/dist/domain/graph/builder.d.ts.map +1 -0
- package/dist/domain/graph/builder.js +6 -0
- package/dist/domain/graph/builder.js.map +1 -0
- package/dist/domain/graph/change-journal.d.ts +57 -0
- package/dist/domain/graph/change-journal.d.ts.map +1 -0
- package/dist/domain/graph/change-journal.js +120 -0
- package/dist/domain/graph/change-journal.js.map +1 -0
- package/dist/domain/graph/cycles.d.ts +18 -0
- package/dist/domain/graph/cycles.d.ts.map +1 -0
- package/dist/domain/graph/cycles.js +75 -0
- package/dist/domain/graph/cycles.js.map +1 -0
- package/dist/domain/graph/journal.d.ts +27 -0
- package/dist/domain/graph/journal.d.ts.map +1 -0
- package/dist/domain/graph/journal.js +100 -0
- package/dist/domain/graph/journal.js.map +1 -0
- package/dist/domain/graph/resolve.d.ts +76 -0
- package/dist/domain/graph/resolve.d.ts.map +1 -0
- package/dist/domain/graph/resolve.js +482 -0
- package/dist/domain/graph/resolve.js.map +1 -0
- package/dist/domain/graph/watcher.d.ts +2 -0
- package/dist/domain/graph/watcher.d.ts.map +1 -0
- package/dist/domain/graph/watcher.js +140 -0
- package/dist/domain/graph/watcher.js.map +1 -0
- package/dist/domain/parser.d.ts +104 -0
- package/dist/domain/parser.d.ts.map +1 -0
- package/dist/domain/parser.js +557 -0
- package/dist/domain/parser.js.map +1 -0
- package/dist/domain/queries.d.ts +14 -0
- package/dist/domain/queries.d.ts.map +1 -0
- package/dist/domain/queries.js +25 -0
- package/dist/domain/queries.js.map +1 -0
- package/dist/domain/search/generator.d.ts +17 -0
- package/dist/domain/search/generator.d.ts.map +1 -0
- package/dist/domain/search/generator.js +135 -0
- package/dist/domain/search/generator.js.map +1 -0
- package/dist/domain/search/index.d.ts +8 -0
- package/dist/domain/search/index.d.ts.map +1 -0
- package/dist/domain/search/index.js +13 -0
- package/dist/domain/search/index.js.map +1 -0
- package/dist/domain/search/models.d.ts +82 -0
- package/dist/domain/search/models.d.ts.map +1 -0
- package/dist/domain/search/models.js +198 -0
- package/dist/domain/search/models.js.map +1 -0
- package/dist/domain/search/search/cli-formatter.d.ts +6 -0
- package/dist/domain/search/search/cli-formatter.d.ts.map +1 -0
- package/dist/domain/search/search/cli-formatter.js +135 -0
- package/dist/domain/search/search/cli-formatter.js.map +1 -0
- package/dist/domain/search/search/filters.d.ts +19 -0
- package/dist/domain/search/search/filters.d.ts.map +1 -0
- package/dist/domain/search/search/filters.js +48 -0
- package/dist/domain/search/search/filters.js.map +1 -0
- package/dist/domain/search/search/hybrid.d.ts +22 -0
- package/dist/domain/search/search/hybrid.d.ts.map +1 -0
- package/dist/domain/search/search/hybrid.js +113 -0
- package/dist/domain/search/search/hybrid.js.map +1 -0
- package/dist/domain/search/search/keyword.d.ts +17 -0
- package/dist/domain/search/search/keyword.d.ts.map +1 -0
- package/dist/domain/search/search/keyword.js +66 -0
- package/dist/domain/search/search/keyword.js.map +1 -0
- package/dist/domain/search/search/prepare.d.ts +13 -0
- package/dist/domain/search/search/prepare.d.ts.map +1 -0
- package/dist/domain/search/search/prepare.js +70 -0
- package/dist/domain/search/search/prepare.js.map +1 -0
- package/dist/domain/search/search/semantic.d.ts +34 -0
- package/dist/domain/search/search/semantic.d.ts.map +1 -0
- package/dist/domain/search/search/semantic.js +129 -0
- package/dist/domain/search/search/semantic.js.map +1 -0
- package/dist/domain/search/stores/fts5.d.ts +11 -0
- package/dist/domain/search/stores/fts5.d.ts.map +1 -0
- package/dist/domain/search/stores/fts5.js +31 -0
- package/dist/domain/search/stores/fts5.js.map +1 -0
- package/dist/domain/search/stores/sqlite-blob.d.ts +27 -0
- package/dist/domain/search/stores/sqlite-blob.d.ts.map +1 -0
- package/dist/domain/search/stores/sqlite-blob.js +22 -0
- package/dist/domain/search/stores/sqlite-blob.js.map +1 -0
- package/dist/domain/search/strategies/source.d.ts +5 -0
- package/dist/domain/search/strategies/source.d.ts.map +1 -0
- package/dist/domain/search/strategies/source.js +14 -0
- package/dist/domain/search/strategies/source.js.map +1 -0
- package/dist/domain/search/strategies/structured.d.ts +6 -0
- package/dist/domain/search/strategies/structured.d.ts.map +1 -0
- package/dist/domain/search/strategies/structured.js +40 -0
- package/dist/domain/search/strategies/structured.js.map +1 -0
- package/dist/domain/search/strategies/text-utils.d.ts +11 -0
- package/dist/domain/search/strategies/text-utils.d.ts.map +1 -0
- package/dist/domain/search/strategies/text-utils.js +47 -0
- package/dist/domain/search/strategies/text-utils.js.map +1 -0
- package/dist/extractors/csharp.d.ts +12 -0
- package/dist/extractors/csharp.d.ts.map +1 -0
- package/dist/extractors/csharp.js +402 -0
- package/dist/extractors/csharp.js.map +1 -0
- package/dist/extractors/go.d.ts +12 -0
- package/dist/extractors/go.d.ts.map +1 -0
- package/dist/extractors/go.js +381 -0
- package/dist/extractors/go.js.map +1 -0
- package/dist/extractors/hcl.d.ts +11 -0
- package/dist/extractors/hcl.d.ts.map +1 -0
- package/dist/extractors/hcl.js +105 -0
- package/dist/extractors/hcl.js.map +1 -0
- package/dist/extractors/helpers.d.ts +16 -0
- package/dist/extractors/helpers.d.ts.map +1 -0
- package/dist/extractors/helpers.js +88 -0
- package/dist/extractors/helpers.js.map +1 -0
- package/dist/extractors/index.d.ts +10 -0
- package/dist/extractors/index.d.ts.map +1 -0
- package/dist/extractors/index.js +10 -0
- package/dist/extractors/index.js.map +1 -0
- package/dist/extractors/java.d.ts +12 -0
- package/dist/extractors/java.d.ts.map +1 -0
- package/dist/extractors/java.js +325 -0
- package/dist/extractors/java.js.map +1 -0
- package/dist/extractors/javascript.d.ts +81 -0
- package/dist/extractors/javascript.d.ts.map +1 -0
- package/dist/extractors/javascript.js +1232 -0
- package/dist/extractors/javascript.js.map +1 -0
- package/dist/extractors/php.d.ts +12 -0
- package/dist/extractors/php.d.ts.map +1 -0
- package/dist/extractors/php.js +380 -0
- package/dist/extractors/php.js.map +1 -0
- package/dist/extractors/python.d.ts +12 -0
- package/dist/extractors/python.d.ts.map +1 -0
- package/dist/extractors/python.js +426 -0
- package/dist/extractors/python.js.map +1 -0
- package/dist/extractors/ruby.d.ts +11 -0
- package/dist/extractors/ruby.d.ts.map +1 -0
- package/dist/extractors/ruby.js +284 -0
- package/dist/extractors/ruby.js.map +1 -0
- package/dist/extractors/rust.d.ts +12 -0
- package/dist/extractors/rust.d.ts.map +1 -0
- package/dist/extractors/rust.js +366 -0
- package/dist/extractors/rust.js.map +1 -0
- package/dist/features/ast.d.ts +30 -0
- package/dist/features/ast.d.ts.map +1 -0
- package/dist/features/ast.js +242 -0
- package/dist/features/ast.js.map +1 -0
- package/dist/features/audit.d.ts +6 -0
- package/dist/features/audit.d.ts.map +1 -0
- package/dist/features/audit.js +283 -0
- package/dist/features/audit.js.map +1 -0
- package/dist/features/batch.d.ts +110 -0
- package/dist/features/batch.d.ts.map +1 -0
- package/dist/features/batch.js +138 -0
- package/dist/features/batch.js.map +1 -0
- package/dist/features/boundaries.d.ts +69 -0
- package/dist/features/boundaries.d.ts.map +1 -0
- package/dist/features/boundaries.js +344 -0
- package/dist/features/boundaries.js.map +1 -0
- package/dist/features/branch-compare.d.ts +52 -0
- package/dist/features/branch-compare.d.ts.map +1 -0
- package/dist/features/branch-compare.js +425 -0
- package/dist/features/branch-compare.js.map +1 -0
- package/dist/features/cfg.d.ts +51 -0
- package/dist/features/cfg.d.ts.map +1 -0
- package/dist/features/cfg.js +372 -0
- package/dist/features/cfg.js.map +1 -0
- package/dist/features/check.d.ts +99 -0
- package/dist/features/check.d.ts.map +1 -0
- package/dist/features/check.js +296 -0
- package/dist/features/check.js.map +1 -0
- package/dist/features/cochange.d.ts +119 -0
- package/dist/features/cochange.d.ts.map +1 -0
- package/dist/features/cochange.js +425 -0
- package/dist/features/cochange.js.map +1 -0
- package/dist/features/communities.d.ts +40 -0
- package/dist/features/communities.d.ts.map +1 -0
- package/dist/features/communities.js +163 -0
- package/dist/features/communities.js.map +1 -0
- package/dist/features/complexity.d.ts +127 -0
- package/dist/features/complexity.d.ts.map +1 -0
- package/dist/features/complexity.js +683 -0
- package/dist/features/complexity.js.map +1 -0
- package/dist/features/dataflow.d.ts +72 -0
- package/dist/features/dataflow.d.ts.map +1 -0
- package/dist/features/dataflow.js +483 -0
- package/dist/features/dataflow.js.map +1 -0
- package/dist/features/export.d.ts +29 -0
- package/dist/features/export.d.ts.map +1 -0
- package/dist/features/export.js +336 -0
- package/dist/features/export.js.map +1 -0
- package/dist/features/flow.d.ts +49 -0
- package/dist/features/flow.d.ts.map +1 -0
- package/dist/features/flow.js +203 -0
- package/dist/features/flow.js.map +1 -0
- package/dist/features/graph-enrichment.d.ts +54 -0
- package/dist/features/graph-enrichment.d.ts.map +1 -0
- package/dist/features/graph-enrichment.js +297 -0
- package/dist/features/graph-enrichment.js.map +1 -0
- package/dist/features/manifesto.d.ts +46 -0
- package/dist/features/manifesto.d.ts.map +1 -0
- package/dist/features/manifesto.js +398 -0
- package/dist/features/manifesto.js.map +1 -0
- package/dist/features/owners.d.ts +123 -0
- package/dist/features/owners.d.ts.map +1 -0
- package/dist/features/owners.js +289 -0
- package/dist/features/owners.js.map +1 -0
- package/dist/features/sequence.d.ts +33 -0
- package/dist/features/sequence.d.ts.map +1 -0
- package/dist/features/sequence.js +269 -0
- package/dist/features/sequence.js.map +1 -0
- package/dist/features/shared/find-nodes.d.ts +11 -0
- package/dist/features/shared/find-nodes.d.ts.map +1 -0
- package/dist/features/shared/find-nodes.js +27 -0
- package/dist/features/shared/find-nodes.js.map +1 -0
- package/dist/features/snapshot.d.ts +64 -0
- package/dist/features/snapshot.d.ts.map +1 -0
- package/dist/features/snapshot.js +132 -0
- package/dist/features/snapshot.js.map +1 -0
- package/dist/features/structure.d.ts +42 -0
- package/dist/features/structure.d.ts.map +1 -0
- package/dist/features/structure.js +596 -0
- package/dist/features/structure.js.map +1 -0
- package/dist/features/triage.d.ts +13 -0
- package/dist/features/triage.d.ts.map +1 -0
- package/dist/features/triage.js +133 -0
- package/dist/features/triage.js.map +1 -0
- package/dist/graph/algorithms/bfs.d.ts +13 -0
- package/dist/graph/algorithms/bfs.d.ts.map +1 -0
- package/dist/graph/algorithms/bfs.js +47 -0
- package/dist/graph/algorithms/bfs.js.map +1 -0
- package/dist/graph/algorithms/centrality.d.ts +11 -0
- package/dist/graph/algorithms/centrality.d.ts.map +1 -0
- package/dist/graph/algorithms/centrality.js +17 -0
- package/dist/graph/algorithms/centrality.js.map +1 -0
- package/dist/graph/algorithms/index.d.ts +6 -0
- package/dist/graph/algorithms/index.d.ts.map +1 -0
- package/dist/graph/algorithms/index.js +6 -0
- package/dist/graph/algorithms/index.js.map +1 -0
- package/dist/graph/algorithms/louvain.d.ts +5 -0
- package/dist/graph/algorithms/louvain.d.ts.map +1 -0
- package/dist/graph/algorithms/louvain.js +22 -0
- package/dist/graph/algorithms/louvain.js.map +1 -0
- package/dist/graph/algorithms/shortest-path.d.ts +10 -0
- package/dist/graph/algorithms/shortest-path.d.ts.map +1 -0
- package/dist/graph/algorithms/shortest-path.js +41 -0
- package/dist/graph/algorithms/shortest-path.js.map +1 -0
- package/dist/graph/algorithms/tarjan.d.ts +9 -0
- package/dist/graph/algorithms/tarjan.d.ts.map +1 -0
- package/dist/graph/algorithms/tarjan.js +48 -0
- package/dist/graph/algorithms/tarjan.js.map +1 -0
- package/dist/graph/builders/dependency.d.ts +15 -0
- package/dist/graph/builders/dependency.d.ts.map +1 -0
- package/dist/graph/builders/dependency.js +99 -0
- package/dist/graph/builders/dependency.js.map +1 -0
- package/dist/graph/builders/index.d.ts +4 -0
- package/dist/graph/builders/index.d.ts.map +1 -0
- package/dist/graph/builders/index.js +4 -0
- package/dist/graph/builders/index.js.map +1 -0
- package/dist/graph/builders/structure.d.ts +7 -0
- package/dist/graph/builders/structure.d.ts.map +1 -0
- package/dist/graph/builders/structure.js +32 -0
- package/dist/graph/builders/structure.js.map +1 -0
- package/dist/graph/builders/temporal.d.ts +10 -0
- package/dist/graph/builders/temporal.d.ts.map +1 -0
- package/dist/graph/builders/temporal.js +31 -0
- package/dist/graph/builders/temporal.js.map +1 -0
- package/dist/graph/classifiers/index.d.ts +3 -0
- package/dist/graph/classifiers/index.d.ts.map +1 -0
- package/dist/graph/classifiers/index.js +3 -0
- package/dist/graph/classifiers/index.js.map +1 -0
- package/dist/graph/classifiers/risk.d.ts +49 -0
- package/dist/graph/classifiers/risk.d.ts.map +1 -0
- package/dist/graph/classifiers/risk.js +84 -0
- package/dist/graph/classifiers/risk.js.map +1 -0
- package/dist/graph/classifiers/roles.d.ts +29 -0
- package/dist/graph/classifiers/roles.d.ts.map +1 -0
- package/dist/graph/classifiers/roles.js +109 -0
- package/dist/graph/classifiers/roles.js.map +1 -0
- package/dist/graph/index.d.ts +5 -0
- package/dist/graph/index.d.ts.map +1 -0
- package/dist/graph/index.js +6 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph/model.d.ts +53 -0
- package/dist/graph/model.d.ts.map +1 -0
- package/dist/graph/model.js +210 -0
- package/dist/graph/model.js.map +1 -0
- package/dist/index.cjs +18 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/infrastructure/config.d.ts +222 -0
- package/dist/infrastructure/config.d.ts.map +1 -0
- package/dist/infrastructure/config.js +386 -0
- package/dist/infrastructure/config.js.map +1 -0
- package/dist/infrastructure/logger.d.ts +7 -0
- package/dist/infrastructure/logger.d.ts.map +1 -0
- package/dist/infrastructure/logger.js +21 -0
- package/dist/infrastructure/logger.js.map +1 -0
- package/dist/infrastructure/native.d.ts +19 -0
- package/dist/infrastructure/native.d.ts.map +1 -0
- package/dist/infrastructure/native.js +105 -0
- package/dist/infrastructure/native.js.map +1 -0
- package/dist/infrastructure/registry.d.ts +57 -0
- package/dist/infrastructure/registry.d.ts.map +1 -0
- package/dist/infrastructure/registry.js +157 -0
- package/dist/infrastructure/registry.js.map +1 -0
- package/dist/infrastructure/result-formatter.d.ts +2 -0
- package/dist/infrastructure/result-formatter.d.ts.map +1 -0
- package/dist/infrastructure/result-formatter.js +3 -0
- package/dist/infrastructure/result-formatter.js.map +1 -0
- package/dist/infrastructure/test-filter.d.ts +5 -0
- package/dist/infrastructure/test-filter.d.ts.map +1 -0
- package/dist/infrastructure/test-filter.js +7 -0
- package/dist/infrastructure/test-filter.js.map +1 -0
- package/dist/infrastructure/update-check.d.ts +24 -0
- package/dist/infrastructure/update-check.d.ts.map +1 -0
- package/dist/infrastructure/update-check.js +150 -0
- package/dist/infrastructure/update-check.js.map +1 -0
- package/dist/mcp/index.d.ts +3 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +3 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/middleware.d.ts +26 -0
- package/dist/mcp/middleware.d.ts.map +1 -0
- package/dist/mcp/middleware.js +38 -0
- package/dist/mcp/middleware.js.map +1 -0
- package/dist/mcp/server.d.ts +2 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +120 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/tool-registry.d.ts +8 -0
- package/dist/mcp/tool-registry.d.ts.map +1 -0
- package/dist/mcp/tool-registry.js +819 -0
- package/dist/mcp/tool-registry.js.map +1 -0
- package/dist/mcp/tools/ast-query.d.ts +9 -0
- package/dist/mcp/tools/ast-query.d.ts.map +1 -0
- package/dist/mcp/tools/ast-query.js +13 -0
- package/dist/mcp/tools/ast-query.js.map +1 -0
- package/dist/mcp/tools/audit.d.ts +3 -0
- package/dist/mcp/tools/audit.d.ts.map +1 -0
- package/dist/mcp/tools/audit.js +20 -0
- package/dist/mcp/tools/audit.js.map +1 -0
- package/dist/mcp/tools/batch-query.d.ts +9 -0
- package/dist/mcp/tools/batch-query.d.ts.map +1 -0
- package/dist/mcp/tools/batch-query.js +11 -0
- package/dist/mcp/tools/batch-query.js.map +1 -0
- package/dist/mcp/tools/branch-compare.d.ts +3 -0
- package/dist/mcp/tools/branch-compare.d.ts.map +1 -0
- package/dist/mcp/tools/branch-compare.js +10 -0
- package/dist/mcp/tools/branch-compare.js.map +1 -0
- package/dist/mcp/tools/brief.d.ts +3 -0
- package/dist/mcp/tools/brief.d.ts.map +1 -0
- package/dist/mcp/tools/brief.js +8 -0
- package/dist/mcp/tools/brief.js.map +1 -0
- package/dist/mcp/tools/cfg.d.ts +10 -0
- package/dist/mcp/tools/cfg.d.ts.map +1 -0
- package/dist/mcp/tools/cfg.js +20 -0
- package/dist/mcp/tools/cfg.js.map +1 -0
- package/dist/mcp/tools/check.d.ts +24 -0
- package/dist/mcp/tools/check.d.ts.map +1 -0
- package/dist/mcp/tools/check.js +39 -0
- package/dist/mcp/tools/check.js.map +1 -0
- package/dist/mcp/tools/co-changes.d.ts +10 -0
- package/dist/mcp/tools/co-changes.d.ts.map +1 -0
- package/dist/mcp/tools/co-changes.js +19 -0
- package/dist/mcp/tools/co-changes.js.map +1 -0
- package/dist/mcp/tools/code-owners.d.ts +48 -0
- package/dist/mcp/tools/code-owners.d.ts.map +1 -0
- package/dist/mcp/tools/code-owners.js +12 -0
- package/dist/mcp/tools/code-owners.js.map +1 -0
- package/dist/mcp/tools/communities.d.ts +8 -0
- package/dist/mcp/tools/communities.d.ts.map +1 -0
- package/dist/mcp/tools/communities.js +14 -0
- package/dist/mcp/tools/communities.js.map +1 -0
- package/dist/mcp/tools/complexity.d.ts +7 -0
- package/dist/mcp/tools/complexity.d.ts.map +1 -0
- package/dist/mcp/tools/complexity.js +17 -0
- package/dist/mcp/tools/complexity.js.map +1 -0
- package/dist/mcp/tools/context.d.ts +3 -0
- package/dist/mcp/tools/context.d.ts.map +1 -0
- package/dist/mcp/tools/context.js +16 -0
- package/dist/mcp/tools/context.js.map +1 -0
- package/dist/mcp/tools/dataflow.d.ts +6 -0
- package/dist/mcp/tools/dataflow.d.ts.map +1 -0
- package/dist/mcp/tools/dataflow.js +25 -0
- package/dist/mcp/tools/dataflow.js.map +1 -0
- package/dist/mcp/tools/diff-impact.d.ts +3 -0
- package/dist/mcp/tools/diff-impact.d.ts.map +1 -0
- package/dist/mcp/tools/diff-impact.js +23 -0
- package/dist/mcp/tools/diff-impact.js.map +1 -0
- package/dist/mcp/tools/execution-flow.d.ts +17 -0
- package/dist/mcp/tools/execution-flow.d.ts.map +1 -0
- package/dist/mcp/tools/execution-flow.js +25 -0
- package/dist/mcp/tools/execution-flow.js.map +1 -0
- package/dist/mcp/tools/export-graph.d.ts +3 -0
- package/dist/mcp/tools/export-graph.d.ts.map +1 -0
- package/dist/mcp/tools/export-graph.js +55 -0
- package/dist/mcp/tools/export-graph.js.map +1 -0
- package/dist/mcp/tools/file-deps.d.ts +3 -0
- package/dist/mcp/tools/file-deps.d.ts.map +1 -0
- package/dist/mcp/tools/file-deps.js +11 -0
- package/dist/mcp/tools/file-deps.js.map +1 -0
- package/dist/mcp/tools/file-exports.d.ts +3 -0
- package/dist/mcp/tools/file-exports.d.ts.map +1 -0
- package/dist/mcp/tools/file-exports.js +12 -0
- package/dist/mcp/tools/file-exports.js.map +1 -0
- package/dist/mcp/tools/find-cycles.d.ts +6 -0
- package/dist/mcp/tools/find-cycles.d.ts.map +1 -0
- package/dist/mcp/tools/find-cycles.js +15 -0
- package/dist/mcp/tools/find-cycles.js.map +1 -0
- package/dist/mcp/tools/fn-impact.d.ts +3 -0
- package/dist/mcp/tools/fn-impact.d.ts.map +1 -0
- package/dist/mcp/tools/fn-impact.js +14 -0
- package/dist/mcp/tools/fn-impact.js.map +1 -0
- package/dist/mcp/tools/impact-analysis.d.ts +3 -0
- package/dist/mcp/tools/impact-analysis.d.ts.map +1 -0
- package/dist/mcp/tools/impact-analysis.js +11 -0
- package/dist/mcp/tools/impact-analysis.js.map +1 -0
- package/dist/mcp/tools/implementations.d.ts +3 -0
- package/dist/mcp/tools/implementations.d.ts.map +1 -0
- package/dist/mcp/tools/implementations.js +13 -0
- package/dist/mcp/tools/implementations.js.map +1 -0
- package/dist/mcp/tools/index.d.ts +3 -0
- package/dist/mcp/tools/index.d.ts.map +1 -0
- package/dist/mcp/tools/index.js +76 -0
- package/dist/mcp/tools/index.js.map +1 -0
- package/dist/mcp/tools/interfaces.d.ts +3 -0
- package/dist/mcp/tools/interfaces.d.ts.map +1 -0
- package/dist/mcp/tools/interfaces.js +13 -0
- package/dist/mcp/tools/interfaces.js.map +1 -0
- package/dist/mcp/tools/list-functions.d.ts +3 -0
- package/dist/mcp/tools/list-functions.d.ts.map +1 -0
- package/dist/mcp/tools/list-functions.js +13 -0
- package/dist/mcp/tools/list-functions.js.map +1 -0
- package/dist/mcp/tools/list-repos.d.ts +11 -0
- package/dist/mcp/tools/list-repos.d.ts.map +1 -0
- package/dist/mcp/tools/list-repos.js +11 -0
- package/dist/mcp/tools/list-repos.js.map +1 -0
- package/dist/mcp/tools/module-map.d.ts +3 -0
- package/dist/mcp/tools/module-map.d.ts.map +1 -0
- package/dist/mcp/tools/module-map.js +6 -0
- package/dist/mcp/tools/module-map.js.map +1 -0
- package/dist/mcp/tools/node-roles.d.ts +3 -0
- package/dist/mcp/tools/node-roles.d.ts.map +1 -0
- package/dist/mcp/tools/node-roles.js +13 -0
- package/dist/mcp/tools/node-roles.js.map +1 -0
- package/dist/mcp/tools/path.d.ts +3 -0
- package/dist/mcp/tools/path.d.ts.map +1 -0
- package/dist/mcp/tools/path.js +12 -0
- package/dist/mcp/tools/path.js.map +1 -0
- package/dist/mcp/tools/query.d.ts +3 -0
- package/dist/mcp/tools/query.d.ts.map +1 -0
- package/dist/mcp/tools/query.js +29 -0
- package/dist/mcp/tools/query.js.map +1 -0
- package/dist/mcp/tools/semantic-search.d.ts +3 -0
- package/dist/mcp/tools/semantic-search.d.ts.map +1 -0
- package/dist/mcp/tools/semantic-search.js +61 -0
- package/dist/mcp/tools/semantic-search.js.map +1 -0
- package/dist/mcp/tools/sequence.d.ts +18 -0
- package/dist/mcp/tools/sequence.d.ts.map +1 -0
- package/dist/mcp/tools/sequence.js +16 -0
- package/dist/mcp/tools/sequence.js.map +1 -0
- package/dist/mcp/tools/structure.d.ts +3 -0
- package/dist/mcp/tools/structure.d.ts.map +1 -0
- package/dist/mcp/tools/structure.js +14 -0
- package/dist/mcp/tools/structure.js.map +1 -0
- package/dist/mcp/tools/symbol-children.d.ts +3 -0
- package/dist/mcp/tools/symbol-children.d.ts.map +1 -0
- package/dist/mcp/tools/symbol-children.js +13 -0
- package/dist/mcp/tools/symbol-children.js.map +1 -0
- package/dist/mcp/tools/triage.d.ts +3 -0
- package/dist/mcp/tools/triage.d.ts.map +1 -0
- package/dist/mcp/tools/triage.js +34 -0
- package/dist/mcp/tools/triage.js.map +1 -0
- package/dist/mcp/tools/where.d.ts +3 -0
- package/dist/mcp/tools/where.d.ts.map +1 -0
- package/dist/mcp/tools/where.js +12 -0
- package/dist/mcp/tools/where.js.map +1 -0
- package/dist/presentation/audit.d.ts +5 -0
- package/dist/presentation/audit.d.ts.map +1 -0
- package/dist/presentation/audit.js +77 -0
- package/dist/presentation/audit.js.map +1 -0
- package/dist/presentation/batch.d.ts +10 -0
- package/dist/presentation/batch.d.ts.map +1 -0
- package/dist/presentation/batch.js +25 -0
- package/dist/presentation/batch.js.map +1 -0
- package/dist/presentation/branch-compare.d.ts +2 -0
- package/dist/presentation/branch-compare.d.ts.map +1 -0
- package/dist/presentation/branch-compare.js +75 -0
- package/dist/presentation/branch-compare.js.map +1 -0
- package/dist/presentation/brief.d.ts +12 -0
- package/dist/presentation/brief.d.ts.map +1 -0
- package/dist/presentation/brief.js +49 -0
- package/dist/presentation/brief.js.map +1 -0
- package/dist/presentation/cfg.d.ts +5 -0
- package/dist/presentation/cfg.d.ts.map +1 -0
- package/dist/presentation/cfg.js +50 -0
- package/dist/presentation/cfg.js.map +1 -0
- package/dist/presentation/check.d.ts +5 -0
- package/dist/presentation/check.d.ts.map +1 -0
- package/dist/presentation/check.js +70 -0
- package/dist/presentation/check.js.map +1 -0
- package/dist/presentation/cochange.d.ts +9 -0
- package/dist/presentation/cochange.d.ts.map +1 -0
- package/dist/presentation/cochange.js +39 -0
- package/dist/presentation/cochange.js.map +1 -0
- package/dist/presentation/colors.d.ts +26 -0
- package/dist/presentation/colors.d.ts.map +1 -0
- package/dist/presentation/colors.js +42 -0
- package/dist/presentation/colors.js.map +1 -0
- package/dist/presentation/communities.d.ts +5 -0
- package/dist/presentation/communities.d.ts.map +1 -0
- package/dist/presentation/communities.js +56 -0
- package/dist/presentation/communities.js.map +1 -0
- package/dist/presentation/complexity.d.ts +5 -0
- package/dist/presentation/complexity.d.ts.map +1 -0
- package/dist/presentation/complexity.js +56 -0
- package/dist/presentation/complexity.js.map +1 -0
- package/dist/presentation/dataflow.d.ts +5 -0
- package/dist/presentation/dataflow.d.ts.map +1 -0
- package/dist/presentation/dataflow.js +96 -0
- package/dist/presentation/dataflow.js.map +1 -0
- package/dist/presentation/export.d.ts +137 -0
- package/dist/presentation/export.d.ts.map +1 -0
- package/dist/presentation/export.js +374 -0
- package/dist/presentation/export.js.map +1 -0
- package/dist/presentation/flow.d.ts +5 -0
- package/dist/presentation/flow.d.ts.map +1 -0
- package/dist/presentation/flow.js +64 -0
- package/dist/presentation/flow.js.map +1 -0
- package/dist/presentation/manifesto.d.ts +5 -0
- package/dist/presentation/manifesto.d.ts.map +1 -0
- package/dist/presentation/manifesto.js +56 -0
- package/dist/presentation/manifesto.js.map +1 -0
- package/dist/presentation/owners.d.ts +5 -0
- package/dist/presentation/owners.d.ts.map +1 -0
- package/dist/presentation/owners.js +45 -0
- package/dist/presentation/owners.js.map +1 -0
- package/dist/presentation/queries-cli/exports.d.ts +2 -0
- package/dist/presentation/queries-cli/exports.d.ts.map +1 -0
- package/dist/presentation/queries-cli/exports.js +94 -0
- package/dist/presentation/queries-cli/exports.js.map +1 -0
- package/dist/presentation/queries-cli/impact.d.ts +6 -0
- package/dist/presentation/queries-cli/impact.d.ts.map +1 -0
- package/dist/presentation/queries-cli/impact.js +196 -0
- package/dist/presentation/queries-cli/impact.js.map +1 -0
- package/dist/presentation/queries-cli/index.d.ts +6 -0
- package/dist/presentation/queries-cli/index.d.ts.map +1 -0
- package/dist/presentation/queries-cli/index.js +6 -0
- package/dist/presentation/queries-cli/index.js.map +1 -0
- package/dist/presentation/queries-cli/inspect.d.ts +8 -0
- package/dist/presentation/queries-cli/inspect.d.ts.map +1 -0
- package/dist/presentation/queries-cli/inspect.js +353 -0
- package/dist/presentation/queries-cli/inspect.js.map +1 -0
- package/dist/presentation/queries-cli/overview.d.ts +4 -0
- package/dist/presentation/queries-cli/overview.d.ts.map +1 -0
- package/dist/presentation/queries-cli/overview.js +163 -0
- package/dist/presentation/queries-cli/overview.js.map +1 -0
- package/dist/presentation/queries-cli/path.d.ts +2 -0
- package/dist/presentation/queries-cli/path.d.ts.map +1 -0
- package/dist/presentation/queries-cli/path.js +51 -0
- package/dist/presentation/queries-cli/path.js.map +1 -0
- package/dist/presentation/queries-cli.d.ts +2 -0
- package/dist/presentation/queries-cli.d.ts.map +1 -0
- package/dist/presentation/queries-cli.js +12 -0
- package/dist/presentation/queries-cli.js.map +1 -0
- package/dist/presentation/query.d.ts +2 -0
- package/dist/presentation/query.d.ts.map +1 -0
- package/dist/presentation/query.js +6 -0
- package/dist/presentation/query.js.map +1 -0
- package/dist/presentation/result-formatter.d.ts +10 -0
- package/dist/presentation/result-formatter.d.ts.map +1 -0
- package/dist/presentation/result-formatter.js +134 -0
- package/dist/presentation/result-formatter.js.map +1 -0
- package/dist/presentation/sequence-renderer.d.ts +12 -0
- package/dist/presentation/sequence-renderer.d.ts.map +1 -0
- package/dist/presentation/sequence-renderer.js +36 -0
- package/dist/presentation/sequence-renderer.js.map +1 -0
- package/dist/presentation/sequence.d.ts +5 -0
- package/dist/presentation/sequence.d.ts.map +1 -0
- package/dist/presentation/sequence.js +29 -0
- package/dist/presentation/sequence.js.map +1 -0
- package/dist/presentation/structure.d.ts +8 -0
- package/dist/presentation/structure.d.ts.map +1 -0
- package/dist/presentation/structure.js +50 -0
- package/dist/presentation/structure.js.map +1 -0
- package/dist/presentation/table.d.ts +28 -0
- package/dist/presentation/table.d.ts.map +1 -0
- package/dist/presentation/table.js +39 -0
- package/dist/presentation/table.js.map +1 -0
- package/dist/presentation/triage.d.ts +5 -0
- package/dist/presentation/triage.d.ts.map +1 -0
- package/dist/presentation/triage.js +37 -0
- package/dist/presentation/triage.js.map +1 -0
- package/dist/presentation/viewer.d.ts +85 -0
- package/dist/presentation/viewer.d.ts.map +1 -0
- package/dist/presentation/viewer.js +621 -0
- package/dist/presentation/viewer.js.map +1 -0
- package/dist/shared/constants.d.ts +11 -0
- package/dist/shared/constants.d.ts.map +1 -0
- package/dist/shared/constants.js +35 -0
- package/dist/shared/constants.js.map +1 -0
- package/dist/shared/errors.d.ts +47 -0
- package/dist/shared/errors.d.ts.map +1 -0
- package/dist/shared/errors.js +69 -0
- package/dist/shared/errors.js.map +1 -0
- package/dist/shared/file-utils.d.ts +14 -0
- package/dist/shared/file-utils.d.ts.map +1 -0
- package/dist/shared/file-utils.js +165 -0
- package/dist/shared/file-utils.js.map +1 -0
- package/dist/shared/generators.d.ts +62 -0
- package/dist/shared/generators.d.ts.map +1 -0
- package/dist/shared/generators.js +120 -0
- package/dist/shared/generators.js.map +1 -0
- package/dist/shared/hierarchy.d.ts +2 -0
- package/dist/shared/hierarchy.d.ts.map +1 -0
- package/dist/shared/hierarchy.js +27 -0
- package/dist/shared/hierarchy.js.map +1 -0
- package/dist/shared/kinds.d.ts +11 -0
- package/dist/shared/kinds.d.ts.map +1 -0
- package/dist/shared/kinds.js +56 -0
- package/dist/shared/kinds.js.map +1 -0
- package/dist/shared/normalize.d.ts +19 -0
- package/dist/shared/normalize.d.ts.map +1 -0
- package/dist/shared/normalize.js +59 -0
- package/dist/shared/normalize.js.map +1 -0
- package/dist/shared/paginate.d.ts +80 -0
- package/dist/shared/paginate.d.ts.map +1 -0
- package/dist/shared/paginate.js +111 -0
- package/dist/shared/paginate.js.map +1 -0
- package/dist/types.d.ts +1322 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +10 -0
- package/dist/types.js.map +1 -0
- package/package.json +21 -15
- package/src/ast-analysis/engine.js +252 -258
- package/src/ast-analysis/shared.js +0 -12
- package/src/ast-analysis/visitors/cfg-visitor.js +635 -649
- package/src/ast-analysis/visitors/complexity-visitor.js +135 -139
- package/src/ast-analysis/visitors/dataflow-visitor.js +230 -224
- package/src/cli/commands/ast.js +2 -1
- package/src/cli/commands/audit.js +2 -1
- package/src/cli/commands/batch.js +2 -1
- package/src/cli/commands/brief.js +12 -0
- package/src/cli/commands/cfg.js +2 -1
- package/src/cli/commands/check.js +20 -23
- package/src/cli/commands/children.js +6 -1
- package/src/cli/commands/complexity.js +2 -1
- package/src/cli/commands/context.js +6 -1
- package/src/cli/commands/dataflow.js +2 -1
- package/src/cli/commands/deps.js +8 -3
- package/src/cli/commands/diff-impact.js +2 -0
- package/src/cli/commands/flow.js +2 -1
- package/src/cli/commands/fn-impact.js +8 -1
- package/src/cli/commands/implementations.js +29 -0
- package/src/cli/commands/info.js +1 -1
- package/src/cli/commands/interfaces.js +29 -0
- package/src/cli/commands/owners.js +4 -2
- package/src/cli/commands/query.js +6 -1
- package/src/cli/commands/roles.js +4 -2
- package/src/cli/commands/search.js +8 -2
- package/src/cli/commands/sequence.js +2 -1
- package/src/cli/commands/triage.js +42 -28
- package/src/db/connection.js +18 -12
- package/src/db/index.js +2 -0
- package/src/db/migrations.js +41 -64
- package/src/db/query-builder.js +69 -8
- package/src/db/repository/edges.js +38 -0
- package/src/db/repository/in-memory-repository.js +38 -18
- package/src/db/repository/index.js +2 -0
- package/src/db/repository/nodes.js +8 -10
- package/src/domain/analysis/brief.js +161 -0
- package/src/domain/analysis/context.js +237 -199
- package/src/domain/analysis/dependencies.js +200 -146
- package/src/domain/analysis/exports.js +84 -12
- package/src/domain/analysis/impact.js +350 -157
- package/src/domain/analysis/implementations.js +98 -0
- package/src/domain/analysis/module-map.js +256 -221
- package/src/domain/analysis/roles.js +16 -7
- package/src/domain/analysis/symbol-lookup.js +7 -5
- package/src/domain/graph/builder/helpers.js +1 -1
- package/src/domain/graph/builder/incremental.js +136 -90
- package/src/domain/graph/builder/pipeline.js +114 -80
- package/src/domain/graph/builder/stages/build-edges.js +413 -237
- package/src/domain/graph/builder/stages/detect-changes.js +198 -177
- package/src/domain/graph/builder/stages/insert-nodes.js +147 -139
- package/src/domain/graph/resolve.js +315 -1
- package/src/domain/graph/watcher.js +2 -2
- package/src/domain/parser.js +90 -17
- package/src/domain/queries.js +2 -0
- package/src/domain/search/search/filters.js +9 -5
- package/src/domain/search/search/hybrid.js +7 -4
- package/src/domain/search/search/keyword.js +12 -5
- package/src/domain/search/search/prepare.js +13 -5
- package/src/domain/search/search/semantic.js +11 -6
- package/src/extractors/csharp.js +286 -207
- package/src/extractors/go.js +304 -159
- package/src/extractors/hcl.js +94 -78
- package/src/extractors/java.js +239 -207
- package/src/extractors/javascript.js +437 -305
- package/src/extractors/php.js +276 -220
- package/src/extractors/python.js +379 -247
- package/src/extractors/ruby.js +192 -185
- package/src/extractors/rust.js +243 -168
- package/src/features/ast.js +5 -3
- package/src/features/audit.js +6 -3
- package/src/features/boundaries.js +98 -83
- package/src/features/cfg.js +134 -143
- package/src/features/communities.js +70 -53
- package/src/features/complexity.js +143 -132
- package/src/features/dataflow.js +146 -149
- package/src/features/export.js +3 -3
- package/src/features/graph-enrichment.js +3 -3
- package/src/features/manifesto.js +9 -6
- package/src/features/owners.js +4 -3
- package/src/features/sequence.js +155 -142
- package/src/features/shared/find-nodes.js +31 -0
- package/src/features/structure.js +161 -101
- package/src/features/triage.js +93 -71
- package/src/graph/classifiers/risk.js +12 -4
- package/src/graph/classifiers/roles.js +54 -3
- package/src/index.js +1 -0
- package/src/infrastructure/config.js +255 -4
- package/src/mcp/middleware.js +20 -2
- package/src/mcp/server.js +71 -56
- package/src/mcp/tool-registry.js +53 -1
- package/src/mcp/tools/brief.js +8 -0
- package/src/mcp/tools/implementations.js +14 -0
- package/src/mcp/tools/index.js +6 -0
- package/src/mcp/tools/interfaces.js +14 -0
- package/src/presentation/brief.js +51 -0
- package/src/presentation/queries-cli/exports.js +72 -15
- package/src/presentation/queries-cli/impact.js +55 -39
- package/src/presentation/queries-cli/index.js +9 -1
- package/src/presentation/queries-cli/inspect.js +241 -182
- package/src/presentation/queries-cli/overview.js +57 -58
- package/src/presentation/queries-cli/path.js +36 -29
- package/src/presentation/queries-cli.js +3 -1
- package/src/presentation/result-formatter.js +9 -5
- package/src/presentation/table.js +0 -8
- package/src/shared/file-utils.js +20 -11
- package/src/shared/generators.js +7 -3
- package/src/shared/kinds.js +14 -1
- package/src/shared/paginate.js +10 -2
- package/src/types.ts +1609 -0
|
@@ -1,7 +1,24 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { EVERY_SYMBOL_KIND } from '../../domain/queries.js';
|
|
2
3
|
import { ConfigError } from '../../shared/errors.js';
|
|
3
4
|
import { config } from '../shared/options.js';
|
|
4
5
|
|
|
6
|
+
function validateKind(kind) {
|
|
7
|
+
if (kind && !EVERY_SYMBOL_KIND.includes(kind)) {
|
|
8
|
+
throw new ConfigError(`Invalid kind "${kind}". Valid: ${EVERY_SYMBOL_KIND.join(', ')}`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
async function runManifesto(opts, qOpts) {
|
|
13
|
+
validateKind(opts.kind);
|
|
14
|
+
const { manifesto } = await import('../../presentation/manifesto.js');
|
|
15
|
+
manifesto(opts.db, {
|
|
16
|
+
file: opts.file,
|
|
17
|
+
kind: opts.kind,
|
|
18
|
+
...qOpts,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
5
22
|
export const command = {
|
|
6
23
|
name: 'check [ref]',
|
|
7
24
|
description:
|
|
@@ -15,7 +32,7 @@ export const command = {
|
|
|
15
32
|
['--signatures', 'Assert no function declaration lines were modified'],
|
|
16
33
|
['--boundaries', 'Assert no cross-owner boundary violations'],
|
|
17
34
|
['--depth <n>', 'Max BFS depth for blast radius (default: 3)'],
|
|
18
|
-
['-f, --file <path>', 'Scope to file (partial match, manifesto mode)'],
|
|
35
|
+
['-f, --file <path>', 'Scope to file (partial match, repeatable, manifesto mode)', collectFile],
|
|
19
36
|
['-k, --kind <kind>', 'Filter by symbol kind (manifesto mode)'],
|
|
20
37
|
['-T, --no-tests', 'Exclude test/spec files from results'],
|
|
21
38
|
['--include-tests', 'Include test/spec files (overrides excludeTests config)'],
|
|
@@ -29,17 +46,7 @@ export const command = {
|
|
|
29
46
|
const qOpts = ctx.resolveQueryOpts(opts);
|
|
30
47
|
|
|
31
48
|
if (!isDiffMode && !opts.rules) {
|
|
32
|
-
|
|
33
|
-
throw new ConfigError(
|
|
34
|
-
`Invalid kind "${opts.kind}". Valid: ${EVERY_SYMBOL_KIND.join(', ')}`,
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
const { manifesto } = await import('../../presentation/manifesto.js');
|
|
38
|
-
manifesto(opts.db, {
|
|
39
|
-
file: opts.file,
|
|
40
|
-
kind: opts.kind,
|
|
41
|
-
...qOpts,
|
|
42
|
-
});
|
|
49
|
+
await runManifesto(opts, qOpts);
|
|
43
50
|
return;
|
|
44
51
|
}
|
|
45
52
|
|
|
@@ -58,17 +65,7 @@ export const command = {
|
|
|
58
65
|
});
|
|
59
66
|
|
|
60
67
|
if (opts.rules) {
|
|
61
|
-
|
|
62
|
-
throw new ConfigError(
|
|
63
|
-
`Invalid kind "${opts.kind}". Valid: ${EVERY_SYMBOL_KIND.join(', ')}`,
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
const { manifesto } = await import('../../presentation/manifesto.js');
|
|
67
|
-
manifesto(opts.db, {
|
|
68
|
-
file: opts.file,
|
|
69
|
-
kind: opts.kind,
|
|
70
|
-
...qOpts,
|
|
71
|
-
});
|
|
68
|
+
await runManifesto(opts, qOpts);
|
|
72
69
|
}
|
|
73
70
|
},
|
|
74
71
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { EVERY_SYMBOL_KIND } from '../../domain/queries.js';
|
|
2
3
|
import { children } from '../../presentation/queries-cli.js';
|
|
3
4
|
|
|
@@ -6,7 +7,11 @@ export const command = {
|
|
|
6
7
|
description: 'List parameters, properties, and constants of a symbol',
|
|
7
8
|
options: [
|
|
8
9
|
['-d, --db <path>', 'Path to graph.db'],
|
|
9
|
-
[
|
|
10
|
+
[
|
|
11
|
+
'-f, --file <path>',
|
|
12
|
+
'Scope search to symbols in this file (partial match, repeatable)',
|
|
13
|
+
collectFile,
|
|
14
|
+
],
|
|
10
15
|
['-k, --kind <kind>', 'Filter to a specific symbol kind'],
|
|
11
16
|
['-T, --no-tests', 'Exclude test/spec files from results'],
|
|
12
17
|
['-j, --json', 'Output as JSON'],
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { EVERY_SYMBOL_KIND } from '../../domain/queries.js';
|
|
2
3
|
|
|
3
4
|
export const command = {
|
|
@@ -13,7 +14,7 @@ export const command = {
|
|
|
13
14
|
],
|
|
14
15
|
['--above-threshold', 'Only functions exceeding warn thresholds'],
|
|
15
16
|
['--health', 'Show health metrics (Halstead, MI) columns'],
|
|
16
|
-
['-f, --file <path>', 'Scope to file (partial match)'],
|
|
17
|
+
['-f, --file <path>', 'Scope to file (partial match, repeatable)', collectFile],
|
|
17
18
|
['-k, --kind <kind>', 'Filter by symbol kind'],
|
|
18
19
|
['-T, --no-tests', 'Exclude test/spec files from results'],
|
|
19
20
|
['--include-tests', 'Include test/spec files (overrides excludeTests config)'],
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { EVERY_SYMBOL_KIND } from '../../domain/queries.js';
|
|
2
3
|
import { context } from '../../presentation/queries-cli.js';
|
|
3
4
|
|
|
@@ -7,7 +8,11 @@ export const command = {
|
|
|
7
8
|
queryOpts: true,
|
|
8
9
|
options: [
|
|
9
10
|
['--depth <n>', 'Include callee source up to N levels deep', '0'],
|
|
10
|
-
[
|
|
11
|
+
[
|
|
12
|
+
'-f, --file <path>',
|
|
13
|
+
'Scope search to functions in this file (partial match, repeatable)',
|
|
14
|
+
collectFile,
|
|
15
|
+
],
|
|
11
16
|
['-k, --kind <kind>', 'Filter to a specific symbol kind'],
|
|
12
17
|
['--no-source', 'Metadata only (skip source extraction)'],
|
|
13
18
|
['--with-test-source', 'Include test source code'],
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { EVERY_SYMBOL_KIND } from '../../domain/queries.js';
|
|
2
3
|
|
|
3
4
|
export const command = {
|
|
@@ -5,7 +6,7 @@ export const command = {
|
|
|
5
6
|
description: 'Show data flow for a function: parameters, return consumers, mutations',
|
|
6
7
|
queryOpts: true,
|
|
7
8
|
options: [
|
|
8
|
-
['-f, --file <path>', 'Scope to file (partial match)'],
|
|
9
|
+
['-f, --file <path>', 'Scope to file (partial match, repeatable)', collectFile],
|
|
9
10
|
['-k, --kind <kind>', 'Filter by symbol kind'],
|
|
10
11
|
['--impact', 'Show data-dependent blast radius'],
|
|
11
12
|
['--depth <n>', 'Max traversal depth', '5'],
|
package/src/cli/commands/deps.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
import { brief } from '../../presentation/brief.js';
|
|
1
2
|
import { fileDeps } from '../../presentation/queries-cli.js';
|
|
2
3
|
|
|
3
4
|
export const command = {
|
|
4
5
|
name: 'deps <file>',
|
|
5
6
|
description: 'Show what this file imports and what imports it',
|
|
6
7
|
queryOpts: true,
|
|
8
|
+
options: [['--brief', 'Compact output with symbol roles, caller counts, and risk tier']],
|
|
7
9
|
execute([file], opts, ctx) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
const qOpts = ctx.resolveQueryOpts(opts);
|
|
11
|
+
if (opts.brief) {
|
|
12
|
+
brief(file, opts.db, qOpts);
|
|
13
|
+
} else {
|
|
14
|
+
fileDeps(file, opts.db, qOpts);
|
|
15
|
+
}
|
|
11
16
|
},
|
|
12
17
|
};
|
|
@@ -13,6 +13,7 @@ export const command = {
|
|
|
13
13
|
['--staged', 'Analyze staged changes instead of unstaged'],
|
|
14
14
|
['--depth <n>', 'Max transitive caller depth', '3'],
|
|
15
15
|
['-f, --format <format>', 'Output format: text, mermaid, json', 'text'],
|
|
16
|
+
['--no-implementations', 'Exclude interface/trait implementors from blast radius'],
|
|
16
17
|
],
|
|
17
18
|
execute([ref], opts, ctx) {
|
|
18
19
|
diffImpact(opts.db, {
|
|
@@ -20,6 +21,7 @@ export const command = {
|
|
|
20
21
|
staged: opts.staged,
|
|
21
22
|
depth: parseInt(opts.depth, 10),
|
|
22
23
|
format: opts.format,
|
|
24
|
+
includeImplementors: opts.implementations !== false,
|
|
23
25
|
...ctx.resolveQueryOpts(opts),
|
|
24
26
|
});
|
|
25
27
|
},
|
package/src/cli/commands/flow.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { EVERY_SYMBOL_KIND } from '../../domain/queries.js';
|
|
2
3
|
|
|
3
4
|
export const command = {
|
|
@@ -8,7 +9,7 @@ export const command = {
|
|
|
8
9
|
options: [
|
|
9
10
|
['--list', 'List all entry points grouped by type'],
|
|
10
11
|
['--depth <n>', 'Max forward traversal depth', '10'],
|
|
11
|
-
['-f, --file <path>', 'Scope to a specific file (partial match)'],
|
|
12
|
+
['-f, --file <path>', 'Scope to a specific file (partial match, repeatable)', collectFile],
|
|
12
13
|
['-k, --kind <kind>', 'Filter by symbol kind'],
|
|
13
14
|
],
|
|
14
15
|
validate([name], opts) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { EVERY_SYMBOL_KIND } from '../../domain/queries.js';
|
|
2
3
|
import { fnImpact } from '../../presentation/queries-cli.js';
|
|
3
4
|
|
|
@@ -7,8 +8,13 @@ export const command = {
|
|
|
7
8
|
queryOpts: true,
|
|
8
9
|
options: [
|
|
9
10
|
['--depth <n>', 'Max transitive depth', '5'],
|
|
10
|
-
[
|
|
11
|
+
[
|
|
12
|
+
'-f, --file <path>',
|
|
13
|
+
'Scope search to functions in this file (partial match, repeatable)',
|
|
14
|
+
collectFile,
|
|
15
|
+
],
|
|
11
16
|
['-k, --kind <kind>', 'Filter to a specific symbol kind'],
|
|
17
|
+
['--no-implementations', 'Exclude interface/trait implementors from blast radius'],
|
|
12
18
|
],
|
|
13
19
|
validate([_name], opts) {
|
|
14
20
|
if (opts.kind && !EVERY_SYMBOL_KIND.includes(opts.kind)) {
|
|
@@ -20,6 +26,7 @@ export const command = {
|
|
|
20
26
|
depth: parseInt(opts.depth, 10),
|
|
21
27
|
file: opts.file,
|
|
22
28
|
kind: opts.kind,
|
|
29
|
+
includeImplementors: opts.implementations !== false,
|
|
23
30
|
...ctx.resolveQueryOpts(opts),
|
|
24
31
|
});
|
|
25
32
|
},
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
2
|
+
import { EVERY_SYMBOL_KIND } from '../../domain/queries.js';
|
|
3
|
+
import { implementations } from '../../presentation/queries-cli.js';
|
|
4
|
+
|
|
5
|
+
export const command = {
|
|
6
|
+
name: 'implementations <name>',
|
|
7
|
+
description: 'List all concrete types implementing a given interface or trait',
|
|
8
|
+
queryOpts: true,
|
|
9
|
+
options: [
|
|
10
|
+
[
|
|
11
|
+
'-f, --file <path>',
|
|
12
|
+
'Scope search to symbols in this file (partial match, repeatable)',
|
|
13
|
+
collectFile,
|
|
14
|
+
],
|
|
15
|
+
['-k, --kind <kind>', 'Filter to a specific symbol kind'],
|
|
16
|
+
],
|
|
17
|
+
validate([_name], opts) {
|
|
18
|
+
if (opts.kind && !EVERY_SYMBOL_KIND.includes(opts.kind)) {
|
|
19
|
+
return `Invalid kind "${opts.kind}". Valid: ${EVERY_SYMBOL_KIND.join(', ')}`;
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
execute([name], opts, ctx) {
|
|
23
|
+
implementations(name, opts.db, {
|
|
24
|
+
file: opts.file,
|
|
25
|
+
kind: opts.kind,
|
|
26
|
+
...ctx.resolveQueryOpts(opts),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
};
|
package/src/cli/commands/info.js
CHANGED
|
@@ -25,7 +25,7 @@ export const command = {
|
|
|
25
25
|
const knownBinaryVersion = binaryVersion !== 'unknown' ? binaryVersion : null;
|
|
26
26
|
if (pkgVersion && knownBinaryVersion && pkgVersion !== knownBinaryVersion) {
|
|
27
27
|
console.log(
|
|
28
|
-
` Native version: ${pkgVersion} (binary
|
|
28
|
+
` Native version: ${pkgVersion} (binary built as ${knownBinaryVersion}, engine loaded OK)`,
|
|
29
29
|
);
|
|
30
30
|
} else {
|
|
31
31
|
console.log(` Native version: ${pkgVersion ?? binaryVersion}`);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
2
|
+
import { EVERY_SYMBOL_KIND } from '../../domain/queries.js';
|
|
3
|
+
import { interfaces } from '../../presentation/queries-cli.js';
|
|
4
|
+
|
|
5
|
+
export const command = {
|
|
6
|
+
name: 'interfaces <name>',
|
|
7
|
+
description: 'List all interfaces and traits that a class or struct implements',
|
|
8
|
+
queryOpts: true,
|
|
9
|
+
options: [
|
|
10
|
+
[
|
|
11
|
+
'-f, --file <path>',
|
|
12
|
+
'Scope search to symbols in this file (partial match, repeatable)',
|
|
13
|
+
collectFile,
|
|
14
|
+
],
|
|
15
|
+
['-k, --kind <kind>', 'Filter to a specific symbol kind'],
|
|
16
|
+
],
|
|
17
|
+
validate([_name], opts) {
|
|
18
|
+
if (opts.kind && !EVERY_SYMBOL_KIND.includes(opts.kind)) {
|
|
19
|
+
return `Invalid kind "${opts.kind}". Valid: ${EVERY_SYMBOL_KIND.join(', ')}`;
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
execute([name], opts, ctx) {
|
|
23
|
+
interfaces(name, opts.db, {
|
|
24
|
+
file: opts.file,
|
|
25
|
+
kind: opts.kind,
|
|
26
|
+
...ctx.resolveQueryOpts(opts),
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
2
|
+
|
|
1
3
|
export const command = {
|
|
2
4
|
name: 'owners [target]',
|
|
3
5
|
description: 'Show CODEOWNERS mapping for files and functions',
|
|
@@ -5,7 +7,7 @@ export const command = {
|
|
|
5
7
|
['-d, --db <path>', 'Path to graph.db'],
|
|
6
8
|
['--owner <owner>', 'Filter to a specific owner'],
|
|
7
9
|
['--boundary', 'Show cross-owner boundary edges'],
|
|
8
|
-
['-f, --file <path>', 'Scope to a specific file'],
|
|
10
|
+
['-f, --file <path>', 'Scope to a specific file (repeatable)', collectFile],
|
|
9
11
|
['-k, --kind <kind>', 'Filter by symbol kind'],
|
|
10
12
|
['-T, --no-tests', 'Exclude test/spec files'],
|
|
11
13
|
['--include-tests', 'Include test/spec files (overrides excludeTests config)'],
|
|
@@ -16,7 +18,7 @@ export const command = {
|
|
|
16
18
|
owners(opts.db, {
|
|
17
19
|
owner: opts.owner,
|
|
18
20
|
boundary: opts.boundary,
|
|
19
|
-
file: opts.file
|
|
21
|
+
file: opts.file && opts.file.length > 0 ? opts.file : target,
|
|
20
22
|
kind: opts.kind,
|
|
21
23
|
noTests: ctx.resolveNoTests(opts),
|
|
22
24
|
json: opts.json,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { EVERY_SYMBOL_KIND } from '../../domain/queries.js';
|
|
2
3
|
import { fnDeps, symbolPath } from '../../presentation/queries-cli.js';
|
|
3
4
|
|
|
@@ -7,7 +8,11 @@ export const command = {
|
|
|
7
8
|
queryOpts: true,
|
|
8
9
|
options: [
|
|
9
10
|
['--depth <n>', 'Transitive caller depth', '3'],
|
|
10
|
-
[
|
|
11
|
+
[
|
|
12
|
+
'-f, --file <path>',
|
|
13
|
+
'Scope search to functions in this file (partial match, repeatable)',
|
|
14
|
+
collectFile,
|
|
15
|
+
],
|
|
11
16
|
['-k, --kind <kind>', 'Filter to a specific symbol kind'],
|
|
12
17
|
['--path <to>', 'Path mode: find shortest path to <to>'],
|
|
13
18
|
['--kinds <kinds>', 'Path mode: comma-separated edge kinds to follow (default: calls)'],
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { VALID_ROLES } from '../../domain/queries.js';
|
|
2
3
|
import { roles } from '../../presentation/queries-cli.js';
|
|
3
4
|
|
|
4
5
|
export const command = {
|
|
5
6
|
name: 'roles',
|
|
6
|
-
description:
|
|
7
|
+
description:
|
|
8
|
+
'Show node role classification: entry, core, utility, adapter, dead (dead-leaf, dead-entry, dead-ffi, dead-unresolved), leaf',
|
|
7
9
|
options: [
|
|
8
10
|
['-d, --db <path>', 'Path to graph.db'],
|
|
9
11
|
['--role <role>', `Filter by role (${VALID_ROLES.join(', ')})`],
|
|
10
|
-
['-f, --file <path>', 'Scope to a specific file (partial match)'],
|
|
12
|
+
['-f, --file <path>', 'Scope to a specific file (partial match, repeatable)', collectFile],
|
|
11
13
|
['-T, --no-tests', 'Exclude test/spec files'],
|
|
12
14
|
['--include-tests', 'Include test/spec files (overrides excludeTests config)'],
|
|
13
15
|
['-j, --json', 'Output as JSON'],
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { search } from '../../domain/search/index.js';
|
|
2
3
|
|
|
3
4
|
export const command = {
|
|
@@ -11,7 +12,7 @@ export const command = {
|
|
|
11
12
|
['--include-tests', 'Include test/spec files (overrides excludeTests config)'],
|
|
12
13
|
['--min-score <score>', 'Minimum similarity threshold', '0.2'],
|
|
13
14
|
['-k, --kind <kind>', 'Filter by kind: function, method, class'],
|
|
14
|
-
['--file <pattern>', 'Filter by file path pattern'],
|
|
15
|
+
['--file <pattern>', 'Filter by file path pattern (repeatable)', collectFile],
|
|
15
16
|
['--rrf-k <number>', 'RRF k parameter for multi-query ranking', '60'],
|
|
16
17
|
['--mode <mode>', 'Search mode: hybrid, semantic, keyword (default: hybrid)'],
|
|
17
18
|
['-j, --json', 'Output as JSON'],
|
|
@@ -25,6 +26,11 @@ export const command = {
|
|
|
25
26
|
}
|
|
26
27
|
},
|
|
27
28
|
async execute([query], opts, ctx) {
|
|
29
|
+
// --file collects into an array; pass single element unwrapped for single
|
|
30
|
+
// value, or pass the raw array for multi-file scoping.
|
|
31
|
+
const fileArr = opts.file || [];
|
|
32
|
+
const filePattern =
|
|
33
|
+
fileArr.length === 1 ? fileArr[0] : fileArr.length > 1 ? fileArr : undefined;
|
|
28
34
|
await search(query, opts.db, {
|
|
29
35
|
limit: parseInt(opts.limit, 10),
|
|
30
36
|
offset: opts.offset ? parseInt(opts.offset, 10) : undefined,
|
|
@@ -32,7 +38,7 @@ export const command = {
|
|
|
32
38
|
minScore: parseFloat(opts.minScore),
|
|
33
39
|
model: opts.model,
|
|
34
40
|
kind: opts.kind,
|
|
35
|
-
filePattern
|
|
41
|
+
filePattern,
|
|
36
42
|
rrfK: parseInt(opts.rrfK, 10),
|
|
37
43
|
mode: opts.mode,
|
|
38
44
|
json: opts.json,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { EVERY_SYMBOL_KIND } from '../../domain/queries.js';
|
|
2
3
|
|
|
3
4
|
export const command = {
|
|
@@ -7,7 +8,7 @@ export const command = {
|
|
|
7
8
|
options: [
|
|
8
9
|
['--depth <n>', 'Max forward traversal depth', '10'],
|
|
9
10
|
['--dataflow', 'Annotate with parameter names and return arrows from dataflow table'],
|
|
10
|
-
['-f, --file <path>', 'Scope to a specific file (partial match)'],
|
|
11
|
+
['-f, --file <path>', 'Scope to a specific file (partial match, repeatable)', collectFile],
|
|
11
12
|
['-k, --kind <kind>', 'Filter by symbol kind'],
|
|
12
13
|
],
|
|
13
14
|
validate([_name], opts) {
|
|
@@ -1,6 +1,40 @@
|
|
|
1
|
+
import { collectFile } from '../../db/query-builder.js';
|
|
1
2
|
import { EVERY_SYMBOL_KIND, VALID_ROLES } from '../../domain/queries.js';
|
|
2
3
|
import { ConfigError } from '../../shared/errors.js';
|
|
3
4
|
|
|
5
|
+
function validateFilters(opts) {
|
|
6
|
+
if (opts.kind && !EVERY_SYMBOL_KIND.includes(opts.kind)) {
|
|
7
|
+
throw new ConfigError(`Invalid kind "${opts.kind}". Valid: ${EVERY_SYMBOL_KIND.join(', ')}`);
|
|
8
|
+
}
|
|
9
|
+
if (opts.role && !VALID_ROLES.includes(opts.role)) {
|
|
10
|
+
throw new ConfigError(`Invalid role "${opts.role}". Valid: ${VALID_ROLES.join(', ')}`);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function parseWeights(raw) {
|
|
15
|
+
if (!raw) return undefined;
|
|
16
|
+
try {
|
|
17
|
+
return JSON.parse(raw);
|
|
18
|
+
} catch (err) {
|
|
19
|
+
throw new ConfigError('Invalid --weights JSON', { cause: err });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
async function runHotspots(opts, ctx) {
|
|
24
|
+
const { hotspotsData, formatHotspots } = await import('../../presentation/structure.js');
|
|
25
|
+
const metric = opts.sort === 'risk' ? 'fan-in' : opts.sort;
|
|
26
|
+
const data = hotspotsData(opts.db, {
|
|
27
|
+
metric,
|
|
28
|
+
level: opts.level,
|
|
29
|
+
limit: parseInt(opts.limit, 10),
|
|
30
|
+
offset: opts.offset ? parseInt(opts.offset, 10) : undefined,
|
|
31
|
+
noTests: ctx.resolveNoTests(opts),
|
|
32
|
+
});
|
|
33
|
+
if (!ctx.outputResult(data, 'hotspots', opts)) {
|
|
34
|
+
console.log(formatHotspots(data));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
4
38
|
export const command = {
|
|
5
39
|
name: 'triage',
|
|
6
40
|
description:
|
|
@@ -19,8 +53,11 @@ export const command = {
|
|
|
19
53
|
'risk',
|
|
20
54
|
],
|
|
21
55
|
['--min-score <score>', 'Only show symbols with risk score >= threshold'],
|
|
22
|
-
[
|
|
23
|
-
|
|
56
|
+
[
|
|
57
|
+
'--role <role>',
|
|
58
|
+
'Filter by role (entry, core, utility, adapter, leaf, dead, dead-leaf, dead-entry, dead-ffi, dead-unresolved)',
|
|
59
|
+
],
|
|
60
|
+
['-f, --file <path>', 'Scope to a specific file (partial match, repeatable)', collectFile],
|
|
24
61
|
['-k, --kind <kind>', 'Filter by symbol kind (function, method, class)'],
|
|
25
62
|
['-T, --no-tests', 'Exclude test/spec files from results'],
|
|
26
63
|
['--include-tests', 'Include test/spec files (overrides excludeTests config)'],
|
|
@@ -31,35 +68,12 @@ export const command = {
|
|
|
31
68
|
],
|
|
32
69
|
async execute(_args, opts, ctx) {
|
|
33
70
|
if (opts.level === 'file' || opts.level === 'directory') {
|
|
34
|
-
|
|
35
|
-
const metric = opts.sort === 'risk' ? 'fan-in' : opts.sort;
|
|
36
|
-
const data = hotspotsData(opts.db, {
|
|
37
|
-
metric,
|
|
38
|
-
level: opts.level,
|
|
39
|
-
limit: parseInt(opts.limit, 10),
|
|
40
|
-
offset: opts.offset ? parseInt(opts.offset, 10) : undefined,
|
|
41
|
-
noTests: ctx.resolveNoTests(opts),
|
|
42
|
-
});
|
|
43
|
-
if (!ctx.outputResult(data, 'hotspots', opts)) {
|
|
44
|
-
console.log(formatHotspots(data));
|
|
45
|
-
}
|
|
71
|
+
await runHotspots(opts, ctx);
|
|
46
72
|
return;
|
|
47
73
|
}
|
|
48
74
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
if (opts.role && !VALID_ROLES.includes(opts.role)) {
|
|
53
|
-
throw new ConfigError(`Invalid role "${opts.role}". Valid: ${VALID_ROLES.join(', ')}`);
|
|
54
|
-
}
|
|
55
|
-
let weights;
|
|
56
|
-
if (opts.weights) {
|
|
57
|
-
try {
|
|
58
|
-
weights = JSON.parse(opts.weights);
|
|
59
|
-
} catch (err) {
|
|
60
|
-
throw new ConfigError('Invalid --weights JSON', { cause: err });
|
|
61
|
-
}
|
|
62
|
-
}
|
|
75
|
+
validateFilters(opts);
|
|
76
|
+
const weights = parseWeights(opts.weights);
|
|
63
77
|
const { triage } = await import('../../presentation/triage.js');
|
|
64
78
|
triage(opts.db, {
|
|
65
79
|
limit: parseInt(opts.limit, 10),
|
package/src/db/connection.js
CHANGED
|
@@ -37,10 +37,12 @@ export function findRepoRoot(fromDir) {
|
|
|
37
37
|
// matches the realpathSync'd dir in findDbPath.
|
|
38
38
|
try {
|
|
39
39
|
root = fs.realpathSync(raw);
|
|
40
|
-
} catch {
|
|
40
|
+
} catch (e) {
|
|
41
|
+
debug(`realpathSync failed for git root "${raw}", using resolve: ${e.message}`);
|
|
41
42
|
root = path.resolve(raw);
|
|
42
43
|
}
|
|
43
|
-
} catch {
|
|
44
|
+
} catch (e) {
|
|
45
|
+
debug(`git rev-parse failed for "${dir}": ${e.message}`);
|
|
44
46
|
root = null;
|
|
45
47
|
}
|
|
46
48
|
if (!fromDir) {
|
|
@@ -60,7 +62,8 @@ function isProcessAlive(pid) {
|
|
|
60
62
|
try {
|
|
61
63
|
process.kill(pid, 0);
|
|
62
64
|
return true;
|
|
63
|
-
} catch {
|
|
65
|
+
} catch (e) {
|
|
66
|
+
debug(`PID ${pid} not alive: ${e.code || e.message}`);
|
|
64
67
|
return false;
|
|
65
68
|
}
|
|
66
69
|
}
|
|
@@ -75,13 +78,13 @@ function acquireAdvisoryLock(dbPath) {
|
|
|
75
78
|
warn(`Another process (PID ${pid}) may be using this database. Proceeding with caution.`);
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
|
-
} catch {
|
|
79
|
-
|
|
81
|
+
} catch (e) {
|
|
82
|
+
debug(`Advisory lock read failed: ${e.message}`);
|
|
80
83
|
}
|
|
81
84
|
try {
|
|
82
85
|
fs.writeFileSync(lockPath, String(process.pid), 'utf-8');
|
|
83
|
-
} catch {
|
|
84
|
-
|
|
86
|
+
} catch (e) {
|
|
87
|
+
debug(`Advisory lock write failed: ${e.message}`);
|
|
85
88
|
}
|
|
86
89
|
}
|
|
87
90
|
|
|
@@ -91,8 +94,8 @@ function releaseAdvisoryLock(lockPath) {
|
|
|
91
94
|
if (Number(content) === process.pid) {
|
|
92
95
|
fs.unlinkSync(lockPath);
|
|
93
96
|
}
|
|
94
|
-
} catch {
|
|
95
|
-
|
|
97
|
+
} catch (e) {
|
|
98
|
+
debug(`Advisory lock release failed for ${lockPath}: ${e.message}`);
|
|
96
99
|
}
|
|
97
100
|
}
|
|
98
101
|
|
|
@@ -107,7 +110,8 @@ function isSameDirectory(a, b) {
|
|
|
107
110
|
const sa = fs.statSync(a);
|
|
108
111
|
const sb = fs.statSync(b);
|
|
109
112
|
return sa.dev === sb.dev && sa.ino === sb.ino;
|
|
110
|
-
} catch {
|
|
113
|
+
} catch (e) {
|
|
114
|
+
debug(`isSameDirectory stat failed: ${e.message}`);
|
|
111
115
|
return false;
|
|
112
116
|
}
|
|
113
117
|
}
|
|
@@ -139,7 +143,8 @@ export function findDbPath(customPath) {
|
|
|
139
143
|
if (rawCeiling) {
|
|
140
144
|
try {
|
|
141
145
|
ceiling = fs.realpathSync(rawCeiling);
|
|
142
|
-
} catch {
|
|
146
|
+
} catch (e) {
|
|
147
|
+
debug(`realpathSync failed for ceiling "${rawCeiling}": ${e.message}`);
|
|
143
148
|
ceiling = rawCeiling;
|
|
144
149
|
}
|
|
145
150
|
} else {
|
|
@@ -149,7 +154,8 @@ export function findDbPath(customPath) {
|
|
|
149
154
|
let dir;
|
|
150
155
|
try {
|
|
151
156
|
dir = fs.realpathSync(process.cwd());
|
|
152
|
-
} catch {
|
|
157
|
+
} catch (e) {
|
|
158
|
+
debug(`realpathSync failed for cwd: ${e.message}`);
|
|
153
159
|
dir = process.cwd();
|
|
154
160
|
}
|
|
155
161
|
while (true) {
|
package/src/db/index.js
CHANGED
|
@@ -31,9 +31,11 @@ export {
|
|
|
31
31
|
findCrossFileCallTargets,
|
|
32
32
|
findDistinctCallers,
|
|
33
33
|
findFileNodes,
|
|
34
|
+
findImplementors,
|
|
34
35
|
findImportDependents,
|
|
35
36
|
findImportSources,
|
|
36
37
|
findImportTargets,
|
|
38
|
+
findInterfaces,
|
|
37
39
|
findIntraFileCallEdges,
|
|
38
40
|
findNodeById,
|
|
39
41
|
findNodeByQualifiedName,
|