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
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CallSite — 单个函数调用位置的原始记录(CL-01 schema)。
|
|
3
|
+
*
|
|
4
|
+
* 由各语言 mapper 在 AST 抽取阶段产出(如 PythonMapper.extractCallSites),
|
|
5
|
+
* 由 call-resolver 在 buildUnifiedGraph 阶段消费,产出 calls 边。
|
|
6
|
+
*
|
|
7
|
+
* 设计层级(DAG 方向):models → knowledge-graph → panoramic。
|
|
8
|
+
* 本文件位于 models 层,被 CodeSkeleton 与 UnifiedGraph 双向消费但不反向依赖任一上层。
|
|
9
|
+
*/
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
/**
|
|
12
|
+
* CalleeKind — 函数调用 callee 的分类。
|
|
13
|
+
*
|
|
14
|
+
* - `free`:模块顶层 callable(同模块函数 / 全局函数)
|
|
15
|
+
* - `member`:self.method() / Class.method() 形式
|
|
16
|
+
* - `cross-module`:通过 import 引入的外部 callee
|
|
17
|
+
* - `dunder`:__add__ / __radd__ 等运算符重载(binary_operator / unary_operator AST 派生)
|
|
18
|
+
* - `super`:super().method() 调用链
|
|
19
|
+
* - `decorator`:带参 decorator(@app.route("/x") 形式;bare decorator 不记录,CL-04)
|
|
20
|
+
* - `unresolved`:解析失败 / 无法定位 → call-resolver 进入 Stage 4 兜底
|
|
21
|
+
*/
|
|
22
|
+
export const CalleeKindSchema = z.enum([
|
|
23
|
+
'free',
|
|
24
|
+
'member',
|
|
25
|
+
'cross-module',
|
|
26
|
+
'dunder',
|
|
27
|
+
'super',
|
|
28
|
+
'decorator',
|
|
29
|
+
'unresolved',
|
|
30
|
+
]);
|
|
31
|
+
/**
|
|
32
|
+
* CallSite — 单个函数调用位置的原始记录。
|
|
33
|
+
*
|
|
34
|
+
* confidence **不在此 schema 上**:tier 由 call-resolver 在 4 阶段 resolution 后计算,
|
|
35
|
+
* CallSite 仅承载位置 + 分类 + caller 上下文等用于 resolver 决策的最小信息。
|
|
36
|
+
*/
|
|
37
|
+
export const CallSiteSchema = z.object({
|
|
38
|
+
/** callee 名称(如 "foo" / "method" / "__add__") */
|
|
39
|
+
calleeName: z.string().min(1),
|
|
40
|
+
/** callee 分类(CL-01:必填,决定 resolver 进入哪个 Stage) */
|
|
41
|
+
calleeKind: CalleeKindSchema,
|
|
42
|
+
/** 调用所在源码行号(1-based,CL-01:必填,便于 cross-module debug) */
|
|
43
|
+
line: z.number().int().positive(),
|
|
44
|
+
/** 调用所在列号(CL-01:可选,节省 schema 字节) */
|
|
45
|
+
column: z.number().int().nonnegative().optional(),
|
|
46
|
+
/** caller 所在 function/class 上下文(如 "Value.__add__",用于 member resolution) */
|
|
47
|
+
callerContext: z.string().optional(),
|
|
48
|
+
/**
|
|
49
|
+
* callee 限定符 — Codex P1 C-2 修订。
|
|
50
|
+
*
|
|
51
|
+
* 用于 attribute call(如 `Engine.helper()` / `numpy.array()` / `obj.method()`)的 receiver 名。
|
|
52
|
+
* resolver 会优先用此 qualifier 在 importIndex / classMemberIndex 中定位 callee 真实来源:
|
|
53
|
+
* - calleeKind=cross-module → calleeQualifier 是 module alias(如 "numpy")
|
|
54
|
+
* - calleeKind=member(Class.method 形式)→ calleeQualifier 是类名(如 "Engine")
|
|
55
|
+
* - calleeKind=member(self/cls.method)→ calleeQualifier=undefined(用 callerContext)
|
|
56
|
+
* - calleeKind=free / dunder / decorator / super / unresolved → 通常 undefined
|
|
57
|
+
*/
|
|
58
|
+
calleeQualifier: z.string().optional(),
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=call-site.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call-site.js","sourceRoot":"","sources":["../../src/models/call-site.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IACrC,MAAM;IACN,QAAQ;IACR,cAAc;IACd,QAAQ;IACR,OAAO;IACP,WAAW;IACX,YAAY;CACb,CAAC,CAAC;AAGH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,gDAAgD;IAChD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,iDAAiD;IACjD,UAAU,EAAE,gBAAgB;IAC5B,uDAAuD;IACvD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACjC,oCAAoC;IACpC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACjD,2EAA2E;IAC3E,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC;;;;;;;;;OASG;IACH,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* 流水线第一阶段输出:AST 提取的文件结构中间表示
|
|
4
4
|
*/
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
+
export { CallSiteSchema, type CallSite } from './call-site.js';
|
|
6
7
|
export declare const ExportKindSchema: z.ZodEnum<["function", "class", "interface", "type", "enum", "const", "variable", "struct", "trait", "protocol", "data_class", "module"]>;
|
|
7
8
|
export type ExportKind = z.infer<typeof ExportKindSchema>;
|
|
8
9
|
export declare const MemberKindSchema: z.ZodEnum<["method", "property", "getter", "setter", "constructor", "classmethod", "staticmethod", "associated_function"]>;
|
|
@@ -77,7 +78,7 @@ export declare const ExportSymbolSchema: z.ZodObject<{
|
|
|
77
78
|
}>, "many">>;
|
|
78
79
|
}, "strip", z.ZodTypeAny, {
|
|
79
80
|
name: string;
|
|
80
|
-
kind: "function" | "
|
|
81
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
81
82
|
signature: string;
|
|
82
83
|
isDefault: boolean;
|
|
83
84
|
startLine: number;
|
|
@@ -95,7 +96,7 @@ export declare const ExportSymbolSchema: z.ZodObject<{
|
|
|
95
96
|
}[] | undefined;
|
|
96
97
|
}, {
|
|
97
98
|
name: string;
|
|
98
|
-
kind: "function" | "
|
|
99
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
99
100
|
signature: string;
|
|
100
101
|
isDefault: boolean;
|
|
101
102
|
startLine: number;
|
|
@@ -113,6 +114,19 @@ export declare const ExportSymbolSchema: z.ZodObject<{
|
|
|
113
114
|
}[] | undefined;
|
|
114
115
|
}>;
|
|
115
116
|
export type ExportSymbol = z.infer<typeof ExportSymbolSchema>;
|
|
117
|
+
/**
|
|
118
|
+
* Import 语义类型枚举(Feature 156 W1.0 / FR-28 / AC-11)。
|
|
119
|
+
*
|
|
120
|
+
* - 'static':标准 ES Module 静态 import
|
|
121
|
+
* - 'dynamic':动态 import() 调用
|
|
122
|
+
* - 'type-only':仅类型导入(`import type { ... }`)
|
|
123
|
+
* - 'commonjs-require':CommonJS require() 调用
|
|
124
|
+
*
|
|
125
|
+
* 注:ModuleEdge.importType 不含 'commonjs-require',
|
|
126
|
+
* module-derivation 派生时会归并到 'static'(CommonJS 视为同步加载)。
|
|
127
|
+
*/
|
|
128
|
+
export declare const ImportSemanticTypeSchema: z.ZodEnum<["static", "dynamic", "type-only", "commonjs-require"]>;
|
|
129
|
+
export type ImportSemanticType = z.infer<typeof ImportSemanticTypeSchema>;
|
|
116
130
|
/** 导入引用 */
|
|
117
131
|
export declare const ImportReferenceSchema: z.ZodObject<{
|
|
118
132
|
moduleSpecifier: z.ZodString;
|
|
@@ -121,6 +135,13 @@ export declare const ImportReferenceSchema: z.ZodObject<{
|
|
|
121
135
|
namedImports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
122
136
|
defaultImport: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
137
|
isTypeOnly: z.ZodBoolean;
|
|
138
|
+
/**
|
|
139
|
+
* 语法类型(Feature 156 W1.0 新增;可选,向后兼容)。
|
|
140
|
+
* 由 import-resolver.detectImportType 派生;写入 CodeSkeleton.imports[].importType;
|
|
141
|
+
* deriveImportEdges 把此值写入 UnifiedGraphEdge.evidence;
|
|
142
|
+
* module-derivation 在重建 ModuleEdge.importType 时读取此字段。
|
|
143
|
+
*/
|
|
144
|
+
importType: z.ZodOptional<z.ZodEnum<["static", "dynamic", "type-only", "commonjs-require"]>>;
|
|
124
145
|
}, "strip", z.ZodTypeAny, {
|
|
125
146
|
moduleSpecifier: string;
|
|
126
147
|
isRelative: boolean;
|
|
@@ -128,6 +149,7 @@ export declare const ImportReferenceSchema: z.ZodObject<{
|
|
|
128
149
|
resolvedPath?: string | null | undefined;
|
|
129
150
|
namedImports?: string[] | undefined;
|
|
130
151
|
defaultImport?: string | null | undefined;
|
|
152
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
131
153
|
}, {
|
|
132
154
|
moduleSpecifier: string;
|
|
133
155
|
isRelative: boolean;
|
|
@@ -135,6 +157,7 @@ export declare const ImportReferenceSchema: z.ZodObject<{
|
|
|
135
157
|
resolvedPath?: string | null | undefined;
|
|
136
158
|
namedImports?: string[] | undefined;
|
|
137
159
|
defaultImport?: string | null | undefined;
|
|
160
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
138
161
|
}>;
|
|
139
162
|
export type ImportReference = z.infer<typeof ImportReferenceSchema>;
|
|
140
163
|
/** 解析错误 */
|
|
@@ -196,7 +219,7 @@ export declare const CodeSkeletonSchema: z.ZodObject<{
|
|
|
196
219
|
}>, "many">>;
|
|
197
220
|
}, "strip", z.ZodTypeAny, {
|
|
198
221
|
name: string;
|
|
199
|
-
kind: "function" | "
|
|
222
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
200
223
|
signature: string;
|
|
201
224
|
isDefault: boolean;
|
|
202
225
|
startLine: number;
|
|
@@ -214,7 +237,7 @@ export declare const CodeSkeletonSchema: z.ZodObject<{
|
|
|
214
237
|
}[] | undefined;
|
|
215
238
|
}, {
|
|
216
239
|
name: string;
|
|
217
|
-
kind: "function" | "
|
|
240
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
218
241
|
signature: string;
|
|
219
242
|
isDefault: boolean;
|
|
220
243
|
startLine: number;
|
|
@@ -238,6 +261,13 @@ export declare const CodeSkeletonSchema: z.ZodObject<{
|
|
|
238
261
|
namedImports: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
239
262
|
defaultImport: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
263
|
isTypeOnly: z.ZodBoolean;
|
|
264
|
+
/**
|
|
265
|
+
* 语法类型(Feature 156 W1.0 新增;可选,向后兼容)。
|
|
266
|
+
* 由 import-resolver.detectImportType 派生;写入 CodeSkeleton.imports[].importType;
|
|
267
|
+
* deriveImportEdges 把此值写入 UnifiedGraphEdge.evidence;
|
|
268
|
+
* module-derivation 在重建 ModuleEdge.importType 时读取此字段。
|
|
269
|
+
*/
|
|
270
|
+
importType: z.ZodOptional<z.ZodEnum<["static", "dynamic", "type-only", "commonjs-require"]>>;
|
|
241
271
|
}, "strip", z.ZodTypeAny, {
|
|
242
272
|
moduleSpecifier: string;
|
|
243
273
|
isRelative: boolean;
|
|
@@ -245,6 +275,7 @@ export declare const CodeSkeletonSchema: z.ZodObject<{
|
|
|
245
275
|
resolvedPath?: string | null | undefined;
|
|
246
276
|
namedImports?: string[] | undefined;
|
|
247
277
|
defaultImport?: string | null | undefined;
|
|
278
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
248
279
|
}, {
|
|
249
280
|
moduleSpecifier: string;
|
|
250
281
|
isRelative: boolean;
|
|
@@ -252,6 +283,7 @@ export declare const CodeSkeletonSchema: z.ZodObject<{
|
|
|
252
283
|
resolvedPath?: string | null | undefined;
|
|
253
284
|
namedImports?: string[] | undefined;
|
|
254
285
|
defaultImport?: string | null | undefined;
|
|
286
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
255
287
|
}>, "many">;
|
|
256
288
|
parseErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
257
289
|
line: z.ZodNumber;
|
|
@@ -273,13 +305,35 @@ export declare const CodeSkeletonSchema: z.ZodObject<{
|
|
|
273
305
|
analyzedAt: z.ZodString;
|
|
274
306
|
parserUsed: z.ZodEnum<["ts-morph", "tree-sitter", "baseline", "reconstructed"]>;
|
|
275
307
|
moduleDoc: z.ZodOptional<z.ZodString>;
|
|
308
|
+
callSites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
309
|
+
calleeName: z.ZodString;
|
|
310
|
+
calleeKind: z.ZodEnum<["free", "member", "cross-module", "dunder", "super", "decorator", "unresolved"]>;
|
|
311
|
+
line: z.ZodNumber;
|
|
312
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
313
|
+
callerContext: z.ZodOptional<z.ZodString>;
|
|
314
|
+
calleeQualifier: z.ZodOptional<z.ZodString>;
|
|
315
|
+
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
calleeName: string;
|
|
317
|
+
calleeKind: "free" | "member" | "cross-module" | "dunder" | "super" | "decorator" | "unresolved";
|
|
318
|
+
line: number;
|
|
319
|
+
column?: number | undefined;
|
|
320
|
+
callerContext?: string | undefined;
|
|
321
|
+
calleeQualifier?: string | undefined;
|
|
322
|
+
}, {
|
|
323
|
+
calleeName: string;
|
|
324
|
+
calleeKind: "free" | "member" | "cross-module" | "dunder" | "super" | "decorator" | "unresolved";
|
|
325
|
+
line: number;
|
|
326
|
+
column?: number | undefined;
|
|
327
|
+
callerContext?: string | undefined;
|
|
328
|
+
calleeQualifier?: string | undefined;
|
|
329
|
+
}>, "many">>;
|
|
276
330
|
}, "strip", z.ZodTypeAny, {
|
|
277
331
|
filePath: string;
|
|
278
332
|
language: "typescript" | "javascript" | "python" | "go" | "java" | "rust" | "kotlin" | "cpp" | "ruby" | "swift";
|
|
279
333
|
loc: number;
|
|
280
334
|
exports: {
|
|
281
335
|
name: string;
|
|
282
|
-
kind: "function" | "
|
|
336
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
283
337
|
signature: string;
|
|
284
338
|
isDefault: boolean;
|
|
285
339
|
startLine: number;
|
|
@@ -303,6 +357,7 @@ export declare const CodeSkeletonSchema: z.ZodObject<{
|
|
|
303
357
|
resolvedPath?: string | null | undefined;
|
|
304
358
|
namedImports?: string[] | undefined;
|
|
305
359
|
defaultImport?: string | null | undefined;
|
|
360
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
306
361
|
}[];
|
|
307
362
|
hash: string;
|
|
308
363
|
analyzedAt: string;
|
|
@@ -314,13 +369,21 @@ export declare const CodeSkeletonSchema: z.ZodObject<{
|
|
|
314
369
|
affectedSymbols?: string[] | undefined;
|
|
315
370
|
}[] | undefined;
|
|
316
371
|
moduleDoc?: string | undefined;
|
|
372
|
+
callSites?: {
|
|
373
|
+
calleeName: string;
|
|
374
|
+
calleeKind: "free" | "member" | "cross-module" | "dunder" | "super" | "decorator" | "unresolved";
|
|
375
|
+
line: number;
|
|
376
|
+
column?: number | undefined;
|
|
377
|
+
callerContext?: string | undefined;
|
|
378
|
+
calleeQualifier?: string | undefined;
|
|
379
|
+
}[] | undefined;
|
|
317
380
|
}, {
|
|
318
381
|
filePath: string;
|
|
319
382
|
language: "typescript" | "javascript" | "python" | "go" | "java" | "rust" | "kotlin" | "cpp" | "ruby" | "swift";
|
|
320
383
|
loc: number;
|
|
321
384
|
exports: {
|
|
322
385
|
name: string;
|
|
323
|
-
kind: "function" | "
|
|
386
|
+
kind: "function" | "type" | "class" | "interface" | "enum" | "const" | "variable" | "struct" | "trait" | "protocol" | "data_class" | "module";
|
|
324
387
|
signature: string;
|
|
325
388
|
isDefault: boolean;
|
|
326
389
|
startLine: number;
|
|
@@ -344,6 +407,7 @@ export declare const CodeSkeletonSchema: z.ZodObject<{
|
|
|
344
407
|
resolvedPath?: string | null | undefined;
|
|
345
408
|
namedImports?: string[] | undefined;
|
|
346
409
|
defaultImport?: string | null | undefined;
|
|
410
|
+
importType?: "static" | "dynamic" | "type-only" | "commonjs-require" | undefined;
|
|
347
411
|
}[];
|
|
348
412
|
hash: string;
|
|
349
413
|
analyzedAt: string;
|
|
@@ -355,6 +419,14 @@ export declare const CodeSkeletonSchema: z.ZodObject<{
|
|
|
355
419
|
affectedSymbols?: string[] | undefined;
|
|
356
420
|
}[] | undefined;
|
|
357
421
|
moduleDoc?: string | undefined;
|
|
422
|
+
callSites?: {
|
|
423
|
+
calleeName: string;
|
|
424
|
+
calleeKind: "free" | "member" | "cross-module" | "dunder" | "super" | "decorator" | "unresolved";
|
|
425
|
+
line: number;
|
|
426
|
+
column?: number | undefined;
|
|
427
|
+
callerContext?: string | undefined;
|
|
428
|
+
calleeQualifier?: string | undefined;
|
|
429
|
+
}[] | undefined;
|
|
358
430
|
}>;
|
|
359
431
|
export type CodeSkeleton = z.infer<typeof CodeSkeletonSchema>;
|
|
360
432
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-skeleton.d.ts","sourceRoot":"","sources":["../../src/models/code-skeleton.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,gBAAgB,2IAc3B,CA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
|
*/
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
+
// **Codex P0 W-2 修订** — 从同层 models/call-site.ts import,保持 DAG 方向(models 不反向依赖 knowledge-graph)
|
|
7
|
+
import { CallSiteSchema } from './call-site.js';
|
|
8
|
+
export { CallSiteSchema } from './call-site.js';
|
|
6
9
|
// --- 枚举 ---
|
|
7
10
|
export const ExportKindSchema = z.enum([
|
|
8
11
|
'function',
|
|
@@ -73,6 +76,23 @@ export const ExportSymbolSchema = z.object({
|
|
|
73
76
|
endLine: z.number().int().positive(),
|
|
74
77
|
members: z.array(MemberInfoSchema).optional(),
|
|
75
78
|
});
|
|
79
|
+
/**
|
|
80
|
+
* Import 语义类型枚举(Feature 156 W1.0 / FR-28 / AC-11)。
|
|
81
|
+
*
|
|
82
|
+
* - 'static':标准 ES Module 静态 import
|
|
83
|
+
* - 'dynamic':动态 import() 调用
|
|
84
|
+
* - 'type-only':仅类型导入(`import type { ... }`)
|
|
85
|
+
* - 'commonjs-require':CommonJS require() 调用
|
|
86
|
+
*
|
|
87
|
+
* 注:ModuleEdge.importType 不含 'commonjs-require',
|
|
88
|
+
* module-derivation 派生时会归并到 'static'(CommonJS 视为同步加载)。
|
|
89
|
+
*/
|
|
90
|
+
export const ImportSemanticTypeSchema = z.enum([
|
|
91
|
+
'static',
|
|
92
|
+
'dynamic',
|
|
93
|
+
'type-only',
|
|
94
|
+
'commonjs-require',
|
|
95
|
+
]);
|
|
76
96
|
/** 导入引用 */
|
|
77
97
|
export const ImportReferenceSchema = z.object({
|
|
78
98
|
moduleSpecifier: z.string().min(1),
|
|
@@ -81,6 +101,13 @@ export const ImportReferenceSchema = z.object({
|
|
|
81
101
|
namedImports: z.array(z.string()).optional(),
|
|
82
102
|
defaultImport: z.string().nullable().optional(),
|
|
83
103
|
isTypeOnly: z.boolean(),
|
|
104
|
+
/**
|
|
105
|
+
* 语法类型(Feature 156 W1.0 新增;可选,向后兼容)。
|
|
106
|
+
* 由 import-resolver.detectImportType 派生;写入 CodeSkeleton.imports[].importType;
|
|
107
|
+
* deriveImportEdges 把此值写入 UnifiedGraphEdge.evidence;
|
|
108
|
+
* module-derivation 在重建 ModuleEdge.importType 时读取此字段。
|
|
109
|
+
*/
|
|
110
|
+
importType: ImportSemanticTypeSchema.optional(),
|
|
84
111
|
});
|
|
85
112
|
/** 解析错误 */
|
|
86
113
|
export const ParseErrorSchema = z.object({
|
|
@@ -102,6 +129,8 @@ export const CodeSkeletonSchema = z.object({
|
|
|
102
129
|
analyzedAt: z.string().datetime(),
|
|
103
130
|
parserUsed: ParserUsedSchema,
|
|
104
131
|
moduleDoc: z.string().optional(),
|
|
132
|
+
// FR-4 + CL-01:Feature 151 新增 — 函数调用点列表(optional,向后兼容旧 baseline)
|
|
133
|
+
callSites: z.array(CallSiteSchema).optional(),
|
|
105
134
|
});
|
|
106
135
|
// --- 代码切片(FR-001, FR-004, FR-010)---
|
|
107
136
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-skeleton.js","sourceRoot":"","sources":["../../src/models/code-skeleton.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,aAAa;AAEb,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IACrC,UAAU;IACV,OAAO;IACP,WAAW;IACX,MAAM;IACN,MAAM;IACN,OAAO;IACP,UAAU;IACV,cAAc;IACd,QAAQ;IACR,OAAO;IACP,UAAU;IACV,YAAY;IACZ,QAAQ;CACT,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IACrC,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,aAAa;IACb,cAAc;IACd,aAAa;IACb,cAAc;IACd,qBAAqB;CACtB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,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AE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,gBAAgB;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,iEAAiE;IACjE,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAGH,sCAAsC;AAEtC;;;;;GAKG;AACH,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,iFAAoB,CAAA;IACpB,+EAAmB,CAAA;IACnB,+FAA2B,CAAA;AAC7B,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B"}
|
|
@@ -84,17 +84,17 @@ export declare const DriftSummarySchema: z.ZodObject<{
|
|
|
84
84
|
removals: z.ZodNumber;
|
|
85
85
|
modifications: z.ZodNumber;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
low: number;
|
|
88
|
-
medium: number;
|
|
89
87
|
high: number;
|
|
88
|
+
medium: number;
|
|
89
|
+
low: number;
|
|
90
90
|
totalChanges: number;
|
|
91
91
|
additions: number;
|
|
92
92
|
removals: number;
|
|
93
93
|
modifications: number;
|
|
94
94
|
}, {
|
|
95
|
-
low: number;
|
|
96
|
-
medium: number;
|
|
97
95
|
high: number;
|
|
96
|
+
medium: number;
|
|
97
|
+
low: number;
|
|
98
98
|
totalChanges: number;
|
|
99
99
|
additions: number;
|
|
100
100
|
removals: number;
|