@yalehwang/archguard 0.1.23 → 0.1.32
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 +176 -32
- package/assets/grammars/benchmarks.md +101 -0
- package/assets/grammars/checksums.json +8 -0
- package/{node_modules/tree-sitter/LICENSE → assets/grammars/licenses/tree-sitter-cpp.LICENSE} +2 -2
- package/{node_modules/node-gyp-build/LICENSE → assets/grammars/licenses/tree-sitter-go.LICENSE} +5 -5
- package/assets/grammars/licenses/tree-sitter-java.LICENSE +21 -0
- package/assets/grammars/licenses/tree-sitter-kotlin.LICENSE +21 -0
- package/assets/grammars/licenses/tree-sitter-python.LICENSE +21 -0
- package/assets/grammars/licenses/tree-sitter.LICENSE +21 -0
- package/assets/grammars/provenance.json +66 -0
- package/assets/grammars/tree-sitter-cpp.wasm +0 -0
- package/assets/grammars/tree-sitter-go.wasm +0 -0
- package/assets/grammars/tree-sitter-java.wasm +0 -0
- package/assets/grammars/tree-sitter-kotlin.wasm +0 -0
- package/assets/grammars/tree-sitter-python.wasm +0 -0
- package/assets/grammars/tree-sitter.wasm +0 -0
- package/dist/analysis/atlas-metrics-analysis.d.ts +11 -0
- package/dist/analysis/atlas-metrics-analysis.d.ts.map +1 -0
- package/dist/analysis/atlas-metrics-analysis.js +17 -0
- package/dist/analysis/atlas-metrics-analysis.js.map +1 -0
- package/dist/analysis/fitness/dependency-checker.d.ts +4 -0
- package/dist/analysis/fitness/dependency-checker.d.ts.map +1 -0
- package/dist/analysis/fitness/dependency-checker.js +16 -0
- package/dist/analysis/fitness/dependency-checker.js.map +1 -0
- package/dist/analysis/fitness/rule-evaluator.d.ts +6 -0
- package/dist/analysis/fitness/rule-evaluator.d.ts.map +1 -0
- package/dist/analysis/fitness/rule-evaluator.js +64 -0
- package/dist/analysis/fitness/rule-evaluator.js.map +1 -0
- package/dist/analysis/fitness/rule-types.d.ts +2 -0
- package/dist/analysis/fitness/rule-types.d.ts.map +1 -0
- package/dist/analysis/fitness/rule-types.js +2 -0
- package/dist/analysis/fitness/rule-types.js.map +1 -0
- package/dist/analysis/gim/direction-hint.d.ts +18 -0
- package/dist/analysis/gim/direction-hint.d.ts.map +1 -0
- package/dist/analysis/gim/direction-hint.js +76 -0
- package/dist/analysis/gim/direction-hint.js.map +1 -0
- package/dist/analysis/gim/gim-loss-evaluator.d.ts +14 -0
- package/dist/analysis/gim/gim-loss-evaluator.d.ts.map +1 -0
- package/dist/analysis/gim/gim-loss-evaluator.js +80 -0
- package/dist/analysis/gim/gim-loss-evaluator.js.map +1 -0
- package/dist/analysis/gini.d.ts +2 -0
- package/dist/analysis/gini.d.ts.map +1 -0
- package/dist/analysis/gini.js +12 -0
- package/dist/analysis/gini.js.map +1 -0
- package/dist/analysis/git-history/git-log-reader.d.ts +24 -0
- package/dist/analysis/git-history/git-log-reader.d.ts.map +1 -0
- package/dist/analysis/git-history/git-log-reader.js +117 -0
- package/dist/analysis/git-history/git-log-reader.js.map +1 -0
- package/dist/analysis/git-history/history-aggregator.d.ts +19 -0
- package/dist/analysis/git-history/history-aggregator.d.ts.map +1 -0
- package/dist/analysis/git-history/history-aggregator.js +291 -0
- package/dist/analysis/git-history/history-aggregator.js.map +1 -0
- package/dist/analysis/git-history/history-query.d.ts +111 -0
- package/dist/analysis/git-history/history-query.d.ts.map +1 -0
- package/dist/analysis/git-history/history-query.js +201 -0
- package/dist/analysis/git-history/history-query.js.map +1 -0
- package/dist/analysis/git-history/index.d.ts +4 -0
- package/dist/analysis/git-history/index.d.ts.map +1 -0
- package/dist/analysis/git-history/index.js +4 -0
- package/dist/analysis/git-history/index.js.map +1 -0
- package/dist/analysis/metric-vector-builder.d.ts +5 -0
- package/dist/analysis/metric-vector-builder.d.ts.map +1 -0
- package/dist/analysis/metric-vector-builder.js +47 -0
- package/dist/analysis/metric-vector-builder.js.map +1 -0
- package/dist/analysis/metrics-history-reader.d.ts +4 -0
- package/dist/analysis/metrics-history-reader.d.ts.map +1 -0
- package/dist/analysis/metrics-history-reader.js +24 -0
- package/dist/analysis/metrics-history-reader.js.map +1 -0
- package/dist/analysis/package-metrics-analysis.d.ts +18 -0
- package/dist/analysis/package-metrics-analysis.d.ts.map +1 -0
- package/dist/analysis/package-metrics-analysis.js +59 -0
- package/dist/analysis/package-metrics-analysis.js.map +1 -0
- package/dist/analysis/project-semantics-loader.d.ts +3 -0
- package/dist/analysis/project-semantics-loader.d.ts.map +1 -0
- package/dist/analysis/project-semantics-loader.js +25 -0
- package/dist/analysis/project-semantics-loader.js.map +1 -0
- package/dist/analysis/snapshot-diff.d.ts +19 -0
- package/dist/analysis/snapshot-diff.d.ts.map +1 -0
- package/dist/analysis/snapshot-diff.js +54 -0
- package/dist/analysis/snapshot-diff.js.map +1 -0
- package/dist/analysis/snapshot-store.d.ts +15 -0
- package/dist/analysis/snapshot-store.d.ts.map +1 -0
- package/dist/analysis/snapshot-store.js +96 -0
- package/dist/analysis/snapshot-store.js.map +1 -0
- package/dist/analysis/test-analyzer.d.ts +4 -1
- package/dist/analysis/test-analyzer.d.ts.map +1 -1
- package/dist/analysis/test-analyzer.js +67 -14
- package/dist/analysis/test-analyzer.js.map +1 -1
- package/dist/analysis/test-coverage-mapper.d.ts +1 -1
- package/dist/analysis/test-coverage-mapper.d.ts.map +1 -1
- package/dist/analysis/test-coverage-mapper.js +32 -2
- package/dist/analysis/test-coverage-mapper.js.map +1 -1
- package/dist/analysis/test-issue-detector.d.ts +1 -1
- package/dist/analysis/test-issue-detector.d.ts.map +1 -1
- package/dist/analysis/test-issue-detector.js +7 -2
- package/dist/analysis/test-issue-detector.js.map +1 -1
- package/dist/analysis/test-pattern-advisor.d.ts +2 -0
- package/dist/analysis/test-pattern-advisor.d.ts.map +1 -0
- package/dist/analysis/test-pattern-advisor.js +59 -0
- package/dist/analysis/test-pattern-advisor.js.map +1 -0
- package/dist/cli/analyze/normalize-to-diagrams.d.ts +9 -0
- package/dist/cli/analyze/normalize-to-diagrams.d.ts.map +1 -1
- package/dist/cli/analyze/normalize-to-diagrams.js +35 -26
- package/dist/cli/analyze/normalize-to-diagrams.js.map +1 -1
- package/dist/cli/analyze/run-analysis.d.ts +5 -1
- package/dist/cli/analyze/run-analysis.d.ts.map +1 -1
- package/dist/cli/analyze/run-analysis.js +207 -33
- package/dist/cli/analyze/run-analysis.js.map +1 -1
- package/dist/cli/{cache-manager.d.ts → cache/cache-manager.d.ts} +1 -1
- package/dist/cli/cache/cache-manager.d.ts.map +1 -0
- package/dist/cli/{cache-manager.js → cache/cache-manager.js} +3 -3
- package/dist/cli/cache/cache-manager.js.map +1 -0
- package/dist/cli/cognitive/ccb-assembler.d.ts +8 -0
- package/dist/cli/cognitive/ccb-assembler.d.ts.map +1 -0
- package/dist/cli/cognitive/ccb-assembler.js +213 -0
- package/dist/cli/cognitive/ccb-assembler.js.map +1 -0
- package/dist/cli/cognitive/ccb-reader.d.ts +7 -0
- package/dist/cli/cognitive/ccb-reader.d.ts.map +1 -0
- package/dist/cli/cognitive/ccb-reader.js +27 -0
- package/dist/cli/cognitive/ccb-reader.js.map +1 -0
- package/dist/cli/cognitive/ccb-schema.d.ts +36 -0
- package/dist/cli/cognitive/ccb-schema.d.ts.map +1 -0
- package/dist/cli/cognitive/ccb-schema.js +2 -0
- package/dist/cli/cognitive/ccb-schema.js.map +1 -0
- package/dist/cli/cognitive/ccb-writer.d.ts +3 -0
- package/dist/cli/cognitive/ccb-writer.d.ts.map +1 -0
- package/dist/cli/cognitive/ccb-writer.js +12 -0
- package/dist/cli/cognitive/ccb-writer.js.map +1 -0
- package/dist/cli/commands/analyze.d.ts.map +1 -1
- package/dist/cli/commands/analyze.js +23 -4
- package/dist/cli/commands/analyze.js.map +1 -1
- package/dist/cli/commands/cache.js +2 -2
- package/dist/cli/commands/cache.js.map +1 -1
- package/dist/cli/commands/check.d.ts +3 -0
- package/dist/cli/commands/check.d.ts.map +1 -0
- package/dist/cli/commands/check.js +48 -0
- package/dist/cli/commands/check.js.map +1 -0
- package/dist/cli/commands/diff.d.ts +3 -0
- package/dist/cli/commands/diff.d.ts.map +1 -0
- package/dist/cli/commands/diff.js +89 -0
- package/dist/cli/commands/diff.js.map +1 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +1 -2
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/query.d.ts +51 -0
- package/dist/cli/commands/query.d.ts.map +1 -1
- package/dist/cli/commands/query.js +373 -17
- package/dist/cli/commands/query.js.map +1 -1
- package/dist/cli/config-loader.d.ts +50 -0
- package/dist/cli/config-loader.d.ts.map +1 -1
- package/dist/cli/config-loader.js +33 -0
- package/dist/cli/config-loader.js.map +1 -1
- package/dist/cli/{errors.d.ts → errors/index.d.ts} +16 -2
- package/dist/cli/errors/index.d.ts.map +1 -0
- package/dist/cli/{error-handler.js → errors/index.js} +32 -2
- package/dist/cli/errors/index.js.map +1 -0
- package/dist/cli/git-history/git-log-reader.d.ts +2 -0
- package/dist/cli/git-history/git-log-reader.d.ts.map +1 -0
- package/dist/cli/git-history/git-log-reader.js +2 -0
- package/dist/cli/git-history/git-log-reader.js.map +1 -0
- package/dist/cli/git-history/history-aggregator.d.ts +2 -0
- package/dist/cli/git-history/history-aggregator.d.ts.map +1 -0
- package/dist/cli/git-history/history-aggregator.js +2 -0
- package/dist/cli/git-history/history-aggregator.js.map +1 -0
- package/dist/cli/git-history/history-loader.d.ts +11 -0
- package/dist/cli/git-history/history-loader.d.ts.map +1 -0
- package/dist/cli/git-history/history-loader.js +30 -0
- package/dist/cli/git-history/history-loader.js.map +1 -0
- package/dist/cli/git-history/history-query.d.ts +2 -0
- package/dist/cli/git-history/history-query.d.ts.map +1 -0
- package/dist/cli/git-history/history-query.js +2 -0
- package/dist/cli/git-history/history-query.js.map +1 -0
- package/dist/cli/git-history/history-writer.d.ts +3 -0
- package/dist/cli/git-history/history-writer.d.ts.map +1 -0
- package/dist/cli/git-history/history-writer.js +14 -0
- package/dist/cli/git-history/history-writer.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +5 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/mcp/analyze-tool.d.ts +2 -0
- package/dist/cli/mcp/analyze-tool.d.ts.map +1 -1
- package/dist/cli/mcp/analyze-tool.js +15 -4
- package/dist/cli/mcp/analyze-tool.js.map +1 -1
- package/dist/cli/mcp/mcp-server.d.ts +7 -2
- package/dist/cli/mcp/mcp-server.d.ts.map +1 -1
- package/dist/cli/mcp/mcp-server.js +203 -50
- package/dist/cli/mcp/mcp-server.js.map +1 -1
- package/dist/cli/mcp/tools/atlas-analytics-tools.d.ts +7 -0
- package/dist/cli/mcp/tools/atlas-analytics-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/atlas-analytics-tools.js +190 -0
- package/dist/cli/mcp/tools/atlas-analytics-tools.js.map +1 -0
- package/dist/cli/mcp/tools/call-graph-tools.d.ts +3 -0
- package/dist/cli/mcp/tools/call-graph-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/call-graph-tools.js +47 -0
- package/dist/cli/mcp/tools/call-graph-tools.js.map +1 -0
- package/dist/cli/mcp/tools/ccb-tool.d.ts +3 -0
- package/dist/cli/mcp/tools/ccb-tool.d.ts.map +1 -0
- package/dist/cli/mcp/tools/ccb-tool.js +63 -0
- package/dist/cli/mcp/tools/ccb-tool.js.map +1 -0
- package/dist/cli/mcp/tools/cognitive-summary-tool.d.ts +3 -0
- package/dist/cli/mcp/tools/cognitive-summary-tool.d.ts.map +1 -0
- package/dist/cli/mcp/tools/cognitive-summary-tool.js +118 -0
- package/dist/cli/mcp/tools/cognitive-summary-tool.js.map +1 -0
- package/dist/cli/mcp/tools/gim-tools.d.ts +3 -0
- package/dist/cli/mcp/tools/gim-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/gim-tools.js +78 -0
- package/dist/cli/mcp/tools/gim-tools.js.map +1 -0
- package/dist/cli/mcp/tools/git-history-analyze-tool.d.ts +3 -0
- package/dist/cli/mcp/tools/git-history-analyze-tool.d.ts.map +1 -0
- package/dist/cli/mcp/tools/git-history-analyze-tool.js +172 -0
- package/dist/cli/mcp/tools/git-history-analyze-tool.js.map +1 -0
- package/dist/cli/mcp/tools/git-history-evidence-pack-tool.d.ts +3 -0
- package/dist/cli/mcp/tools/git-history-evidence-pack-tool.d.ts.map +1 -0
- package/dist/cli/mcp/tools/git-history-evidence-pack-tool.js +87 -0
- package/dist/cli/mcp/tools/git-history-evidence-pack-tool.js.map +1 -0
- package/dist/cli/mcp/tools/git-history-tools.d.ts +3 -0
- package/dist/cli/mcp/tools/git-history-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/git-history-tools.js +125 -0
- package/dist/cli/mcp/tools/git-history-tools.js.map +1 -0
- package/dist/cli/mcp/tools/metric-trend-tools.d.ts +8 -0
- package/dist/cli/mcp/tools/metric-trend-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/metric-trend-tools.js +50 -0
- package/dist/cli/mcp/tools/metric-trend-tools.js.map +1 -0
- package/dist/cli/mcp/tools/package-metrics-tools.d.ts +7 -0
- package/dist/cli/mcp/tools/package-metrics-tools.d.ts.map +1 -0
- package/dist/cli/mcp/tools/package-metrics-tools.js +62 -0
- package/dist/cli/mcp/tools/package-metrics-tools.js.map +1 -0
- package/dist/cli/mcp/tools/test-analysis-tools.d.ts.map +1 -1
- package/dist/cli/mcp/tools/test-analysis-tools.js +75 -84
- package/dist/cli/mcp/tools/test-analysis-tools.js.map +1 -1
- package/dist/cli/metrics-history-writer.d.ts +16 -0
- package/dist/cli/metrics-history-writer.d.ts.map +1 -0
- package/dist/cli/metrics-history-writer.js +16 -0
- package/dist/cli/metrics-history-writer.js.map +1 -0
- package/dist/cli/processors/arch-json-provider-types.d.ts +17 -0
- package/dist/cli/processors/arch-json-provider-types.d.ts.map +1 -0
- package/dist/cli/processors/arch-json-provider-types.js +2 -0
- package/dist/cli/processors/arch-json-provider-types.js.map +1 -0
- package/dist/cli/processors/arch-json-provider.d.ts +9 -13
- package/dist/cli/processors/arch-json-provider.d.ts.map +1 -1
- package/dist/cli/processors/arch-json-provider.js +144 -117
- package/dist/cli/processors/arch-json-provider.js.map +1 -1
- package/dist/cli/processors/arch-json-utils.d.ts +4 -0
- package/dist/cli/processors/arch-json-utils.d.ts.map +1 -0
- package/dist/cli/processors/arch-json-utils.js +82 -0
- package/dist/cli/processors/arch-json-utils.js.map +1 -0
- package/dist/cli/processors/diagram-output-router.d.ts +3 -1
- package/dist/cli/processors/diagram-output-router.d.ts.map +1 -1
- package/dist/cli/processors/diagram-output-router.js +28 -3
- package/dist/cli/processors/diagram-output-router.js.map +1 -1
- package/dist/cli/processors/diagram-pipeline-runner.d.ts +20 -0
- package/dist/cli/processors/diagram-pipeline-runner.d.ts.map +1 -0
- package/dist/cli/processors/diagram-pipeline-runner.js +171 -0
- package/dist/cli/processors/diagram-pipeline-runner.js.map +1 -0
- package/dist/cli/processors/diagram-processor.d.ts +15 -8
- package/dist/cli/processors/diagram-processor.d.ts.map +1 -1
- package/dist/cli/processors/diagram-processor.js +21 -148
- package/dist/cli/processors/diagram-processor.js.map +1 -1
- package/dist/cli/processors/query-scope-collector.d.ts +11 -0
- package/dist/cli/processors/query-scope-collector.d.ts.map +1 -0
- package/dist/cli/processors/query-scope-collector.js +44 -0
- package/dist/cli/processors/query-scope-collector.js.map +1 -0
- package/dist/cli/processors/test-coverage-writer.d.ts +4 -0
- package/dist/cli/processors/test-coverage-writer.d.ts.map +1 -0
- package/dist/cli/processors/test-coverage-writer.js +22 -0
- package/dist/cli/processors/test-coverage-writer.js.map +1 -0
- package/dist/cli/processors/worker-pool-factory.d.ts +9 -0
- package/dist/cli/processors/worker-pool-factory.d.ts.map +1 -0
- package/dist/cli/processors/worker-pool-factory.js +31 -0
- package/dist/cli/processors/worker-pool-factory.js.map +1 -0
- package/dist/cli/{progress.d.ts → progress/index.d.ts} +1 -1
- package/dist/cli/progress/index.d.ts.map +1 -0
- package/dist/cli/{progress.js → progress/index.js} +1 -1
- package/dist/cli/progress/index.js.map +1 -0
- package/dist/cli/query/arch-index-builder.d.ts +1 -3
- package/dist/cli/query/arch-index-builder.d.ts.map +1 -1
- package/dist/cli/query/arch-index-builder.js +1 -125
- package/dist/cli/query/arch-index-builder.js.map +1 -1
- package/dist/cli/query/arch-index.d.ts +2 -16
- package/dist/cli/query/arch-index.d.ts.map +1 -1
- package/dist/cli/query/arch-index.js +1 -1
- package/dist/cli/query/arch-index.js.map +1 -1
- package/dist/cli/query/engine-loader.d.ts +9 -1
- package/dist/cli/query/engine-loader.d.ts.map +1 -1
- package/dist/cli/query/engine-loader.js +5 -1
- package/dist/cli/query/engine-loader.js.map +1 -1
- package/dist/cli/query/query-artifacts.d.ts.map +1 -1
- package/dist/cli/query/query-artifacts.js +2 -1
- package/dist/cli/query/query-artifacts.js.map +1 -1
- package/dist/cli/query/query-engine.d.ts +3 -105
- package/dist/cli/query/query-engine.d.ts.map +1 -1
- package/dist/cli/query/query-engine.js +1 -417
- package/dist/cli/query/query-engine.js.map +1 -1
- package/dist/cli/utils/java-project-structure-detector.js +1 -1
- package/dist/cli/utils/java-project-structure-detector.js.map +1 -1
- package/dist/cli/utils/kotlin-project-structure-detector.d.ts +7 -0
- package/dist/cli/utils/kotlin-project-structure-detector.d.ts.map +1 -0
- package/dist/cli/utils/kotlin-project-structure-detector.js +101 -0
- package/dist/cli/utils/kotlin-project-structure-detector.js.map +1 -0
- package/dist/cli/utils/output-path-resolver.d.ts.map +1 -1
- package/dist/cli/utils/output-path-resolver.js.map +1 -1
- package/dist/cli/utils/project-language-detector.d.ts +1 -1
- package/dist/cli/utils/project-language-detector.d.ts.map +1 -1
- package/dist/cli/utils/project-language-detector.js +5 -1
- package/dist/cli/utils/project-language-detector.js.map +1 -1
- package/dist/cli/utils/project-structure-detector.js +3 -3
- package/dist/cli/utils/project-structure-detector.js.map +1 -1
- package/dist/cli/utils/test-output-writer.d.ts +1 -1
- package/dist/cli/utils/test-output-writer.d.ts.map +1 -1
- package/dist/cli/utils/test-output-writer.js.map +1 -1
- package/dist/core/entity-type-registry.d.ts +10 -0
- package/dist/core/entity-type-registry.d.ts.map +1 -0
- package/dist/core/entity-type-registry.js +17 -0
- package/dist/core/entity-type-registry.js.map +1 -0
- package/dist/core/interfaces/dependency.d.ts +1 -1
- package/dist/core/interfaces/dependency.d.ts.map +1 -1
- package/dist/core/interfaces/index.d.ts +2 -0
- package/dist/core/interfaces/index.d.ts.map +1 -1
- package/dist/core/interfaces/index.js.map +1 -1
- package/dist/core/interfaces/language-plugin.d.ts +8 -1
- package/dist/core/interfaces/language-plugin.d.ts.map +1 -1
- package/dist/core/interfaces/parser-facade.d.ts +5 -0
- package/dist/core/interfaces/parser-facade.d.ts.map +1 -0
- package/dist/core/interfaces/parser-facade.js +2 -0
- package/dist/core/interfaces/parser-facade.js.map +1 -0
- package/dist/core/interfaces/renderer-facade.d.ts +8 -0
- package/dist/core/interfaces/renderer-facade.d.ts.map +1 -0
- package/dist/core/interfaces/renderer-facade.js +2 -0
- package/dist/core/interfaces/renderer-facade.js.map +1 -0
- package/dist/core/interfaces/validation.d.ts.map +1 -1
- package/dist/core/plugin-registry.d.ts.map +1 -1
- package/dist/core/plugin-registry.js +2 -0
- package/dist/core/plugin-registry.js.map +1 -1
- package/dist/core/query/arch-index-builder.d.ts +4 -0
- package/dist/core/query/arch-index-builder.d.ts.map +1 -0
- package/dist/core/query/arch-index-builder.js +126 -0
- package/dist/core/query/arch-index-builder.js.map +1 -0
- package/dist/core/query/arch-index.d.ts +17 -0
- package/dist/core/query/arch-index.d.ts.map +1 -0
- package/dist/core/query/arch-index.js +2 -0
- package/dist/core/query/arch-index.js.map +1 -0
- package/dist/core/query/arch-metrics-cognitive.d.ts +32 -0
- package/dist/core/query/arch-metrics-cognitive.d.ts.map +1 -0
- package/dist/core/query/arch-metrics-cognitive.js +60 -0
- package/dist/core/query/arch-metrics-cognitive.js.map +1 -0
- package/dist/core/query/arch-metrics-quality.d.ts +24 -0
- package/dist/core/query/arch-metrics-quality.d.ts.map +1 -0
- package/dist/core/query/arch-metrics-quality.js +86 -0
- package/dist/core/query/arch-metrics-quality.js.map +1 -0
- package/dist/core/query/arch-metrics-structure.d.ts +43 -0
- package/dist/core/query/arch-metrics-structure.d.ts.map +1 -0
- package/dist/core/query/arch-metrics-structure.js +291 -0
- package/dist/core/query/arch-metrics-structure.js.map +1 -0
- package/dist/core/query/arch-metrics.d.ts +54 -0
- package/dist/core/query/arch-metrics.d.ts.map +1 -0
- package/dist/core/query/arch-metrics.js +42 -0
- package/dist/core/query/arch-metrics.js.map +1 -0
- package/dist/core/query/edge-list-serializer.d.ts +4 -0
- package/dist/core/query/edge-list-serializer.d.ts.map +1 -0
- package/dist/core/query/edge-list-serializer.js +24 -0
- package/dist/core/query/edge-list-serializer.js.map +1 -0
- package/dist/core/query/entity-query-service.d.ts +15 -0
- package/dist/core/query/entity-query-service.d.ts.map +1 -0
- package/dist/core/query/entity-query-service.js +51 -0
- package/dist/core/query/entity-query-service.js.map +1 -0
- package/dist/core/query/extension-accessor.d.ts +15 -0
- package/dist/core/query/extension-accessor.d.ts.map +1 -0
- package/dist/core/query/extension-accessor.js +28 -0
- package/dist/core/query/extension-accessor.js.map +1 -0
- package/dist/core/query/index.d.ts +8 -0
- package/dist/core/query/index.d.ts.map +1 -0
- package/dist/core/query/index.js +6 -0
- package/dist/core/query/index.js.map +1 -0
- package/dist/core/query/output-scope-filter.d.ts +6 -0
- package/dist/core/query/output-scope-filter.d.ts.map +1 -0
- package/dist/core/query/output-scope-filter.js +45 -0
- package/dist/core/query/output-scope-filter.js.map +1 -0
- package/dist/core/query/query-engine.d.ts +116 -0
- package/dist/core/query/query-engine.d.ts.map +1 -0
- package/dist/core/query/query-engine.js +105 -0
- package/dist/core/query/query-engine.js.map +1 -0
- package/dist/core/query/relation-query-service.d.ts +21 -0
- package/dist/core/query/relation-query-service.d.ts.map +1 -0
- package/dist/core/query/relation-query-service.js +124 -0
- package/dist/core/query/relation-query-service.js.map +1 -0
- package/dist/mermaid/auto-repair.d.ts +1 -1
- package/dist/mermaid/auto-repair.d.ts.map +1 -1
- package/dist/mermaid/auto-repair.js +6 -6
- package/dist/mermaid/auto-repair.js.map +1 -1
- package/dist/mermaid/cpp-package-flowchart-generator.js +1 -1
- package/dist/mermaid/cpp-package-flowchart-generator.js.map +1 -1
- package/dist/mermaid/diagram-generator.d.ts +2 -1
- package/dist/mermaid/diagram-generator.d.ts.map +1 -1
- package/dist/mermaid/diagram-generator.js +17 -16
- package/dist/mermaid/diagram-generator.js.map +1 -1
- package/dist/mermaid/generator-formatting.d.ts +1 -1
- package/dist/mermaid/generator-formatting.d.ts.map +1 -1
- package/dist/mermaid/generator-formatting.js +2 -0
- package/dist/mermaid/generator-formatting.js.map +1 -1
- package/dist/mermaid/generator-validation.d.ts.map +1 -1
- package/dist/mermaid/generator-validation.js.map +1 -1
- package/dist/mermaid/generator.d.ts +5 -10
- package/dist/mermaid/generator.d.ts.map +1 -1
- package/dist/mermaid/generator.js +210 -227
- package/dist/mermaid/generator.js.map +1 -1
- package/dist/mermaid/grouper.d.ts.map +1 -1
- package/dist/mermaid/grouper.js.map +1 -1
- package/dist/mermaid/renderer.d.ts.map +1 -1
- package/dist/mermaid/renderer.js +1 -1
- package/dist/mermaid/renderer.js.map +1 -1
- package/dist/mermaid/test-coverage-renderer.d.ts +1 -1
- package/dist/mermaid/test-coverage-renderer.d.ts.map +1 -1
- package/dist/mermaid/test-coverage-renderer.js +18 -12
- package/dist/mermaid/test-coverage-renderer.js.map +1 -1
- package/dist/mermaid/ts-module-graph-renderer.d.ts +6 -2
- package/dist/mermaid/ts-module-graph-renderer.d.ts.map +1 -1
- package/dist/mermaid/ts-module-graph-renderer.js +49 -2
- package/dist/mermaid/ts-module-graph-renderer.js.map +1 -1
- package/dist/mermaid/validator-quality.js +1 -1
- package/dist/mermaid/validator-quality.js.map +1 -1
- package/dist/mermaid/validator-render.js +1 -1
- package/dist/mermaid/validator-render.js.map +1 -1
- package/dist/parser/archjson-aggregator.d.ts +1 -0
- package/dist/parser/archjson-aggregator.d.ts.map +1 -1
- package/dist/parser/archjson-aggregator.js +38 -8
- package/dist/parser/archjson-aggregator.js.map +1 -1
- package/dist/parser/call-edge-extractor.d.ts +13 -0
- package/dist/parser/call-edge-extractor.d.ts.map +1 -0
- package/dist/parser/call-edge-extractor.js +70 -0
- package/dist/parser/call-edge-extractor.js.map +1 -0
- package/dist/parser/metrics-calculator.d.ts.map +1 -1
- package/dist/parser/metrics-calculator.js +2 -1
- package/dist/parser/metrics-calculator.js.map +1 -1
- package/dist/parser/parallel-parser.d.ts +12 -1
- package/dist/parser/parallel-parser.d.ts.map +1 -1
- package/dist/parser/parallel-parser.js +80 -37
- package/dist/parser/parallel-parser.js.map +1 -1
- package/dist/parser/parse-worker-pool.d.ts +59 -0
- package/dist/parser/parse-worker-pool.d.ts.map +1 -0
- package/dist/parser/parse-worker-pool.js +170 -0
- package/dist/parser/parse-worker-pool.js.map +1 -0
- package/dist/parser/parse-worker.d.ts +2 -0
- package/dist/parser/parse-worker.d.ts.map +1 -0
- package/dist/parser/parse-worker.js +71 -0
- package/dist/parser/parse-worker.js.map +1 -0
- package/dist/parser/process-parse-worker-pools.d.ts +18 -0
- package/dist/parser/process-parse-worker-pools.d.ts.map +1 -0
- package/dist/parser/process-parse-worker-pools.js +31 -0
- package/dist/parser/process-parse-worker-pools.js.map +1 -0
- package/dist/parser/relation-extractor.d.ts +1 -0
- package/dist/parser/relation-extractor.d.ts.map +1 -1
- package/dist/parser/relation-extractor.js +84 -4
- package/dist/parser/relation-extractor.js.map +1 -1
- package/dist/parser/typescript-parser.d.ts +2 -0
- package/dist/parser/typescript-parser.d.ts.map +1 -1
- package/dist/parser/typescript-parser.js +44 -5
- package/dist/parser/typescript-parser.js.map +1 -1
- package/dist/plugins/cpp/archjson-mapper.d.ts.map +1 -1
- package/dist/plugins/cpp/archjson-mapper.js.map +1 -1
- package/dist/plugins/cpp/builders/class-builder.d.ts +2 -2
- package/dist/plugins/cpp/builders/class-builder.d.ts.map +1 -1
- package/dist/plugins/cpp/builders/class-builder.js +6 -1
- package/dist/plugins/cpp/builders/class-builder.js.map +1 -1
- package/dist/plugins/cpp/index.d.ts +7 -4
- package/dist/plugins/cpp/index.d.ts.map +1 -1
- package/dist/plugins/cpp/index.js +47 -9
- package/dist/plugins/cpp/index.js.map +1 -1
- package/dist/plugins/cpp/tree-sitter-bridge.d.ts +3 -2
- package/dist/plugins/cpp/tree-sitter-bridge.d.ts.map +1 -1
- package/dist/plugins/cpp/tree-sitter-bridge.js +27 -22
- package/dist/plugins/cpp/tree-sitter-bridge.js.map +1 -1
- package/dist/plugins/golang/archjson-mapper.d.ts +3 -1
- package/dist/plugins/golang/archjson-mapper.d.ts.map +1 -1
- package/dist/plugins/golang/archjson-mapper.js +56 -1
- package/dist/plugins/golang/archjson-mapper.js.map +1 -1
- package/dist/plugins/golang/atlas/behavior-analyzer.d.ts +2 -1
- package/dist/plugins/golang/atlas/behavior-analyzer.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/behavior-analyzer.js +2 -2
- package/dist/plugins/golang/atlas/behavior-analyzer.js.map +1 -1
- package/dist/plugins/golang/atlas/builders/capability-graph-builder.d.ts +5 -1
- package/dist/plugins/golang/atlas/builders/capability-graph-builder.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/builders/capability-graph-builder.js +43 -1
- package/dist/plugins/golang/atlas/builders/capability-graph-builder.js.map +1 -1
- package/dist/plugins/golang/atlas/builders/flow-graph-builder.d.ts +3 -0
- package/dist/plugins/golang/atlas/builders/flow-graph-builder.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/builders/flow-graph-builder.js +166 -6
- package/dist/plugins/golang/atlas/builders/flow-graph-builder.js.map +1 -1
- package/dist/plugins/golang/atlas/builders/goroutine-topology-builder.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/builders/goroutine-topology-builder.js +12 -5
- package/dist/plugins/golang/atlas/builders/goroutine-topology-builder.js.map +1 -1
- package/dist/plugins/golang/atlas/builders/package-graph-builder.js +5 -5
- package/dist/plugins/golang/atlas/builders/package-graph-builder.js.map +1 -1
- package/dist/plugins/golang/atlas/framework-detector.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/framework-detector.js +2 -0
- package/dist/plugins/golang/atlas/framework-detector.js.map +1 -1
- package/dist/plugins/golang/atlas/go-mod-resolver.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/go-mod-resolver.js +3 -3
- package/dist/plugins/golang/atlas/go-mod-resolver.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/atlas-renderer.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/atlas-renderer.js +32 -2
- package/dist/plugins/golang/atlas/renderers/atlas-renderer.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/capability-mermaid-template.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/capability-mermaid-template.js +16 -5
- package/dist/plugins/golang/atlas/renderers/capability-mermaid-template.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/flow-mermaid-template.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/goroutine-mermaid-template.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/goroutine-mermaid-template.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/mermaid-templates.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/mermaid-templates.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/package-mermaid-template.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/package-mermaid-template.js +5 -5
- package/dist/plugins/golang/atlas/renderers/package-mermaid-template.js.map +1 -1
- package/dist/plugins/golang/atlas/renderers/template-shared.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/renderers/template-shared.js.map +1 -1
- package/dist/plugins/golang/atlas/types.d.ts +9 -3
- package/dist/plugins/golang/atlas/types.d.ts.map +1 -1
- package/dist/plugins/golang/atlas/types.js +1 -1
- package/dist/plugins/golang/atlas/types.js.map +1 -1
- package/dist/plugins/golang/builders/function-builder.d.ts +19 -0
- package/dist/plugins/golang/builders/function-builder.d.ts.map +1 -0
- package/dist/plugins/golang/builders/function-builder.js +206 -0
- package/dist/plugins/golang/builders/function-builder.js.map +1 -0
- package/dist/plugins/golang/builders/goroutine-builder.d.ts +11 -0
- package/dist/plugins/golang/builders/goroutine-builder.d.ts.map +1 -0
- package/dist/plugins/golang/builders/goroutine-builder.js +147 -0
- package/dist/plugins/golang/builders/goroutine-builder.js.map +1 -0
- package/dist/plugins/golang/builders/interface-builder.d.ts +9 -0
- package/dist/plugins/golang/builders/interface-builder.d.ts.map +1 -0
- package/dist/plugins/golang/builders/interface-builder.js +126 -0
- package/dist/plugins/golang/builders/interface-builder.js.map +1 -0
- package/dist/plugins/golang/builders/node-utils.d.ts +8 -0
- package/dist/plugins/golang/builders/node-utils.d.ts.map +1 -0
- package/dist/plugins/golang/builders/node-utils.js +18 -0
- package/dist/plugins/golang/builders/node-utils.js.map +1 -0
- package/dist/plugins/golang/builders/struct-builder.d.ts +12 -0
- package/dist/plugins/golang/builders/struct-builder.d.ts.map +1 -0
- package/dist/plugins/golang/builders/struct-builder.js +81 -0
- package/dist/plugins/golang/builders/struct-builder.js.map +1 -0
- package/dist/plugins/golang/go-atlas-adapter.d.ts +11 -0
- package/dist/plugins/golang/go-atlas-adapter.d.ts.map +1 -0
- package/dist/plugins/golang/go-atlas-adapter.js +47 -0
- package/dist/plugins/golang/go-atlas-adapter.js.map +1 -0
- package/dist/plugins/golang/go-atlas-coordinator.d.ts +12 -0
- package/dist/plugins/golang/go-atlas-coordinator.d.ts.map +1 -0
- package/dist/plugins/golang/go-atlas-coordinator.js +76 -0
- package/dist/plugins/golang/go-atlas-coordinator.js.map +1 -0
- package/dist/plugins/golang/go-mod-reader.d.ts +2 -0
- package/dist/plugins/golang/go-mod-reader.d.ts.map +1 -0
- package/dist/plugins/golang/go-mod-reader.js +12 -0
- package/dist/plugins/golang/go-mod-reader.js.map +1 -0
- package/dist/plugins/golang/go-parse-coordinator.d.ts +31 -0
- package/dist/plugins/golang/go-parse-coordinator.d.ts.map +1 -0
- package/dist/plugins/golang/go-parse-coordinator.js +175 -0
- package/dist/plugins/golang/go-parse-coordinator.js.map +1 -0
- package/dist/plugins/golang/go-test-analyzer.d.ts +10 -0
- package/dist/plugins/golang/go-test-analyzer.d.ts.map +1 -0
- package/dist/plugins/golang/go-test-analyzer.js +90 -0
- package/dist/plugins/golang/go-test-analyzer.js.map +1 -0
- package/dist/plugins/golang/gopls-client.d.ts +31 -2
- package/dist/plugins/golang/gopls-client.d.ts.map +1 -1
- package/dist/plugins/golang/gopls-client.js +234 -36
- package/dist/plugins/golang/gopls-client.js.map +1 -1
- package/dist/plugins/golang/gopls-interface-resolver.d.ts +32 -0
- package/dist/plugins/golang/gopls-interface-resolver.d.ts.map +1 -0
- package/dist/plugins/golang/gopls-interface-resolver.js +80 -0
- package/dist/plugins/golang/gopls-interface-resolver.js.map +1 -0
- package/dist/plugins/golang/index.d.ts +15 -18
- package/dist/plugins/golang/index.d.ts.map +1 -1
- package/dist/plugins/golang/index.js +59 -327
- package/dist/plugins/golang/index.js.map +1 -1
- package/dist/plugins/golang/interface-matcher.d.ts.map +1 -1
- package/dist/plugins/golang/interface-matcher.js +32 -30
- package/dist/plugins/golang/interface-matcher.js.map +1 -1
- package/dist/plugins/golang/tree-sitter-bridge.d.ts +7 -26
- package/dist/plugins/golang/tree-sitter-bridge.d.ts.map +1 -1
- package/dist/plugins/golang/tree-sitter-bridge.js +36 -544
- package/dist/plugins/golang/tree-sitter-bridge.js.map +1 -1
- package/dist/plugins/golang/types.d.ts +5 -0
- package/dist/plugins/golang/types.d.ts.map +1 -1
- package/dist/plugins/java/archjson-mapper.d.ts +3 -1
- package/dist/plugins/java/archjson-mapper.d.ts.map +1 -1
- package/dist/plugins/java/archjson-mapper.js +123 -0
- package/dist/plugins/java/archjson-mapper.js.map +1 -1
- package/dist/plugins/java/dependency-extractor.js +2 -2
- package/dist/plugins/java/dependency-extractor.js.map +1 -1
- package/dist/plugins/java/index.d.ts +6 -2
- package/dist/plugins/java/index.d.ts.map +1 -1
- package/dist/plugins/java/index.js +85 -17
- package/dist/plugins/java/index.js.map +1 -1
- package/dist/plugins/java/maven-crossmodule-parser.d.ts +9 -0
- package/dist/plugins/java/maven-crossmodule-parser.d.ts.map +1 -0
- package/dist/plugins/java/maven-crossmodule-parser.js +54 -0
- package/dist/plugins/java/maven-crossmodule-parser.js.map +1 -0
- package/dist/plugins/java/tree-sitter-bridge.d.ts +5 -2
- package/dist/plugins/java/tree-sitter-bridge.d.ts.map +1 -1
- package/dist/plugins/java/tree-sitter-bridge.js +103 -38
- package/dist/plugins/java/tree-sitter-bridge.js.map +1 -1
- package/dist/plugins/java/types.d.ts +7 -0
- package/dist/plugins/java/types.d.ts.map +1 -1
- package/dist/plugins/kotlin/archjson-mapper.d.ts +12 -0
- package/dist/plugins/kotlin/archjson-mapper.d.ts.map +1 -0
- package/dist/plugins/kotlin/archjson-mapper.js +157 -0
- package/dist/plugins/kotlin/archjson-mapper.js.map +1 -0
- package/dist/plugins/kotlin/builders/class-builder.d.ts +27 -0
- package/dist/plugins/kotlin/builders/class-builder.d.ts.map +1 -0
- package/dist/plugins/kotlin/builders/class-builder.js +366 -0
- package/dist/plugins/kotlin/builders/class-builder.js.map +1 -0
- package/dist/plugins/kotlin/builders/function-builder.d.ts +16 -0
- package/dist/plugins/kotlin/builders/function-builder.d.ts.map +1 -0
- package/dist/plugins/kotlin/builders/function-builder.js +172 -0
- package/dist/plugins/kotlin/builders/function-builder.js.map +1 -0
- package/dist/plugins/kotlin/builders/import-resolver.d.ts +5 -0
- package/dist/plugins/kotlin/builders/import-resolver.d.ts.map +1 -0
- package/dist/plugins/kotlin/builders/import-resolver.js +10 -0
- package/dist/plugins/kotlin/builders/import-resolver.js.map +1 -0
- package/dist/plugins/kotlin/dependency-extractor.d.ts +13 -0
- package/dist/plugins/kotlin/dependency-extractor.d.ts.map +1 -0
- package/dist/plugins/kotlin/dependency-extractor.js +104 -0
- package/dist/plugins/kotlin/dependency-extractor.js.map +1 -0
- package/dist/plugins/kotlin/index.d.ts +29 -0
- package/dist/plugins/kotlin/index.d.ts.map +1 -0
- package/dist/plugins/kotlin/index.js +246 -0
- package/dist/plugins/kotlin/index.js.map +1 -0
- package/dist/plugins/kotlin/kotlin-type-extractor.d.ts +7 -0
- package/dist/plugins/kotlin/kotlin-type-extractor.d.ts.map +1 -0
- package/dist/plugins/kotlin/kotlin-type-extractor.js +96 -0
- package/dist/plugins/kotlin/kotlin-type-extractor.js.map +1 -0
- package/dist/plugins/kotlin/tree-sitter-bridge.d.ts +15 -0
- package/dist/plugins/kotlin/tree-sitter-bridge.d.ts.map +1 -0
- package/dist/plugins/kotlin/tree-sitter-bridge.js +78 -0
- package/dist/plugins/kotlin/tree-sitter-bridge.js.map +1 -0
- package/dist/plugins/kotlin/types.d.ts +48 -0
- package/dist/plugins/kotlin/types.d.ts.map +1 -0
- package/dist/plugins/kotlin/types.js +2 -0
- package/dist/plugins/kotlin/types.js.map +1 -0
- package/dist/plugins/python/archjson-mapper.d.ts +7 -2
- package/dist/plugins/python/archjson-mapper.d.ts.map +1 -1
- package/dist/plugins/python/archjson-mapper.js +117 -10
- package/dist/plugins/python/archjson-mapper.js.map +1 -1
- package/dist/plugins/python/dependency-extractor.js +1 -1
- package/dist/plugins/python/dependency-extractor.js.map +1 -1
- package/dist/plugins/python/import-extractor.d.ts +11 -0
- package/dist/plugins/python/import-extractor.d.ts.map +1 -0
- package/dist/plugins/python/import-extractor.js +67 -0
- package/dist/plugins/python/import-extractor.js.map +1 -0
- package/dist/plugins/python/index.d.ts +8 -3
- package/dist/plugins/python/index.d.ts.map +1 -1
- package/dist/plugins/python/index.js +98 -12
- package/dist/plugins/python/index.js.map +1 -1
- package/dist/plugins/python/tree-sitter-bridge.d.ts +5 -2
- package/dist/plugins/python/tree-sitter-bridge.d.ts.map +1 -1
- package/dist/plugins/python/tree-sitter-bridge.js +117 -49
- package/dist/plugins/python/tree-sitter-bridge.js.map +1 -1
- package/dist/plugins/python/types.d.ts +6 -0
- package/dist/plugins/python/types.d.ts.map +1 -1
- package/dist/plugins/shared/mapper-utils.d.ts +1 -1
- package/dist/plugins/shared/mapper-utils.d.ts.map +1 -1
- package/dist/plugins/shared/mapper-utils.js.map +1 -1
- package/dist/plugins/shared/native-parser-backend.d.ts +33 -0
- package/dist/plugins/shared/native-parser-backend.d.ts.map +1 -0
- package/dist/plugins/shared/native-parser-backend.js +84 -0
- package/dist/plugins/shared/native-parser-backend.js.map +1 -0
- package/dist/plugins/shared/parser-backend.d.ts +13 -0
- package/dist/plugins/shared/parser-backend.d.ts.map +1 -0
- package/dist/plugins/shared/parser-backend.js +38 -0
- package/dist/plugins/shared/parser-backend.js.map +1 -0
- package/dist/plugins/shared/parser-runtime.d.ts +32 -0
- package/dist/plugins/shared/parser-runtime.d.ts.map +1 -0
- package/dist/plugins/shared/parser-runtime.js +152 -0
- package/dist/plugins/shared/parser-runtime.js.map +1 -0
- package/dist/plugins/shared/plugin-factory.d.ts +5 -0
- package/dist/plugins/shared/plugin-factory.d.ts.map +1 -0
- package/dist/plugins/shared/plugin-factory.js +27 -0
- package/dist/plugins/shared/plugin-factory.js.map +1 -0
- package/dist/plugins/shared/syntax-tree.d.ts +32 -0
- package/dist/plugins/shared/syntax-tree.d.ts.map +1 -0
- package/dist/plugins/shared/syntax-tree.js +2 -0
- package/dist/plugins/shared/syntax-tree.js.map +1 -0
- package/dist/plugins/shared/wasm-parser-backend.d.ts +18 -0
- package/dist/plugins/shared/wasm-parser-backend.d.ts.map +1 -0
- package/dist/plugins/shared/wasm-parser-backend.js +118 -0
- package/dist/plugins/shared/wasm-parser-backend.js.map +1 -0
- package/dist/plugins/typescript/builders/module-graph-builder.d.ts +2 -2
- package/dist/plugins/typescript/builders/module-graph-builder.d.ts.map +1 -1
- package/dist/plugins/typescript/builders/module-graph-builder.js +31 -9
- package/dist/plugins/typescript/builders/module-graph-builder.js.map +1 -1
- package/dist/plugins/typescript/index.d.ts +3 -2
- package/dist/plugins/typescript/index.d.ts.map +1 -1
- package/dist/plugins/typescript/index.js +116 -10
- package/dist/plugins/typescript/index.js.map +1 -1
- package/dist/plugins/typescript/typescript-analyzer.d.ts +2 -2
- package/dist/plugins/typescript/typescript-analyzer.d.ts.map +1 -1
- package/dist/plugins/typescript/typescript-analyzer.js +1 -1
- package/dist/plugins/typescript/typescript-analyzer.js.map +1 -1
- package/dist/types/cognitive-summary.d.ts +20 -0
- package/dist/types/cognitive-summary.d.ts.map +1 -0
- package/dist/types/cognitive-summary.js +2 -0
- package/dist/types/cognitive-summary.js.map +1 -0
- package/dist/types/config-cli.d.ts +4 -0
- package/dist/types/config-cli.d.ts.map +1 -1
- package/dist/types/config-global.d.ts +10 -0
- package/dist/types/config-global.d.ts.map +1 -1
- package/dist/types/config.d.ts +1 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +1 -0
- package/dist/types/config.js.map +1 -1
- package/dist/types/{extensions.d.ts → extensions/go-atlas.d.ts} +5 -106
- package/dist/types/extensions/go-atlas.d.ts.map +1 -0
- package/dist/types/extensions/go-atlas.js +2 -0
- package/dist/types/extensions/go-atlas.js.map +1 -0
- package/dist/types/extensions/index.d.ts +15 -0
- package/dist/types/extensions/index.d.ts.map +1 -0
- package/dist/types/extensions/index.js +5 -0
- package/dist/types/extensions/index.js.map +1 -0
- package/dist/types/extensions/project-semantics.d.ts +55 -0
- package/dist/types/extensions/project-semantics.d.ts.map +1 -0
- package/dist/types/extensions/project-semantics.js +126 -0
- package/dist/types/extensions/project-semantics.js.map +1 -0
- package/dist/types/extensions/test-analysis.d.ts +68 -0
- package/dist/types/extensions/test-analysis.d.ts.map +1 -0
- package/dist/types/extensions/test-analysis.js +2 -0
- package/dist/types/extensions/test-analysis.js.map +1 -0
- package/dist/types/extensions/ts-analysis.d.ts +33 -0
- package/dist/types/extensions/ts-analysis.d.ts.map +1 -0
- package/dist/types/extensions/ts-analysis.js +2 -0
- package/dist/types/extensions/ts-analysis.js.map +1 -0
- package/dist/types/fitness-rules.d.ts +34 -0
- package/dist/types/fitness-rules.d.ts.map +1 -0
- package/dist/types/fitness-rules.js +2 -0
- package/dist/types/fitness-rules.js.map +1 -0
- package/dist/types/git-history.d.ts +68 -0
- package/dist/types/git-history.d.ts.map +1 -0
- package/dist/types/git-history.js +2 -0
- package/dist/types/git-history.js.map +1 -0
- package/dist/types/index.d.ts +38 -29
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/metric-vector.d.ts +17 -0
- package/dist/types/metric-vector.d.ts.map +1 -0
- package/dist/types/metric-vector.js +2 -0
- package/dist/types/metric-vector.js.map +1 -0
- package/dist/types/parser-runtime.d.ts +4 -0
- package/dist/types/parser-runtime.d.ts.map +1 -0
- package/dist/types/parser-runtime.js +5 -0
- package/dist/types/parser-runtime.js.map +1 -0
- package/dist/utils/cli-detector.js +2 -2
- package/dist/utils/cli-detector.js.map +1 -1
- package/dist/utils/tsconfig-finder.d.ts.map +1 -1
- package/dist/utils/tsconfig-finder.js +6 -1
- package/dist/utils/tsconfig-finder.js.map +1 -1
- package/package.json +32 -16
- package/dist/cli/cache-manager.d.ts.map +0 -1
- package/dist/cli/cache-manager.js.map +0 -1
- package/dist/cli/error-handler.d.ts +0 -15
- package/dist/cli/error-handler.d.ts.map +0 -1
- package/dist/cli/error-handler.js.map +0 -1
- package/dist/cli/errors.d.ts.map +0 -1
- package/dist/cli/errors.js +0 -31
- package/dist/cli/errors.js.map +0 -1
- package/dist/cli/progress.d.ts.map +0 -1
- package/dist/cli/progress.js.map +0 -1
- package/dist/types/extensions.d.ts.map +0 -1
- package/dist/types/extensions.js +0 -4
- package/dist/types/extensions.js.map +0 -1
- package/node_modules/node-addon-api/LICENSE.md +0 -9
- package/node_modules/node-addon-api/README.md +0 -95
- package/node_modules/node-addon-api/common.gypi +0 -21
- package/node_modules/node-addon-api/except.gypi +0 -25
- package/node_modules/node-addon-api/index.js +0 -14
- package/node_modules/node-addon-api/napi-inl.deprecated.h +0 -186
- package/node_modules/node-addon-api/napi-inl.h +0 -7033
- package/node_modules/node-addon-api/napi.h +0 -3309
- package/node_modules/node-addon-api/node_addon_api.gyp +0 -42
- package/node_modules/node-addon-api/node_api.gyp +0 -9
- package/node_modules/node-addon-api/noexcept.gypi +0 -26
- package/node_modules/node-addon-api/nothing.c +0 -0
- package/node_modules/node-addon-api/package-support.json +0 -21
- package/node_modules/node-addon-api/package.json +0 -480
- package/node_modules/node-addon-api/tools/README.md +0 -73
- package/node_modules/node-addon-api/tools/check-napi.js +0 -99
- package/node_modules/node-addon-api/tools/clang-format.js +0 -71
- package/node_modules/node-addon-api/tools/conversion.js +0 -301
- package/node_modules/node-gyp-build/README.md +0 -58
- package/node_modules/node-gyp-build/SECURITY.md +0 -5
- package/node_modules/node-gyp-build/bin.js +0 -84
- package/node_modules/node-gyp-build/build-test.js +0 -19
- package/node_modules/node-gyp-build/index.js +0 -6
- package/node_modules/node-gyp-build/node-gyp-build.js +0 -207
- package/node_modules/node-gyp-build/optional.js +0 -7
- package/node_modules/node-gyp-build/package.json +0 -43
- package/node_modules/tree-sitter/README.md +0 -128
- package/node_modules/tree-sitter/binding.gyp +0 -80
- package/node_modules/tree-sitter/index.js +0 -916
- package/node_modules/tree-sitter/package.json +0 -76
- package/node_modules/tree-sitter/prebuilds/linux-x64/node.napi.glibc.node +0 -0
- package/node_modules/tree-sitter/src/addon_data.h +0 -47
- package/node_modules/tree-sitter/src/binding.cc +0 -35
- package/node_modules/tree-sitter/src/conversions.cc +0 -140
- package/node_modules/tree-sitter/src/conversions.h +0 -22
- package/node_modules/tree-sitter/src/language.cc +0 -106
- package/node_modules/tree-sitter/src/language.h +0 -17
- package/node_modules/tree-sitter/src/logger.cc +0 -70
- package/node_modules/tree-sitter/src/logger.h +0 -19
- package/node_modules/tree-sitter/src/lookaheaditerator.cc +0 -122
- package/node_modules/tree-sitter/src/lookaheaditerator.h +0 -33
- package/node_modules/tree-sitter/src/node.cc +0 -1088
- package/node_modules/tree-sitter/src/node.h +0 -30
- package/node_modules/tree-sitter/src/parser.cc +0 -306
- package/node_modules/tree-sitter/src/parser.h +0 -35
- package/node_modules/tree-sitter/src/query.cc +0 -397
- package/node_modules/tree-sitter/src/query.h +0 -40
- package/node_modules/tree-sitter/src/tree.cc +0 -316
- package/node_modules/tree-sitter/src/tree.h +0 -45
- package/node_modules/tree-sitter/src/tree_cursor.cc +0 -213
- package/node_modules/tree-sitter/src/tree_cursor.h +0 -52
- package/node_modules/tree-sitter/tree-sitter.d.ts +0 -1042
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/include/tree_sitter/api.h +0 -1478
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.c +0 -48
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/alloc.h +0 -41
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/array.h +0 -291
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/atomic.h +0 -68
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/clock.h +0 -146
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/error_costs.h +0 -11
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.c +0 -523
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/get_changed_ranges.h +0 -36
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/host.h +0 -21
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.c +0 -293
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/language.h +0 -293
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/length.h +0 -52
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.c +0 -483
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lexer.h +0 -54
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/lib.c +0 -12
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/node.c +0 -875
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.c +0 -2293
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/parser.h +0 -286
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/point.h +0 -48
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/portable/endian.h +0 -239
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/query.c +0 -4350
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reduce_action.h +0 -34
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/reusable_node.h +0 -95
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.c +0 -911
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/stack.h +0 -133
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.c +0 -1034
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/subtree.h +0 -399
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.c +0 -170
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree.h +0 -31
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.c +0 -717
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/tree_cursor.h +0 -48
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/ts_assert.h +0 -11
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ICU_SHA +0 -1
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/LICENSE +0 -414
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/README.md +0 -29
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/ptypes.h +0 -1
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/umachine.h +0 -448
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/urename.h +0 -1
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf.h +0 -1
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf16.h +0 -733
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode/utf8.h +0 -881
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/unicode.h +0 -75
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib-symbols.txt +0 -24
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/stdlib.c +0 -113
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm/wasm-stdlib.h +0 -1314
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.c +0 -1935
- package/node_modules/tree-sitter/vendor/tree-sitter/lib/src/wasm_store.h +0 -31
- package/scripts/postinstall-tree-sitter.mjs +0 -28
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ArchGuard
|
|
2
2
|
|
|
3
|
-
ArchGuard analyzes source code to extract architectural insights and generates **Mermaid diagrams** at multiple levels of detail. It supports TypeScript (stable), Go (stable), Java (beta), and
|
|
3
|
+
ArchGuard analyzes source code to extract architectural insights and generates **Mermaid diagrams** at multiple levels of detail. It supports TypeScript (stable), Go (stable), Java (beta), Python (beta), C++ (beta), and Kotlin/Android (beta) through a plugin system, and exposes query and MCP workflows for architecture inspection.
|
|
4
4
|
|
|
5
5
|
## Screenshots
|
|
6
6
|
|
|
@@ -16,10 +16,11 @@ ArchGuard analyzes source code to extract architectural insights and generates *
|
|
|
16
16
|
## Features
|
|
17
17
|
|
|
18
18
|
- **AI-Native MCP Interface**: Query architecture in natural language from Claude Code or Codex — analyze projects, trace dependencies, find implementers, detect cycles
|
|
19
|
-
- **Multi-Language Support**: TypeScript, Go, Java, Python via plugin system
|
|
19
|
+
- **Multi-Language Support**: TypeScript, Go, Java, Python, C++, Kotlin/Android via plugin system
|
|
20
20
|
- **Multi-Level Diagrams**: Package (high-level), Class (default), Method (low-level)
|
|
21
21
|
- **Go Architecture Atlas**: 4-layer visualization — package graph, capability graph, goroutine topology, flow graph
|
|
22
|
-
- **
|
|
22
|
+
- **Kotlin/Android Support**: Auto-detect Kotlin projects, parse `build.gradle.kts` / `settings.gradle.kts`, and plan multi-module diagrams
|
|
23
|
+
- **Static Test Analysis**: Test coverage mapping, assertion density, orphan detection, and quality issues — no test execution required, including Kotlin/Android projects
|
|
23
24
|
- **Parallel Processing**: High-performance parsing with configurable concurrency
|
|
24
25
|
- **Smart Caching**: File-based caching with SHA-256 hashing for fast repeated runs
|
|
25
26
|
- **Zero External Dependencies**: Local Mermaid rendering using isomorphic-mermaid
|
|
@@ -37,12 +38,91 @@ npm install -g @yalehwang/archguard
|
|
|
37
38
|
|
|
38
39
|
### Using with Claude Code
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
Install ArchGuard as a Claude Code plugin from the npm-source marketplace.
|
|
42
|
+
Claude Code runs `npm install` of the plugin package, which depends on an
|
|
43
|
+
exact `@yalehwang/archguard` version — the full runtime dependency closure
|
|
44
|
+
(ordinary JS dependencies, `web-tree-sitter`, bundled grammar WASM assets,
|
|
45
|
+
platform-selected optional packages) is resolved on your machine, with no
|
|
46
|
+
global `archguard` binary, vendored `node_modules`, or `NODE_PATH` involved:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
claude plugin marketplace add yaleh/archguard
|
|
50
|
+
claude plugin install archguard@archguard
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Restart Claude Code afterwards so the plugin loads. The plugin bundles the
|
|
54
|
+
`archguard` MCP server (launched via `plugin/mcp-launcher.mjs`, which resolves
|
|
55
|
+
the ArchGuard CLI entry from the plugin's own npm dependency tree) plus the
|
|
56
|
+
`feature-developer` and `project-semantics-discovery` skills.
|
|
57
|
+
|
|
58
|
+
Alternatively, register the MCP server directly without the plugin (project
|
|
59
|
+
scope, requires a global `archguard` install):
|
|
41
60
|
|
|
42
61
|
```bash
|
|
43
62
|
claude mcp add --scope project archguard -- archguard mcp
|
|
44
63
|
```
|
|
45
64
|
|
|
65
|
+
For a local checkout, `scripts/install-claude-user-scope.sh` runs the same
|
|
66
|
+
npm-source marketplace flow against your checkout: it adds (or updates) the
|
|
67
|
+
`archguard` marketplace registration, installs (or updates) the
|
|
68
|
+
`archguard@archguard` plugin at user scope, and removes any legacy ArchGuard
|
|
69
|
+
entry that older installers left in the deprecated `~/.claude/mcp.json`. It
|
|
70
|
+
never installs a global `archguard` binary, never writes a registration into
|
|
71
|
+
`~/.claude/mcp.json`, and never installs or builds native Tree-sitter
|
|
72
|
+
packages. The script is idempotent — re-run it to upgrade after pulling a
|
|
73
|
+
new version:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
bash scripts/install-claude-user-scope.sh
|
|
77
|
+
# Register the GitHub marketplace source instead of the local checkout:
|
|
78
|
+
bash scripts/install-claude-user-scope.sh --marketplace-source yaleh/archguard
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Parser runtime selection (auto | native | wasm)
|
|
82
|
+
|
|
83
|
+
A normal install is the **deterministic WASM baseline**: `web-tree-sitter`
|
|
84
|
+
plus the bundled grammar WASM assets are always installed, and the native
|
|
85
|
+
`tree-sitter` runtime/grammar packages are never installed or built by
|
|
86
|
+
ArchGuard itself. This holds for the Claude plugin installer as well:
|
|
87
|
+
`scripts/install-claude-user-scope.sh` never installs, builds, or globally
|
|
88
|
+
mutates native Tree-sitter packages — the plugin closure it registers is the
|
|
89
|
+
WASM baseline. Per language, `ARCHGUARD_PARSER_RUNTIME` selects the
|
|
90
|
+
backend:
|
|
91
|
+
|
|
92
|
+
- `auto` (default) — probe the native `(runtime, grammar)` tuple with a health
|
|
93
|
+
check; use native only when the probe passes, otherwise fall back to WASM
|
|
94
|
+
and record the reason in diagnostics.
|
|
95
|
+
- `native` — require native; fail loudly with an actionable error if the
|
|
96
|
+
probe fails (never silently substitutes WASM).
|
|
97
|
+
- `wasm` — never touch native modules; portable and deterministic.
|
|
98
|
+
|
|
99
|
+
`ARCHGUARD_PARSER_RUNTIME` is the canonical setting. The former
|
|
100
|
+
`ARCHGUARD_PARSER_BACKEND` is a deprecated alias: it applies only when the
|
|
101
|
+
canonical variable is unset, and ArchGuard then prints a one-time stderr
|
|
102
|
+
warning. Every analysis surfaces a one-line effective-runtime summary —
|
|
103
|
+
language → backend chosen → source of choice → fallback reason — in
|
|
104
|
+
`--verbose` mode and always when a fallback occurs; MCP protocol output
|
|
105
|
+
stays clean (diagnostics route to stderr).
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Default (auto): per-language health-checked native-first selection with WASM fallback
|
|
109
|
+
ARCHGUARD_PARSER_RUNTIME=auto archguard analyze -s ./src --lang go
|
|
110
|
+
|
|
111
|
+
# Force the portable baseline (diagnostics, restricted CI)
|
|
112
|
+
ARCHGUARD_PARSER_RUNTIME=wasm archguard analyze -s ./src --lang go
|
|
113
|
+
|
|
114
|
+
# Require the native accelerator; fail if unavailable or ABI-incompatible
|
|
115
|
+
ARCHGUARD_PARSER_RUNTIME=native archguard analyze -s ./src --lang go
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Native acceleration is opt-in and discovered only at runtime: install the
|
|
119
|
+
optional native packages (`tree-sitter` + the per-language grammar packages,
|
|
120
|
+
declared as optional peers) into ArchGuard's own package scope, or point
|
|
121
|
+
`ARCHGUARD_NATIVE_MODULE_ROOT=/path/to/root` at a trusted module root
|
|
122
|
+
containing them. The analyzed project's `node_modules` is never consulted.
|
|
123
|
+
See [Parser Runtime Selection](docs/user-guide/parser-runtime.md) for the
|
|
124
|
+
full policy.
|
|
125
|
+
|
|
46
126
|
Then ask Claude to analyze any project:
|
|
47
127
|
|
|
48
128
|
> Analyze the architecture of `/path/to/my-project` using archguard MCP.
|
|
@@ -77,21 +157,45 @@ Claude will call `archguard_analyze(includeTests: true)`, then sequence through
|
|
|
77
157
|
|
|
78
158
|
### Using with Codex
|
|
79
159
|
|
|
80
|
-
|
|
160
|
+
Codex does not read Claude plugin manifests, so its MCP configuration must
|
|
161
|
+
launch an ArchGuard installation that owns its own runtime dependency closure.
|
|
162
|
+
`scripts/install-codex-user-scope.sh` registers exactly one TOML-safe
|
|
163
|
+
`[mcp_servers.archguard]` table in the Codex user config
|
|
164
|
+
(`~/.codex/config.toml`, or `$CODEX_HOME/config.toml`) that invokes the
|
|
165
|
+
npm-installed `@yalehwang/archguard` CLI — never Claude's versioned plugin
|
|
166
|
+
cache and never the source checkout:
|
|
81
167
|
|
|
82
168
|
```bash
|
|
83
|
-
|
|
169
|
+
# Registers the global npm install (discovered via `npm root -g`):
|
|
170
|
+
bash scripts/install-codex-user-scope.sh
|
|
171
|
+
|
|
172
|
+
# Or point at a specific npm-installed ArchGuard root explicitly:
|
|
173
|
+
bash scripts/install-codex-user-scope.sh --archguard-root "$(npm root -g)"
|
|
84
174
|
```
|
|
85
175
|
|
|
86
|
-
|
|
176
|
+
The installer is idempotent (re-run it to refresh after an upgrade): it updates
|
|
177
|
+
the single archguard table in place, preserves all unrelated Codex
|
|
178
|
+
configuration, and forwards the parser-runtime policy as
|
|
179
|
+
`ARCHGUARD_PARSER_RUNTIME` (`--parser-runtime auto|native|wasm`, default
|
|
180
|
+
`auto`). It writes an entry of this shape:
|
|
87
181
|
|
|
88
182
|
```toml
|
|
89
183
|
[mcp_servers.archguard]
|
|
90
|
-
command = "
|
|
91
|
-
args = ["mcp"]
|
|
184
|
+
command = "node"
|
|
185
|
+
args = ["<npm-install>/@yalehwang/archguard/dist/cli/index.js", "mcp"]
|
|
186
|
+
env = { ARCHGUARD_PARSER_RUNTIME = "auto" }
|
|
187
|
+
startup_timeout_sec = 30
|
|
188
|
+
tool_timeout_sec = 120
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Alternatively, register manually (requires `archguard` on Codex's `PATH`):
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
codex mcp add archguard -- archguard mcp
|
|
92
195
|
```
|
|
93
196
|
|
|
94
|
-
Then prompt Codex in the same way
|
|
197
|
+
Then prompt Codex in the same way and verify in the Codex TUI with `/mcp` (or
|
|
198
|
+
`codex mcp list`). The same MCP tools are available.
|
|
95
199
|
|
|
96
200
|
### Analyzing an External Project
|
|
97
201
|
|
|
@@ -99,7 +203,7 @@ Point archguard at any project path — no configuration file needed:
|
|
|
99
203
|
|
|
100
204
|
> Analyze the architecture of `/home/user/work/my-project` using archguard MCP.
|
|
101
205
|
|
|
102
|
-
Archguard auto-detects the language and project structure, generates diagrams under `<project>/.archguard/`, and builds the query index for follow-up queries.
|
|
206
|
+
Archguard auto-detects the language and project structure, generates diagrams under `<project>/.archguard/`, and builds the query index for follow-up queries. Kotlin/Android projects are detected from `build.gradle.kts`, `settings.gradle.kts`, `.kt`, and `.kts` markers and can be analyzed without forcing `--lang kotlin`.
|
|
103
207
|
|
|
104
208
|
### Standalone CLI
|
|
105
209
|
|
|
@@ -130,7 +234,7 @@ archguard analyze [options]
|
|
|
130
234
|
|
|
131
235
|
- `-s, --sources <paths...>` - Source directories; triggers auto-detection and multi-diagram generation
|
|
132
236
|
- `--diagrams <levels...>` - Filter by level: `package` | `class` | `method` (language-dependent)
|
|
133
|
-
- `--lang <language>` - Language: `typescript` | `go` | `java` | `python` (auto-detected)
|
|
237
|
+
- `--lang <language>` - Language: `typescript` | `go` | `java` | `python` | `cpp` | `kotlin` (auto-detected)
|
|
134
238
|
- `--config <path>` - Config file path (default: `archguard.config.json`)
|
|
135
239
|
|
|
136
240
|
**Output:**
|
|
@@ -162,11 +266,6 @@ archguard analyze [options]
|
|
|
162
266
|
- `--atlas-include-tests` - Include test packages in Atlas
|
|
163
267
|
- `--atlas-protocols <protocols>` - Protocols included in flow graph
|
|
164
268
|
|
|
165
|
-
**Claude CLI:**
|
|
166
|
-
|
|
167
|
-
- `--cli-command <command>` - Claude CLI executable (default: `claude`)
|
|
168
|
-
- `--cli-args <args>` - Additional Claude CLI arguments
|
|
169
|
-
|
|
170
269
|
**Examples:**
|
|
171
270
|
|
|
172
271
|
```bash
|
|
@@ -199,6 +298,9 @@ archguard analyze --include-tests
|
|
|
199
298
|
|
|
200
299
|
# Refresh test report only, skip re-parsing source (faster)
|
|
201
300
|
archguard analyze --tests-only
|
|
301
|
+
|
|
302
|
+
# Kotlin/Android project (explicit language selection is optional)
|
|
303
|
+
archguard analyze -s ./app/src/main/java --lang kotlin
|
|
202
304
|
```
|
|
203
305
|
|
|
204
306
|
### `query`
|
|
@@ -248,10 +350,12 @@ The MCP server exposes the query tools plus `archguard_analyze`, which refreshes
|
|
|
248
350
|
claude mcp add --scope project archguard -- archguard mcp
|
|
249
351
|
```
|
|
250
352
|
|
|
251
|
-
**Codex** —
|
|
353
|
+
**Codex** — register at user scope via the installer (launches the
|
|
354
|
+
npm-installed CLI), or manually via CLI / `~/.codex/config.toml`:
|
|
252
355
|
|
|
253
356
|
```bash
|
|
254
|
-
codex
|
|
357
|
+
bash scripts/install-codex-user-scope.sh # idempotent, TOML-safe
|
|
358
|
+
codex mcp add archguard -- archguard mcp # manual alternative
|
|
255
359
|
```
|
|
256
360
|
|
|
257
361
|
**Available MCP tools:**
|
|
@@ -277,7 +381,17 @@ Test analysis (requires `archguard_analyze(includeTests: true)` first):
|
|
|
277
381
|
| `archguard_detect_test_patterns` | Detect test frameworks and return suggested pattern config — call this first |
|
|
278
382
|
| `archguard_get_test_metrics` | Summary: file counts, entity coverage ratio, assertion density, issue counts |
|
|
279
383
|
| `archguard_get_test_issues` | Per-file issues: `zero_assertion`, `orphan_test`, `assertion_poverty`, `skip_accumulation` |
|
|
280
|
-
| `
|
|
384
|
+
| `archguard_get_entity_coverage` | Per-entity coverage map with confidence scores |
|
|
385
|
+
|
|
386
|
+
Git history analysis:
|
|
387
|
+
|
|
388
|
+
| Tool | Purpose |
|
|
389
|
+
|------|---------|
|
|
390
|
+
| `archguard_analyze_git` | Index git history for change-based queries |
|
|
391
|
+
| `archguard_get_change_context` | Commits and changed files for an entity |
|
|
392
|
+
| `archguard_get_cochange` | Files that frequently change together |
|
|
393
|
+
| `archguard_get_change_risk` | Change risk score based on churn and coupling |
|
|
394
|
+
| `archguard_get_ownership` | Author ownership breakdown per file or entity |
|
|
281
395
|
|
|
282
396
|
See [MCP Usage Guide](docs/user-guide/mcp-usage.md) for setup, tool reference, and usage patterns.
|
|
283
397
|
|
|
@@ -301,12 +415,14 @@ archguard cache path # Show cache directory
|
|
|
301
415
|
|
|
302
416
|
## Language Support
|
|
303
417
|
|
|
304
|
-
| Language
|
|
305
|
-
|
|
306
|
-
| TypeScript
|
|
307
|
-
| Go
|
|
308
|
-
| Java
|
|
309
|
-
| Python
|
|
418
|
+
| Language | Status | Parser | Features |
|
|
419
|
+
|----------------|--------|---------------------------|----------------------------------------------------|
|
|
420
|
+
| TypeScript | Stable | ts-morph (AST) | Classes, interfaces, enums, dependencies, path aliases |
|
|
421
|
+
| Go | Stable | tree-sitter + gopls | Structs, interfaces, goroutines, Architecture Atlas |
|
|
422
|
+
| Java | Beta | tree-sitter | Classes, interfaces, Maven/Gradle deps |
|
|
423
|
+
| Python | Beta | tree-sitter | Classes, functions, pip/Poetry deps |
|
|
424
|
+
| C++ | Beta | tree-sitter | Structs, classes, inheritance, CMake deps |
|
|
425
|
+
| Kotlin/Android | Beta | tree-sitter | Classes, interfaces, top-level functions, `build.gradle.kts` deps, `settings.gradle.kts` multi-module planning, static test analysis |
|
|
310
426
|
|
|
311
427
|
### Go Architecture Atlas
|
|
312
428
|
|
|
@@ -410,8 +526,34 @@ archguard analyze --diagrams class method
|
|
|
410
526
|
| `cache.enabled` | boolean | `true` | Enable file-based caching |
|
|
411
527
|
| `mermaid.theme` | string | `default` | Diagram theme |
|
|
412
528
|
| `mermaid.transparentBackground` | boolean | `true` | Transparent PNG background |
|
|
413
|
-
| `
|
|
414
|
-
|
|
529
|
+
| `projectSemantics` | object | — | Skill-authored project knowledge consumed during analysis |
|
|
530
|
+
|
|
531
|
+
## Skill-Authored Project Semantics
|
|
532
|
+
|
|
533
|
+
ArchGuard does not discover project semantics at runtime. Skills or users write project knowledge, and ArchGuard loads, validates, merges, and consumes it during analysis.
|
|
534
|
+
|
|
535
|
+
Authoritative locations and priority:
|
|
536
|
+
|
|
537
|
+
1. `archguard.config.json.projectSemantics`
|
|
538
|
+
2. `.archguard/project-semantics.json`
|
|
539
|
+
3. built-in defaults
|
|
540
|
+
|
|
541
|
+
The sidecar file uses the same shape as `archguard.config.json.projectSemantics`.
|
|
542
|
+
|
|
543
|
+
```json
|
|
544
|
+
{
|
|
545
|
+
"additionalTestPatterns": ["tests/**/*.ts"],
|
|
546
|
+
"customAssertionPatterns": ["expect[A-Z]\\w+"],
|
|
547
|
+
"architecturalLayers": {
|
|
548
|
+
"src/analysis": "analysis",
|
|
549
|
+
"src/cli": "cli",
|
|
550
|
+
"src/rendering": "rendering"
|
|
551
|
+
},
|
|
552
|
+
"suggestedDepth": 2
|
|
553
|
+
}
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
If either the config `projectSemantics` block or `.archguard/project-semantics.json` is malformed, ArchGuard fails fast during configuration load or analysis startup instead of silently ignoring the knowledge.
|
|
415
557
|
|
|
416
558
|
## Output Formats
|
|
417
559
|
|
|
@@ -515,7 +657,9 @@ archguard/
|
|
|
515
657
|
│ │ ├── golang/ # Stable (tree-sitter + gopls + Atlas)
|
|
516
658
|
│ │ │ └── atlas/ # package, capability, goroutine, flow builders
|
|
517
659
|
│ │ ├── java/ # Beta
|
|
518
|
-
│ │
|
|
660
|
+
│ │ ├── python/ # Beta
|
|
661
|
+
│ │ ├── cpp/ # Beta (tree-sitter + CMake)
|
|
662
|
+
│ │ └── kotlin/ # Beta (tree-sitter + build.gradle.kts)
|
|
519
663
|
│ └── types/ # Core types (config, ArchJSON, extensions)
|
|
520
664
|
├── tests/
|
|
521
665
|
│ ├── unit/ # Unit tests
|
|
@@ -594,11 +738,11 @@ npm run build
|
|
|
594
738
|
# Analyze ArchGuard itself
|
|
595
739
|
node dist/cli/index.js analyze -v
|
|
596
740
|
|
|
597
|
-
# Package-level overview
|
|
598
|
-
node dist/cli/index.js analyze
|
|
741
|
+
# Package-level overview only
|
|
742
|
+
node dist/cli/index.js analyze --diagrams package
|
|
599
743
|
|
|
600
744
|
# Method-level detail for a module
|
|
601
|
-
node dist/cli/index.js analyze -s ./src/cli
|
|
745
|
+
node dist/cli/index.js analyze -s ./src/cli --diagrams method
|
|
602
746
|
```
|
|
603
747
|
|
|
604
748
|
## Technology Stack
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<!-- Generated by scripts/benchmark-parser-backends.mjs (npm run build first). -->
|
|
2
|
+
# Parser backend benchmark (native vs WASM)
|
|
3
|
+
|
|
4
|
+
- date: 2026-07-30
|
|
5
|
+
- node: v26.5.0
|
|
6
|
+
- platform: linux/x64
|
|
7
|
+
- iterations per fixture: 50 (after warm-up)
|
|
8
|
+
|
|
9
|
+
| language | parser-only native (ms) | parser-only wasm (ms) | ratio | pipeline native (ms) | pipeline wasm (ms) | ratio |
|
|
10
|
+
|---|---|---|---|---|---|---|
|
|
11
|
+
| go | 0.235 | 0.731 | 3.11x | 2.998 | 1.378 | 0.46x |
|
|
12
|
+
| java | 0.271 | 0.377 | 1.39x | 2.232 | 0.974 | 0.44x |
|
|
13
|
+
| python | 0.383 | 0.329 | 0.86x | 1.680 | 0.628 | 0.37x |
|
|
14
|
+
| cpp | 0.691 | 2.057 | 2.98x | 3.160 | 1.553 | 0.49x |
|
|
15
|
+
| kotlin | 0.560 | 1.848 | 3.30x | 5.585 | 1.902 | 0.34x |
|
|
16
|
+
| **mean** | 0.428 | 1.069 | **2.33x** | 3.131 | 1.287 | **0.42x** |
|
|
17
|
+
|
|
18
|
+
"pipeline" = plugin.parseCode() (tree-sitter parse + extractor + ArchJSON mapping),
|
|
19
|
+
the parse-dominated portion of an end-to-end ArchGuard analysis.
|
|
20
|
+
|
|
21
|
+
## TASK-40 after: process caches and parse-worker crossover
|
|
22
|
+
|
|
23
|
+
Measured 2026-07-30 on Node v26.5.0, linux/x64, 4 cores. The small/medium
|
|
24
|
+
runs were heavily contended by three concurrent task worktrees (1-minute load
|
|
25
|
+
9.40-9.97); the large run had load 2.47. Ratios, not absolute timings, are the
|
|
26
|
+
decision evidence.
|
|
27
|
+
|
|
28
|
+
| fixture size | iterations | parser-only native (mean ms) | parser-only WASM (mean ms) | ratio | full-analysis native (mean ms) | full-analysis WASM (mean ms) | ratio |
|
|
29
|
+
|---|---:|---:|---:|---:|---:|---:|---:|
|
|
30
|
+
| small (1x) | 20 | 0.677 | 0.589 | **1.09x** | 3.400 | 1.188 | **0.45x** |
|
|
31
|
+
| medium (10x) | 10 | 13.719 | 8.378 | **1.05x** | 38.818 | 14.469 | **0.42x** |
|
|
32
|
+
| large (50x) | 5 | 48.947 | 28.224 | **0.93x** | 157.095 | 54.580 | **0.41x** |
|
|
33
|
+
|
|
34
|
+
The committed worker threshold is **12 files** (`PARSE_WORKER_THRESHOLD`). Below
|
|
35
|
+
that, serial parsing avoids worker startup; above it, synchronous parsing runs
|
|
36
|
+
in a bounded pool (maximum configured concurrency). WASM runtime and grammar
|
|
37
|
+
promises are cached per asset directory for the process lifetime and parser
|
|
38
|
+
sessions are reused within their owning worker/plugin.
|
|
39
|
+
|
|
40
|
+
Decision: no exception to the 2.5x full-analysis ceiling is needed. Both measured
|
|
41
|
+
full-analysis ratios are below 1x on this host (and therefore within the stated
|
|
42
|
+
"never exceeds 2.5x" bound). The earlier uncontended baseline remains above for
|
|
43
|
+
comparison; the contended after run must not be read as an absolute speedup.
|
|
44
|
+
Memory/shutdown evidence is enforced by `wasm-memory.test.ts` and
|
|
45
|
+
`parser-pool.test.ts` (success/error termination and serial/parallel determinism).
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### TASK-40 audit remediation: real end-to-end path
|
|
49
|
+
|
|
50
|
+
Measured after production wiring on Node v26.5.0, linux/x64, 4 cores, 1-minute
|
|
51
|
+
load 2.44. Each end-to-end fixture is a 12-file project and includes file
|
|
52
|
+
discovery, runtime selection, threshold decision, process pool lifecycle,
|
|
53
|
+
analysis merge, and query persistence.
|
|
54
|
+
|
|
55
|
+
| scope | parser-only ratio | parse+extract ratio | end-to-end ratio |
|
|
56
|
+
|---|---:|---:|---:|
|
|
57
|
+
| five-language mean | **1.32x** | **0.54x** | **0.62x** |
|
|
58
|
+
|
|
59
|
+
Per-language end-to-end WASM/native ratios: Go 0.17x, Java 0.66x, Python
|
|
60
|
+
0.97x, C++ 0.64x, Kotlin 0.65x. No result exceeds the 2.5x ceiling. Absolute
|
|
61
|
+
means were 127.9 ms native and 86.5 ms WASM under the recorded load. The
|
|
62
|
+
benchmark uses `runAnalysis()` rather than treating `plugin.parseCode()` as a
|
|
63
|
+
complete analysis; the latter remains separately reported as parse+extract.
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### TASK-40 final audit: verified project-worker dispatch
|
|
67
|
+
|
|
68
|
+
Node v26.5.0, linux/x64, 4 cores; load average 3.30/1.58/1.36. The benchmark
|
|
69
|
+
now fails if `ProcessParseWorkerPools.dispatchCount` remains zero, proving each
|
|
70
|
+
native and WASM sample crossed the 12-file threshold and executed the language
|
|
71
|
+
plugin's complete `parseProject()` inside a real worker. Three measured runs per
|
|
72
|
+
parser-only fixture were used; each end-to-end runtime analyzed one 12-file
|
|
73
|
+
project.
|
|
74
|
+
|
|
75
|
+
| measure | native mean | WASM mean | WASM/native |
|
|
76
|
+
|---|---:|---:|---:|
|
|
77
|
+
| parser-only | 0.713 ms | 0.665 ms | **1.32x** (mean language ratio) |
|
|
78
|
+
| parse+extract | 3.586 ms | 1.476 ms | **0.50x** |
|
|
79
|
+
| end-to-end project | 2141.8 ms | 1858.0 ms | **0.74x** |
|
|
80
|
+
|
|
81
|
+
End-to-end per-language ratios: Go 0.17x, Java 0.77x, Python 0.95x, C++
|
|
82
|
+
1.05x, Kotlin 0.76x. No 2.5x exception is required. The higher absolute times
|
|
83
|
+
relative to the earlier audit run are worker startup and complete project
|
|
84
|
+
plugin initialization now honestly included rather than bypassed.
|
|
85
|
+
|
|
86
|
+
### TASK-40 targeted audit: alternating repeated E2E samples
|
|
87
|
+
|
|
88
|
+
Clean build, Node v26.5.0, linux/x64, 4 cores; load 3.53/2.23/1.74.
|
|
89
|
+
Each backend ran three complete 12-file analyses, alternating order by
|
|
90
|
+
iteration. The benchmark fails closed when worker dispatch is zero and compares
|
|
91
|
+
canonical structural output (version, language, source files, entities,
|
|
92
|
+
relations, modules) across native/WASM and all iterations.
|
|
93
|
+
|
|
94
|
+
| measure | native mean | WASM mean | ratio |
|
|
95
|
+
|---|---:|---:|---:|
|
|
96
|
+
| parser-only | 0.766 ms | 0.688 ms | **1.33x** mean language ratio |
|
|
97
|
+
| parse+extract | 3.818 ms | 1.735 ms | **0.54x** |
|
|
98
|
+
| E2E median of 3/backend | 781.1 ms | 774.1 ms | **1.00x** |
|
|
99
|
+
|
|
100
|
+
E2E ratios: Go 1.01x, Java 1.13x, Python 1.02x, C++ 0.89x, Kotlin
|
|
101
|
+
0.95x. All structural outputs were equivalent and no ratio exceeded 2.5x.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tree-sitter.wasm": "sha256:f38dcc4b43b818f9a0785bc1c6d5611a75ac4cdd428ff3f02757c34ca4e46d7f",
|
|
3
|
+
"tree-sitter-go.wasm": "sha256:9504573f352b20be7f2f1911754d710622aedc15afff16d5ed8fb5645681aee7",
|
|
4
|
+
"tree-sitter-java.wasm": "sha256:4fdeac4ca6ca089f06c6f7e562abcac1733cd465728cc7031ebb73c2019122c4",
|
|
5
|
+
"tree-sitter-python.wasm": "sha256:16108b50df4ee9a30168794252ab55e7c93bfc5765d7fa0aa3e335752c515f47",
|
|
6
|
+
"tree-sitter-cpp.wasm": "sha256:174eb0deb75b2ec7881bcacda9f995648d8e683956e5c2267e69ab6dc503fcbf",
|
|
7
|
+
"tree-sitter-kotlin.wasm": "sha256:7009d69453bc8735e438b2818a633efb21c88f99782769abba60dffedfab73f7"
|
|
8
|
+
}
|
package/{node_modules/tree-sitter/LICENSE → assets/grammars/licenses/tree-sitter-cpp.LICENSE}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014
|
|
3
|
+
Copyright (c) 2014 Max Brunsfeld
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/{node_modules/node-gyp-build/LICENSE → assets/grammars/licenses/tree-sitter-go.LICENSE}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2014 Max Brunsfeld
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
9
9
|
copies of the Software, and to permit persons to whom the Software is
|
|
10
10
|
furnished to do so, subject to the following conditions:
|
|
11
11
|
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Ayman Nadeem
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Amaan Qureshi <amaanq12@gmail.com>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Max Brunsfeld
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018-2024 Max Brunsfeld
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generatedBy": "scripts/fetch-grammar-wasms.mjs",
|
|
3
|
+
"abi": "tree-sitter ABI 14/15 (web-tree-sitter 0.25.x)",
|
|
4
|
+
"sources": [
|
|
5
|
+
{
|
|
6
|
+
"asset": "tree-sitter.wasm",
|
|
7
|
+
"role": "runtime",
|
|
8
|
+
"package": "web-tree-sitter",
|
|
9
|
+
"version": "0.25.10",
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"licenseFile": "licenses/tree-sitter.LICENSE",
|
|
12
|
+
"tarball": "https://registry.npmjs.org/web-tree-sitter/-/web-tree-sitter-0.25.10.tgz",
|
|
13
|
+
"tarballIntegrity": "sha512-Y09sF44/13XvgVKgO2cNDw5rGk6s26MgoZPXLESvMXeefBf7i6/73eFurre0IsTW6E14Y0ArIzhUMmjoc7xyzA=="
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"asset": "tree-sitter-go.wasm",
|
|
17
|
+
"role": "grammar",
|
|
18
|
+
"package": "tree-sitter-go",
|
|
19
|
+
"version": "0.25.0",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"licenseFile": "licenses/tree-sitter-go.LICENSE",
|
|
22
|
+
"tarball": "https://registry.npmjs.org/tree-sitter-go/-/tree-sitter-go-0.25.0.tgz",
|
|
23
|
+
"tarballIntegrity": "sha512-APBc/Dq3xz/e35Xpkhb1blu5UgW+2E3RyGWawZSCNcbGwa7jhSQPS8KsUupuzBla8PCo8+lz9W/JDJjmfRa2tw=="
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"asset": "tree-sitter-java.wasm",
|
|
27
|
+
"role": "grammar",
|
|
28
|
+
"package": "tree-sitter-java",
|
|
29
|
+
"version": "0.23.5",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"licenseFile": "licenses/tree-sitter-java.LICENSE",
|
|
32
|
+
"tarball": "https://registry.npmjs.org/tree-sitter-java/-/tree-sitter-java-0.23.5.tgz",
|
|
33
|
+
"tarballIntegrity": "sha512-Yju7oQ0Xx7GcUT01mUglPP+bYfvqjNCGdxqigTnew9nLGoII42PNVP3bHrYeMxswiCRM0yubWmN5qk+zsg0zMA=="
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"asset": "tree-sitter-python.wasm",
|
|
37
|
+
"role": "grammar",
|
|
38
|
+
"package": "tree-sitter-python",
|
|
39
|
+
"version": "0.25.0",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"licenseFile": "licenses/tree-sitter-python.LICENSE",
|
|
42
|
+
"tarball": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.25.0.tgz",
|
|
43
|
+
"tarballIntegrity": "sha512-eCmJx6zQa35GxaCtQD+wXHOhYqBxEL+bp71W/s3fcDMu06MrtzkVXR437dRrCrbrDbyLuUDJpAgycs7ncngLXw=="
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"asset": "tree-sitter-cpp.wasm",
|
|
47
|
+
"role": "grammar",
|
|
48
|
+
"package": "tree-sitter-cpp",
|
|
49
|
+
"version": "0.23.4",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"licenseFile": "licenses/tree-sitter-cpp.LICENSE",
|
|
52
|
+
"tarball": "https://registry.npmjs.org/tree-sitter-cpp/-/tree-sitter-cpp-0.23.4.tgz",
|
|
53
|
+
"tarballIntegrity": "sha512-qR5qUDyhZ5jJ6V8/umiBxokRbe89bCGmcq/dk94wI4kN86qfdV8k0GHIUEKaqWgcu42wKal5E97LKpLeVW8sKw=="
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"asset": "tree-sitter-kotlin.wasm",
|
|
57
|
+
"role": "grammar",
|
|
58
|
+
"package": "@tree-sitter-grammars/tree-sitter-kotlin",
|
|
59
|
+
"version": "1.1.0",
|
|
60
|
+
"license": "MIT",
|
|
61
|
+
"licenseFile": "licenses/tree-sitter-kotlin.LICENSE",
|
|
62
|
+
"tarball": "https://registry.npmjs.org/@tree-sitter-grammars/tree-sitter-kotlin/-/tree-sitter-kotlin-1.1.0.tgz",
|
|
63
|
+
"tarballIntegrity": "sha512-vlVXaxEE8t2kpJgfZpa8XVvxcnKw9AYtRTgy7KWjsDmAsadk06RxAT80IXOgGQnmM9i/orQn1nD84gPNUHu6DQ=="
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PackageGraph, PackageNode } from '../types/extensions/go-atlas.js';
|
|
2
|
+
export interface EnrichedPackageNode extends PackageNode {
|
|
3
|
+
fanIn: number;
|
|
4
|
+
fanOut: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function computePackageFanMetrics(graph: PackageGraph): {
|
|
7
|
+
fanIn: Map<string, number>;
|
|
8
|
+
fanOut: Map<string, number>;
|
|
9
|
+
};
|
|
10
|
+
export declare function enrichPackageNodes(nodes: PackageNode[], fanIn: Map<string, number>, fanOut: Map<string, number>): EnrichedPackageNode[];
|
|
11
|
+
//# sourceMappingURL=atlas-metrics-analysis.d.ts.map
|