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,485 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* orchestration-resolver.mjs
|
|
3
|
+
* Feature 133 — 项目级 orchestration overrides 解析器
|
|
4
|
+
*
|
|
5
|
+
* 职责:
|
|
6
|
+
* 1. 读取 plugin base config(orchestration.yaml)并用 Zod 校验
|
|
7
|
+
* 2. 检查项目级 overrides 文件(.specify/orchestration-overrides.yaml)
|
|
8
|
+
* 3. 将 base 和 overrides 合并(mergeOrchestrationConfigs)
|
|
9
|
+
* 4. 返回合并结果 + fieldSources + diagnostics
|
|
10
|
+
*
|
|
11
|
+
* 导出:
|
|
12
|
+
* - resolveOrchestrationConfig({ projectRoot, _loadBase?, _loadOverrides? })
|
|
13
|
+
* 返回 { mergedConfig, fieldSources, diagnostics, isFallback, isBaseInvalid }
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import fs from 'node:fs';
|
|
17
|
+
import path from 'node:path';
|
|
18
|
+
import { fileURLToPath } from 'node:url';
|
|
19
|
+
import { parseYamlDocument } from '../scripts/lib/simple-yaml.mjs';
|
|
20
|
+
import { generateFallbackConfig } from './orchestrator-fallback.mjs';
|
|
21
|
+
import {
|
|
22
|
+
orchestrationBaseSchema,
|
|
23
|
+
orchestrationOverridesSchema,
|
|
24
|
+
orchestrationMergedSchema,
|
|
25
|
+
formatZodIssue,
|
|
26
|
+
} from '../contracts/orchestration-schema.mjs';
|
|
27
|
+
|
|
28
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
29
|
+
|
|
30
|
+
// ─────────────────────────────────────────────────────────────
|
|
31
|
+
// Diagnostic 辅助
|
|
32
|
+
// ─────────────────────────────────────────────────────────────
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* 创建结构化的 diagnostic 对象
|
|
36
|
+
* @param {'error'|'warning'|'info'} level
|
|
37
|
+
* @param {string} code
|
|
38
|
+
* @param {string} message
|
|
39
|
+
* @param {object} [context]
|
|
40
|
+
*/
|
|
41
|
+
function createDiagnostic(level, code, message, context) {
|
|
42
|
+
return context !== undefined
|
|
43
|
+
? { level, code, message, context }
|
|
44
|
+
: { level, code, message };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// ─────────────────────────────────────────────────────────────
|
|
48
|
+
// mergeOrchestrationConfigs — 核心合并函数(T-006)
|
|
49
|
+
// ─────────────────────────────────────────────────────────────
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* 合并 base config 和 overrides config,生成 merged config 和 fieldSources。
|
|
53
|
+
*
|
|
54
|
+
* 合并语义(spec FR-004):
|
|
55
|
+
* - modes.<mode>:整段替换(overrides 中存在的 mode 整体替换 base 同名 mode;
|
|
56
|
+
* 不保留 base 该 mode 的任何字段;如需局部调整请用 gates.* 覆盖)
|
|
57
|
+
* - gates.<GATE_ID>:字段级合并(overrides 中的字段覆盖 base 字段,未声明字段保留 base)
|
|
58
|
+
* - gates.<GATE_ID>.hard_gate_modes:数组整段替换(非追加)
|
|
59
|
+
* - parallel_scheduling.*:顶层标量后者覆盖(overrides 中有值就覆盖 base 对应字段)
|
|
60
|
+
* - parallel_groups:不在 overrides 中处理(已被 resolver 层 strip + warning)
|
|
61
|
+
* - version:以 base 为准(resolver 在调用前已比对 version,此处不变)
|
|
62
|
+
*
|
|
63
|
+
* @param {object} base - 已通过 orchestrationBaseSchema 校验的 base config
|
|
64
|
+
* @param {object} overrides - 已通过 orchestrationOverridesSchema 校验的 overrides config
|
|
65
|
+
* @returns {{ merged: object, fieldSources: object }}
|
|
66
|
+
*/
|
|
67
|
+
function mergeOrchestrationConfigs(base, overrides) {
|
|
68
|
+
const fieldSources = {};
|
|
69
|
+
|
|
70
|
+
// ── modes 合并:整段替换语义 ──────────────────────────────
|
|
71
|
+
const mergedModes = { ...base.modes };
|
|
72
|
+
for (const [modeKey, modeDef] of Object.entries(overrides.modes || {})) {
|
|
73
|
+
if (modeDef !== undefined && modeDef !== null) {
|
|
74
|
+
// 整段替换:不继承 base 该 mode 的任何字段
|
|
75
|
+
mergedModes[modeKey] = modeDef;
|
|
76
|
+
fieldSources[`modes.${modeKey}`] = 'overrides';
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
// base 中未被 overrides 覆盖的 mode 标记为 base
|
|
80
|
+
for (const modeKey of Object.keys(base.modes || {})) {
|
|
81
|
+
if (!fieldSources[`modes.${modeKey}`]) {
|
|
82
|
+
fieldSources[`modes.${modeKey}`] = 'base';
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// ── gates 合并:字段级合并(hard_gate_modes 数组整段替换)──
|
|
87
|
+
const mergedGates = {};
|
|
88
|
+
const allGateIds = new Set([
|
|
89
|
+
...Object.keys(base.gates || {}),
|
|
90
|
+
...Object.keys(overrides.gates || {}),
|
|
91
|
+
]);
|
|
92
|
+
for (const gateId of allGateIds) {
|
|
93
|
+
const baseGate = (base.gates || {})[gateId];
|
|
94
|
+
const overrideGate = (overrides.gates || {})[gateId];
|
|
95
|
+
|
|
96
|
+
if (baseGate && overrideGate) {
|
|
97
|
+
// 字段级合并:overrides 字段覆盖 base,hard_gate_modes 数组整段替换(非追加)
|
|
98
|
+
mergedGates[gateId] = { ...baseGate, ...overrideGate };
|
|
99
|
+
// 为每个被覆盖的 Gate 字段记录 source
|
|
100
|
+
for (const field of Object.keys(overrideGate)) {
|
|
101
|
+
fieldSources[`gates.${gateId}.${field}`] = 'overrides';
|
|
102
|
+
}
|
|
103
|
+
// 未被覆盖的字段标记为 base
|
|
104
|
+
for (const field of Object.keys(baseGate)) {
|
|
105
|
+
if (!fieldSources[`gates.${gateId}.${field}`]) {
|
|
106
|
+
fieldSources[`gates.${gateId}.${field}`] = 'base';
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
} else if (baseGate) {
|
|
110
|
+
// 仅在 base 中存在,全部标记为 base
|
|
111
|
+
mergedGates[gateId] = { ...baseGate };
|
|
112
|
+
for (const field of Object.keys(baseGate)) {
|
|
113
|
+
fieldSources[`gates.${gateId}.${field}`] = 'base';
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
// overrides 中仅有而 base 没有的 gate 忽略(按 spec 约定不新建 gate)
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// ── parallel_scheduling 合并:顶层标量后者覆盖 ────────────
|
|
120
|
+
const mergedParallelScheduling = {
|
|
121
|
+
...(base.parallel_scheduling || {}),
|
|
122
|
+
...(overrides.parallel_scheduling || {}),
|
|
123
|
+
};
|
|
124
|
+
// 检查是否有任何字段被 overrides 覆盖
|
|
125
|
+
for (const field of Object.keys(overrides.parallel_scheduling || {})) {
|
|
126
|
+
fieldSources[`parallel_scheduling.${field}`] = 'overrides';
|
|
127
|
+
}
|
|
128
|
+
for (const field of Object.keys(base.parallel_scheduling || {})) {
|
|
129
|
+
if (!fieldSources[`parallel_scheduling.${field}`]) {
|
|
130
|
+
fieldSources[`parallel_scheduling.${field}`] = 'base';
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const merged = {
|
|
135
|
+
// version 以 base 为准
|
|
136
|
+
version: base.version,
|
|
137
|
+
parallel_scheduling: mergedParallelScheduling,
|
|
138
|
+
gates: mergedGates,
|
|
139
|
+
// parallel_groups 保留 base 值(overrides 中此字段已被 resolver 层 strip)
|
|
140
|
+
parallel_groups: base.parallel_groups,
|
|
141
|
+
modes: mergedModes,
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
return { merged, fieldSources };
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// ─────────────────────────────────────────────────────────────
|
|
148
|
+
// 默认 base loader
|
|
149
|
+
// ─────────────────────────────────────────────────────────────
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* 默认 base config 加载函数:读取 plugin 自带的 orchestration.yaml
|
|
153
|
+
* @returns {object} 解析后的 YAML 对象
|
|
154
|
+
*/
|
|
155
|
+
function defaultLoadBase() {
|
|
156
|
+
const configPath = path.join(__dirname, '..', 'config', 'orchestration.yaml');
|
|
157
|
+
const content = fs.readFileSync(configPath, 'utf-8');
|
|
158
|
+
return parseYamlDocument(content);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// ─────────────────────────────────────────────────────────────
|
|
162
|
+
// resolveOrchestrationConfig — 主入口(T-007/T-008/T-009/T-010)
|
|
163
|
+
// ─────────────────────────────────────────────────────────────
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* 解析 orchestration 配置,合并 base + 项目级 overrides。
|
|
167
|
+
*
|
|
168
|
+
* @param {object} params
|
|
169
|
+
* @param {string} params.projectRoot - 项目根目录(用于定位 .specify/orchestration-overrides.yaml)
|
|
170
|
+
* @param {Function} [params._loadBase] - 可选注入函数,覆盖默认 base 加载路径(D-PLAN-4,测试支持)
|
|
171
|
+
* 签名:() => object(同步或异步均可,返回解析后的 YAML 对象)
|
|
172
|
+
* 测试中可注入抛错函数来模拟 base 不可读场景。
|
|
173
|
+
* @param {Function} [params._loadOverrides] - 可选注入函数,覆盖默认 overrides 加载路径(测试支持)
|
|
174
|
+
* 签名:() => object(同步或异步均可,返回解析后的 YAML 对象,null 表示无 overrides)
|
|
175
|
+
* 测试中可注入内联 YAML 对象来避免创建临时文件。
|
|
176
|
+
*
|
|
177
|
+
* @returns {Promise<{
|
|
178
|
+
* mergedConfig: object,
|
|
179
|
+
* baseConfig: object,
|
|
180
|
+
* fieldSources: object,
|
|
181
|
+
* diagnostics: Array<{level: string, code: string, message: string, context?: object}>,
|
|
182
|
+
* isFallback: boolean,
|
|
183
|
+
* isBaseInvalid: boolean
|
|
184
|
+
* }>}
|
|
185
|
+
*/
|
|
186
|
+
export async function resolveOrchestrationConfig({ projectRoot, _loadBase, _loadOverrides }) {
|
|
187
|
+
const diagnostics = [];
|
|
188
|
+
|
|
189
|
+
// ── 步骤 1:加载 base config ───────────────────────────────
|
|
190
|
+
let rawBase;
|
|
191
|
+
try {
|
|
192
|
+
rawBase = _loadBase ? await _loadBase() : defaultLoadBase();
|
|
193
|
+
} catch (error) {
|
|
194
|
+
// base 不可读:记录 error 级别 diagnostic,使用 fallback
|
|
195
|
+
diagnostics.push(createDiagnostic(
|
|
196
|
+
'error',
|
|
197
|
+
'orchestration.base-invalid',
|
|
198
|
+
`[orchestration] base 配置文件加载失败:${error.message}`,
|
|
199
|
+
));
|
|
200
|
+
const fallbackConfig = generateFallbackConfig();
|
|
201
|
+
return {
|
|
202
|
+
mergedConfig: fallbackConfig,
|
|
203
|
+
baseConfig: fallbackConfig,
|
|
204
|
+
fieldSources: {},
|
|
205
|
+
diagnostics,
|
|
206
|
+
isFallback: true,
|
|
207
|
+
isBaseInvalid: true,
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// ── 步骤 2:base Zod 校验 ──────────────────────────────────
|
|
212
|
+
const baseParseResult = orchestrationBaseSchema.safeParse(rawBase);
|
|
213
|
+
if (!baseParseResult.success) {
|
|
214
|
+
const issues = baseParseResult.error.issues.map(formatZodIssue).join('; ');
|
|
215
|
+
diagnostics.push(createDiagnostic(
|
|
216
|
+
'error',
|
|
217
|
+
'orchestration.base-invalid',
|
|
218
|
+
`[orchestration] base 配置校验失败:${issues}`,
|
|
219
|
+
));
|
|
220
|
+
const fallbackConfig = generateFallbackConfig();
|
|
221
|
+
return {
|
|
222
|
+
mergedConfig: fallbackConfig,
|
|
223
|
+
baseConfig: fallbackConfig,
|
|
224
|
+
fieldSources: {},
|
|
225
|
+
diagnostics,
|
|
226
|
+
isFallback: true,
|
|
227
|
+
isBaseInvalid: true,
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
const baseConfig = baseParseResult.data;
|
|
231
|
+
|
|
232
|
+
// ── 步骤 3:检查 overrides 文件是否存在 ────────────────────
|
|
233
|
+
// _loadOverrides 注入时跳过文件系统检查,直接进入步骤 4
|
|
234
|
+
if (!_loadOverrides) {
|
|
235
|
+
const overridesPath = path.join(projectRoot, '.specify', 'orchestration-overrides.yaml');
|
|
236
|
+
if (!fs.existsSync(overridesPath)) {
|
|
237
|
+
// 不存在:静默返回 base,无 diagnostic(spec AC-007/AC-015)
|
|
238
|
+
const baseFieldSources = buildBaseOnlyFieldSources(baseConfig);
|
|
239
|
+
return {
|
|
240
|
+
mergedConfig: baseConfig,
|
|
241
|
+
baseConfig,
|
|
242
|
+
fieldSources: baseFieldSources,
|
|
243
|
+
diagnostics,
|
|
244
|
+
isFallback: false,
|
|
245
|
+
isBaseInvalid: false,
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// ── 步骤 4:读取并解析 overrides YAML ─────────────────────
|
|
251
|
+
// AC-4.1/4.2:区分 _loadOverrides 注入函数抛错(loader-error)与文件路径方式抛错(parse-error)
|
|
252
|
+
let rawOverrides;
|
|
253
|
+
if (_loadOverrides) {
|
|
254
|
+
try {
|
|
255
|
+
rawOverrides = await _loadOverrides();
|
|
256
|
+
} catch (loaderError) {
|
|
257
|
+
// AC-4.1:注入函数抛错 → loader-error(语义不同于 YAML 解析失败)
|
|
258
|
+
diagnostics.push(createDiagnostic(
|
|
259
|
+
'warning',
|
|
260
|
+
'orchestration-overrides.loader-error',
|
|
261
|
+
`[orchestration-overrides] overrides loader 失败,将使用 base 配置:${loaderError.message}`,
|
|
262
|
+
));
|
|
263
|
+
const baseFieldSources = buildBaseOnlyFieldSources(baseConfig);
|
|
264
|
+
return {
|
|
265
|
+
mergedConfig: baseConfig,
|
|
266
|
+
baseConfig,
|
|
267
|
+
fieldSources: baseFieldSources,
|
|
268
|
+
diagnostics,
|
|
269
|
+
isFallback: true,
|
|
270
|
+
isBaseInvalid: false,
|
|
271
|
+
};
|
|
272
|
+
}
|
|
273
|
+
} else {
|
|
274
|
+
try {
|
|
275
|
+
const overridesPath = path.join(projectRoot, '.specify', 'orchestration-overrides.yaml');
|
|
276
|
+
const content = fs.readFileSync(overridesPath, 'utf-8');
|
|
277
|
+
rawOverrides = parseYamlDocument(content);
|
|
278
|
+
} catch (error) {
|
|
279
|
+
// AC-4.2:文件 IO 或 YAML 语法错误 → parse-error code,降级到 base
|
|
280
|
+
diagnostics.push(createDiagnostic(
|
|
281
|
+
'warning',
|
|
282
|
+
'orchestration-overrides.parse-error',
|
|
283
|
+
`[orchestration-overrides] YAML 解析失败,将使用 base 配置:${error.message}`,
|
|
284
|
+
));
|
|
285
|
+
const baseFieldSources = buildBaseOnlyFieldSources(baseConfig);
|
|
286
|
+
return {
|
|
287
|
+
mergedConfig: baseConfig,
|
|
288
|
+
baseConfig,
|
|
289
|
+
fieldSources: baseFieldSources,
|
|
290
|
+
diagnostics,
|
|
291
|
+
isFallback: true,
|
|
292
|
+
isBaseInvalid: false,
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// fix(139): 区分两种"非合法对象"场景以提供更准确的 diagnostic
|
|
298
|
+
// - 文件路径:合法空 YAML 文件(simple-yaml 解析为 null)→ 静默返 base(保持原行为)
|
|
299
|
+
// - 注入路径:loader 函数返非纯对象(null/undefined/标量/数组/Date/Map 等)违反契约 → 发 loader-error
|
|
300
|
+
//
|
|
301
|
+
// 守卫用 Object.prototype.toString.call() 精确识别"纯对象"([object Object]),
|
|
302
|
+
// 排除数组、Date、Map、Set 等 typeof === 'object' 的非纯对象类型,否则它们会
|
|
303
|
+
// 绕过守卫被 schema 校验误判为 schema-fallback(Codex 对抗审查 fix/139 角度 3)。
|
|
304
|
+
const isPlainObject = rawOverrides !== null
|
|
305
|
+
&& rawOverrides !== undefined
|
|
306
|
+
&& Object.prototype.toString.call(rawOverrides) === '[object Object]';
|
|
307
|
+
|
|
308
|
+
if (!isPlainObject) {
|
|
309
|
+
// 描述具体类型用于诊断 message(替代误导性的 typeof,避免 null 显示为 "object")
|
|
310
|
+
const typeName = rawOverrides === null
|
|
311
|
+
? 'null'
|
|
312
|
+
: Array.isArray(rawOverrides)
|
|
313
|
+
? 'Array'
|
|
314
|
+
: Object.prototype.toString.call(rawOverrides).slice(8, -1); // [object X] → X
|
|
315
|
+
|
|
316
|
+
if (_loadOverrides) {
|
|
317
|
+
diagnostics.push(createDiagnostic(
|
|
318
|
+
'warning',
|
|
319
|
+
'orchestration-overrides.loader-error',
|
|
320
|
+
`[orchestration-overrides] _loadOverrides 注入函数返回非纯对象(${typeName}),将使用 base 配置`,
|
|
321
|
+
));
|
|
322
|
+
const baseFieldSources = buildBaseOnlyFieldSources(baseConfig);
|
|
323
|
+
return {
|
|
324
|
+
mergedConfig: baseConfig,
|
|
325
|
+
baseConfig,
|
|
326
|
+
fieldSources: baseFieldSources,
|
|
327
|
+
diagnostics,
|
|
328
|
+
isFallback: true,
|
|
329
|
+
isBaseInvalid: false,
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
// 文件路径下空文件:静默返回 base(合法空 YAML 用法)
|
|
333
|
+
const baseFieldSources = buildBaseOnlyFieldSources(baseConfig);
|
|
334
|
+
return {
|
|
335
|
+
mergedConfig: baseConfig,
|
|
336
|
+
baseConfig,
|
|
337
|
+
fieldSources: baseFieldSources,
|
|
338
|
+
diagnostics,
|
|
339
|
+
isFallback: false,
|
|
340
|
+
isBaseInvalid: false,
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// ── 步骤 5:比对 version(AC-022)────────────────────────
|
|
345
|
+
// CHK-SR-13 修复:仅当 overrides 显式声明 version 且与 base 不一致时触发 version-mismatch。
|
|
346
|
+
// version 字段缺失(undefined)时跳过本步骤,让步骤 7 的 Zod schema 校验报告"version 必填"
|
|
347
|
+
// → 触发 schema-fallback。这避免缺失字段被误诊为版本不一致,diagnostic 语义更精确。
|
|
348
|
+
if (rawOverrides.version !== undefined && rawOverrides.version !== baseConfig.version) {
|
|
349
|
+
diagnostics.push(createDiagnostic(
|
|
350
|
+
'warning',
|
|
351
|
+
'orchestration-overrides.version-mismatch',
|
|
352
|
+
`[orchestration-overrides] version 不一致:base="${baseConfig.version}",overrides="${rawOverrides.version}";将使用 base 配置`,
|
|
353
|
+
{ baseVersion: baseConfig.version, overridesVersion: rawOverrides.version },
|
|
354
|
+
));
|
|
355
|
+
const baseFieldSources = buildBaseOnlyFieldSources(baseConfig);
|
|
356
|
+
return {
|
|
357
|
+
mergedConfig: baseConfig,
|
|
358
|
+
baseConfig,
|
|
359
|
+
fieldSources: baseFieldSources,
|
|
360
|
+
diagnostics,
|
|
361
|
+
isFallback: true,
|
|
362
|
+
isBaseInvalid: false,
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// ── 步骤 6:检测并 strip unsupported 字段(AC-023)────────
|
|
367
|
+
const rawOverridesForStrip = { ...rawOverrides };
|
|
368
|
+
if (rawOverridesForStrip.parallel_groups !== undefined) {
|
|
369
|
+
diagnostics.push(createDiagnostic(
|
|
370
|
+
'warning',
|
|
371
|
+
'orchestration-overrides.unsupported-field',
|
|
372
|
+
'[orchestration-overrides] parallel_groups 字段在当前版本不支持覆盖,已忽略;其余合法字段照常生效',
|
|
373
|
+
));
|
|
374
|
+
// 删除 parallel_groups,其余字段继续处理
|
|
375
|
+
delete rawOverridesForStrip.parallel_groups;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
// ── 步骤 7:orchestrationOverridesSchema 校验 ──────────────
|
|
379
|
+
const overridesParseResult = orchestrationOverridesSchema.safeParse(rawOverridesForStrip);
|
|
380
|
+
if (!overridesParseResult.success) {
|
|
381
|
+
const issues = overridesParseResult.error.issues.map(formatZodIssue).join('; ');
|
|
382
|
+
// AC-2.1/2.2/2.3:当 issue 命中 modes.<mode>.phases.* 路径时,附加 generate-template hint。
|
|
383
|
+
// 检测路径结构 modes.<m>.phases.*(path[0]==='modes' && path[2]==='phases' && length>=4)
|
|
384
|
+
// 注意:将来若 overridesSchema 调整 phases 嵌套层级,需要同步更新此处路径判断。
|
|
385
|
+
//
|
|
386
|
+
// fix(139):多 mode 同时出 phase 字段错误时,枚举所有命中的 mode 名(去重)
|
|
387
|
+
// 避免单一 .find() 取第一个时 hint 误导:用户先看到 story 错误但 hint 却建议
|
|
388
|
+
// generate-template fix(取决于 Zod issue 顺序,按 schema shape 而非 YAML 顺序)
|
|
389
|
+
const hitModes = new Set(
|
|
390
|
+
overridesParseResult.error.issues
|
|
391
|
+
.filter(iss => Array.isArray(iss.path) && iss.path.length >= 4
|
|
392
|
+
&& iss.path[0] === 'modes' && iss.path[2] === 'phases')
|
|
393
|
+
.map(iss => iss.path[1])
|
|
394
|
+
);
|
|
395
|
+
let message = `[orchestration-overrides] overrides 校验失败,将使用 base 配置:${issues}`;
|
|
396
|
+
if (hitModes.size > 0) {
|
|
397
|
+
const modeList = [...hitModes].sort().join(' / ');
|
|
398
|
+
const example = [...hitModes].sort()[0];
|
|
399
|
+
message += `\nhint: 运行 \`orchestrator-cli generate-template ${example}\` 获取含所有必填字段的完整 phase 模板(命中 mode: ${modeList})`;
|
|
400
|
+
}
|
|
401
|
+
diagnostics.push(createDiagnostic(
|
|
402
|
+
'warning',
|
|
403
|
+
'orchestration-overrides.schema-fallback',
|
|
404
|
+
message,
|
|
405
|
+
));
|
|
406
|
+
const baseFieldSources = buildBaseOnlyFieldSources(baseConfig);
|
|
407
|
+
return {
|
|
408
|
+
mergedConfig: baseConfig,
|
|
409
|
+
baseConfig,
|
|
410
|
+
fieldSources: baseFieldSources,
|
|
411
|
+
diagnostics,
|
|
412
|
+
isFallback: true,
|
|
413
|
+
isBaseInvalid: false,
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
const overridesConfig = overridesParseResult.data;
|
|
417
|
+
|
|
418
|
+
// ── 步骤 8:合并 base + overrides ─────────────────────────
|
|
419
|
+
const { merged, fieldSources } = mergeOrchestrationConfigs(baseConfig, overridesConfig);
|
|
420
|
+
|
|
421
|
+
// ── 步骤 9:防御性校验合并结果(orchestrationMergedSchema)─
|
|
422
|
+
const mergedParseResult = orchestrationMergedSchema.safeParse(merged);
|
|
423
|
+
if (!mergedParseResult.success) {
|
|
424
|
+
// 理论上不应到达此处;若到达,记录 error 并降级到 base
|
|
425
|
+
const issues = mergedParseResult.error.issues.map(formatZodIssue).join('; ');
|
|
426
|
+
diagnostics.push(createDiagnostic(
|
|
427
|
+
'error',
|
|
428
|
+
'orchestration.base-invalid',
|
|
429
|
+
`[orchestration] 合并结果校验失败(意外错误),将使用 base 配置:${issues}`,
|
|
430
|
+
));
|
|
431
|
+
const baseFieldSources = buildBaseOnlyFieldSources(baseConfig);
|
|
432
|
+
return {
|
|
433
|
+
mergedConfig: baseConfig,
|
|
434
|
+
baseConfig,
|
|
435
|
+
fieldSources: baseFieldSources,
|
|
436
|
+
diagnostics,
|
|
437
|
+
isFallback: true,
|
|
438
|
+
isBaseInvalid: false,
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// ── 步骤 10:发出 mode-overridden info diagnostic(T-010)──
|
|
443
|
+
for (const modeKey of Object.keys(overridesConfig.modes || {})) {
|
|
444
|
+
diagnostics.push(createDiagnostic(
|
|
445
|
+
'info',
|
|
446
|
+
'orchestration-overrides.mode-overridden',
|
|
447
|
+
`[orchestration-overrides] mode "${modeKey}" 已被项目级 overrides 整段替换`,
|
|
448
|
+
{ mode: modeKey },
|
|
449
|
+
));
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
return {
|
|
453
|
+
mergedConfig: mergedParseResult.data,
|
|
454
|
+
baseConfig,
|
|
455
|
+
fieldSources,
|
|
456
|
+
diagnostics,
|
|
457
|
+
isFallback: false,
|
|
458
|
+
isBaseInvalid: false,
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
// ─────────────────────────────────────────────────────────────
|
|
463
|
+
// 辅助:生成 base-only fieldSources
|
|
464
|
+
// ─────────────────────────────────────────────────────────────
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* 当没有 overrides 时,生成所有字段都来自 base 的 fieldSources
|
|
468
|
+
* @param {object} baseConfig
|
|
469
|
+
* @returns {object}
|
|
470
|
+
*/
|
|
471
|
+
function buildBaseOnlyFieldSources(baseConfig) {
|
|
472
|
+
const fieldSources = {};
|
|
473
|
+
for (const modeKey of Object.keys(baseConfig.modes || {})) {
|
|
474
|
+
fieldSources[`modes.${modeKey}`] = 'base';
|
|
475
|
+
}
|
|
476
|
+
for (const gateId of Object.keys(baseConfig.gates || {})) {
|
|
477
|
+
for (const field of Object.keys((baseConfig.gates[gateId]) || {})) {
|
|
478
|
+
fieldSources[`gates.${gateId}.${field}`] = 'base';
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
for (const field of Object.keys(baseConfig.parallel_scheduling || {})) {
|
|
482
|
+
fieldSources[`parallel_scheduling.${field}`] = 'base';
|
|
483
|
+
}
|
|
484
|
+
return fieldSources;
|
|
485
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* orchestrator-fallback.mjs
|
|
3
|
+
* 当 orchestration.yaml 缺失或损坏时的内置后备配置
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export function generateFallbackConfig() {
|
|
7
|
+
return {
|
|
8
|
+
version: '1.0-fallback',
|
|
9
|
+
parallel_scheduling: {
|
|
10
|
+
max_concurrent_tasks: 2,
|
|
11
|
+
fallback_to_serial_on_failure: true,
|
|
12
|
+
fallback_reason_log: true,
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
gates: {
|
|
16
|
+
GATE_RESEARCH: { type: 'research_checkpoint', applicable_modes: ['feature'], description: '调研完整性门禁', default_behavior: 'auto', severity: 'non_critical', hard_gate_modes: [] },
|
|
17
|
+
GATE_DESIGN: { type: 'design_checkpoint', applicable_modes: ['feature', 'story', 'implement', 'fix', 'resume', 'sync', 'doc'], description: '需求规范质量门禁', default_behavior: 'always', severity: 'critical', hard_gate_modes: ['feature'] },
|
|
18
|
+
GATE_ANALYSIS: { type: 'quality_analysis', applicable_modes: ['feature', 'implement'], description: '设计一致性分析门禁', default_behavior: 'on_failure', severity: 'non_critical', hard_gate_modes: [] },
|
|
19
|
+
GATE_TASKS: { type: 'task_generation', applicable_modes: ['feature', 'story', 'implement', 'fix', 'resume', 'sync', 'doc'], description: '任务分解完整性门禁', default_behavior: 'always', severity: 'critical', hard_gate_modes: [] },
|
|
20
|
+
GATE_IMPLEMENT_MID: { type: 'implementation_checkpoint', applicable_modes: ['implement'], description: '实现中期检查门禁', default_behavior: 'on_failure', severity: 'non_critical', hard_gate_modes: [], insertion_point: 'after_task_50_percent' },
|
|
21
|
+
GATE_VERIFY: { type: 'verification_checkpoint', applicable_modes: ['feature', 'story', 'implement', 'fix', 'resume', 'sync', 'doc'], description: '最终验证综合门禁', default_behavior: 'always', severity: 'critical', hard_gate_modes: [] },
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
parallel_groups: {
|
|
25
|
+
RESEARCH_GROUP: { members: ['1a', '1b'], convergence_point: '1c', fallback_strategy: 'serial_fallback', max_concurrent: 2 },
|
|
26
|
+
DESIGN_PREP_GROUP: { members: ['clarify', 'quality_checklist'], convergence_point: '3.5', fallback_strategy: 'serial_fallback', max_concurrent: 2 },
|
|
27
|
+
VERIFY_GROUP: { members: ['7a', '7b'], convergence_point: '7c', fallback_strategy: 'serial_fallback', max_concurrent: 2 },
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
modes: {
|
|
31
|
+
feature: {
|
|
32
|
+
name: 'Feature Mode - Fallback', description: 'Minimal feature mode',
|
|
33
|
+
phases: [
|
|
34
|
+
{ id: '0', name: 'constitution_check', display_name: '项目宪法检查', agent: null, agent_mode: 'inline', gates_before: [], gates_after: [], conditional: null, skip_if_exists: null, is_critical: false },
|
|
35
|
+
{ id: '2', name: 'specify', display_name: '需求规范', agent: 'specify', agent_mode: 'single', gates_before: [], gates_after: ['GATE_DESIGN'], conditional: null, skip_if_exists: 'spec.md', is_critical: true },
|
|
36
|
+
{ id: '4', name: 'plan', display_name: '技术规划', agent: 'plan', agent_mode: 'single', gates_before: ['GATE_DESIGN'], gates_after: [], conditional: null, skip_if_exists: 'plan.md', is_critical: true },
|
|
37
|
+
{ id: '5', name: 'tasks', display_name: '任务分解', agent: 'tasks', agent_mode: 'single', gates_before: [], gates_after: ['GATE_TASKS'], conditional: null, skip_if_exists: 'tasks.md', is_critical: true },
|
|
38
|
+
{ id: '6', name: 'implement', display_name: '代码实现', agent: 'implement', agent_mode: 'single', gates_before: [], gates_after: [], conditional: null, skip_if_exists: null, is_critical: true },
|
|
39
|
+
{ id: '7c', name: 'verify', display_name: '验证与交付', agent: 'verify', agent_mode: 'single', gates_before: [], gates_after: ['GATE_VERIFY'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
story: {
|
|
43
|
+
name: 'Story Mode - Fallback', description: 'Minimal story mode',
|
|
44
|
+
phases: [
|
|
45
|
+
{ id: '1', name: 'specify', display_name: '需求规范', agent: 'specify', agent_mode: 'single', gates_before: [], gates_after: ['GATE_DESIGN'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
46
|
+
{ id: '2', name: 'tasks', display_name: '任务分解', agent: 'tasks', agent_mode: 'single', gates_before: [], gates_after: ['GATE_TASKS'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
47
|
+
{ id: '3', name: 'implement', display_name: '代码实现', agent: 'implement', agent_mode: 'single', gates_before: [], gates_after: [], conditional: null, skip_if_exists: null, is_critical: true },
|
|
48
|
+
{ id: '4', name: 'verify', display_name: '验证与交付', agent: 'verify', agent_mode: 'single', gates_before: [], gates_after: ['GATE_VERIFY'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
implement: {
|
|
52
|
+
name: 'Implement Mode - Fallback', description: 'Minimal implement mode',
|
|
53
|
+
phases: [
|
|
54
|
+
{ id: '1', name: 'clarify', display_name: '需求澄清', agent: 'clarify', agent_mode: 'single', gates_before: [], gates_after: [], conditional: null, skip_if_exists: null, is_critical: false },
|
|
55
|
+
{ id: '2', name: 'tasks', display_name: '任务分解', agent: 'tasks', agent_mode: 'single', gates_before: [], gates_after: ['GATE_TASKS'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
56
|
+
{ id: '3', name: 'implement', display_name: '代码实现', agent: 'implement', agent_mode: 'single', gates_before: [], gates_after: [], conditional: null, skip_if_exists: null, is_critical: true },
|
|
57
|
+
{ id: '4', name: 'verify', display_name: '验证与交付', agent: 'verify', agent_mode: 'single', gates_before: [], gates_after: ['GATE_VERIFY'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
fix: {
|
|
61
|
+
name: 'Fix Mode - Fallback', description: 'Minimal fix mode',
|
|
62
|
+
phases: [
|
|
63
|
+
{ id: '1', name: 'implement', display_name: '代码修复', agent: 'implement', agent_mode: 'single', gates_before: [], gates_after: [], conditional: null, skip_if_exists: null, is_critical: true },
|
|
64
|
+
{ id: '2', name: 'verify', display_name: '验证与交付', agent: 'verify', agent_mode: 'single', gates_before: [], gates_after: ['GATE_VERIFY'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
resume: {
|
|
68
|
+
name: 'Resume Mode - Fallback', description: 'Minimal resume mode',
|
|
69
|
+
phases: [
|
|
70
|
+
{ id: '1', name: 'implement', display_name: '代码实现', agent: 'implement', agent_mode: 'single', gates_before: [], gates_after: [], conditional: null, skip_if_exists: null, is_critical: true },
|
|
71
|
+
{ id: '2', name: 'verify', display_name: '验证与交付', agent: 'verify', agent_mode: 'single', gates_before: [], gates_after: ['GATE_VERIFY'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
sync: {
|
|
75
|
+
name: 'Sync Mode - Fallback', description: 'Minimal sync mode',
|
|
76
|
+
phases: [
|
|
77
|
+
{ id: '1', name: 'sync', display_name: '制品同步', agent: 'sync', agent_mode: 'single', gates_before: [], gates_after: ['GATE_TASKS'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
78
|
+
{ id: '2', name: 'verify', display_name: '质量验证', agent: 'verify', agent_mode: 'single', gates_before: [], gates_after: ['GATE_VERIFY'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
doc: {
|
|
82
|
+
name: 'Doc Mode - Fallback', description: 'Minimal doc mode',
|
|
83
|
+
phases: [
|
|
84
|
+
{ id: '1', name: 'doc', display_name: '文档生成', agent: 'doc', agent_mode: 'single', gates_before: [], gates_after: ['GATE_TASKS'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
85
|
+
{ id: '2', name: 'verify', display_name: '质量验证', agent: 'verify', agent_mode: 'single', gates_before: [], gates_after: ['GATE_VERIFY'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
refactor: {
|
|
89
|
+
name: 'Refactor Mode - Fallback', description: 'Minimal refactor mode',
|
|
90
|
+
phases: [
|
|
91
|
+
{ id: '1', name: 'impact_analysis', display_name: '影响分析', agent: 'refactor-plan', agent_mode: 'single', gates_before: [], gates_after: [], conditional: null, skip_if_exists: null, is_critical: true },
|
|
92
|
+
{ id: '2', name: 'batch_implement', display_name: '代码重构', agent: 'implement', agent_mode: 'single', gates_before: [], gates_after: [], conditional: null, skip_if_exists: null, is_critical: true },
|
|
93
|
+
{ id: '3', name: 'final_verify', display_name: '验证与交付', agent: 'verify', agent_mode: 'single', gates_before: [], gates_after: ['GATE_VERIFY'], conditional: null, skip_if_exists: null, is_critical: true },
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
}
|