spectra-cli 4.1.1 → 4.3.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 +12 -5
- package/dist/.spectra-build-meta.json +9 -0
- 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 +42 -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 +168 -61
- 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 +74 -5
- package/dist/batch/batch-orchestrator.d.ts.map +1 -1
- package/dist/batch/batch-orchestrator.js +583 -70
- 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 +21 -28
- package/dist/batch/delta-regenerator.js.map +1 -1
- package/dist/batch/module-grouper.d.ts +9 -2
- package/dist/batch/module-grouper.d.ts.map +1 -1
- package/dist/batch/module-grouper.js +3 -1
- package/dist/batch/module-grouper.js.map +1 -1
- package/dist/batch/regen-plan.d.ts +78 -0
- package/dist/batch/regen-plan.d.ts.map +1 -0
- package/dist/batch/regen-plan.js +93 -0
- package/dist/batch/regen-plan.js.map +1 -0
- package/dist/cli/commands/batch.d.ts.map +1 -1
- package/dist/cli/commands/batch.js +36 -8
- package/dist/cli/commands/batch.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/commands/scaffold-kb.d.ts +9 -0
- package/dist/cli/commands/scaffold-kb.d.ts.map +1 -0
- package/dist/cli/commands/scaffold-kb.js +179 -0
- package/dist/cli/commands/scaffold-kb.js.map +1 -0
- package/dist/cli/index.js +33 -14
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/utils/error-handler.d.ts +0 -6
- package/dist/cli/utils/error-handler.d.ts.map +1 -1
- package/dist/cli/utils/error-handler.js +0 -13
- package/dist/cli/utils/error-handler.js.map +1 -1
- package/dist/cli/utils/parse-args.d.ts +55 -3
- package/dist/cli/utils/parse-args.d.ts.map +1 -1
- package/dist/cli/utils/parse-args.js +176 -13
- package/dist/cli/utils/parse-args.js.map +1 -1
- package/dist/cli/version-meta.d.ts +16 -0
- package/dist/cli/version-meta.d.ts.map +1 -0
- package/dist/cli/version-meta.js +28 -0
- package/dist/cli/version-meta.js.map +1 -0
- package/dist/core/ast-analyzer.d.ts.map +1 -1
- package/dist/core/ast-analyzer.js +75 -5
- package/dist/core/ast-analyzer.js.map +1 -1
- package/dist/core/import-resolver.d.ts +93 -0
- package/dist/core/import-resolver.d.ts.map +1 -0
- package/dist/core/import-resolver.js +414 -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 +21 -0
- package/dist/core/single-spec-orchestrator.d.ts.map +1 -1
- package/dist/core/single-spec-orchestrator.js +187 -23
- package/dist/core/single-spec-orchestrator.js.map +1 -1
- package/dist/core/skeleton-hash.d.ts +33 -0
- package/dist/core/skeleton-hash.d.ts.map +1 -0
- package/dist/core/skeleton-hash.js +76 -0
- package/dist/core/skeleton-hash.js.map +1 -0
- package/dist/core/tree-sitter-analyzer.d.ts +7 -0
- package/dist/core/tree-sitter-analyzer.d.ts.map +1 -1
- package/dist/core/tree-sitter-analyzer.js +32 -1
- package/dist/core/tree-sitter-analyzer.js.map +1 -1
- package/dist/core/tree-sitter-fallback.d.ts +12 -4
- package/dist/core/tree-sitter-fallback.d.ts.map +1 -1
- package/dist/core/tree-sitter-fallback.js +160 -12
- package/dist/core/tree-sitter-fallback.js.map +1 -1
- package/dist/extraction/extraction-types.d.ts +25 -25
- package/dist/extraction/image-extractor.d.ts.map +1 -1
- package/dist/extraction/image-extractor.js +3 -1
- package/dist/extraction/image-extractor.js.map +1 -1
- package/dist/extraction/markdown-extractor.d.ts.map +1 -1
- package/dist/extraction/markdown-extractor.js +3 -1
- package/dist/extraction/markdown-extractor.js.map +1 -1
- package/dist/generator/frontmatter.d.ts +5 -0
- package/dist/generator/frontmatter.d.ts.map +1 -1
- package/dist/generator/frontmatter.js +4 -0
- package/dist/generator/frontmatter.js.map +1 -1
- 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/kb-mcp/index.d.ts +14 -0
- package/dist/kb-mcp/index.d.ts.map +1 -0
- package/dist/kb-mcp/index.js +24 -0
- package/dist/kb-mcp/index.js.map +1 -0
- package/dist/kb-mcp/lib/kb-error.d.ts +21 -0
- package/dist/kb-mcp/lib/kb-error.d.ts.map +1 -0
- package/dist/kb-mcp/lib/kb-error.js +28 -0
- package/dist/kb-mcp/lib/kb-error.js.map +1 -0
- package/dist/kb-mcp/lib/kb-locator.d.ts +58 -0
- package/dist/kb-mcp/lib/kb-locator.d.ts.map +1 -0
- package/dist/kb-mcp/lib/kb-locator.js +85 -0
- package/dist/kb-mcp/lib/kb-locator.js.map +1 -0
- package/dist/kb-mcp/lib/result-merger.d.ts +35 -0
- package/dist/kb-mcp/lib/result-merger.d.ts.map +1 -0
- package/dist/kb-mcp/lib/result-merger.js +64 -0
- package/dist/kb-mcp/lib/result-merger.js.map +1 -0
- package/dist/kb-mcp/server.d.ts +12 -0
- package/dist/kb-mcp/server.d.ts.map +1 -0
- package/dist/kb-mcp/server.js +29 -0
- package/dist/kb-mcp/server.js.map +1 -0
- package/dist/kb-mcp/tools/kb-api-lookup.d.ts +28 -0
- package/dist/kb-mcp/tools/kb-api-lookup.d.ts.map +1 -0
- package/dist/kb-mcp/tools/kb-api-lookup.js +237 -0
- package/dist/kb-mcp/tools/kb-api-lookup.js.map +1 -0
- package/dist/kb-mcp/tools/kb-doc-lookup.d.ts +20 -0
- package/dist/kb-mcp/tools/kb-doc-lookup.d.ts.map +1 -0
- package/dist/kb-mcp/tools/kb-doc-lookup.js +92 -0
- package/dist/kb-mcp/tools/kb-doc-lookup.js.map +1 -0
- package/dist/kb-mcp/tools/kb-search.d.ts +23 -0
- package/dist/kb-mcp/tools/kb-search.d.ts.map +1 -0
- package/dist/kb-mcp/tools/kb-search.js +126 -0
- package/dist/kb-mcp/tools/kb-search.js.map +1 -0
- 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 +39 -0
- package/dist/knowledge-graph/import-resolver.d.ts.map +1 -0
- package/dist/knowledge-graph/import-resolver.js +214 -0
- package/dist/knowledge-graph/import-resolver.js.map +1 -0
- package/dist/knowledge-graph/incremental.d.ts +131 -0
- package/dist/knowledge-graph/incremental.d.ts.map +1 -0
- package/dist/knowledge-graph/incremental.js +432 -0
- package/dist/knowledge-graph/incremental.js.map +1 -0
- package/dist/knowledge-graph/index.d.ts +85 -0
- package/dist/knowledge-graph/index.d.ts.map +1 -0
- package/dist/knowledge-graph/index.js +198 -0
- package/dist/knowledge-graph/index.js.map +1 -0
- package/dist/knowledge-graph/module-derivation.d.ts +252 -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 +310 -0
- package/dist/knowledge-graph/persistence.d.ts.map +1 -0
- package/dist/knowledge-graph/persistence.js +280 -0
- package/dist/knowledge-graph/persistence.js.map +1 -0
- package/dist/knowledge-graph/query-helpers.d.ts +191 -0
- package/dist/knowledge-graph/query-helpers.d.ts.map +1 -0
- package/dist/knowledge-graph/query-helpers.js +559 -0
- package/dist/knowledge-graph/query-helpers.js.map +1 -0
- package/dist/knowledge-graph/relativize.d.ts +51 -0
- package/dist/knowledge-graph/relativize.d.ts.map +1 -0
- package/dist/knowledge-graph/relativize.js +104 -0
- package/dist/knowledge-graph/relativize.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 +53 -0
- package/dist/mcp/agent-context-tools.d.ts.map +1 -0
- package/dist/mcp/agent-context-tools.js +806 -0
- package/dist/mcp/agent-context-tools.js.map +1 -0
- package/dist/mcp/file-nav-tools.d.ts +42 -0
- package/dist/mcp/file-nav-tools.d.ts.map +1 -0
- package/dist/mcp/file-nav-tools.js +318 -0
- package/dist/mcp/file-nav-tools.js.map +1 -0
- package/dist/mcp/graph-tools.d.ts +22 -0
- package/dist/mcp/graph-tools.d.ts.map +1 -1
- package/dist/mcp/graph-tools.js +204 -133
- package/dist/mcp/graph-tools.js.map +1 -1
- package/dist/mcp/lib/file-nav-helpers.d.ts +128 -0
- package/dist/mcp/lib/file-nav-helpers.d.ts.map +1 -0
- package/dist/mcp/lib/file-nav-helpers.js +305 -0
- package/dist/mcp/lib/file-nav-helpers.js.map +1 -0
- 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/lib/telemetry.d.ts +69 -0
- package/dist/mcp/lib/telemetry.d.ts.map +1 -0
- package/dist/mcp/lib/telemetry.js +113 -0
- package/dist/mcp/lib/telemetry.js.map +1 -0
- package/dist/mcp/lib/tool-response.d.ts +46 -0
- package/dist/mcp/lib/tool-response.d.ts.map +1 -0
- package/dist/mcp/lib/tool-response.js +83 -0
- package/dist/mcp/lib/tool-response.js.map +1 -0
- package/dist/mcp/server.d.ts +14 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +216 -158
- 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 +80 -6
- package/dist/models/code-skeleton.d.ts.map +1 -1
- package/dist/models/code-skeleton.js +30 -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 +173 -94
- package/dist/models/module-spec.d.ts.map +1 -1
- package/dist/models/module-spec.js +6 -0
- package/dist/models/module-spec.js.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 +15 -2
- package/dist/panoramic/builders/doc-graph-builder.d.ts.map +1 -1
- package/dist/panoramic/builders/doc-graph-builder.js +20 -0
- 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 +72 -2
- package/dist/panoramic/graph/graph-builder.d.ts.map +1 -1
- package/dist/panoramic/graph/graph-builder.js +330 -46
- 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 +49 -2
- package/dist/panoramic/graph/graph-query.d.ts.map +1 -1
- package/dist/panoramic/graph/graph-query.js +117 -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/graph/index.d.ts +2 -1
- package/dist/panoramic/graph/index.d.ts.map +1 -1
- package/dist/panoramic/graph/index.js +1 -1
- package/dist/panoramic/graph/index.js.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/adr-evidence-verifier.d.ts.map +1 -1
- package/dist/panoramic/pipelines/adr-evidence-verifier.js +1 -29
- package/dist/panoramic/pipelines/adr-evidence-verifier.js.map +1 -1
- 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/query.d.ts +1 -0
- package/dist/panoramic/query.d.ts.map +1 -1
- package/dist/panoramic/query.js +5 -0
- package/dist/panoramic/query.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/scaffold-kb/api-entities-serializer.d.ts +12 -0
- package/dist/scaffold-kb/api-entities-serializer.d.ts.map +1 -0
- package/dist/scaffold-kb/api-entities-serializer.js +144 -0
- package/dist/scaffold-kb/api-entities-serializer.js.map +1 -0
- package/dist/scaffold-kb/arbitration.d.ts +44 -0
- package/dist/scaffold-kb/arbitration.d.ts.map +1 -0
- package/dist/scaffold-kb/arbitration.js +144 -0
- package/dist/scaffold-kb/arbitration.js.map +1 -0
- package/dist/scaffold-kb/chunk-splitter.d.ts +20 -0
- package/dist/scaffold-kb/chunk-splitter.d.ts.map +1 -0
- package/dist/scaffold-kb/chunk-splitter.js +309 -0
- package/dist/scaffold-kb/chunk-splitter.js.map +1 -0
- package/dist/scaffold-kb/doc-graph-builder.d.ts +26 -0
- package/dist/scaffold-kb/doc-graph-builder.d.ts.map +1 -0
- package/dist/scaffold-kb/doc-graph-builder.js +72 -0
- package/dist/scaffold-kb/doc-graph-builder.js.map +1 -0
- package/dist/scaffold-kb/entity-extractor.d.ts +40 -0
- package/dist/scaffold-kb/entity-extractor.d.ts.map +1 -0
- package/dist/scaffold-kb/entity-extractor.js +0 -0
- package/dist/scaffold-kb/entity-extractor.js.map +1 -0
- package/dist/scaffold-kb/entity-heuristic.d.ts +14 -0
- package/dist/scaffold-kb/entity-heuristic.d.ts.map +1 -0
- package/dist/scaffold-kb/entity-heuristic.js +107 -0
- package/dist/scaffold-kb/entity-heuristic.js.map +1 -0
- package/dist/scaffold-kb/entity-matcher.d.ts +20 -0
- package/dist/scaffold-kb/entity-matcher.d.ts.map +1 -0
- package/dist/scaffold-kb/entity-matcher.js +53 -0
- package/dist/scaffold-kb/entity-matcher.js.map +1 -0
- package/dist/scaffold-kb/entity-util.d.ts +11 -0
- package/dist/scaffold-kb/entity-util.d.ts.map +1 -0
- package/dist/scaffold-kb/entity-util.js +23 -0
- package/dist/scaffold-kb/entity-util.js.map +1 -0
- package/dist/scaffold-kb/evidence-envelope.d.ts +17 -0
- package/dist/scaffold-kb/evidence-envelope.d.ts.map +1 -0
- package/dist/scaffold-kb/evidence-envelope.js +32 -0
- package/dist/scaffold-kb/evidence-envelope.js.map +1 -0
- package/dist/scaffold-kb/index.d.ts +20 -0
- package/dist/scaffold-kb/index.d.ts.map +1 -0
- package/dist/scaffold-kb/index.js +102 -0
- package/dist/scaffold-kb/index.js.map +1 -0
- package/dist/scaffold-kb/ingest/ingest-core.d.ts +47 -0
- package/dist/scaffold-kb/ingest/ingest-core.d.ts.map +1 -0
- package/dist/scaffold-kb/ingest/ingest-core.js +231 -0
- package/dist/scaffold-kb/ingest/ingest-core.js.map +1 -0
- package/dist/scaffold-kb/ingest/office-parser.d.ts +33 -0
- package/dist/scaffold-kb/ingest/office-parser.d.ts.map +1 -0
- package/dist/scaffold-kb/ingest/office-parser.js +187 -0
- package/dist/scaffold-kb/ingest/office-parser.js.map +1 -0
- package/dist/scaffold-kb/ingest/url-fetcher.d.ts +43 -0
- package/dist/scaffold-kb/ingest/url-fetcher.d.ts.map +1 -0
- package/dist/scaffold-kb/ingest/url-fetcher.js +245 -0
- package/dist/scaffold-kb/ingest/url-fetcher.js.map +1 -0
- package/dist/scaffold-kb/ingester.d.ts +38 -0
- package/dist/scaffold-kb/ingester.d.ts.map +1 -0
- package/dist/scaffold-kb/ingester.js +261 -0
- package/dist/scaffold-kb/ingester.js.map +1 -0
- package/dist/scaffold-kb/injection-format.d.ts +25 -0
- package/dist/scaffold-kb/injection-format.d.ts.map +1 -0
- package/dist/scaffold-kb/injection-format.js +55 -0
- package/dist/scaffold-kb/injection-format.js.map +1 -0
- package/dist/scaffold-kb/kb-writer.d.ts +13 -0
- package/dist/scaffold-kb/kb-writer.d.ts.map +1 -0
- package/dist/scaffold-kb/kb-writer.js +69 -0
- package/dist/scaffold-kb/kb-writer.js.map +1 -0
- package/dist/scaffold-kb/keyword-extract.d.ts +16 -0
- package/dist/scaffold-kb/keyword-extract.d.ts.map +1 -0
- package/dist/scaffold-kb/keyword-extract.js +49 -0
- package/dist/scaffold-kb/keyword-extract.js.map +1 -0
- package/dist/scaffold-kb/query-sanitizer.d.ts +28 -0
- package/dist/scaffold-kb/query-sanitizer.d.ts.map +1 -0
- package/dist/scaffold-kb/query-sanitizer.js +38 -0
- package/dist/scaffold-kb/query-sanitizer.js.map +1 -0
- package/dist/scaffold-kb/recall-eval.d.ts +48 -0
- package/dist/scaffold-kb/recall-eval.d.ts.map +1 -0
- package/dist/scaffold-kb/recall-eval.js +55 -0
- package/dist/scaffold-kb/recall-eval.js.map +1 -0
- package/dist/scaffold-kb/schema-compat.d.ts +22 -0
- package/dist/scaffold-kb/schema-compat.d.ts.map +1 -0
- package/dist/scaffold-kb/schema-compat.js +32 -0
- package/dist/scaffold-kb/schema-compat.js.map +1 -0
- package/dist/scaffold-kb/search-core.d.ts +42 -0
- package/dist/scaffold-kb/search-core.d.ts.map +1 -0
- package/dist/scaffold-kb/search-core.js +89 -0
- package/dist/scaffold-kb/search-core.js.map +1 -0
- package/dist/scaffold-kb/sqlite-engine.d.ts +58 -0
- package/dist/scaffold-kb/sqlite-engine.d.ts.map +1 -0
- package/dist/scaffold-kb/sqlite-engine.js +61 -0
- package/dist/scaffold-kb/sqlite-engine.js.map +1 -0
- package/dist/scaffold-kb/sqlite-writer.d.ts +18 -0
- package/dist/scaffold-kb/sqlite-writer.d.ts.map +1 -0
- package/dist/scaffold-kb/sqlite-writer.js +76 -0
- package/dist/scaffold-kb/sqlite-writer.js.map +1 -0
- package/dist/scaffold-kb/tokenizer.d.ts +26 -0
- package/dist/scaffold-kb/tokenizer.d.ts.map +1 -0
- package/dist/scaffold-kb/tokenizer.js +97 -0
- package/dist/scaffold-kb/tokenizer.js.map +1 -0
- package/dist/scaffold-kb/types.d.ts +157 -0
- package/dist/scaffold-kb/types.d.ts.map +1 -0
- package/dist/scaffold-kb/types.js +5 -0
- package/dist/scaffold-kb/types.js.map +1 -0
- package/dist/utils/file-scanner.d.ts +15 -0
- package/dist/utils/file-scanner.d.ts.map +1 -1
- package/dist/utils/file-scanner.js +18 -1
- package/dist/utils/file-scanner.js.map +1 -1
- package/dist/utils/string-distance.d.ts +20 -0
- package/dist/utils/string-distance.d.ts.map +1 -0
- package/dist/utils/string-distance.js +38 -0
- package/dist/utils/string-distance.js.map +1 -0
- package/package.json +22 -3
- package/plugins/demo-kb-en/.claude-plugin/plugin.json +11 -0
- package/plugins/demo-kb-en/.mcp.json +8 -0
- package/plugins/demo-kb-en/FIXTURE.json +23 -0
- package/plugins/demo-kb-en/FIXTURE.md +53 -0
- package/plugins/demo-kb-en/ingest-samples/meeting-notes.md +13 -0
- package/plugins/demo-kb-en/kb/api-entities.json +3445 -0
- package/plugins/demo-kb-en/kb/chunks.sqlite +0 -0
- package/plugins/demo-kb-en/kb/doc-graph.json +113 -0
- package/plugins/demo-kb-zh/.claude-plugin/plugin.json +11 -0
- package/plugins/demo-kb-zh/.mcp.json +8 -0
- package/plugins/demo-kb-zh/FIXTURE.json +23 -0
- package/plugins/demo-kb-zh/FIXTURE.md +63 -0
- package/plugins/demo-kb-zh/ingest-samples/meeting-notes.md +13 -0
- package/plugins/demo-kb-zh/kb/api-entities.json +990 -0
- package/plugins/demo-kb-zh/kb/chunks.sqlite +0 -0
- package/plugins/demo-kb-zh/kb/doc-graph.json +113 -0
- package/plugins/spec-driver/.claude-plugin/plugin.json +1 -1
- package/plugins/spec-driver/README.md +50 -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 +108 -1
- package/plugins/spec-driver/config/orchestration.yaml +39 -31
- package/plugins/spec-driver/contracts/orchestration-overrides-contract.yaml +27 -0
- package/plugins/spec-driver/contracts/orchestration-schema.mjs +272 -227
- package/plugins/spec-driver/contracts/wrapper-source-of-truth.yaml +3 -0
- package/plugins/spec-driver/docs/customization.md +134 -0
- package/plugins/spec-driver/docs/spectra-mcp-integration.md +165 -0
- package/plugins/spec-driver/hooks/hooks.json +9 -0
- package/plugins/spec-driver/hooks/stop-fix-compliance-check.sh +36 -0
- package/plugins/spec-driver/lib/delegation-contract.mjs +84 -0
- package/plugins/spec-driver/lib/orchestration-resolver.mjs +49 -0
- package/plugins/spec-driver/lib/orchestrator.mjs +29 -1
- package/plugins/spec-driver/lib/preference-rules.mjs +96 -0
- package/plugins/spec-driver/scripts/codex-skills.sh +28 -28
- package/plugins/spec-driver/scripts/dev/spike-fix-compliance-e2e.mjs +130 -0
- package/plugins/spec-driver/scripts/fix-compliance-judge.mjs +415 -0
- package/plugins/spec-driver/scripts/generate-adoption-insights.mjs +48 -1
- package/plugins/spec-driver/scripts/goal-loop-cli.mjs +307 -0
- package/plugins/spec-driver/scripts/init-project.sh +56 -0
- package/plugins/spec-driver/scripts/kb-prequery.mjs +125 -0
- package/plugins/spec-driver/scripts/lib/config-schema.mjs +200 -94
- package/plugins/spec-driver/scripts/lib/ensure-gitignore.sh +277 -0
- package/plugins/spec-driver/scripts/lib/extract-wrapper-body.mjs +136 -0
- package/plugins/spec-driver/scripts/lib/fix-compliance-core.mjs +434 -0
- package/plugins/spec-driver/scripts/lib/fix-compliance-io.mjs +335 -0
- package/plugins/spec-driver/scripts/lib/goal-loop-core.mjs +783 -0
- package/plugins/spec-driver/scripts/lib/init-project-output.sh +28 -0
- package/plugins/spec-driver/scripts/lib/load-zod.mjs +62 -0
- package/plugins/spec-driver/scripts/lib/project-profile-resolver.mjs +141 -49
- package/plugins/spec-driver/scripts/lib/project-profile-schema.mjs +88 -54
- package/plugins/spec-driver/scripts/postinstall.sh +13 -1
- package/plugins/spec-driver/scripts/record-workflow-run.mjs +75 -0
- package/plugins/spec-driver/scripts/sync-delegation-contract.mjs +187 -0
- package/plugins/spec-driver/scripts/sync-preference-rules.mjs +148 -0
- package/plugins/spec-driver/scripts/validate-orchestrator-models.mjs +156 -0
- package/plugins/spec-driver/scripts/validate-wrapper-sources.mjs +46 -1
- package/plugins/spec-driver/skills/spec-driver-feature/SKILL.md +302 -0
- package/plugins/spec-driver/skills/spec-driver-fix/SKILL.md +97 -8
- package/plugins/spec-driver/skills/spec-driver-implement/SKILL.md +18 -0
- package/plugins/spec-driver/skills/spec-driver-refactor/SKILL.md +10 -0
- package/plugins/spec-driver/skills/spec-driver-resume/SKILL.md +12 -1
- package/plugins/spec-driver/skills/spec-driver-story/SKILL.md +30 -0
- package/plugins/spec-driver/templates/delegation-contract.md +27 -0
- package/plugins/spec-driver/templates/goal-loop-override-template.yaml +284 -0
- package/plugins/spec-driver/templates/preference-rules.md +39 -0
- package/plugins/spec-driver/templates/specify-base/project-context-template.yaml +10 -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/module-spec.hbs +1 -0
- package/templates/product-overview.hbs +1 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feature 151 — Knowledge Graph 模块顶层 API(FR-3 + Codex C-3 修订)
|
|
3
|
+
*
|
|
4
|
+
* 入口:buildUnifiedGraph(input)
|
|
5
|
+
* - 收集所有 CallSite + callerFile
|
|
6
|
+
* - call-resolver 派生 calls 边
|
|
7
|
+
* - deriveImportEdges 派生 depends-on 边(Codex C-3:ModuleGraph 数据源)
|
|
8
|
+
* - 装配 nodes / edges / metadata 输出 UnifiedGraph
|
|
9
|
+
*
|
|
10
|
+
* 单例 cache:
|
|
11
|
+
* - setCurrentUnifiedGraph / getCurrentUnifiedGraph
|
|
12
|
+
* - 让 panoramic 阶段(component-view-builder DI)能在不改 generate 签名的前提下消费
|
|
13
|
+
* - batch-orchestrator 在生成 graph.json 之前 setCurrentUnifiedGraph(graph)
|
|
14
|
+
*/
|
|
15
|
+
import type { CodeSkeleton } from '../models/code-skeleton.js';
|
|
16
|
+
import type { CallSite } from '../models/call-site.js';
|
|
17
|
+
import { resolveCalls, type CallSiteWithFile } from './call-resolver.js';
|
|
18
|
+
import { UNIFIED_GRAPH_SCHEMA_VERSION, defaultDirectionalForRelation, type UnifiedEdge, type UnifiedGraph, type UnifiedNode } from './unified-graph.js';
|
|
19
|
+
export interface BuildUnifiedGraphInput {
|
|
20
|
+
projectRoot: string;
|
|
21
|
+
/** absoluteFilePath → CodeSkeleton */
|
|
22
|
+
codeSkeletons: ReadonlyMap<string, CodeSkeleton>;
|
|
23
|
+
/** 可选:复用已构建的节点(panoramic GraphNode → UnifiedNode 转换路径),避免重复枚举 */
|
|
24
|
+
preBuiltNodes?: ReadonlyArray<UnifiedNode>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 顶层 API — 把 CodeSkeleton Map 转换为 UnifiedGraph。
|
|
28
|
+
*
|
|
29
|
+
* 输出 edges 同时含 calls + depends-on:
|
|
30
|
+
* - calls 边:来自 resolveCalls(callSites, skeletons)
|
|
31
|
+
* - depends-on 边:来自 deriveImportEdges(skeletons)
|
|
32
|
+
*
|
|
33
|
+
* 其他 relation(contains / cross-module / documents 等)由 graph-builder.ts
|
|
34
|
+
* 在 4 路合并阶段从 docGraph / architectureIR / crossReferenceLinks 注入。
|
|
35
|
+
*/
|
|
36
|
+
export declare function buildUnifiedGraph(input: BuildUnifiedGraphInput): UnifiedGraph;
|
|
37
|
+
/**
|
|
38
|
+
* Feature 193 决策 1 — 对装配完的 UnifiedGraph 做统一相对化(in-place 返回新对象)。
|
|
39
|
+
*
|
|
40
|
+
* - node.id / node.filePath:relativizeSymbolId / relativizePosix 相对化;projectRoot 外的
|
|
41
|
+
* 节点保留绝对路径并标 metadata.external=true(FR-004)。
|
|
42
|
+
* - edge.source / edge.target:relativizeSymbolId 相对化(含 calls 边与 import 边)。
|
|
43
|
+
* - metadata.projectRoot:持久化为 '.'(schema 要求 min(1),'.' 满足)。
|
|
44
|
+
*
|
|
45
|
+
* 幂等:已相对的 id / 路径原样返回(relativizePosix 对非绝对输入直接 POSIX 化返回)。
|
|
46
|
+
*/
|
|
47
|
+
export declare function relativizeGraph(graph: UnifiedGraph, projectRoot: string): UnifiedGraph;
|
|
48
|
+
/**
|
|
49
|
+
* 从 CodeSkeleton.imports 派生 depends-on 边(Codex C-3 修订 + Feature 156 W1.0 importType 编码)。
|
|
50
|
+
*
|
|
51
|
+
* 设计动机:
|
|
52
|
+
* - ModuleGraph 派生(W1.4)需要 import 边数据源;如果 UnifiedGraph 只产 calls 边,
|
|
53
|
+
* 就无法派生 SCC / topologicalOrder / mermaidSource
|
|
54
|
+
* - batch-orchestrator / doc-graph-builder / delta-regenerator 等 8+ consumer 消费 import 边
|
|
55
|
+
*
|
|
56
|
+
* 实现:每个 CodeSkeleton.imports[].resolvedPath 派生一条
|
|
57
|
+
* `${callerFile} -[depends-on]-> ${target}` 边,confidence='high',directional=true
|
|
58
|
+
*
|
|
59
|
+
* Feature 156 W1.0 v2 / WARN-3 修订:
|
|
60
|
+
* - evidence 字段保持纯 specifier(如 "./foo"),不再编码 importType 前缀
|
|
61
|
+
* —— 避免污染 panoramic 消费方(graph-builder / component-view-builder 直接展示 evidenceText / note)
|
|
62
|
+
* - importType 改写入 edge.metadata.importType 结构化字段(UnifiedEdge.metadata 已 schema 支持)
|
|
63
|
+
* - module-derivation.deriveModuleGraph 从 metadata.importType 读,不再 split evidence
|
|
64
|
+
*
|
|
65
|
+
* 注:本函数不做 cross-module name resolution(那是 call-resolver 的工作);
|
|
66
|
+
* 仅产 module-to-module 的 import 边。
|
|
67
|
+
*/
|
|
68
|
+
export declare function deriveImportEdges(codeSkeletons: ReadonlyMap<string, CodeSkeleton>): UnifiedEdge[];
|
|
69
|
+
/**
|
|
70
|
+
* 设置当前 batch / pipeline 构建好的 UnifiedGraph。
|
|
71
|
+
* 由 batch-orchestrator 在生成 graph.json 之前调用,让下游 component-view-builder
|
|
72
|
+
* 等通过 getCurrentUnifiedGraph() 拿到同一份图。
|
|
73
|
+
*/
|
|
74
|
+
export declare function setCurrentUnifiedGraph(g: UnifiedGraph | null): void;
|
|
75
|
+
/**
|
|
76
|
+
* 获取当前 batch / pipeline 已构建的 UnifiedGraph。
|
|
77
|
+
* 未设置时返回 null(生产 / 测试 / DI fallback)。
|
|
78
|
+
*/
|
|
79
|
+
export declare function getCurrentUnifiedGraph(): UnifiedGraph | null;
|
|
80
|
+
export type { CallSite, UnifiedEdge, UnifiedGraph, UnifiedNode, CallSiteWithFile, };
|
|
81
|
+
export { resolveCalls, UNIFIED_GRAPH_SCHEMA_VERSION, defaultDirectionalForRelation, };
|
|
82
|
+
export { buildModuleSymbolIndex, buildClassMemberIndex, buildImportIndex, buildClassMroIndex, extractClassName, } from './call-resolver.js';
|
|
83
|
+
export { CallSiteSchema, CalleeKindSchema, type CalleeKind, } from '../models/call-site.js';
|
|
84
|
+
export { UnifiedGraphSchema, UnifiedNodeSchema, UnifiedNodeKindSchema, UnifiedEdgeSchema, UnifiedEdgeRelationSchema, ConfidenceTierSchema, type ConfidenceTier, type UnifiedNodeKind, type UnifiedEdgeRelation, } from './unified-graph.js';
|
|
85
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/knowledge-graph/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EACL,YAAY,EACZ,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OA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yB,EACzB,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { resolveCalls, } from './call-resolver.js';
|
|
2
|
+
import { UNIFIED_GRAPH_SCHEMA_VERSION, defaultDirectionalForRelation, } from './unified-graph.js';
|
|
3
|
+
import { relativizePosix, relativizeSymbolId } from './relativize.js';
|
|
4
|
+
/**
|
|
5
|
+
* 顶层 API — 把 CodeSkeleton Map 转换为 UnifiedGraph。
|
|
6
|
+
*
|
|
7
|
+
* 输出 edges 同时含 calls + depends-on:
|
|
8
|
+
* - calls 边:来自 resolveCalls(callSites, skeletons)
|
|
9
|
+
* - depends-on 边:来自 deriveImportEdges(skeletons)
|
|
10
|
+
*
|
|
11
|
+
* 其他 relation(contains / cross-module / documents 等)由 graph-builder.ts
|
|
12
|
+
* 在 4 路合并阶段从 docGraph / architectureIR / crossReferenceLinks 注入。
|
|
13
|
+
*/
|
|
14
|
+
export function buildUnifiedGraph(input) {
|
|
15
|
+
const callSites = collectCallSites(input.codeSkeletons);
|
|
16
|
+
const callEdges = resolveCalls(callSites, input.codeSkeletons);
|
|
17
|
+
const importEdges = deriveImportEdges(input.codeSkeletons);
|
|
18
|
+
const nodes = input.preBuiltNodes ?? deriveNodesFromSkeletons(input.codeSkeletons);
|
|
19
|
+
// Feature 193 决策 1:出口统一相对化 pass。
|
|
20
|
+
// 覆盖全部四条值来源(deriveNodesFromSkeletons 节点、resolveCalls calls 边、
|
|
21
|
+
// deriveImportEdges 边、preBuiltNodes 注入),把绝对路径前缀相对化为 POSIX 相对路径,
|
|
22
|
+
// 使 graph + 快照跨 worktree byte 可移植。call-resolver.ts 零改动(其输出在此被覆盖)。
|
|
23
|
+
// projectRoot 持久化为 '.'(相对标记)。pass 幂等:已相对的输入原样保留。
|
|
24
|
+
return relativizeGraph({
|
|
25
|
+
nodes: [...nodes],
|
|
26
|
+
edges: [...callEdges, ...importEdges],
|
|
27
|
+
metadata: {
|
|
28
|
+
generatedAt: new Date().toISOString(),
|
|
29
|
+
projectRoot: input.projectRoot,
|
|
30
|
+
schemaVersion: UNIFIED_GRAPH_SCHEMA_VERSION,
|
|
31
|
+
},
|
|
32
|
+
}, input.projectRoot);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Feature 193 决策 1 — 对装配完的 UnifiedGraph 做统一相对化(in-place 返回新对象)。
|
|
36
|
+
*
|
|
37
|
+
* - node.id / node.filePath:relativizeSymbolId / relativizePosix 相对化;projectRoot 外的
|
|
38
|
+
* 节点保留绝对路径并标 metadata.external=true(FR-004)。
|
|
39
|
+
* - edge.source / edge.target:relativizeSymbolId 相对化(含 calls 边与 import 边)。
|
|
40
|
+
* - metadata.projectRoot:持久化为 '.'(schema 要求 min(1),'.' 满足)。
|
|
41
|
+
*
|
|
42
|
+
* 幂等:已相对的 id / 路径原样返回(relativizePosix 对非绝对输入直接 POSIX 化返回)。
|
|
43
|
+
*/
|
|
44
|
+
export function relativizeGraph(graph, projectRoot) {
|
|
45
|
+
const nodes = graph.nodes.map((n) => {
|
|
46
|
+
const idR = relativizeSymbolId(n.id, projectRoot);
|
|
47
|
+
const next = { ...n, id: idR.value };
|
|
48
|
+
if (n.filePath !== undefined) {
|
|
49
|
+
next.filePath = relativizePosix(n.filePath, projectRoot).value;
|
|
50
|
+
}
|
|
51
|
+
if (idR.external) {
|
|
52
|
+
next.metadata = { ...next.metadata, external: true };
|
|
53
|
+
}
|
|
54
|
+
return next;
|
|
55
|
+
});
|
|
56
|
+
const edges = graph.edges.map((e) => ({
|
|
57
|
+
...e,
|
|
58
|
+
source: relativizeSymbolId(e.source, projectRoot).value,
|
|
59
|
+
target: relativizeSymbolId(e.target, projectRoot).value,
|
|
60
|
+
}));
|
|
61
|
+
return {
|
|
62
|
+
nodes,
|
|
63
|
+
edges,
|
|
64
|
+
metadata: {
|
|
65
|
+
...graph.metadata,
|
|
66
|
+
projectRoot: '.',
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 从 CodeSkeleton.imports 派生 depends-on 边(Codex C-3 修订 + Feature 156 W1.0 importType 编码)。
|
|
72
|
+
*
|
|
73
|
+
* 设计动机:
|
|
74
|
+
* - ModuleGraph 派生(W1.4)需要 import 边数据源;如果 UnifiedGraph 只产 calls 边,
|
|
75
|
+
* 就无法派生 SCC / topologicalOrder / mermaidSource
|
|
76
|
+
* - batch-orchestrator / doc-graph-builder / delta-regenerator 等 8+ consumer 消费 import 边
|
|
77
|
+
*
|
|
78
|
+
* 实现:每个 CodeSkeleton.imports[].resolvedPath 派生一条
|
|
79
|
+
* `${callerFile} -[depends-on]-> ${target}` 边,confidence='high',directional=true
|
|
80
|
+
*
|
|
81
|
+
* Feature 156 W1.0 v2 / WARN-3 修订:
|
|
82
|
+
* - evidence 字段保持纯 specifier(如 "./foo"),不再编码 importType 前缀
|
|
83
|
+
* —— 避免污染 panoramic 消费方(graph-builder / component-view-builder 直接展示 evidenceText / note)
|
|
84
|
+
* - importType 改写入 edge.metadata.importType 结构化字段(UnifiedEdge.metadata 已 schema 支持)
|
|
85
|
+
* - module-derivation.deriveModuleGraph 从 metadata.importType 读,不再 split evidence
|
|
86
|
+
*
|
|
87
|
+
* 注:本函数不做 cross-module name resolution(那是 call-resolver 的工作);
|
|
88
|
+
* 仅产 module-to-module 的 import 边。
|
|
89
|
+
*/
|
|
90
|
+
export function deriveImportEdges(codeSkeletons) {
|
|
91
|
+
const edges = [];
|
|
92
|
+
for (const [callerFile, sk] of codeSkeletons) {
|
|
93
|
+
for (const imp of sk.imports) {
|
|
94
|
+
if (!imp.resolvedPath)
|
|
95
|
+
continue;
|
|
96
|
+
// 自引用过滤(一些 mapper 把同模块作 import 输出)
|
|
97
|
+
if (imp.resolvedPath === callerFile)
|
|
98
|
+
continue;
|
|
99
|
+
// W1.0 v2 / WARN-3:evidence 保持纯 specifier;importType 写 metadata
|
|
100
|
+
const edge = {
|
|
101
|
+
source: callerFile,
|
|
102
|
+
target: imp.resolvedPath,
|
|
103
|
+
relation: 'depends-on',
|
|
104
|
+
confidence: 'high',
|
|
105
|
+
directional: defaultDirectionalForRelation('depends-on'),
|
|
106
|
+
evidence: imp.moduleSpecifier,
|
|
107
|
+
...(imp.importType ? { metadata: { importType: imp.importType } } : {}),
|
|
108
|
+
};
|
|
109
|
+
edges.push(edge);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return edges;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* 收集所有 callSite + 附加 callerFile 上下文。
|
|
116
|
+
* 仅当 CodeSkeleton.callSites 字段存在时收集;空 / 缺失字段视为该文件未抽取 callSites。
|
|
117
|
+
*/
|
|
118
|
+
function collectCallSites(codeSkeletons) {
|
|
119
|
+
const out = [];
|
|
120
|
+
for (const [filePath, sk] of codeSkeletons) {
|
|
121
|
+
if (!sk.callSites || sk.callSites.length === 0)
|
|
122
|
+
continue;
|
|
123
|
+
for (const cs of sk.callSites) {
|
|
124
|
+
out.push({ ...cs, callerFile: filePath });
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return out;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* 从 CodeSkeleton 派生 module + symbol 节点(默认行为)。
|
|
131
|
+
*
|
|
132
|
+
* 仅当 input.preBuiltNodes 未提供时使用。
|
|
133
|
+
* 输出节点结构:
|
|
134
|
+
* - 每个 CodeSkeleton 派生 1 个 module 节点(id = filePath)
|
|
135
|
+
* - 每个 ExportSymbol 派生 1 个 symbol 节点(id = `${filePath}::${exp.name}`)
|
|
136
|
+
* - class 的 members 进一步派生 symbol 节点(id = `${filePath}::${exp.name}.${m.name}`)
|
|
137
|
+
*/
|
|
138
|
+
function deriveNodesFromSkeletons(codeSkeletons) {
|
|
139
|
+
const nodes = [];
|
|
140
|
+
for (const [filePath, sk] of codeSkeletons) {
|
|
141
|
+
nodes.push({
|
|
142
|
+
id: filePath,
|
|
143
|
+
label: filePath.split(/[/\\]/).pop() ?? filePath,
|
|
144
|
+
kind: 'module',
|
|
145
|
+
language: sk.language,
|
|
146
|
+
filePath,
|
|
147
|
+
metadata: {
|
|
148
|
+
callSitesCount: sk.callSites?.length ?? 0,
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
for (const exp of sk.exports) {
|
|
152
|
+
const symbolId = `${filePath}::${exp.name}`;
|
|
153
|
+
nodes.push({
|
|
154
|
+
id: symbolId,
|
|
155
|
+
label: exp.name,
|
|
156
|
+
kind: 'symbol',
|
|
157
|
+
language: sk.language,
|
|
158
|
+
filePath,
|
|
159
|
+
});
|
|
160
|
+
if (exp.members) {
|
|
161
|
+
for (const m of exp.members) {
|
|
162
|
+
nodes.push({
|
|
163
|
+
id: `${symbolId}.${m.name}`,
|
|
164
|
+
label: `${exp.name}.${m.name}`,
|
|
165
|
+
kind: 'symbol',
|
|
166
|
+
language: sk.language,
|
|
167
|
+
filePath,
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return nodes;
|
|
174
|
+
}
|
|
175
|
+
// ───────────────────────────────────────────────────────────
|
|
176
|
+
// 单例 cache(FR-7 DI provider + Codex W-1 batch 直接路径)
|
|
177
|
+
// ───────────────────────────────────────────────────────────
|
|
178
|
+
let _cachedGraph = null;
|
|
179
|
+
/**
|
|
180
|
+
* 设置当前 batch / pipeline 构建好的 UnifiedGraph。
|
|
181
|
+
* 由 batch-orchestrator 在生成 graph.json 之前调用,让下游 component-view-builder
|
|
182
|
+
* 等通过 getCurrentUnifiedGraph() 拿到同一份图。
|
|
183
|
+
*/
|
|
184
|
+
export function setCurrentUnifiedGraph(g) {
|
|
185
|
+
_cachedGraph = g;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* 获取当前 batch / pipeline 已构建的 UnifiedGraph。
|
|
189
|
+
* 未设置时返回 null(生产 / 测试 / DI fallback)。
|
|
190
|
+
*/
|
|
191
|
+
export function getCurrentUnifiedGraph() {
|
|
192
|
+
return _cachedGraph;
|
|
193
|
+
}
|
|
194
|
+
export { resolveCalls, UNIFIED_GRAPH_SCHEMA_VERSION, defaultDirectionalForRelation, };
|
|
195
|
+
export { buildModuleSymbolIndex, buildClassMemberIndex, buildImportIndex, buildClassMroIndex, extractClassName, } from './call-resolver.js';
|
|
196
|
+
export { CallSiteSchema, CalleeKindSchema, } from '../models/call-site.js';
|
|
197
|
+
export { UnifiedGraphSchema, UnifiedNodeSchema, UnifiedNodeKindSchema, UnifiedEdgeSchema, UnifiedEdgeRelationSchema, ConfidenceTierSchema, } from './unified-graph.js';
|
|
198
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/knowledge-graph/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,YAAY,GAEb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,GAI9B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AActE;;;;;;;;;GASG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAA6B;IAC7D,MAAM,SAAS,GAAG,gBAAgB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IACxD,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC/D,MAAM,WAAW,GAAG,iBAAiB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAC3D,MAAM,KAAK,GAAG,KAAK,CAAC,aAAa,IAAI,wBAAwB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IACnF,iCAAiC;IACjC,8DAA8D;IAC9D,gEAAgE;IAChE,kEAAkE;IAClE,iDAAiD;IACjD,OAAO,eAAe,CACpB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C,IAAI,CAAC;wBACT,EAAE,EAAE,GAAG,QAAQ,IAAI,CAAC,CAAC,IAAI,EAAE;wBAC3B,KAAK,EAAE,GAAG,GAAG,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,EAAE;wBAC9B,IAAI,EAAE,QAAQ;wBACd,QAAQ,EAAE,EAAE,CAAC,QAAQ;wBACrB,QAAQ;qBACT,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,8DAA8D;AAC9D,oDAAoD;AACpD,8DAA8D;AAE9D,IAAI,YAAY,GAAwB,IAAI,CAAC;AAE7C;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAAC,CAAsB;IAC3D,YAAY,GAAG,CAAC,CAAC;AACnB,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,YAAY,CAAC;AACtB,CAAC;AAaD,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC5B,6BAA6B,GAC9B,CAAC;AACF,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,gBAAgB,GAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,yBAAyB,EACzB,oBAAoB,GAIrB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* module-derivation.ts — UnifiedGraph 派生 ModuleGraph 工具(Feature 156 W1.4 atomic switch)
|
|
3
|
+
*
|
|
4
|
+
* 角色:UnifiedGraph 的合法计算工具,不是过渡 shim。
|
|
5
|
+
* - 输入:UnifiedGraph(唯一 source of truth)
|
|
6
|
+
* - 输出:ModuleGraph 视图(含 inDegree / outDegree / level / SCC / topologicalOrder /
|
|
7
|
+
* mermaidSource,是 panoramic / batch / index-generator 等 17 consumer 的消费形态)
|
|
8
|
+
*
|
|
9
|
+
* 设计原则(FR-22 / AC-5 / NG-7):
|
|
10
|
+
* - ModuleGraph 与 UnifiedGraph 并行存在,是 UnifiedGraph 的派生视图(不是双轨数据源)
|
|
11
|
+
* - 类型名以 "Module" 为前缀,与 UnifiedGraph 的语义边界清晰分离
|
|
12
|
+
*
|
|
13
|
+
* 关键约束(FR-31):
|
|
14
|
+
* - 派生函数必须从**当次输入**(UnifiedGraph 参数)派生
|
|
15
|
+
* - 禁止读取 getCurrentUnifiedGraph() 全局 cache
|
|
16
|
+
*/
|
|
17
|
+
import { z } from 'zod';
|
|
18
|
+
import type { UnifiedGraph } from './unified-graph.js';
|
|
19
|
+
import type { CodeSkeleton } from '../models/code-skeleton.js';
|
|
20
|
+
/** import 语义类型(commonjs-require 在 module 视图中归并到 static) */
|
|
21
|
+
export declare const ModuleImportTypeSchema: z.ZodEnum<["static", "dynamic", "type-only"]>;
|
|
22
|
+
export type ModuleImportType = z.infer<typeof ModuleImportTypeSchema>;
|
|
23
|
+
/** 模块图节点(kind === 'module' 的 UnifiedNode 派生) */
|
|
24
|
+
export declare const ModuleNodeSchema: z.ZodObject<{
|
|
25
|
+
source: z.ZodString;
|
|
26
|
+
isOrphan: z.ZodBoolean;
|
|
27
|
+
inDegree: z.ZodNumber;
|
|
28
|
+
outDegree: z.ZodNumber;
|
|
29
|
+
level: z.ZodNumber;
|
|
30
|
+
/** 节点所属的编程语言(多语言图合并时使用) */
|
|
31
|
+
language: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
source: string;
|
|
34
|
+
isOrphan: boolean;
|
|
35
|
+
inDegree: number;
|
|
36
|
+
outDegree: number;
|
|
37
|
+
level: number;
|
|
38
|
+
language?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
source: string;
|
|
41
|
+
isOrphan: boolean;
|
|
42
|
+
inDegree: number;
|
|
43
|
+
outDegree: number;
|
|
44
|
+
level: number;
|
|
45
|
+
language?: string | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export type ModuleNode = z.infer<typeof ModuleNodeSchema>;
|
|
48
|
+
/** 模块间依赖边(depends-on 关系的 UnifiedEdge 派生) */
|
|
49
|
+
export declare const ModuleEdgeSchema: z.ZodObject<{
|
|
50
|
+
from: z.ZodString;
|
|
51
|
+
to: z.ZodString;
|
|
52
|
+
isCircular: z.ZodBoolean;
|
|
53
|
+
importType: z.ZodEnum<["static", "dynamic", "type-only"]>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
importType: "static" | "dynamic" | "type-only";
|
|
56
|
+
from: string;
|
|
57
|
+
to: string;
|
|
58
|
+
isCircular: boolean;
|
|
59
|
+
}, {
|
|
60
|
+
importType: "static" | "dynamic" | "type-only";
|
|
61
|
+
from: string;
|
|
62
|
+
to: string;
|
|
63
|
+
isCircular: boolean;
|
|
64
|
+
}>;
|
|
65
|
+
export type ModuleEdge = z.infer<typeof ModuleEdgeSchema>;
|
|
66
|
+
/** 模块图强连通分量 */
|
|
67
|
+
export declare const ModuleStronglyConnectedSetSchema: z.ZodObject<{
|
|
68
|
+
id: z.ZodNumber;
|
|
69
|
+
modules: z.ZodArray<z.ZodString, "many">;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
id: number;
|
|
72
|
+
modules: string[];
|
|
73
|
+
}, {
|
|
74
|
+
id: number;
|
|
75
|
+
modules: string[];
|
|
76
|
+
}>;
|
|
77
|
+
export type ModuleStronglyConnectedSet = z.infer<typeof ModuleStronglyConnectedSetSchema>;
|
|
78
|
+
/** 模块依赖图(UnifiedGraph 派生视图) */
|
|
79
|
+
export declare const ModuleGraphSchema: z.ZodObject<{
|
|
80
|
+
projectRoot: z.ZodString;
|
|
81
|
+
modules: z.ZodArray<z.ZodObject<{
|
|
82
|
+
source: z.ZodString;
|
|
83
|
+
isOrphan: z.ZodBoolean;
|
|
84
|
+
inDegree: z.ZodNumber;
|
|
85
|
+
outDegree: z.ZodNumber;
|
|
86
|
+
level: z.ZodNumber;
|
|
87
|
+
/** 节点所属的编程语言(多语言图合并时使用) */
|
|
88
|
+
language: z.ZodOptional<z.ZodString>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
source: string;
|
|
91
|
+
isOrphan: boolean;
|
|
92
|
+
inDegree: number;
|
|
93
|
+
outDegree: number;
|
|
94
|
+
level: number;
|
|
95
|
+
language?: string | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
source: string;
|
|
98
|
+
isOrphan: boolean;
|
|
99
|
+
inDegree: number;
|
|
100
|
+
outDegree: number;
|
|
101
|
+
level: number;
|
|
102
|
+
language?: string | undefined;
|
|
103
|
+
}>, "many">;
|
|
104
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
105
|
+
from: z.ZodString;
|
|
106
|
+
to: z.ZodString;
|
|
107
|
+
isCircular: z.ZodBoolean;
|
|
108
|
+
importType: z.ZodEnum<["static", "dynamic", "type-only"]>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
importType: "static" | "dynamic" | "type-only";
|
|
111
|
+
from: string;
|
|
112
|
+
to: string;
|
|
113
|
+
isCircular: boolean;
|
|
114
|
+
}, {
|
|
115
|
+
importType: "static" | "dynamic" | "type-only";
|
|
116
|
+
from: string;
|
|
117
|
+
to: string;
|
|
118
|
+
isCircular: boolean;
|
|
119
|
+
}>, "many">;
|
|
120
|
+
topologicalOrder: z.ZodArray<z.ZodString, "many">;
|
|
121
|
+
sccs: z.ZodArray<z.ZodObject<{
|
|
122
|
+
id: z.ZodNumber;
|
|
123
|
+
modules: z.ZodArray<z.ZodString, "many">;
|
|
124
|
+
}, "strip", z.ZodTypeAny, {
|
|
125
|
+
id: number;
|
|
126
|
+
modules: string[];
|
|
127
|
+
}, {
|
|
128
|
+
id: number;
|
|
129
|
+
modules: string[];
|
|
130
|
+
}>, "many">;
|
|
131
|
+
totalModules: z.ZodNumber;
|
|
132
|
+
totalEdges: z.ZodNumber;
|
|
133
|
+
analyzedAt: z.ZodString;
|
|
134
|
+
mermaidSource: z.ZodString;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
analyzedAt: string;
|
|
137
|
+
projectRoot: string;
|
|
138
|
+
edges: {
|
|
139
|
+
importType: "static" | "dynamic" | "type-only";
|
|
140
|
+
from: string;
|
|
141
|
+
to: string;
|
|
142
|
+
isCircular: boolean;
|
|
143
|
+
}[];
|
|
144
|
+
modules: {
|
|
145
|
+
source: string;
|
|
146
|
+
isOrphan: boolean;
|
|
147
|
+
inDegree: number;
|
|
148
|
+
outDegree: number;
|
|
149
|
+
level: number;
|
|
150
|
+
language?: string | undefined;
|
|
151
|
+
}[];
|
|
152
|
+
topologicalOrder: string[];
|
|
153
|
+
sccs: {
|
|
154
|
+
id: number;
|
|
155
|
+
modules: string[];
|
|
156
|
+
}[];
|
|
157
|
+
totalModules: number;
|
|
158
|
+
totalEdges: number;
|
|
159
|
+
mermaidSource: string;
|
|
160
|
+
}, {
|
|
161
|
+
analyzedAt: string;
|
|
162
|
+
projectRoot: string;
|
|
163
|
+
edges: {
|
|
164
|
+
importType: "static" | "dynamic" | "type-only";
|
|
165
|
+
from: string;
|
|
166
|
+
to: string;
|
|
167
|
+
isCircular: boolean;
|
|
168
|
+
}[];
|
|
169
|
+
modules: {
|
|
170
|
+
source: string;
|
|
171
|
+
isOrphan: boolean;
|
|
172
|
+
inDegree: number;
|
|
173
|
+
outDegree: number;
|
|
174
|
+
level: number;
|
|
175
|
+
language?: string | undefined;
|
|
176
|
+
}[];
|
|
177
|
+
topologicalOrder: string[];
|
|
178
|
+
sccs: {
|
|
179
|
+
id: number;
|
|
180
|
+
modules: string[];
|
|
181
|
+
}[];
|
|
182
|
+
totalModules: number;
|
|
183
|
+
totalEdges: number;
|
|
184
|
+
mermaidSource: string;
|
|
185
|
+
}>;
|
|
186
|
+
export type ModuleGraph = z.infer<typeof ModuleGraphSchema>;
|
|
187
|
+
/**
|
|
188
|
+
* 把 UnifiedGraph 派生成 ModuleGraph 视图。
|
|
189
|
+
*
|
|
190
|
+
* @param unified - 源 UnifiedGraph(必传,禁止从全局 cache 取)
|
|
191
|
+
* @param projectRoot - 项目根目录
|
|
192
|
+
* @returns ModuleGraph 视图
|
|
193
|
+
*/
|
|
194
|
+
export declare function deriveModuleGraph(unified: UnifiedGraph, projectRoot: string): ModuleGraph;
|
|
195
|
+
/**
|
|
196
|
+
* 从 CodeSkeleton Map 一站式派生 ModuleGraph。
|
|
197
|
+
*
|
|
198
|
+
* 适用场景:调用方已自行解析好 imports[].resolvedPath(如 python-adapter),
|
|
199
|
+
* 直接喂给 buildUnifiedGraph 派生 module 节点 + depends-on 边。
|
|
200
|
+
*
|
|
201
|
+
* @param codeSkeletons - filePath(相对项目根)→ CodeSkeleton(含 resolvedPath)
|
|
202
|
+
* @param projectRoot - 项目根目录(绝对路径)
|
|
203
|
+
* @param language - 可选:给所有 module 节点统一打 language 标签
|
|
204
|
+
*/
|
|
205
|
+
export declare function buildModuleGraphFromCodeSkeletons(codeSkeletons: ReadonlyMap<string, CodeSkeleton>, projectRoot: string, language?: CodeSkeleton['language']): ModuleGraph;
|
|
206
|
+
/**
|
|
207
|
+
* 创建空的 ModuleGraph(用于无文件或解析全失败的兜底场景)
|
|
208
|
+
*/
|
|
209
|
+
export declare function createEmptyModuleGraph(projectRoot: string): ModuleGraph;
|
|
210
|
+
/**
|
|
211
|
+
* F183 修复 3(Codex W1 修正):探测 monorepo per-package tsconfig。
|
|
212
|
+
* 仅扫 workspace 约定目录的直接子目录是否含 tsconfig.json——batch per-file nearest 会命中、
|
|
213
|
+
* 而 module-derivation root-only 会漏的子包配置信号。不再误判根级 tsconfig.base.json 等单包 config-split。
|
|
214
|
+
* fs 探针通过 io 参数注入,便于零全局 mock 单测(避免污染 scanFiles 的 Dirent 调用,Codex C-2)。
|
|
215
|
+
* 返回命中的子包相对路径(如 ['packages/core','apps/web'])。
|
|
216
|
+
*/
|
|
217
|
+
export declare function findMonorepoPackageTsConfigDirs(root: string, io?: {
|
|
218
|
+
readdirSync: (p: string) => Array<{
|
|
219
|
+
name: string;
|
|
220
|
+
isDirectory: () => boolean;
|
|
221
|
+
}>;
|
|
222
|
+
existsSync: (p: string) => boolean;
|
|
223
|
+
}): string[];
|
|
224
|
+
/**
|
|
225
|
+
* TS/JS 项目级 ModuleGraph 构建器(W1.4:取代 legacy src/graph/dependency-graph.ts)。
|
|
226
|
+
*
|
|
227
|
+
* 流程:
|
|
228
|
+
* 1. scanFiles 收集 TS/JS 源文件
|
|
229
|
+
* 2. analyzeFileInternal(ast-analyzer + import-resolver)产出 CodeSkeleton(含 resolvedPath)
|
|
230
|
+
* 3. buildUnifiedGraph 派生 calls + depends-on 边
|
|
231
|
+
* 4. deriveModuleGraph 派生 ModuleGraph 视图
|
|
232
|
+
*/
|
|
233
|
+
export interface BuildModuleGraphOptions {
|
|
234
|
+
/** 用于过滤分析文件的 Glob 模式(默认 '^src/') */
|
|
235
|
+
includeOnly?: string;
|
|
236
|
+
/** 排除模式 */
|
|
237
|
+
excludePatterns?: string[];
|
|
238
|
+
/** tsconfig.json 路径 */
|
|
239
|
+
tsConfigPath?: string;
|
|
240
|
+
}
|
|
241
|
+
export declare class ProjectNotFoundError extends Error {
|
|
242
|
+
constructor(projectRoot: string);
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* 构建项目级 TS/JS ModuleGraph(取代 legacy buildGraph)。
|
|
246
|
+
*
|
|
247
|
+
* @param projectRoot - 项目根目录
|
|
248
|
+
* @param options - 构建选项
|
|
249
|
+
* @returns ModuleGraph
|
|
250
|
+
*/
|
|
251
|
+
export declare function buildModuleGraphForProject(projectRoot: string, options?: BuildModuleGraphOptions): Promise<ModuleGraph>;
|
|
252
|
+
//# sourceMappingURL=module-derivation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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