spectra-cli 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +350 -0
- package/dist/adapters/go-adapter.d.ts +38 -0
- package/dist/adapters/go-adapter.d.ts.map +1 -0
- package/dist/adapters/go-adapter.js +58 -0
- package/dist/adapters/go-adapter.js.map +1 -0
- package/dist/adapters/index.d.ts +21 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/index.js +36 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/java-adapter.d.ts +39 -0
- package/dist/adapters/java-adapter.d.ts.map +1 -0
- package/dist/adapters/java-adapter.js +65 -0
- package/dist/adapters/java-adapter.js.map +1 -0
- package/dist/adapters/language-adapter-registry.d.ts +56 -0
- package/dist/adapters/language-adapter-registry.d.ts.map +1 -0
- package/dist/adapters/language-adapter-registry.js +110 -0
- package/dist/adapters/language-adapter-registry.js.map +1 -0
- package/dist/adapters/language-adapter.d.ts +127 -0
- package/dist/adapters/language-adapter.d.ts.map +1 -0
- package/dist/adapters/language-adapter.js +2 -0
- package/dist/adapters/language-adapter.js.map +1 -0
- package/dist/adapters/python-adapter.d.ts +61 -0
- package/dist/adapters/python-adapter.d.ts.map +1 -0
- package/dist/adapters/python-adapter.js +260 -0
- package/dist/adapters/python-adapter.js.map +1 -0
- package/dist/adapters/tree-sitter-comment-extractor.d.ts +15 -0
- package/dist/adapters/tree-sitter-comment-extractor.d.ts.map +1 -0
- package/dist/adapters/tree-sitter-comment-extractor.js +105 -0
- package/dist/adapters/tree-sitter-comment-extractor.js.map +1 -0
- package/dist/adapters/ts-js-adapter.d.ts +38 -0
- package/dist/adapters/ts-js-adapter.d.ts.map +1 -0
- package/dist/adapters/ts-js-adapter.js +164 -0
- package/dist/adapters/ts-js-adapter.js.map +1 -0
- package/dist/auth/auth-detector.d.ts +41 -0
- package/dist/auth/auth-detector.d.ts.map +1 -0
- package/dist/auth/auth-detector.js +324 -0
- package/dist/auth/auth-detector.js.map +1 -0
- package/dist/auth/cli-proxy.d.ts +35 -0
- package/dist/auth/cli-proxy.d.ts.map +1 -0
- package/dist/auth/cli-proxy.js +225 -0
- package/dist/auth/cli-proxy.js.map +1 -0
- package/dist/auth/codex-proxy.d.ts +22 -0
- package/dist/auth/codex-proxy.d.ts.map +1 -0
- package/dist/auth/codex-proxy.js +199 -0
- package/dist/auth/codex-proxy.js.map +1 -0
- package/dist/batch/batch-orchestrator.d.ts +214 -0
- package/dist/batch/batch-orchestrator.d.ts.map +1 -0
- package/dist/batch/batch-orchestrator.js +1552 -0
- package/dist/batch/batch-orchestrator.js.map +1 -0
- package/dist/batch/batch-readme-generator.d.ts +32 -0
- package/dist/batch/batch-readme-generator.d.ts.map +1 -0
- package/dist/batch/batch-readme-generator.js +153 -0
- package/dist/batch/batch-readme-generator.js.map +1 -0
- package/dist/batch/budget-gate.d.ts +107 -0
- package/dist/batch/budget-gate.d.ts.map +1 -0
- package/dist/batch/budget-gate.js +279 -0
- package/dist/batch/budget-gate.js.map +1 -0
- package/dist/batch/checkpoint.d.ts +25 -0
- package/dist/batch/checkpoint.d.ts.map +1 -0
- package/dist/batch/checkpoint.js +68 -0
- package/dist/batch/checkpoint.js.map +1 -0
- package/dist/batch/cost-summary.d.ts +78 -0
- package/dist/batch/cost-summary.d.ts.map +1 -0
- package/dist/batch/cost-summary.js +191 -0
- package/dist/batch/cost-summary.js.map +1 -0
- package/dist/batch/delta-regenerator.d.ts +41 -0
- package/dist/batch/delta-regenerator.d.ts.map +1 -0
- package/dist/batch/delta-regenerator.js +267 -0
- package/dist/batch/delta-regenerator.js.map +1 -0
- package/dist/batch/directory-classifier.d.ts +79 -0
- package/dist/batch/directory-classifier.d.ts.map +1 -0
- package/dist/batch/directory-classifier.js +270 -0
- package/dist/batch/directory-classifier.js.map +1 -0
- package/dist/batch/language-grouper.d.ts +28 -0
- package/dist/batch/language-grouper.d.ts.map +1 -0
- package/dist/batch/language-grouper.js +67 -0
- package/dist/batch/language-grouper.js.map +1 -0
- package/dist/batch/model-override-decision.d.ts +27 -0
- package/dist/batch/model-override-decision.d.ts.map +1 -0
- package/dist/batch/model-override-decision.js +14 -0
- package/dist/batch/model-override-decision.js.map +1 -0
- package/dist/batch/module-grouper.d.ts +59 -0
- package/dist/batch/module-grouper.d.ts.map +1 -0
- package/dist/batch/module-grouper.js +286 -0
- package/dist/batch/module-grouper.js.map +1 -0
- package/dist/batch/progress-reporter.d.ts +68 -0
- package/dist/batch/progress-reporter.d.ts.map +1 -0
- package/dist/batch/progress-reporter.js +273 -0
- package/dist/batch/progress-reporter.js.map +1 -0
- package/dist/batch/readme-graph-section.d.ts +53 -0
- package/dist/batch/readme-graph-section.d.ts.map +1 -0
- package/dist/batch/readme-graph-section.js +183 -0
- package/dist/batch/readme-graph-section.js.map +1 -0
- package/dist/cli/commands/auth-status.d.ts +10 -0
- package/dist/cli/commands/auth-status.d.ts.map +1 -0
- package/dist/cli/commands/auth-status.js +50 -0
- package/dist/cli/commands/auth-status.js.map +1 -0
- package/dist/cli/commands/batch.d.ts +10 -0
- package/dist/cli/commands/batch.d.ts.map +1 -0
- package/dist/cli/commands/batch.js +133 -0
- package/dist/cli/commands/batch.js.map +1 -0
- package/dist/cli/commands/cache.d.ts +13 -0
- package/dist/cli/commands/cache.d.ts.map +1 -0
- package/dist/cli/commands/cache.js +65 -0
- package/dist/cli/commands/cache.js.map +1 -0
- package/dist/cli/commands/community.d.ts +10 -0
- package/dist/cli/commands/community.d.ts.map +1 -0
- package/dist/cli/commands/community.js +92 -0
- package/dist/cli/commands/community.js.map +1 -0
- package/dist/cli/commands/diff.d.ts +10 -0
- package/dist/cli/commands/diff.d.ts.map +1 -0
- package/dist/cli/commands/diff.js +49 -0
- package/dist/cli/commands/diff.js.map +1 -0
- package/dist/cli/commands/direction-audit.d.ts +12 -0
- package/dist/cli/commands/direction-audit.d.ts.map +1 -0
- package/dist/cli/commands/direction-audit.js +458 -0
- package/dist/cli/commands/direction-audit.js.map +1 -0
- package/dist/cli/commands/export.d.ts +22 -0
- package/dist/cli/commands/export.d.ts.map +1 -0
- package/dist/cli/commands/export.js +123 -0
- package/dist/cli/commands/export.js.map +1 -0
- package/dist/cli/commands/generate.d.ts +10 -0
- package/dist/cli/commands/generate.d.ts.map +1 -0
- package/dist/cli/commands/generate.js +50 -0
- package/dist/cli/commands/generate.js.map +1 -0
- package/dist/cli/commands/graph.d.ts +20 -0
- package/dist/cli/commands/graph.d.ts.map +1 -0
- package/dist/cli/commands/graph.js +189 -0
- package/dist/cli/commands/graph.js.map +1 -0
- package/dist/cli/commands/init.d.ts +10 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +33 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/install.d.ts +11 -0
- package/dist/cli/commands/install.d.ts.map +1 -0
- package/dist/cli/commands/install.js +52 -0
- package/dist/cli/commands/install.js.map +1 -0
- package/dist/cli/commands/mcp-server.d.ts +23 -0
- package/dist/cli/commands/mcp-server.d.ts.map +1 -0
- package/dist/cli/commands/mcp-server.js +90 -0
- package/dist/cli/commands/mcp-server.js.map +1 -0
- package/dist/cli/commands/panoramic.d.ts +7 -0
- package/dist/cli/commands/panoramic.d.ts.map +1 -0
- package/dist/cli/commands/panoramic.js +43 -0
- package/dist/cli/commands/panoramic.js.map +1 -0
- package/dist/cli/commands/prepare.d.ts +13 -0
- package/dist/cli/commands/prepare.d.ts.map +1 -0
- package/dist/cli/commands/prepare.js +148 -0
- package/dist/cli/commands/prepare.js.map +1 -0
- package/dist/cli/commands/query.d.ts +13 -0
- package/dist/cli/commands/query.d.ts.map +1 -0
- package/dist/cli/commands/query.js +116 -0
- package/dist/cli/commands/query.js.map +1 -0
- package/dist/cli/commands/watch.d.ts +16 -0
- package/dist/cli/commands/watch.d.ts.map +1 -0
- package/dist/cli/commands/watch.js +188 -0
- package/dist/cli/commands/watch.js.map +1 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +193 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/utils/error-handler.d.ts +41 -0
- package/dist/cli/utils/error-handler.d.ts.map +1 -0
- package/dist/cli/utils/error-handler.js +90 -0
- package/dist/cli/utils/error-handler.js.map +1 -0
- package/dist/cli/utils/parse-args.d.ts +111 -0
- package/dist/cli/utils/parse-args.d.ts.map +1 -0
- package/dist/cli/utils/parse-args.js +756 -0
- package/dist/cli/utils/parse-args.js.map +1 -0
- package/dist/config/project-config.d.ts +49 -0
- package/dist/config/project-config.d.ts.map +1 -0
- package/dist/config/project-config.js +118 -0
- package/dist/config/project-config.js.map +1 -0
- package/dist/config/spec-driver-config.d.ts +32 -0
- package/dist/config/spec-driver-config.d.ts.map +1 -0
- package/dist/config/spec-driver-config.js +91 -0
- package/dist/config/spec-driver-config.js.map +1 -0
- package/dist/core/ast-analyzer.d.ts +49 -0
- package/dist/core/ast-analyzer.d.ts.map +1 -0
- package/dist/core/ast-analyzer.js +439 -0
- package/dist/core/ast-analyzer.js.map +1 -0
- package/dist/core/code-slice-extractor.d.ts +47 -0
- package/dist/core/code-slice-extractor.d.ts.map +1 -0
- package/dist/core/code-slice-extractor.js +227 -0
- package/dist/core/code-slice-extractor.js.map +1 -0
- package/dist/core/context-assembler.d.ts +80 -0
- package/dist/core/context-assembler.d.ts.map +1 -0
- package/dist/core/context-assembler.js +262 -0
- package/dist/core/context-assembler.js.map +1 -0
- package/dist/core/grammar-manager.d.ts +79 -0
- package/dist/core/grammar-manager.d.ts.map +1 -0
- package/dist/core/grammar-manager.js +188 -0
- package/dist/core/grammar-manager.js.map +1 -0
- package/dist/core/llm-client.d.ts +120 -0
- package/dist/core/llm-client.d.ts.map +1 -0
- package/dist/core/llm-client.js +608 -0
- package/dist/core/llm-client.js.map +1 -0
- package/dist/core/model-selection.d.ts +50 -0
- package/dist/core/model-selection.d.ts.map +1 -0
- package/dist/core/model-selection.js +410 -0
- package/dist/core/model-selection.js.map +1 -0
- package/dist/core/query-mappers/base-mapper.d.ts +22 -0
- package/dist/core/query-mappers/base-mapper.d.ts.map +1 -0
- package/dist/core/query-mappers/base-mapper.js +2 -0
- package/dist/core/query-mappers/base-mapper.js.map +1 -0
- package/dist/core/query-mappers/go-mapper.d.ts +46 -0
- package/dist/core/query-mappers/go-mapper.d.ts.map +1 -0
- package/dist/core/query-mappers/go-mapper.js +477 -0
- package/dist/core/query-mappers/go-mapper.js.map +1 -0
- package/dist/core/query-mappers/index.d.ts +6 -0
- package/dist/core/query-mappers/index.d.ts.map +1 -0
- package/dist/core/query-mappers/index.js +5 -0
- package/dist/core/query-mappers/index.js.map +1 -0
- package/dist/core/query-mappers/java-mapper.d.ts +40 -0
- package/dist/core/query-mappers/java-mapper.d.ts.map +1 -0
- package/dist/core/query-mappers/java-mapper.js +405 -0
- package/dist/core/query-mappers/java-mapper.js.map +1 -0
- package/dist/core/query-mappers/python-mapper.d.ts +65 -0
- package/dist/core/query-mappers/python-mapper.d.ts.map +1 -0
- package/dist/core/query-mappers/python-mapper.js +673 -0
- package/dist/core/query-mappers/python-mapper.js.map +1 -0
- package/dist/core/query-mappers/typescript-mapper.d.ts +54 -0
- package/dist/core/query-mappers/typescript-mapper.d.ts.map +1 -0
- package/dist/core/query-mappers/typescript-mapper.js +706 -0
- package/dist/core/query-mappers/typescript-mapper.js.map +1 -0
- package/dist/core/secret-redactor.d.ts +10 -0
- package/dist/core/secret-redactor.d.ts.map +1 -0
- package/dist/core/secret-redactor.js +208 -0
- package/dist/core/secret-redactor.js.map +1 -0
- package/dist/core/single-spec-orchestrator.d.ts +103 -0
- package/dist/core/single-spec-orchestrator.d.ts.map +1 -0
- package/dist/core/single-spec-orchestrator.js +911 -0
- package/dist/core/single-spec-orchestrator.js.map +1 -0
- package/dist/core/token-counter.d.ts +48 -0
- package/dist/core/token-counter.d.ts.map +1 -0
- package/dist/core/token-counter.js +136 -0
- package/dist/core/token-counter.js.map +1 -0
- package/dist/core/tree-sitter-analyzer.d.ts +62 -0
- package/dist/core/tree-sitter-analyzer.d.ts.map +1 -0
- package/dist/core/tree-sitter-analyzer.js +229 -0
- package/dist/core/tree-sitter-analyzer.js.map +1 -0
- package/dist/core/tree-sitter-fallback.d.ts +14 -0
- package/dist/core/tree-sitter-fallback.d.ts.map +1 -0
- package/dist/core/tree-sitter-fallback.js +423 -0
- package/dist/core/tree-sitter-fallback.js.map +1 -0
- package/dist/debt-scanner/aggregator/quality-report-patcher.d.ts +22 -0
- package/dist/debt-scanner/aggregator/quality-report-patcher.d.ts.map +1 -0
- package/dist/debt-scanner/aggregator/quality-report-patcher.js +107 -0
- package/dist/debt-scanner/aggregator/quality-report-patcher.js.map +1 -0
- package/dist/debt-scanner/aggregator/readme-indexer.d.ts +6 -0
- package/dist/debt-scanner/aggregator/readme-indexer.d.ts.map +1 -0
- package/dist/debt-scanner/aggregator/readme-indexer.js +52 -0
- package/dist/debt-scanner/aggregator/readme-indexer.js.map +1 -0
- package/dist/debt-scanner/aggregator/report-builder.d.ts +25 -0
- package/dist/debt-scanner/aggregator/report-builder.d.ts.map +1 -0
- package/dist/debt-scanner/aggregator/report-builder.js +162 -0
- package/dist/debt-scanner/aggregator/report-builder.js.map +1 -0
- package/dist/debt-scanner/comments/debt-classifier.d.ts +28 -0
- package/dist/debt-scanner/comments/debt-classifier.d.ts.map +1 -0
- package/dist/debt-scanner/comments/debt-classifier.js +50 -0
- package/dist/debt-scanner/comments/debt-classifier.js.map +1 -0
- package/dist/debt-scanner/comments/index.d.ts +32 -0
- package/dist/debt-scanner/comments/index.d.ts.map +1 -0
- package/dist/debt-scanner/comments/index.js +103 -0
- package/dist/debt-scanner/comments/index.js.map +1 -0
- package/dist/debt-scanner/comments/symbol-resolver.d.ts +18 -0
- package/dist/debt-scanner/comments/symbol-resolver.d.ts.map +1 -0
- package/dist/debt-scanner/comments/symbol-resolver.js +18 -0
- package/dist/debt-scanner/comments/symbol-resolver.js.map +1 -0
- package/dist/debt-scanner/design-docs/doc-discoverer.d.ts +6 -0
- package/dist/debt-scanner/design-docs/doc-discoverer.d.ts.map +1 -0
- package/dist/debt-scanner/design-docs/doc-discoverer.js +62 -0
- package/dist/debt-scanner/design-docs/doc-discoverer.js.map +1 -0
- package/dist/debt-scanner/design-docs/index.d.ts +28 -0
- package/dist/debt-scanner/design-docs/index.d.ts.map +1 -0
- package/dist/debt-scanner/design-docs/index.js +60 -0
- package/dist/debt-scanner/design-docs/index.js.map +1 -0
- package/dist/debt-scanner/design-docs/llm-topic-inferrer.d.ts +68 -0
- package/dist/debt-scanner/design-docs/llm-topic-inferrer.d.ts.map +1 -0
- package/dist/debt-scanner/design-docs/llm-topic-inferrer.js +151 -0
- package/dist/debt-scanner/design-docs/llm-topic-inferrer.js.map +1 -0
- package/dist/debt-scanner/design-docs/markdown-sections.d.ts +24 -0
- package/dist/debt-scanner/design-docs/markdown-sections.d.ts.map +1 -0
- package/dist/debt-scanner/design-docs/markdown-sections.js +92 -0
- package/dist/debt-scanner/design-docs/markdown-sections.js.map +1 -0
- package/dist/debt-scanner/design-docs/rule-detector.d.ts +18 -0
- package/dist/debt-scanner/design-docs/rule-detector.d.ts.map +1 -0
- package/dist/debt-scanner/design-docs/rule-detector.js +46 -0
- package/dist/debt-scanner/design-docs/rule-detector.js.map +1 -0
- package/dist/debt-scanner/index.d.ts +43 -0
- package/dist/debt-scanner/index.d.ts.map +1 -0
- package/dist/debt-scanner/index.js +177 -0
- package/dist/debt-scanner/index.js.map +1 -0
- package/dist/debt-scanner/llm-clients.d.ts +33 -0
- package/dist/debt-scanner/llm-clients.d.ts.map +1 -0
- package/dist/debt-scanner/llm-clients.js +78 -0
- package/dist/debt-scanner/llm-clients.js.map +1 -0
- package/dist/debt-scanner/types.d.ts +97 -0
- package/dist/debt-scanner/types.d.ts.map +1 -0
- package/dist/debt-scanner/types.js +7 -0
- package/dist/debt-scanner/types.js.map +1 -0
- package/dist/diff/drift-orchestrator.d.ts +25 -0
- package/dist/diff/drift-orchestrator.d.ts.map +1 -0
- package/dist/diff/drift-orchestrator.js +248 -0
- package/dist/diff/drift-orchestrator.js.map +1 -0
- package/dist/diff/noise-filter.d.ts +27 -0
- package/dist/diff/noise-filter.d.ts.map +1 -0
- package/dist/diff/noise-filter.js +129 -0
- package/dist/diff/noise-filter.js.map +1 -0
- package/dist/diff/semantic-diff.d.ts +12 -0
- package/dist/diff/semantic-diff.d.ts.map +1 -0
- package/dist/diff/semantic-diff.js +94 -0
- package/dist/diff/semantic-diff.js.map +1 -0
- package/dist/diff/structural-diff.d.ts +16 -0
- package/dist/diff/structural-diff.d.ts.map +1 -0
- package/dist/diff/structural-diff.js +171 -0
- package/dist/diff/structural-diff.js.map +1 -0
- package/dist/extraction/artifact-classifier.d.ts +19 -0
- package/dist/extraction/artifact-classifier.d.ts.map +1 -0
- package/dist/extraction/artifact-classifier.js +104 -0
- package/dist/extraction/artifact-classifier.js.map +1 -0
- package/dist/extraction/extraction-cache.d.ts +32 -0
- package/dist/extraction/extraction-cache.d.ts.map +1 -0
- package/dist/extraction/extraction-cache.js +117 -0
- package/dist/extraction/extraction-cache.js.map +1 -0
- package/dist/extraction/extraction-pipeline.d.ts +44 -0
- package/dist/extraction/extraction-pipeline.d.ts.map +1 -0
- package/dist/extraction/extraction-pipeline.js +286 -0
- package/dist/extraction/extraction-pipeline.js.map +1 -0
- package/dist/extraction/extraction-types.d.ts +180 -0
- package/dist/extraction/extraction-types.d.ts.map +1 -0
- package/dist/extraction/extraction-types.js +63 -0
- package/dist/extraction/extraction-types.js.map +1 -0
- package/dist/extraction/image-extractor.d.ts +21 -0
- package/dist/extraction/image-extractor.d.ts.map +1 -0
- package/dist/extraction/image-extractor.js +211 -0
- package/dist/extraction/image-extractor.js.map +1 -0
- package/dist/extraction/index.d.ts +8 -0
- package/dist/extraction/index.d.ts.map +1 -0
- package/dist/extraction/index.js +6 -0
- package/dist/extraction/index.js.map +1 -0
- package/dist/extraction/markdown-extractor.d.ts +11 -0
- package/dist/extraction/markdown-extractor.d.ts.map +1 -0
- package/dist/extraction/markdown-extractor.js +212 -0
- package/dist/extraction/markdown-extractor.js.map +1 -0
- package/dist/extraction/openapi-extractor.d.ts +10 -0
- package/dist/extraction/openapi-extractor.d.ts.map +1 -0
- package/dist/extraction/openapi-extractor.js +449 -0
- package/dist/extraction/openapi-extractor.js.map +1 -0
- package/dist/generator/frontmatter.d.ts +58 -0
- package/dist/generator/frontmatter.d.ts.map +1 -0
- package/dist/generator/frontmatter.js +100 -0
- package/dist/generator/frontmatter.js.map +1 -0
- package/dist/generator/index-generator.d.ts +27 -0
- package/dist/generator/index-generator.d.ts.map +1 -0
- package/dist/generator/index-generator.js +129 -0
- package/dist/generator/index-generator.js.map +1 -0
- package/dist/generator/mermaid-class-diagram.d.ts +14 -0
- package/dist/generator/mermaid-class-diagram.d.ts.map +1 -0
- package/dist/generator/mermaid-class-diagram.js +115 -0
- package/dist/generator/mermaid-class-diagram.js.map +1 -0
- package/dist/generator/mermaid-dependency-graph.d.ts +15 -0
- package/dist/generator/mermaid-dependency-graph.d.ts.map +1 -0
- package/dist/generator/mermaid-dependency-graph.js +84 -0
- package/dist/generator/mermaid-dependency-graph.js.map +1 -0
- package/dist/generator/spec-renderer.d.ts +24 -0
- package/dist/generator/spec-renderer.d.ts.map +1 -0
- package/dist/generator/spec-renderer.js +110 -0
- package/dist/generator/spec-renderer.js.map +1 -0
- package/dist/graph/dependency-graph.d.ts +24 -0
- package/dist/graph/dependency-graph.d.ts.map +1 -0
- package/dist/graph/dependency-graph.js +206 -0
- package/dist/graph/dependency-graph.js.map +1 -0
- package/dist/graph/directory-graph.d.ts +16 -0
- package/dist/graph/directory-graph.d.ts.map +1 -0
- package/dist/graph/directory-graph.js +281 -0
- package/dist/graph/directory-graph.js.map +1 -0
- package/dist/graph/mermaid-renderer.d.ts +22 -0
- package/dist/graph/mermaid-renderer.d.ts.map +1 -0
- package/dist/graph/mermaid-renderer.js +133 -0
- package/dist/graph/mermaid-renderer.js.map +1 -0
- package/dist/graph/topological-sort.d.ts +31 -0
- package/dist/graph/topological-sort.d.ts.map +1 -0
- package/dist/graph/topological-sort.js +167 -0
- package/dist/graph/topological-sort.js.map +1 -0
- package/dist/hooks/git-hook-installer.d.ts +37 -0
- package/dist/hooks/git-hook-installer.d.ts.map +1 -0
- package/dist/hooks/git-hook-installer.js +136 -0
- package/dist/hooks/git-hook-installer.js.map +1 -0
- package/dist/hooks/hook-installer.d.ts +39 -0
- package/dist/hooks/hook-installer.d.ts.map +1 -0
- package/dist/hooks/hook-installer.js +164 -0
- package/dist/hooks/hook-installer.js.map +1 -0
- package/dist/installer/skill-installer.d.ts +63 -0
- package/dist/installer/skill-installer.d.ts.map +1 -0
- package/dist/installer/skill-installer.js +203 -0
- package/dist/installer/skill-installer.js.map +1 -0
- package/dist/installer/skill-templates.d.ts +19 -0
- package/dist/installer/skill-templates.d.ts.map +1 -0
- package/dist/installer/skill-templates.js +42 -0
- package/dist/installer/skill-templates.js.map +1 -0
- package/dist/mcp/graph-tools.d.ts +17 -0
- package/dist/mcp/graph-tools.d.ts.map +1 -0
- package/dist/mcp/graph-tools.js +269 -0
- package/dist/mcp/graph-tools.js.map +1 -0
- package/dist/mcp/index.d.ts +10 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +18 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/server.d.ts +10 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +235 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/models/code-skeleton.d.ts +394 -0
- package/dist/models/code-skeleton.d.ts.map +1 -0
- package/dist/models/code-skeleton.js +119 -0
- package/dist/models/code-skeleton.js.map +1 -0
- package/dist/models/dependency-graph.d.ts +172 -0
- package/dist/models/dependency-graph.d.ts.map +1 -0
- package/dist/models/dependency-graph.js +44 -0
- package/dist/models/dependency-graph.js.map +1 -0
- package/dist/models/drift-item.d.ts +104 -0
- package/dist/models/drift-item.d.ts.map +1 -0
- package/dist/models/drift-item.js +38 -0
- package/dist/models/drift-item.js.map +1 -0
- package/dist/models/module-spec.d.ts +1905 -0
- package/dist/models/module-spec.d.ts.map +1 -0
- package/dist/models/module-spec.js +272 -0
- package/dist/models/module-spec.js.map +1 -0
- package/dist/panoramic/abstract-registry.d.ts +87 -0
- package/dist/panoramic/abstract-registry.d.ts.map +1 -0
- package/dist/panoramic/abstract-registry.js +88 -0
- package/dist/panoramic/abstract-registry.js.map +1 -0
- package/dist/panoramic/anchoring/chunker.d.ts +34 -0
- package/dist/panoramic/anchoring/chunker.d.ts.map +1 -0
- package/dist/panoramic/anchoring/chunker.js +274 -0
- package/dist/panoramic/anchoring/chunker.js.map +1 -0
- package/dist/panoramic/anchoring/edge-builder.d.ts +53 -0
- package/dist/panoramic/anchoring/edge-builder.d.ts.map +1 -0
- package/dist/panoramic/anchoring/edge-builder.js +183 -0
- package/dist/panoramic/anchoring/edge-builder.js.map +1 -0
- package/dist/panoramic/anchoring/embedding-provider.d.ts +51 -0
- package/dist/panoramic/anchoring/embedding-provider.d.ts.map +1 -0
- package/dist/panoramic/anchoring/embedding-provider.js +7 -0
- package/dist/panoramic/anchoring/embedding-provider.js.map +1 -0
- package/dist/panoramic/anchoring/index.d.ts +73 -0
- package/dist/panoramic/anchoring/index.d.ts.map +1 -0
- package/dist/panoramic/anchoring/index.js +91 -0
- package/dist/panoramic/anchoring/index.js.map +1 -0
- package/dist/panoramic/anchoring/providers/factory.d.ts +35 -0
- package/dist/panoramic/anchoring/providers/factory.d.ts.map +1 -0
- package/dist/panoramic/anchoring/providers/factory.js +33 -0
- package/dist/panoramic/anchoring/providers/factory.js.map +1 -0
- package/dist/panoramic/anchoring/providers/local-provider.d.ts +48 -0
- package/dist/panoramic/anchoring/providers/local-provider.d.ts.map +1 -0
- package/dist/panoramic/anchoring/providers/local-provider.js +145 -0
- package/dist/panoramic/anchoring/providers/local-provider.js.map +1 -0
- package/dist/panoramic/anchoring/providers/openai-provider.d.ts +45 -0
- package/dist/panoramic/anchoring/providers/openai-provider.d.ts.map +1 -0
- package/dist/panoramic/anchoring/providers/openai-provider.js +78 -0
- package/dist/panoramic/anchoring/providers/openai-provider.js.map +1 -0
- package/dist/panoramic/anchoring/similarity.d.ts +37 -0
- package/dist/panoramic/anchoring/similarity.d.ts.map +1 -0
- package/dist/panoramic/anchoring/similarity.js +75 -0
- package/dist/panoramic/anchoring/similarity.js.map +1 -0
- package/dist/panoramic/api-surface/endpoint-utils.d.ts +15 -0
- package/dist/panoramic/api-surface/endpoint-utils.d.ts.map +1 -0
- package/dist/panoramic/api-surface/endpoint-utils.js +145 -0
- package/dist/panoramic/api-surface/endpoint-utils.js.map +1 -0
- package/dist/panoramic/api-surface/express-extractor.d.ts +3 -0
- package/dist/panoramic/api-surface/express-extractor.d.ts.map +1 -0
- package/dist/panoramic/api-surface/express-extractor.js +288 -0
- package/dist/panoramic/api-surface/express-extractor.js.map +1 -0
- package/dist/panoramic/api-surface/fastapi-extractor.d.ts +6 -0
- package/dist/panoramic/api-surface/fastapi-extractor.d.ts.map +1 -0
- package/dist/panoramic/api-surface/fastapi-extractor.js +287 -0
- package/dist/panoramic/api-surface/fastapi-extractor.js.map +1 -0
- package/dist/panoramic/api-surface/framework-introspection.d.ts +3 -0
- package/dist/panoramic/api-surface/framework-introspection.d.ts.map +1 -0
- package/dist/panoramic/api-surface/framework-introspection.js +189 -0
- package/dist/panoramic/api-surface/framework-introspection.js.map +1 -0
- package/dist/panoramic/api-surface/index.d.ts +13 -0
- package/dist/panoramic/api-surface/index.d.ts.map +1 -0
- package/dist/panoramic/api-surface/index.js +238 -0
- package/dist/panoramic/api-surface/index.js.map +1 -0
- package/dist/panoramic/api-surface/openapi-extractor.d.ts +3 -0
- package/dist/panoramic/api-surface/openapi-extractor.d.ts.map +1 -0
- package/dist/panoramic/api-surface/openapi-extractor.js +247 -0
- package/dist/panoramic/api-surface/openapi-extractor.js.map +1 -0
- package/dist/panoramic/api-surface/types.d.ts +140 -0
- package/dist/panoramic/api-surface/types.d.ts.map +1 -0
- package/dist/panoramic/api-surface/types.js +7 -0
- package/dist/panoramic/api-surface/types.js.map +1 -0
- package/dist/panoramic/api-surface/utils.d.ts +29 -0
- package/dist/panoramic/api-surface/utils.d.ts.map +1 -0
- package/dist/panoramic/api-surface/utils.js +340 -0
- package/dist/panoramic/api-surface/utils.js.map +1 -0
- package/dist/panoramic/batch-project-docs.d.ts +101 -0
- package/dist/panoramic/batch-project-docs.d.ts.map +1 -0
- package/dist/panoramic/batch-project-docs.js +616 -0
- package/dist/panoramic/batch-project-docs.js.map +1 -0
- package/dist/panoramic/builders/architecture-ir-builder.d.ts +19 -0
- package/dist/panoramic/builders/architecture-ir-builder.d.ts.map +1 -0
- package/dist/panoramic/builders/architecture-ir-builder.js +561 -0
- package/dist/panoramic/builders/architecture-ir-builder.js.map +1 -0
- package/dist/panoramic/builders/architecture-ir-mermaid-adapter.d.ts +6 -0
- package/dist/panoramic/builders/architecture-ir-mermaid-adapter.d.ts.map +1 -0
- package/dist/panoramic/builders/architecture-ir-mermaid-adapter.js +98 -0
- package/dist/panoramic/builders/architecture-ir-mermaid-adapter.js.map +1 -0
- package/dist/panoramic/builders/component-view-builder.d.ts +38 -0
- package/dist/panoramic/builders/component-view-builder.d.ts.map +1 -0
- package/dist/panoramic/builders/component-view-builder.js +694 -0
- package/dist/panoramic/builders/component-view-builder.js.map +1 -0
- package/dist/panoramic/builders/doc-graph-builder.d.ts +179 -0
- package/dist/panoramic/builders/doc-graph-builder.d.ts.map +1 -0
- package/dist/panoramic/builders/doc-graph-builder.js +546 -0
- package/dist/panoramic/builders/doc-graph-builder.js.map +1 -0
- package/dist/panoramic/builders/dynamic-scenarios-builder.d.ts +38 -0
- package/dist/panoramic/builders/dynamic-scenarios-builder.d.ts.map +1 -0
- package/dist/panoramic/builders/dynamic-scenarios-builder.js +361 -0
- package/dist/panoramic/builders/dynamic-scenarios-builder.js.map +1 -0
- package/dist/panoramic/cache/cache-key-builder.d.ts +25 -0
- package/dist/panoramic/cache/cache-key-builder.d.ts.map +1 -0
- package/dist/panoramic/cache/cache-key-builder.js +119 -0
- package/dist/panoramic/cache/cache-key-builder.js.map +1 -0
- package/dist/panoramic/cache/cache-manager.d.ts +58 -0
- package/dist/panoramic/cache/cache-manager.d.ts.map +1 -0
- package/dist/panoramic/cache/cache-manager.js +170 -0
- package/dist/panoramic/cache/cache-manager.js.map +1 -0
- package/dist/panoramic/cache/content-hasher.d.ts +47 -0
- package/dist/panoramic/cache/content-hasher.d.ts.map +1 -0
- package/dist/panoramic/cache/content-hasher.js +89 -0
- package/dist/panoramic/cache/content-hasher.js.map +1 -0
- package/dist/panoramic/cache/index.d.ts +10 -0
- package/dist/panoramic/cache/index.d.ts.map +1 -0
- package/dist/panoramic/cache/index.js +13 -0
- package/dist/panoramic/cache/index.js.map +1 -0
- package/dist/panoramic/cache/manifest-manager.d.ts +83 -0
- package/dist/panoramic/cache/manifest-manager.d.ts.map +1 -0
- package/dist/panoramic/cache/manifest-manager.js +119 -0
- package/dist/panoramic/cache/manifest-manager.js.map +1 -0
- package/dist/panoramic/cache/schemas.d.ts +199 -0
- package/dist/panoramic/cache/schemas.d.ts.map +1 -0
- package/dist/panoramic/cache/schemas.js +53 -0
- package/dist/panoramic/cache/schemas.js.map +1 -0
- package/dist/panoramic/cluster-orchestrator.d.ts +278 -0
- package/dist/panoramic/cluster-orchestrator.d.ts.map +1 -0
- package/dist/panoramic/cluster-orchestrator.js +531 -0
- package/dist/panoramic/cluster-orchestrator.js.map +1 -0
- package/dist/panoramic/community/community-detector.d.ts +41 -0
- package/dist/panoramic/community/community-detector.d.ts.map +1 -0
- package/dist/panoramic/community/community-detector.js +190 -0
- package/dist/panoramic/community/community-detector.js.map +1 -0
- package/dist/panoramic/community/god-node-analyzer.d.ts +28 -0
- package/dist/panoramic/community/god-node-analyzer.d.ts.map +1 -0
- package/dist/panoramic/community/god-node-analyzer.js +91 -0
- package/dist/panoramic/community/god-node-analyzer.js.map +1 -0
- package/dist/panoramic/community/graph-report-generator.d.ts +31 -0
- package/dist/panoramic/community/graph-report-generator.d.ts.map +1 -0
- package/dist/panoramic/community/graph-report-generator.js +98 -0
- package/dist/panoramic/community/graph-report-generator.js.map +1 -0
- package/dist/panoramic/community/index.d.ts +31 -0
- package/dist/panoramic/community/index.d.ts.map +1 -0
- package/dist/panoramic/community/index.js +63 -0
- package/dist/panoramic/community/index.js.map +1 -0
- package/dist/panoramic/community/surprising-edges.d.ts +42 -0
- package/dist/panoramic/community/surprising-edges.d.ts.map +1 -0
- package/dist/panoramic/community/surprising-edges.js +154 -0
- package/dist/panoramic/community/surprising-edges.js.map +1 -0
- package/dist/panoramic/cross-reference-index.d.ts +4 -0
- package/dist/panoramic/cross-reference-index.d.ts.map +1 -0
- package/dist/panoramic/cross-reference-index.js +201 -0
- package/dist/panoramic/cross-reference-index.js.map +1 -0
- package/dist/panoramic/exporters/architecture-ir-exporters.d.ts +7 -0
- package/dist/panoramic/exporters/architecture-ir-exporters.d.ts.map +1 -0
- package/dist/panoramic/exporters/architecture-ir-exporters.js +183 -0
- package/dist/panoramic/exporters/architecture-ir-exporters.js.map +1 -0
- package/dist/panoramic/exporters/export-types.d.ts +33 -0
- package/dist/panoramic/exporters/export-types.d.ts.map +1 -0
- package/dist/panoramic/exporters/export-types.js +7 -0
- package/dist/panoramic/exporters/export-types.js.map +1 -0
- package/dist/panoramic/exporters/html-exporter.d.ts +83 -0
- package/dist/panoramic/exporters/html-exporter.d.ts.map +1 -0
- package/dist/panoramic/exporters/html-exporter.js +224 -0
- package/dist/panoramic/exporters/html-exporter.js.map +1 -0
- package/dist/panoramic/exporters/html-template.d.ts +32 -0
- package/dist/panoramic/exporters/html-template.d.ts.map +1 -0
- package/dist/panoramic/exporters/html-template.js +737 -0
- package/dist/panoramic/exporters/html-template.js.map +1 -0
- package/dist/panoramic/exporters/obsidian-exporter.d.ts +67 -0
- package/dist/panoramic/exporters/obsidian-exporter.d.ts.map +1 -0
- package/dist/panoramic/exporters/obsidian-exporter.js +333 -0
- package/dist/panoramic/exporters/obsidian-exporter.js.map +1 -0
- package/dist/panoramic/generator-registry.d.ts +86 -0
- package/dist/panoramic/generator-registry.d.ts.map +1 -0
- package/dist/panoramic/generator-registry.js +194 -0
- package/dist/panoramic/generator-registry.js.map +1 -0
- package/dist/panoramic/generators/architecture-ir-generator.d.ts +36 -0
- package/dist/panoramic/generators/architecture-ir-generator.d.ts.map +1 -0
- package/dist/panoramic/generators/architecture-ir-generator.js +51 -0
- package/dist/panoramic/generators/architecture-ir-generator.js.map +1 -0
- package/dist/panoramic/generators/architecture-overview-generator.d.ts +31 -0
- package/dist/panoramic/generators/architecture-overview-generator.d.ts.map +1 -0
- package/dist/panoramic/generators/architecture-overview-generator.js +454 -0
- package/dist/panoramic/generators/architecture-overview-generator.js.map +1 -0
- package/dist/panoramic/generators/config-reference-generator.d.ts +78 -0
- package/dist/panoramic/generators/config-reference-generator.d.ts.map +1 -0
- package/dist/panoramic/generators/config-reference-generator.js +201 -0
- package/dist/panoramic/generators/config-reference-generator.js.map +1 -0
- package/dist/panoramic/generators/cross-package-analyzer.d.ts +112 -0
- package/dist/panoramic/generators/cross-package-analyzer.d.ts.map +1 -0
- package/dist/panoramic/generators/cross-package-analyzer.js +258 -0
- package/dist/panoramic/generators/cross-package-analyzer.js.map +1 -0
- package/dist/panoramic/generators/data-model-generator.d.ts +528 -0
- package/dist/panoramic/generators/data-model-generator.d.ts.map +1 -0
- package/dist/panoramic/generators/data-model-generator.js +674 -0
- package/dist/panoramic/generators/data-model-generator.js.map +1 -0
- package/dist/panoramic/generators/event-surface-generator.d.ts +52 -0
- package/dist/panoramic/generators/event-surface-generator.d.ts.map +1 -0
- package/dist/panoramic/generators/event-surface-generator.js +634 -0
- package/dist/panoramic/generators/event-surface-generator.js.map +1 -0
- package/dist/panoramic/generators/interface-surface-generator.d.ts +50 -0
- package/dist/panoramic/generators/interface-surface-generator.d.ts.map +1 -0
- package/dist/panoramic/generators/interface-surface-generator.js +393 -0
- package/dist/panoramic/generators/interface-surface-generator.js.map +1 -0
- package/dist/panoramic/generators/mock-readme-generator.d.ts +90 -0
- package/dist/panoramic/generators/mock-readme-generator.d.ts.map +1 -0
- package/dist/panoramic/generators/mock-readme-generator.js +113 -0
- package/dist/panoramic/generators/mock-readme-generator.js.map +1 -0
- package/dist/panoramic/generators/pattern-hints-generator.d.ts +28 -0
- package/dist/panoramic/generators/pattern-hints-generator.d.ts.map +1 -0
- package/dist/panoramic/generators/pattern-hints-generator.js +170 -0
- package/dist/panoramic/generators/pattern-hints-generator.js.map +1 -0
- package/dist/panoramic/generators/runtime-topology-generator.d.ts +77 -0
- package/dist/panoramic/generators/runtime-topology-generator.d.ts.map +1 -0
- package/dist/panoramic/generators/runtime-topology-generator.js +679 -0
- package/dist/panoramic/generators/runtime-topology-generator.js.map +1 -0
- package/dist/panoramic/generators/troubleshooting-generator.d.ts +51 -0
- package/dist/panoramic/generators/troubleshooting-generator.d.ts.map +1 -0
- package/dist/panoramic/generators/troubleshooting-generator.js +464 -0
- package/dist/panoramic/generators/troubleshooting-generator.js.map +1 -0
- package/dist/panoramic/generators/workspace-index-generator.d.ts +148 -0
- package/dist/panoramic/generators/workspace-index-generator.d.ts.map +1 -0
- package/dist/panoramic/generators/workspace-index-generator.js +500 -0
- package/dist/panoramic/generators/workspace-index-generator.js.map +1 -0
- package/dist/panoramic/graph/confidence-mapper.d.ts +39 -0
- package/dist/panoramic/graph/confidence-mapper.d.ts.map +1 -0
- package/dist/panoramic/graph/confidence-mapper.js +55 -0
- package/dist/panoramic/graph/confidence-mapper.js.map +1 -0
- package/dist/panoramic/graph/graph-builder.d.ts +33 -0
- package/dist/panoramic/graph/graph-builder.d.ts.map +1 -0
- package/dist/panoramic/graph/graph-builder.js +382 -0
- package/dist/panoramic/graph/graph-builder.js.map +1 -0
- package/dist/panoramic/graph/graph-paths.d.ts +13 -0
- package/dist/panoramic/graph/graph-paths.d.ts.map +1 -0
- package/dist/panoramic/graph/graph-paths.js +16 -0
- package/dist/panoramic/graph/graph-paths.js.map +1 -0
- package/dist/panoramic/graph/graph-query.d.ts +226 -0
- package/dist/panoramic/graph/graph-query.d.ts.map +1 -0
- package/dist/panoramic/graph/graph-query.js +571 -0
- package/dist/panoramic/graph/graph-query.js.map +1 -0
- package/dist/panoramic/graph/graph-types.d.ts +156 -0
- package/dist/panoramic/graph/graph-types.d.ts.map +1 -0
- package/dist/panoramic/graph/graph-types.js +10 -0
- package/dist/panoramic/graph/graph-types.js.map +1 -0
- package/dist/panoramic/graph/index.d.ts +6 -0
- package/dist/panoramic/graph/index.d.ts.map +1 -0
- package/dist/panoramic/graph/index.js +8 -0
- package/dist/panoramic/graph/index.js.map +1 -0
- package/dist/panoramic/hyperedges/constants.d.ts +16 -0
- package/dist/panoramic/hyperedges/constants.d.ts.map +1 -0
- package/dist/panoramic/hyperedges/constants.js +13 -0
- package/dist/panoramic/hyperedges/constants.js.map +1 -0
- package/dist/panoramic/hyperedges/extractor.d.ts +80 -0
- package/dist/panoramic/hyperedges/extractor.d.ts.map +1 -0
- package/dist/panoramic/hyperedges/extractor.js +133 -0
- package/dist/panoramic/hyperedges/extractor.js.map +1 -0
- package/dist/panoramic/hyperedges/index.d.ts +12 -0
- package/dist/panoramic/hyperedges/index.d.ts.map +1 -0
- package/dist/panoramic/hyperedges/index.js +19 -0
- package/dist/panoramic/hyperedges/index.js.map +1 -0
- package/dist/panoramic/hyperedges/prompt.d.ts +30 -0
- package/dist/panoramic/hyperedges/prompt.d.ts.map +1 -0
- package/dist/panoramic/hyperedges/prompt.js +88 -0
- package/dist/panoramic/hyperedges/prompt.js.map +1 -0
- package/dist/panoramic/hyperedges/schema.d.ts +91 -0
- package/dist/panoramic/hyperedges/schema.d.ts.map +1 -0
- package/dist/panoramic/hyperedges/schema.js +52 -0
- package/dist/panoramic/hyperedges/schema.js.map +1 -0
- package/dist/panoramic/index.d.ts +17 -0
- package/dist/panoramic/index.d.ts.map +1 -0
- package/dist/panoramic/index.js +22 -0
- package/dist/panoramic/index.js.map +1 -0
- package/dist/panoramic/interfaces.d.ts +243 -0
- package/dist/panoramic/interfaces.d.ts.map +1 -0
- package/dist/panoramic/interfaces.js +130 -0
- package/dist/panoramic/interfaces.js.map +1 -0
- package/dist/panoramic/internal.d.ts +67 -0
- package/dist/panoramic/internal.d.ts.map +1 -0
- package/dist/panoramic/internal.js +93 -0
- package/dist/panoramic/internal.js.map +1 -0
- package/dist/panoramic/models/architecture-ir-model.d.ts +92 -0
- package/dist/panoramic/models/architecture-ir-model.d.ts.map +1 -0
- package/dist/panoramic/models/architecture-ir-model.js +14 -0
- package/dist/panoramic/models/architecture-ir-model.js.map +1 -0
- package/dist/panoramic/models/architecture-overview-model.d.ts +77 -0
- package/dist/panoramic/models/architecture-overview-model.d.ts.map +1 -0
- package/dist/panoramic/models/architecture-overview-model.js +31 -0
- package/dist/panoramic/models/architecture-overview-model.js.map +1 -0
- package/dist/panoramic/models/component-view-model.d.ts +127 -0
- package/dist/panoramic/models/component-view-model.d.ts.map +1 -0
- package/dist/panoramic/models/component-view-model.js +65 -0
- package/dist/panoramic/models/component-view-model.js.map +1 -0
- package/dist/panoramic/models/docs-bundle-profiles.d.ts +4 -0
- package/dist/panoramic/models/docs-bundle-profiles.d.ts.map +1 -0
- package/dist/panoramic/models/docs-bundle-profiles.js +82 -0
- package/dist/panoramic/models/docs-bundle-profiles.js.map +1 -0
- package/dist/panoramic/models/docs-bundle-types.d.ts +94 -0
- package/dist/panoramic/models/docs-bundle-types.d.ts.map +1 -0
- package/dist/panoramic/models/docs-bundle-types.js +10 -0
- package/dist/panoramic/models/docs-bundle-types.js.map +1 -0
- package/dist/panoramic/models/docs-quality-model.d.ts +125 -0
- package/dist/panoramic/models/docs-quality-model.d.ts.map +1 -0
- package/dist/panoramic/models/docs-quality-model.js +166 -0
- package/dist/panoramic/models/docs-quality-model.js.map +1 -0
- package/dist/panoramic/models/pattern-hints-model.d.ts +89 -0
- package/dist/panoramic/models/pattern-hints-model.d.ts.map +1 -0
- package/dist/panoramic/models/pattern-hints-model.js +61 -0
- package/dist/panoramic/models/pattern-hints-model.js.map +1 -0
- package/dist/panoramic/models/pattern-knowledge-base.d.ts +31 -0
- package/dist/panoramic/models/pattern-knowledge-base.d.ts.map +1 -0
- package/dist/panoramic/models/pattern-knowledge-base.js +407 -0
- package/dist/panoramic/models/pattern-knowledge-base.js.map +1 -0
- package/dist/panoramic/models/runtime-topology-model.d.ts +145 -0
- package/dist/panoramic/models/runtime-topology-model.d.ts.map +1 -0
- package/dist/panoramic/models/runtime-topology-model.js +300 -0
- package/dist/panoramic/models/runtime-topology-model.js.map +1 -0
- package/dist/panoramic/output-filenames.d.ts +26 -0
- package/dist/panoramic/output-filenames.d.ts.map +1 -0
- package/dist/panoramic/output-filenames.js +48 -0
- package/dist/panoramic/output-filenames.js.map +1 -0
- package/dist/panoramic/parser-registry.d.ts +89 -0
- package/dist/panoramic/parser-registry.d.ts.map +1 -0
- package/dist/panoramic/parser-registry.js +169 -0
- package/dist/panoramic/parser-registry.js.map +1 -0
- package/dist/panoramic/parsers/abstract-artifact-parser.d.ts +48 -0
- package/dist/panoramic/parsers/abstract-artifact-parser.d.ts.map +1 -0
- package/dist/panoramic/parsers/abstract-artifact-parser.js +52 -0
- package/dist/panoramic/parsers/abstract-artifact-parser.js.map +1 -0
- package/dist/panoramic/parsers/abstract-config-parser.d.ts +35 -0
- package/dist/panoramic/parsers/abstract-config-parser.d.ts.map +1 -0
- package/dist/panoramic/parsers/abstract-config-parser.js +34 -0
- package/dist/panoramic/parsers/abstract-config-parser.js.map +1 -0
- package/dist/panoramic/parsers/behavior-yaml-parser.d.ts +34 -0
- package/dist/panoramic/parsers/behavior-yaml-parser.d.ts.map +1 -0
- package/dist/panoramic/parsers/behavior-yaml-parser.js +195 -0
- package/dist/panoramic/parsers/behavior-yaml-parser.js.map +1 -0
- package/dist/panoramic/parsers/comment-tracker.d.ts +37 -0
- package/dist/panoramic/parsers/comment-tracker.d.ts.map +1 -0
- package/dist/panoramic/parsers/comment-tracker.js +50 -0
- package/dist/panoramic/parsers/comment-tracker.js.map +1 -0
- package/dist/panoramic/parsers/dockerfile-parser.d.ts +42 -0
- package/dist/panoramic/parsers/dockerfile-parser.d.ts.map +1 -0
- package/dist/panoramic/parsers/dockerfile-parser.js +128 -0
- package/dist/panoramic/parsers/dockerfile-parser.js.map +1 -0
- package/dist/panoramic/parsers/env-config-parser.d.ts +37 -0
- package/dist/panoramic/parsers/env-config-parser.d.ts.map +1 -0
- package/dist/panoramic/parsers/env-config-parser.js +73 -0
- package/dist/panoramic/parsers/env-config-parser.js.map +1 -0
- package/dist/panoramic/parsers/index.d.ts +25 -0
- package/dist/panoramic/parsers/index.d.ts.map +1 -0
- package/dist/panoramic/parsers/index.js +25 -0
- package/dist/panoramic/parsers/index.js.map +1 -0
- package/dist/panoramic/parsers/skill-md-parser.d.ts +42 -0
- package/dist/panoramic/parsers/skill-md-parser.d.ts.map +1 -0
- package/dist/panoramic/parsers/skill-md-parser.js +105 -0
- package/dist/panoramic/parsers/skill-md-parser.js.map +1 -0
- package/dist/panoramic/parsers/toml-config-parser.d.ts +39 -0
- package/dist/panoramic/parsers/toml-config-parser.d.ts.map +1 -0
- package/dist/panoramic/parsers/toml-config-parser.js +98 -0
- package/dist/panoramic/parsers/toml-config-parser.js.map +1 -0
- package/dist/panoramic/parsers/types.d.ts +314 -0
- package/dist/panoramic/parsers/types.d.ts.map +1 -0
- package/dist/panoramic/parsers/types.js +136 -0
- package/dist/panoramic/parsers/types.js.map +1 -0
- package/dist/panoramic/parsers/yaml-config-parser.d.ts +58 -0
- package/dist/panoramic/parsers/yaml-config-parser.d.ts.map +1 -0
- package/dist/panoramic/parsers/yaml-config-parser.js +356 -0
- package/dist/panoramic/parsers/yaml-config-parser.js.map +1 -0
- package/dist/panoramic/pipelines/adr-decision-pipeline.d.ts +74 -0
- package/dist/panoramic/pipelines/adr-decision-pipeline.d.ts.map +1 -0
- package/dist/panoramic/pipelines/adr-decision-pipeline.js +421 -0
- package/dist/panoramic/pipelines/adr-decision-pipeline.js.map +1 -0
- package/dist/panoramic/pipelines/adr-evidence-verifier.d.ts +30 -0
- package/dist/panoramic/pipelines/adr-evidence-verifier.d.ts.map +1 -0
- package/dist/panoramic/pipelines/adr-evidence-verifier.js +141 -0
- package/dist/panoramic/pipelines/adr-evidence-verifier.js.map +1 -0
- package/dist/panoramic/pipelines/adr-mapreduce.d.ts +316 -0
- package/dist/panoramic/pipelines/adr-mapreduce.d.ts.map +1 -0
- package/dist/panoramic/pipelines/adr-mapreduce.js +331 -0
- package/dist/panoramic/pipelines/adr-mapreduce.js.map +1 -0
- package/dist/panoramic/pipelines/adr-migration.d.ts +26 -0
- package/dist/panoramic/pipelines/adr-migration.d.ts.map +1 -0
- package/dist/panoramic/pipelines/adr-migration.js +203 -0
- package/dist/panoramic/pipelines/adr-migration.js.map +1 -0
- package/dist/panoramic/pipelines/architecture-narrative-mapreduce.d.ts +121 -0
- package/dist/panoramic/pipelines/architecture-narrative-mapreduce.d.ts.map +1 -0
- package/dist/panoramic/pipelines/architecture-narrative-mapreduce.js +412 -0
- package/dist/panoramic/pipelines/architecture-narrative-mapreduce.js.map +1 -0
- package/dist/panoramic/pipelines/architecture-narrative.d.ts +123 -0
- package/dist/panoramic/pipelines/architecture-narrative.d.ts.map +1 -0
- package/dist/panoramic/pipelines/architecture-narrative.js +419 -0
- package/dist/panoramic/pipelines/architecture-narrative.js.map +1 -0
- package/dist/panoramic/pipelines/coverage-auditor.d.ts +95 -0
- package/dist/panoramic/pipelines/coverage-auditor.d.ts.map +1 -0
- package/dist/panoramic/pipelines/coverage-auditor.js +290 -0
- package/dist/panoramic/pipelines/coverage-auditor.js.map +1 -0
- package/dist/panoramic/pipelines/debt-intelligence-pipeline.d.ts +32 -0
- package/dist/panoramic/pipelines/debt-intelligence-pipeline.d.ts.map +1 -0
- package/dist/panoramic/pipelines/debt-intelligence-pipeline.js +108 -0
- package/dist/panoramic/pipelines/debt-intelligence-pipeline.js.map +1 -0
- package/dist/panoramic/pipelines/docs-bundle-manifest-reader.d.ts +26 -0
- package/dist/panoramic/pipelines/docs-bundle-manifest-reader.d.ts.map +1 -0
- package/dist/panoramic/pipelines/docs-bundle-manifest-reader.js +108 -0
- package/dist/panoramic/pipelines/docs-bundle-manifest-reader.js.map +1 -0
- package/dist/panoramic/pipelines/docs-bundle-orchestrator.d.ts +16 -0
- package/dist/panoramic/pipelines/docs-bundle-orchestrator.d.ts.map +1 -0
- package/dist/panoramic/pipelines/docs-bundle-orchestrator.js +588 -0
- package/dist/panoramic/pipelines/docs-bundle-orchestrator.js.map +1 -0
- package/dist/panoramic/pipelines/docs-quality-evaluator.d.ts +55 -0
- package/dist/panoramic/pipelines/docs-quality-evaluator.d.ts.map +1 -0
- package/dist/panoramic/pipelines/docs-quality-evaluator.js +1045 -0
- package/dist/panoramic/pipelines/docs-quality-evaluator.js.map +1 -0
- package/dist/panoramic/pipelines/narrative-provenance-adapter.d.ts +8 -0
- package/dist/panoramic/pipelines/narrative-provenance-adapter.d.ts.map +1 -0
- package/dist/panoramic/pipelines/narrative-provenance-adapter.js +99 -0
- package/dist/panoramic/pipelines/narrative-provenance-adapter.js.map +1 -0
- package/dist/panoramic/pipelines/product-ux-docs.d.ts +123 -0
- package/dist/panoramic/pipelines/product-ux-docs.d.ts.map +1 -0
- package/dist/panoramic/pipelines/product-ux-docs.js +959 -0
- package/dist/panoramic/pipelines/product-ux-docs.js.map +1 -0
- package/dist/panoramic/project-context.d.ts +17 -0
- package/dist/panoramic/project-context.d.ts.map +1 -0
- package/dist/panoramic/project-context.js +289 -0
- package/dist/panoramic/project-context.js.map +1 -0
- package/dist/panoramic/qa/citation.d.ts +21 -0
- package/dist/panoramic/qa/citation.d.ts.map +1 -0
- package/dist/panoramic/qa/citation.js +184 -0
- package/dist/panoramic/qa/citation.js.map +1 -0
- package/dist/panoramic/qa/debt-context.d.ts +33 -0
- package/dist/panoramic/qa/debt-context.d.ts.map +1 -0
- package/dist/panoramic/qa/debt-context.js +82 -0
- package/dist/panoramic/qa/debt-context.js.map +1 -0
- package/dist/panoramic/qa/graph-retriever.d.ts +29 -0
- package/dist/panoramic/qa/graph-retriever.d.ts.map +1 -0
- package/dist/panoramic/qa/graph-retriever.js +65 -0
- package/dist/panoramic/qa/graph-retriever.js.map +1 -0
- package/dist/panoramic/qa/index.d.ts +23 -0
- package/dist/panoramic/qa/index.d.ts.map +1 -0
- package/dist/panoramic/qa/index.js +201 -0
- package/dist/panoramic/qa/index.js.map +1 -0
- package/dist/panoramic/qa/llm-caller.d.ts +35 -0
- package/dist/panoramic/qa/llm-caller.d.ts.map +1 -0
- package/dist/panoramic/qa/llm-caller.js +138 -0
- package/dist/panoramic/qa/llm-caller.js.map +1 -0
- package/dist/panoramic/qa/prompt-builder.d.ts +36 -0
- package/dist/panoramic/qa/prompt-builder.d.ts.map +1 -0
- package/dist/panoramic/qa/prompt-builder.js +143 -0
- package/dist/panoramic/qa/prompt-builder.js.map +1 -0
- package/dist/panoramic/qa/rag-reranker.d.ts +43 -0
- package/dist/panoramic/qa/rag-reranker.d.ts.map +1 -0
- package/dist/panoramic/qa/rag-reranker.js +129 -0
- package/dist/panoramic/qa/rag-reranker.js.map +1 -0
- package/dist/panoramic/qa/types.d.ts +126 -0
- package/dist/panoramic/qa/types.d.ts.map +1 -0
- package/dist/panoramic/qa/types.js +6 -0
- package/dist/panoramic/qa/types.js.map +1 -0
- package/dist/panoramic/query.d.ts +29 -0
- package/dist/panoramic/query.d.ts.map +1 -0
- package/dist/panoramic/query.js +80 -0
- package/dist/panoramic/query.js.map +1 -0
- package/dist/panoramic/stored-module-specs.d.ts +26 -0
- package/dist/panoramic/stored-module-specs.d.ts.map +1 -0
- package/dist/panoramic/stored-module-specs.js +155 -0
- package/dist/panoramic/stored-module-specs.js.map +1 -0
- package/dist/panoramic/utils/html-sanitizer.d.ts +33 -0
- package/dist/panoramic/utils/html-sanitizer.d.ts.map +1 -0
- package/dist/panoramic/utils/html-sanitizer.js +170 -0
- package/dist/panoramic/utils/html-sanitizer.js.map +1 -0
- package/dist/panoramic/utils/llm-enricher.d.ts +74 -0
- package/dist/panoramic/utils/llm-enricher.d.ts.map +1 -0
- package/dist/panoramic/utils/llm-enricher.js +315 -0
- package/dist/panoramic/utils/llm-enricher.js.map +1 -0
- package/dist/panoramic/utils/llm-facade.d.ts +66 -0
- package/dist/panoramic/utils/llm-facade.d.ts.map +1 -0
- package/dist/panoramic/utils/llm-facade.js +136 -0
- package/dist/panoramic/utils/llm-facade.js.map +1 -0
- package/dist/panoramic/utils/logger.d.ts +43 -0
- package/dist/panoramic/utils/logger.d.ts.map +1 -0
- package/dist/panoramic/utils/logger.js +76 -0
- package/dist/panoramic/utils/logger.js.map +1 -0
- package/dist/panoramic/utils/mermaid-helpers.d.ts +19 -0
- package/dist/panoramic/utils/mermaid-helpers.d.ts.map +1 -0
- package/dist/panoramic/utils/mermaid-helpers.js +21 -0
- package/dist/panoramic/utils/mermaid-helpers.js.map +1 -0
- package/dist/panoramic/utils/multi-format-writer.d.ts +43 -0
- package/dist/panoramic/utils/multi-format-writer.d.ts.map +1 -0
- package/dist/panoramic/utils/multi-format-writer.js +73 -0
- package/dist/panoramic/utils/multi-format-writer.js.map +1 -0
- package/dist/panoramic/utils/template-loader.d.ts +15 -0
- package/dist/panoramic/utils/template-loader.d.ts.map +1 -0
- package/dist/panoramic/utils/template-loader.js +65 -0
- package/dist/panoramic/utils/template-loader.js.map +1 -0
- package/dist/panoramic/utils/text-segmenter.d.ts +50 -0
- package/dist/panoramic/utils/text-segmenter.d.ts.map +1 -0
- package/dist/panoramic/utils/text-segmenter.js +151 -0
- package/dist/panoramic/utils/text-segmenter.js.map +1 -0
- package/dist/scripts/postinstall.d.ts +7 -0
- package/dist/scripts/postinstall.d.ts.map +1 -0
- package/dist/scripts/postinstall.js +70 -0
- package/dist/scripts/postinstall.js.map +1 -0
- package/dist/scripts/preuninstall.d.ts +7 -0
- package/dist/scripts/preuninstall.d.ts.map +1 -0
- package/dist/scripts/preuninstall.js +62 -0
- package/dist/scripts/preuninstall.js.map +1 -0
- package/dist/spec-store/index.d.ts +9 -0
- package/dist/spec-store/index.d.ts.map +1 -0
- package/dist/spec-store/index.js +9 -0
- package/dist/spec-store/index.js.map +1 -0
- package/dist/spec-store/spec-identity.d.ts +28 -0
- package/dist/spec-store/spec-identity.d.ts.map +1 -0
- package/dist/spec-store/spec-identity.js +24 -0
- package/dist/spec-store/spec-identity.js.map +1 -0
- package/dist/spec-store/spec-store.d.ts +62 -0
- package/dist/spec-store/spec-store.d.ts.map +1 -0
- package/dist/spec-store/spec-store.js +201 -0
- package/dist/spec-store/spec-store.js.map +1 -0
- package/dist/utils/atomic-write.d.ts +10 -0
- package/dist/utils/atomic-write.d.ts.map +1 -0
- package/dist/utils/atomic-write.js +27 -0
- package/dist/utils/atomic-write.js.map +1 -0
- package/dist/utils/chunk-splitter.d.ts +32 -0
- package/dist/utils/chunk-splitter.d.ts.map +1 -0
- package/dist/utils/chunk-splitter.js +116 -0
- package/dist/utils/chunk-splitter.js.map +1 -0
- package/dist/utils/file-scanner.d.ts +38 -0
- package/dist/utils/file-scanner.d.ts.map +1 -0
- package/dist/utils/file-scanner.js +323 -0
- package/dist/utils/file-scanner.js.map +1 -0
- package/dist/utils/git-blame.d.ts +32 -0
- package/dist/utils/git-blame.d.ts.map +1 -0
- package/dist/utils/git-blame.js +151 -0
- package/dist/utils/git-blame.js.map +1 -0
- package/dist/utils/specify-template-sync.d.ts +16 -0
- package/dist/utils/specify-template-sync.d.ts.map +1 -0
- package/dist/utils/specify-template-sync.js +66 -0
- package/dist/utils/specify-template-sync.js.map +1 -0
- package/dist/watcher/file-watcher.d.ts +77 -0
- package/dist/watcher/file-watcher.d.ts.map +1 -0
- package/dist/watcher/file-watcher.js +233 -0
- package/dist/watcher/file-watcher.js.map +1 -0
- package/dist/watcher/index.d.ts +6 -0
- package/dist/watcher/index.d.ts.map +1 -0
- package/dist/watcher/index.js +5 -0
- package/dist/watcher/index.js.map +1 -0
- package/grammars/manifest.json +28 -0
- package/grammars/tree-sitter-go.wasm +0 -0
- package/grammars/tree-sitter-java.wasm +0 -0
- package/grammars/tree-sitter-javascript.wasm +0 -0
- package/grammars/tree-sitter-python.wasm +0 -0
- package/grammars/tree-sitter-typescript.wasm +0 -0
- package/package.json +84 -0
- package/plugins/spec-driver/.claude-plugin/plugin.json +16 -0
- package/plugins/spec-driver/README.md +401 -0
- package/plugins/spec-driver/agents/analyze.artifact.yaml +10 -0
- package/plugins/spec-driver/agents/analyze.md +144 -0
- package/plugins/spec-driver/agents/checklist.artifact.yaml +8 -0
- package/plugins/spec-driver/agents/checklist.md +84 -0
- package/plugins/spec-driver/agents/clarify.artifact.yaml +6 -0
- package/plugins/spec-driver/agents/clarify.md +104 -0
- package/plugins/spec-driver/agents/constitution.artifact.yaml +9 -0
- package/plugins/spec-driver/agents/constitution.md +100 -0
- package/plugins/spec-driver/agents/implement.artifact.yaml +8 -0
- package/plugins/spec-driver/agents/implement.md +159 -0
- package/plugins/spec-driver/agents/plan.artifact.yaml +12 -0
- package/plugins/spec-driver/agents/plan.md +116 -0
- package/plugins/spec-driver/agents/product-research.artifact.yaml +11 -0
- package/plugins/spec-driver/agents/product-research.md +94 -0
- package/plugins/spec-driver/agents/quality-review.artifact.yaml +11 -0
- package/plugins/spec-driver/agents/quality-review.md +165 -0
- package/plugins/spec-driver/agents/refactor-plan.md +132 -0
- package/plugins/spec-driver/agents/spec-review.artifact.yaml +12 -0
- package/plugins/spec-driver/agents/spec-review.md +111 -0
- package/plugins/spec-driver/agents/specify.artifact.yaml +9 -0
- package/plugins/spec-driver/agents/specify.md +109 -0
- package/plugins/spec-driver/agents/sync.artifact.yaml +19 -0
- package/plugins/spec-driver/agents/sync.md +91 -0
- package/plugins/spec-driver/agents/tasks.artifact.yaml +10 -0
- package/plugins/spec-driver/agents/tasks.md +88 -0
- package/plugins/spec-driver/agents/tech-research.artifact.yaml +12 -0
- package/plugins/spec-driver/agents/tech-research.md +102 -0
- package/plugins/spec-driver/agents/verify.artifact.yaml +11 -0
- package/plugins/spec-driver/agents/verify.md +204 -0
- package/plugins/spec-driver/config/orchestration.yaml +779 -0
- package/plugins/spec-driver/contracts/orchestration-overrides-contract.yaml +124 -0
- package/plugins/spec-driver/contracts/orchestration-schema.mjs +301 -0
- package/plugins/spec-driver/contracts/scan-project-output.md +70 -0
- package/plugins/spec-driver/contracts/wrapper-source-of-truth.yaml +44 -0
- package/plugins/spec-driver/hooks/hooks.json +70 -0
- package/plugins/spec-driver/hooks/post-tool-use-format.sh +28 -0
- package/plugins/spec-driver/hooks/pre-tool-use-guard.sh +42 -0
- package/plugins/spec-driver/hooks/stop-task-check.sh +22 -0
- package/plugins/spec-driver/hooks/worktree-lifecycle.sh +33 -0
- package/plugins/spec-driver/lib/orchestration-output-serializer.mjs +219 -0
- package/plugins/spec-driver/lib/orchestration-resolver.mjs +485 -0
- package/plugins/spec-driver/lib/orchestrator-fallback.mjs +98 -0
- package/plugins/spec-driver/lib/orchestrator.mjs +280 -0
- package/plugins/spec-driver/scorecards/default-governance.yaml +63 -0
- package/plugins/spec-driver/scripts/codex-skills.sh +225 -0
- package/plugins/spec-driver/scripts/experimental/README.md +9 -0
- package/plugins/spec-driver/scripts/generate-adoption-insights.mjs +523 -0
- package/plugins/spec-driver/scripts/generate-product-entity-catalog.mjs +472 -0
- package/plugins/spec-driver/scripts/generate-product-quality-reports.mjs +18 -0
- package/plugins/spec-driver/scripts/generate-product-scorecards.mjs +25 -0
- package/plugins/spec-driver/scripts/generate-project-context-suggestions.mjs +622 -0
- package/plugins/spec-driver/scripts/generate-workflow-registry.mjs +16 -0
- package/plugins/spec-driver/scripts/init-project.sh +328 -0
- package/plugins/spec-driver/scripts/lib/config-schema.mjs +433 -0
- package/plugins/spec-driver/scripts/lib/init-project-output.sh +146 -0
- package/plugins/spec-driver/scripts/lib/product-artifact-patchers.mjs +29 -0
- package/plugins/spec-driver/scripts/lib/product-artifact-paths.mjs +129 -0
- package/plugins/spec-driver/scripts/lib/product-governance-helpers.mjs +48 -0
- package/plugins/spec-driver/scripts/lib/product-quality-core.mjs +531 -0
- package/plugins/spec-driver/scripts/lib/product-scorecard-core.mjs +810 -0
- package/plugins/spec-driver/scripts/lib/project-context-paths.mjs +21 -0
- package/plugins/spec-driver/scripts/lib/project-profile-resolver.mjs +704 -0
- package/plugins/spec-driver/scripts/lib/project-profile-schema.mjs +78 -0
- package/plugins/spec-driver/scripts/lib/script-cli-args.mjs +25 -0
- package/plugins/spec-driver/scripts/lib/script-diagnostics.mjs +29 -0
- package/plugins/spec-driver/scripts/lib/script-report-io.mjs +37 -0
- package/plugins/spec-driver/scripts/lib/simple-yaml.mjs +257 -0
- package/plugins/spec-driver/scripts/lib/sync-conflict-resolver.mjs +128 -0
- package/plugins/spec-driver/scripts/lib/sync-merge-strategy.mjs +388 -0
- package/plugins/spec-driver/scripts/lib/sync-product-mapping.mjs +228 -0
- package/plugins/spec-driver/scripts/lib/sync-timeline-builder.mjs +114 -0
- package/plugins/spec-driver/scripts/lib/sync-validator.mjs +174 -0
- package/plugins/spec-driver/scripts/lib/workflow-registry-core.mjs +281 -0
- package/plugins/spec-driver/scripts/orchestrator-cli.mjs +490 -0
- package/plugins/spec-driver/scripts/orchestrator-cli.sh +36 -0
- package/plugins/spec-driver/scripts/postinstall.sh +101 -0
- package/plugins/spec-driver/scripts/record-workflow-run.mjs +332 -0
- package/plugins/spec-driver/scripts/resolve-project-context.mjs +56 -0
- package/plugins/spec-driver/scripts/scan-project.sh +668 -0
- package/plugins/spec-driver/scripts/sync-merge-engine.mjs +663 -0
- package/plugins/spec-driver/scripts/validate-config.mjs +223 -0
- package/plugins/spec-driver/scripts/validate-orchestration-overrides.mjs +190 -0
- package/plugins/spec-driver/scripts/validate-wrapper-sources.mjs +302 -0
- package/plugins/spec-driver/skills/spec-driver-constitution/SKILL.md +77 -0
- package/plugins/spec-driver/skills/spec-driver-doc/SKILL.md +732 -0
- package/plugins/spec-driver/skills/spec-driver-feature/SKILL.md +336 -0
- package/plugins/spec-driver/skills/spec-driver-fix/SKILL.md +457 -0
- package/plugins/spec-driver/skills/spec-driver-implement/SKILL.md +653 -0
- package/plugins/spec-driver/skills/spec-driver-refactor/SKILL.md +250 -0
- package/plugins/spec-driver/skills/spec-driver-resume/SKILL.md +325 -0
- package/plugins/spec-driver/skills/spec-driver-story/SKILL.md +566 -0
- package/plugins/spec-driver/skills/spec-driver-sync/SKILL.md +300 -0
- package/plugins/spec-driver/templates/code-of-conduct-v2.1.md +85 -0
- package/plugins/spec-driver/templates/licenses/Apache-2.0.txt +201 -0
- package/plugins/spec-driver/templates/licenses/BSD-2-Clause.txt +24 -0
- package/plugins/spec-driver/templates/licenses/BSD-3-Clause.txt +28 -0
- package/plugins/spec-driver/templates/licenses/GPL-3.0.txt +232 -0
- package/plugins/spec-driver/templates/licenses/ISC.txt +15 -0
- package/plugins/spec-driver/templates/licenses/MIT.txt +21 -0
- package/plugins/spec-driver/templates/licenses/MPL-2.0.txt +373 -0
- package/plugins/spec-driver/templates/licenses/Unlicense.txt +24 -0
- package/plugins/spec-driver/templates/orchestration-overrides.example.yaml +81 -0
- package/plugins/spec-driver/templates/product-research-template.md +95 -0
- package/plugins/spec-driver/templates/product-spec-template.md +250 -0
- package/plugins/spec-driver/templates/research-synthesis-template.md +102 -0
- package/plugins/spec-driver/templates/spec-driver.config-template.yaml +244 -0
- package/plugins/spec-driver/templates/specify-base/agent-file-template.md +28 -0
- package/plugins/spec-driver/templates/specify-base/checklist-template.md +40 -0
- package/plugins/spec-driver/templates/specify-base/constitution-template.md +50 -0
- package/plugins/spec-driver/templates/specify-base/plan-template.md +134 -0
- package/plugins/spec-driver/templates/specify-base/product-research-template.md +95 -0
- package/plugins/spec-driver/templates/specify-base/project-context-template.yaml +40 -0
- package/plugins/spec-driver/templates/specify-base/research-synthesis-template.md +102 -0
- package/plugins/spec-driver/templates/specify-base/spec-template.md +115 -0
- package/plugins/spec-driver/templates/specify-base/tasks-template.md +266 -0
- package/plugins/spec-driver/templates/specify-base/tech-research-template.md +111 -0
- package/plugins/spec-driver/templates/specify-base/verification-report-template.md +63 -0
- package/plugins/spec-driver/templates/tech-research-template.md +111 -0
- package/plugins/spec-driver/templates/verification-report-template.md +63 -0
- package/plugins/spec-driver/workflows/golden-paths.yaml +39 -0
- package/plugins/spec-driver/workflows/spec-driver-doc.yaml +24 -0
- package/plugins/spec-driver/workflows/spec-driver-feature.yaml +29 -0
- package/plugins/spec-driver/workflows/spec-driver-fix.yaml +21 -0
- package/plugins/spec-driver/workflows/spec-driver-implement.yaml +23 -0
- package/plugins/spec-driver/workflows/spec-driver-resume.yaml +20 -0
- package/plugins/spec-driver/workflows/spec-driver-story.yaml +24 -0
- package/plugins/spec-driver/workflows/spec-driver-sync.yaml +34 -0
- package/plugins/spectra/.claude-plugin/plugin.json +20 -0
- package/plugins/spectra/.mcp.json +8 -0
- package/plugins/spectra/README.md +128 -0
- package/plugins/spectra/contracts/skill-source-of-truth.yaml +34 -0
- package/plugins/spectra/hooks/hooks.json +15 -0
- package/plugins/spectra/scripts/postinstall.sh +12 -0
- package/plugins/spectra/scripts/sync-skill-mirrors.mjs +148 -0
- package/plugins/spectra/scripts/validate-skill-sources.mjs +280 -0
- package/plugins/spectra/skills/spectra/SKILL.md +214 -0
- package/plugins/spectra/skills/spectra-batch/SKILL.md +232 -0
- package/plugins/spectra/skills/spectra-diff/SKILL.md +99 -0
- package/queries/go.scm +54 -0
- package/queries/java.scm +50 -0
- package/queries/javascript.scm +30 -0
- package/queries/python.scm +35 -0
- package/queries/typescript.scm +50 -0
- package/scripts/lifecycle-runner.cjs +33 -0
- package/templates/adr-draft.hbs +51 -0
- package/templates/adr-index.hbs +25 -0
- package/templates/api-surface.hbs +40 -0
- package/templates/architecture-ir.hbs +49 -0
- package/templates/architecture-narrative.hbs +116 -0
- package/templates/architecture-overview.hbs +103 -0
- package/templates/component-view.hbs +87 -0
- package/templates/config-reference.hbs +22 -0
- package/templates/coverage-report.hbs +84 -0
- package/templates/cross-package-analysis.hbs +43 -0
- package/templates/data-model.hbs +72 -0
- package/templates/delta-report.hbs +53 -0
- package/templates/docs-bundle-index.hbs +41 -0
- package/templates/drift-report.hbs +53 -0
- package/templates/dynamic-scenarios.hbs +46 -0
- package/templates/event-surface.hbs +90 -0
- package/templates/feature-brief-index.hbs +27 -0
- package/templates/feature-brief.hbs +28 -0
- package/templates/index-spec.hbs +57 -0
- package/templates/interface-surface.hbs +87 -0
- package/templates/module-spec.hbs +117 -0
- package/templates/pattern-hints.hbs +85 -0
- package/templates/product-overview.hbs +65 -0
- package/templates/quality-report.hbs +130 -0
- package/templates/runtime-topology.hbs +128 -0
- package/templates/troubleshooting.hbs +86 -0
- package/templates/user-journeys.hbs +44 -0
- package/templates/workspace-index.hbs +26 -0
|
@@ -0,0 +1,694 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component view builder
|
|
3
|
+
*
|
|
4
|
+
* 基于 ArchitectureIR + stored module specs 生成关键组件视图。
|
|
5
|
+
*/
|
|
6
|
+
import * as path from 'node:path';
|
|
7
|
+
import { dedupeComponentEvidence, summarizeComponentView, } from '../models/component-view-model.js';
|
|
8
|
+
import { loadTemplate } from '../utils/template-loader.js';
|
|
9
|
+
import { sanitizeMermaidId } from '../utils/mermaid-helpers.js';
|
|
10
|
+
import { ArchitectureIRGenerator } from '../generators/architecture-ir-generator.js';
|
|
11
|
+
const CLASSLIKE_KINDS = new Set(['class', 'interface', 'type', 'data_class', 'struct', 'protocol']);
|
|
12
|
+
const CORE_METHOD_RE = /(query|connect|request|stream|send|receive|parse|publish|subscribe|load|save|persist|session|interrupt|control|run|execute|process)/i;
|
|
13
|
+
const HIGH_SIGNAL_NAME_RE = /(query|client|transport|parser|session|store|adapter|service|runtime|protocol|message|gateway|manager)/i;
|
|
14
|
+
export function buildComponentView(options) {
|
|
15
|
+
const maxComponents = options.maxComponents ?? 12;
|
|
16
|
+
const warnings = new Set();
|
|
17
|
+
const narrativeNames = collectNarrativeNames(options.architectureNarrative);
|
|
18
|
+
const packageElements = options.architectureIR.elements.filter((element) => element.id.startsWith('package:'));
|
|
19
|
+
const groupElements = options.architectureIR.elements.filter((element) => element.id.startsWith('group:'));
|
|
20
|
+
if (options.storedModules.length === 0) {
|
|
21
|
+
warnings.add('未找到可用的 stored module specs,无法生成细粒度组件视图。');
|
|
22
|
+
}
|
|
23
|
+
const rankedComponents = options.storedModules
|
|
24
|
+
.flatMap((module) => buildRankedComponents(module, packageElements, groupElements, narrativeNames))
|
|
25
|
+
.filter((component, index, components) => components.findIndex((candidate) => candidate.id === component.id) === index)
|
|
26
|
+
.sort((left, right) => {
|
|
27
|
+
const scoreDiff = right.score - left.score;
|
|
28
|
+
return scoreDiff !== 0 ? scoreDiff : left.id.localeCompare(right.id);
|
|
29
|
+
})
|
|
30
|
+
.slice(0, maxComponents);
|
|
31
|
+
if (rankedComponents.length === 0 && options.storedModules.length > 0) {
|
|
32
|
+
warnings.add('未识别到高信号组件,组件视图将以 warnings 形式降级。');
|
|
33
|
+
}
|
|
34
|
+
const components = rankedComponents.map((component) => finalizeComponent(component));
|
|
35
|
+
const relationships = buildComponentRelationships(rankedComponents, options.storedModules, options.architectureIR, options.eventSurface);
|
|
36
|
+
const groups = buildComponentGroups(rankedComponents);
|
|
37
|
+
const mermaidDiagram = buildComponentMermaid(groups, components, relationships);
|
|
38
|
+
const relevantIrWarnings = options.architectureIR.views
|
|
39
|
+
.filter((view) => view.kind === 'component' || view.kind === 'system-context')
|
|
40
|
+
.flatMap((view) => view.warnings);
|
|
41
|
+
for (const warning of relevantIrWarnings) {
|
|
42
|
+
warnings.add(warning);
|
|
43
|
+
}
|
|
44
|
+
for (const relationship of relationships) {
|
|
45
|
+
if (relationship.confidence === 'low') {
|
|
46
|
+
warnings.add(`低置信组件关系: ${relationship.label}`);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const summary = buildSummaryLines(components, relationships);
|
|
50
|
+
const model = {
|
|
51
|
+
projectName: options.architectureIR.projectName,
|
|
52
|
+
generatedAt: new Date().toISOString(),
|
|
53
|
+
summary,
|
|
54
|
+
groups,
|
|
55
|
+
components,
|
|
56
|
+
relationships,
|
|
57
|
+
mermaidDiagram,
|
|
58
|
+
warnings: [...warnings].sort((a, b) => a.localeCompare(b)),
|
|
59
|
+
stats: summarizeComponentView({ components, relationships }),
|
|
60
|
+
};
|
|
61
|
+
return {
|
|
62
|
+
title: `组件视图: ${options.architectureIR.projectName}`,
|
|
63
|
+
generatedAt: model.generatedAt,
|
|
64
|
+
model,
|
|
65
|
+
warnings: model.warnings,
|
|
66
|
+
mermaidDiagram,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export function renderComponentView(output) {
|
|
70
|
+
const template = loadTemplate('component-view.hbs', import.meta.url);
|
|
71
|
+
return template(output);
|
|
72
|
+
}
|
|
73
|
+
function buildRankedComponents(module, packageElements, groupElements, narrativeNames) {
|
|
74
|
+
const exports = module.baselineSkeleton?.exports ?? [];
|
|
75
|
+
const rankedCandidates = [];
|
|
76
|
+
const moduleRole = classifyModuleRole(module.sourceTarget);
|
|
77
|
+
const packageMatch = findMatchingPackage(module, packageElements);
|
|
78
|
+
const groupMatch = findMatchingGroup(packageMatch, groupElements);
|
|
79
|
+
const subsystem = inferSubsystem(module, packageMatch, groupMatch);
|
|
80
|
+
for (const symbol of exports) {
|
|
81
|
+
const category = classifyComponentCategory(symbol.name, module.sourceTarget);
|
|
82
|
+
const score = scoreExportSymbol(symbol, category, moduleRole, narrativeNames);
|
|
83
|
+
const shouldKeep = CLASSLIKE_KINDS.has(symbol.kind) || score >= 7;
|
|
84
|
+
if (!shouldKeep || isLowSignalSymbol(symbol.name, moduleRole)) {
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
rankedCandidates.push({
|
|
88
|
+
id: sanitizeComponentId(module.sourceTarget, symbol.name),
|
|
89
|
+
name: symbol.name,
|
|
90
|
+
category,
|
|
91
|
+
subsystem,
|
|
92
|
+
summary: summarizeComponentSummary(module, symbol),
|
|
93
|
+
responsibilities: dedupeStrings([
|
|
94
|
+
module.intentSummary,
|
|
95
|
+
module.businessSummary,
|
|
96
|
+
symbol.jsDoc ?? undefined,
|
|
97
|
+
]),
|
|
98
|
+
relatedFiles: module.relatedFiles,
|
|
99
|
+
keyMethods: collectKeyMethods(symbol, module),
|
|
100
|
+
upstreamIds: [],
|
|
101
|
+
downstreamIds: [],
|
|
102
|
+
confidence: deriveConfidence(score, module.confidence),
|
|
103
|
+
inferred: module.confidence === 'low',
|
|
104
|
+
evidence: dedupeComponentEvidence([
|
|
105
|
+
createModuleEvidence(module),
|
|
106
|
+
createSkeletonEvidence(module, symbol.name, symbol.signature, module.confidence === 'low'),
|
|
107
|
+
]),
|
|
108
|
+
score,
|
|
109
|
+
sourceTarget: module.sourceTarget,
|
|
110
|
+
packageId: packageMatch?.id,
|
|
111
|
+
groupId: groupMatch?.id,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
if (rankedCandidates.length === 0 && moduleRole !== 'validation') {
|
|
115
|
+
rankedCandidates.push(createFallbackModuleComponent(module, subsystem, packageMatch?.id, groupMatch?.id));
|
|
116
|
+
}
|
|
117
|
+
const primaryCandidate = rankedCandidates[0];
|
|
118
|
+
if (primaryCandidate) {
|
|
119
|
+
attachTopLevelFunctionMethods(primaryCandidate, exports, module);
|
|
120
|
+
}
|
|
121
|
+
return rankedCandidates
|
|
122
|
+
.sort((left, right) => {
|
|
123
|
+
const scoreDiff = right.score - left.score;
|
|
124
|
+
return scoreDiff !== 0 ? scoreDiff : left.name.localeCompare(right.name);
|
|
125
|
+
})
|
|
126
|
+
.slice(0, moduleRole === 'core' ? 2 : 1);
|
|
127
|
+
}
|
|
128
|
+
function finalizeComponent(component) {
|
|
129
|
+
return {
|
|
130
|
+
id: component.id,
|
|
131
|
+
name: component.name,
|
|
132
|
+
category: component.category,
|
|
133
|
+
subsystem: component.subsystem,
|
|
134
|
+
summary: component.summary,
|
|
135
|
+
responsibilities: component.responsibilities,
|
|
136
|
+
relatedFiles: component.relatedFiles,
|
|
137
|
+
keyMethods: component.keyMethods,
|
|
138
|
+
upstreamIds: component.upstreamIds,
|
|
139
|
+
downstreamIds: component.downstreamIds,
|
|
140
|
+
confidence: component.confidence,
|
|
141
|
+
inferred: component.inferred,
|
|
142
|
+
evidence: component.evidence,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function buildComponentRelationships(rankedComponents, storedModules, architectureIR, eventSurface) {
|
|
146
|
+
const relationships = new Map();
|
|
147
|
+
const primaryByModule = new Map();
|
|
148
|
+
for (const component of rankedComponents) {
|
|
149
|
+
if (!primaryByModule.has(component.sourceTarget)) {
|
|
150
|
+
primaryByModule.set(component.sourceTarget, component);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
const componentById = new Map(rankedComponents.map((component) => [component.id, component]));
|
|
154
|
+
for (const module of storedModules) {
|
|
155
|
+
const sourceComponent = primaryByModule.get(module.sourceTarget);
|
|
156
|
+
if (!sourceComponent) {
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
for (const targetModule of resolveImportedModules(module, storedModules)) {
|
|
160
|
+
const targetComponent = primaryByModule.get(targetModule.sourceTarget);
|
|
161
|
+
if (!targetComponent || targetComponent.id === sourceComponent.id) {
|
|
162
|
+
continue;
|
|
163
|
+
}
|
|
164
|
+
upsertRelationship(relationships, {
|
|
165
|
+
fromId: sourceComponent.id,
|
|
166
|
+
toId: targetComponent.id,
|
|
167
|
+
kind: 'calls',
|
|
168
|
+
label: `${sourceComponent.name} imports ${targetComponent.name}`,
|
|
169
|
+
confidence: 'medium',
|
|
170
|
+
evidence: [createModuleEvidence(module)],
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
for (const relationship of architectureIR.relationships) {
|
|
175
|
+
if (relationship.kind !== 'depends-on') {
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
const mapped = mapIrRelationshipToComponents(relationship, rankedComponents);
|
|
179
|
+
if (!mapped) {
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
upsertRelationship(relationships, mapped);
|
|
183
|
+
}
|
|
184
|
+
const queryComponent = findTopComponent(rankedComponents, ['query', 'client', 'service', 'module']);
|
|
185
|
+
const transportComponent = findTopComponent(rankedComponents, ['transport']);
|
|
186
|
+
const parserComponent = findTopComponent(rankedComponents, ['parser']);
|
|
187
|
+
const sessionComponent = findTopComponent(rankedComponents, ['session', 'store']);
|
|
188
|
+
if (queryComponent && transportComponent && queryComponent.id !== transportComponent.id) {
|
|
189
|
+
upsertRelationship(relationships, {
|
|
190
|
+
fromId: queryComponent.id,
|
|
191
|
+
toId: transportComponent.id,
|
|
192
|
+
kind: 'uses-transport',
|
|
193
|
+
label: `${queryComponent.name} delegates to ${transportComponent.name}`,
|
|
194
|
+
confidence: 'high',
|
|
195
|
+
evidence: mergeEvidence(queryComponent.evidence, transportComponent.evidence),
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
if (transportComponent && parserComponent && transportComponent.id !== parserComponent.id) {
|
|
199
|
+
upsertRelationship(relationships, {
|
|
200
|
+
fromId: transportComponent.id,
|
|
201
|
+
toId: parserComponent.id,
|
|
202
|
+
kind: 'parses',
|
|
203
|
+
label: `${transportComponent.name} hands off to ${parserComponent.name}`,
|
|
204
|
+
confidence: 'high',
|
|
205
|
+
evidence: mergeEvidence(transportComponent.evidence, parserComponent.evidence),
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
else if (queryComponent && parserComponent && queryComponent.id !== parserComponent.id) {
|
|
209
|
+
upsertRelationship(relationships, {
|
|
210
|
+
fromId: queryComponent.id,
|
|
211
|
+
toId: parserComponent.id,
|
|
212
|
+
kind: 'parses',
|
|
213
|
+
label: `${queryComponent.name} relies on ${parserComponent.name}`,
|
|
214
|
+
confidence: 'medium',
|
|
215
|
+
evidence: mergeEvidence(queryComponent.evidence, parserComponent.evidence),
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
if (queryComponent && sessionComponent && queryComponent.id !== sessionComponent.id) {
|
|
219
|
+
upsertRelationship(relationships, {
|
|
220
|
+
fromId: queryComponent.id,
|
|
221
|
+
toId: sessionComponent.id,
|
|
222
|
+
kind: 'manages-session',
|
|
223
|
+
label: `${queryComponent.name} updates ${sessionComponent.name}`,
|
|
224
|
+
confidence: 'medium',
|
|
225
|
+
evidence: mergeEvidence(queryComponent.evidence, sessionComponent.evidence),
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
if (eventSurface) {
|
|
229
|
+
for (const channel of eventSurface.channels) {
|
|
230
|
+
const publisher = channel.publishers[0];
|
|
231
|
+
const subscriber = channel.subscribers[0];
|
|
232
|
+
if (!publisher || !subscriber) {
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
235
|
+
const publisherComponent = findComponentByEvidence(rankedComponents, publisher.symbolName, publisher.sourceFile);
|
|
236
|
+
const subscriberComponent = findComponentByEvidence(rankedComponents, subscriber.symbolName, subscriber.sourceFile);
|
|
237
|
+
if (!publisherComponent || !subscriberComponent || publisherComponent.id === subscriberComponent.id) {
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
upsertRelationship(relationships, {
|
|
241
|
+
fromId: publisherComponent.id,
|
|
242
|
+
toId: subscriberComponent.id,
|
|
243
|
+
kind: 'publishes',
|
|
244
|
+
label: `${publisherComponent.name} emits ${channel.channelName}`,
|
|
245
|
+
confidence: 'medium',
|
|
246
|
+
evidence: [{
|
|
247
|
+
sourceType: 'event-surface',
|
|
248
|
+
ref: channel.channelName,
|
|
249
|
+
note: channel.kind,
|
|
250
|
+
}],
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
const finalized = [...relationships.values()]
|
|
255
|
+
.filter((relationship) => relationship.fromId !== relationship.toId)
|
|
256
|
+
.sort((left, right) => `${left.fromId}|${left.kind}|${left.toId}`.localeCompare(`${right.fromId}|${right.kind}|${right.toId}`));
|
|
257
|
+
for (const relationship of finalized) {
|
|
258
|
+
componentById.get(relationship.fromId)?.downstreamIds.push(relationship.toId);
|
|
259
|
+
componentById.get(relationship.toId)?.upstreamIds.push(relationship.fromId);
|
|
260
|
+
}
|
|
261
|
+
for (const component of componentById.values()) {
|
|
262
|
+
component.upstreamIds = dedupeStrings(component.upstreamIds);
|
|
263
|
+
component.downstreamIds = dedupeStrings(component.downstreamIds);
|
|
264
|
+
}
|
|
265
|
+
return finalized;
|
|
266
|
+
}
|
|
267
|
+
function buildComponentGroups(components) {
|
|
268
|
+
const groups = new Map();
|
|
269
|
+
for (const component of components) {
|
|
270
|
+
const id = sanitizeMermaidId(`group_${component.subsystem}`);
|
|
271
|
+
if (!groups.has(id)) {
|
|
272
|
+
groups.set(id, {
|
|
273
|
+
id,
|
|
274
|
+
name: component.subsystem,
|
|
275
|
+
componentIds: [],
|
|
276
|
+
summary: `${component.subsystem} 子系统`,
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
groups.get(id).componentIds.push(component.id);
|
|
280
|
+
}
|
|
281
|
+
return [...groups.values()]
|
|
282
|
+
.map((group) => ({
|
|
283
|
+
...group,
|
|
284
|
+
componentIds: dedupeStrings(group.componentIds),
|
|
285
|
+
}))
|
|
286
|
+
.sort((left, right) => left.name.localeCompare(right.name));
|
|
287
|
+
}
|
|
288
|
+
function buildComponentMermaid(groups, components, relationships) {
|
|
289
|
+
if (components.length === 0) {
|
|
290
|
+
return undefined;
|
|
291
|
+
}
|
|
292
|
+
const lines = ['flowchart LR'];
|
|
293
|
+
const componentById = new Map(components.map((component) => [component.id, component]));
|
|
294
|
+
for (const group of groups) {
|
|
295
|
+
lines.push(` subgraph ${sanitizeMermaidId(group.id)}["${escapeMermaidLabel(group.name)}"]`);
|
|
296
|
+
for (const componentId of group.componentIds) {
|
|
297
|
+
const component = componentById.get(componentId);
|
|
298
|
+
if (!component) {
|
|
299
|
+
continue;
|
|
300
|
+
}
|
|
301
|
+
const nodeId = sanitizeMermaidId(component.id);
|
|
302
|
+
lines.push(` ${nodeId}["${escapeMermaidLabel(`${component.name}\\n${component.category}`)}"]`);
|
|
303
|
+
}
|
|
304
|
+
lines.push(' end');
|
|
305
|
+
}
|
|
306
|
+
for (const relationship of relationships) {
|
|
307
|
+
const fromId = sanitizeMermaidId(relationship.fromId);
|
|
308
|
+
const toId = sanitizeMermaidId(relationship.toId);
|
|
309
|
+
lines.push(` ${fromId} -->|${escapeMermaidLabel(relationship.kind)}| ${toId}`);
|
|
310
|
+
}
|
|
311
|
+
return lines.join('\n');
|
|
312
|
+
}
|
|
313
|
+
function buildSummaryLines(components, relationships) {
|
|
314
|
+
const lines = [];
|
|
315
|
+
if (components.length > 0) {
|
|
316
|
+
lines.push(`识别到 ${components.length} 个关键组件,优先聚焦 ${components.slice(0, 4).map((component) => `\`${component.name}\``).join('、')}。`);
|
|
317
|
+
}
|
|
318
|
+
else {
|
|
319
|
+
lines.push('当前批次未识别到可稳定命名的关键组件。');
|
|
320
|
+
}
|
|
321
|
+
const transports = components.filter((component) => component.category === 'transport');
|
|
322
|
+
const parsers = components.filter((component) => component.category === 'parser');
|
|
323
|
+
const sessions = components.filter((component) => component.category === 'session' || component.category === 'store');
|
|
324
|
+
if (transports.length > 0 || parsers.length > 0 || sessions.length > 0) {
|
|
325
|
+
lines.push(`检测到 transport/parser/session 边界:transport=${transports.length},parser=${parsers.length},session/store=${sessions.length}。`);
|
|
326
|
+
}
|
|
327
|
+
if (relationships.length > 0) {
|
|
328
|
+
lines.push(`组件关系共 ${relationships.length} 条,包含 imports、transport hand-off 或 session 管理等关键连接。`);
|
|
329
|
+
}
|
|
330
|
+
return lines;
|
|
331
|
+
}
|
|
332
|
+
function collectNarrativeNames(narrative) {
|
|
333
|
+
const names = new Set();
|
|
334
|
+
if (!narrative) {
|
|
335
|
+
return names;
|
|
336
|
+
}
|
|
337
|
+
for (const symbol of narrative.keySymbols) {
|
|
338
|
+
names.add(symbol.name);
|
|
339
|
+
}
|
|
340
|
+
for (const method of narrative.keyMethods) {
|
|
341
|
+
names.add(method.name);
|
|
342
|
+
}
|
|
343
|
+
for (const module of narrative.keyModules) {
|
|
344
|
+
names.add(module.displayName);
|
|
345
|
+
}
|
|
346
|
+
return names;
|
|
347
|
+
}
|
|
348
|
+
function scoreExportSymbol(symbol, category, moduleRole, narrativeNames) {
|
|
349
|
+
let score = 0;
|
|
350
|
+
if (CLASSLIKE_KINDS.has(symbol.kind))
|
|
351
|
+
score += 6;
|
|
352
|
+
if (HIGH_SIGNAL_NAME_RE.test(symbol.name))
|
|
353
|
+
score += 6;
|
|
354
|
+
if (category !== 'module')
|
|
355
|
+
score += 4;
|
|
356
|
+
if ((symbol.members ?? []).some((member) => CORE_METHOD_RE.test(member.name)))
|
|
357
|
+
score += 3;
|
|
358
|
+
if (CORE_METHOD_RE.test(symbol.name))
|
|
359
|
+
score += 3;
|
|
360
|
+
if (narrativeNames.has(symbol.name))
|
|
361
|
+
score += 3;
|
|
362
|
+
if (moduleRole === 'core')
|
|
363
|
+
score += 3;
|
|
364
|
+
if (moduleRole === 'support')
|
|
365
|
+
score -= 1;
|
|
366
|
+
if (moduleRole === 'validation')
|
|
367
|
+
score -= 6;
|
|
368
|
+
return score;
|
|
369
|
+
}
|
|
370
|
+
function deriveConfidence(score, moduleConfidence) {
|
|
371
|
+
if (moduleConfidence === 'low') {
|
|
372
|
+
return score >= 12 ? 'medium' : 'low';
|
|
373
|
+
}
|
|
374
|
+
if (score >= 14) {
|
|
375
|
+
return 'high';
|
|
376
|
+
}
|
|
377
|
+
if (score >= 8) {
|
|
378
|
+
return 'medium';
|
|
379
|
+
}
|
|
380
|
+
return 'low';
|
|
381
|
+
}
|
|
382
|
+
function collectKeyMethods(symbol, module) {
|
|
383
|
+
const methods = [];
|
|
384
|
+
for (const member of symbol.members ?? []) {
|
|
385
|
+
if (isLowSignalMethod(member.name, module.sourceTarget)) {
|
|
386
|
+
continue;
|
|
387
|
+
}
|
|
388
|
+
methods.push({
|
|
389
|
+
ownerName: symbol.name,
|
|
390
|
+
name: member.name,
|
|
391
|
+
kind: classifyMethodKind(member.name),
|
|
392
|
+
signature: member.signature,
|
|
393
|
+
evidence: [createSkeletonEvidence(module, `${symbol.name}.${member.name}`, member.signature, module.confidence === 'low')],
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
return methods
|
|
397
|
+
.sort((left, right) => left.name.localeCompare(right.name))
|
|
398
|
+
.slice(0, 6);
|
|
399
|
+
}
|
|
400
|
+
function attachTopLevelFunctionMethods(component, exports, module) {
|
|
401
|
+
const methods = exports
|
|
402
|
+
.filter((symbol) => symbol.kind === 'function' && CORE_METHOD_RE.test(symbol.name))
|
|
403
|
+
.map((symbol) => ({
|
|
404
|
+
ownerName: undefined,
|
|
405
|
+
name: symbol.name,
|
|
406
|
+
kind: classifyMethodKind(symbol.name),
|
|
407
|
+
signature: symbol.signature,
|
|
408
|
+
evidence: [createSkeletonEvidence(module, symbol.name, symbol.signature, module.confidence === 'low')],
|
|
409
|
+
}));
|
|
410
|
+
component.keyMethods = dedupeMethods([...component.keyMethods, ...methods]);
|
|
411
|
+
}
|
|
412
|
+
function createFallbackModuleComponent(module, subsystem, packageId, groupId) {
|
|
413
|
+
const fallbackName = path.posix.basename(module.sourceTarget).replace(/\.[^/.]+$/, '');
|
|
414
|
+
return {
|
|
415
|
+
id: sanitizeComponentId(module.sourceTarget, fallbackName),
|
|
416
|
+
name: fallbackName,
|
|
417
|
+
category: classifyComponentCategory(fallbackName, module.sourceTarget),
|
|
418
|
+
subsystem,
|
|
419
|
+
summary: module.intentSummary,
|
|
420
|
+
responsibilities: dedupeStrings([module.intentSummary, module.businessSummary]),
|
|
421
|
+
relatedFiles: module.relatedFiles,
|
|
422
|
+
keyMethods: [],
|
|
423
|
+
upstreamIds: [],
|
|
424
|
+
downstreamIds: [],
|
|
425
|
+
confidence: module.confidence === 'low' ? 'low' : 'medium',
|
|
426
|
+
inferred: module.confidence === 'low',
|
|
427
|
+
evidence: [createModuleEvidence(module)],
|
|
428
|
+
score: module.confidence === 'low' ? 2 : 6,
|
|
429
|
+
sourceTarget: module.sourceTarget,
|
|
430
|
+
packageId,
|
|
431
|
+
groupId,
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
function createModuleEvidence(module) {
|
|
435
|
+
return {
|
|
436
|
+
sourceType: 'module-spec',
|
|
437
|
+
ref: module.sourceTarget,
|
|
438
|
+
note: module.intentSummary,
|
|
439
|
+
inferred: module.confidence === 'low',
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
function createSkeletonEvidence(module, refName, signature, inferred) {
|
|
443
|
+
return {
|
|
444
|
+
sourceType: 'baseline-skeleton',
|
|
445
|
+
ref: `${module.sourceTarget}:${refName}`,
|
|
446
|
+
note: signature,
|
|
447
|
+
inferred,
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
function classifyComponentCategory(name, sourceTarget) {
|
|
451
|
+
const lower = `${name} ${sourceTarget}`.toLowerCase();
|
|
452
|
+
if (/(transport|stdin|stdout)/.test(lower))
|
|
453
|
+
return 'transport';
|
|
454
|
+
if (/(parser|parse|codec|serializer|message)/.test(lower))
|
|
455
|
+
return 'parser';
|
|
456
|
+
if (/(session|conversation|transcript)/.test(lower))
|
|
457
|
+
return 'session';
|
|
458
|
+
if (/(store|cache|repository)/.test(lower))
|
|
459
|
+
return 'store';
|
|
460
|
+
if (/(adapter)/.test(lower))
|
|
461
|
+
return 'adapter';
|
|
462
|
+
if (/(client|sdk)/.test(lower))
|
|
463
|
+
return 'client';
|
|
464
|
+
if (/(query|request)/.test(lower))
|
|
465
|
+
return 'query';
|
|
466
|
+
if (/(service|runtime|manager|controller|gateway)/.test(lower))
|
|
467
|
+
return 'service';
|
|
468
|
+
return 'module';
|
|
469
|
+
}
|
|
470
|
+
function classifyMethodKind(name) {
|
|
471
|
+
const lower = name.toLowerCase();
|
|
472
|
+
if (/(query|request|connect|send|stream|run|execute|process|interrupt|control)/.test(lower))
|
|
473
|
+
return 'entrypoint';
|
|
474
|
+
if (/(transport|dispatch|emit|publish|subscribe|listen)/.test(lower))
|
|
475
|
+
return 'transport';
|
|
476
|
+
if (/(parse|decode|encode|serialize)/.test(lower))
|
|
477
|
+
return 'parser';
|
|
478
|
+
if (/(session|persist|store|load|save|resume)/.test(lower))
|
|
479
|
+
return 'session';
|
|
480
|
+
if (/(event|handle|on[A-Z_])/.test(name) || /(event|handle)/.test(lower))
|
|
481
|
+
return 'event-handler';
|
|
482
|
+
return 'supporting';
|
|
483
|
+
}
|
|
484
|
+
function summarizeComponentSummary(module, symbol) {
|
|
485
|
+
const doc = symbol.jsDoc?.trim();
|
|
486
|
+
if (doc) {
|
|
487
|
+
return summarizeLine(doc, module.intentSummary);
|
|
488
|
+
}
|
|
489
|
+
return summarizeLine(module.intentSummary, symbol.signature);
|
|
490
|
+
}
|
|
491
|
+
function summarizeLine(content, fallback) {
|
|
492
|
+
const value = content
|
|
493
|
+
.split(/\r?\n/)
|
|
494
|
+
.map((line) => line.replace(/^[-*]\s+/, '').trim())
|
|
495
|
+
.find((line) => line.length > 0);
|
|
496
|
+
return value ?? fallback;
|
|
497
|
+
}
|
|
498
|
+
function classifyModuleRole(sourceTarget) {
|
|
499
|
+
if (sourceTarget === 'tests' || sourceTarget.startsWith('tests/') || sourceTarget.includes('/tests/')) {
|
|
500
|
+
return 'validation';
|
|
501
|
+
}
|
|
502
|
+
if (sourceTarget.startsWith('examples/') || sourceTarget.startsWith('scripts/')) {
|
|
503
|
+
return 'support';
|
|
504
|
+
}
|
|
505
|
+
return 'core';
|
|
506
|
+
}
|
|
507
|
+
function isLowSignalSymbol(name, moduleRole) {
|
|
508
|
+
return moduleRole === 'validation' && /^test/i.test(name);
|
|
509
|
+
}
|
|
510
|
+
function isLowSignalMethod(name, sourceTarget) {
|
|
511
|
+
return classifyModuleRole(sourceTarget) === 'validation' && /^test/i.test(name);
|
|
512
|
+
}
|
|
513
|
+
function sanitizeComponentId(sourceTarget, name) {
|
|
514
|
+
return sanitizeMermaidId(`component_${sourceTarget}_${name}`);
|
|
515
|
+
}
|
|
516
|
+
function findMatchingPackage(module, packageElements) {
|
|
517
|
+
return packageElements.find((element) => {
|
|
518
|
+
const elementPath = getMetadataString(element, 'path');
|
|
519
|
+
return typeof elementPath === 'string' && module.relatedFiles.some((filePath) => filePath.startsWith(`${elementPath}/`) || filePath === elementPath);
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
function findMatchingGroup(packageElement, groupElements) {
|
|
523
|
+
if (!packageElement) {
|
|
524
|
+
return undefined;
|
|
525
|
+
}
|
|
526
|
+
const groupName = getMetadataString(packageElement, 'group');
|
|
527
|
+
if (!groupName) {
|
|
528
|
+
return undefined;
|
|
529
|
+
}
|
|
530
|
+
return groupElements.find((element) => element.id === `group:${groupName}`);
|
|
531
|
+
}
|
|
532
|
+
function inferSubsystem(module, packageElement, groupElement) {
|
|
533
|
+
const packagePath = getMetadataString(packageElement, 'path');
|
|
534
|
+
if (packagePath) {
|
|
535
|
+
return packagePath;
|
|
536
|
+
}
|
|
537
|
+
if (groupElement?.name) {
|
|
538
|
+
return groupElement.name;
|
|
539
|
+
}
|
|
540
|
+
const parts = module.sourceTarget.split('/').filter(Boolean);
|
|
541
|
+
if (parts.length >= 3 && (parts[0] === 'src' || parts[0] === 'tests')) {
|
|
542
|
+
return parts.slice(1, parts.length - 1).join('/') || parts[1];
|
|
543
|
+
}
|
|
544
|
+
if (parts.length >= 2) {
|
|
545
|
+
return parts.slice(0, parts.length - 1).join('/');
|
|
546
|
+
}
|
|
547
|
+
return module.sourceTarget;
|
|
548
|
+
}
|
|
549
|
+
function resolveImportedModules(module, storedModules) {
|
|
550
|
+
const imports = module.baselineSkeleton?.imports ?? [];
|
|
551
|
+
const matches = new Set();
|
|
552
|
+
for (const item of imports) {
|
|
553
|
+
const resolved = item.resolvedPath?.split(path.sep).join('/');
|
|
554
|
+
for (const candidate of storedModules) {
|
|
555
|
+
if (candidate.sourceTarget === module.sourceTarget) {
|
|
556
|
+
continue;
|
|
557
|
+
}
|
|
558
|
+
if (resolved && candidate.relatedFiles.some((filePath) => resolved.endsWith(filePath) || filePath.endsWith(resolved))) {
|
|
559
|
+
matches.add(candidate);
|
|
560
|
+
continue;
|
|
561
|
+
}
|
|
562
|
+
const specifier = item.moduleSpecifier.replace(/^\.\//, '');
|
|
563
|
+
if (specifier.length > 0 && candidate.sourceTarget.endsWith(specifier)) {
|
|
564
|
+
matches.add(candidate);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
return [...matches];
|
|
569
|
+
}
|
|
570
|
+
function mapIrRelationshipToComponents(relationship, rankedComponents) {
|
|
571
|
+
const fromCandidates = rankedComponents.filter((component) => component.packageId === relationship.sourceId || component.groupId === relationship.sourceId);
|
|
572
|
+
const toCandidates = rankedComponents.filter((component) => component.packageId === relationship.destinationId || component.groupId === relationship.destinationId);
|
|
573
|
+
const fromComponent = fromCandidates[0];
|
|
574
|
+
const toComponent = toCandidates[0];
|
|
575
|
+
if (!fromComponent || !toComponent || fromComponent.id === toComponent.id) {
|
|
576
|
+
return undefined;
|
|
577
|
+
}
|
|
578
|
+
return {
|
|
579
|
+
fromId: fromComponent.id,
|
|
580
|
+
toId: toComponent.id,
|
|
581
|
+
kind: relationship.kind === 'depends-on' ? 'depends-on' : 'calls',
|
|
582
|
+
label: `${fromComponent.name} ${relationship.kind} ${toComponent.name}`,
|
|
583
|
+
confidence: 'medium',
|
|
584
|
+
evidence: relationship.evidence.map(mapIrEvidence),
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
function mapIrEvidence(evidence) {
|
|
588
|
+
return {
|
|
589
|
+
sourceType: 'architecture-ir',
|
|
590
|
+
ref: evidence.ref,
|
|
591
|
+
note: evidence.note,
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
function findTopComponent(components, categories) {
|
|
595
|
+
return components.find((component) => categories.includes(component.category));
|
|
596
|
+
}
|
|
597
|
+
function findComponentByEvidence(components, symbolName, sourceFile) {
|
|
598
|
+
const normalizedFile = sourceFile.split(path.sep).join('/');
|
|
599
|
+
return components.find((component) => component.name === symbolName
|
|
600
|
+
|| component.keyMethods.some((method) => method.ownerName === symbolName || method.name === symbolName)
|
|
601
|
+
|| component.relatedFiles.some((filePath) => filePath === normalizedFile || filePath.endsWith(normalizedFile)));
|
|
602
|
+
}
|
|
603
|
+
function upsertRelationship(relationships, relationship) {
|
|
604
|
+
const key = `${relationship.fromId}|${relationship.kind}|${relationship.toId}`;
|
|
605
|
+
const existing = relationships.get(key);
|
|
606
|
+
if (!existing) {
|
|
607
|
+
relationships.set(key, {
|
|
608
|
+
...relationship,
|
|
609
|
+
evidence: dedupeComponentEvidence(relationship.evidence),
|
|
610
|
+
});
|
|
611
|
+
return;
|
|
612
|
+
}
|
|
613
|
+
existing.label = existing.label || relationship.label;
|
|
614
|
+
existing.confidence = maxConfidence(existing.confidence, relationship.confidence);
|
|
615
|
+
existing.evidence = dedupeComponentEvidence([...existing.evidence, ...relationship.evidence]);
|
|
616
|
+
}
|
|
617
|
+
function maxConfidence(left, right) {
|
|
618
|
+
const order = ['low', 'medium', 'high'];
|
|
619
|
+
return order[Math.max(order.indexOf(left), order.indexOf(right))] ?? 'low';
|
|
620
|
+
}
|
|
621
|
+
function mergeEvidence(left, right) {
|
|
622
|
+
return dedupeComponentEvidence([...left, ...right]);
|
|
623
|
+
}
|
|
624
|
+
function dedupeMethods(methods) {
|
|
625
|
+
const seen = new Set();
|
|
626
|
+
const result = [];
|
|
627
|
+
for (const method of methods) {
|
|
628
|
+
const key = `${method.ownerName ?? ''}|${method.name}|${method.signature ?? ''}`;
|
|
629
|
+
if (seen.has(key)) {
|
|
630
|
+
continue;
|
|
631
|
+
}
|
|
632
|
+
seen.add(key);
|
|
633
|
+
result.push(method);
|
|
634
|
+
}
|
|
635
|
+
return result
|
|
636
|
+
.sort((left, right) => left.name.localeCompare(right.name))
|
|
637
|
+
.slice(0, 8);
|
|
638
|
+
}
|
|
639
|
+
function dedupeStrings(values) {
|
|
640
|
+
return [...new Set(values.filter((value) => typeof value === 'string' && value.length > 0))]
|
|
641
|
+
.sort((a, b) => a.localeCompare(b));
|
|
642
|
+
}
|
|
643
|
+
function getMetadataString(element, key) {
|
|
644
|
+
if (!element) {
|
|
645
|
+
return undefined;
|
|
646
|
+
}
|
|
647
|
+
const value = element.metadata[key];
|
|
648
|
+
return typeof value === 'string' ? value : undefined;
|
|
649
|
+
}
|
|
650
|
+
function escapeMermaidLabel(value) {
|
|
651
|
+
return value.replace(/"/g, '\\"');
|
|
652
|
+
}
|
|
653
|
+
// ============================================================
|
|
654
|
+
// DocumentGenerator Adapter
|
|
655
|
+
// ============================================================
|
|
656
|
+
/**
|
|
657
|
+
* ComponentViewBuilderGenerator
|
|
658
|
+
*
|
|
659
|
+
* 将 buildComponentView() 适配为 DocumentGenerator 接口,
|
|
660
|
+
* 供 GeneratorRegistry 统一管理。
|
|
661
|
+
*
|
|
662
|
+
* TInput: ArchitectureIR(从 ArchitectureIRGenerator 中提取)
|
|
663
|
+
* TOutput: ComponentViewOutput
|
|
664
|
+
*/
|
|
665
|
+
export class ComponentViewBuilderGenerator {
|
|
666
|
+
id = 'component-view-builder';
|
|
667
|
+
name = '关键组件视图生成器';
|
|
668
|
+
description = '基于 Architecture IR 与 stored module specs 生成关键组件视图,输出组件关系图与 Mermaid 可视化';
|
|
669
|
+
irGenerator;
|
|
670
|
+
constructor() {
|
|
671
|
+
this.irGenerator = new ArchitectureIRGenerator();
|
|
672
|
+
}
|
|
673
|
+
isApplicable(context) {
|
|
674
|
+
// 委托 ArchitectureIRGenerator 的判断逻辑:需要架构概览数据
|
|
675
|
+
return this.irGenerator.isApplicable(context);
|
|
676
|
+
}
|
|
677
|
+
async extract(context) {
|
|
678
|
+
// 从 ArchitectureIRGenerator 获取 IR
|
|
679
|
+
const irInput = await this.irGenerator.extract(context);
|
|
680
|
+
const irOutput = await this.irGenerator.generate(irInput);
|
|
681
|
+
return irOutput.ir;
|
|
682
|
+
}
|
|
683
|
+
async generate(input, _options) {
|
|
684
|
+
// 委托 buildComponentView(),storedModules 为空数组(编排级无法注入)
|
|
685
|
+
return buildComponentView({
|
|
686
|
+
architectureIR: input,
|
|
687
|
+
storedModules: [],
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
render(output) {
|
|
691
|
+
return renderComponentView(output);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
//# sourceMappingURL=component-view-builder.js.map
|