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,1905 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ModuleSpec、ArchitectureIndex、DriftReport、BatchState、RedactionResult
|
|
3
|
+
* 及所有相关嵌套实体的 Zod Schema 定义
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
/** 架构索引中展示的语言分布汇总信息 */
|
|
7
|
+
export declare const LanguageDistributionSchema: z.ZodObject<{
|
|
8
|
+
/** 语言显示名称(如 'TypeScript') */
|
|
9
|
+
language: z.ZodString;
|
|
10
|
+
/** 适配器 ID(如 'ts-js') */
|
|
11
|
+
adapterId: z.ZodString;
|
|
12
|
+
/** 文件数 */
|
|
13
|
+
fileCount: z.ZodNumber;
|
|
14
|
+
/** 模块数 */
|
|
15
|
+
moduleCount: z.ZodNumber;
|
|
16
|
+
/** 文件占比(%,保留一位小数) */
|
|
17
|
+
percentage: z.ZodNumber;
|
|
18
|
+
/** 本次批量生成是否处理了该语言 */
|
|
19
|
+
processed: z.ZodBoolean;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
language: string;
|
|
22
|
+
adapterId: string;
|
|
23
|
+
fileCount: number;
|
|
24
|
+
moduleCount: number;
|
|
25
|
+
percentage: number;
|
|
26
|
+
processed: boolean;
|
|
27
|
+
}, {
|
|
28
|
+
language: string;
|
|
29
|
+
adapterId: string;
|
|
30
|
+
fileCount: number;
|
|
31
|
+
moduleCount: number;
|
|
32
|
+
percentage: number;
|
|
33
|
+
processed: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
export type LanguageDistribution = z.infer<typeof LanguageDistributionSchema>;
|
|
36
|
+
/** LLM token 使用量(input / output 分项) */
|
|
37
|
+
export declare const TokenUsageSchema: z.ZodObject<{
|
|
38
|
+
input: z.ZodNumber;
|
|
39
|
+
output: z.ZodNumber;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
input: number;
|
|
42
|
+
output: number;
|
|
43
|
+
}, {
|
|
44
|
+
input: number;
|
|
45
|
+
output: number;
|
|
46
|
+
}>;
|
|
47
|
+
export type TokenUsage = z.infer<typeof TokenUsageSchema>;
|
|
48
|
+
/**
|
|
49
|
+
* Feature 140 FR-012 — 单次 spec 生成的 token 来源细分(observability)。
|
|
50
|
+
*
|
|
51
|
+
* 4 个字段含义:
|
|
52
|
+
* - `contextAssembly`:跨模块上下文总 input token(dependencies / snippets / slices /
|
|
53
|
+
* readme / caller / knowledge),来自 `AssembledContext.tokenBreakdown.contextAssembly`
|
|
54
|
+
* - `promptTemplate`:LLM prompt 模板 instructions 的 input token
|
|
55
|
+
* - `sourceFile`:目标模块 skeleton 的 input token
|
|
56
|
+
* - `llmReasoning`:LLM response 的 output token(来自 SDK usage.outputTokens)
|
|
57
|
+
*
|
|
58
|
+
* 与 `TokenUsage` 的关系:`TokenUsage.input ≈ contextAssembly + promptTemplate + sourceFile`
|
|
59
|
+
* (存在轻微差异:分隔符开销 + estimateFast vs SDK actual 差异);
|
|
60
|
+
* `TokenUsage.output = llmReasoning`。本字段是 input 端的进一步细分。
|
|
61
|
+
*/
|
|
62
|
+
export declare const CostBreakdownSchema: z.ZodObject<{
|
|
63
|
+
/** 跨模块上下文总 input token(dependencies / snippets / readme 等聚合) */
|
|
64
|
+
contextAssembly: z.ZodNumber;
|
|
65
|
+
/** prompt 模板 instructions 的 input token */
|
|
66
|
+
promptTemplate: z.ZodNumber;
|
|
67
|
+
/** 目标模块 skeleton 的 input token */
|
|
68
|
+
sourceFile: z.ZodNumber;
|
|
69
|
+
/** LLM response output token(来自 SDK usage) */
|
|
70
|
+
llmReasoning: z.ZodNumber;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
contextAssembly: number;
|
|
73
|
+
promptTemplate: number;
|
|
74
|
+
sourceFile: number;
|
|
75
|
+
llmReasoning: number;
|
|
76
|
+
}, {
|
|
77
|
+
contextAssembly: number;
|
|
78
|
+
promptTemplate: number;
|
|
79
|
+
sourceFile: number;
|
|
80
|
+
llmReasoning: number;
|
|
81
|
+
}>;
|
|
82
|
+
export type CostBreakdown = z.infer<typeof CostBreakdownSchema>;
|
|
83
|
+
/** 单次 spec 生成的成本元数据(Feature 127) */
|
|
84
|
+
export declare const CostMetadataSchema: z.ZodObject<{
|
|
85
|
+
/** 本次生成消耗的 input / output token 数 */
|
|
86
|
+
tokenUsage: z.ZodObject<{
|
|
87
|
+
input: z.ZodNumber;
|
|
88
|
+
output: z.ZodNumber;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
input: number;
|
|
91
|
+
output: number;
|
|
92
|
+
}, {
|
|
93
|
+
input: number;
|
|
94
|
+
output: number;
|
|
95
|
+
}>;
|
|
96
|
+
/** LLM + enrichment 总耗时(毫秒) */
|
|
97
|
+
durationMs: z.ZodNumber;
|
|
98
|
+
/** 实际使用的 LLM 模型 ID;AST-only 降级时为空字符串 */
|
|
99
|
+
llmModel: z.ZodString;
|
|
100
|
+
/** 降级原因;未降级时为 null */
|
|
101
|
+
fallbackReason: z.ZodNullable<z.ZodString>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
tokenUsage: {
|
|
104
|
+
input: number;
|
|
105
|
+
output: number;
|
|
106
|
+
};
|
|
107
|
+
durationMs: number;
|
|
108
|
+
llmModel: string;
|
|
109
|
+
fallbackReason: string | null;
|
|
110
|
+
}, {
|
|
111
|
+
tokenUsage: {
|
|
112
|
+
input: number;
|
|
113
|
+
output: number;
|
|
114
|
+
};
|
|
115
|
+
durationMs: number;
|
|
116
|
+
llmModel: string;
|
|
117
|
+
fallbackReason: string | null;
|
|
118
|
+
}>;
|
|
119
|
+
export type CostMetadata = z.infer<typeof CostMetadataSchema>;
|
|
120
|
+
/** YAML Frontmatter */
|
|
121
|
+
export declare const SpecFrontmatterSchema: z.ZodObject<{
|
|
122
|
+
type: z.ZodLiteral<"module-spec">;
|
|
123
|
+
version: z.ZodString;
|
|
124
|
+
generatedBy: z.ZodString;
|
|
125
|
+
sourceTarget: z.ZodString;
|
|
126
|
+
relatedFiles: z.ZodArray<z.ZodString, "many">;
|
|
127
|
+
lastUpdated: z.ZodString;
|
|
128
|
+
confidence: z.ZodEnum<["high", "medium", "low"]>;
|
|
129
|
+
skeletonHash: z.ZodString;
|
|
130
|
+
/** 模块主要编程语言(多语言项目时设置) */
|
|
131
|
+
language: z.ZodOptional<z.ZodString>;
|
|
132
|
+
/** 跨语言引用(如 ['go:services/auth', 'python:scripts/deploy']) */
|
|
133
|
+
crossLanguageRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
134
|
+
/** 人类可读的模块显示名(默认取目录名) */
|
|
135
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
136
|
+
/** 本次生成消耗的 token 使用量(Feature 127) */
|
|
137
|
+
tokenUsage: z.ZodOptional<z.ZodObject<{
|
|
138
|
+
input: z.ZodNumber;
|
|
139
|
+
output: z.ZodNumber;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
input: number;
|
|
142
|
+
output: number;
|
|
143
|
+
}, {
|
|
144
|
+
input: number;
|
|
145
|
+
output: number;
|
|
146
|
+
}>>;
|
|
147
|
+
/** LLM + enrichment 总耗时(毫秒)(Feature 127) */
|
|
148
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
/** 实际使用的 LLM 模型 ID(Feature 127) */
|
|
150
|
+
llmModel: z.ZodOptional<z.ZodString>;
|
|
151
|
+
/** 降级原因(Feature 127);未降级时为 null */
|
|
152
|
+
fallbackReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
/** 生成本 spec 时的批处理模式(Bug 142 修复);旧 spec 缺失此字段时视为 cache miss */
|
|
154
|
+
generatedByMode: z.ZodOptional<z.ZodEnum<["full", "reading", "code-only"]>>;
|
|
155
|
+
/** spec 身份类型(Feature 128);缺失时应用层默认视为 'canonical'(向后兼容历史 spec) */
|
|
156
|
+
sourceKind: z.ZodOptional<z.ZodEnum<["canonical", "derived", "bundle_copy"]>>;
|
|
157
|
+
/** 派生来源 spec 的 outputPath(Feature 128,相对于 projectRoot);canonical 时为 null 或 undefined */
|
|
158
|
+
derivedFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
+
/**
|
|
160
|
+
* Feature 140 FR-012 — input token 来源细分(observability)。
|
|
161
|
+
* 旧 spec 缺失此字段时视为未观测,下游聚合 Top N 时跳过。
|
|
162
|
+
*/
|
|
163
|
+
costBreakdown: z.ZodOptional<z.ZodObject<{
|
|
164
|
+
/** 跨模块上下文总 input token(dependencies / snippets / readme 等聚合) */
|
|
165
|
+
contextAssembly: z.ZodNumber;
|
|
166
|
+
/** prompt 模板 instructions 的 input token */
|
|
167
|
+
promptTemplate: z.ZodNumber;
|
|
168
|
+
/** 目标模块 skeleton 的 input token */
|
|
169
|
+
sourceFile: z.ZodNumber;
|
|
170
|
+
/** LLM response output token(来自 SDK usage) */
|
|
171
|
+
llmReasoning: z.ZodNumber;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
contextAssembly: number;
|
|
174
|
+
promptTemplate: number;
|
|
175
|
+
sourceFile: number;
|
|
176
|
+
llmReasoning: number;
|
|
177
|
+
}, {
|
|
178
|
+
contextAssembly: number;
|
|
179
|
+
promptTemplate: number;
|
|
180
|
+
sourceFile: number;
|
|
181
|
+
llmReasoning: number;
|
|
182
|
+
}>>;
|
|
183
|
+
/**
|
|
184
|
+
* Feature 140 FR-012 — context 是否被 budget 截断。
|
|
185
|
+
* true 时表示 `assembleContext` 因超预算丢弃了部分跨模块输入;缺失时视为 false(向后兼容)。
|
|
186
|
+
*/
|
|
187
|
+
contextTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
type: "module-spec";
|
|
190
|
+
confidence: "low" | "medium" | "high";
|
|
191
|
+
version: string;
|
|
192
|
+
generatedBy: string;
|
|
193
|
+
sourceTarget: string;
|
|
194
|
+
relatedFiles: string[];
|
|
195
|
+
lastUpdated: string;
|
|
196
|
+
skeletonHash: string;
|
|
197
|
+
language?: string | undefined;
|
|
198
|
+
tokenUsage?: {
|
|
199
|
+
input: number;
|
|
200
|
+
output: number;
|
|
201
|
+
} | undefined;
|
|
202
|
+
durationMs?: number | undefined;
|
|
203
|
+
llmModel?: string | undefined;
|
|
204
|
+
fallbackReason?: string | null | undefined;
|
|
205
|
+
crossLanguageRefs?: string[] | undefined;
|
|
206
|
+
displayName?: string | undefined;
|
|
207
|
+
generatedByMode?: "full" | "reading" | "code-only" | undefined;
|
|
208
|
+
sourceKind?: "canonical" | "derived" | "bundle_copy" | undefined;
|
|
209
|
+
derivedFrom?: string | null | undefined;
|
|
210
|
+
costBreakdown?: {
|
|
211
|
+
contextAssembly: number;
|
|
212
|
+
promptTemplate: number;
|
|
213
|
+
sourceFile: number;
|
|
214
|
+
llmReasoning: number;
|
|
215
|
+
} | undefined;
|
|
216
|
+
contextTruncated?: boolean | undefined;
|
|
217
|
+
}, {
|
|
218
|
+
type: "module-spec";
|
|
219
|
+
confidence: "low" | "medium" | "high";
|
|
220
|
+
version: string;
|
|
221
|
+
generatedBy: string;
|
|
222
|
+
sourceTarget: string;
|
|
223
|
+
relatedFiles: string[];
|
|
224
|
+
lastUpdated: string;
|
|
225
|
+
skeletonHash: string;
|
|
226
|
+
language?: string | undefined;
|
|
227
|
+
tokenUsage?: {
|
|
228
|
+
input: number;
|
|
229
|
+
output: number;
|
|
230
|
+
} | undefined;
|
|
231
|
+
durationMs?: number | undefined;
|
|
232
|
+
llmModel?: string | undefined;
|
|
233
|
+
fallbackReason?: string | null | undefined;
|
|
234
|
+
crossLanguageRefs?: string[] | undefined;
|
|
235
|
+
displayName?: string | undefined;
|
|
236
|
+
generatedByMode?: "full" | "reading" | "code-only" | undefined;
|
|
237
|
+
sourceKind?: "canonical" | "derived" | "bundle_copy" | undefined;
|
|
238
|
+
derivedFrom?: string | null | undefined;
|
|
239
|
+
costBreakdown?: {
|
|
240
|
+
contextAssembly: number;
|
|
241
|
+
promptTemplate: number;
|
|
242
|
+
sourceFile: number;
|
|
243
|
+
llmReasoning: number;
|
|
244
|
+
} | undefined;
|
|
245
|
+
contextTruncated?: boolean | undefined;
|
|
246
|
+
}>;
|
|
247
|
+
export type SpecFrontmatter = z.infer<typeof SpecFrontmatterSchema>;
|
|
248
|
+
/** 9 段式 Spec 内容 */
|
|
249
|
+
export declare const SpecSectionsSchema: z.ZodObject<{
|
|
250
|
+
intent: z.ZodString;
|
|
251
|
+
interfaceDefinition: z.ZodString;
|
|
252
|
+
businessLogic: z.ZodString;
|
|
253
|
+
dataStructures: z.ZodString;
|
|
254
|
+
constraints: z.ZodString;
|
|
255
|
+
edgeCases: z.ZodString;
|
|
256
|
+
technicalDebt: z.ZodString;
|
|
257
|
+
testCoverage: z.ZodString;
|
|
258
|
+
dependencies: z.ZodString;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
intent: string;
|
|
261
|
+
interfaceDefinition: string;
|
|
262
|
+
businessLogic: string;
|
|
263
|
+
dataStructures: string;
|
|
264
|
+
constraints: string;
|
|
265
|
+
edgeCases: string;
|
|
266
|
+
technicalDebt: string;
|
|
267
|
+
testCoverage: string;
|
|
268
|
+
dependencies: string;
|
|
269
|
+
}, {
|
|
270
|
+
intent: string;
|
|
271
|
+
interfaceDefinition: string;
|
|
272
|
+
businessLogic: string;
|
|
273
|
+
dataStructures: string;
|
|
274
|
+
constraints: string;
|
|
275
|
+
edgeCases: string;
|
|
276
|
+
technicalDebt: string;
|
|
277
|
+
testCoverage: string;
|
|
278
|
+
dependencies: string;
|
|
279
|
+
}>;
|
|
280
|
+
export type SpecSections = z.infer<typeof SpecSectionsSchema>;
|
|
281
|
+
/** Mermaid 图表 */
|
|
282
|
+
export declare const MermaidDiagramSchema: z.ZodObject<{
|
|
283
|
+
type: z.ZodEnum<["classDiagram", "flowchart", "graph"]>;
|
|
284
|
+
source: z.ZodString;
|
|
285
|
+
title: z.ZodOptional<z.ZodString>;
|
|
286
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
|
+
type: "classDiagram" | "flowchart" | "graph";
|
|
288
|
+
source: string;
|
|
289
|
+
title?: string | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
type: "classDiagram" | "flowchart" | "graph";
|
|
292
|
+
source: string;
|
|
293
|
+
title?: string | undefined;
|
|
294
|
+
}>;
|
|
295
|
+
export type MermaidDiagram = z.infer<typeof MermaidDiagramSchema>;
|
|
296
|
+
/** 源文件清单条目 */
|
|
297
|
+
export declare const FileEntrySchema: z.ZodObject<{
|
|
298
|
+
path: z.ZodString;
|
|
299
|
+
loc: z.ZodNumber;
|
|
300
|
+
purpose: z.ZodString;
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
302
|
+
path: string;
|
|
303
|
+
loc: number;
|
|
304
|
+
purpose: string;
|
|
305
|
+
}, {
|
|
306
|
+
path: string;
|
|
307
|
+
loc: number;
|
|
308
|
+
purpose: string;
|
|
309
|
+
}>;
|
|
310
|
+
export type FileEntry = z.infer<typeof FileEntrySchema>;
|
|
311
|
+
/** 交叉引用链接 */
|
|
312
|
+
export declare const CrossReferenceLinkSchema: z.ZodObject<{
|
|
313
|
+
label: z.ZodString;
|
|
314
|
+
href: z.ZodString;
|
|
315
|
+
targetSpecPath: z.ZodString;
|
|
316
|
+
targetSourceTarget: z.ZodString;
|
|
317
|
+
kind: z.ZodEnum<["same-module", "cross-module"]>;
|
|
318
|
+
direction: z.ZodEnum<["internal", "outbound", "inbound", "bidirectional"]>;
|
|
319
|
+
evidenceCount: z.ZodNumber;
|
|
320
|
+
summary: z.ZodString;
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
kind: "same-module" | "cross-module";
|
|
323
|
+
label: string;
|
|
324
|
+
href: string;
|
|
325
|
+
targetSpecPath: string;
|
|
326
|
+
targetSourceTarget: string;
|
|
327
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
328
|
+
evidenceCount: number;
|
|
329
|
+
summary: string;
|
|
330
|
+
}, {
|
|
331
|
+
kind: "same-module" | "cross-module";
|
|
332
|
+
label: string;
|
|
333
|
+
href: string;
|
|
334
|
+
targetSpecPath: string;
|
|
335
|
+
targetSourceTarget: string;
|
|
336
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
337
|
+
evidenceCount: number;
|
|
338
|
+
summary: string;
|
|
339
|
+
}>;
|
|
340
|
+
export type CrossReferenceLink = z.infer<typeof CrossReferenceLinkSchema>;
|
|
341
|
+
/** 当前模块的交叉引用索引 */
|
|
342
|
+
export declare const ModuleCrossReferenceIndexSchema: z.ZodObject<{
|
|
343
|
+
generatedAt: z.ZodString;
|
|
344
|
+
sameModule: z.ZodArray<z.ZodObject<{
|
|
345
|
+
label: z.ZodString;
|
|
346
|
+
href: z.ZodString;
|
|
347
|
+
targetSpecPath: z.ZodString;
|
|
348
|
+
targetSourceTarget: z.ZodString;
|
|
349
|
+
kind: z.ZodEnum<["same-module", "cross-module"]>;
|
|
350
|
+
direction: z.ZodEnum<["internal", "outbound", "inbound", "bidirectional"]>;
|
|
351
|
+
evidenceCount: z.ZodNumber;
|
|
352
|
+
summary: z.ZodString;
|
|
353
|
+
}, "strip", z.ZodTypeAny, {
|
|
354
|
+
kind: "same-module" | "cross-module";
|
|
355
|
+
label: string;
|
|
356
|
+
href: string;
|
|
357
|
+
targetSpecPath: string;
|
|
358
|
+
targetSourceTarget: string;
|
|
359
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
360
|
+
evidenceCount: number;
|
|
361
|
+
summary: string;
|
|
362
|
+
}, {
|
|
363
|
+
kind: "same-module" | "cross-module";
|
|
364
|
+
label: string;
|
|
365
|
+
href: string;
|
|
366
|
+
targetSpecPath: string;
|
|
367
|
+
targetSourceTarget: string;
|
|
368
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
369
|
+
evidenceCount: number;
|
|
370
|
+
summary: string;
|
|
371
|
+
}>, "many">;
|
|
372
|
+
crossModule: z.ZodArray<z.ZodObject<{
|
|
373
|
+
label: z.ZodString;
|
|
374
|
+
href: z.ZodString;
|
|
375
|
+
targetSpecPath: z.ZodString;
|
|
376
|
+
targetSourceTarget: z.ZodString;
|
|
377
|
+
kind: z.ZodEnum<["same-module", "cross-module"]>;
|
|
378
|
+
direction: z.ZodEnum<["internal", "outbound", "inbound", "bidirectional"]>;
|
|
379
|
+
evidenceCount: z.ZodNumber;
|
|
380
|
+
summary: z.ZodString;
|
|
381
|
+
}, "strip", z.ZodTypeAny, {
|
|
382
|
+
kind: "same-module" | "cross-module";
|
|
383
|
+
label: string;
|
|
384
|
+
href: string;
|
|
385
|
+
targetSpecPath: string;
|
|
386
|
+
targetSourceTarget: string;
|
|
387
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
388
|
+
evidenceCount: number;
|
|
389
|
+
summary: string;
|
|
390
|
+
}, {
|
|
391
|
+
kind: "same-module" | "cross-module";
|
|
392
|
+
label: string;
|
|
393
|
+
href: string;
|
|
394
|
+
targetSpecPath: string;
|
|
395
|
+
targetSourceTarget: string;
|
|
396
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
397
|
+
evidenceCount: number;
|
|
398
|
+
summary: string;
|
|
399
|
+
}>, "many">;
|
|
400
|
+
}, "strip", z.ZodTypeAny, {
|
|
401
|
+
generatedAt: string;
|
|
402
|
+
sameModule: {
|
|
403
|
+
kind: "same-module" | "cross-module";
|
|
404
|
+
label: string;
|
|
405
|
+
href: string;
|
|
406
|
+
targetSpecPath: string;
|
|
407
|
+
targetSourceTarget: string;
|
|
408
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
409
|
+
evidenceCount: number;
|
|
410
|
+
summary: string;
|
|
411
|
+
}[];
|
|
412
|
+
crossModule: {
|
|
413
|
+
kind: "same-module" | "cross-module";
|
|
414
|
+
label: string;
|
|
415
|
+
href: string;
|
|
416
|
+
targetSpecPath: string;
|
|
417
|
+
targetSourceTarget: string;
|
|
418
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
419
|
+
evidenceCount: number;
|
|
420
|
+
summary: string;
|
|
421
|
+
}[];
|
|
422
|
+
}, {
|
|
423
|
+
generatedAt: string;
|
|
424
|
+
sameModule: {
|
|
425
|
+
kind: "same-module" | "cross-module";
|
|
426
|
+
label: string;
|
|
427
|
+
href: string;
|
|
428
|
+
targetSpecPath: string;
|
|
429
|
+
targetSourceTarget: string;
|
|
430
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
431
|
+
evidenceCount: number;
|
|
432
|
+
summary: string;
|
|
433
|
+
}[];
|
|
434
|
+
crossModule: {
|
|
435
|
+
kind: "same-module" | "cross-module";
|
|
436
|
+
label: string;
|
|
437
|
+
href: string;
|
|
438
|
+
targetSpecPath: string;
|
|
439
|
+
targetSourceTarget: string;
|
|
440
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
441
|
+
evidenceCount: number;
|
|
442
|
+
summary: string;
|
|
443
|
+
}[];
|
|
444
|
+
}>;
|
|
445
|
+
export type ModuleCrossReferenceIndex = z.infer<typeof ModuleCrossReferenceIndexSchema>;
|
|
446
|
+
/** 单模块 Spec 文档结构化表示 */
|
|
447
|
+
export declare const ModuleSpecSchema: z.ZodObject<{
|
|
448
|
+
frontmatter: z.ZodObject<{
|
|
449
|
+
type: z.ZodLiteral<"module-spec">;
|
|
450
|
+
version: z.ZodString;
|
|
451
|
+
generatedBy: z.ZodString;
|
|
452
|
+
sourceTarget: z.ZodString;
|
|
453
|
+
relatedFiles: z.ZodArray<z.ZodString, "many">;
|
|
454
|
+
lastUpdated: z.ZodString;
|
|
455
|
+
confidence: z.ZodEnum<["high", "medium", "low"]>;
|
|
456
|
+
skeletonHash: z.ZodString;
|
|
457
|
+
/** 模块主要编程语言(多语言项目时设置) */
|
|
458
|
+
language: z.ZodOptional<z.ZodString>;
|
|
459
|
+
/** 跨语言引用(如 ['go:services/auth', 'python:scripts/deploy']) */
|
|
460
|
+
crossLanguageRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
461
|
+
/** 人类可读的模块显示名(默认取目录名) */
|
|
462
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
463
|
+
/** 本次生成消耗的 token 使用量(Feature 127) */
|
|
464
|
+
tokenUsage: z.ZodOptional<z.ZodObject<{
|
|
465
|
+
input: z.ZodNumber;
|
|
466
|
+
output: z.ZodNumber;
|
|
467
|
+
}, "strip", z.ZodTypeAny, {
|
|
468
|
+
input: number;
|
|
469
|
+
output: number;
|
|
470
|
+
}, {
|
|
471
|
+
input: number;
|
|
472
|
+
output: number;
|
|
473
|
+
}>>;
|
|
474
|
+
/** LLM + enrichment 总耗时(毫秒)(Feature 127) */
|
|
475
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
/** 实际使用的 LLM 模型 ID(Feature 127) */
|
|
477
|
+
llmModel: z.ZodOptional<z.ZodString>;
|
|
478
|
+
/** 降级原因(Feature 127);未降级时为 null */
|
|
479
|
+
fallbackReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
480
|
+
/** 生成本 spec 时的批处理模式(Bug 142 修复);旧 spec 缺失此字段时视为 cache miss */
|
|
481
|
+
generatedByMode: z.ZodOptional<z.ZodEnum<["full", "reading", "code-only"]>>;
|
|
482
|
+
/** spec 身份类型(Feature 128);缺失时应用层默认视为 'canonical'(向后兼容历史 spec) */
|
|
483
|
+
sourceKind: z.ZodOptional<z.ZodEnum<["canonical", "derived", "bundle_copy"]>>;
|
|
484
|
+
/** 派生来源 spec 的 outputPath(Feature 128,相对于 projectRoot);canonical 时为 null 或 undefined */
|
|
485
|
+
derivedFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
486
|
+
/**
|
|
487
|
+
* Feature 140 FR-012 — input token 来源细分(observability)。
|
|
488
|
+
* 旧 spec 缺失此字段时视为未观测,下游聚合 Top N 时跳过。
|
|
489
|
+
*/
|
|
490
|
+
costBreakdown: z.ZodOptional<z.ZodObject<{
|
|
491
|
+
/** 跨模块上下文总 input token(dependencies / snippets / readme 等聚合) */
|
|
492
|
+
contextAssembly: z.ZodNumber;
|
|
493
|
+
/** prompt 模板 instructions 的 input token */
|
|
494
|
+
promptTemplate: z.ZodNumber;
|
|
495
|
+
/** 目标模块 skeleton 的 input token */
|
|
496
|
+
sourceFile: z.ZodNumber;
|
|
497
|
+
/** LLM response output token(来自 SDK usage) */
|
|
498
|
+
llmReasoning: z.ZodNumber;
|
|
499
|
+
}, "strip", z.ZodTypeAny, {
|
|
500
|
+
contextAssembly: number;
|
|
501
|
+
promptTemplate: number;
|
|
502
|
+
sourceFile: number;
|
|
503
|
+
llmReasoning: number;
|
|
504
|
+
}, {
|
|
505
|
+
contextAssembly: number;
|
|
506
|
+
promptTemplate: number;
|
|
507
|
+
sourceFile: number;
|
|
508
|
+
llmReasoning: number;
|
|
509
|
+
}>>;
|
|
510
|
+
/**
|
|
511
|
+
* Feature 140 FR-012 — context 是否被 budget 截断。
|
|
512
|
+
* true 时表示 `assembleContext` 因超预算丢弃了部分跨模块输入;缺失时视为 false(向后兼容)。
|
|
513
|
+
*/
|
|
514
|
+
contextTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
515
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
type: "module-spec";
|
|
517
|
+
confidence: "low" | "medium" | "high";
|
|
518
|
+
version: string;
|
|
519
|
+
generatedBy: string;
|
|
520
|
+
sourceTarget: string;
|
|
521
|
+
relatedFiles: string[];
|
|
522
|
+
lastUpdated: string;
|
|
523
|
+
skeletonHash: string;
|
|
524
|
+
language?: string | undefined;
|
|
525
|
+
tokenUsage?: {
|
|
526
|
+
input: number;
|
|
527
|
+
output: number;
|
|
528
|
+
} | undefined;
|
|
529
|
+
durationMs?: number | undefined;
|
|
530
|
+
llmModel?: string | undefined;
|
|
531
|
+
fallbackReason?: string | null | undefined;
|
|
532
|
+
crossLanguageRefs?: string[] | undefined;
|
|
533
|
+
displayName?: string | undefined;
|
|
534
|
+
generatedByMode?: "full" | "reading" | "code-only" | undefined;
|
|
535
|
+
sourceKind?: "canonical" | "derived" | "bundle_copy" | undefined;
|
|
536
|
+
derivedFrom?: string | null | undefined;
|
|
537
|
+
costBreakdown?: {
|
|
538
|
+
contextAssembly: number;
|
|
539
|
+
promptTemplate: number;
|
|
540
|
+
sourceFile: number;
|
|
541
|
+
llmReasoning: number;
|
|
542
|
+
} | undefined;
|
|
543
|
+
contextTruncated?: boolean | undefined;
|
|
544
|
+
}, {
|
|
545
|
+
type: "module-spec";
|
|
546
|
+
confidence: "low" | "medium" | "high";
|
|
547
|
+
version: string;
|
|
548
|
+
generatedBy: string;
|
|
549
|
+
sourceTarget: string;
|
|
550
|
+
relatedFiles: string[];
|
|
551
|
+
lastUpdated: string;
|
|
552
|
+
skeletonHash: string;
|
|
553
|
+
language?: string | undefined;
|
|
554
|
+
tokenUsage?: {
|
|
555
|
+
input: number;
|
|
556
|
+
output: number;
|
|
557
|
+
} | undefined;
|
|
558
|
+
durationMs?: number | undefined;
|
|
559
|
+
llmModel?: string | undefined;
|
|
560
|
+
fallbackReason?: string | null | undefined;
|
|
561
|
+
crossLanguageRefs?: string[] | undefined;
|
|
562
|
+
displayName?: string | undefined;
|
|
563
|
+
generatedByMode?: "full" | "reading" | "code-only" | undefined;
|
|
564
|
+
sourceKind?: "canonical" | "derived" | "bundle_copy" | undefined;
|
|
565
|
+
derivedFrom?: string | null | undefined;
|
|
566
|
+
costBreakdown?: {
|
|
567
|
+
contextAssembly: number;
|
|
568
|
+
promptTemplate: number;
|
|
569
|
+
sourceFile: number;
|
|
570
|
+
llmReasoning: number;
|
|
571
|
+
} | undefined;
|
|
572
|
+
contextTruncated?: boolean | undefined;
|
|
573
|
+
}>;
|
|
574
|
+
sections: z.ZodObject<{
|
|
575
|
+
intent: z.ZodString;
|
|
576
|
+
interfaceDefinition: z.ZodString;
|
|
577
|
+
businessLogic: z.ZodString;
|
|
578
|
+
dataStructures: z.ZodString;
|
|
579
|
+
constraints: z.ZodString;
|
|
580
|
+
edgeCases: z.ZodString;
|
|
581
|
+
technicalDebt: z.ZodString;
|
|
582
|
+
testCoverage: z.ZodString;
|
|
583
|
+
dependencies: z.ZodString;
|
|
584
|
+
}, "strip", z.ZodTypeAny, {
|
|
585
|
+
intent: string;
|
|
586
|
+
interfaceDefinition: string;
|
|
587
|
+
businessLogic: string;
|
|
588
|
+
dataStructures: string;
|
|
589
|
+
constraints: string;
|
|
590
|
+
edgeCases: string;
|
|
591
|
+
technicalDebt: string;
|
|
592
|
+
testCoverage: string;
|
|
593
|
+
dependencies: string;
|
|
594
|
+
}, {
|
|
595
|
+
intent: string;
|
|
596
|
+
interfaceDefinition: string;
|
|
597
|
+
businessLogic: string;
|
|
598
|
+
dataStructures: string;
|
|
599
|
+
constraints: string;
|
|
600
|
+
edgeCases: string;
|
|
601
|
+
technicalDebt: string;
|
|
602
|
+
testCoverage: string;
|
|
603
|
+
dependencies: string;
|
|
604
|
+
}>;
|
|
605
|
+
mermaidDiagrams: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
606
|
+
type: z.ZodEnum<["classDiagram", "flowchart", "graph"]>;
|
|
607
|
+
source: z.ZodString;
|
|
608
|
+
title: z.ZodOptional<z.ZodString>;
|
|
609
|
+
}, "strip", z.ZodTypeAny, {
|
|
610
|
+
type: "classDiagram" | "flowchart" | "graph";
|
|
611
|
+
source: string;
|
|
612
|
+
title?: string | undefined;
|
|
613
|
+
}, {
|
|
614
|
+
type: "classDiagram" | "flowchart" | "graph";
|
|
615
|
+
source: string;
|
|
616
|
+
title?: string | undefined;
|
|
617
|
+
}>, "many">>;
|
|
618
|
+
fileInventory: z.ZodArray<z.ZodObject<{
|
|
619
|
+
path: z.ZodString;
|
|
620
|
+
loc: z.ZodNumber;
|
|
621
|
+
purpose: z.ZodString;
|
|
622
|
+
}, "strip", z.ZodTypeAny, {
|
|
623
|
+
path: string;
|
|
624
|
+
loc: number;
|
|
625
|
+
purpose: string;
|
|
626
|
+
}, {
|
|
627
|
+
path: string;
|
|
628
|
+
loc: number;
|
|
629
|
+
purpose: string;
|
|
630
|
+
}>, "many">;
|
|
631
|
+
crossReferenceIndex: z.ZodOptional<z.ZodObject<{
|
|
632
|
+
generatedAt: z.ZodString;
|
|
633
|
+
sameModule: z.ZodArray<z.ZodObject<{
|
|
634
|
+
label: z.ZodString;
|
|
635
|
+
href: z.ZodString;
|
|
636
|
+
targetSpecPath: z.ZodString;
|
|
637
|
+
targetSourceTarget: z.ZodString;
|
|
638
|
+
kind: z.ZodEnum<["same-module", "cross-module"]>;
|
|
639
|
+
direction: z.ZodEnum<["internal", "outbound", "inbound", "bidirectional"]>;
|
|
640
|
+
evidenceCount: z.ZodNumber;
|
|
641
|
+
summary: z.ZodString;
|
|
642
|
+
}, "strip", z.ZodTypeAny, {
|
|
643
|
+
kind: "same-module" | "cross-module";
|
|
644
|
+
label: string;
|
|
645
|
+
href: string;
|
|
646
|
+
targetSpecPath: string;
|
|
647
|
+
targetSourceTarget: string;
|
|
648
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
649
|
+
evidenceCount: number;
|
|
650
|
+
summary: string;
|
|
651
|
+
}, {
|
|
652
|
+
kind: "same-module" | "cross-module";
|
|
653
|
+
label: string;
|
|
654
|
+
href: string;
|
|
655
|
+
targetSpecPath: string;
|
|
656
|
+
targetSourceTarget: string;
|
|
657
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
658
|
+
evidenceCount: number;
|
|
659
|
+
summary: string;
|
|
660
|
+
}>, "many">;
|
|
661
|
+
crossModule: z.ZodArray<z.ZodObject<{
|
|
662
|
+
label: z.ZodString;
|
|
663
|
+
href: z.ZodString;
|
|
664
|
+
targetSpecPath: z.ZodString;
|
|
665
|
+
targetSourceTarget: z.ZodString;
|
|
666
|
+
kind: z.ZodEnum<["same-module", "cross-module"]>;
|
|
667
|
+
direction: z.ZodEnum<["internal", "outbound", "inbound", "bidirectional"]>;
|
|
668
|
+
evidenceCount: z.ZodNumber;
|
|
669
|
+
summary: z.ZodString;
|
|
670
|
+
}, "strip", z.ZodTypeAny, {
|
|
671
|
+
kind: "same-module" | "cross-module";
|
|
672
|
+
label: string;
|
|
673
|
+
href: string;
|
|
674
|
+
targetSpecPath: string;
|
|
675
|
+
targetSourceTarget: string;
|
|
676
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
677
|
+
evidenceCount: number;
|
|
678
|
+
summary: string;
|
|
679
|
+
}, {
|
|
680
|
+
kind: "same-module" | "cross-module";
|
|
681
|
+
label: string;
|
|
682
|
+
href: string;
|
|
683
|
+
targetSpecPath: string;
|
|
684
|
+
targetSourceTarget: string;
|
|
685
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
686
|
+
evidenceCount: number;
|
|
687
|
+
summary: string;
|
|
688
|
+
}>, "many">;
|
|
689
|
+
}, "strip", z.ZodTypeAny, {
|
|
690
|
+
generatedAt: string;
|
|
691
|
+
sameModule: {
|
|
692
|
+
kind: "same-module" | "cross-module";
|
|
693
|
+
label: string;
|
|
694
|
+
href: string;
|
|
695
|
+
targetSpecPath: string;
|
|
696
|
+
targetSourceTarget: string;
|
|
697
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
698
|
+
evidenceCount: number;
|
|
699
|
+
summary: string;
|
|
700
|
+
}[];
|
|
701
|
+
crossModule: {
|
|
702
|
+
kind: "same-module" | "cross-module";
|
|
703
|
+
label: string;
|
|
704
|
+
href: string;
|
|
705
|
+
targetSpecPath: string;
|
|
706
|
+
targetSourceTarget: string;
|
|
707
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
708
|
+
evidenceCount: number;
|
|
709
|
+
summary: string;
|
|
710
|
+
}[];
|
|
711
|
+
}, {
|
|
712
|
+
generatedAt: string;
|
|
713
|
+
sameModule: {
|
|
714
|
+
kind: "same-module" | "cross-module";
|
|
715
|
+
label: string;
|
|
716
|
+
href: string;
|
|
717
|
+
targetSpecPath: string;
|
|
718
|
+
targetSourceTarget: string;
|
|
719
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
720
|
+
evidenceCount: number;
|
|
721
|
+
summary: string;
|
|
722
|
+
}[];
|
|
723
|
+
crossModule: {
|
|
724
|
+
kind: "same-module" | "cross-module";
|
|
725
|
+
label: string;
|
|
726
|
+
href: string;
|
|
727
|
+
targetSpecPath: string;
|
|
728
|
+
targetSourceTarget: string;
|
|
729
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
730
|
+
evidenceCount: number;
|
|
731
|
+
summary: string;
|
|
732
|
+
}[];
|
|
733
|
+
}>>;
|
|
734
|
+
baselineSkeleton: z.ZodObject<{
|
|
735
|
+
filePath: z.ZodString;
|
|
736
|
+
language: z.ZodEnum<["typescript", "javascript", "python", "go", "java", "rust", "kotlin", "cpp", "ruby", "swift"]>;
|
|
737
|
+
loc: z.ZodNumber;
|
|
738
|
+
exports: z.ZodArray<z.ZodObject<{
|
|
739
|
+
name: z.ZodString;
|
|
740
|
+
kind: z.ZodEnum<["function", "class", "interface", "type", "enum", "const", "variable", "struct", "trait", "protocol", "data_class", "module"]>;
|
|
741
|
+
signature: z.ZodString;
|
|
742
|
+
jsDoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
743
|
+
typeParameters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
744
|
+
isDefault: z.ZodBoolean;
|
|
745
|
+
startLine: z.ZodNumber;
|
|
746
|
+
endLine: z.ZodNumber;
|
|
747
|
+
members: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
748
|
+
name: z.ZodString;
|
|
749
|
+
kind: z.ZodEnum<["method", "property", "getter", "setter", "constructor", "classmethod", "staticmethod", "associated_function"]>;
|
|
750
|
+
signature: z.ZodString;
|
|
751
|
+
jsDoc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
752
|
+
visibility: z.ZodOptional<z.ZodEnum<["public", "protected", "private"]>>;
|
|
753
|
+
isStatic: z.ZodBoolean;
|
|
754
|
+
isAbstract: z.ZodOptional<z.ZodBoolean>;
|
|
755
|
+
}, "strip", z.ZodTypeAny, {
|
|
756
|
+
name: string;
|
|
757
|
+
kind: "method" | "property" | "getter" | "setter" | "constructor" | "classmethod" | "staticmethod" | "associated_function";
|
|
758
|
+
signature: string;
|
|
759
|
+
isStatic: boolean;
|
|
760
|
+
jsDoc?: string | null | undefined;
|
|
761
|
+
visibility?: "public" | "protected" | "private" | undefined;
|
|
762
|
+
isAbstract?: boolean | undefined;
|
|
763
|
+
}, {
|
|
764
|
+
name: string;
|
|
765
|
+
kind: "method" | "property" | "getter" | "setter" | "constructor" | "classmethod" | "staticmethod" | "associated_function";
|
|
766
|
+
signature: string;
|
|
767
|
+
isStatic: boolean;
|
|
768
|
+
jsDoc?: string | null | undefined;
|
|
769
|
+
visibility?: "public" | "protected" | "private" | undefined;
|
|
770
|
+
isAbstract?: boolean | undefined;
|
|
771
|
+
}>, "many">>;
|
|
772
|
+
}, "strip", z.ZodTypeAny, {
|
|
773
|
+
name: string;
|
|
774
|
+
kind: "function" | "class" | "interface" | "type" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
775
|
+
signature: string;
|
|
776
|
+
isDefault: boolean;
|
|
777
|
+
startLine: number;
|
|
778
|
+
endLine: number;
|
|
779
|
+
jsDoc?: string | null | undefined;
|
|
780
|
+
typeParameters?: string[] | undefined;
|
|
781
|
+
members?: {
|
|
782
|
+
name: string;
|
|
783
|
+
kind: "method" | "property" | "getter" | "setter" | "constructor" | "classmethod" | "staticmethod" | "associated_function";
|
|
784
|
+
signature: string;
|
|
785
|
+
isStatic: boolean;
|
|
786
|
+
jsDoc?: string | null | undefined;
|
|
787
|
+
visibility?: "public" | "protected" | "private" | undefined;
|
|
788
|
+
isAbstract?: boolean | undefined;
|
|
789
|
+
}[] | undefined;
|
|
790
|
+
}, {
|
|
791
|
+
name: string;
|
|
792
|
+
kind: "function" | "class" | "interface" | "type" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
793
|
+
signature: string;
|
|
794
|
+
isDefault: boolean;
|
|
795
|
+
startLine: number;
|
|
796
|
+
endLine: number;
|
|
797
|
+
jsDoc?: string | null | undefined;
|
|
798
|
+
typeParameters?: string[] | undefined;
|
|
799
|
+
members?: {
|
|
800
|
+
name: string;
|
|
801
|
+
kind: "method" | "property" | "getter" | "setter" | "constructor" | "classmethod" | "staticmethod" | "associated_function";
|
|
802
|
+
signature: string;
|
|
803
|
+
isStatic: boolean;
|
|
804
|
+
jsDoc?: string | null | undefined;
|
|
805
|
+
visibility?: "public" | "protected" | "private" | undefined;
|
|
806
|
+
isAbstract?: boolean | undefined;
|
|
807
|
+
}[] | undefined;
|
|
808
|
+
}>, "many">;
|
|
809
|
+
imports: z.ZodArray<z.ZodObject<{
|
|
810
|
+
moduleSpecifier: z.ZodString;
|
|
811
|
+
isRelative: z.ZodBoolean;
|
|
812
|
+
resolvedPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
813
|
+
namedImports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
814
|
+
defaultImport: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
815
|
+
isTypeOnly: z.ZodBoolean;
|
|
816
|
+
}, "strip", z.ZodTypeAny, {
|
|
817
|
+
moduleSpecifier: string;
|
|
818
|
+
isRelative: boolean;
|
|
819
|
+
isTypeOnly: boolean;
|
|
820
|
+
resolvedPath?: string | null | undefined;
|
|
821
|
+
namedImports?: string[] | undefined;
|
|
822
|
+
defaultImport?: string | null | undefined;
|
|
823
|
+
}, {
|
|
824
|
+
moduleSpecifier: string;
|
|
825
|
+
isRelative: boolean;
|
|
826
|
+
isTypeOnly: boolean;
|
|
827
|
+
resolvedPath?: string | null | undefined;
|
|
828
|
+
namedImports?: string[] | undefined;
|
|
829
|
+
defaultImport?: string | null | undefined;
|
|
830
|
+
}>, "many">;
|
|
831
|
+
parseErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
832
|
+
line: z.ZodNumber;
|
|
833
|
+
column: z.ZodNumber;
|
|
834
|
+
message: z.ZodString;
|
|
835
|
+
affectedSymbols: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
836
|
+
}, "strip", z.ZodTypeAny, {
|
|
837
|
+
message: string;
|
|
838
|
+
line: number;
|
|
839
|
+
column: number;
|
|
840
|
+
affectedSymbols?: string[] | undefined;
|
|
841
|
+
}, {
|
|
842
|
+
message: string;
|
|
843
|
+
line: number;
|
|
844
|
+
column: number;
|
|
845
|
+
affectedSymbols?: string[] | undefined;
|
|
846
|
+
}>, "many">>;
|
|
847
|
+
hash: z.ZodString;
|
|
848
|
+
analyzedAt: z.ZodString;
|
|
849
|
+
parserUsed: z.ZodEnum<["ts-morph", "tree-sitter", "baseline", "reconstructed"]>;
|
|
850
|
+
moduleDoc: z.ZodOptional<z.ZodString>;
|
|
851
|
+
}, "strip", z.ZodTypeAny, {
|
|
852
|
+
filePath: string;
|
|
853
|
+
language: "typescript" | "javascript" | "python" | "go" | "java" | "rust" | "kotlin" | "cpp" | "ruby" | "swift";
|
|
854
|
+
loc: number;
|
|
855
|
+
exports: {
|
|
856
|
+
name: string;
|
|
857
|
+
kind: "function" | "class" | "interface" | "type" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
858
|
+
signature: string;
|
|
859
|
+
isDefault: boolean;
|
|
860
|
+
startLine: number;
|
|
861
|
+
endLine: number;
|
|
862
|
+
jsDoc?: string | null | undefined;
|
|
863
|
+
typeParameters?: string[] | undefined;
|
|
864
|
+
members?: {
|
|
865
|
+
name: string;
|
|
866
|
+
kind: "method" | "property" | "getter" | "setter" | "constructor" | "classmethod" | "staticmethod" | "associated_function";
|
|
867
|
+
signature: string;
|
|
868
|
+
isStatic: boolean;
|
|
869
|
+
jsDoc?: string | null | undefined;
|
|
870
|
+
visibility?: "public" | "protected" | "private" | undefined;
|
|
871
|
+
isAbstract?: boolean | undefined;
|
|
872
|
+
}[] | undefined;
|
|
873
|
+
}[];
|
|
874
|
+
imports: {
|
|
875
|
+
moduleSpecifier: string;
|
|
876
|
+
isRelative: boolean;
|
|
877
|
+
isTypeOnly: boolean;
|
|
878
|
+
resolvedPath?: string | null | undefined;
|
|
879
|
+
namedImports?: string[] | undefined;
|
|
880
|
+
defaultImport?: string | null | undefined;
|
|
881
|
+
}[];
|
|
882
|
+
hash: string;
|
|
883
|
+
analyzedAt: string;
|
|
884
|
+
parserUsed: "ts-morph" | "tree-sitter" | "baseline" | "reconstructed";
|
|
885
|
+
parseErrors?: {
|
|
886
|
+
message: string;
|
|
887
|
+
line: number;
|
|
888
|
+
column: number;
|
|
889
|
+
affectedSymbols?: string[] | undefined;
|
|
890
|
+
}[] | undefined;
|
|
891
|
+
moduleDoc?: string | undefined;
|
|
892
|
+
}, {
|
|
893
|
+
filePath: string;
|
|
894
|
+
language: "typescript" | "javascript" | "python" | "go" | "java" | "rust" | "kotlin" | "cpp" | "ruby" | "swift";
|
|
895
|
+
loc: number;
|
|
896
|
+
exports: {
|
|
897
|
+
name: string;
|
|
898
|
+
kind: "function" | "class" | "interface" | "type" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
899
|
+
signature: string;
|
|
900
|
+
isDefault: boolean;
|
|
901
|
+
startLine: number;
|
|
902
|
+
endLine: number;
|
|
903
|
+
jsDoc?: string | null | undefined;
|
|
904
|
+
typeParameters?: string[] | undefined;
|
|
905
|
+
members?: {
|
|
906
|
+
name: string;
|
|
907
|
+
kind: "method" | "property" | "getter" | "setter" | "constructor" | "classmethod" | "staticmethod" | "associated_function";
|
|
908
|
+
signature: string;
|
|
909
|
+
isStatic: boolean;
|
|
910
|
+
jsDoc?: string | null | undefined;
|
|
911
|
+
visibility?: "public" | "protected" | "private" | undefined;
|
|
912
|
+
isAbstract?: boolean | undefined;
|
|
913
|
+
}[] | undefined;
|
|
914
|
+
}[];
|
|
915
|
+
imports: {
|
|
916
|
+
moduleSpecifier: string;
|
|
917
|
+
isRelative: boolean;
|
|
918
|
+
isTypeOnly: boolean;
|
|
919
|
+
resolvedPath?: string | null | undefined;
|
|
920
|
+
namedImports?: string[] | undefined;
|
|
921
|
+
defaultImport?: string | null | undefined;
|
|
922
|
+
}[];
|
|
923
|
+
hash: string;
|
|
924
|
+
analyzedAt: string;
|
|
925
|
+
parserUsed: "ts-morph" | "tree-sitter" | "baseline" | "reconstructed";
|
|
926
|
+
parseErrors?: {
|
|
927
|
+
message: string;
|
|
928
|
+
line: number;
|
|
929
|
+
column: number;
|
|
930
|
+
affectedSymbols?: string[] | undefined;
|
|
931
|
+
}[] | undefined;
|
|
932
|
+
moduleDoc?: string | undefined;
|
|
933
|
+
}>;
|
|
934
|
+
outputPath: z.ZodString;
|
|
935
|
+
}, "strip", z.ZodTypeAny, {
|
|
936
|
+
frontmatter: {
|
|
937
|
+
type: "module-spec";
|
|
938
|
+
confidence: "low" | "medium" | "high";
|
|
939
|
+
version: string;
|
|
940
|
+
generatedBy: string;
|
|
941
|
+
sourceTarget: string;
|
|
942
|
+
relatedFiles: string[];
|
|
943
|
+
lastUpdated: string;
|
|
944
|
+
skeletonHash: string;
|
|
945
|
+
language?: string | undefined;
|
|
946
|
+
tokenUsage?: {
|
|
947
|
+
input: number;
|
|
948
|
+
output: number;
|
|
949
|
+
} | undefined;
|
|
950
|
+
durationMs?: number | undefined;
|
|
951
|
+
llmModel?: string | undefined;
|
|
952
|
+
fallbackReason?: string | null | undefined;
|
|
953
|
+
crossLanguageRefs?: string[] | undefined;
|
|
954
|
+
displayName?: string | undefined;
|
|
955
|
+
generatedByMode?: "full" | "reading" | "code-only" | undefined;
|
|
956
|
+
sourceKind?: "canonical" | "derived" | "bundle_copy" | undefined;
|
|
957
|
+
derivedFrom?: string | null | undefined;
|
|
958
|
+
costBreakdown?: {
|
|
959
|
+
contextAssembly: number;
|
|
960
|
+
promptTemplate: number;
|
|
961
|
+
sourceFile: number;
|
|
962
|
+
llmReasoning: number;
|
|
963
|
+
} | undefined;
|
|
964
|
+
contextTruncated?: boolean | undefined;
|
|
965
|
+
};
|
|
966
|
+
sections: {
|
|
967
|
+
intent: string;
|
|
968
|
+
interfaceDefinition: string;
|
|
969
|
+
businessLogic: string;
|
|
970
|
+
dataStructures: string;
|
|
971
|
+
constraints: string;
|
|
972
|
+
edgeCases: string;
|
|
973
|
+
technicalDebt: string;
|
|
974
|
+
testCoverage: string;
|
|
975
|
+
dependencies: string;
|
|
976
|
+
};
|
|
977
|
+
fileInventory: {
|
|
978
|
+
path: string;
|
|
979
|
+
loc: number;
|
|
980
|
+
purpose: string;
|
|
981
|
+
}[];
|
|
982
|
+
baselineSkeleton: {
|
|
983
|
+
filePath: string;
|
|
984
|
+
language: "typescript" | "javascript" | "python" | "go" | "java" | "rust" | "kotlin" | "cpp" | "ruby" | "swift";
|
|
985
|
+
loc: number;
|
|
986
|
+
exports: {
|
|
987
|
+
name: string;
|
|
988
|
+
kind: "function" | "class" | "interface" | "type" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
989
|
+
signature: string;
|
|
990
|
+
isDefault: boolean;
|
|
991
|
+
startLine: number;
|
|
992
|
+
endLine: number;
|
|
993
|
+
jsDoc?: string | null | undefined;
|
|
994
|
+
typeParameters?: string[] | undefined;
|
|
995
|
+
members?: {
|
|
996
|
+
name: string;
|
|
997
|
+
kind: "method" | "property" | "getter" | "setter" | "constructor" | "classmethod" | "staticmethod" | "associated_function";
|
|
998
|
+
signature: string;
|
|
999
|
+
isStatic: boolean;
|
|
1000
|
+
jsDoc?: string | null | undefined;
|
|
1001
|
+
visibility?: "public" | "protected" | "private" | undefined;
|
|
1002
|
+
isAbstract?: boolean | undefined;
|
|
1003
|
+
}[] | undefined;
|
|
1004
|
+
}[];
|
|
1005
|
+
imports: {
|
|
1006
|
+
moduleSpecifier: string;
|
|
1007
|
+
isRelative: boolean;
|
|
1008
|
+
isTypeOnly: boolean;
|
|
1009
|
+
resolvedPath?: string | null | undefined;
|
|
1010
|
+
namedImports?: string[] | undefined;
|
|
1011
|
+
defaultImport?: string | null | undefined;
|
|
1012
|
+
}[];
|
|
1013
|
+
hash: string;
|
|
1014
|
+
analyzedAt: string;
|
|
1015
|
+
parserUsed: "ts-morph" | "tree-sitter" | "baseline" | "reconstructed";
|
|
1016
|
+
parseErrors?: {
|
|
1017
|
+
message: string;
|
|
1018
|
+
line: number;
|
|
1019
|
+
column: number;
|
|
1020
|
+
affectedSymbols?: string[] | undefined;
|
|
1021
|
+
}[] | undefined;
|
|
1022
|
+
moduleDoc?: string | undefined;
|
|
1023
|
+
};
|
|
1024
|
+
outputPath: string;
|
|
1025
|
+
mermaidDiagrams?: {
|
|
1026
|
+
type: "classDiagram" | "flowchart" | "graph";
|
|
1027
|
+
source: string;
|
|
1028
|
+
title?: string | undefined;
|
|
1029
|
+
}[] | undefined;
|
|
1030
|
+
crossReferenceIndex?: {
|
|
1031
|
+
generatedAt: string;
|
|
1032
|
+
sameModule: {
|
|
1033
|
+
kind: "same-module" | "cross-module";
|
|
1034
|
+
label: string;
|
|
1035
|
+
href: string;
|
|
1036
|
+
targetSpecPath: string;
|
|
1037
|
+
targetSourceTarget: string;
|
|
1038
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
1039
|
+
evidenceCount: number;
|
|
1040
|
+
summary: string;
|
|
1041
|
+
}[];
|
|
1042
|
+
crossModule: {
|
|
1043
|
+
kind: "same-module" | "cross-module";
|
|
1044
|
+
label: string;
|
|
1045
|
+
href: string;
|
|
1046
|
+
targetSpecPath: string;
|
|
1047
|
+
targetSourceTarget: string;
|
|
1048
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
1049
|
+
evidenceCount: number;
|
|
1050
|
+
summary: string;
|
|
1051
|
+
}[];
|
|
1052
|
+
} | undefined;
|
|
1053
|
+
}, {
|
|
1054
|
+
frontmatter: {
|
|
1055
|
+
type: "module-spec";
|
|
1056
|
+
confidence: "low" | "medium" | "high";
|
|
1057
|
+
version: string;
|
|
1058
|
+
generatedBy: string;
|
|
1059
|
+
sourceTarget: string;
|
|
1060
|
+
relatedFiles: string[];
|
|
1061
|
+
lastUpdated: string;
|
|
1062
|
+
skeletonHash: string;
|
|
1063
|
+
language?: string | undefined;
|
|
1064
|
+
tokenUsage?: {
|
|
1065
|
+
input: number;
|
|
1066
|
+
output: number;
|
|
1067
|
+
} | undefined;
|
|
1068
|
+
durationMs?: number | undefined;
|
|
1069
|
+
llmModel?: string | undefined;
|
|
1070
|
+
fallbackReason?: string | null | undefined;
|
|
1071
|
+
crossLanguageRefs?: string[] | undefined;
|
|
1072
|
+
displayName?: string | undefined;
|
|
1073
|
+
generatedByMode?: "full" | "reading" | "code-only" | undefined;
|
|
1074
|
+
sourceKind?: "canonical" | "derived" | "bundle_copy" | undefined;
|
|
1075
|
+
derivedFrom?: string | null | undefined;
|
|
1076
|
+
costBreakdown?: {
|
|
1077
|
+
contextAssembly: number;
|
|
1078
|
+
promptTemplate: number;
|
|
1079
|
+
sourceFile: number;
|
|
1080
|
+
llmReasoning: number;
|
|
1081
|
+
} | undefined;
|
|
1082
|
+
contextTruncated?: boolean | undefined;
|
|
1083
|
+
};
|
|
1084
|
+
sections: {
|
|
1085
|
+
intent: string;
|
|
1086
|
+
interfaceDefinition: string;
|
|
1087
|
+
businessLogic: string;
|
|
1088
|
+
dataStructures: string;
|
|
1089
|
+
constraints: string;
|
|
1090
|
+
edgeCases: string;
|
|
1091
|
+
technicalDebt: string;
|
|
1092
|
+
testCoverage: string;
|
|
1093
|
+
dependencies: string;
|
|
1094
|
+
};
|
|
1095
|
+
fileInventory: {
|
|
1096
|
+
path: string;
|
|
1097
|
+
loc: number;
|
|
1098
|
+
purpose: string;
|
|
1099
|
+
}[];
|
|
1100
|
+
baselineSkeleton: {
|
|
1101
|
+
filePath: string;
|
|
1102
|
+
language: "typescript" | "javascript" | "python" | "go" | "java" | "rust" | "kotlin" | "cpp" | "ruby" | "swift";
|
|
1103
|
+
loc: number;
|
|
1104
|
+
exports: {
|
|
1105
|
+
name: string;
|
|
1106
|
+
kind: "function" | "class" | "interface" | "type" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
1107
|
+
signature: string;
|
|
1108
|
+
isDefault: boolean;
|
|
1109
|
+
startLine: number;
|
|
1110
|
+
endLine: number;
|
|
1111
|
+
jsDoc?: string | null | undefined;
|
|
1112
|
+
typeParameters?: string[] | undefined;
|
|
1113
|
+
members?: {
|
|
1114
|
+
name: string;
|
|
1115
|
+
kind: "method" | "property" | "getter" | "setter" | "constructor" | "classmethod" | "staticmethod" | "associated_function";
|
|
1116
|
+
signature: string;
|
|
1117
|
+
isStatic: boolean;
|
|
1118
|
+
jsDoc?: string | null | undefined;
|
|
1119
|
+
visibility?: "public" | "protected" | "private" | undefined;
|
|
1120
|
+
isAbstract?: boolean | undefined;
|
|
1121
|
+
}[] | undefined;
|
|
1122
|
+
}[];
|
|
1123
|
+
imports: {
|
|
1124
|
+
moduleSpecifier: string;
|
|
1125
|
+
isRelative: boolean;
|
|
1126
|
+
isTypeOnly: boolean;
|
|
1127
|
+
resolvedPath?: string | null | undefined;
|
|
1128
|
+
namedImports?: string[] | undefined;
|
|
1129
|
+
defaultImport?: string | null | undefined;
|
|
1130
|
+
}[];
|
|
1131
|
+
hash: string;
|
|
1132
|
+
analyzedAt: string;
|
|
1133
|
+
parserUsed: "ts-morph" | "tree-sitter" | "baseline" | "reconstructed";
|
|
1134
|
+
parseErrors?: {
|
|
1135
|
+
message: string;
|
|
1136
|
+
line: number;
|
|
1137
|
+
column: number;
|
|
1138
|
+
affectedSymbols?: string[] | undefined;
|
|
1139
|
+
}[] | undefined;
|
|
1140
|
+
moduleDoc?: string | undefined;
|
|
1141
|
+
};
|
|
1142
|
+
outputPath: string;
|
|
1143
|
+
mermaidDiagrams?: {
|
|
1144
|
+
type: "classDiagram" | "flowchart" | "graph";
|
|
1145
|
+
source: string;
|
|
1146
|
+
title?: string | undefined;
|
|
1147
|
+
}[] | undefined;
|
|
1148
|
+
crossReferenceIndex?: {
|
|
1149
|
+
generatedAt: string;
|
|
1150
|
+
sameModule: {
|
|
1151
|
+
kind: "same-module" | "cross-module";
|
|
1152
|
+
label: string;
|
|
1153
|
+
href: string;
|
|
1154
|
+
targetSpecPath: string;
|
|
1155
|
+
targetSourceTarget: string;
|
|
1156
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
1157
|
+
evidenceCount: number;
|
|
1158
|
+
summary: string;
|
|
1159
|
+
}[];
|
|
1160
|
+
crossModule: {
|
|
1161
|
+
kind: "same-module" | "cross-module";
|
|
1162
|
+
label: string;
|
|
1163
|
+
href: string;
|
|
1164
|
+
targetSpecPath: string;
|
|
1165
|
+
targetSourceTarget: string;
|
|
1166
|
+
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
1167
|
+
evidenceCount: number;
|
|
1168
|
+
summary: string;
|
|
1169
|
+
}[];
|
|
1170
|
+
} | undefined;
|
|
1171
|
+
}>;
|
|
1172
|
+
export type ModuleSpec = z.infer<typeof ModuleSpecSchema>;
|
|
1173
|
+
/** 架构索引 Frontmatter */
|
|
1174
|
+
export declare const IndexFrontmatterSchema: z.ZodObject<{
|
|
1175
|
+
type: z.ZodLiteral<"architecture-index">;
|
|
1176
|
+
version: z.ZodString;
|
|
1177
|
+
generatedBy: z.ZodString;
|
|
1178
|
+
projectRoot: z.ZodString;
|
|
1179
|
+
totalModules: z.ZodNumber;
|
|
1180
|
+
lastUpdated: z.ZodString;
|
|
1181
|
+
}, "strip", z.ZodTypeAny, {
|
|
1182
|
+
type: "architecture-index";
|
|
1183
|
+
projectRoot: string;
|
|
1184
|
+
totalModules: number;
|
|
1185
|
+
version: string;
|
|
1186
|
+
generatedBy: string;
|
|
1187
|
+
lastUpdated: string;
|
|
1188
|
+
}, {
|
|
1189
|
+
type: "architecture-index";
|
|
1190
|
+
projectRoot: string;
|
|
1191
|
+
totalModules: number;
|
|
1192
|
+
version: string;
|
|
1193
|
+
generatedBy: string;
|
|
1194
|
+
lastUpdated: string;
|
|
1195
|
+
}>;
|
|
1196
|
+
export type IndexFrontmatter = z.infer<typeof IndexFrontmatterSchema>;
|
|
1197
|
+
/** 模块映射表条目 */
|
|
1198
|
+
export declare const ModuleMapEntrySchema: z.ZodObject<{
|
|
1199
|
+
name: z.ZodString;
|
|
1200
|
+
specPath: z.ZodString;
|
|
1201
|
+
description: z.ZodString;
|
|
1202
|
+
level: z.ZodNumber;
|
|
1203
|
+
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
1204
|
+
}, "strip", z.ZodTypeAny, {
|
|
1205
|
+
name: string;
|
|
1206
|
+
level: number;
|
|
1207
|
+
description: string;
|
|
1208
|
+
dependencies: string[];
|
|
1209
|
+
specPath: string;
|
|
1210
|
+
}, {
|
|
1211
|
+
name: string;
|
|
1212
|
+
level: number;
|
|
1213
|
+
description: string;
|
|
1214
|
+
dependencies: string[];
|
|
1215
|
+
specPath: string;
|
|
1216
|
+
}>;
|
|
1217
|
+
export type ModuleMapEntry = z.infer<typeof ModuleMapEntrySchema>;
|
|
1218
|
+
/** 技术栈条目 */
|
|
1219
|
+
export declare const TechStackEntrySchema: z.ZodObject<{
|
|
1220
|
+
category: z.ZodString;
|
|
1221
|
+
name: z.ZodString;
|
|
1222
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1223
|
+
purpose: z.ZodString;
|
|
1224
|
+
}, "strip", z.ZodTypeAny, {
|
|
1225
|
+
name: string;
|
|
1226
|
+
category: string;
|
|
1227
|
+
purpose: string;
|
|
1228
|
+
version?: string | null | undefined;
|
|
1229
|
+
}, {
|
|
1230
|
+
name: string;
|
|
1231
|
+
category: string;
|
|
1232
|
+
purpose: string;
|
|
1233
|
+
version?: string | null | undefined;
|
|
1234
|
+
}>;
|
|
1235
|
+
export type TechStackEntry = z.infer<typeof TechStackEntrySchema>;
|
|
1236
|
+
/** 项目级架构索引文档 */
|
|
1237
|
+
export declare const ArchitectureIndexSchema: z.ZodObject<{
|
|
1238
|
+
frontmatter: z.ZodObject<{
|
|
1239
|
+
type: z.ZodLiteral<"architecture-index">;
|
|
1240
|
+
version: z.ZodString;
|
|
1241
|
+
generatedBy: z.ZodString;
|
|
1242
|
+
projectRoot: z.ZodString;
|
|
1243
|
+
totalModules: z.ZodNumber;
|
|
1244
|
+
lastUpdated: z.ZodString;
|
|
1245
|
+
}, "strip", z.ZodTypeAny, {
|
|
1246
|
+
type: "architecture-index";
|
|
1247
|
+
projectRoot: string;
|
|
1248
|
+
totalModules: number;
|
|
1249
|
+
version: string;
|
|
1250
|
+
generatedBy: string;
|
|
1251
|
+
lastUpdated: string;
|
|
1252
|
+
}, {
|
|
1253
|
+
type: "architecture-index";
|
|
1254
|
+
projectRoot: string;
|
|
1255
|
+
totalModules: number;
|
|
1256
|
+
version: string;
|
|
1257
|
+
generatedBy: string;
|
|
1258
|
+
lastUpdated: string;
|
|
1259
|
+
}>;
|
|
1260
|
+
systemPurpose: z.ZodString;
|
|
1261
|
+
architecturePattern: z.ZodString;
|
|
1262
|
+
moduleMap: z.ZodArray<z.ZodObject<{
|
|
1263
|
+
name: z.ZodString;
|
|
1264
|
+
specPath: z.ZodString;
|
|
1265
|
+
description: z.ZodString;
|
|
1266
|
+
level: z.ZodNumber;
|
|
1267
|
+
dependencies: z.ZodArray<z.ZodString, "many">;
|
|
1268
|
+
}, "strip", z.ZodTypeAny, {
|
|
1269
|
+
name: string;
|
|
1270
|
+
level: number;
|
|
1271
|
+
description: string;
|
|
1272
|
+
dependencies: string[];
|
|
1273
|
+
specPath: string;
|
|
1274
|
+
}, {
|
|
1275
|
+
name: string;
|
|
1276
|
+
level: number;
|
|
1277
|
+
description: string;
|
|
1278
|
+
dependencies: string[];
|
|
1279
|
+
specPath: string;
|
|
1280
|
+
}>, "many">;
|
|
1281
|
+
crossCuttingConcerns: z.ZodArray<z.ZodString, "many">;
|
|
1282
|
+
technologyStack: z.ZodArray<z.ZodObject<{
|
|
1283
|
+
category: z.ZodString;
|
|
1284
|
+
name: z.ZodString;
|
|
1285
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1286
|
+
purpose: z.ZodString;
|
|
1287
|
+
}, "strip", z.ZodTypeAny, {
|
|
1288
|
+
name: string;
|
|
1289
|
+
category: string;
|
|
1290
|
+
purpose: string;
|
|
1291
|
+
version?: string | null | undefined;
|
|
1292
|
+
}, {
|
|
1293
|
+
name: string;
|
|
1294
|
+
category: string;
|
|
1295
|
+
purpose: string;
|
|
1296
|
+
version?: string | null | undefined;
|
|
1297
|
+
}>, "many">;
|
|
1298
|
+
dependencyDiagram: z.ZodString;
|
|
1299
|
+
outputPath: z.ZodString;
|
|
1300
|
+
/** 语言分布(多语言项目时填充,单语言或 undefined) */
|
|
1301
|
+
languageDistribution: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1302
|
+
/** 语言显示名称(如 'TypeScript') */
|
|
1303
|
+
language: z.ZodString;
|
|
1304
|
+
/** 适配器 ID(如 'ts-js') */
|
|
1305
|
+
adapterId: z.ZodString;
|
|
1306
|
+
/** 文件数 */
|
|
1307
|
+
fileCount: z.ZodNumber;
|
|
1308
|
+
/** 模块数 */
|
|
1309
|
+
moduleCount: z.ZodNumber;
|
|
1310
|
+
/** 文件占比(%,保留一位小数) */
|
|
1311
|
+
percentage: z.ZodNumber;
|
|
1312
|
+
/** 本次批量生成是否处理了该语言 */
|
|
1313
|
+
processed: z.ZodBoolean;
|
|
1314
|
+
}, "strip", z.ZodTypeAny, {
|
|
1315
|
+
language: string;
|
|
1316
|
+
adapterId: string;
|
|
1317
|
+
fileCount: number;
|
|
1318
|
+
moduleCount: number;
|
|
1319
|
+
percentage: number;
|
|
1320
|
+
processed: boolean;
|
|
1321
|
+
}, {
|
|
1322
|
+
language: string;
|
|
1323
|
+
adapterId: string;
|
|
1324
|
+
fileCount: number;
|
|
1325
|
+
moduleCount: number;
|
|
1326
|
+
percentage: number;
|
|
1327
|
+
processed: boolean;
|
|
1328
|
+
}>, "many">>;
|
|
1329
|
+
}, "strip", z.ZodTypeAny, {
|
|
1330
|
+
frontmatter: {
|
|
1331
|
+
type: "architecture-index";
|
|
1332
|
+
projectRoot: string;
|
|
1333
|
+
totalModules: number;
|
|
1334
|
+
version: string;
|
|
1335
|
+
generatedBy: string;
|
|
1336
|
+
lastUpdated: string;
|
|
1337
|
+
};
|
|
1338
|
+
outputPath: string;
|
|
1339
|
+
systemPurpose: string;
|
|
1340
|
+
architecturePattern: string;
|
|
1341
|
+
moduleMap: {
|
|
1342
|
+
name: string;
|
|
1343
|
+
level: number;
|
|
1344
|
+
description: string;
|
|
1345
|
+
dependencies: string[];
|
|
1346
|
+
specPath: string;
|
|
1347
|
+
}[];
|
|
1348
|
+
crossCuttingConcerns: string[];
|
|
1349
|
+
technologyStack: {
|
|
1350
|
+
name: string;
|
|
1351
|
+
category: string;
|
|
1352
|
+
purpose: string;
|
|
1353
|
+
version?: string | null | undefined;
|
|
1354
|
+
}[];
|
|
1355
|
+
dependencyDiagram: string;
|
|
1356
|
+
languageDistribution?: {
|
|
1357
|
+
language: string;
|
|
1358
|
+
adapterId: string;
|
|
1359
|
+
fileCount: number;
|
|
1360
|
+
moduleCount: number;
|
|
1361
|
+
percentage: number;
|
|
1362
|
+
processed: boolean;
|
|
1363
|
+
}[] | undefined;
|
|
1364
|
+
}, {
|
|
1365
|
+
frontmatter: {
|
|
1366
|
+
type: "architecture-index";
|
|
1367
|
+
projectRoot: string;
|
|
1368
|
+
totalModules: number;
|
|
1369
|
+
version: string;
|
|
1370
|
+
generatedBy: string;
|
|
1371
|
+
lastUpdated: string;
|
|
1372
|
+
};
|
|
1373
|
+
outputPath: string;
|
|
1374
|
+
systemPurpose: string;
|
|
1375
|
+
architecturePattern: string;
|
|
1376
|
+
moduleMap: {
|
|
1377
|
+
name: string;
|
|
1378
|
+
level: number;
|
|
1379
|
+
description: string;
|
|
1380
|
+
dependencies: string[];
|
|
1381
|
+
specPath: string;
|
|
1382
|
+
}[];
|
|
1383
|
+
crossCuttingConcerns: string[];
|
|
1384
|
+
technologyStack: {
|
|
1385
|
+
name: string;
|
|
1386
|
+
category: string;
|
|
1387
|
+
purpose: string;
|
|
1388
|
+
version?: string | null | undefined;
|
|
1389
|
+
}[];
|
|
1390
|
+
dependencyDiagram: string;
|
|
1391
|
+
languageDistribution?: {
|
|
1392
|
+
language: string;
|
|
1393
|
+
adapterId: string;
|
|
1394
|
+
fileCount: number;
|
|
1395
|
+
moduleCount: number;
|
|
1396
|
+
percentage: number;
|
|
1397
|
+
processed: boolean;
|
|
1398
|
+
}[] | undefined;
|
|
1399
|
+
}>;
|
|
1400
|
+
export type ArchitectureIndex = z.infer<typeof ArchitectureIndexSchema>;
|
|
1401
|
+
/** 漂移检测完整报告 */
|
|
1402
|
+
export declare const DriftReportSchema: z.ZodObject<{
|
|
1403
|
+
specPath: z.ZodString;
|
|
1404
|
+
sourcePath: z.ZodString;
|
|
1405
|
+
generatedAt: z.ZodString;
|
|
1406
|
+
specVersion: z.ZodString;
|
|
1407
|
+
summary: z.ZodObject<{
|
|
1408
|
+
totalChanges: z.ZodNumber;
|
|
1409
|
+
high: z.ZodNumber;
|
|
1410
|
+
medium: z.ZodNumber;
|
|
1411
|
+
low: z.ZodNumber;
|
|
1412
|
+
additions: z.ZodNumber;
|
|
1413
|
+
removals: z.ZodNumber;
|
|
1414
|
+
modifications: z.ZodNumber;
|
|
1415
|
+
}, "strip", z.ZodTypeAny, {
|
|
1416
|
+
low: number;
|
|
1417
|
+
medium: number;
|
|
1418
|
+
high: number;
|
|
1419
|
+
totalChanges: number;
|
|
1420
|
+
additions: number;
|
|
1421
|
+
removals: number;
|
|
1422
|
+
modifications: number;
|
|
1423
|
+
}, {
|
|
1424
|
+
low: number;
|
|
1425
|
+
medium: number;
|
|
1426
|
+
high: number;
|
|
1427
|
+
totalChanges: number;
|
|
1428
|
+
additions: number;
|
|
1429
|
+
removals: number;
|
|
1430
|
+
modifications: number;
|
|
1431
|
+
}>;
|
|
1432
|
+
items: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
1433
|
+
id: z.ZodString;
|
|
1434
|
+
severity: z.ZodEnum<["HIGH", "MEDIUM", "LOW"]>;
|
|
1435
|
+
category: z.ZodEnum<["Interface", "Behavior", "Constraint"]>;
|
|
1436
|
+
changeType: z.ZodEnum<["addition", "removal", "modification"]>;
|
|
1437
|
+
location: z.ZodString;
|
|
1438
|
+
symbolName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1439
|
+
description: z.ZodString;
|
|
1440
|
+
oldValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1441
|
+
newValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1442
|
+
proposedUpdate: z.ZodString;
|
|
1443
|
+
detectedBy: z.ZodEnum<["structural", "semantic"]>;
|
|
1444
|
+
}, "strip", z.ZodTypeAny, {
|
|
1445
|
+
id: string;
|
|
1446
|
+
description: string;
|
|
1447
|
+
severity: "HIGH" | "MEDIUM" | "LOW";
|
|
1448
|
+
category: "Interface" | "Behavior" | "Constraint";
|
|
1449
|
+
changeType: "addition" | "removal" | "modification";
|
|
1450
|
+
location: string;
|
|
1451
|
+
proposedUpdate: string;
|
|
1452
|
+
detectedBy: "structural" | "semantic";
|
|
1453
|
+
symbolName?: string | null | undefined;
|
|
1454
|
+
oldValue?: string | null | undefined;
|
|
1455
|
+
newValue?: string | null | undefined;
|
|
1456
|
+
}, {
|
|
1457
|
+
id: string;
|
|
1458
|
+
description: string;
|
|
1459
|
+
severity: "HIGH" | "MEDIUM" | "LOW";
|
|
1460
|
+
category: "Interface" | "Behavior" | "Constraint";
|
|
1461
|
+
changeType: "addition" | "removal" | "modification";
|
|
1462
|
+
location: string;
|
|
1463
|
+
proposedUpdate: string;
|
|
1464
|
+
detectedBy: "structural" | "semantic";
|
|
1465
|
+
symbolName?: string | null | undefined;
|
|
1466
|
+
oldValue?: string | null | undefined;
|
|
1467
|
+
newValue?: string | null | undefined;
|
|
1468
|
+
}>, {
|
|
1469
|
+
id: string;
|
|
1470
|
+
description: string;
|
|
1471
|
+
severity: "HIGH" | "MEDIUM" | "LOW";
|
|
1472
|
+
category: "Interface" | "Behavior" | "Constraint";
|
|
1473
|
+
changeType: "addition" | "removal" | "modification";
|
|
1474
|
+
location: string;
|
|
1475
|
+
proposedUpdate: string;
|
|
1476
|
+
detectedBy: "structural" | "semantic";
|
|
1477
|
+
symbolName?: string | null | undefined;
|
|
1478
|
+
oldValue?: string | null | undefined;
|
|
1479
|
+
newValue?: string | null | undefined;
|
|
1480
|
+
}, {
|
|
1481
|
+
id: string;
|
|
1482
|
+
description: string;
|
|
1483
|
+
severity: "HIGH" | "MEDIUM" | "LOW";
|
|
1484
|
+
category: "Interface" | "Behavior" | "Constraint";
|
|
1485
|
+
changeType: "addition" | "removal" | "modification";
|
|
1486
|
+
location: string;
|
|
1487
|
+
proposedUpdate: string;
|
|
1488
|
+
detectedBy: "structural" | "semantic";
|
|
1489
|
+
symbolName?: string | null | undefined;
|
|
1490
|
+
oldValue?: string | null | undefined;
|
|
1491
|
+
newValue?: string | null | undefined;
|
|
1492
|
+
}>, "many">;
|
|
1493
|
+
filteredNoise: z.ZodNumber;
|
|
1494
|
+
recommendation: z.ZodString;
|
|
1495
|
+
outputPath: z.ZodString;
|
|
1496
|
+
}, "strip", z.ZodTypeAny, {
|
|
1497
|
+
summary: {
|
|
1498
|
+
low: number;
|
|
1499
|
+
medium: number;
|
|
1500
|
+
high: number;
|
|
1501
|
+
totalChanges: number;
|
|
1502
|
+
additions: number;
|
|
1503
|
+
removals: number;
|
|
1504
|
+
modifications: number;
|
|
1505
|
+
};
|
|
1506
|
+
generatedAt: string;
|
|
1507
|
+
outputPath: string;
|
|
1508
|
+
specPath: string;
|
|
1509
|
+
sourcePath: string;
|
|
1510
|
+
specVersion: string;
|
|
1511
|
+
items: {
|
|
1512
|
+
id: string;
|
|
1513
|
+
description: string;
|
|
1514
|
+
severity: "HIGH" | "MEDIUM" | "LOW";
|
|
1515
|
+
category: "Interface" | "Behavior" | "Constraint";
|
|
1516
|
+
changeType: "addition" | "removal" | "modification";
|
|
1517
|
+
location: string;
|
|
1518
|
+
proposedUpdate: string;
|
|
1519
|
+
detectedBy: "structural" | "semantic";
|
|
1520
|
+
symbolName?: string | null | undefined;
|
|
1521
|
+
oldValue?: string | null | undefined;
|
|
1522
|
+
newValue?: string | null | undefined;
|
|
1523
|
+
}[];
|
|
1524
|
+
filteredNoise: number;
|
|
1525
|
+
recommendation: string;
|
|
1526
|
+
}, {
|
|
1527
|
+
summary: {
|
|
1528
|
+
low: number;
|
|
1529
|
+
medium: number;
|
|
1530
|
+
high: number;
|
|
1531
|
+
totalChanges: number;
|
|
1532
|
+
additions: number;
|
|
1533
|
+
removals: number;
|
|
1534
|
+
modifications: number;
|
|
1535
|
+
};
|
|
1536
|
+
generatedAt: string;
|
|
1537
|
+
outputPath: string;
|
|
1538
|
+
specPath: string;
|
|
1539
|
+
sourcePath: string;
|
|
1540
|
+
specVersion: string;
|
|
1541
|
+
items: {
|
|
1542
|
+
id: string;
|
|
1543
|
+
description: string;
|
|
1544
|
+
severity: "HIGH" | "MEDIUM" | "LOW";
|
|
1545
|
+
category: "Interface" | "Behavior" | "Constraint";
|
|
1546
|
+
changeType: "addition" | "removal" | "modification";
|
|
1547
|
+
location: string;
|
|
1548
|
+
proposedUpdate: string;
|
|
1549
|
+
detectedBy: "structural" | "semantic";
|
|
1550
|
+
symbolName?: string | null | undefined;
|
|
1551
|
+
oldValue?: string | null | undefined;
|
|
1552
|
+
newValue?: string | null | undefined;
|
|
1553
|
+
}[];
|
|
1554
|
+
filteredNoise: number;
|
|
1555
|
+
recommendation: string;
|
|
1556
|
+
}>;
|
|
1557
|
+
export type DriftReport = z.infer<typeof DriftReportSchema>;
|
|
1558
|
+
/** 已完成模块 */
|
|
1559
|
+
export declare const CompletedModuleSchema: z.ZodObject<{
|
|
1560
|
+
path: z.ZodString;
|
|
1561
|
+
specPath: z.ZodString;
|
|
1562
|
+
completedAt: z.ZodString;
|
|
1563
|
+
/** 历史字段:input+output 累加的 token 总数(向后兼容) */
|
|
1564
|
+
tokenUsage: z.ZodOptional<z.ZodNumber>;
|
|
1565
|
+
/** 本次生成的成本元数据(Feature 127) */
|
|
1566
|
+
costMetadata: z.ZodOptional<z.ZodObject<{
|
|
1567
|
+
/** 本次生成消耗的 input / output token 数 */
|
|
1568
|
+
tokenUsage: z.ZodObject<{
|
|
1569
|
+
input: z.ZodNumber;
|
|
1570
|
+
output: z.ZodNumber;
|
|
1571
|
+
}, "strip", z.ZodTypeAny, {
|
|
1572
|
+
input: number;
|
|
1573
|
+
output: number;
|
|
1574
|
+
}, {
|
|
1575
|
+
input: number;
|
|
1576
|
+
output: number;
|
|
1577
|
+
}>;
|
|
1578
|
+
/** LLM + enrichment 总耗时(毫秒) */
|
|
1579
|
+
durationMs: z.ZodNumber;
|
|
1580
|
+
/** 实际使用的 LLM 模型 ID;AST-only 降级时为空字符串 */
|
|
1581
|
+
llmModel: z.ZodString;
|
|
1582
|
+
/** 降级原因;未降级时为 null */
|
|
1583
|
+
fallbackReason: z.ZodNullable<z.ZodString>;
|
|
1584
|
+
}, "strip", z.ZodTypeAny, {
|
|
1585
|
+
tokenUsage: {
|
|
1586
|
+
input: number;
|
|
1587
|
+
output: number;
|
|
1588
|
+
};
|
|
1589
|
+
durationMs: number;
|
|
1590
|
+
llmModel: string;
|
|
1591
|
+
fallbackReason: string | null;
|
|
1592
|
+
}, {
|
|
1593
|
+
tokenUsage: {
|
|
1594
|
+
input: number;
|
|
1595
|
+
output: number;
|
|
1596
|
+
};
|
|
1597
|
+
durationMs: number;
|
|
1598
|
+
llmModel: string;
|
|
1599
|
+
fallbackReason: string | null;
|
|
1600
|
+
}>>;
|
|
1601
|
+
}, "strip", z.ZodTypeAny, {
|
|
1602
|
+
path: string;
|
|
1603
|
+
specPath: string;
|
|
1604
|
+
completedAt: string;
|
|
1605
|
+
tokenUsage?: number | undefined;
|
|
1606
|
+
costMetadata?: {
|
|
1607
|
+
tokenUsage: {
|
|
1608
|
+
input: number;
|
|
1609
|
+
output: number;
|
|
1610
|
+
};
|
|
1611
|
+
durationMs: number;
|
|
1612
|
+
llmModel: string;
|
|
1613
|
+
fallbackReason: string | null;
|
|
1614
|
+
} | undefined;
|
|
1615
|
+
}, {
|
|
1616
|
+
path: string;
|
|
1617
|
+
specPath: string;
|
|
1618
|
+
completedAt: string;
|
|
1619
|
+
tokenUsage?: number | undefined;
|
|
1620
|
+
costMetadata?: {
|
|
1621
|
+
tokenUsage: {
|
|
1622
|
+
input: number;
|
|
1623
|
+
output: number;
|
|
1624
|
+
};
|
|
1625
|
+
durationMs: number;
|
|
1626
|
+
llmModel: string;
|
|
1627
|
+
fallbackReason: string | null;
|
|
1628
|
+
} | undefined;
|
|
1629
|
+
}>;
|
|
1630
|
+
export type CompletedModule = z.infer<typeof CompletedModuleSchema>;
|
|
1631
|
+
/** 失败模块 */
|
|
1632
|
+
export declare const FailedModuleSchema: z.ZodObject<{
|
|
1633
|
+
path: z.ZodString;
|
|
1634
|
+
error: z.ZodString;
|
|
1635
|
+
failedAt: z.ZodString;
|
|
1636
|
+
retryCount: z.ZodNumber;
|
|
1637
|
+
degradedToAstOnly: z.ZodBoolean;
|
|
1638
|
+
/** 失败原因标识(Bug 142);'retry-budget-exceeded' 表示累计 input token 超限 */
|
|
1639
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1640
|
+
}, "strip", z.ZodTypeAny, {
|
|
1641
|
+
path: string;
|
|
1642
|
+
error: string;
|
|
1643
|
+
failedAt: string;
|
|
1644
|
+
retryCount: number;
|
|
1645
|
+
degradedToAstOnly: boolean;
|
|
1646
|
+
reason?: string | undefined;
|
|
1647
|
+
}, {
|
|
1648
|
+
path: string;
|
|
1649
|
+
error: string;
|
|
1650
|
+
failedAt: string;
|
|
1651
|
+
retryCount: number;
|
|
1652
|
+
degradedToAstOnly: boolean;
|
|
1653
|
+
reason?: string | undefined;
|
|
1654
|
+
}>;
|
|
1655
|
+
export type FailedModule = z.infer<typeof FailedModuleSchema>;
|
|
1656
|
+
/** 批处理断点恢复状态 */
|
|
1657
|
+
export declare const BatchStateSchema: z.ZodObject<{
|
|
1658
|
+
batchId: z.ZodString;
|
|
1659
|
+
projectRoot: z.ZodString;
|
|
1660
|
+
startedAt: z.ZodString;
|
|
1661
|
+
lastUpdatedAt: z.ZodString;
|
|
1662
|
+
totalModules: z.ZodNumber;
|
|
1663
|
+
processingOrder: z.ZodArray<z.ZodString, "many">;
|
|
1664
|
+
completedModules: z.ZodArray<z.ZodObject<{
|
|
1665
|
+
path: z.ZodString;
|
|
1666
|
+
specPath: z.ZodString;
|
|
1667
|
+
completedAt: z.ZodString;
|
|
1668
|
+
/** 历史字段:input+output 累加的 token 总数(向后兼容) */
|
|
1669
|
+
tokenUsage: z.ZodOptional<z.ZodNumber>;
|
|
1670
|
+
/** 本次生成的成本元数据(Feature 127) */
|
|
1671
|
+
costMetadata: z.ZodOptional<z.ZodObject<{
|
|
1672
|
+
/** 本次生成消耗的 input / output token 数 */
|
|
1673
|
+
tokenUsage: z.ZodObject<{
|
|
1674
|
+
input: z.ZodNumber;
|
|
1675
|
+
output: z.ZodNumber;
|
|
1676
|
+
}, "strip", z.ZodTypeAny, {
|
|
1677
|
+
input: number;
|
|
1678
|
+
output: number;
|
|
1679
|
+
}, {
|
|
1680
|
+
input: number;
|
|
1681
|
+
output: number;
|
|
1682
|
+
}>;
|
|
1683
|
+
/** LLM + enrichment 总耗时(毫秒) */
|
|
1684
|
+
durationMs: z.ZodNumber;
|
|
1685
|
+
/** 实际使用的 LLM 模型 ID;AST-only 降级时为空字符串 */
|
|
1686
|
+
llmModel: z.ZodString;
|
|
1687
|
+
/** 降级原因;未降级时为 null */
|
|
1688
|
+
fallbackReason: z.ZodNullable<z.ZodString>;
|
|
1689
|
+
}, "strip", z.ZodTypeAny, {
|
|
1690
|
+
tokenUsage: {
|
|
1691
|
+
input: number;
|
|
1692
|
+
output: number;
|
|
1693
|
+
};
|
|
1694
|
+
durationMs: number;
|
|
1695
|
+
llmModel: string;
|
|
1696
|
+
fallbackReason: string | null;
|
|
1697
|
+
}, {
|
|
1698
|
+
tokenUsage: {
|
|
1699
|
+
input: number;
|
|
1700
|
+
output: number;
|
|
1701
|
+
};
|
|
1702
|
+
durationMs: number;
|
|
1703
|
+
llmModel: string;
|
|
1704
|
+
fallbackReason: string | null;
|
|
1705
|
+
}>>;
|
|
1706
|
+
}, "strip", z.ZodTypeAny, {
|
|
1707
|
+
path: string;
|
|
1708
|
+
specPath: string;
|
|
1709
|
+
completedAt: string;
|
|
1710
|
+
tokenUsage?: number | undefined;
|
|
1711
|
+
costMetadata?: {
|
|
1712
|
+
tokenUsage: {
|
|
1713
|
+
input: number;
|
|
1714
|
+
output: number;
|
|
1715
|
+
};
|
|
1716
|
+
durationMs: number;
|
|
1717
|
+
llmModel: string;
|
|
1718
|
+
fallbackReason: string | null;
|
|
1719
|
+
} | undefined;
|
|
1720
|
+
}, {
|
|
1721
|
+
path: string;
|
|
1722
|
+
specPath: string;
|
|
1723
|
+
completedAt: string;
|
|
1724
|
+
tokenUsage?: number | undefined;
|
|
1725
|
+
costMetadata?: {
|
|
1726
|
+
tokenUsage: {
|
|
1727
|
+
input: number;
|
|
1728
|
+
output: number;
|
|
1729
|
+
};
|
|
1730
|
+
durationMs: number;
|
|
1731
|
+
llmModel: string;
|
|
1732
|
+
fallbackReason: string | null;
|
|
1733
|
+
} | undefined;
|
|
1734
|
+
}>, "many">;
|
|
1735
|
+
failedModules: z.ZodArray<z.ZodObject<{
|
|
1736
|
+
path: z.ZodString;
|
|
1737
|
+
error: z.ZodString;
|
|
1738
|
+
failedAt: z.ZodString;
|
|
1739
|
+
retryCount: z.ZodNumber;
|
|
1740
|
+
degradedToAstOnly: z.ZodBoolean;
|
|
1741
|
+
/** 失败原因标识(Bug 142);'retry-budget-exceeded' 表示累计 input token 超限 */
|
|
1742
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1743
|
+
}, "strip", z.ZodTypeAny, {
|
|
1744
|
+
path: string;
|
|
1745
|
+
error: string;
|
|
1746
|
+
failedAt: string;
|
|
1747
|
+
retryCount: number;
|
|
1748
|
+
degradedToAstOnly: boolean;
|
|
1749
|
+
reason?: string | undefined;
|
|
1750
|
+
}, {
|
|
1751
|
+
path: string;
|
|
1752
|
+
error: string;
|
|
1753
|
+
failedAt: string;
|
|
1754
|
+
retryCount: number;
|
|
1755
|
+
degradedToAstOnly: boolean;
|
|
1756
|
+
reason?: string | undefined;
|
|
1757
|
+
}>, "many">;
|
|
1758
|
+
forceRegenerate: z.ZodBoolean;
|
|
1759
|
+
/** 语言分组信息(key: adapterId, value: 文件路径列表) */
|
|
1760
|
+
languageGroups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
1761
|
+
/** 过滤语言列表(用于断点恢复时还原过滤条件) */
|
|
1762
|
+
filterLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1763
|
+
}, "strip", z.ZodTypeAny, {
|
|
1764
|
+
projectRoot: string;
|
|
1765
|
+
totalModules: number;
|
|
1766
|
+
batchId: string;
|
|
1767
|
+
startedAt: string;
|
|
1768
|
+
lastUpdatedAt: string;
|
|
1769
|
+
processingOrder: string[];
|
|
1770
|
+
completedModules: {
|
|
1771
|
+
path: string;
|
|
1772
|
+
specPath: string;
|
|
1773
|
+
completedAt: string;
|
|
1774
|
+
tokenUsage?: number | undefined;
|
|
1775
|
+
costMetadata?: {
|
|
1776
|
+
tokenUsage: {
|
|
1777
|
+
input: number;
|
|
1778
|
+
output: number;
|
|
1779
|
+
};
|
|
1780
|
+
durationMs: number;
|
|
1781
|
+
llmModel: string;
|
|
1782
|
+
fallbackReason: string | null;
|
|
1783
|
+
} | undefined;
|
|
1784
|
+
}[];
|
|
1785
|
+
failedModules: {
|
|
1786
|
+
path: string;
|
|
1787
|
+
error: string;
|
|
1788
|
+
failedAt: string;
|
|
1789
|
+
retryCount: number;
|
|
1790
|
+
degradedToAstOnly: boolean;
|
|
1791
|
+
reason?: string | undefined;
|
|
1792
|
+
}[];
|
|
1793
|
+
forceRegenerate: boolean;
|
|
1794
|
+
languageGroups?: Record<string, string[]> | undefined;
|
|
1795
|
+
filterLanguages?: string[] | undefined;
|
|
1796
|
+
}, {
|
|
1797
|
+
projectRoot: string;
|
|
1798
|
+
totalModules: number;
|
|
1799
|
+
batchId: string;
|
|
1800
|
+
startedAt: string;
|
|
1801
|
+
lastUpdatedAt: string;
|
|
1802
|
+
processingOrder: string[];
|
|
1803
|
+
completedModules: {
|
|
1804
|
+
path: string;
|
|
1805
|
+
specPath: string;
|
|
1806
|
+
completedAt: string;
|
|
1807
|
+
tokenUsage?: number | undefined;
|
|
1808
|
+
costMetadata?: {
|
|
1809
|
+
tokenUsage: {
|
|
1810
|
+
input: number;
|
|
1811
|
+
output: number;
|
|
1812
|
+
};
|
|
1813
|
+
durationMs: number;
|
|
1814
|
+
llmModel: string;
|
|
1815
|
+
fallbackReason: string | null;
|
|
1816
|
+
} | undefined;
|
|
1817
|
+
}[];
|
|
1818
|
+
failedModules: {
|
|
1819
|
+
path: string;
|
|
1820
|
+
error: string;
|
|
1821
|
+
failedAt: string;
|
|
1822
|
+
retryCount: number;
|
|
1823
|
+
degradedToAstOnly: boolean;
|
|
1824
|
+
reason?: string | undefined;
|
|
1825
|
+
}[];
|
|
1826
|
+
forceRegenerate: boolean;
|
|
1827
|
+
languageGroups?: Record<string, string[]> | undefined;
|
|
1828
|
+
filterLanguages?: string[] | undefined;
|
|
1829
|
+
}>;
|
|
1830
|
+
export type BatchState = z.infer<typeof BatchStateSchema>;
|
|
1831
|
+
/** 敏感信息检测项 */
|
|
1832
|
+
export declare const SecretDetectionSchema: z.ZodObject<{
|
|
1833
|
+
type: z.ZodString;
|
|
1834
|
+
line: z.ZodNumber;
|
|
1835
|
+
confidence: z.ZodEnum<["high", "medium", "low"]>;
|
|
1836
|
+
placeholder: z.ZodString;
|
|
1837
|
+
}, "strip", z.ZodTypeAny, {
|
|
1838
|
+
type: string;
|
|
1839
|
+
line: number;
|
|
1840
|
+
confidence: "low" | "medium" | "high";
|
|
1841
|
+
placeholder: string;
|
|
1842
|
+
}, {
|
|
1843
|
+
type: string;
|
|
1844
|
+
line: number;
|
|
1845
|
+
confidence: "low" | "medium" | "high";
|
|
1846
|
+
placeholder: string;
|
|
1847
|
+
}>;
|
|
1848
|
+
export type SecretDetection = z.infer<typeof SecretDetectionSchema>;
|
|
1849
|
+
/** 敏感信息脱敏结果 */
|
|
1850
|
+
export declare const RedactionResultSchema: z.ZodObject<{
|
|
1851
|
+
originalHash: z.ZodString;
|
|
1852
|
+
redactedContent: z.ZodString;
|
|
1853
|
+
detections: z.ZodArray<z.ZodObject<{
|
|
1854
|
+
type: z.ZodString;
|
|
1855
|
+
line: z.ZodNumber;
|
|
1856
|
+
confidence: z.ZodEnum<["high", "medium", "low"]>;
|
|
1857
|
+
placeholder: z.ZodString;
|
|
1858
|
+
}, "strip", z.ZodTypeAny, {
|
|
1859
|
+
type: string;
|
|
1860
|
+
line: number;
|
|
1861
|
+
confidence: "low" | "medium" | "high";
|
|
1862
|
+
placeholder: string;
|
|
1863
|
+
}, {
|
|
1864
|
+
type: string;
|
|
1865
|
+
line: number;
|
|
1866
|
+
confidence: "low" | "medium" | "high";
|
|
1867
|
+
placeholder: string;
|
|
1868
|
+
}>, "many">;
|
|
1869
|
+
falsePositivesFiltered: z.ZodNumber;
|
|
1870
|
+
}, "strip", z.ZodTypeAny, {
|
|
1871
|
+
originalHash: string;
|
|
1872
|
+
redactedContent: string;
|
|
1873
|
+
detections: {
|
|
1874
|
+
type: string;
|
|
1875
|
+
line: number;
|
|
1876
|
+
confidence: "low" | "medium" | "high";
|
|
1877
|
+
placeholder: string;
|
|
1878
|
+
}[];
|
|
1879
|
+
falsePositivesFiltered: number;
|
|
1880
|
+
}, {
|
|
1881
|
+
originalHash: string;
|
|
1882
|
+
redactedContent: string;
|
|
1883
|
+
detections: {
|
|
1884
|
+
type: string;
|
|
1885
|
+
line: number;
|
|
1886
|
+
confidence: "low" | "medium" | "high";
|
|
1887
|
+
placeholder: string;
|
|
1888
|
+
}[];
|
|
1889
|
+
falsePositivesFiltered: number;
|
|
1890
|
+
}>;
|
|
1891
|
+
export type RedactionResult = z.infer<typeof RedactionResultSchema>;
|
|
1892
|
+
/** 处理阶段标识符 */
|
|
1893
|
+
export type StageId = 'scan' | 'ast' | 'context' | 'llm' | 'parse' | 'render' | 'enrich' | 'lang-detect' | 'lang-graph';
|
|
1894
|
+
/** 阶段进度事件 */
|
|
1895
|
+
export interface StageProgress {
|
|
1896
|
+
/** 阶段标识符 */
|
|
1897
|
+
stage: StageId;
|
|
1898
|
+
/** 阶段中文描述 */
|
|
1899
|
+
message: string;
|
|
1900
|
+
/** 阶段耗时(毫秒,仅完成时有值) */
|
|
1901
|
+
duration?: number;
|
|
1902
|
+
}
|
|
1903
|
+
/** 阶段进度回调 */
|
|
1904
|
+
export type StageProgressCallback = (progress: StageProgress) => void;
|
|
1905
|
+
//# sourceMappingURL=module-spec.d.ts.map
|