spectra-cli 4.1.1 → 4.2.0
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/README.md +1 -1
- package/dist/adapters/go-adapter.d.ts.map +1 -1
- package/dist/adapters/go-adapter.js +2 -0
- package/dist/adapters/go-adapter.js.map +1 -1
- package/dist/adapters/index.d.ts +1 -1
- package/dist/adapters/index.d.ts.map +1 -1
- package/dist/adapters/java-adapter.d.ts.map +1 -1
- package/dist/adapters/java-adapter.js +2 -0
- package/dist/adapters/java-adapter.js.map +1 -1
- package/dist/adapters/language-adapter.d.ts +47 -9
- package/dist/adapters/language-adapter.d.ts.map +1 -1
- package/dist/adapters/python-adapter.d.ts +34 -6
- package/dist/adapters/python-adapter.d.ts.map +1 -1
- package/dist/adapters/python-adapter.js +157 -59
- package/dist/adapters/python-adapter.js.map +1 -1
- package/dist/adapters/ts-js-adapter.d.ts +13 -5
- package/dist/adapters/ts-js-adapter.d.ts.map +1 -1
- package/dist/adapters/ts-js-adapter.js +55 -14
- package/dist/adapters/ts-js-adapter.js.map +1 -1
- package/dist/batch/batch-orchestrator.d.ts +30 -4
- package/dist/batch/batch-orchestrator.d.ts.map +1 -1
- package/dist/batch/batch-orchestrator.js +284 -7
- package/dist/batch/batch-orchestrator.js.map +1 -1
- package/dist/batch/delta-regenerator.d.ts +2 -2
- package/dist/batch/delta-regenerator.d.ts.map +1 -1
- package/dist/batch/delta-regenerator.js.map +1 -1
- package/dist/batch/module-grouper.d.ts +2 -2
- package/dist/batch/module-grouper.d.ts.map +1 -1
- package/dist/batch/module-grouper.js +1 -1
- package/dist/batch/module-grouper.js.map +1 -1
- package/dist/cli/commands/graph.js +1 -1
- package/dist/cli/commands/graph.js.map +1 -1
- package/dist/cli/commands/index.d.ts +8 -0
- package/dist/cli/commands/index.d.ts.map +1 -0
- package/dist/cli/commands/index.js +274 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/query.d.ts.map +1 -1
- package/dist/cli/commands/query.js +3 -1
- package/dist/cli/commands/query.js.map +1 -1
- package/dist/cli/index.js +9 -9
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/utils/parse-args.d.ts +13 -1
- package/dist/cli/utils/parse-args.d.ts.map +1 -1
- package/dist/cli/utils/parse-args.js +79 -2
- package/dist/cli/utils/parse-args.js.map +1 -1
- package/dist/core/ast-analyzer.d.ts.map +1 -1
- package/dist/core/ast-analyzer.js +79 -5
- package/dist/core/ast-analyzer.js.map +1 -1
- package/dist/core/import-resolver.d.ts +90 -0
- package/dist/core/import-resolver.d.ts.map +1 -0
- package/dist/core/import-resolver.js +273 -0
- package/dist/core/import-resolver.js.map +1 -0
- package/dist/core/query-mappers/base-mapper.d.ts +13 -0
- package/dist/core/query-mappers/base-mapper.d.ts.map +1 -1
- package/dist/core/query-mappers/go-mapper.d.ts +68 -0
- package/dist/core/query-mappers/go-mapper.d.ts.map +1 -1
- package/dist/core/query-mappers/go-mapper.js +421 -0
- package/dist/core/query-mappers/go-mapper.js.map +1 -1
- package/dist/core/query-mappers/java-mapper.d.ts +196 -0
- package/dist/core/query-mappers/java-mapper.d.ts.map +1 -1
- package/dist/core/query-mappers/java-mapper.js +600 -0
- package/dist/core/query-mappers/java-mapper.js.map +1 -1
- package/dist/core/query-mappers/python-mapper.d.ts +55 -0
- package/dist/core/query-mappers/python-mapper.d.ts.map +1 -1
- package/dist/core/query-mappers/python-mapper.js +273 -0
- package/dist/core/query-mappers/python-mapper.js.map +1 -1
- package/dist/core/query-mappers/typescript-mapper.d.ts +102 -0
- package/dist/core/query-mappers/typescript-mapper.d.ts.map +1 -1
- package/dist/core/query-mappers/typescript-mapper.js +470 -0
- package/dist/core/query-mappers/typescript-mapper.js.map +1 -1
- package/dist/core/single-spec-orchestrator.d.ts.map +1 -1
- package/dist/core/single-spec-orchestrator.js +146 -9
- package/dist/core/single-spec-orchestrator.js.map +1 -1
- package/dist/core/tree-sitter-analyzer.d.ts +6 -0
- package/dist/core/tree-sitter-analyzer.d.ts.map +1 -1
- package/dist/core/tree-sitter-analyzer.js +33 -1
- package/dist/core/tree-sitter-analyzer.js.map +1 -1
- package/dist/core/tree-sitter-fallback.d.ts +7 -4
- package/dist/core/tree-sitter-fallback.d.ts.map +1 -1
- package/dist/core/tree-sitter-fallback.js +157 -12
- package/dist/core/tree-sitter-fallback.js.map +1 -1
- package/dist/extraction/extraction-types.d.ts +25 -25
- package/dist/generator/index-generator.d.ts +3 -3
- package/dist/generator/index-generator.d.ts.map +1 -1
- package/dist/generator/index-generator.js +1 -1
- package/dist/generator/index-generator.js.map +1 -1
- package/dist/graph/directory-graph.d.ts +14 -4
- package/dist/graph/directory-graph.d.ts.map +1 -1
- package/dist/graph/directory-graph.js +71 -128
- package/dist/graph/directory-graph.js.map +1 -1
- package/dist/graph/mermaid-renderer.d.ts +8 -5
- package/dist/graph/mermaid-renderer.d.ts.map +1 -1
- package/dist/graph/mermaid-renderer.js +3 -3
- package/dist/graph/mermaid-renderer.js.map +1 -1
- package/dist/graph/topological-sort.d.ts +13 -6
- package/dist/graph/topological-sort.d.ts.map +1 -1
- package/dist/graph/topological-sort.js +2 -2
- package/dist/graph/topological-sort.js.map +1 -1
- package/dist/knowledge-graph/call-resolver.d.ts +64 -0
- package/dist/knowledge-graph/call-resolver.d.ts.map +1 -0
- package/dist/knowledge-graph/call-resolver.js +323 -0
- package/dist/knowledge-graph/call-resolver.js.map +1 -0
- package/dist/knowledge-graph/import-resolver.d.ts +114 -0
- package/dist/knowledge-graph/import-resolver.d.ts.map +1 -0
- package/dist/knowledge-graph/import-resolver.js +537 -0
- package/dist/knowledge-graph/import-resolver.js.map +1 -0
- package/dist/knowledge-graph/incremental.d.ts +110 -0
- package/dist/knowledge-graph/incremental.d.ts.map +1 -0
- package/dist/knowledge-graph/incremental.js +410 -0
- package/dist/knowledge-graph/incremental.js.map +1 -0
- package/dist/knowledge-graph/index.d.ts +74 -0
- package/dist/knowledge-graph/index.d.ts.map +1 -0
- package/dist/knowledge-graph/index.js +156 -0
- package/dist/knowledge-graph/index.js.map +1 -0
- package/dist/knowledge-graph/module-derivation.d.ts +238 -0
- package/dist/knowledge-graph/module-derivation.d.ts.map +1 -0
- package/dist/knowledge-graph/module-derivation.js +418 -0
- package/dist/knowledge-graph/module-derivation.js.map +1 -0
- package/dist/knowledge-graph/persistence.d.ts +270 -0
- package/dist/knowledge-graph/persistence.d.ts.map +1 -0
- package/dist/knowledge-graph/persistence.js +226 -0
- package/dist/knowledge-graph/persistence.js.map +1 -0
- package/dist/knowledge-graph/query-helpers.d.ts +164 -0
- package/dist/knowledge-graph/query-helpers.d.ts.map +1 -0
- package/dist/knowledge-graph/query-helpers.js +394 -0
- package/dist/knowledge-graph/query-helpers.js.map +1 -0
- package/dist/knowledge-graph/unified-graph.d.ts +310 -0
- package/dist/knowledge-graph/unified-graph.d.ts.map +1 -0
- package/dist/knowledge-graph/unified-graph.js +182 -0
- package/dist/knowledge-graph/unified-graph.js.map +1 -0
- package/dist/mcp/agent-context-tools.d.ts +104 -0
- package/dist/mcp/agent-context-tools.d.ts.map +1 -0
- package/dist/mcp/agent-context-tools.js +854 -0
- package/dist/mcp/agent-context-tools.js.map +1 -0
- package/dist/mcp/graph-tools.d.ts +20 -0
- package/dist/mcp/graph-tools.d.ts.map +1 -1
- package/dist/mcp/graph-tools.js +71 -11
- package/dist/mcp/graph-tools.js.map +1 -1
- package/dist/mcp/lib/response-helpers.d.ts +67 -0
- package/dist/mcp/lib/response-helpers.d.ts.map +1 -0
- package/dist/mcp/lib/response-helpers.js +103 -0
- package/dist/mcp/lib/response-helpers.js.map +1 -0
- package/dist/mcp/server.d.ts +3 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +9 -10
- package/dist/mcp/server.js.map +1 -1
- package/dist/models/call-site.d.ts +68 -0
- package/dist/models/call-site.d.ts.map +1 -0
- package/dist/models/call-site.js +60 -0
- package/dist/models/call-site.js.map +1 -0
- package/dist/models/code-skeleton.d.ts +78 -6
- package/dist/models/code-skeleton.d.ts.map +1 -1
- package/dist/models/code-skeleton.js +29 -0
- package/dist/models/code-skeleton.js.map +1 -1
- package/dist/models/drift-item.d.ts +4 -4
- package/dist/models/module-spec.d.ts +155 -94
- package/dist/models/module-spec.d.ts.map +1 -1
- package/dist/panoramic/adr-decision-pipeline.d.ts +53 -0
- package/dist/panoramic/adr-decision-pipeline.d.ts.map +1 -0
- package/dist/panoramic/adr-decision-pipeline.js +685 -0
- package/dist/panoramic/adr-decision-pipeline.js.map +1 -0
- package/dist/panoramic/api-surface-generator.d.ts +56 -0
- package/dist/panoramic/api-surface-generator.d.ts.map +1 -0
- package/dist/panoramic/api-surface-generator.js +1671 -0
- package/dist/panoramic/api-surface-generator.js.map +1 -0
- package/dist/panoramic/architecture-ir-builder.d.ts +19 -0
- package/dist/panoramic/architecture-ir-builder.d.ts.map +1 -0
- package/dist/panoramic/architecture-ir-builder.js +561 -0
- package/dist/panoramic/architecture-ir-builder.js.map +1 -0
- package/dist/panoramic/architecture-ir-exporters.d.ts +7 -0
- package/dist/panoramic/architecture-ir-exporters.d.ts.map +1 -0
- package/dist/panoramic/architecture-ir-exporters.js +183 -0
- package/dist/panoramic/architecture-ir-exporters.js.map +1 -0
- package/dist/panoramic/architecture-ir-generator.d.ts +36 -0
- package/dist/panoramic/architecture-ir-generator.d.ts.map +1 -0
- package/dist/panoramic/architecture-ir-generator.js +51 -0
- package/dist/panoramic/architecture-ir-generator.js.map +1 -0
- package/dist/panoramic/architecture-ir-mermaid-adapter.d.ts +6 -0
- package/dist/panoramic/architecture-ir-mermaid-adapter.d.ts.map +1 -0
- package/dist/panoramic/architecture-ir-mermaid-adapter.js +98 -0
- package/dist/panoramic/architecture-ir-mermaid-adapter.js.map +1 -0
- package/dist/panoramic/architecture-ir-model.d.ts +87 -0
- package/dist/panoramic/architecture-ir-model.d.ts.map +1 -0
- package/dist/panoramic/architecture-ir-model.js +20 -0
- package/dist/panoramic/architecture-ir-model.js.map +1 -0
- package/dist/panoramic/architecture-narrative.d.ts +68 -0
- package/dist/panoramic/architecture-narrative.d.ts.map +1 -0
- package/dist/panoramic/architecture-narrative.js +401 -0
- package/dist/panoramic/architecture-narrative.js.map +1 -0
- package/dist/panoramic/architecture-overview-generator.d.ts +31 -0
- package/dist/panoramic/architecture-overview-generator.d.ts.map +1 -0
- package/dist/panoramic/architecture-overview-generator.js +454 -0
- package/dist/panoramic/architecture-overview-generator.js.map +1 -0
- package/dist/panoramic/architecture-overview-model.d.ts +77 -0
- package/dist/panoramic/architecture-overview-model.d.ts.map +1 -0
- package/dist/panoramic/architecture-overview-model.js +31 -0
- package/dist/panoramic/architecture-overview-model.js.map +1 -0
- package/dist/panoramic/batch-project-docs.d.ts.map +1 -1
- package/dist/panoramic/batch-project-docs.js +4 -2
- package/dist/panoramic/batch-project-docs.js.map +1 -1
- package/dist/panoramic/builders/component-view-builder.d.ts +25 -1
- package/dist/panoramic/builders/component-view-builder.d.ts.map +1 -1
- package/dist/panoramic/builders/component-view-builder.js +83 -3
- package/dist/panoramic/builders/component-view-builder.js.map +1 -1
- package/dist/panoramic/builders/doc-graph-builder.d.ts +2 -2
- package/dist/panoramic/builders/doc-graph-builder.d.ts.map +1 -1
- package/dist/panoramic/builders/doc-graph-builder.js.map +1 -1
- package/dist/panoramic/component-view-builder.d.ts +17 -0
- package/dist/panoramic/component-view-builder.d.ts.map +1 -0
- package/dist/panoramic/component-view-builder.js +652 -0
- package/dist/panoramic/component-view-builder.js.map +1 -0
- package/dist/panoramic/component-view-model.d.ts +127 -0
- package/dist/panoramic/component-view-model.d.ts.map +1 -0
- package/dist/panoramic/component-view-model.js +65 -0
- package/dist/panoramic/component-view-model.js.map +1 -0
- package/dist/panoramic/config-reference-generator.d.ts +78 -0
- package/dist/panoramic/config-reference-generator.d.ts.map +1 -0
- package/dist/panoramic/config-reference-generator.js +199 -0
- package/dist/panoramic/config-reference-generator.js.map +1 -0
- package/dist/panoramic/coverage-auditor.d.ts +95 -0
- package/dist/panoramic/coverage-auditor.d.ts.map +1 -0
- package/dist/panoramic/coverage-auditor.js +290 -0
- package/dist/panoramic/coverage-auditor.js.map +1 -0
- package/dist/panoramic/cross-package-analyzer.d.ts +112 -0
- package/dist/panoramic/cross-package-analyzer.d.ts.map +1 -0
- package/dist/panoramic/cross-package-analyzer.js +258 -0
- package/dist/panoramic/cross-package-analyzer.js.map +1 -0
- package/dist/panoramic/data-model-generator.d.ts +528 -0
- package/dist/panoramic/data-model-generator.d.ts.map +1 -0
- package/dist/panoramic/data-model-generator.js +647 -0
- package/dist/panoramic/data-model-generator.js.map +1 -0
- package/dist/panoramic/doc-graph-builder.d.ts +80 -0
- package/dist/panoramic/doc-graph-builder.d.ts.map +1 -0
- package/dist/panoramic/doc-graph-builder.js +352 -0
- package/dist/panoramic/doc-graph-builder.js.map +1 -0
- package/dist/panoramic/docs-bundle-manifest-reader.d.ts +26 -0
- package/dist/panoramic/docs-bundle-manifest-reader.d.ts.map +1 -0
- package/dist/panoramic/docs-bundle-manifest-reader.js +106 -0
- package/dist/panoramic/docs-bundle-manifest-reader.js.map +1 -0
- package/dist/panoramic/docs-bundle-orchestrator.d.ts +14 -0
- package/dist/panoramic/docs-bundle-orchestrator.d.ts.map +1 -0
- package/dist/panoramic/docs-bundle-orchestrator.js +538 -0
- package/dist/panoramic/docs-bundle-orchestrator.js.map +1 -0
- package/dist/panoramic/docs-bundle-profiles.d.ts +4 -0
- package/dist/panoramic/docs-bundle-profiles.d.ts.map +1 -0
- package/dist/panoramic/docs-bundle-profiles.js +82 -0
- package/dist/panoramic/docs-bundle-profiles.js.map +1 -0
- package/dist/panoramic/docs-bundle-types.d.ts +94 -0
- package/dist/panoramic/docs-bundle-types.d.ts.map +1 -0
- package/dist/panoramic/docs-bundle-types.js +10 -0
- package/dist/panoramic/docs-bundle-types.js.map +1 -0
- package/dist/panoramic/docs-quality-evaluator.d.ts +31 -0
- package/dist/panoramic/docs-quality-evaluator.d.ts.map +1 -0
- package/dist/panoramic/docs-quality-evaluator.js +941 -0
- package/dist/panoramic/docs-quality-evaluator.js.map +1 -0
- package/dist/panoramic/docs-quality-model.d.ts +125 -0
- package/dist/panoramic/docs-quality-model.d.ts.map +1 -0
- package/dist/panoramic/docs-quality-model.js +166 -0
- package/dist/panoramic/docs-quality-model.js.map +1 -0
- package/dist/panoramic/dynamic-scenarios-builder.d.ts +18 -0
- package/dist/panoramic/dynamic-scenarios-builder.d.ts.map +1 -0
- package/dist/panoramic/dynamic-scenarios-builder.js +316 -0
- package/dist/panoramic/dynamic-scenarios-builder.js.map +1 -0
- package/dist/panoramic/event-surface-generator.d.ts +52 -0
- package/dist/panoramic/event-surface-generator.d.ts.map +1 -0
- package/dist/panoramic/event-surface-generator.js +507 -0
- package/dist/panoramic/event-surface-generator.js.map +1 -0
- package/dist/panoramic/generator-registry.d.ts +1 -1
- package/dist/panoramic/generator-registry.d.ts.map +1 -1
- package/dist/panoramic/generator-registry.js +5 -2
- package/dist/panoramic/generator-registry.js.map +1 -1
- package/dist/panoramic/generators/cross-package-analyzer.d.ts +5 -5
- package/dist/panoramic/generators/cross-package-analyzer.d.ts.map +1 -1
- package/dist/panoramic/generators/cross-package-analyzer.js +1 -1
- package/dist/panoramic/generators/cross-package-analyzer.js.map +1 -1
- package/dist/panoramic/generators/data-model-generator.d.ts +27 -27
- package/dist/panoramic/graph/confidence-mapper.d.ts +18 -0
- package/dist/panoramic/graph/confidence-mapper.d.ts.map +1 -1
- package/dist/panoramic/graph/confidence-mapper.js +26 -0
- package/dist/panoramic/graph/confidence-mapper.js.map +1 -1
- package/dist/panoramic/graph/graph-builder.d.ts.map +1 -1
- package/dist/panoramic/graph/graph-builder.js +78 -0
- package/dist/panoramic/graph/graph-builder.js.map +1 -1
- package/dist/panoramic/graph/graph-paths.d.ts +8 -0
- package/dist/panoramic/graph/graph-paths.d.ts.map +1 -1
- package/dist/panoramic/graph/graph-paths.js +10 -0
- package/dist/panoramic/graph/graph-paths.js.map +1 -1
- package/dist/panoramic/graph/graph-query.d.ts +33 -2
- package/dist/panoramic/graph/graph-query.d.ts.map +1 -1
- package/dist/panoramic/graph/graph-query.js +69 -19
- package/dist/panoramic/graph/graph-query.js.map +1 -1
- package/dist/panoramic/graph/graph-types.d.ts +32 -3
- package/dist/panoramic/graph/graph-types.d.ts.map +1 -1
- package/dist/panoramic/hyperedges/schema.d.ts +6 -6
- package/dist/panoramic/interface-surface-generator.d.ts +50 -0
- package/dist/panoramic/interface-surface-generator.d.ts.map +1 -0
- package/dist/panoramic/interface-surface-generator.js +388 -0
- package/dist/panoramic/interface-surface-generator.js.map +1 -0
- package/dist/panoramic/interfaces.d.ts +2 -2
- package/dist/panoramic/mock-readme-generator.d.ts +90 -0
- package/dist/panoramic/mock-readme-generator.d.ts.map +1 -0
- package/dist/panoramic/mock-readme-generator.js +111 -0
- package/dist/panoramic/mock-readme-generator.js.map +1 -0
- package/dist/panoramic/models/component-view-model.d.ts +1 -1
- package/dist/panoramic/models/component-view-model.d.ts.map +1 -1
- package/dist/panoramic/models/component-view-model.js.map +1 -1
- package/dist/panoramic/narrative-provenance-adapter.d.ts +8 -0
- package/dist/panoramic/narrative-provenance-adapter.d.ts.map +1 -0
- package/dist/panoramic/narrative-provenance-adapter.js +99 -0
- package/dist/panoramic/narrative-provenance-adapter.js.map +1 -0
- package/dist/panoramic/parser-registry.d.ts +1 -1
- package/dist/panoramic/parser-registry.js +1 -1
- package/dist/panoramic/parsers/types.d.ts +6 -6
- package/dist/panoramic/pattern-hints-generator.d.ts +28 -0
- package/dist/panoramic/pattern-hints-generator.d.ts.map +1 -0
- package/dist/panoramic/pattern-hints-generator.js +218 -0
- package/dist/panoramic/pattern-hints-generator.js.map +1 -0
- package/dist/panoramic/pattern-hints-model.d.ts +89 -0
- package/dist/panoramic/pattern-hints-model.d.ts.map +1 -0
- package/dist/panoramic/pattern-hints-model.js +61 -0
- package/dist/panoramic/pattern-hints-model.js.map +1 -0
- package/dist/panoramic/pattern-knowledge-base.d.ts +31 -0
- package/dist/panoramic/pattern-knowledge-base.d.ts.map +1 -0
- package/dist/panoramic/pattern-knowledge-base.js +407 -0
- package/dist/panoramic/pattern-knowledge-base.js.map +1 -0
- package/dist/panoramic/pipelines/coverage-auditor.d.ts.map +1 -1
- package/dist/panoramic/pipelines/coverage-auditor.js +4 -2
- package/dist/panoramic/pipelines/coverage-auditor.js.map +1 -1
- package/dist/panoramic/pipelines/docs-bundle-orchestrator.js +13 -6
- package/dist/panoramic/pipelines/docs-bundle-orchestrator.js.map +1 -1
- package/dist/panoramic/pipelines/product-ux-docs.d.ts +5 -0
- package/dist/panoramic/pipelines/product-ux-docs.d.ts.map +1 -1
- package/dist/panoramic/pipelines/product-ux-docs.js +34 -6
- package/dist/panoramic/pipelines/product-ux-docs.js.map +1 -1
- package/dist/panoramic/product-ux-docs.d.ts +104 -0
- package/dist/panoramic/product-ux-docs.d.ts.map +1 -0
- package/dist/panoramic/product-ux-docs.js +817 -0
- package/dist/panoramic/product-ux-docs.js.map +1 -0
- package/dist/panoramic/qa/__tests__/citation.test.d.ts +2 -0
- package/dist/panoramic/qa/__tests__/citation.test.d.ts.map +1 -0
- package/dist/panoramic/qa/__tests__/citation.test.js +193 -0
- package/dist/panoramic/qa/__tests__/citation.test.js.map +1 -0
- package/dist/panoramic/qa/__tests__/debt-context.test.d.ts +2 -0
- package/dist/panoramic/qa/__tests__/debt-context.test.d.ts.map +1 -0
- package/dist/panoramic/qa/__tests__/debt-context.test.js +154 -0
- package/dist/panoramic/qa/__tests__/debt-context.test.js.map +1 -0
- package/dist/panoramic/qa/__tests__/graph-retriever.test.d.ts +2 -0
- package/dist/panoramic/qa/__tests__/graph-retriever.test.d.ts.map +1 -0
- package/dist/panoramic/qa/__tests__/graph-retriever.test.js +148 -0
- package/dist/panoramic/qa/__tests__/graph-retriever.test.js.map +1 -0
- package/dist/panoramic/qa/__tests__/index.test.d.ts +2 -0
- package/dist/panoramic/qa/__tests__/index.test.d.ts.map +1 -0
- package/dist/panoramic/qa/__tests__/index.test.js +246 -0
- package/dist/panoramic/qa/__tests__/index.test.js.map +1 -0
- package/dist/panoramic/qa/__tests__/llm-caller.test.d.ts +2 -0
- package/dist/panoramic/qa/__tests__/llm-caller.test.d.ts.map +1 -0
- package/dist/panoramic/qa/__tests__/llm-caller.test.js +168 -0
- package/dist/panoramic/qa/__tests__/llm-caller.test.js.map +1 -0
- package/dist/panoramic/qa/__tests__/prompt-builder.test.d.ts +2 -0
- package/dist/panoramic/qa/__tests__/prompt-builder.test.d.ts.map +1 -0
- package/dist/panoramic/qa/__tests__/prompt-builder.test.js +150 -0
- package/dist/panoramic/qa/__tests__/prompt-builder.test.js.map +1 -0
- package/dist/panoramic/qa/__tests__/qa-integration.test.d.ts +2 -0
- package/dist/panoramic/qa/__tests__/qa-integration.test.d.ts.map +1 -0
- package/dist/panoramic/qa/__tests__/qa-integration.test.js +296 -0
- package/dist/panoramic/qa/__tests__/qa-integration.test.js.map +1 -0
- package/dist/panoramic/qa/__tests__/rag-reranker.test.d.ts +2 -0
- package/dist/panoramic/qa/__tests__/rag-reranker.test.d.ts.map +1 -0
- package/dist/panoramic/qa/__tests__/rag-reranker.test.js +136 -0
- package/dist/panoramic/qa/__tests__/rag-reranker.test.js.map +1 -0
- package/dist/panoramic/qa/index.d.ts.map +1 -1
- package/dist/panoramic/qa/index.js +10 -3
- package/dist/panoramic/qa/index.js.map +1 -1
- package/dist/panoramic/runtime-topology-generator.d.ts +77 -0
- package/dist/panoramic/runtime-topology-generator.d.ts.map +1 -0
- package/dist/panoramic/runtime-topology-generator.js +676 -0
- package/dist/panoramic/runtime-topology-generator.js.map +1 -0
- package/dist/panoramic/runtime-topology-model.d.ts +145 -0
- package/dist/panoramic/runtime-topology-model.d.ts.map +1 -0
- package/dist/panoramic/runtime-topology-model.js +300 -0
- package/dist/panoramic/runtime-topology-model.js.map +1 -0
- package/dist/panoramic/troubleshooting-generator.d.ts +51 -0
- package/dist/panoramic/troubleshooting-generator.d.ts.map +1 -0
- package/dist/panoramic/troubleshooting-generator.js +451 -0
- package/dist/panoramic/troubleshooting-generator.js.map +1 -0
- package/dist/panoramic/utils/text-segmenter.d.ts +15 -0
- package/dist/panoramic/utils/text-segmenter.d.ts.map +1 -1
- package/dist/panoramic/utils/text-segmenter.js +38 -0
- package/dist/panoramic/utils/text-segmenter.js.map +1 -1
- package/dist/panoramic/workspace-index-generator.d.ts +148 -0
- package/dist/panoramic/workspace-index-generator.d.ts.map +1 -0
- package/dist/panoramic/workspace-index-generator.js +497 -0
- package/dist/panoramic/workspace-index-generator.js.map +1 -0
- package/dist/runtime-bootstrap.d.ts +9 -0
- package/dist/runtime-bootstrap.d.ts.map +1 -0
- package/dist/runtime-bootstrap.js +33 -0
- package/dist/runtime-bootstrap.js.map +1 -0
- package/dist/utils/file-scanner.js +1 -1
- package/dist/utils/file-scanner.js.map +1 -1
- package/package.json +12 -2
- package/plugins/spec-driver/.claude-plugin/plugin.json +1 -1
- package/plugins/spec-driver/README.md +18 -1
- package/plugins/spec-driver/agents/implement.md +20 -1
- package/plugins/spec-driver/agents/plan.md +20 -1
- package/plugins/spec-driver/agents/quality-review.md +20 -1
- package/plugins/spec-driver/agents/spec-review.md +20 -1
- package/plugins/spec-driver/agents/verify.md +20 -1
- package/plugins/spec-driver/docs/customization.md +134 -0
- package/plugins/spec-driver/docs/spectra-mcp-integration.md +165 -0
- package/plugins/spec-driver/lib/preference-rules.mjs +96 -0
- package/plugins/spec-driver/scripts/postinstall.sh +1 -1
- package/plugins/spec-driver/scripts/sync-preference-rules.mjs +148 -0
- package/plugins/spec-driver/skills/spec-driver-feature/SKILL.md +10 -0
- package/plugins/spec-driver/skills/spec-driver-fix/SKILL.md +10 -0
- package/plugins/spec-driver/skills/spec-driver-implement/SKILL.md +10 -0
- package/plugins/spec-driver/skills/spec-driver-refactor/SKILL.md +10 -0
- package/plugins/spec-driver/skills/spec-driver-story/SKILL.md +10 -0
- package/plugins/spec-driver/templates/preference-rules.md +39 -0
- package/plugins/spectra/.claude-plugin/plugin.json +1 -1
- package/plugins/spectra/README.md +48 -1
- package/plugins/spectra/hooks/post-commit.sh +40 -0
- package/templates/product-overview.hbs +1 -1
|
@@ -187,7 +187,7 @@ export declare const SpecFrontmatterSchema: z.ZodObject<{
|
|
|
187
187
|
contextTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
189
|
type: "module-spec";
|
|
190
|
-
confidence: "
|
|
190
|
+
confidence: "high" | "medium" | "low";
|
|
191
191
|
version: string;
|
|
192
192
|
generatedBy: string;
|
|
193
193
|
sourceTarget: string;
|
|
@@ -216,7 +216,7 @@ export declare const SpecFrontmatterSchema: z.ZodObject<{
|
|
|
216
216
|
contextTruncated?: boolean | undefined;
|
|
217
217
|
}, {
|
|
218
218
|
type: "module-spec";
|
|
219
|
-
confidence: "
|
|
219
|
+
confidence: "high" | "medium" | "low";
|
|
220
220
|
version: string;
|
|
221
221
|
generatedBy: string;
|
|
222
222
|
sourceTarget: string;
|
|
@@ -319,23 +319,23 @@ export declare const CrossReferenceLinkSchema: z.ZodObject<{
|
|
|
319
319
|
evidenceCount: z.ZodNumber;
|
|
320
320
|
summary: z.ZodString;
|
|
321
321
|
}, "strip", z.ZodTypeAny, {
|
|
322
|
-
kind: "
|
|
322
|
+
kind: "cross-module" | "same-module";
|
|
323
323
|
label: string;
|
|
324
|
+
summary: string;
|
|
324
325
|
href: string;
|
|
325
326
|
targetSpecPath: string;
|
|
326
327
|
targetSourceTarget: string;
|
|
327
328
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
328
329
|
evidenceCount: number;
|
|
329
|
-
summary: string;
|
|
330
330
|
}, {
|
|
331
|
-
kind: "
|
|
331
|
+
kind: "cross-module" | "same-module";
|
|
332
332
|
label: string;
|
|
333
|
+
summary: string;
|
|
333
334
|
href: string;
|
|
334
335
|
targetSpecPath: string;
|
|
335
336
|
targetSourceTarget: string;
|
|
336
337
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
337
338
|
evidenceCount: number;
|
|
338
|
-
summary: string;
|
|
339
339
|
}>;
|
|
340
340
|
export type CrossReferenceLink = z.infer<typeof CrossReferenceLinkSchema>;
|
|
341
341
|
/** 当前模块的交叉引用索引 */
|
|
@@ -351,23 +351,23 @@ export declare const ModuleCrossReferenceIndexSchema: z.ZodObject<{
|
|
|
351
351
|
evidenceCount: z.ZodNumber;
|
|
352
352
|
summary: z.ZodString;
|
|
353
353
|
}, "strip", z.ZodTypeAny, {
|
|
354
|
-
kind: "
|
|
354
|
+
kind: "cross-module" | "same-module";
|
|
355
355
|
label: string;
|
|
356
|
+
summary: string;
|
|
356
357
|
href: string;
|
|
357
358
|
targetSpecPath: string;
|
|
358
359
|
targetSourceTarget: string;
|
|
359
360
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
360
361
|
evidenceCount: number;
|
|
361
|
-
summary: string;
|
|
362
362
|
}, {
|
|
363
|
-
kind: "
|
|
363
|
+
kind: "cross-module" | "same-module";
|
|
364
364
|
label: string;
|
|
365
|
+
summary: string;
|
|
365
366
|
href: string;
|
|
366
367
|
targetSpecPath: string;
|
|
367
368
|
targetSourceTarget: string;
|
|
368
369
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
369
370
|
evidenceCount: number;
|
|
370
|
-
summary: string;
|
|
371
371
|
}>, "many">;
|
|
372
372
|
crossModule: z.ZodArray<z.ZodObject<{
|
|
373
373
|
label: z.ZodString;
|
|
@@ -379,67 +379,67 @@ export declare const ModuleCrossReferenceIndexSchema: z.ZodObject<{
|
|
|
379
379
|
evidenceCount: z.ZodNumber;
|
|
380
380
|
summary: z.ZodString;
|
|
381
381
|
}, "strip", z.ZodTypeAny, {
|
|
382
|
-
kind: "
|
|
382
|
+
kind: "cross-module" | "same-module";
|
|
383
383
|
label: string;
|
|
384
|
+
summary: string;
|
|
384
385
|
href: string;
|
|
385
386
|
targetSpecPath: string;
|
|
386
387
|
targetSourceTarget: string;
|
|
387
388
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
388
389
|
evidenceCount: number;
|
|
389
|
-
summary: string;
|
|
390
390
|
}, {
|
|
391
|
-
kind: "
|
|
391
|
+
kind: "cross-module" | "same-module";
|
|
392
392
|
label: string;
|
|
393
|
+
summary: string;
|
|
393
394
|
href: string;
|
|
394
395
|
targetSpecPath: string;
|
|
395
396
|
targetSourceTarget: string;
|
|
396
397
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
397
398
|
evidenceCount: number;
|
|
398
|
-
summary: string;
|
|
399
399
|
}>, "many">;
|
|
400
400
|
}, "strip", z.ZodTypeAny, {
|
|
401
401
|
generatedAt: string;
|
|
402
402
|
sameModule: {
|
|
403
|
-
kind: "
|
|
403
|
+
kind: "cross-module" | "same-module";
|
|
404
404
|
label: string;
|
|
405
|
+
summary: string;
|
|
405
406
|
href: string;
|
|
406
407
|
targetSpecPath: string;
|
|
407
408
|
targetSourceTarget: string;
|
|
408
409
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
409
410
|
evidenceCount: number;
|
|
410
|
-
summary: string;
|
|
411
411
|
}[];
|
|
412
412
|
crossModule: {
|
|
413
|
-
kind: "
|
|
413
|
+
kind: "cross-module" | "same-module";
|
|
414
414
|
label: string;
|
|
415
|
+
summary: string;
|
|
415
416
|
href: string;
|
|
416
417
|
targetSpecPath: string;
|
|
417
418
|
targetSourceTarget: string;
|
|
418
419
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
419
420
|
evidenceCount: number;
|
|
420
|
-
summary: string;
|
|
421
421
|
}[];
|
|
422
422
|
}, {
|
|
423
423
|
generatedAt: string;
|
|
424
424
|
sameModule: {
|
|
425
|
-
kind: "
|
|
425
|
+
kind: "cross-module" | "same-module";
|
|
426
426
|
label: string;
|
|
427
|
+
summary: string;
|
|
427
428
|
href: string;
|
|
428
429
|
targetSpecPath: string;
|
|
429
430
|
targetSourceTarget: string;
|
|
430
431
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
431
432
|
evidenceCount: number;
|
|
432
|
-
summary: string;
|
|
433
433
|
}[];
|
|
434
434
|
crossModule: {
|
|
435
|
-
kind: "
|
|
435
|
+
kind: "cross-module" | "same-module";
|
|
436
436
|
label: string;
|
|
437
|
+
summary: string;
|
|
437
438
|
href: string;
|
|
438
439
|
targetSpecPath: string;
|
|
439
440
|
targetSourceTarget: string;
|
|
440
441
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
441
442
|
evidenceCount: number;
|
|
442
|
-
summary: string;
|
|
443
443
|
}[];
|
|
444
444
|
}>;
|
|
445
445
|
export type ModuleCrossReferenceIndex = z.infer<typeof ModuleCrossReferenceIndexSchema>;
|
|
@@ -514,7 +514,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
514
514
|
contextTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
515
515
|
}, "strip", z.ZodTypeAny, {
|
|
516
516
|
type: "module-spec";
|
|
517
|
-
confidence: "
|
|
517
|
+
confidence: "high" | "medium" | "low";
|
|
518
518
|
version: string;
|
|
519
519
|
generatedBy: string;
|
|
520
520
|
sourceTarget: string;
|
|
@@ -543,7 +543,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
543
543
|
contextTruncated?: boolean | undefined;
|
|
544
544
|
}, {
|
|
545
545
|
type: "module-spec";
|
|
546
|
-
confidence: "
|
|
546
|
+
confidence: "high" | "medium" | "low";
|
|
547
547
|
version: string;
|
|
548
548
|
generatedBy: string;
|
|
549
549
|
sourceTarget: string;
|
|
@@ -640,23 +640,23 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
640
640
|
evidenceCount: z.ZodNumber;
|
|
641
641
|
summary: z.ZodString;
|
|
642
642
|
}, "strip", z.ZodTypeAny, {
|
|
643
|
-
kind: "
|
|
643
|
+
kind: "cross-module" | "same-module";
|
|
644
644
|
label: string;
|
|
645
|
+
summary: string;
|
|
645
646
|
href: string;
|
|
646
647
|
targetSpecPath: string;
|
|
647
648
|
targetSourceTarget: string;
|
|
648
649
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
649
650
|
evidenceCount: number;
|
|
650
|
-
summary: string;
|
|
651
651
|
}, {
|
|
652
|
-
kind: "
|
|
652
|
+
kind: "cross-module" | "same-module";
|
|
653
653
|
label: string;
|
|
654
|
+
summary: string;
|
|
654
655
|
href: string;
|
|
655
656
|
targetSpecPath: string;
|
|
656
657
|
targetSourceTarget: string;
|
|
657
658
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
658
659
|
evidenceCount: number;
|
|
659
|
-
summary: string;
|
|
660
660
|
}>, "many">;
|
|
661
661
|
crossModule: z.ZodArray<z.ZodObject<{
|
|
662
662
|
label: z.ZodString;
|
|
@@ -668,67 +668,67 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
668
668
|
evidenceCount: z.ZodNumber;
|
|
669
669
|
summary: z.ZodString;
|
|
670
670
|
}, "strip", z.ZodTypeAny, {
|
|
671
|
-
kind: "
|
|
671
|
+
kind: "cross-module" | "same-module";
|
|
672
672
|
label: string;
|
|
673
|
+
summary: string;
|
|
673
674
|
href: string;
|
|
674
675
|
targetSpecPath: string;
|
|
675
676
|
targetSourceTarget: string;
|
|
676
677
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
677
678
|
evidenceCount: number;
|
|
678
|
-
summary: string;
|
|
679
679
|
}, {
|
|
680
|
-
kind: "
|
|
680
|
+
kind: "cross-module" | "same-module";
|
|
681
681
|
label: string;
|
|
682
|
+
summary: string;
|
|
682
683
|
href: string;
|
|
683
684
|
targetSpecPath: string;
|
|
684
685
|
targetSourceTarget: string;
|
|
685
686
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
686
687
|
evidenceCount: number;
|
|
687
|
-
summary: string;
|
|
688
688
|
}>, "many">;
|
|
689
689
|
}, "strip", z.ZodTypeAny, {
|
|
690
690
|
generatedAt: string;
|
|
691
691
|
sameModule: {
|
|
692
|
-
kind: "
|
|
692
|
+
kind: "cross-module" | "same-module";
|
|
693
693
|
label: string;
|
|
694
|
+
summary: string;
|
|
694
695
|
href: string;
|
|
695
696
|
targetSpecPath: string;
|
|
696
697
|
targetSourceTarget: string;
|
|
697
698
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
698
699
|
evidenceCount: number;
|
|
699
|
-
summary: string;
|
|
700
700
|
}[];
|
|
701
701
|
crossModule: {
|
|
702
|
-
kind: "
|
|
702
|
+
kind: "cross-module" | "same-module";
|
|
703
703
|
label: string;
|
|
704
|
+
summary: string;
|
|
704
705
|
href: string;
|
|
705
706
|
targetSpecPath: string;
|
|
706
707
|
targetSourceTarget: string;
|
|
707
708
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
708
709
|
evidenceCount: number;
|
|
709
|
-
summary: string;
|
|
710
710
|
}[];
|
|
711
711
|
}, {
|
|
712
712
|
generatedAt: string;
|
|
713
713
|
sameModule: {
|
|
714
|
-
kind: "
|
|
714
|
+
kind: "cross-module" | "same-module";
|
|
715
715
|
label: string;
|
|
716
|
+
summary: string;
|
|
716
717
|
href: string;
|
|
717
718
|
targetSpecPath: string;
|
|
718
719
|
targetSourceTarget: string;
|
|
719
720
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
720
721
|
evidenceCount: number;
|
|
721
|
-
summary: string;
|
|
722
722
|
}[];
|
|
723
723
|
crossModule: {
|
|
724
|
-
kind: "
|
|
724
|
+
kind: "cross-module" | "same-module";
|
|
725
725
|
label: string;
|
|
726
|
+
summary: string;
|
|
726
727
|
href: string;
|
|
727
728
|
targetSpecPath: string;
|
|
728
729
|
targetSourceTarget: string;
|
|
729
730
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
730
731
|
evidenceCount: number;
|
|
731
|
-
summary: string;
|
|
732
732
|
}[];
|
|
733
733
|
}>>;
|
|
734
734
|
baselineSkeleton: z.ZodObject<{
|
|
@@ -771,7 +771,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
771
771
|
}>, "many">>;
|
|
772
772
|
}, "strip", z.ZodTypeAny, {
|
|
773
773
|
name: string;
|
|
774
|
-
kind: "function" | "
|
|
774
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
775
775
|
signature: string;
|
|
776
776
|
isDefault: boolean;
|
|
777
777
|
startLine: number;
|
|
@@ -789,7 +789,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
789
789
|
}[] | undefined;
|
|
790
790
|
}, {
|
|
791
791
|
name: string;
|
|
792
|
-
kind: "function" | "
|
|
792
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
793
793
|
signature: string;
|
|
794
794
|
isDefault: boolean;
|
|
795
795
|
startLine: number;
|
|
@@ -813,6 +813,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
813
813
|
namedImports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
814
814
|
defaultImport: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
815
815
|
isTypeOnly: z.ZodBoolean;
|
|
816
|
+
importType: z.ZodOptional<z.ZodEnum<["static", "dynamic", "type-only", "commonjs-require"]>>;
|
|
816
817
|
}, "strip", z.ZodTypeAny, {
|
|
817
818
|
moduleSpecifier: string;
|
|
818
819
|
isRelative: boolean;
|
|
@@ -820,6 +821,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
820
821
|
resolvedPath?: string | null | undefined;
|
|
821
822
|
namedImports?: string[] | undefined;
|
|
822
823
|
defaultImport?: string | null | undefined;
|
|
824
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
823
825
|
}, {
|
|
824
826
|
moduleSpecifier: string;
|
|
825
827
|
isRelative: boolean;
|
|
@@ -827,6 +829,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
827
829
|
resolvedPath?: string | null | undefined;
|
|
828
830
|
namedImports?: string[] | undefined;
|
|
829
831
|
defaultImport?: string | null | undefined;
|
|
832
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
830
833
|
}>, "many">;
|
|
831
834
|
parseErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
832
835
|
line: z.ZodNumber;
|
|
@@ -848,13 +851,35 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
848
851
|
analyzedAt: z.ZodString;
|
|
849
852
|
parserUsed: z.ZodEnum<["ts-morph", "tree-sitter", "baseline", "reconstructed"]>;
|
|
850
853
|
moduleDoc: z.ZodOptional<z.ZodString>;
|
|
854
|
+
callSites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
855
|
+
calleeName: z.ZodString;
|
|
856
|
+
calleeKind: z.ZodEnum<["free", "member", "cross-module", "dunder", "super", "decorator", "unresolved"]>;
|
|
857
|
+
line: z.ZodNumber;
|
|
858
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
859
|
+
callerContext: z.ZodOptional<z.ZodString>;
|
|
860
|
+
calleeQualifier: z.ZodOptional<z.ZodString>;
|
|
861
|
+
}, "strip", z.ZodTypeAny, {
|
|
862
|
+
calleeName: string;
|
|
863
|
+
calleeKind: "free" | "member" | "cross-module" | "dunder" | "super" | "decorator" | "unresolved";
|
|
864
|
+
line: number;
|
|
865
|
+
column?: number | undefined;
|
|
866
|
+
callerContext?: string | undefined;
|
|
867
|
+
calleeQualifier?: string | undefined;
|
|
868
|
+
}, {
|
|
869
|
+
calleeName: string;
|
|
870
|
+
calleeKind: "free" | "member" | "cross-module" | "dunder" | "super" | "decorator" | "unresolved";
|
|
871
|
+
line: number;
|
|
872
|
+
column?: number | undefined;
|
|
873
|
+
callerContext?: string | undefined;
|
|
874
|
+
calleeQualifier?: string | undefined;
|
|
875
|
+
}>, "many">>;
|
|
851
876
|
}, "strip", z.ZodTypeAny, {
|
|
852
877
|
filePath: string;
|
|
853
878
|
language: "typescript" | "javascript" | "python" | "go" | "java" | "rust" | "kotlin" | "cpp" | "ruby" | "swift";
|
|
854
879
|
loc: number;
|
|
855
880
|
exports: {
|
|
856
881
|
name: string;
|
|
857
|
-
kind: "function" | "
|
|
882
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
858
883
|
signature: string;
|
|
859
884
|
isDefault: boolean;
|
|
860
885
|
startLine: number;
|
|
@@ -878,6 +903,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
878
903
|
resolvedPath?: string | null | undefined;
|
|
879
904
|
namedImports?: string[] | undefined;
|
|
880
905
|
defaultImport?: string | null | undefined;
|
|
906
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
881
907
|
}[];
|
|
882
908
|
hash: string;
|
|
883
909
|
analyzedAt: string;
|
|
@@ -889,13 +915,21 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
889
915
|
affectedSymbols?: string[] | undefined;
|
|
890
916
|
}[] | undefined;
|
|
891
917
|
moduleDoc?: string | undefined;
|
|
918
|
+
callSites?: {
|
|
919
|
+
calleeName: string;
|
|
920
|
+
calleeKind: "free" | "member" | "cross-module" | "dunder" | "super" | "decorator" | "unresolved";
|
|
921
|
+
line: number;
|
|
922
|
+
column?: number | undefined;
|
|
923
|
+
callerContext?: string | undefined;
|
|
924
|
+
calleeQualifier?: string | undefined;
|
|
925
|
+
}[] | undefined;
|
|
892
926
|
}, {
|
|
893
927
|
filePath: string;
|
|
894
928
|
language: "typescript" | "javascript" | "python" | "go" | "java" | "rust" | "kotlin" | "cpp" | "ruby" | "swift";
|
|
895
929
|
loc: number;
|
|
896
930
|
exports: {
|
|
897
931
|
name: string;
|
|
898
|
-
kind: "function" | "
|
|
932
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
899
933
|
signature: string;
|
|
900
934
|
isDefault: boolean;
|
|
901
935
|
startLine: number;
|
|
@@ -919,6 +953,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
919
953
|
resolvedPath?: string | null | undefined;
|
|
920
954
|
namedImports?: string[] | undefined;
|
|
921
955
|
defaultImport?: string | null | undefined;
|
|
956
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
922
957
|
}[];
|
|
923
958
|
hash: string;
|
|
924
959
|
analyzedAt: string;
|
|
@@ -930,12 +965,31 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
930
965
|
affectedSymbols?: string[] | undefined;
|
|
931
966
|
}[] | undefined;
|
|
932
967
|
moduleDoc?: string | undefined;
|
|
968
|
+
callSites?: {
|
|
969
|
+
calleeName: string;
|
|
970
|
+
calleeKind: "free" | "member" | "cross-module" | "dunder" | "super" | "decorator" | "unresolved";
|
|
971
|
+
line: number;
|
|
972
|
+
column?: number | undefined;
|
|
973
|
+
callerContext?: string | undefined;
|
|
974
|
+
calleeQualifier?: string | undefined;
|
|
975
|
+
}[] | undefined;
|
|
933
976
|
}>;
|
|
934
977
|
outputPath: z.ZodString;
|
|
935
978
|
}, "strip", z.ZodTypeAny, {
|
|
979
|
+
sections: {
|
|
980
|
+
intent: string;
|
|
981
|
+
interfaceDefinition: string;
|
|
982
|
+
businessLogic: string;
|
|
983
|
+
dataStructures: string;
|
|
984
|
+
constraints: string;
|
|
985
|
+
edgeCases: string;
|
|
986
|
+
technicalDebt: string;
|
|
987
|
+
testCoverage: string;
|
|
988
|
+
dependencies: string;
|
|
989
|
+
};
|
|
936
990
|
frontmatter: {
|
|
937
991
|
type: "module-spec";
|
|
938
|
-
confidence: "
|
|
992
|
+
confidence: "high" | "medium" | "low";
|
|
939
993
|
version: string;
|
|
940
994
|
generatedBy: string;
|
|
941
995
|
sourceTarget: string;
|
|
@@ -963,17 +1017,6 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
963
1017
|
} | undefined;
|
|
964
1018
|
contextTruncated?: boolean | undefined;
|
|
965
1019
|
};
|
|
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
1020
|
fileInventory: {
|
|
978
1021
|
path: string;
|
|
979
1022
|
loc: number;
|
|
@@ -985,7 +1028,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
985
1028
|
loc: number;
|
|
986
1029
|
exports: {
|
|
987
1030
|
name: string;
|
|
988
|
-
kind: "function" | "
|
|
1031
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
989
1032
|
signature: string;
|
|
990
1033
|
isDefault: boolean;
|
|
991
1034
|
startLine: number;
|
|
@@ -1009,6 +1052,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
1009
1052
|
resolvedPath?: string | null | undefined;
|
|
1010
1053
|
namedImports?: string[] | undefined;
|
|
1011
1054
|
defaultImport?: string | null | undefined;
|
|
1055
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
1012
1056
|
}[];
|
|
1013
1057
|
hash: string;
|
|
1014
1058
|
analyzedAt: string;
|
|
@@ -1020,6 +1064,14 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
1020
1064
|
affectedSymbols?: string[] | undefined;
|
|
1021
1065
|
}[] | undefined;
|
|
1022
1066
|
moduleDoc?: string | undefined;
|
|
1067
|
+
callSites?: {
|
|
1068
|
+
calleeName: string;
|
|
1069
|
+
calleeKind: "free" | "member" | "cross-module" | "dunder" | "super" | "decorator" | "unresolved";
|
|
1070
|
+
line: number;
|
|
1071
|
+
column?: number | undefined;
|
|
1072
|
+
callerContext?: string | undefined;
|
|
1073
|
+
calleeQualifier?: string | undefined;
|
|
1074
|
+
}[] | undefined;
|
|
1023
1075
|
};
|
|
1024
1076
|
outputPath: string;
|
|
1025
1077
|
mermaidDiagrams?: {
|
|
@@ -1030,30 +1082,41 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
1030
1082
|
crossReferenceIndex?: {
|
|
1031
1083
|
generatedAt: string;
|
|
1032
1084
|
sameModule: {
|
|
1033
|
-
kind: "
|
|
1085
|
+
kind: "cross-module" | "same-module";
|
|
1034
1086
|
label: string;
|
|
1087
|
+
summary: string;
|
|
1035
1088
|
href: string;
|
|
1036
1089
|
targetSpecPath: string;
|
|
1037
1090
|
targetSourceTarget: string;
|
|
1038
1091
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
1039
1092
|
evidenceCount: number;
|
|
1040
|
-
summary: string;
|
|
1041
1093
|
}[];
|
|
1042
1094
|
crossModule: {
|
|
1043
|
-
kind: "
|
|
1095
|
+
kind: "cross-module" | "same-module";
|
|
1044
1096
|
label: string;
|
|
1097
|
+
summary: string;
|
|
1045
1098
|
href: string;
|
|
1046
1099
|
targetSpecPath: string;
|
|
1047
1100
|
targetSourceTarget: string;
|
|
1048
1101
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
1049
1102
|
evidenceCount: number;
|
|
1050
|
-
summary: string;
|
|
1051
1103
|
}[];
|
|
1052
1104
|
} | undefined;
|
|
1053
1105
|
}, {
|
|
1106
|
+
sections: {
|
|
1107
|
+
intent: string;
|
|
1108
|
+
interfaceDefinition: string;
|
|
1109
|
+
businessLogic: string;
|
|
1110
|
+
dataStructures: string;
|
|
1111
|
+
constraints: string;
|
|
1112
|
+
edgeCases: string;
|
|
1113
|
+
technicalDebt: string;
|
|
1114
|
+
testCoverage: string;
|
|
1115
|
+
dependencies: string;
|
|
1116
|
+
};
|
|
1054
1117
|
frontmatter: {
|
|
1055
1118
|
type: "module-spec";
|
|
1056
|
-
confidence: "
|
|
1119
|
+
confidence: "high" | "medium" | "low";
|
|
1057
1120
|
version: string;
|
|
1058
1121
|
generatedBy: string;
|
|
1059
1122
|
sourceTarget: string;
|
|
@@ -1081,17 +1144,6 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
1081
1144
|
} | undefined;
|
|
1082
1145
|
contextTruncated?: boolean | undefined;
|
|
1083
1146
|
};
|
|
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
1147
|
fileInventory: {
|
|
1096
1148
|
path: string;
|
|
1097
1149
|
loc: number;
|
|
@@ -1103,7 +1155,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
1103
1155
|
loc: number;
|
|
1104
1156
|
exports: {
|
|
1105
1157
|
name: string;
|
|
1106
|
-
kind: "function" | "
|
|
1158
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
1107
1159
|
signature: string;
|
|
1108
1160
|
isDefault: boolean;
|
|
1109
1161
|
startLine: number;
|
|
@@ -1127,6 +1179,7 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
1127
1179
|
resolvedPath?: string | null | undefined;
|
|
1128
1180
|
namedImports?: string[] | undefined;
|
|
1129
1181
|
defaultImport?: string | null | undefined;
|
|
1182
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
1130
1183
|
}[];
|
|
1131
1184
|
hash: string;
|
|
1132
1185
|
analyzedAt: string;
|
|
@@ -1138,6 +1191,14 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
1138
1191
|
affectedSymbols?: string[] | undefined;
|
|
1139
1192
|
}[] | undefined;
|
|
1140
1193
|
moduleDoc?: string | undefined;
|
|
1194
|
+
callSites?: {
|
|
1195
|
+
calleeName: string;
|
|
1196
|
+
calleeKind: "free" | "member" | "cross-module" | "dunder" | "super" | "decorator" | "unresolved";
|
|
1197
|
+
line: number;
|
|
1198
|
+
column?: number | undefined;
|
|
1199
|
+
callerContext?: string | undefined;
|
|
1200
|
+
calleeQualifier?: string | undefined;
|
|
1201
|
+
}[] | undefined;
|
|
1141
1202
|
};
|
|
1142
1203
|
outputPath: string;
|
|
1143
1204
|
mermaidDiagrams?: {
|
|
@@ -1148,24 +1209,24 @@ export declare const ModuleSpecSchema: z.ZodObject<{
|
|
|
1148
1209
|
crossReferenceIndex?: {
|
|
1149
1210
|
generatedAt: string;
|
|
1150
1211
|
sameModule: {
|
|
1151
|
-
kind: "
|
|
1212
|
+
kind: "cross-module" | "same-module";
|
|
1152
1213
|
label: string;
|
|
1214
|
+
summary: string;
|
|
1153
1215
|
href: string;
|
|
1154
1216
|
targetSpecPath: string;
|
|
1155
1217
|
targetSourceTarget: string;
|
|
1156
1218
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
1157
1219
|
evidenceCount: number;
|
|
1158
|
-
summary: string;
|
|
1159
1220
|
}[];
|
|
1160
1221
|
crossModule: {
|
|
1161
|
-
kind: "
|
|
1222
|
+
kind: "cross-module" | "same-module";
|
|
1162
1223
|
label: string;
|
|
1224
|
+
summary: string;
|
|
1163
1225
|
href: string;
|
|
1164
1226
|
targetSpecPath: string;
|
|
1165
1227
|
targetSourceTarget: string;
|
|
1166
1228
|
direction: "internal" | "outbound" | "inbound" | "bidirectional";
|
|
1167
1229
|
evidenceCount: number;
|
|
1168
|
-
summary: string;
|
|
1169
1230
|
}[];
|
|
1170
1231
|
} | undefined;
|
|
1171
1232
|
}>;
|
|
@@ -1413,17 +1474,17 @@ export declare const DriftReportSchema: z.ZodObject<{
|
|
|
1413
1474
|
removals: z.ZodNumber;
|
|
1414
1475
|
modifications: z.ZodNumber;
|
|
1415
1476
|
}, "strip", z.ZodTypeAny, {
|
|
1416
|
-
low: number;
|
|
1417
|
-
medium: number;
|
|
1418
1477
|
high: number;
|
|
1478
|
+
medium: number;
|
|
1479
|
+
low: number;
|
|
1419
1480
|
totalChanges: number;
|
|
1420
1481
|
additions: number;
|
|
1421
1482
|
removals: number;
|
|
1422
1483
|
modifications: number;
|
|
1423
1484
|
}, {
|
|
1424
|
-
low: number;
|
|
1425
|
-
medium: number;
|
|
1426
1485
|
high: number;
|
|
1486
|
+
medium: number;
|
|
1487
|
+
low: number;
|
|
1427
1488
|
totalChanges: number;
|
|
1428
1489
|
additions: number;
|
|
1429
1490
|
removals: number;
|
|
@@ -1494,16 +1555,16 @@ export declare const DriftReportSchema: z.ZodObject<{
|
|
|
1494
1555
|
recommendation: z.ZodString;
|
|
1495
1556
|
outputPath: z.ZodString;
|
|
1496
1557
|
}, "strip", z.ZodTypeAny, {
|
|
1558
|
+
generatedAt: string;
|
|
1497
1559
|
summary: {
|
|
1498
|
-
low: number;
|
|
1499
|
-
medium: number;
|
|
1500
1560
|
high: number;
|
|
1561
|
+
medium: number;
|
|
1562
|
+
low: number;
|
|
1501
1563
|
totalChanges: number;
|
|
1502
1564
|
additions: number;
|
|
1503
1565
|
removals: number;
|
|
1504
1566
|
modifications: number;
|
|
1505
1567
|
};
|
|
1506
|
-
generatedAt: string;
|
|
1507
1568
|
outputPath: string;
|
|
1508
1569
|
specPath: string;
|
|
1509
1570
|
sourcePath: string;
|
|
@@ -1524,16 +1585,16 @@ export declare const DriftReportSchema: z.ZodObject<{
|
|
|
1524
1585
|
filteredNoise: number;
|
|
1525
1586
|
recommendation: string;
|
|
1526
1587
|
}, {
|
|
1588
|
+
generatedAt: string;
|
|
1527
1589
|
summary: {
|
|
1528
|
-
low: number;
|
|
1529
|
-
medium: number;
|
|
1530
1590
|
high: number;
|
|
1591
|
+
medium: number;
|
|
1592
|
+
low: number;
|
|
1531
1593
|
totalChanges: number;
|
|
1532
1594
|
additions: number;
|
|
1533
1595
|
removals: number;
|
|
1534
1596
|
modifications: number;
|
|
1535
1597
|
};
|
|
1536
|
-
generatedAt: string;
|
|
1537
1598
|
outputPath: string;
|
|
1538
1599
|
specPath: string;
|
|
1539
1600
|
sourcePath: string;
|
|
@@ -1837,12 +1898,12 @@ export declare const SecretDetectionSchema: z.ZodObject<{
|
|
|
1837
1898
|
}, "strip", z.ZodTypeAny, {
|
|
1838
1899
|
type: string;
|
|
1839
1900
|
line: number;
|
|
1840
|
-
confidence: "
|
|
1901
|
+
confidence: "high" | "medium" | "low";
|
|
1841
1902
|
placeholder: string;
|
|
1842
1903
|
}, {
|
|
1843
1904
|
type: string;
|
|
1844
1905
|
line: number;
|
|
1845
|
-
confidence: "
|
|
1906
|
+
confidence: "high" | "medium" | "low";
|
|
1846
1907
|
placeholder: string;
|
|
1847
1908
|
}>;
|
|
1848
1909
|
export type SecretDetection = z.infer<typeof SecretDetectionSchema>;
|
|
@@ -1858,12 +1919,12 @@ export declare const RedactionResultSchema: z.ZodObject<{
|
|
|
1858
1919
|
}, "strip", z.ZodTypeAny, {
|
|
1859
1920
|
type: string;
|
|
1860
1921
|
line: number;
|
|
1861
|
-
confidence: "
|
|
1922
|
+
confidence: "high" | "medium" | "low";
|
|
1862
1923
|
placeholder: string;
|
|
1863
1924
|
}, {
|
|
1864
1925
|
type: string;
|
|
1865
1926
|
line: number;
|
|
1866
|
-
confidence: "
|
|
1927
|
+
confidence: "high" | "medium" | "low";
|
|
1867
1928
|
placeholder: string;
|
|
1868
1929
|
}>, "many">;
|
|
1869
1930
|
falsePositivesFiltered: z.ZodNumber;
|
|
@@ -1873,7 +1934,7 @@ export declare const RedactionResultSchema: z.ZodObject<{
|
|
|
1873
1934
|
detections: {
|
|
1874
1935
|
type: string;
|
|
1875
1936
|
line: number;
|
|
1876
|
-
confidence: "
|
|
1937
|
+
confidence: "high" | "medium" | "low";
|
|
1877
1938
|
placeholder: string;
|
|
1878
1939
|
}[];
|
|
1879
1940
|
falsePositivesFiltered: number;
|
|
@@ -1883,7 +1944,7 @@ export declare const RedactionResultSchema: z.ZodObject<{
|
|
|
1883
1944
|
detections: {
|
|
1884
1945
|
type: string;
|
|
1885
1946
|
line: number;
|
|
1886
|
-
confidence: "
|
|
1947
|
+
confidence: "high" | "medium" | "low";
|
|
1887
1948
|
placeholder: string;
|
|
1888
1949
|
}[];
|
|
1889
1950
|
falsePositivesFiltered: number;
|