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,129 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
|
|
3
|
+
function toPosix(filePath) {
|
|
4
|
+
return filePath.split(path.sep).join('/');
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function getProductsRoot(projectRoot) {
|
|
8
|
+
return path.join(projectRoot, 'specs', 'products');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function getProductsGeneratedRoot(projectRoot) {
|
|
12
|
+
return path.join(getProductsRoot(projectRoot), '_generated');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function getProductRoot(projectRoot, productId) {
|
|
16
|
+
return path.join(getProductsRoot(projectRoot), productId);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function getProductGeneratedRoot(projectRoot, productId) {
|
|
20
|
+
return path.join(getProductRoot(projectRoot, productId), '_generated');
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function getProductCurrentSpecPath(projectRoot, productId) {
|
|
24
|
+
return path.join(getProductRoot(projectRoot, productId), 'current-spec.md');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function getProductEntityPath(projectRoot, productId) {
|
|
28
|
+
return path.join(getProductGeneratedRoot(projectRoot, productId), 'entity.yaml');
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function getProductQualityReportJsonPath(projectRoot, productId) {
|
|
32
|
+
return path.join(getProductGeneratedRoot(projectRoot, productId), 'quality-report.json');
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function getProductQualityReportMarkdownPath(projectRoot, productId) {
|
|
36
|
+
return path.join(getProductGeneratedRoot(projectRoot, productId), 'quality-report.md');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function getProductScorecardReportJsonPath(projectRoot, productId) {
|
|
40
|
+
return path.join(getProductGeneratedRoot(projectRoot, productId), 'scorecard-report.json');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function getProductScorecardReportMarkdownPath(projectRoot, productId) {
|
|
44
|
+
return path.join(getProductGeneratedRoot(projectRoot, productId), 'scorecard-report.md');
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function getProductWorkflowIndexJsonPath(projectRoot, productId = 'spec-driver') {
|
|
48
|
+
return path.join(getProductGeneratedRoot(projectRoot, productId), 'workflow-index.json');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function getProductWorkflowIndexMarkdownPath(projectRoot, productId = 'spec-driver') {
|
|
52
|
+
return path.join(getProductGeneratedRoot(projectRoot, productId), 'workflow-index.md');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function getProductAdoptionReportJsonPath(projectRoot, productId = 'spec-driver') {
|
|
56
|
+
return path.join(getProductGeneratedRoot(projectRoot, productId), 'adoption-report.json');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function getProductAdoptionReportMarkdownPath(projectRoot, productId = 'spec-driver') {
|
|
60
|
+
return path.join(getProductGeneratedRoot(projectRoot, productId), 'adoption-report.md');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function getCatalogIndexPath(projectRoot) {
|
|
64
|
+
return path.join(getProductsGeneratedRoot(projectRoot), 'catalog-index.yaml');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function getScorecardIndexPath(projectRoot) {
|
|
68
|
+
return path.join(getProductsGeneratedRoot(projectRoot), 'scorecard-index.yaml');
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function getQualityReportIndexPath(projectRoot) {
|
|
72
|
+
return path.join(getProductsGeneratedRoot(projectRoot), 'quality-report-index.yaml');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function getLegacyProductEntityPath(projectRoot, productId) {
|
|
76
|
+
return path.join(getProductRoot(projectRoot, productId), 'entity.yaml');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function getLegacyProductQualityReportJsonPath(projectRoot, productId) {
|
|
80
|
+
return path.join(getProductRoot(projectRoot, productId), 'quality-report.json');
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function getLegacyProductQualityReportMarkdownPath(projectRoot, productId) {
|
|
84
|
+
return path.join(getProductRoot(projectRoot, productId), 'quality-report.md');
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function getLegacyProductScorecardReportJsonPath(projectRoot, productId) {
|
|
88
|
+
return path.join(getProductRoot(projectRoot, productId), 'scorecard-report.json');
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function getLegacyProductScorecardReportMarkdownPath(projectRoot, productId) {
|
|
92
|
+
return path.join(getProductRoot(projectRoot, productId), 'scorecard-report.md');
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function getLegacyProductWorkflowIndexJsonPath(projectRoot, productId = 'spec-driver') {
|
|
96
|
+
return path.join(getProductRoot(projectRoot, productId), 'workflow-index.json');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function getLegacyProductWorkflowIndexMarkdownPath(projectRoot, productId = 'spec-driver') {
|
|
100
|
+
return path.join(getProductRoot(projectRoot, productId), 'workflow-index.md');
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function getLegacyProductAdoptionReportJsonPath(projectRoot, productId = 'spec-driver') {
|
|
104
|
+
return path.join(getProductRoot(projectRoot, productId), 'adoption-report.json');
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function getLegacyProductAdoptionReportMarkdownPath(projectRoot, productId = 'spec-driver') {
|
|
108
|
+
return path.join(getProductRoot(projectRoot, productId), 'adoption-report.md');
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function getLegacyCatalogIndexPath(projectRoot) {
|
|
112
|
+
return path.join(getProductsRoot(projectRoot), 'catalog-index.yaml');
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function getLegacyScorecardIndexPath(projectRoot) {
|
|
116
|
+
return path.join(getProductsRoot(projectRoot), 'scorecard-index.yaml');
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function getLegacyQualityReportIndexPath(projectRoot) {
|
|
120
|
+
return path.join(getProductsRoot(projectRoot), 'quality-report-index.yaml');
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function getPreferredAndLegacyPaths(preferredPath, legacyPath, ...extraLegacyPaths) {
|
|
124
|
+
return [preferredPath, legacyPath, ...extraLegacyPaths].filter(Boolean);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function toRelativePosix(projectRoot, filePath) {
|
|
128
|
+
return toPosix(path.relative(projectRoot, filePath));
|
|
129
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { parseYamlDocument } from './simple-yaml.mjs';
|
|
4
|
+
|
|
5
|
+
export function parseProductMapping(content) {
|
|
6
|
+
const document = parseYamlDocument(content);
|
|
7
|
+
const products = isObject(document.products) ? document.products : {};
|
|
8
|
+
return { products };
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function slugToTitle(value) {
|
|
12
|
+
return String(value)
|
|
13
|
+
.split('-')
|
|
14
|
+
.map((segment) => (segment ? segment[0].toUpperCase() + segment.slice(1) : segment))
|
|
15
|
+
.join(' ');
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function toPosix(value) {
|
|
19
|
+
return value.split(path.sep).join('/');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function firstExistingPath(...candidates) {
|
|
23
|
+
for (const candidate of candidates) {
|
|
24
|
+
if (candidate && fs.existsSync(candidate)) {
|
|
25
|
+
return candidate;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return candidates.find(Boolean) ?? null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function readMarkdownHeading(filePath) {
|
|
33
|
+
if (!fs.existsSync(filePath)) {
|
|
34
|
+
return '';
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const lines = fs.readFileSync(filePath, 'utf-8').split('\n');
|
|
38
|
+
const heading = lines.find((line) => line.trim().startsWith('# '));
|
|
39
|
+
return heading ? heading.replace(/^#\s+/, '').trim() : '';
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function normalizeForCompare(value) {
|
|
43
|
+
return String(value).toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5]+/g, '');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function isObject(value) {
|
|
47
|
+
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
48
|
+
}
|
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import {
|
|
4
|
+
getLegacyProductAdoptionReportJsonPath,
|
|
5
|
+
getLegacyProductEntityPath,
|
|
6
|
+
getLegacyProductScorecardReportJsonPath,
|
|
7
|
+
getLegacyProductWorkflowIndexJsonPath,
|
|
8
|
+
getProductAdoptionReportJsonPath,
|
|
9
|
+
getProductCurrentSpecPath,
|
|
10
|
+
getProductEntityPath,
|
|
11
|
+
getProductQualityReportJsonPath,
|
|
12
|
+
getProductQualityReportMarkdownPath,
|
|
13
|
+
getProductScorecardReportJsonPath,
|
|
14
|
+
getProductWorkflowIndexJsonPath,
|
|
15
|
+
getProductsRoot,
|
|
16
|
+
getQualityReportIndexPath,
|
|
17
|
+
toRelativePosix,
|
|
18
|
+
} from './product-artifact-paths.mjs';
|
|
19
|
+
import { patchProductCatalogIndex, patchYamlArtifact } from './product-artifact-patchers.mjs';
|
|
20
|
+
import {
|
|
21
|
+
firstExistingPath,
|
|
22
|
+
isObject,
|
|
23
|
+
normalizeForCompare,
|
|
24
|
+
parseProductMapping,
|
|
25
|
+
readMarkdownHeading,
|
|
26
|
+
slugToTitle,
|
|
27
|
+
toPosix,
|
|
28
|
+
} from './product-governance-helpers.mjs';
|
|
29
|
+
import { appendWarningsSection, dedupeStringValues } from './script-diagnostics.mjs';
|
|
30
|
+
import { writeJsonArtifact, writeMarkdownArtifact, writeYamlArtifact } from './script-report-io.mjs';
|
|
31
|
+
import { parseYamlDocument } from './simple-yaml.mjs';
|
|
32
|
+
|
|
33
|
+
const QUALITY_SCHEMA_VERSION = 1;
|
|
34
|
+
|
|
35
|
+
export function generateProductQualityReports(options = {}) {
|
|
36
|
+
const projectRoot = path.resolve(options.projectRoot ?? process.cwd());
|
|
37
|
+
const generatedAt = options.generatedAt ?? new Date().toISOString();
|
|
38
|
+
const productsRoot = getProductsRoot(projectRoot);
|
|
39
|
+
const mappingPath = path.join(productsRoot, 'product-mapping.yaml');
|
|
40
|
+
if (!fs.existsSync(mappingPath)) {
|
|
41
|
+
throw new Error(`未找到 product mapping: ${mappingPath}`);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const mapping = parseProductMapping(fs.readFileSync(mappingPath, 'utf-8'));
|
|
45
|
+
const summaries = [];
|
|
46
|
+
const warnings = [];
|
|
47
|
+
|
|
48
|
+
for (const [productId] of Object.entries(mapping.products)) {
|
|
49
|
+
const entityPath = fs.existsSync(getProductEntityPath(projectRoot, productId))
|
|
50
|
+
? getProductEntityPath(projectRoot, productId)
|
|
51
|
+
: getLegacyProductEntityPath(projectRoot, productId);
|
|
52
|
+
const entity = fs.existsSync(entityPath)
|
|
53
|
+
? parseYamlDocument(fs.readFileSync(entityPath, 'utf-8'))
|
|
54
|
+
: {};
|
|
55
|
+
const productName = entity.name ?? slugToTitle(productId);
|
|
56
|
+
|
|
57
|
+
const documentRefs = collectDocumentRefs(projectRoot, productId, entity);
|
|
58
|
+
const provenance = documentRefs.map((doc) => toProvenanceRecord(projectRoot, doc));
|
|
59
|
+
const requiredDocs = documentRefs
|
|
60
|
+
.filter((doc) => doc.required)
|
|
61
|
+
.map((doc) => toRequiredDocStatus(doc));
|
|
62
|
+
const dependencyWarnings = requiredDocs
|
|
63
|
+
.filter((doc) => doc.coverage !== 'covered')
|
|
64
|
+
.map((doc) => `缺少 required doc: ${doc.docId}`);
|
|
65
|
+
const generalWarnings = documentRefs
|
|
66
|
+
.filter((doc) => !doc.required && !doc.available)
|
|
67
|
+
.map((doc) => `可选文档缺失: ${doc.id}`);
|
|
68
|
+
const conflicts = detectProductConflicts({
|
|
69
|
+
entity,
|
|
70
|
+
documentRefs,
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
const bundleCoverage = requiredDocs.every((doc) => doc.coverage === 'covered') ? 'full' : 'partial';
|
|
74
|
+
const stats = summarizeDocsQualityStats({
|
|
75
|
+
provenance,
|
|
76
|
+
conflicts,
|
|
77
|
+
requiredDocs,
|
|
78
|
+
dependencyWarnings,
|
|
79
|
+
warnings: generalWarnings,
|
|
80
|
+
});
|
|
81
|
+
const status = determineDocsQualityStatus({
|
|
82
|
+
bundleCoverage,
|
|
83
|
+
conflicts,
|
|
84
|
+
requiredDocs,
|
|
85
|
+
warnings: generalWarnings,
|
|
86
|
+
dependencyWarnings,
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
const report = {
|
|
90
|
+
schemaVersion: QUALITY_SCHEMA_VERSION,
|
|
91
|
+
title: `${productName} Product Quality Report`,
|
|
92
|
+
generatedAt,
|
|
93
|
+
projectName: productName,
|
|
94
|
+
productId,
|
|
95
|
+
status,
|
|
96
|
+
bundleCoverage,
|
|
97
|
+
summary: buildSummaryLines({
|
|
98
|
+
provenance,
|
|
99
|
+
conflicts,
|
|
100
|
+
requiredDocs,
|
|
101
|
+
bundleCoverage,
|
|
102
|
+
dependencyWarnings,
|
|
103
|
+
warnings: generalWarnings,
|
|
104
|
+
}),
|
|
105
|
+
provenance,
|
|
106
|
+
conflicts,
|
|
107
|
+
requiredDocs,
|
|
108
|
+
dependencyWarnings,
|
|
109
|
+
warnings: generalWarnings,
|
|
110
|
+
stats,
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const jsonPath = getProductQualityReportJsonPath(projectRoot, productId);
|
|
114
|
+
const markdownPath = getProductQualityReportMarkdownPath(projectRoot, productId);
|
|
115
|
+
writeJsonArtifact(jsonPath, report);
|
|
116
|
+
writeMarkdownArtifact(markdownPath, renderQualityMarkdown(report));
|
|
117
|
+
patchEntityQuality(entityPath, report, projectRoot, productId);
|
|
118
|
+
|
|
119
|
+
summaries.push({
|
|
120
|
+
id: productId,
|
|
121
|
+
name: productName,
|
|
122
|
+
status,
|
|
123
|
+
score: stats.score,
|
|
124
|
+
reportPath: toPosix(path.relative(projectRoot, jsonPath)),
|
|
125
|
+
markdownPath: toPosix(path.relative(projectRoot, markdownPath)),
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
warnings.push(...generalWarnings);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const indexPath = getQualityReportIndexPath(projectRoot);
|
|
132
|
+
writeYamlArtifact(indexPath, {
|
|
133
|
+
schemaVersion: QUALITY_SCHEMA_VERSION,
|
|
134
|
+
generatedAt,
|
|
135
|
+
productCount: summaries.length,
|
|
136
|
+
products: summaries,
|
|
137
|
+
warnings: dedupeStringValues(warnings),
|
|
138
|
+
});
|
|
139
|
+
patchCatalogIndex(projectRoot, summaries);
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
projectRoot,
|
|
143
|
+
generatedAt,
|
|
144
|
+
qualityReportIndexPath: toPosix(path.relative(projectRoot, indexPath)),
|
|
145
|
+
products: summaries,
|
|
146
|
+
warnings: dedupeStringValues(warnings),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function collectDocumentRefs(projectRoot, productId, entity) {
|
|
151
|
+
const docs = [];
|
|
152
|
+
const seen = new Set();
|
|
153
|
+
|
|
154
|
+
const addDoc = (doc) => {
|
|
155
|
+
if (seen.has(doc.id)) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
seen.add(doc.id);
|
|
159
|
+
docs.push(doc);
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
const entityDocs = Array.isArray(entity.docs) ? entity.docs : [];
|
|
163
|
+
for (const doc of entityDocs) {
|
|
164
|
+
const docId = String(doc.id ?? '').trim();
|
|
165
|
+
if (!docId) {
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
const docPath = typeof doc.path === 'string'
|
|
169
|
+
? path.join(projectRoot, doc.path)
|
|
170
|
+
: defaultDocPath(projectRoot, productId, docId);
|
|
171
|
+
addDoc({
|
|
172
|
+
id: docId,
|
|
173
|
+
title: titleForDocId(docId),
|
|
174
|
+
path: docPath,
|
|
175
|
+
sourceType: sourceTypeForDocId(docId),
|
|
176
|
+
required: docId === 'current-spec',
|
|
177
|
+
requiredBy: docId === 'current-spec' ? ['product-governance'] : [],
|
|
178
|
+
includedInBundles: docId === 'current-spec' ? ['governance'] : [],
|
|
179
|
+
notes: [],
|
|
180
|
+
available: fs.existsSync(docPath),
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
addDoc({
|
|
185
|
+
id: 'entity',
|
|
186
|
+
title: 'Product Entity Catalog',
|
|
187
|
+
path: firstExistingPath(
|
|
188
|
+
getProductEntityPath(projectRoot, productId),
|
|
189
|
+
getLegacyProductEntityPath(projectRoot, productId),
|
|
190
|
+
),
|
|
191
|
+
sourceType: 'spec',
|
|
192
|
+
required: true,
|
|
193
|
+
requiredBy: ['catalog'],
|
|
194
|
+
includedInBundles: ['governance'],
|
|
195
|
+
notes: [],
|
|
196
|
+
available: fs.existsSync(getProductEntityPath(projectRoot, productId)) || fs.existsSync(getLegacyProductEntityPath(projectRoot, productId)),
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
addDoc({
|
|
200
|
+
id: 'scorecard-report',
|
|
201
|
+
title: 'Scorecard Report',
|
|
202
|
+
path: firstExistingPath(
|
|
203
|
+
getProductScorecardReportJsonPath(projectRoot, productId),
|
|
204
|
+
getLegacyProductScorecardReportJsonPath(projectRoot, productId),
|
|
205
|
+
),
|
|
206
|
+
sourceType: 'generated-doc',
|
|
207
|
+
required: true,
|
|
208
|
+
requiredBy: ['scorecards'],
|
|
209
|
+
includedInBundles: ['governance'],
|
|
210
|
+
notes: [],
|
|
211
|
+
available: fs.existsSync(getProductScorecardReportJsonPath(projectRoot, productId)) || fs.existsSync(getLegacyProductScorecardReportJsonPath(projectRoot, productId)),
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
if (productId === 'spec-driver') {
|
|
215
|
+
addDoc({
|
|
216
|
+
id: 'workflow-index',
|
|
217
|
+
title: 'Workflow Registry Index',
|
|
218
|
+
path: firstExistingPath(
|
|
219
|
+
getProductWorkflowIndexJsonPath(projectRoot, 'spec-driver'),
|
|
220
|
+
getLegacyProductWorkflowIndexJsonPath(projectRoot, 'spec-driver'),
|
|
221
|
+
),
|
|
222
|
+
sourceType: 'generated-doc',
|
|
223
|
+
required: true,
|
|
224
|
+
requiredBy: ['workflow-registry'],
|
|
225
|
+
includedInBundles: ['governance'],
|
|
226
|
+
notes: [],
|
|
227
|
+
available: fs.existsSync(getProductWorkflowIndexJsonPath(projectRoot, 'spec-driver')) || fs.existsSync(getLegacyProductWorkflowIndexJsonPath(projectRoot, 'spec-driver')),
|
|
228
|
+
});
|
|
229
|
+
addDoc({
|
|
230
|
+
id: 'adoption-report',
|
|
231
|
+
title: 'Adoption Report',
|
|
232
|
+
path: firstExistingPath(
|
|
233
|
+
getProductAdoptionReportJsonPath(projectRoot, 'spec-driver'),
|
|
234
|
+
getLegacyProductAdoptionReportJsonPath(projectRoot, 'spec-driver'),
|
|
235
|
+
),
|
|
236
|
+
sourceType: 'generated-doc',
|
|
237
|
+
required: true,
|
|
238
|
+
requiredBy: ['adoption-feedback'],
|
|
239
|
+
includedInBundles: ['governance'],
|
|
240
|
+
notes: [],
|
|
241
|
+
available: fs.existsSync(getProductAdoptionReportJsonPath(projectRoot, 'spec-driver')) || fs.existsSync(getLegacyProductAdoptionReportJsonPath(projectRoot, 'spec-driver')),
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
return docs.map((doc) => ({
|
|
246
|
+
...doc,
|
|
247
|
+
relativePath: toPosix(path.relative(projectRoot, doc.path)),
|
|
248
|
+
}));
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function defaultDocPath(projectRoot, productId, docId) {
|
|
252
|
+
if (docId === 'current-spec') {
|
|
253
|
+
return getProductCurrentSpecPath(projectRoot, productId);
|
|
254
|
+
}
|
|
255
|
+
if (docId === 'readme') {
|
|
256
|
+
return path.join(projectRoot, 'README.md');
|
|
257
|
+
}
|
|
258
|
+
return path.join(getProductGeneratedRootForDoc(projectRoot, productId), `${docId}.md`);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function titleForDocId(docId) {
|
|
262
|
+
switch (docId) {
|
|
263
|
+
case 'current-spec':
|
|
264
|
+
return 'Current Spec';
|
|
265
|
+
case 'readme':
|
|
266
|
+
return 'README';
|
|
267
|
+
case 'entity':
|
|
268
|
+
return 'Product Entity Catalog';
|
|
269
|
+
case 'scorecard-report':
|
|
270
|
+
return 'Scorecard Report';
|
|
271
|
+
case 'workflow-index':
|
|
272
|
+
return 'Workflow Registry Index';
|
|
273
|
+
case 'adoption-report':
|
|
274
|
+
return 'Adoption Report';
|
|
275
|
+
default:
|
|
276
|
+
return slugToTitle(docId);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function sourceTypeForDocId(docId) {
|
|
281
|
+
switch (docId) {
|
|
282
|
+
case 'current-spec':
|
|
283
|
+
return 'current-spec';
|
|
284
|
+
case 'readme':
|
|
285
|
+
return 'readme';
|
|
286
|
+
default:
|
|
287
|
+
return 'generated-doc';
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export function toProvenanceRecord(projectRoot, doc) {
|
|
292
|
+
const sections = doc.available
|
|
293
|
+
? [{
|
|
294
|
+
id: 'document',
|
|
295
|
+
title: 'Document Presence',
|
|
296
|
+
summary: `${doc.id} 已生成并可复用。`,
|
|
297
|
+
coverage: 'high',
|
|
298
|
+
entries: [{
|
|
299
|
+
sourceType: doc.sourceType,
|
|
300
|
+
ref: doc.id,
|
|
301
|
+
path: doc.relativePath,
|
|
302
|
+
note: `generated=${doc.available}`,
|
|
303
|
+
confidence: 'high',
|
|
304
|
+
inferred: false,
|
|
305
|
+
}],
|
|
306
|
+
}]
|
|
307
|
+
: [];
|
|
308
|
+
const available = doc.available;
|
|
309
|
+
return {
|
|
310
|
+
documentId: doc.id,
|
|
311
|
+
title: doc.title,
|
|
312
|
+
sourcePath: available ? doc.relativePath : undefined,
|
|
313
|
+
available,
|
|
314
|
+
coverage: available ? 'high' : 'missing',
|
|
315
|
+
confidence: available ? 'high' : 'low',
|
|
316
|
+
sectionCount: sections.length,
|
|
317
|
+
entryCount: sections.reduce((sum, section) => sum + section.entries.length, 0),
|
|
318
|
+
sourceTypes: available ? [doc.sourceType] : [],
|
|
319
|
+
warnings: available ? [] : [`缺少文档: ${doc.relativePath}`],
|
|
320
|
+
missingReason: available ? undefined : 'not-generated',
|
|
321
|
+
sections,
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export function toRequiredDocStatus(doc) {
|
|
326
|
+
return {
|
|
327
|
+
docId: doc.id,
|
|
328
|
+
title: doc.title,
|
|
329
|
+
required: doc.required,
|
|
330
|
+
present: doc.available,
|
|
331
|
+
presentPath: doc.available ? doc.relativePath : undefined,
|
|
332
|
+
coverage: doc.available ? 'covered' : 'missing',
|
|
333
|
+
requiredBy: doc.requiredBy,
|
|
334
|
+
includedInBundles: doc.includedInBundles,
|
|
335
|
+
missingFromBundles: doc.available ? [] : doc.includedInBundles,
|
|
336
|
+
notes: doc.notes,
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export function detectProductConflicts({ entity, documentRefs }) {
|
|
341
|
+
const conflicts = [];
|
|
342
|
+
const currentSpec = documentRefs.find((doc) => doc.id === 'current-spec');
|
|
343
|
+
const entityDoc = documentRefs.find((doc) => doc.id === 'entity');
|
|
344
|
+
|
|
345
|
+
if (entityDoc?.available && currentSpec?.available) {
|
|
346
|
+
const entityName = typeof entity.name === 'string' ? entity.name.trim() : '';
|
|
347
|
+
const currentSpecTitle = readMarkdownHeading(currentSpec.path);
|
|
348
|
+
if (entityName && currentSpecTitle && !normalizeForCompare(currentSpecTitle).includes(normalizeForCompare(entityName))) {
|
|
349
|
+
conflicts.push({
|
|
350
|
+
topic: 'product-positioning',
|
|
351
|
+
severity: 'medium',
|
|
352
|
+
summary: 'entity.yaml 与 current-spec 标题不一致,产品命名存在漂移。',
|
|
353
|
+
sources: [
|
|
354
|
+
{
|
|
355
|
+
sourceType: 'spec',
|
|
356
|
+
label: 'entity.name',
|
|
357
|
+
canonicalValue: entityName,
|
|
358
|
+
path: entityDoc.relativePath,
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
sourceType: 'current-spec',
|
|
362
|
+
label: 'current-spec.h1',
|
|
363
|
+
canonicalValue: currentSpecTitle,
|
|
364
|
+
path: currentSpec.relativePath,
|
|
365
|
+
},
|
|
366
|
+
],
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
return conflicts;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export function summarizeDocsQualityStats(input) {
|
|
375
|
+
const totalProvenanceDocs = input.provenance.length;
|
|
376
|
+
const availableProvenanceDocs = input.provenance.filter((record) => record.available).length;
|
|
377
|
+
const highCoverageDocs = input.provenance.filter((record) => record.coverage === 'high').length;
|
|
378
|
+
const lowCoverageDocs = input.provenance.filter((record) => record.coverage === 'low').length;
|
|
379
|
+
const highSeverityConflicts = input.conflicts.filter((conflict) => conflict.severity === 'high').length;
|
|
380
|
+
const coveredRequiredDocs = input.requiredDocs.filter((doc) => doc.coverage === 'covered').length;
|
|
381
|
+
const partialRequiredDocs = input.requiredDocs.filter((doc) => doc.coverage === 'partial').length;
|
|
382
|
+
const missingRequiredDocs = input.requiredDocs.filter((doc) => doc.coverage === 'missing').length;
|
|
383
|
+
const score = clampScore(
|
|
384
|
+
100
|
|
385
|
+
- (highSeverityConflicts * 20)
|
|
386
|
+
- (input.conflicts.filter((conflict) => conflict.severity === 'medium').length * 10)
|
|
387
|
+
- (input.conflicts.filter((conflict) => conflict.severity === 'low').length * 5)
|
|
388
|
+
- (missingRequiredDocs * 8)
|
|
389
|
+
- (partialRequiredDocs * 4)
|
|
390
|
+
- (lowCoverageDocs * 3)
|
|
391
|
+
- (input.dependencyWarnings.length * 2),
|
|
392
|
+
);
|
|
393
|
+
|
|
394
|
+
return {
|
|
395
|
+
totalProvenanceDocs,
|
|
396
|
+
availableProvenanceDocs,
|
|
397
|
+
highCoverageDocs,
|
|
398
|
+
lowCoverageDocs,
|
|
399
|
+
totalConflicts: input.conflicts.length,
|
|
400
|
+
highSeverityConflicts,
|
|
401
|
+
totalRequiredDocs: input.requiredDocs.length,
|
|
402
|
+
coveredRequiredDocs,
|
|
403
|
+
partialRequiredDocs,
|
|
404
|
+
missingRequiredDocs,
|
|
405
|
+
dependencyWarningCount: input.dependencyWarnings.length,
|
|
406
|
+
warningCount: input.warnings.length,
|
|
407
|
+
score,
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export function determineDocsQualityStatus(input) {
|
|
412
|
+
const missingRequiredDocs = input.requiredDocs.filter((doc) => doc.coverage === 'missing').length;
|
|
413
|
+
const hasHighSeverityConflict = input.conflicts.some((conflict) => conflict.severity === 'high');
|
|
414
|
+
if (hasHighSeverityConflict || missingRequiredDocs >= 2) {
|
|
415
|
+
return 'fail';
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
if (input.bundleCoverage === 'partial' && input.dependencyWarnings.length > 0) {
|
|
419
|
+
return 'partial';
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
if (
|
|
423
|
+
input.conflicts.length > 0 ||
|
|
424
|
+
input.requiredDocs.some((doc) => doc.coverage !== 'covered') ||
|
|
425
|
+
input.warnings.length > 0
|
|
426
|
+
) {
|
|
427
|
+
return 'warn';
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
return 'pass';
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export function buildSummaryLines(input) {
|
|
434
|
+
const availableDocs = input.provenance.filter((record) => record.available).length;
|
|
435
|
+
const highCoverageDocs = input.provenance.filter((record) => record.coverage === 'high').length;
|
|
436
|
+
const coveredRequiredDocs = input.requiredDocs.filter((doc) => doc.coverage === 'covered').length;
|
|
437
|
+
const missingRequiredDocs = input.requiredDocs.filter((doc) => doc.coverage === 'missing').length;
|
|
438
|
+
|
|
439
|
+
return [
|
|
440
|
+
`产品治理相关文档可用 ${availableDocs}/${input.provenance.length},其中高覆盖 ${highCoverageDocs} 份。`,
|
|
441
|
+
input.conflicts.length > 0
|
|
442
|
+
? `检测到 ${input.conflicts.length} 条显式冲突,最高严重级别为 ${input.conflicts[0].severity}。`
|
|
443
|
+
: '未检测到显式冲突记录。',
|
|
444
|
+
`Required docs 覆盖 ${coveredRequiredDocs}/${input.requiredDocs.length},缺失 ${missingRequiredDocs} 份。`,
|
|
445
|
+
input.bundleCoverage === 'full'
|
|
446
|
+
? '治理文档契约完整,质量门可直接消费。'
|
|
447
|
+
: '治理文档契约仍不完整,质量门按 partial 模式降级。',
|
|
448
|
+
...(input.dependencyWarnings.length > 0 ? [`Dependency warnings: ${input.dependencyWarnings.length} 条。`] : []),
|
|
449
|
+
...(input.warnings.length > 0 ? [`General warnings: ${input.warnings.length} 条。`] : []),
|
|
450
|
+
];
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export function renderQualityMarkdown(report) {
|
|
454
|
+
const lines = [
|
|
455
|
+
`# ${report.projectName} Product Quality Report`,
|
|
456
|
+
'',
|
|
457
|
+
`> **Product**: ${report.productId}`,
|
|
458
|
+
`> **Generated**: ${report.generatedAt}`,
|
|
459
|
+
`> **Status**: ${report.status.toUpperCase()}`,
|
|
460
|
+
`> **Score**: ${report.stats.score}`,
|
|
461
|
+
'',
|
|
462
|
+
'## Summary',
|
|
463
|
+
'',
|
|
464
|
+
...report.summary.map((line) => `- ${line}`),
|
|
465
|
+
'',
|
|
466
|
+
'## Required Docs',
|
|
467
|
+
'',
|
|
468
|
+
'| Doc | Coverage | Present | Required By | Notes |',
|
|
469
|
+
'| --- | --- | --- | --- | --- |',
|
|
470
|
+
...report.requiredDocs.map((doc) => `| \`${doc.docId}\` | \`${doc.coverage}\` | \`${doc.present}\` | ${doc.requiredBy.map((value) => `\`${value}\``).join(', ') || '--'} | ${doc.notes.join(' / ') || '--'} |`),
|
|
471
|
+
'',
|
|
472
|
+
'## Conflict Records',
|
|
473
|
+
'',
|
|
474
|
+
...(report.conflicts.length > 0
|
|
475
|
+
? report.conflicts.flatMap((conflict) => [
|
|
476
|
+
`### ${conflict.topic} / severity=\`${conflict.severity}\``,
|
|
477
|
+
'',
|
|
478
|
+
conflict.summary,
|
|
479
|
+
'',
|
|
480
|
+
...conflict.sources.map((source) => `- \`${source.sourceType}\` / ${source.label} / \`${source.canonicalValue}\`${source.path ? ` @ \`${source.path}\`` : ''}`),
|
|
481
|
+
'',
|
|
482
|
+
])
|
|
483
|
+
: ['- 未检测到显式 conflict record。', '']),
|
|
484
|
+
];
|
|
485
|
+
appendWarningsSection(lines, report.warnings);
|
|
486
|
+
return lines.join('\n');
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
function patchEntityQuality(entityPath, report, projectRoot, productId) {
|
|
490
|
+
patchYamlArtifact(entityPath, (entity) => {
|
|
491
|
+
entity.quality = isObject(entity.quality) ? entity.quality : {};
|
|
492
|
+
entity.quality.report = {
|
|
493
|
+
path: toRelativePosix(projectRoot, getProductQualityReportJsonPath(projectRoot, productId)),
|
|
494
|
+
status: report.status,
|
|
495
|
+
score: report.stats.score,
|
|
496
|
+
generatedAt: report.generatedAt,
|
|
497
|
+
};
|
|
498
|
+
const sourceRefs = Array.isArray(entity.sourceRefs) ? entity.sourceRefs : [];
|
|
499
|
+
if (!sourceRefs.some((source) => source.kind === 'quality-report')) {
|
|
500
|
+
sourceRefs.push({
|
|
501
|
+
kind: 'quality-report',
|
|
502
|
+
path: toRelativePosix(projectRoot, getProductQualityReportJsonPath(projectRoot, productId)),
|
|
503
|
+
});
|
|
504
|
+
}
|
|
505
|
+
entity.sourceRefs = sourceRefs;
|
|
506
|
+
return entity;
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
function patchCatalogIndex(projectRoot, summaries) {
|
|
511
|
+
const summaryById = new Map(summaries.map((product) => [product.id, product]));
|
|
512
|
+
patchProductCatalogIndex(projectRoot, (product) => {
|
|
513
|
+
const summary = summaryById.get(product.id);
|
|
514
|
+
if (!summary) {
|
|
515
|
+
return product;
|
|
516
|
+
}
|
|
517
|
+
return {
|
|
518
|
+
...product,
|
|
519
|
+
qualityStatus: summary.status,
|
|
520
|
+
qualityReportPath: summary.reportPath,
|
|
521
|
+
};
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export function clampScore(value) {
|
|
526
|
+
return Math.max(0, Math.min(100, Math.round(value)));
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
function getProductGeneratedRootForDoc(projectRoot, productId) {
|
|
530
|
+
return path.dirname(getProductQualityReportMarkdownPath(projectRoot, productId));
|
|
531
|
+
}
|