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,286 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 文件→模块分组与模块级拓扑排序
|
|
3
|
+
* 将 dependency-cruiser 的文件级 DependencyGraph 聚合为目录级模块
|
|
4
|
+
* 支持语言感知分组:同目录多语言文件拆分为带语言后缀的子模块(Feature 031)
|
|
5
|
+
* 支持目录语义分类过滤(Feature 095)
|
|
6
|
+
*/
|
|
7
|
+
import * as path from 'node:path';
|
|
8
|
+
import { LanguageAdapterRegistry } from '../adapters/language-adapter-registry.js';
|
|
9
|
+
import { classifyDirectories } from './directory-classifier.js';
|
|
10
|
+
// ============================================================
|
|
11
|
+
// 核心 API
|
|
12
|
+
// ============================================================
|
|
13
|
+
/**
|
|
14
|
+
* 将文件级依赖图聚合为模块级分组
|
|
15
|
+
*
|
|
16
|
+
* 分组规则:
|
|
17
|
+
* 1. 以 basePrefix(默认 'src/')开头的文件,按其后第 depth 级目录分组
|
|
18
|
+
* 2. basePrefix 根目录下的散文件归入 rootModuleName 模块
|
|
19
|
+
* 3. 无 src/ 目录时按项目根目录下第一级目录分组
|
|
20
|
+
*/
|
|
21
|
+
export function groupFilesToModules(graph, options = {}) {
|
|
22
|
+
const { depth = 1, rootModuleName = 'root', languageAware = false, } = options;
|
|
23
|
+
// 自动检测 basePrefix
|
|
24
|
+
const basePrefix = options.basePrefix ?? detectBasePrefix(graph.modules.map((n) => n.source));
|
|
25
|
+
// 步骤 1:将每个文件分配到模块
|
|
26
|
+
const moduleMap = new Map();
|
|
27
|
+
for (const node of graph.modules) {
|
|
28
|
+
const moduleName = resolveModuleName(node.source, basePrefix, depth, rootModuleName);
|
|
29
|
+
if (!moduleMap.has(moduleName)) {
|
|
30
|
+
moduleMap.set(moduleName, []);
|
|
31
|
+
}
|
|
32
|
+
moduleMap.get(moduleName).push(node.source);
|
|
33
|
+
}
|
|
34
|
+
// 步骤 2:构建 ModuleGroup 列表(语言感知模式下可能拆分)
|
|
35
|
+
const groups = [];
|
|
36
|
+
if (languageAware) {
|
|
37
|
+
const registry = LanguageAdapterRegistry.getInstance();
|
|
38
|
+
for (const [name, files] of moduleMap) {
|
|
39
|
+
const dirPath = name === rootModuleName
|
|
40
|
+
? basePrefix.replace(/\/$/, '') || '.'
|
|
41
|
+
: basePrefix ? `${basePrefix}${name}` : name;
|
|
42
|
+
// 按语言分组
|
|
43
|
+
const langGroups = new Map();
|
|
44
|
+
for (const file of files) {
|
|
45
|
+
const adapter = registry.getAdapter(file);
|
|
46
|
+
const langId = adapter?.id ?? 'unknown';
|
|
47
|
+
if (!langGroups.has(langId)) {
|
|
48
|
+
langGroups.set(langId, []);
|
|
49
|
+
}
|
|
50
|
+
langGroups.get(langId).push(file);
|
|
51
|
+
}
|
|
52
|
+
if (langGroups.size <= 1) {
|
|
53
|
+
// 单语言目录:保持原名(向后兼容)
|
|
54
|
+
const langId = langGroups.keys().next().value;
|
|
55
|
+
groups.push({
|
|
56
|
+
name,
|
|
57
|
+
dirPath,
|
|
58
|
+
files: files.sort(),
|
|
59
|
+
language: langId,
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
// 多语言目录:拆分为带语言后缀的子模块
|
|
64
|
+
for (const [langId, langFiles] of langGroups) {
|
|
65
|
+
const subName = `${name}--${langId}`;
|
|
66
|
+
groups.push({
|
|
67
|
+
name: subName,
|
|
68
|
+
dirPath,
|
|
69
|
+
files: langFiles.sort(),
|
|
70
|
+
language: langId,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
for (const [name, files] of moduleMap) {
|
|
78
|
+
const dirPath = name === rootModuleName
|
|
79
|
+
? basePrefix.replace(/\/$/, '') || '.'
|
|
80
|
+
: basePrefix ? `${basePrefix}${name}` : name;
|
|
81
|
+
groups.push({ name, dirPath, files: files.sort() });
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// 步骤 3:构建模块间依赖关系
|
|
85
|
+
const fileToModule = new Map();
|
|
86
|
+
for (const group of groups) {
|
|
87
|
+
for (const file of group.files) {
|
|
88
|
+
fileToModule.set(file, group.name);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
// 聚合文件级边为模块级边(去重,忽略模块内部依赖)
|
|
92
|
+
const moduleEdgeSet = new Set();
|
|
93
|
+
const moduleEdges = [];
|
|
94
|
+
for (const edge of graph.edges) {
|
|
95
|
+
const fromModule = fileToModule.get(edge.from);
|
|
96
|
+
const toModule = fileToModule.get(edge.to);
|
|
97
|
+
if (fromModule && toModule && fromModule !== toModule) {
|
|
98
|
+
const key = `${fromModule}->${toModule}`;
|
|
99
|
+
if (!moduleEdgeSet.has(key)) {
|
|
100
|
+
moduleEdgeSet.add(key);
|
|
101
|
+
moduleEdges.push({ from: fromModule, to: toModule });
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
// 步骤 3.5(可选):目录语义分类过滤(FR-005)
|
|
106
|
+
// 将非 source 类别的模块标记,但仍保留在 groups 中(供 batch-orchestrator 决策是否跳过)
|
|
107
|
+
let sourceGroups;
|
|
108
|
+
if (options.classifyDirectories) {
|
|
109
|
+
const projectRoot = options.projectRoot ?? '';
|
|
110
|
+
// 构建目录绝对路径和 import 边
|
|
111
|
+
const dirPaths = groups.map((g) => {
|
|
112
|
+
// dirPath 可能是相对路径,尝试结合 projectRoot 解析
|
|
113
|
+
return projectRoot ? path.resolve(projectRoot, g.dirPath) : g.dirPath;
|
|
114
|
+
});
|
|
115
|
+
// 构建文件级 import 边(用于 import 反向引用信号)
|
|
116
|
+
const importEdges = graph.edges.map((e) => ({ from: e.from, to: e.to }));
|
|
117
|
+
const classifications = classifyDirectories(dirPaths, importEdges, options.directoryClassifierOptions);
|
|
118
|
+
const classMap = new Map();
|
|
119
|
+
for (let i = 0; i < groups.length; i++) {
|
|
120
|
+
classMap.set(groups[i].name, classifications[i]);
|
|
121
|
+
}
|
|
122
|
+
// sourceGroups:只保留 source 类别的模块进入 moduleOrder
|
|
123
|
+
sourceGroups = groups.filter((g) => {
|
|
124
|
+
const cls = classMap.get(g.name);
|
|
125
|
+
return !cls || cls.category === 'source';
|
|
126
|
+
});
|
|
127
|
+
// 安全回退:如果分类后 0 个模块,说明分类器过于激进,回退到不分类
|
|
128
|
+
if (sourceGroups.length === 0 && groups.length > 0) {
|
|
129
|
+
sourceGroups = groups;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
sourceGroups = groups;
|
|
134
|
+
}
|
|
135
|
+
// 步骤 3.6:扁平包自动降级为文件级分组
|
|
136
|
+
// 在目录分类过滤之后检查:仅当无标准源码目录布局(basePrefix === '')
|
|
137
|
+
// 且 source 模块中只有 1 个非 root 模块且文件数 > 1 时触发
|
|
138
|
+
// 典型场景:Python 单包项目(graphify/pipeline.py, graphify/extract.py, ...),
|
|
139
|
+
// 即使有 tests/ 等目录也能正确降级(因 tests/ 被分类器过滤后不计入 sourceGroups)
|
|
140
|
+
const sourceNonRoot = sourceGroups.filter((g) => g.name !== rootModuleName);
|
|
141
|
+
if (basePrefix === '' && sourceNonRoot.length === 1 && sourceNonRoot[0].files.length > 1) {
|
|
142
|
+
const soleGroup = sourceNonRoot[0];
|
|
143
|
+
const rootGroup = sourceGroups.find((g) => g.name === rootModuleName);
|
|
144
|
+
// M1 修复:先用 stem 分配,冲突项改用包含扩展名的相对路径作为 name,确保全局唯一
|
|
145
|
+
// 冲突来源:同名文件(__init__.py/__init__.pyi)或不同目录的同名文件
|
|
146
|
+
const stemCount = new Map();
|
|
147
|
+
for (const file of soleGroup.files) {
|
|
148
|
+
const stem = path.basename(file).replace(/\.[^.]+$/, '');
|
|
149
|
+
stemCount.set(stem, (stemCount.get(stem) ?? 0) + 1);
|
|
150
|
+
}
|
|
151
|
+
// 将唯一 source 模块拆分为文件级子模块
|
|
152
|
+
const fileGroups = soleGroup.files.map((file) => {
|
|
153
|
+
const stem = path.basename(file).replace(/\.[^.]+$/, '');
|
|
154
|
+
// stem 有冲突时,改用包含扩展名的完整相对路径(路径分隔符替换为 __)作为唯一名称
|
|
155
|
+
// 保留扩展名是为了区分 __init__.py 和 __init__.pyi 这类同 stem 但不同扩展名的文件
|
|
156
|
+
const name = (stemCount.get(stem) ?? 0) > 1
|
|
157
|
+
? file.replace(/[/\\]/g, '__').replace(/\./g, '_')
|
|
158
|
+
: stem;
|
|
159
|
+
return {
|
|
160
|
+
name,
|
|
161
|
+
dirPath: soleGroup.dirPath,
|
|
162
|
+
files: [file],
|
|
163
|
+
language: soleGroup.language,
|
|
164
|
+
};
|
|
165
|
+
});
|
|
166
|
+
// 重建 sourceGroups 和 groups
|
|
167
|
+
sourceGroups = [];
|
|
168
|
+
if (rootGroup)
|
|
169
|
+
sourceGroups.push(rootGroup);
|
|
170
|
+
sourceGroups.push(...fileGroups);
|
|
171
|
+
// 同步更新 groups 和 fileToModule:替换原模块为文件级模块
|
|
172
|
+
const soleIdx = groups.indexOf(soleGroup);
|
|
173
|
+
if (soleIdx >= 0) {
|
|
174
|
+
groups.splice(soleIdx, 1, ...fileGroups);
|
|
175
|
+
}
|
|
176
|
+
for (const fg of fileGroups) {
|
|
177
|
+
fileToModule.set(fg.files[0], fg.name);
|
|
178
|
+
}
|
|
179
|
+
// 重建模块边(原单模块内的文件级边现在可能变为跨模块边)
|
|
180
|
+
moduleEdgeSet.clear();
|
|
181
|
+
moduleEdges.length = 0;
|
|
182
|
+
for (const edge of graph.edges) {
|
|
183
|
+
const fromMod = fileToModule.get(edge.from);
|
|
184
|
+
const toMod = fileToModule.get(edge.to);
|
|
185
|
+
if (fromMod && toMod && fromMod !== toMod) {
|
|
186
|
+
const key = `${fromMod}->${toMod}`;
|
|
187
|
+
if (!moduleEdgeSet.has(key)) {
|
|
188
|
+
moduleEdgeSet.add(key);
|
|
189
|
+
moduleEdges.push({ from: fromMod, to: toMod });
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
// 步骤 4:模块级拓扑排序(仅对 source 模块排序)
|
|
195
|
+
const moduleOrder = topologicalSortModules(sourceGroups.map((g) => g.name), moduleEdges);
|
|
196
|
+
return { groups, moduleOrder, moduleEdges };
|
|
197
|
+
}
|
|
198
|
+
// ============================================================
|
|
199
|
+
// 内部函数
|
|
200
|
+
// ============================================================
|
|
201
|
+
/**
|
|
202
|
+
* 自动检测基准目录前缀
|
|
203
|
+
* 如果所有文件都在 src/ 下则返回 'src/',否则返回 ''
|
|
204
|
+
*/
|
|
205
|
+
function detectBasePrefix(filePaths) {
|
|
206
|
+
if (filePaths.length === 0)
|
|
207
|
+
return 'src/';
|
|
208
|
+
const srcCount = filePaths.filter((f) => f.startsWith('src/')).length;
|
|
209
|
+
// 超过 80% 的文件在 src/ 下
|
|
210
|
+
if (srcCount / filePaths.length > 0.8)
|
|
211
|
+
return 'src/';
|
|
212
|
+
const libCount = filePaths.filter((f) => f.startsWith('lib/')).length;
|
|
213
|
+
if (libCount / filePaths.length > 0.8)
|
|
214
|
+
return 'lib/';
|
|
215
|
+
return '';
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* 根据文件路径解析其所属的模块名
|
|
219
|
+
*/
|
|
220
|
+
function resolveModuleName(filePath, basePrefix, depth, rootModuleName) {
|
|
221
|
+
// 如果文件不在 basePrefix 下
|
|
222
|
+
if (basePrefix && !filePath.startsWith(basePrefix)) {
|
|
223
|
+
return rootModuleName;
|
|
224
|
+
}
|
|
225
|
+
// 取 basePrefix 之后的路径
|
|
226
|
+
const relativePath = basePrefix ? filePath.slice(basePrefix.length) : filePath;
|
|
227
|
+
const segments = relativePath.split('/');
|
|
228
|
+
// 直接在 basePrefix 根目录下的散文件(如 'src/entry.ts')
|
|
229
|
+
if (segments.length <= 1) {
|
|
230
|
+
return rootModuleName;
|
|
231
|
+
}
|
|
232
|
+
// 按 depth 取目录层级
|
|
233
|
+
return segments.slice(0, depth).join('/');
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* 模块级 Kahn 拓扑排序
|
|
237
|
+
* 返回叶子模块优先(无依赖的模块先处理)的顺序
|
|
238
|
+
*/
|
|
239
|
+
function topologicalSortModules(moduleNames, edges) {
|
|
240
|
+
// 注意:这里的"依赖方向"是 from 依赖 to
|
|
241
|
+
// 拓扑排序中,被依赖的(to)应该先处理
|
|
242
|
+
const inDegree = new Map();
|
|
243
|
+
const adjacency = new Map();
|
|
244
|
+
for (const name of moduleNames) {
|
|
245
|
+
inDegree.set(name, 0);
|
|
246
|
+
adjacency.set(name, []);
|
|
247
|
+
}
|
|
248
|
+
// from 依赖 to → to 先处理 → to 的"出边"指向 from
|
|
249
|
+
// 即在拓扑排序中:to → from
|
|
250
|
+
for (const edge of edges) {
|
|
251
|
+
adjacency.get(edge.to)?.push(edge.from);
|
|
252
|
+
inDegree.set(edge.from, (inDegree.get(edge.from) ?? 0) + 1);
|
|
253
|
+
}
|
|
254
|
+
// Kahn 算法
|
|
255
|
+
const queue = [];
|
|
256
|
+
for (const [name, degree] of inDegree) {
|
|
257
|
+
if (degree === 0) {
|
|
258
|
+
queue.push(name);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
const sorted = [];
|
|
262
|
+
while (queue.length > 0) {
|
|
263
|
+
// 稳定排序:字母序出队
|
|
264
|
+
queue.sort();
|
|
265
|
+
const node = queue.shift();
|
|
266
|
+
sorted.push(node);
|
|
267
|
+
for (const neighbor of adjacency.get(node) ?? []) {
|
|
268
|
+
const newDegree = (inDegree.get(neighbor) ?? 1) - 1;
|
|
269
|
+
inDegree.set(neighbor, newDegree);
|
|
270
|
+
if (newDegree === 0) {
|
|
271
|
+
queue.push(neighbor);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
// 处理循环依赖:未排序的模块追加到末尾
|
|
276
|
+
if (sorted.length < moduleNames.length) {
|
|
277
|
+
const sortedSet = new Set(sorted);
|
|
278
|
+
for (const name of moduleNames) {
|
|
279
|
+
if (!sortedSet.has(name)) {
|
|
280
|
+
sorted.push(name);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
return sorted;
|
|
285
|
+
}
|
|
286
|
+
//# sourceMappingURL=module-grouper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-grouper.js","sourceRoot":"","sources":["../../src/batch/module-grouper.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAsDhE,+DAA+D;AAC/D,SAAS;AACT,+DAA+D;AAE/D;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CACjC,KAAsB,EACtB,UAA2B,EAAE;IAE7B,MAAM,EACJ,KAAK,GAAG,CAAC,EACT,cAAc,GAAG,MAAM,EACvB,aAAa,GAAG,KAAK,GACtB,GAAG,OAAO,CAAC;IAEZ,kBAAkB;IACl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AAM,EAAE,CAAC;QACvC,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;QAClC,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,CAAC;YAC/B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;gBACzB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { FailedModule, StageProgress } from '../models/module-spec.js';
|
|
2
|
+
import type { CostSummary } from './cost-summary.js';
|
|
3
|
+
/**
|
|
4
|
+
* 进度报告输出模式
|
|
5
|
+
*
|
|
6
|
+
* - `tty`:交互终端模式(ANSI 控制码 + 实时刷新)
|
|
7
|
+
* - `pipe`:管道/CI 模式(纯文本行日志)
|
|
8
|
+
* - `silent`:静默模式(Feature 146 / TD-002)— 所有方法 no-op,用于测试或后台运行场景
|
|
9
|
+
*/
|
|
10
|
+
export type ProgressMode = 'tty' | 'pipe' | 'silent';
|
|
11
|
+
export interface BatchSummary {
|
|
12
|
+
totalModules: number;
|
|
13
|
+
successful: number;
|
|
14
|
+
failed: number;
|
|
15
|
+
skipped: number;
|
|
16
|
+
degraded: number;
|
|
17
|
+
duration: number;
|
|
18
|
+
modules: Array<{
|
|
19
|
+
path: string;
|
|
20
|
+
status: 'success' | 'failed' | 'skipped' | 'degraded';
|
|
21
|
+
duration?: number;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
export interface ProgressReporter {
|
|
25
|
+
/** 开始处理某模块 */
|
|
26
|
+
start(modulePath: string): void;
|
|
27
|
+
/** 报告模块内阶段进度 */
|
|
28
|
+
stage(modulePath: string, progress: StageProgress): void;
|
|
29
|
+
/** 完成某模块处理 */
|
|
30
|
+
complete(modulePath: string, status: 'success' | 'failed' | 'skipped' | 'degraded'): void;
|
|
31
|
+
/** 生成最终摘要 */
|
|
32
|
+
finish(): BatchSummary;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 渲染进度条字符串(TTY 模式复用)。
|
|
36
|
+
*
|
|
37
|
+
* Feature 146 FR-010:扩展支持「进行中」三维状态。
|
|
38
|
+
* - active > 0 时:`[bar] X/N | 进行中: Y | 排队: Z`
|
|
39
|
+
* - active = 0 时:降级为原始二维格式 `[bar] X/N`(向后兼容)
|
|
40
|
+
*
|
|
41
|
+
* @param completed - 已完成模块数
|
|
42
|
+
* @param total - 总模块数
|
|
43
|
+
* @param active - 当前进行中的模块数(默认 0,等同未传入)
|
|
44
|
+
*/
|
|
45
|
+
export declare function renderProgressBar(completed: number, total: number, active?: number): string;
|
|
46
|
+
/**
|
|
47
|
+
* 创建终端进度报告器
|
|
48
|
+
*
|
|
49
|
+
* @param total - 模块总数
|
|
50
|
+
* @param mode - 输出模式(默认根据 process.stdout.isTTY 自动检测)
|
|
51
|
+
* @param options - Feature 146:可选配置,含 getActiveCount getter(FR-011:不改 ProgressReporter 接口签名)
|
|
52
|
+
* @returns ProgressReporter
|
|
53
|
+
*/
|
|
54
|
+
export declare function createReporter(total: number, mode?: ProgressMode, options?: {
|
|
55
|
+
getActiveCount?: () => number;
|
|
56
|
+
}): ProgressReporter;
|
|
57
|
+
/**
|
|
58
|
+
* 写入批处理摘要日志(FR-015)
|
|
59
|
+
*
|
|
60
|
+
* @param summary - 批处理摘要
|
|
61
|
+
* @param outputPath - 输出路径(specs/ 目录下)
|
|
62
|
+
* @param costSummary - 可选的 LLM 成本汇总(Feature 127 FR-008),存在时追加 "LLM 成本汇总" 节
|
|
63
|
+
* @param failedModules - 可选的失败模块详情(Bug 142),含 reason / retryCount / error;
|
|
64
|
+
* 传入时追加 "## 失败详情" 节,让用户能直接看到失败原因
|
|
65
|
+
* (如 retry-budget-exceeded),不必再翻 checkpoint 文件
|
|
66
|
+
*/
|
|
67
|
+
export declare function writeSummaryLog(summary: BatchSummary, outputPath: string, costSummary?: CostSummary, failedModules?: FailedModule[]): void;
|
|
68
|
+
//# sourceMappingURL=progress-reporter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-reporter.d.ts","sourceRoot":"","sources":["../../src/batch/progress-reporter.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAOrD;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;AAErD,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;QACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;CACJ;AAED,MAAM,WAAW,gBAAgB;IAC/B,cAAc;IACd,KAAK,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB;IAChB,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAC;IACzD,cAAc;IACd,QAAQ,CACN,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GACpD,IAAI,CAAC;IACR,aAAa;IACb,MAAM,IAAI,YAAY,CAAC;CACxB;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU,GAAG,MAAM,CAU9F;AAMD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,MAAM,MAAM,CAAA;CAAE,GAC1C,gBAAgB,CAyLlB;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,YAAY,EACrB,UAAU,EAAE,MAAM,EAClB,WAAW,CAAC,EAAE,WAAW,EACzB,aAAa,CAAC,EAAE,YAAY,EAAE,GAC7B,IAAI,CAqDN"}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 终端进度报告器
|
|
3
|
+
*
|
|
4
|
+
* 支持两种输出模式(由 {@link ProgressMode} 枚举控制):
|
|
5
|
+
*
|
|
6
|
+
* - `tty`:交互终端模式,使用 ANSI 控制码(`\x1b[2K\r`)清行后重绘进度条;
|
|
7
|
+
* 日志从上方滚动,进度条固定底部,进度与模块日志不发生视觉交叉。
|
|
8
|
+
*
|
|
9
|
+
* - `pipe`:管道/CI 模式,输出纯文本行日志(`[N/Total] path ... status\n`);
|
|
10
|
+
* 全程禁止 ANSI 控制码与 `\r`,适合重定向到文件或 CI 日志流。
|
|
11
|
+
*
|
|
12
|
+
* 模式选择策略:
|
|
13
|
+
* - 未指定 `mode` 时,根据 `process.stdout.isTTY` 自动检测;
|
|
14
|
+
* - `isTTY=true` → `tty`,否则 → `pipe`。
|
|
15
|
+
*
|
|
16
|
+
* 向后兼容性:
|
|
17
|
+
* - `createReporter(total)` 单参数调用方零改动,`mode` 为可选参数。
|
|
18
|
+
*
|
|
19
|
+
* [N/Total] Processing src/module... 格式(FR-015)
|
|
20
|
+
* 参见 contracts/batch-module.md
|
|
21
|
+
*/
|
|
22
|
+
import * as fs from 'node:fs';
|
|
23
|
+
import { renderSummaryCostSection } from './cost-summary.js';
|
|
24
|
+
// ============================================================
|
|
25
|
+
// 内部工具函数
|
|
26
|
+
// ============================================================
|
|
27
|
+
/**
|
|
28
|
+
* 渲染进度条字符串(TTY 模式复用)。
|
|
29
|
+
*
|
|
30
|
+
* Feature 146 FR-010:扩展支持「进行中」三维状态。
|
|
31
|
+
* - active > 0 时:`[bar] X/N | 进行中: Y | 排队: Z`
|
|
32
|
+
* - active = 0 时:降级为原始二维格式 `[bar] X/N`(向后兼容)
|
|
33
|
+
*
|
|
34
|
+
* @param completed - 已完成模块数
|
|
35
|
+
* @param total - 总模块数
|
|
36
|
+
* @param active - 当前进行中的模块数(默认 0,等同未传入)
|
|
37
|
+
*/
|
|
38
|
+
export function renderProgressBar(completed, total, active = 0) {
|
|
39
|
+
const percent = total > 0 ? completed / total : 0;
|
|
40
|
+
const barWidth = 20;
|
|
41
|
+
const filled = Math.floor(percent * barWidth);
|
|
42
|
+
const bar = '='.repeat(filled).padEnd(barWidth, ' ');
|
|
43
|
+
if (active > 0) {
|
|
44
|
+
const queued = Math.max(0, total - completed - active);
|
|
45
|
+
return `[${bar}] ${completed}/${total} | 进行中: ${active} | 排队: ${queued}`;
|
|
46
|
+
}
|
|
47
|
+
return `[${bar}] ${completed}/${total}`;
|
|
48
|
+
}
|
|
49
|
+
// ============================================================
|
|
50
|
+
// 工厂函数
|
|
51
|
+
// ============================================================
|
|
52
|
+
/**
|
|
53
|
+
* 创建终端进度报告器
|
|
54
|
+
*
|
|
55
|
+
* @param total - 模块总数
|
|
56
|
+
* @param mode - 输出模式(默认根据 process.stdout.isTTY 自动检测)
|
|
57
|
+
* @param options - Feature 146:可选配置,含 getActiveCount getter(FR-011:不改 ProgressReporter 接口签名)
|
|
58
|
+
* @returns ProgressReporter
|
|
59
|
+
*/
|
|
60
|
+
export function createReporter(total, mode, options) {
|
|
61
|
+
// 自动检测模式:isTTY 为 true 时使用 tty,否则使用 pipe
|
|
62
|
+
// 'silent' 模式必须显式传入,不会被自动选中
|
|
63
|
+
const effectiveMode = mode ?? (process.stdout.isTTY ? 'tty' : 'pipe');
|
|
64
|
+
const startTime = Date.now();
|
|
65
|
+
let completed = 0;
|
|
66
|
+
const modules = [];
|
|
67
|
+
const moduleStartTimes = new Map();
|
|
68
|
+
// 读取「进行中」计数:未注入 getter 时返回 0(即降级为二维进度条,向后兼容)
|
|
69
|
+
const getActive = () => {
|
|
70
|
+
try {
|
|
71
|
+
return options?.getActiveCount?.() ?? 0;
|
|
72
|
+
}
|
|
73
|
+
catch {
|
|
74
|
+
return 0;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
// ============================================================
|
|
78
|
+
// Silent 模式实现(Feature 146 / TD-002)
|
|
79
|
+
// ============================================================
|
|
80
|
+
if (effectiveMode === 'silent') {
|
|
81
|
+
return {
|
|
82
|
+
start(modulePath) {
|
|
83
|
+
moduleStartTimes.set(modulePath, Date.now());
|
|
84
|
+
},
|
|
85
|
+
stage(_modulePath, _progress) {
|
|
86
|
+
// no-op
|
|
87
|
+
},
|
|
88
|
+
complete(modulePath, status) {
|
|
89
|
+
completed++;
|
|
90
|
+
const moduleStart = moduleStartTimes.get(modulePath);
|
|
91
|
+
const duration = moduleStart ? Date.now() - moduleStart : undefined;
|
|
92
|
+
modules.push({ path: modulePath, status, duration });
|
|
93
|
+
},
|
|
94
|
+
finish() {
|
|
95
|
+
const duration = Date.now() - startTime;
|
|
96
|
+
return {
|
|
97
|
+
totalModules: total,
|
|
98
|
+
successful: modules.filter((m) => m.status === 'success').length,
|
|
99
|
+
failed: modules.filter((m) => m.status === 'failed').length,
|
|
100
|
+
skipped: modules.filter((m) => m.status === 'skipped').length,
|
|
101
|
+
degraded: modules.filter((m) => m.status === 'degraded').length,
|
|
102
|
+
duration,
|
|
103
|
+
modules,
|
|
104
|
+
};
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
// ============================================================
|
|
109
|
+
// TTY 模式实现
|
|
110
|
+
// ============================================================
|
|
111
|
+
if (effectiveMode === 'tty') {
|
|
112
|
+
return {
|
|
113
|
+
start(modulePath) {
|
|
114
|
+
moduleStartTimes.set(modulePath, Date.now());
|
|
115
|
+
// 清行 → 输出模块开始日志 → 重绘进度条(completed 在 complete() 中递增,与 pipe 模式对齐)
|
|
116
|
+
process.stdout.write(`\x1b[2K\r[${completed + 1}/${total}] 正在处理 ${modulePath}...\n`);
|
|
117
|
+
process.stdout.write(`\x1b[2K\r${renderProgressBar(completed, total, getActive())}`);
|
|
118
|
+
},
|
|
119
|
+
stage(modulePath, progress) {
|
|
120
|
+
if (progress.duration === undefined) {
|
|
121
|
+
// 阶段开始
|
|
122
|
+
process.stdout.write(`\x1b[2K\r → ${progress.message}\n`);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
// 阶段完成
|
|
126
|
+
process.stdout.write(`\x1b[2K\r ✓ ${progress.stage}完成 (${progress.duration}ms)\n`);
|
|
127
|
+
}
|
|
128
|
+
// 重绘进度条
|
|
129
|
+
process.stdout.write(`\x1b[2K\r${renderProgressBar(completed, total, getActive())}`);
|
|
130
|
+
},
|
|
131
|
+
complete(modulePath, status) {
|
|
132
|
+
completed++;
|
|
133
|
+
const moduleStart = moduleStartTimes.get(modulePath);
|
|
134
|
+
const duration = moduleStart ? Date.now() - moduleStart : undefined;
|
|
135
|
+
const statusEmoji = {
|
|
136
|
+
success: '✅',
|
|
137
|
+
failed: '❌',
|
|
138
|
+
skipped: '⏭️',
|
|
139
|
+
degraded: '⚠️',
|
|
140
|
+
}[status];
|
|
141
|
+
// 清行 → 输出完成行 → 重绘进度条
|
|
142
|
+
process.stdout.write(`\x1b[2K\r ${statusEmoji} ${modulePath} — ${status}${duration ? ` (${duration}ms)` : ''}\n`);
|
|
143
|
+
process.stdout.write(`\x1b[2K\r${renderProgressBar(completed, total, getActive())}`);
|
|
144
|
+
modules.push({ path: modulePath, status, duration });
|
|
145
|
+
},
|
|
146
|
+
finish() {
|
|
147
|
+
const duration = Date.now() - startTime;
|
|
148
|
+
const summary = {
|
|
149
|
+
totalModules: total,
|
|
150
|
+
successful: modules.filter((m) => m.status === 'success').length,
|
|
151
|
+
failed: modules.filter((m) => m.status === 'failed').length,
|
|
152
|
+
skipped: modules.filter((m) => m.status === 'skipped').length,
|
|
153
|
+
degraded: modules.filter((m) => m.status === 'degraded').length,
|
|
154
|
+
duration,
|
|
155
|
+
modules,
|
|
156
|
+
};
|
|
157
|
+
// 清除进度行 → 输出摘要统计
|
|
158
|
+
process.stdout.write('\x1b[2K\r');
|
|
159
|
+
process.stdout.write('\n--- 批处理完成 ---\n');
|
|
160
|
+
process.stdout.write(`总计: ${total} 模块\n`);
|
|
161
|
+
process.stdout.write(`成功: ${summary.successful}\n`);
|
|
162
|
+
process.stdout.write(`失败: ${summary.failed}\n`);
|
|
163
|
+
process.stdout.write(`跳过: ${summary.skipped}\n`);
|
|
164
|
+
process.stdout.write(`降级: ${summary.degraded}\n`);
|
|
165
|
+
process.stdout.write(`耗时: ${(duration / 1000).toFixed(1)}s\n`);
|
|
166
|
+
return summary;
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
// ============================================================
|
|
171
|
+
// Pipe 模式实现
|
|
172
|
+
// ============================================================
|
|
173
|
+
return {
|
|
174
|
+
start(modulePath) {
|
|
175
|
+
// pipe 模式 start 记录开始时间,不输出(避免噪音)
|
|
176
|
+
moduleStartTimes.set(modulePath, Date.now());
|
|
177
|
+
},
|
|
178
|
+
stage(_modulePath, _progress) {
|
|
179
|
+
// pipe 模式 stage 不输出,避免噪音
|
|
180
|
+
},
|
|
181
|
+
complete(modulePath, status) {
|
|
182
|
+
completed++;
|
|
183
|
+
const moduleStart = moduleStartTimes.get(modulePath);
|
|
184
|
+
const duration = moduleStart ? Date.now() - moduleStart : undefined;
|
|
185
|
+
// 纯文本行日志:[N/Total] module-path ... status
|
|
186
|
+
const durationStr = duration ? ` (${duration}ms)` : '';
|
|
187
|
+
process.stdout.write(`[${completed}/${total}] ${modulePath} ... ${status}${durationStr}\n`);
|
|
188
|
+
modules.push({ path: modulePath, status, duration });
|
|
189
|
+
},
|
|
190
|
+
finish() {
|
|
191
|
+
const duration = Date.now() - startTime;
|
|
192
|
+
const summary = {
|
|
193
|
+
totalModules: total,
|
|
194
|
+
successful: modules.filter((m) => m.status === 'success').length,
|
|
195
|
+
failed: modules.filter((m) => m.status === 'failed').length,
|
|
196
|
+
skipped: modules.filter((m) => m.status === 'skipped').length,
|
|
197
|
+
degraded: modules.filter((m) => m.status === 'degraded').length,
|
|
198
|
+
duration,
|
|
199
|
+
modules,
|
|
200
|
+
};
|
|
201
|
+
// 纯文本摘要,无 ANSI 控制码
|
|
202
|
+
process.stdout.write('\n--- 批处理完成 ---\n');
|
|
203
|
+
process.stdout.write(`总计: ${total} 模块\n`);
|
|
204
|
+
process.stdout.write(`成功: ${summary.successful}\n`);
|
|
205
|
+
process.stdout.write(`失败: ${summary.failed}\n`);
|
|
206
|
+
process.stdout.write(`跳过: ${summary.skipped}\n`);
|
|
207
|
+
process.stdout.write(`降级: ${summary.degraded}\n`);
|
|
208
|
+
process.stdout.write(`耗时: ${(duration / 1000).toFixed(1)}s\n`);
|
|
209
|
+
return summary;
|
|
210
|
+
},
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* 写入批处理摘要日志(FR-015)
|
|
215
|
+
*
|
|
216
|
+
* @param summary - 批处理摘要
|
|
217
|
+
* @param outputPath - 输出路径(specs/ 目录下)
|
|
218
|
+
* @param costSummary - 可选的 LLM 成本汇总(Feature 127 FR-008),存在时追加 "LLM 成本汇总" 节
|
|
219
|
+
* @param failedModules - 可选的失败模块详情(Bug 142),含 reason / retryCount / error;
|
|
220
|
+
* 传入时追加 "## 失败详情" 节,让用户能直接看到失败原因
|
|
221
|
+
* (如 retry-budget-exceeded),不必再翻 checkpoint 文件
|
|
222
|
+
*/
|
|
223
|
+
export function writeSummaryLog(summary, outputPath, costSummary, failedModules) {
|
|
224
|
+
const lines = [
|
|
225
|
+
'# 批处理摘要日志',
|
|
226
|
+
'',
|
|
227
|
+
`生成时间: ${new Date().toISOString()}`,
|
|
228
|
+
`总耗时: ${(summary.duration / 1000).toFixed(1)}s`,
|
|
229
|
+
'',
|
|
230
|
+
'## 统计',
|
|
231
|
+
'',
|
|
232
|
+
`| 指标 | 数值 |`,
|
|
233
|
+
`|------|------|`,
|
|
234
|
+
`| 总模块数 | ${summary.totalModules} |`,
|
|
235
|
+
`| 成功 | ${summary.successful} |`,
|
|
236
|
+
`| 失败 | ${summary.failed} |`,
|
|
237
|
+
`| 跳过 | ${summary.skipped} |`,
|
|
238
|
+
`| 降级 | ${summary.degraded} |`,
|
|
239
|
+
'',
|
|
240
|
+
'## 详情',
|
|
241
|
+
'',
|
|
242
|
+
'| 模块 | 状态 | 耗时 |',
|
|
243
|
+
'|------|------|------|',
|
|
244
|
+
];
|
|
245
|
+
for (const mod of summary.modules) {
|
|
246
|
+
const duration = mod.duration ? `${mod.duration}ms` : '-';
|
|
247
|
+
lines.push(`| ${mod.path} | ${mod.status} | ${duration} |`);
|
|
248
|
+
}
|
|
249
|
+
// Bug 142:追加失败详情节,输出 reason / retryCount / error
|
|
250
|
+
if (failedModules && failedModules.length > 0) {
|
|
251
|
+
lines.push('');
|
|
252
|
+
lines.push('## 失败详情');
|
|
253
|
+
lines.push('');
|
|
254
|
+
lines.push('| 模块 | 原因 | 重试次数 | 错误 |');
|
|
255
|
+
lines.push('|------|------|---------|------|');
|
|
256
|
+
for (const fm of failedModules) {
|
|
257
|
+
const reason = fm.reason ?? '-';
|
|
258
|
+
// 错误消息可能包含管道符 / 换行,转义后截断到合理长度
|
|
259
|
+
const errorEscaped = fm.error
|
|
260
|
+
.replace(/\r?\n/g, ' ')
|
|
261
|
+
.replace(/\|/g, '\\|')
|
|
262
|
+
.slice(0, 500);
|
|
263
|
+
lines.push(`| ${fm.path} | ${reason} | ${fm.retryCount} | ${errorEscaped} |`);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
// Feature 127:追加 LLM 成本汇总节
|
|
267
|
+
if (costSummary) {
|
|
268
|
+
lines.push('');
|
|
269
|
+
lines.push(renderSummaryCostSection(costSummary));
|
|
270
|
+
}
|
|
271
|
+
fs.writeFileSync(outputPath, lines.join('\n'), 'utf-8');
|
|
272
|
+
}
|
|
273
|
+
//# sourceMappingURL=progress-reporter.js.map
|