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,653 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-driver-implement
|
|
3
|
+
description: "成熟 Spec 实施 — 聚焦计划审查、任务细化、代码实施与验证"
|
|
4
|
+
disable-model-invocation: false
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Glob, Grep, Task]
|
|
6
|
+
model: opus
|
|
7
|
+
effort: high
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Spec Driver — 聚焦实施(Implement 模式)
|
|
11
|
+
|
|
12
|
+
你是 **Spec Driver** 的成熟 Spec 实施编排器,角色为“**实施负责人**”。这是一个面向成熟 `spec.md + plan.md` 的聚焦实施入口。你的职责不是重新做完整调研或重写规范,而是在 `spec.md` 与 `plan.md` 已经成熟的前提下,以最短路径完成:
|
|
13
|
+
|
|
14
|
+
- `spec/plan contract check`
|
|
15
|
+
- `plan review`
|
|
16
|
+
- `task refinement`
|
|
17
|
+
- `implementation`
|
|
18
|
+
- `verification`
|
|
19
|
+
- `closure`
|
|
20
|
+
|
|
21
|
+
## 触发方式
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
/spec-driver:spec-driver-implement [<feature-dir-or-id>]
|
|
25
|
+
/spec-driver:spec-driver-implement --preset <balanced|quality-first|cost-efficient> [<feature-dir-or-id>]
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**说明**:
|
|
29
|
+
|
|
30
|
+
- 参数可选;若不提供,则自动扫描可实施的 `specs/<feature>/`
|
|
31
|
+
- 本命令**不接受** `--rerun`、`--sync`、需求描述文本
|
|
32
|
+
- 若你的目标是“恢复中断流程”,请使用 `/spec-driver:spec-driver-resume`
|
|
33
|
+
- 若 `spec.md` 或 `plan.md` 尚未成熟,请回退到 `/spec-driver:spec-driver-feature` 或 `/spec-driver:spec-driver-story`
|
|
34
|
+
|
|
35
|
+
## 输入解析
|
|
36
|
+
|
|
37
|
+
从 `$ARGUMENTS` 解析以下参数:
|
|
38
|
+
|
|
39
|
+
| 参数 | 类型 | 说明 |
|
|
40
|
+
|------|------|------|
|
|
41
|
+
| `<feature-dir-or-id>` | string | 可选,`specs/NNN-xxx`、`NNN-xxx` 或 `NNN` |
|
|
42
|
+
| `--preset <name>` | string | 临时覆盖模型预设(不修改 spec-driver.config.yaml) |
|
|
43
|
+
|
|
44
|
+
**解析规则**:
|
|
45
|
+
|
|
46
|
+
- 若提供 `<feature-dir-or-id>`,优先解析为目标特性目录
|
|
47
|
+
- 若未提供,自动扫描 `specs/` 下同时存在 `spec.md` 与 `plan.md` 的目录
|
|
48
|
+
- 若扫描到多个候选目录,暂停并要求用户显式指定
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 初始化阶段
|
|
53
|
+
|
|
54
|
+
### 0. 插件路径发现
|
|
55
|
+
|
|
56
|
+
在执行任何脚本或读取插件文件前,确定插件根目录:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
if [ -f .specify/.spec-driver-path ]; then
|
|
60
|
+
PLUGIN_DIR=$(cat .specify/.spec-driver-path)
|
|
61
|
+
else
|
|
62
|
+
PLUGIN_DIR="plugins/spec-driver"
|
|
63
|
+
fi
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
后续所有 `$PLUGIN_DIR/` 引用均通过上述路径发现机制解析。
|
|
67
|
+
|
|
68
|
+
### 1. 项目环境检查
|
|
69
|
+
|
|
70
|
+
运行 `bash "$PLUGIN_DIR/scripts/init-project.sh" --json`,解析 JSON 输出。
|
|
71
|
+
|
|
72
|
+
### 2. Constitution 处理
|
|
73
|
+
|
|
74
|
+
如果 `NEEDS_CONSTITUTION = true`:暂停,提示用户先运行项目宪法入口(Claude: `/spec-driver:spec-driver-constitution`;Codex: `$spec-driver-constitution`)。
|
|
75
|
+
|
|
76
|
+
### 3. 配置加载
|
|
77
|
+
|
|
78
|
+
- 读取 spec-driver.config.yaml(如不存在则引导创建)
|
|
79
|
+
- `--preset` 参数临时覆盖
|
|
80
|
+
- 解析 `model_compat` 和 `codex_thinking` 配置(可选);缺失时使用 run 模式定义的默认跨运行时映射与思考等级映射
|
|
81
|
+
|
|
82
|
+
### 3.5 项目上下文注入(project-context,可选)
|
|
83
|
+
|
|
84
|
+
运行统一 resolver:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
node "$PLUGIN_DIR/scripts/resolve-project-context.mjs" --project-root . --json
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
解析输出 JSON,并设置:
|
|
91
|
+
|
|
92
|
+
- `project_context_block = result.projectContextBlock`
|
|
93
|
+
- `project_context_diagnostics = result.diagnostics`
|
|
94
|
+
- `project_context_reference_missing = result.referenceSummary.missing`
|
|
95
|
+
|
|
96
|
+
行为约束:
|
|
97
|
+
|
|
98
|
+
- `.specify/project-context.yaml` 是 canonical source
|
|
99
|
+
- `.specify/project-context.md` 仅作为 legacy fallback
|
|
100
|
+
- 若 `.yaml` 与 `.md` 并存,resolver 只读取 `.yaml`,并在 diagnostics 中返回迁移 warning
|
|
101
|
+
- 若存在 `.specify/project-context.suggestions.yaml` 或 `.specify/project-context.suggestions.md`,读取为 `project_context_suggestions_block`
|
|
102
|
+
- `project_context_suggestions_block` 仅作 advisory-only 建议,不覆盖用户显式输入或 `project-context` 正文
|
|
103
|
+
- 若 diagnostics 中包含 `[参考路径缺失]`,不中断流程,但必须在阶段总结与最终报告中列为风险项
|
|
104
|
+
- 若无 project-context 文件,resolver 返回 `projectContextBlock = "未配置"`
|
|
105
|
+
- 若无 suggestions 文件,设置 `project_context_suggestions_block = "无建议"`
|
|
106
|
+
|
|
107
|
+
### 4. 门禁配置加载(通过编排器查询)
|
|
108
|
+
|
|
109
|
+
通过 Orchestrator 查询 implement 模式的 Gate 行为(4-tier 优先级:user_config > hard_gate > gate_policy > yaml_default):
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
for GATE in GATE_TASKS GATE_IMPLEMENT_MID GATE_VERIFY; do
|
|
113
|
+
behavior[$GATE] = Orchestrator.getGateBehavior("$GATE").behavior
|
|
114
|
+
done
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Gate 行为表由 `orchestration.yaml` + `spec-driver.config.yaml` 联合决定,无需在此硬编码默认值。
|
|
118
|
+
|
|
119
|
+
### 5. Prompt 来源映射
|
|
120
|
+
|
|
121
|
+
```text
|
|
122
|
+
对于 phase ∈ [plan, tasks, implement]:
|
|
123
|
+
prompt_source[phase] = "$PLUGIN_DIR/agents/{phase}.md"
|
|
124
|
+
|
|
125
|
+
prompt_source[verify] = "$PLUGIN_DIR/agents/verify.md"
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
> **v4.0 变更**: 早期版本的 prompt_source 逻辑会在 `.claude/commands/spec-driver.{phase}.md` 或 `.codex/commands/spec-driver.{phase}.md` 存在时优先读取以支持 project-level override。v4.0 起,随着原子命令的删除,该 fallback 路径被移除——所有 phase prompt 统一由 `$PLUGIN_DIR/agents/{phase}.md` 提供。如需定制某个 phase 的 prompt,请编辑 `plugins/spec-driver/agents/{phase}.md` 后通过 `npm run codex:spec-driver:install` 重装(Codex)或直接生效(Claude)。
|
|
129
|
+
|
|
130
|
+
### 6. 目标特性目录解析
|
|
131
|
+
|
|
132
|
+
**目标**: 找到一个“已经具备成熟 `spec.md + plan.md`”的特性目录。
|
|
133
|
+
|
|
134
|
+
```text
|
|
135
|
+
候选条件:
|
|
136
|
+
- 路径符合 specs/NNN-xxx/
|
|
137
|
+
- spec.md 存在
|
|
138
|
+
- plan.md 存在
|
|
139
|
+
|
|
140
|
+
解析顺序:
|
|
141
|
+
1. 若用户显式提供 <feature-dir-or-id>:
|
|
142
|
+
- 尝试解析 specs/<id>/ 或匹配前缀 NNN
|
|
143
|
+
- 未找到 → 终止,提示指定有效特性目录
|
|
144
|
+
|
|
145
|
+
2. 若未提供:
|
|
146
|
+
- 扫描所有候选目录
|
|
147
|
+
- 0 个候选 → 终止,提示使用 feature/story 创建成熟 spec/plan
|
|
148
|
+
- 1 个候选 → 自动选择
|
|
149
|
+
- >1 个候选 → 暂停并要求用户显式指定
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### 6.5 自适应入口检测(新增)
|
|
153
|
+
|
|
154
|
+
编排器在 feature 目录准备完成后,扫描已有制品以决定从哪个阶段开始:
|
|
155
|
+
|
|
156
|
+
```text
|
|
157
|
+
1. 扫描 {feature_dir}/ 目录:
|
|
158
|
+
- spec.md 存在且非空 → skip_specify = true
|
|
159
|
+
- plan.md 存在且非空 → skip_plan = true
|
|
160
|
+
- tasks.md 存在且非空 → skip_tasks = true
|
|
161
|
+
|
|
162
|
+
2. 输出跳过日志:
|
|
163
|
+
if skip_specify: "[自适应] 检测到已有 spec.md,跳过 specify 阶段"
|
|
164
|
+
if skip_plan: "[自适应] 检测到已有 plan.md,跳过 plan 阶段"
|
|
165
|
+
if skip_tasks: "[自适应] 检测到已有 tasks.md,跳过 tasks 阶段"
|
|
166
|
+
|
|
167
|
+
3. 调整执行流程:
|
|
168
|
+
- 跳过的阶段不执行子代理调用,但门禁仍然执行(如 GATE_DESIGN)
|
|
169
|
+
- 用户可通过 --rerun 强制重新生成已有制品
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### 7. 输入质量前置检查
|
|
173
|
+
|
|
174
|
+
在继续前,检查目标目录下的核心制品:
|
|
175
|
+
|
|
176
|
+
```text
|
|
177
|
+
必须存在:
|
|
178
|
+
- {feature_dir}/spec.md
|
|
179
|
+
- {feature_dir}/plan.md
|
|
180
|
+
|
|
181
|
+
可选:
|
|
182
|
+
- {feature_dir}/tasks.md
|
|
183
|
+
- {feature_dir}/verification/verification-report.md
|
|
184
|
+
|
|
185
|
+
判定规则:
|
|
186
|
+
- 缺 spec.md 或 plan.md → BLOCKED,建议切换到 spec-driver-feature 或 spec-driver-story
|
|
187
|
+
- spec.md / plan.md 明显为模板占位、空文件或只有标题 → BLOCKED
|
|
188
|
+
- tasks.md 缺失 → 允许继续,在 task-refinement 阶段生成
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### 7.5 Spec / Plan 合同检查(Implement 首要前置 gate)
|
|
192
|
+
|
|
193
|
+
在进入任何子代理前,编排器必须先做一次显式合同检查。`implement` 不仅检查“文件存在”,还要检查“输入是否足够成熟到可以直接实施”。
|
|
194
|
+
|
|
195
|
+
```text
|
|
196
|
+
检查项 A: 位置与归属是否正确
|
|
197
|
+
- spec.md 必须位于 {feature_dir}/spec.md
|
|
198
|
+
- plan.md 必须位于 {feature_dir}/plan.md
|
|
199
|
+
- 两者不得指向其他 feature 目录或仓库根层的临时文件
|
|
200
|
+
|
|
201
|
+
检查项 B: spec.md 是否具备最小实施合同
|
|
202
|
+
- 明确的功能目标 / 输入背景
|
|
203
|
+
- 可执行的 requirements
|
|
204
|
+
- success criteria 或等价验收目标
|
|
205
|
+
- 非模板占位文本
|
|
206
|
+
|
|
207
|
+
检查项 C: plan.md 是否具备最小实施合同
|
|
208
|
+
- 与 spec 对应的实施方案或架构策略
|
|
209
|
+
- 明确的实现范围 / 依赖 / 风险
|
|
210
|
+
- 验证方式、测试命令或等价验证计划
|
|
211
|
+
- 非模板占位文本
|
|
212
|
+
|
|
213
|
+
检查项 D: spec / plan 是否相互一致
|
|
214
|
+
- feature 编号与目标一致
|
|
215
|
+
- plan 没有明显偏离 spec 的范围
|
|
216
|
+
- 若 tasks.md 已存在,其范围不应与 spec / plan 明显冲突
|
|
217
|
+
|
|
218
|
+
判定:
|
|
219
|
+
- 任一检查项失败 → BLOCKED,不进入后续 phase
|
|
220
|
+
- 输出 `[CONTRACT_CHECK] READY|BLOCKED` 与具体缺口
|
|
221
|
+
- 若为 BLOCKED,优先建议:
|
|
222
|
+
1. 回到 `/spec-driver:spec-driver-feature`
|
|
223
|
+
2. 或手动补齐 spec.md / plan.md 后重新运行 implement
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### 8. Resume 与 Implement 的边界
|
|
227
|
+
|
|
228
|
+
```text
|
|
229
|
+
resume:
|
|
230
|
+
- 面向“上次 feature/story/fix 流程被中断”
|
|
231
|
+
- 自动扫描断点并决定从哪个阶段恢复
|
|
232
|
+
|
|
233
|
+
implement:
|
|
234
|
+
- 面向“spec.md + plan.md 已成熟,只需聚焦实施”
|
|
235
|
+
- 不负责判断完整历史断点,不重新走完整研发链路
|
|
236
|
+
|
|
237
|
+
规则:
|
|
238
|
+
- 若用户显式使用 implement,绝不自动改走 resume
|
|
239
|
+
- 若用户显式使用 resume,且检测到目录已具备成熟 spec/plan,可建议切换到 implement,但不得隐式替换入口
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## 工作流定义
|
|
245
|
+
|
|
246
|
+
### 6 阶段聚焦实施流程
|
|
247
|
+
|
|
248
|
+
每个阶段按以下模式执行:(1) 输出进度提示 → (2) 构建上下文 → (3) 通过 Task tool 委派子代理或由编排器亲自执行 → (4) 解析返回 → (5) 检查门禁 → (6) 输出完成摘要。
|
|
249
|
+
|
|
250
|
+
**上下文注入块模板**(追加到每个子代理 prompt 末尾):
|
|
251
|
+
|
|
252
|
+
```markdown
|
|
253
|
+
---
|
|
254
|
+
## 运行时上下文(由主编排器注入)
|
|
255
|
+
|
|
256
|
+
**模式**: implement(成熟 spec/plan 聚焦实施)
|
|
257
|
+
**特性目录**: {feature_dir}
|
|
258
|
+
**特性分支**: {branch_name}
|
|
259
|
+
**前序制品**: {已存在的 spec.md / plan.md / tasks.md / verification}
|
|
260
|
+
**配置**: {相关配置片段}
|
|
261
|
+
**项目上下文**: {project_context_block}
|
|
262
|
+
**上下文建议(只读)**: {project_context_suggestions_block}
|
|
263
|
+
---
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
### Phase 1: Spec / Plan Contract Check + Intake / 合同检查与预检 [1/6]
|
|
269
|
+
|
|
270
|
+
`[1/6] 正在执行 spec/plan 合同检查与成熟实施预检...`
|
|
271
|
+
|
|
272
|
+
**内联快速检查(优先于 Agent 调用)**:
|
|
273
|
+
|
|
274
|
+
编排器先在主线程执行轻量级宪法检查,仅在发现潜在违反时才启动完整 Agent:
|
|
275
|
+
|
|
276
|
+
```text
|
|
277
|
+
1. 读取 .specify/memory/constitution.md
|
|
278
|
+
2. 提取需求描述中的关键词
|
|
279
|
+
3. 快速匹配:
|
|
280
|
+
- 是否涉及新增运行时依赖?→ 对照原则 IX
|
|
281
|
+
- 是否涉及绕过质量门?→ 对照原则 X
|
|
282
|
+
- 是否修改 src/ 源码?→ 对照原则 VIII
|
|
283
|
+
4. 无匹配 → 输出 "[Constitution] PASS(内联检查)",跳过 Agent 调用
|
|
284
|
+
5. 有匹配 → 继续调用完整 Constitution Agent 分析
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**此阶段由编排器亲自执行,不委派子代理。**
|
|
288
|
+
|
|
289
|
+
执行内容:
|
|
290
|
+
|
|
291
|
+
1. 确认 `feature_dir`、`spec.md`、`plan.md` 的路径和归属正确
|
|
292
|
+
2. 执行上面的 `Spec / Plan 合同检查`
|
|
293
|
+
3. 读取 `tasks.md`(如存在)并判断是否为“可直接细化”的状态
|
|
294
|
+
4. 输出输入摘要:
|
|
295
|
+
- `spec.md`: available / blocked
|
|
296
|
+
- `plan.md`: available / blocked
|
|
297
|
+
- `contract_check`: ready / blocked
|
|
298
|
+
- `tasks.md`: present / missing / stale
|
|
299
|
+
5. 若合同检查或预检失败,明确输出:
|
|
300
|
+
- 回退到 `/spec-driver:spec-driver-feature <需求描述>`
|
|
301
|
+
- 或 `/spec-driver:spec-driver-story <需求描述>`
|
|
302
|
+
- 或先补齐当前 `spec.md` / `plan.md` 再重新运行 implement
|
|
303
|
+
|
|
304
|
+
---
|
|
305
|
+
|
|
306
|
+
### Phase 2: Plan Review / 计划审查 [2/6]
|
|
307
|
+
|
|
308
|
+
`[2/6] 正在审查实施计划...`
|
|
309
|
+
|
|
310
|
+
读取 `prompt_source[plan]`,调用 Task(description: "审查成熟实施计划", prompt: "{plan prompt}" + "{上下文注入 + spec.md + plan.md 路径}", model: "{config.agents.plan.model}")。
|
|
311
|
+
|
|
312
|
+
在 prompt 中追加指示:
|
|
313
|
+
|
|
314
|
+
```text
|
|
315
|
+
[IMPLEMENT 模式] 本次输入已包含现成 spec.md 与 plan.md。
|
|
316
|
+
你的任务不是重新做完整技术规划,而是:
|
|
317
|
+
1. 审查 plan 的可执行性和缺口
|
|
318
|
+
2. 必要时就地补齐 plan.md 中与实施直接相关的内容
|
|
319
|
+
3. 保持现有 plan 结构稳定,不得无故扩写研究章节
|
|
320
|
+
4. 若发现根本性缺口(无法安全实施),明确标记 BLOCKED,并建议回退到 feature/story
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
验证 `plan.md` 仍存在且未退化为空模板。
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
### Phase 3: Task Refinement / 任务细化 [3/6]
|
|
328
|
+
|
|
329
|
+
`[3/6] 正在细化实施任务...`
|
|
330
|
+
|
|
331
|
+
读取 `prompt_source[tasks]`,调用 Task(description: "生成或细化实施任务", prompt: "{tasks prompt}" + "{上下文注入 + spec.md + plan.md + tasks.md 路径(如存在)}", model: "{config.agents.tasks.model}")。
|
|
332
|
+
|
|
333
|
+
在 prompt 中追加指示:
|
|
334
|
+
|
|
335
|
+
```text
|
|
336
|
+
[IMPLEMENT 模式] 本次目标是让任务清单直接服务于实施。
|
|
337
|
+
- 若 tasks.md 不存在:创建新的 tasks.md
|
|
338
|
+
- 若 tasks.md 已存在:以“增量细化/重排”为主,保留已完成 checkbox 与有效任务
|
|
339
|
+
- 优先补足缺失的实施与验证任务,不要重写与本次实施无关的章节
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
验证 `{feature_dir}/tasks.md` 已存在。
|
|
343
|
+
|
|
344
|
+
#### 质量门(GATE_TASKS)
|
|
345
|
+
|
|
346
|
+
```text
|
|
347
|
+
1. 获取 behavior[GATE_TASKS]
|
|
348
|
+
2. 根据 behavior 决策:
|
|
349
|
+
- always → 暂停展示 tasks.md 摘要,用户选择:A) 确认开始实施 | B) 调整任务
|
|
350
|
+
- auto → 自动继续(仅在日志中记录摘要)
|
|
351
|
+
- on_failure → 检查任务是否存在明显缺口:有 → 暂停;无 → 自动继续
|
|
352
|
+
3. 输出: [GATE] GATE_TASKS | policy={gate_policy} | override={有/无} | decision={PAUSE|AUTO_CONTINUE} | reason={理由}
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
### Phase 4: Implementation / 代码实施 [4/6]
|
|
358
|
+
|
|
359
|
+
`[4/6] 正在执行代码实施...`
|
|
360
|
+
|
|
361
|
+
#### GATE_IMPLEMENT_MID 前置计算
|
|
362
|
+
|
|
363
|
+
在进入子代理调用前,编排器先计算是否需要中期门禁:
|
|
364
|
+
|
|
365
|
+
```text
|
|
366
|
+
1. 解析 tasks.md 中的 top-level task 行
|
|
367
|
+
- 匹配模式: 行首(忽略前导空格 0-3 个)以 `- [ ]` 或 `- [x]` 或 `- [X]` 开头的行
|
|
368
|
+
- 仅计数第一级 checkbox(Markdown 缩进层级 0 或 Phase 标题下第一级)
|
|
369
|
+
- 嵌套子任务(缩进 >= 4 空格或 >= 1 tab 的 checkbox)不计入
|
|
370
|
+
- 设 total_tasks = 匹配到的 top-level task 行总数
|
|
371
|
+
|
|
372
|
+
2. 判断是否触发 GATE_IMPLEMENT_MID:
|
|
373
|
+
if total_tasks 无法解析(正则无匹配结果):
|
|
374
|
+
gate_mid_enabled = false
|
|
375
|
+
输出: [GATE] GATE_IMPLEMENT_MID | SKIPPED | reason=tasks_unparseable
|
|
376
|
+
elif total_tasks <= 5:
|
|
377
|
+
gate_mid_enabled = false
|
|
378
|
+
输出: [GATE] GATE_IMPLEMENT_MID | SKIPPED | reason=task_count<=5
|
|
379
|
+
else:
|
|
380
|
+
gate_mid_enabled = true
|
|
381
|
+
mid_point = floor(total_tasks * 0.5)
|
|
382
|
+
输出: [INFO] GATE_IMPLEMENT_MID 已启用 | total_tasks={total_tasks} | mid_point={mid_point}
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
#### 分支 A: 跳过门禁(gate_mid_enabled = false)
|
|
386
|
+
|
|
387
|
+
直接执行完整 Phase 4,与原有逻辑完全一致:
|
|
388
|
+
|
|
389
|
+
读取 `prompt_source[implement]`,调用 Task(description: "执行成熟 spec 实施", prompt: "{implement prompt}" + "{上下文注入 + spec.md + plan.md + tasks.md 路径}", model: "{config.agents.implement.model}")。
|
|
390
|
+
|
|
391
|
+
在 prompt 中追加指示:
|
|
392
|
+
|
|
393
|
+
```text
|
|
394
|
+
[IMPLEMENT 模式] 本次实施建立在成熟 spec/plan 上。
|
|
395
|
+
- 严格按 tasks.md 落地
|
|
396
|
+
- 不重新打开调研阶段
|
|
397
|
+
- 若发现 spec/plan 与真实代码冲突,仅修补与本次任务直接相关的必要差异
|
|
398
|
+
- 完成声明仍必须遵守验证铁律,给出实际命令与输出证据
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
#### 分支 B: 触发门禁(gate_mid_enabled = true)
|
|
402
|
+
|
|
403
|
+
将 Phase 4 拆分为 Phase 4a → GATE_IMPLEMENT_MID → Phase 4b:
|
|
404
|
+
|
|
405
|
+
##### Phase 4a: 前半段实施
|
|
406
|
+
|
|
407
|
+
读取 `prompt_source[implement]`,调用 Task(description: "执行前半段实施(前 {mid_point} 个任务)", prompt: "{implement prompt}" + "{上下文注入 + spec.md + plan.md + tasks.md 路径}" + "{4a 追加指令}", model: "{config.agents.implement.model}")。
|
|
408
|
+
|
|
409
|
+
**4a 追加指令**:
|
|
410
|
+
|
|
411
|
+
```text
|
|
412
|
+
[IMPLEMENT 模式 — 分段实施 Phase 4a]
|
|
413
|
+
本次实施建立在成熟 spec/plan 上。
|
|
414
|
+
|
|
415
|
+
**重要: 本次仅执行 tasks.md 中的前 {mid_point} 个 top-level 任务。**
|
|
416
|
+
|
|
417
|
+
执行要求:
|
|
418
|
+
- 严格按 tasks.md 顺序,完成前 {mid_point} 个 top-level 任务后停止
|
|
419
|
+
- 每完成一个 task,在 tasks.md 中将对应 checkbox 标记为 [x]
|
|
420
|
+
- 不重新打开调研阶段
|
|
421
|
+
- 若发现 spec/plan 与真实代码冲突,仅修补与本次任务直接相关的必要差异
|
|
422
|
+
|
|
423
|
+
完成时返回以下信息(中期进度报告):
|
|
424
|
+
1. 已完成的 task 编号/标题列表
|
|
425
|
+
2. 本次变更的文件列表(每个文件的路径和变更类型:新增/修改/删除)
|
|
426
|
+
3. 执行过程中遇到的异常或与预期不符的情况(如有)
|
|
427
|
+
4. 对 tasks.md 前置假设的观察(如发现某些假设不成立,明确列出)
|
|
428
|
+
```
|
|
429
|
+
|
|
430
|
+
若 Phase 4a 子代理调用失败(返回错误或超时),不进入 GATE_IMPLEMENT_MID,直接标记 Phase 4 为 FAILED 并进入错误处理流程。
|
|
431
|
+
|
|
432
|
+
##### GATE_IMPLEMENT_MID: 中期门禁
|
|
433
|
+
|
|
434
|
+
**此阶段由编排器亲自执行,不委派子代理。**
|
|
435
|
+
|
|
436
|
+
```text
|
|
437
|
+
1. 获取 behavior[GATE_IMPLEMENT_MID]
|
|
438
|
+
|
|
439
|
+
2. 收集检查输入:
|
|
440
|
+
- 从 Phase 4a 子代理返回中提取: 已完成 task 列表、变更文件列表、异常观察
|
|
441
|
+
- 读取 plan.md 的变更文件预期范围
|
|
442
|
+
- 读取 tasks.md 中的前置条件和依赖假设
|
|
443
|
+
|
|
444
|
+
3. 执行检查(两项轻量级信号检测):
|
|
445
|
+
|
|
446
|
+
检查项 A — 架构劣化信号:
|
|
447
|
+
对比 Phase 4a 的变更文件列表与 plan.md 的预期范围
|
|
448
|
+
- 变更文件全部在 plan.md 预期范围内 → PASS
|
|
449
|
+
- 出现少量 plan.md 未提及的辅助文件变更(如 package-lock.json、测试文件)→ WARNING
|
|
450
|
+
- 出现 plan.md 未提及的核心模块/架构层文件变更 → CRITICAL
|
|
451
|
+
判定: PASS | WARNING | CRITICAL
|
|
452
|
+
|
|
453
|
+
检查项 B — 前置假设验证:
|
|
454
|
+
检查 tasks.md 中声明的前置条件在实施过程中是否仍然成立
|
|
455
|
+
- Phase 4a 子代理未报告异常 → PASS
|
|
456
|
+
- 异常涉及已完成任务的内部实现细节 → WARNING
|
|
457
|
+
- 异常涉及剩余任务的前置条件 → CRITICAL
|
|
458
|
+
判定: PASS | WARNING | CRITICAL
|
|
459
|
+
|
|
460
|
+
综合判定:
|
|
461
|
+
if 任一检查项为 CRITICAL:
|
|
462
|
+
gate_result = CRITICAL
|
|
463
|
+
elif 任一检查项为 WARNING:
|
|
464
|
+
gate_result = WARNING
|
|
465
|
+
else:
|
|
466
|
+
gate_result = PASS
|
|
467
|
+
|
|
468
|
+
4. 根据 behavior 和 gate_result 决策:
|
|
469
|
+
- always → 暂停展示检查结果摘要,用户选择:
|
|
470
|
+
A) 修复后继续(编排器等待用户修复后重新进入 Phase 4b)
|
|
471
|
+
B) 强制继续(忽略问题,进入 Phase 4b)
|
|
472
|
+
C) 中止(终止实施流程)
|
|
473
|
+
- auto → 自动继续(仅在日志中记录检查结果)
|
|
474
|
+
- on_failure →
|
|
475
|
+
if gate_result == CRITICAL:
|
|
476
|
+
暂停展示检查结果,用户选择 A/B/C
|
|
477
|
+
else:
|
|
478
|
+
自动继续
|
|
479
|
+
|
|
480
|
+
5. 输出:
|
|
481
|
+
[GATE] GATE_IMPLEMENT_MID | policy={gate_policy} | override={有/无} | decision={PAUSE|AUTO_CONTINUE} | reason={理由}
|
|
482
|
+
[GATE_DETAIL] architecture_drift={PASS|WARNING|CRITICAL} | assumption_validity={PASS|WARNING|CRITICAL}
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
##### Phase 4b: 后半段实施
|
|
486
|
+
|
|
487
|
+
读取 `prompt_source[implement]`,调用 Task(description: "执行后半段实施(剩余任务)", prompt: "{implement prompt}" + "{上下文注入 + spec.md + plan.md + tasks.md 路径}" + "{4b 追加指令}", model: "{config.agents.implement.model}")。
|
|
488
|
+
|
|
489
|
+
**4b 追加指令**:
|
|
490
|
+
|
|
491
|
+
```text
|
|
492
|
+
[IMPLEMENT 模式 — 分段实施 Phase 4b]
|
|
493
|
+
本次实施建立在成熟 spec/plan 上。
|
|
494
|
+
|
|
495
|
+
**重要: 本次继续执行 tasks.md 中尚未完成的剩余 top-level 任务。**
|
|
496
|
+
|
|
497
|
+
前半段实施摘要(Phase 4a 已完成):
|
|
498
|
+
- 已完成 task: {4a 已完成的 task 编号/标题列表}
|
|
499
|
+
- 已变更文件: {4a 变更文件列表}
|
|
500
|
+
- 异常观察: {4a 报告的异常,若无则 "无"}
|
|
501
|
+
{若 GATE_IMPLEMENT_MID 产生了 WARNING 以上的发现}:
|
|
502
|
+
- 门禁检查发现: {检查结果摘要}
|
|
503
|
+
- 用户决策: {用户在门禁中的选择}
|
|
504
|
+
|
|
505
|
+
执行要求:
|
|
506
|
+
- 从 tasks.md 中第一个未标记 [x] 的 top-level task 开始,按顺序完成全部剩余任务
|
|
507
|
+
- 每完成一个 task,在 tasks.md 中将对应 checkbox 标记为 [x]
|
|
508
|
+
- 不重新打开调研阶段
|
|
509
|
+
- 若发现 spec/plan 与真实代码冲突,仅修补与本次任务直接相关的必要差异
|
|
510
|
+
- 完成声明仍必须遵守验证铁律,给出实际命令与输出证据
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
---
|
|
514
|
+
|
|
515
|
+
### Phase 5: Verification / 验证闭环 [5/6]
|
|
516
|
+
|
|
517
|
+
`[5/6] 正在执行验证闭环...`
|
|
518
|
+
|
|
519
|
+
#### Phase 5a+5b: Spec 合规审查 + 代码质量审查(含架构合理性/可读性检查,并行)
|
|
520
|
+
|
|
521
|
+
**并行调度(VERIFY_GROUP 第一段)**: 在同一消息中同时发出以下两个 Task 调用:
|
|
522
|
+
|
|
523
|
+
1. 读取 `$PLUGIN_DIR/agents/spec-review.md` prompt,调用 Task(description: "Spec 合规审查", prompt: "{spec-review prompt}" + "{上下文注入 + spec.md + tasks.md 路径}", model: "{config.agents.verify.model}")
|
|
524
|
+
2. 读取 `$PLUGIN_DIR/agents/quality-review.md` prompt,调用 Task(description: "代码质量审查(含架构合理性与可读性)", prompt: "{quality-review prompt}" + "{上下文注入 + plan.md + spec.md 路径}", model: "{config.agents.verify.model}")
|
|
525
|
+
|
|
526
|
+
`quality-review` 在本阶段必须显式检查:
|
|
527
|
+
- 架构合理性:最终实现是否仍然符合已成熟 plan.md 的结构合同
|
|
528
|
+
- 可读性:是否存在“能跑但难读难改”的实现方式;如有必须指出
|
|
529
|
+
|
|
530
|
+
等待两个 Task 均返回结果后继续。如某个子代理失败,不中断另一个正在运行的子代理,等待两者均完成后统一处理。
|
|
531
|
+
|
|
532
|
+
**并行回退**: 如果无法在同一消息中发出两个 Task,则按顺序串行执行(先 spec-review,再 quality-review),并在完成报告中标注 `[回退:串行] spec-review, quality-review`。
|
|
533
|
+
|
|
534
|
+
#### Phase 5c: 工具链验证 + 验证证据核查
|
|
535
|
+
|
|
536
|
+
读取 `prompt_source[verify]`,调用 Task(description: "工具链验证 + 验证证据核查", prompt: "{verify prompt}" + "{上下文注入 + spec.md + tasks.md + 5a/5b 报告路径 + config.verification}", model: "{config.agents.verify.model}")。
|
|
537
|
+
|
|
538
|
+
#### 质量门(GATE_VERIFY)
|
|
539
|
+
|
|
540
|
+
合并 5a/5b/5c 三份报告的结果:
|
|
541
|
+
|
|
542
|
+
```text
|
|
543
|
+
1. 获取 behavior[GATE_VERIFY]
|
|
544
|
+
2. 根据 behavior 决策:
|
|
545
|
+
- always → 暂停展示三份报告合并结果,用户选择:A) 修复重验 | B) 接受结果
|
|
546
|
+
- auto → 自动继续(仅在日志中记录结果)
|
|
547
|
+
- on_failure → 检查结果:任一报告有 CRITICAL → 暂停;仅 WARNING 或全部通过 → 自动继续
|
|
548
|
+
3. 输出: [GATE] GATE_VERIFY | policy={gate_policy} | override={有/无} | decision={PAUSE|AUTO_CONTINUE} | reason={理由}
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
---
|
|
552
|
+
|
|
553
|
+
### Phase 6: Closure / 收口 [6/6]
|
|
554
|
+
|
|
555
|
+
`[6/6] 正在执行收口...`
|
|
556
|
+
|
|
557
|
+
**此阶段由编排器亲自执行,不委派子代理。**
|
|
558
|
+
|
|
559
|
+
执行内容:
|
|
560
|
+
|
|
561
|
+
1. 确认 `verification/verification-report.md` 已生成
|
|
562
|
+
2. 汇总 `plan review`、`task refinement`、`implementation`、`verification` 结果
|
|
563
|
+
3. 若任务仍有未完成项,明确列出 residual work
|
|
564
|
+
4. 输出最终完成报告
|
|
565
|
+
|
|
566
|
+
---
|
|
567
|
+
|
|
568
|
+
## 完成报告
|
|
569
|
+
|
|
570
|
+
```text
|
|
571
|
+
══════════════════════════════════════════
|
|
572
|
+
Spec Driver Implement - 聚焦实施完成
|
|
573
|
+
══════════════════════════════════════════
|
|
574
|
+
|
|
575
|
+
特性分支: {branch_name}
|
|
576
|
+
模式: implement(成熟 spec/plan 聚焦实施)
|
|
577
|
+
阶段完成: 6/6
|
|
578
|
+
人工介入: {N} 次
|
|
579
|
+
|
|
580
|
+
输入状态:
|
|
581
|
+
✅ spec.md
|
|
582
|
+
✅ plan.md
|
|
583
|
+
{✅/⏳} tasks.md
|
|
584
|
+
|
|
585
|
+
生成/更新的制品:
|
|
586
|
+
✅ plan.md(已审查/必要时增量补齐)
|
|
587
|
+
✅ tasks.md(已生成或细化)
|
|
588
|
+
✅ verification/verification-report.md
|
|
589
|
+
|
|
590
|
+
执行模式:
|
|
591
|
+
Phase 5a+5b: {[并行] 或 [回退:串行]} spec-review + quality-review
|
|
592
|
+
Phase 5c: [串行] verify(依赖 5a/5b 报告)
|
|
593
|
+
|
|
594
|
+
验证结果:
|
|
595
|
+
构建: {状态}
|
|
596
|
+
Lint: {状态}
|
|
597
|
+
测试: {状态}
|
|
598
|
+
|
|
599
|
+
回退建议:
|
|
600
|
+
若本次被 BLOCKED,改用 /spec-driver:spec-driver-feature 或 /spec-driver:spec-driver-story
|
|
601
|
+
|
|
602
|
+
建议下一步: git add && git commit
|
|
603
|
+
══════════════════════════════════════════
|
|
604
|
+
```
|
|
605
|
+
|
|
606
|
+
### 运行事件记录(066)
|
|
607
|
+
|
|
608
|
+
在输出最终报告后,追加一条本地 run summary:
|
|
609
|
+
|
|
610
|
+
```bash
|
|
611
|
+
node "$PLUGIN_DIR/scripts/record-workflow-run.mjs" --project-root "{project_root}" \
|
|
612
|
+
--workflow-id "spec-driver-implement" \
|
|
613
|
+
--run-id "{branch_name}" \
|
|
614
|
+
--result "{success|partial|paused|failed}" \
|
|
615
|
+
--completed-phases "intake,plan-review,tasks,implement,verify,closure" \
|
|
616
|
+
--artifact "{feature_dir}/spec.md" \
|
|
617
|
+
--artifact "{feature_dir}/plan.md" \
|
|
618
|
+
--artifact "{feature_dir}/tasks.md" \
|
|
619
|
+
--artifact "{feature_dir}/verification/verification-report.md"
|
|
620
|
+
```
|
|
621
|
+
|
|
622
|
+
若发生 gate 暂停或验证失败,补充 `--gate-pause` / `--verification-failure`。不得记录完整 prompt 正文。
|
|
623
|
+
|
|
624
|
+
---
|
|
625
|
+
|
|
626
|
+
## 范围异常与回退
|
|
627
|
+
|
|
628
|
+
在 Phase 2 或 Phase 3 发现以下任一情况时,必须显式提示回退:
|
|
629
|
+
|
|
630
|
+
- `spec.md` 或 `plan.md` 本质上还是占位模板
|
|
631
|
+
- `plan.md` 缺少实施所需的核心结构(关键模块、验证策略、变更范围)
|
|
632
|
+
- 当前任务实际上包含全新需求澄清或大量研究工作
|
|
633
|
+
|
|
634
|
+
提示文案:
|
|
635
|
+
|
|
636
|
+
```text
|
|
637
|
+
[提示] 当前输入不满足 implement 模式的“成熟 spec/plan”前提。
|
|
638
|
+
|
|
639
|
+
建议选择:
|
|
640
|
+
A) /spec-driver:spec-driver-feature <需求描述> # 需要完整调研与规范
|
|
641
|
+
B) /spec-driver:spec-driver-story <需求描述> # 需求已较清晰,但仍需补规范/计划
|
|
642
|
+
```
|
|
643
|
+
|
|
644
|
+
---
|
|
645
|
+
|
|
646
|
+
## 模型选择
|
|
647
|
+
|
|
648
|
+
与 run 模式共享同一套模型配置逻辑与运行时兼容归一化:
|
|
649
|
+
|
|
650
|
+
- 优先级:`--preset` → `agents.{agent_id}.model`(仅显式配置时生效)→ preset 默认值
|
|
651
|
+
- 兼容归一化:按 `model_compat.runtime` 解析当前运行时(auto/claude/codex)
|
|
652
|
+
- Codex 下默认将 `opus/sonnet/haiku` 映射到 `gpt-5.4`,并通过 `codex_thinking.level_map` 选择 `medium|high|xhigh` 思考等级
|
|
653
|
+
- 若映射后模型不可用,回退到 `model_compat.defaults.codex` 并记录 `[模型回退]`
|