@lzehrung/codegraph 2.3.20 → 2.3.22
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 +6 -5
- package/THIRD_PARTY_NOTICES +4 -4
- package/codegraph-skill/codegraph/SKILL.md +97 -281
- package/dist/agent/call-hierarchy.d.ts +28 -0
- package/dist/agent/call-hierarchy.d.ts.map +1 -0
- package/dist/agent/call-hierarchy.js +82 -0
- package/dist/agent/call-hierarchy.js.map +1 -0
- package/dist/agent/candidate-tests.d.ts +12 -0
- package/dist/agent/candidate-tests.d.ts.map +1 -0
- package/dist/agent/candidate-tests.js +17 -0
- package/dist/agent/candidate-tests.js.map +1 -0
- package/dist/agent/explain.d.ts +8 -2
- package/dist/agent/explain.d.ts.map +1 -1
- package/dist/agent/explain.js +17 -3
- package/dist/agent/explain.js.map +1 -1
- package/dist/agent/explore.d.ts +3 -3
- package/dist/agent/explore.d.ts.map +1 -1
- package/dist/agent/explore.js +2 -2
- package/dist/agent/explore.js.map +1 -1
- package/dist/agent/file-view.d.ts +55 -0
- package/dist/agent/file-view.d.ts.map +1 -0
- package/dist/agent/file-view.js +521 -0
- package/dist/agent/file-view.js.map +1 -0
- package/dist/agent/follow-ups.d.ts +10 -0
- package/dist/agent/follow-ups.d.ts.map +1 -0
- package/dist/agent/follow-ups.js +175 -0
- package/dist/agent/follow-ups.js.map +1 -0
- package/dist/agent/normalize.d.ts +1 -1
- package/dist/agent/normalize.d.ts.map +1 -1
- package/dist/agent/normalize.js +2 -2
- package/dist/agent/normalize.js.map +1 -1
- package/dist/agent/orient.d.ts +1 -1
- package/dist/agent/orient.d.ts.map +1 -1
- package/dist/agent/orient.js +2 -2
- package/dist/agent/orient.js.map +1 -1
- package/dist/agent/packet.d.ts +1 -1
- package/dist/agent/packet.d.ts.map +1 -1
- package/dist/agent/packet.js +1 -1
- package/dist/agent/packet.js.map +1 -1
- package/dist/agent/query-index/candidates.d.ts +8 -2
- package/dist/agent/query-index/candidates.d.ts.map +1 -1
- package/dist/agent/query-index/candidates.js +12 -5
- package/dist/agent/query-index/candidates.js.map +1 -1
- package/dist/agent/query-index/content.js +2 -2
- package/dist/agent/query-index/content.js.map +1 -1
- package/dist/agent/query-index/query-index-worker.d.ts +8 -0
- package/dist/agent/query-index/query-index-worker.d.ts.map +1 -0
- package/dist/agent/query-index/query-index-worker.js +11 -0
- package/dist/agent/query-index/query-index-worker.js.map +1 -0
- package/dist/agent/query-index/session-store.d.ts +5 -0
- package/dist/agent/query-index/session-store.d.ts.map +1 -0
- package/dist/agent/query-index/session-store.js +69 -0
- package/dist/agent/query-index/session-store.js.map +1 -0
- package/dist/agent/query-index/source-identity.d.ts +3 -0
- package/dist/agent/query-index/source-identity.d.ts.map +1 -0
- package/dist/agent/query-index/source-identity.js +12 -0
- package/dist/agent/query-index/source-identity.js.map +1 -0
- package/dist/agent/query-index/store.d.ts +5 -1
- package/dist/agent/query-index/store.d.ts.map +1 -1
- package/dist/agent/query-index/store.js +98 -31
- package/dist/agent/query-index/store.js.map +1 -1
- package/dist/agent/query-index/update.js +3 -3
- package/dist/agent/query-index/update.js.map +1 -1
- package/dist/agent/query-index/worker-pool.d.ts +27 -0
- package/dist/agent/query-index/worker-pool.d.ts.map +1 -0
- package/dist/agent/query-index/worker-pool.js +114 -0
- package/dist/agent/query-index/worker-pool.js.map +1 -0
- package/dist/agent/refactor-plan.d.ts +40 -0
- package/dist/agent/refactor-plan.d.ts.map +1 -0
- package/dist/agent/refactor-plan.js +226 -0
- package/dist/agent/refactor-plan.js.map +1 -0
- package/dist/agent/rename-preview.d.ts +57 -0
- package/dist/agent/rename-preview.d.ts.map +1 -0
- package/dist/agent/rename-preview.js +1062 -0
- package/dist/agent/rename-preview.js.map +1 -0
- package/dist/agent/search.d.ts +8 -2
- package/dist/agent/search.d.ts.map +1 -1
- package/dist/agent/search.js +26 -9
- package/dist/agent/search.js.map +1 -1
- package/dist/agent/semantic-symbols.d.ts +16 -0
- package/dist/agent/semantic-symbols.d.ts.map +1 -0
- package/dist/agent/semantic-symbols.js +97 -0
- package/dist/agent/semantic-symbols.js.map +1 -0
- package/dist/agent/semantic.d.ts +1 -1
- package/dist/agent/semantic.d.ts.map +1 -1
- package/dist/agent/session-lifecycle.d.ts +5 -0
- package/dist/agent/session-lifecycle.d.ts.map +1 -0
- package/dist/agent/session-lifecycle.js +18 -0
- package/dist/agent/session-lifecycle.js.map +1 -0
- package/dist/agent/session.d.ts +3 -3
- package/dist/agent/session.d.ts.map +1 -1
- package/dist/agent/session.js +73 -26
- package/dist/agent/session.js.map +1 -1
- package/dist/agent/symbol-lookup.d.ts +12 -0
- package/dist/agent/symbol-lookup.d.ts.map +1 -0
- package/dist/agent/symbol-lookup.js +26 -0
- package/dist/agent/symbol-lookup.js.map +1 -0
- package/dist/agent/type-hierarchy.d.ts +39 -0
- package/dist/agent/type-hierarchy.d.ts.map +1 -0
- package/dist/agent/type-hierarchy.js +125 -0
- package/dist/agent/type-hierarchy.js.map +1 -0
- package/dist/agent/workspace-symbols.d.ts +18 -0
- package/dist/agent/workspace-symbols.d.ts.map +1 -0
- package/dist/agent/workspace-symbols.js +75 -0
- package/dist/agent/workspace-symbols.js.map +1 -0
- package/dist/agent-tools.d.ts +6 -6
- package/dist/agent-tools.d.ts.map +1 -1
- package/dist/agent-tools.js +6 -6
- package/dist/agent-tools.js.map +1 -1
- package/dist/agent.d.ts +18 -18
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +10 -10
- package/dist/agent.js.map +1 -1
- package/dist/analysis-summary.d.ts +19 -0
- package/dist/analysis-summary.d.ts.map +1 -0
- package/dist/analysis-summary.js +80 -0
- package/dist/analysis-summary.js.map +1 -0
- package/dist/bin/cli.js +37347 -36812
- package/dist/bin/query-index-worker.js +4382 -0
- package/dist/bin/raw-query-worker.js +383 -0
- package/dist/bootstrap/tree-sitter-languages.d.ts +5 -0
- package/dist/bootstrap/tree-sitter-languages.d.ts.map +1 -0
- package/dist/bootstrap/tree-sitter-languages.js +41 -0
- package/dist/bootstrap/tree-sitter-languages.js.map +1 -0
- package/dist/chunking/chunk-blocks.d.ts +9 -0
- package/dist/chunking/chunk-blocks.d.ts.map +1 -0
- package/dist/chunking/chunk-blocks.js +60 -0
- package/dist/chunking/chunk-blocks.js.map +1 -0
- package/dist/chunking/chunk-file.d.ts +39 -0
- package/dist/chunking/chunk-file.d.ts.map +1 -0
- package/dist/chunking/chunk-file.js +152 -0
- package/dist/chunking/chunk-file.js.map +1 -0
- package/dist/chunking/chunk-id.d.ts +7 -0
- package/dist/chunking/chunk-id.d.ts.map +1 -0
- package/dist/chunking/chunk-id.js +30 -0
- package/dist/chunking/chunk-id.js.map +1 -0
- package/dist/chunking/chunk-matches.d.ts +4 -0
- package/dist/chunking/chunk-matches.d.ts.map +1 -0
- package/dist/chunking/chunk-matches.js +65 -0
- package/dist/chunking/chunk-matches.js.map +1 -0
- package/dist/chunking/chunk-merge.d.ts +4 -0
- package/dist/chunking/chunk-merge.d.ts.map +1 -0
- package/dist/chunking/chunk-merge.js +144 -0
- package/dist/chunking/chunk-merge.js.map +1 -0
- package/dist/chunking/chunk-sfc.d.ts +18 -0
- package/dist/chunking/chunk-sfc.d.ts.map +1 -0
- package/dist/chunking/chunk-sfc.js +165 -0
- package/dist/chunking/chunk-sfc.js.map +1 -0
- package/dist/chunking/chunk-split.d.ts +6 -0
- package/dist/chunking/chunk-split.d.ts.map +1 -0
- package/dist/chunking/chunk-split.js +155 -0
- package/dist/chunking/chunk-split.js.map +1 -0
- package/dist/chunking/chunk-text-file.d.ts +28 -0
- package/dist/chunking/chunk-text-file.d.ts.map +1 -0
- package/dist/chunking/chunk-text-file.js +107 -0
- package/dist/chunking/chunk-text-file.js.map +1 -0
- package/dist/chunking/language-config.d.ts +35 -0
- package/dist/chunking/language-config.d.ts.map +1 -0
- package/dist/chunking/language-config.js +24 -0
- package/dist/chunking/language-config.js.map +1 -0
- package/dist/cli/affected.js +1 -1
- package/dist/cli/affected.js.map +1 -1
- package/dist/cli/call-hierarchy.d.ts +6 -0
- package/dist/cli/call-hierarchy.d.ts.map +1 -0
- package/dist/cli/call-hierarchy.js +72 -0
- package/dist/cli/call-hierarchy.js.map +1 -0
- package/dist/cli/chunk.js +5 -5
- package/dist/cli/chunk.js.map +1 -1
- package/dist/cli/command-catalog.d.ts +14 -0
- package/dist/cli/command-catalog.d.ts.map +1 -0
- package/dist/cli/command-catalog.js +118 -0
- package/dist/cli/command-catalog.js.map +1 -0
- package/dist/cli/command-table.d.ts +16 -0
- package/dist/cli/command-table.d.ts.map +1 -0
- package/dist/cli/command-table.js +758 -0
- package/dist/cli/command-table.js.map +1 -0
- package/dist/cli/compile-cache.d.ts +22 -0
- package/dist/cli/compile-cache.d.ts.map +1 -0
- package/dist/cli/compile-cache.js +81 -0
- package/dist/cli/compile-cache.js.map +1 -0
- package/dist/cli/discovery-globs.d.ts +11 -0
- package/dist/cli/discovery-globs.d.ts.map +1 -0
- package/dist/cli/discovery-globs.js +74 -0
- package/dist/cli/discovery-globs.js.map +1 -0
- package/dist/cli/doctor.d.ts +1 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +3 -3
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/drift.d.ts +1 -1
- package/dist/cli/drift.d.ts.map +1 -1
- package/dist/cli/duplicate-similarity.d.ts +10 -0
- package/dist/cli/duplicate-similarity.d.ts.map +1 -0
- package/dist/cli/duplicate-similarity.js +20 -0
- package/dist/cli/duplicate-similarity.js.map +1 -0
- package/dist/cli/file.js +2 -2
- package/dist/cli/file.js.map +1 -1
- package/dist/cli/graph-delta.d.ts +25 -0
- package/dist/cli/graph-delta.d.ts.map +1 -0
- package/dist/cli/graph-delta.js +80 -0
- package/dist/cli/graph-delta.js.map +1 -0
- package/dist/cli/graph-queries.d.ts +23 -0
- package/dist/cli/graph-queries.d.ts.map +1 -0
- package/dist/cli/graph-queries.js +265 -0
- package/dist/cli/graph-queries.js.map +1 -0
- package/dist/cli/graph.d.ts +2 -2
- package/dist/cli/graph.d.ts.map +1 -1
- package/dist/cli/graph.js +2 -2
- package/dist/cli/graph.js.map +1 -1
- package/dist/cli/grep.d.ts +1 -1
- package/dist/cli/grep.d.ts.map +1 -1
- package/dist/cli/grep.js +1 -1
- package/dist/cli/grep.js.map +1 -1
- package/dist/cli/help.d.ts +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +2 -2
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/impact.d.ts +2 -2
- package/dist/cli/impact.d.ts.map +1 -1
- package/dist/cli/impact.js +4 -4
- package/dist/cli/impact.js.map +1 -1
- package/dist/cli/index-policy.d.ts +36 -0
- package/dist/cli/index-policy.d.ts.map +1 -0
- package/dist/cli/index-policy.js +169 -0
- package/dist/cli/index-policy.js.map +1 -0
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/inspect.d.ts +2 -2
- package/dist/cli/inspect.d.ts.map +1 -1
- package/dist/cli/inspect.js +2 -2
- package/dist/cli/inspect.js.map +1 -1
- package/dist/cli/invocation-context.d.ts +77 -0
- package/dist/cli/invocation-context.d.ts.map +1 -0
- package/dist/cli/invocation-context.js +423 -0
- package/dist/cli/invocation-context.js.map +1 -0
- package/dist/cli/links.d.ts +2 -2
- package/dist/cli/links.d.ts.map +1 -1
- package/dist/cli/links.js +1 -1
- package/dist/cli/links.js.map +1 -1
- package/dist/cli/location.d.ts +1 -1
- package/dist/cli/location.d.ts.map +1 -1
- package/dist/cli/location.js +1 -1
- package/dist/cli/location.js.map +1 -1
- package/dist/cli/navigation.d.ts +2 -2
- package/dist/cli/navigation.d.ts.map +1 -1
- package/dist/cli/navigation.js +2 -2
- package/dist/cli/navigation.js.map +1 -1
- package/dist/cli/packet.js +1 -1
- package/dist/cli/packet.js.map +1 -1
- package/dist/cli/project-file.d.ts +13 -0
- package/dist/cli/project-file.d.ts.map +1 -0
- package/dist/cli/project-file.js +23 -0
- package/dist/cli/project-file.js.map +1 -0
- package/dist/cli/refactor-plan.d.ts +6 -0
- package/dist/cli/refactor-plan.d.ts.map +1 -0
- package/dist/cli/refactor-plan.js +84 -0
- package/dist/cli/refactor-plan.js.map +1 -0
- package/dist/cli/rename-preview.d.ts +4 -0
- package/dist/cli/rename-preview.d.ts.map +1 -0
- package/dist/cli/rename-preview.js +92 -0
- package/dist/cli/rename-preview.js.map +1 -0
- package/dist/cli/review.d.ts +2 -2
- package/dist/cli/review.d.ts.map +1 -1
- package/dist/cli/review.js +4 -4
- package/dist/cli/review.js.map +1 -1
- package/dist/cli/root-policy.d.ts +53 -0
- package/dist/cli/root-policy.d.ts.map +1 -0
- package/dist/cli/root-policy.js +221 -0
- package/dist/cli/root-policy.js.map +1 -0
- package/dist/cli/server.js +5 -5
- package/dist/cli/server.js.map +1 -1
- package/dist/cli/skill.js +1 -1
- package/dist/cli/skill.js.map +1 -1
- package/dist/cli/symbols.js +1 -1
- package/dist/cli/symbols.js.map +1 -1
- package/dist/cli/type-hierarchy.d.ts +6 -0
- package/dist/cli/type-hierarchy.d.ts.map +1 -0
- package/dist/cli/type-hierarchy.js +90 -0
- package/dist/cli/type-hierarchy.js.map +1 -0
- package/dist/cli/viewer.js +2 -2
- package/dist/cli/viewer.js.map +1 -1
- package/dist/cli-bootstrap.d.ts +3 -0
- package/dist/cli-bootstrap.d.ts.map +1 -0
- package/dist/cli-bootstrap.js +10 -0
- package/dist/cli-bootstrap.js.map +1 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +5 -5
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +0 -1
- package/dist/config.js.map +1 -1
- package/dist/document-links/asciidoc.d.ts.map +1 -0
- package/dist/document-links/asciidoc.js.map +1 -0
- package/dist/document-links/check.d.ts +32 -0
- package/dist/document-links/check.d.ts.map +1 -0
- package/dist/document-links/check.js +286 -0
- package/dist/document-links/check.js.map +1 -0
- package/dist/document-links/html.d.ts.map +1 -0
- package/dist/document-links/html.js.map +1 -0
- package/dist/document-links/markdown.d.ts.map +1 -0
- package/dist/document-links/markdown.js.map +1 -0
- package/dist/document-links/rst.d.ts.map +1 -0
- package/dist/document-links/rst.js.map +1 -0
- package/dist/document-links/sfc.d.ts.map +1 -0
- package/dist/document-links/sfc.js.map +1 -0
- package/dist/document-links/shared.d.ts.map +1 -0
- package/dist/document-links/shared.js.map +1 -0
- package/dist/document-links.d.ts +12 -0
- package/dist/document-links.d.ts.map +1 -0
- package/dist/document-links.js +49 -0
- package/dist/document-links.js.map +1 -0
- package/dist/drift/snapshot.js +2 -2
- package/dist/drift/snapshot.js.map +1 -1
- package/dist/drift/types.d.ts +2 -2
- package/dist/drift/types.d.ts.map +1 -1
- package/dist/duplicates/unit-cache.d.ts +46 -0
- package/dist/duplicates/unit-cache.d.ts.map +1 -0
- package/dist/duplicates/unit-cache.js +512 -0
- package/dist/duplicates/unit-cache.js.map +1 -0
- package/dist/duplicates/units.d.ts +1 -1
- package/dist/duplicates/units.d.ts.map +1 -1
- package/dist/duplicates/units.js +6 -6
- package/dist/duplicates/units.js.map +1 -1
- package/dist/duplicates-leads.d.ts +39 -0
- package/dist/duplicates-leads.d.ts.map +1 -0
- package/dist/duplicates-leads.js +112 -0
- package/dist/duplicates-leads.js.map +1 -0
- package/dist/duplicates.d.ts +1 -1
- package/dist/duplicates.d.ts.map +1 -1
- package/dist/duplicates.js +2 -2
- package/dist/duplicates.js.map +1 -1
- package/dist/graph-builder.d.ts +1 -1
- package/dist/graph-builder.d.ts.map +1 -1
- package/dist/graph-builder.js +4 -4
- package/dist/graph-builder.js.map +1 -1
- package/dist/graph-edge-collector.d.ts +3 -3
- package/dist/graph-edge-collector.d.ts.map +1 -1
- package/dist/graph-edge-collector.js +6 -6
- package/dist/graph-edge-collector.js.map +1 -1
- package/dist/graphs/cycles.js +1 -1
- package/dist/graphs/cycles.js.map +1 -1
- package/dist/graphs/edge-resolution.d.ts +25 -0
- package/dist/graphs/edge-resolution.d.ts.map +1 -0
- package/dist/graphs/edge-resolution.js +97 -0
- package/dist/graphs/edge-resolution.js.map +1 -0
- package/dist/graphs/grep.d.ts +1 -1
- package/dist/graphs/grep.d.ts.map +1 -1
- package/dist/graphs/grep.js +4 -4
- package/dist/graphs/grep.js.map +1 -1
- package/dist/graphs/specifiers.d.ts +1 -1
- package/dist/graphs/specifiers.d.ts.map +1 -1
- package/dist/graphs/specifiers.js +5 -5
- package/dist/graphs/specifiers.js.map +1 -1
- package/dist/graphs/symbol-graph-detailed/ast.d.ts +0 -1
- package/dist/graphs/symbol-graph-detailed/ast.d.ts.map +1 -1
- package/dist/graphs/symbol-graph-detailed/ast.js +1 -8
- package/dist/graphs/symbol-graph-detailed/ast.js.map +1 -1
- package/dist/graphs/symbol-graph-detailed/edge-passes.d.ts +35 -0
- package/dist/graphs/symbol-graph-detailed/edge-passes.d.ts.map +1 -0
- package/dist/graphs/symbol-graph-detailed/edge-passes.js +676 -0
- package/dist/graphs/symbol-graph-detailed/edge-passes.js.map +1 -0
- package/dist/graphs/symbol-graph-detailed/import-aliases.d.ts +10 -0
- package/dist/graphs/symbol-graph-detailed/import-aliases.d.ts.map +1 -0
- package/dist/graphs/symbol-graph-detailed/import-aliases.js +44 -0
- package/dist/graphs/symbol-graph-detailed/import-aliases.js.map +1 -0
- package/dist/graphs/symbol-graph-detailed/member-chains.d.ts +17 -0
- package/dist/graphs/symbol-graph-detailed/member-chains.d.ts.map +1 -0
- package/dist/graphs/symbol-graph-detailed/member-chains.js +30 -0
- package/dist/graphs/symbol-graph-detailed/member-chains.js.map +1 -0
- package/dist/graphs/symbol-graph-detailed/receiver-calls.d.ts +69 -0
- package/dist/graphs/symbol-graph-detailed/receiver-calls.d.ts.map +1 -0
- package/dist/graphs/symbol-graph-detailed/receiver-calls.js +408 -0
- package/dist/graphs/symbol-graph-detailed/receiver-calls.js.map +1 -0
- package/dist/graphs/symbol-graph-detailed.d.ts.map +1 -1
- package/dist/graphs/symbol-graph-detailed.js +22 -12
- package/dist/graphs/symbol-graph-detailed.js.map +1 -1
- package/dist/graphs/types.d.ts +1 -1
- package/dist/graphs/types.d.ts.map +1 -1
- package/dist/graphs/unresolved.js +1 -1
- package/dist/graphs/unresolved.js.map +1 -1
- package/dist/impact/analyzer.js +4 -4
- package/dist/impact/analyzer.js.map +1 -1
- package/dist/impact/call-compatibility/text-scanner.d.ts +23 -0
- package/dist/impact/call-compatibility/text-scanner.d.ts.map +1 -0
- package/dist/impact/call-compatibility/text-scanner.js +615 -0
- package/dist/impact/call-compatibility/text-scanner.js.map +1 -0
- package/dist/impact/call-compatibility.d.ts +24 -0
- package/dist/impact/call-compatibility.d.ts.map +1 -0
- package/dist/impact/call-compatibility.js +1023 -0
- package/dist/impact/call-compatibility.js.map +1 -0
- package/dist/impact/context.js +1 -1
- package/dist/impact/context.js.map +1 -1
- package/dist/impact/direct.d.ts +1 -1
- package/dist/impact/direct.d.ts.map +1 -1
- package/dist/impact/index.d.ts +1 -1
- package/dist/impact/index.d.ts.map +1 -1
- package/dist/impact/index.js +1 -1
- package/dist/impact/index.js.map +1 -1
- package/dist/impact/map.js +1 -1
- package/dist/impact/map.js.map +1 -1
- package/dist/impact/member-resolution-coverage.d.ts +14 -0
- package/dist/impact/member-resolution-coverage.d.ts.map +1 -0
- package/dist/impact/member-resolution-coverage.js +42 -0
- package/dist/impact/member-resolution-coverage.js.map +1 -0
- package/dist/impact/reference-cache.d.ts +12 -0
- package/dist/impact/reference-cache.d.ts.map +1 -0
- package/dist/impact/reference-cache.js +101 -0
- package/dist/impact/reference-cache.js.map +1 -0
- package/dist/impact/report-compact.d.ts +8 -0
- package/dist/impact/report-compact.d.ts.map +1 -0
- package/dist/impact/report-compact.js +153 -0
- package/dist/impact/report-compact.js.map +1 -0
- package/dist/impact/report-full.d.ts +10 -0
- package/dist/impact/report-full.d.ts.map +1 -0
- package/dist/impact/report-full.js +67 -0
- package/dist/impact/report-full.js.map +1 -0
- package/dist/impact/report-parts.d.ts +51 -0
- package/dist/impact/report-parts.d.ts.map +1 -0
- package/dist/impact/report-parts.js +2 -0
- package/dist/impact/report-parts.js.map +1 -0
- package/dist/impact/report-shared.d.ts +76 -0
- package/dist/impact/report-shared.d.ts.map +1 -0
- package/dist/impact/report-shared.js +130 -0
- package/dist/impact/report-shared.js.map +1 -0
- package/dist/impact/report-suggestions.js +2 -2
- package/dist/impact/report-suggestions.js.map +1 -1
- package/dist/impact/report.js +5 -5
- package/dist/impact/report.js.map +1 -1
- package/dist/impact/streaming.d.ts +1 -1
- package/dist/impact/streaming.d.ts.map +1 -1
- package/dist/impact/streaming.js +2 -2
- package/dist/impact/streaming.js.map +1 -1
- package/dist/impact/test-patterns.d.ts +6 -0
- package/dist/impact/test-patterns.d.ts.map +1 -0
- package/dist/impact/test-patterns.js +65 -0
- package/dist/impact/test-patterns.js.map +1 -0
- package/dist/impact/transitive.js +1 -1
- package/dist/impact/transitive.js.map +1 -1
- package/dist/impact/types.d.ts +3 -3
- package/dist/impact/types.d.ts.map +1 -1
- package/dist/impact/types.js +1 -1
- package/dist/impact/types.js.map +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/indexer/build-cache/manifest.d.ts +4 -4
- package/dist/indexer/build-cache/manifest.d.ts.map +1 -1
- package/dist/indexer/build-cache/manifest.js +9 -34
- package/dist/indexer/build-cache/manifest.js.map +1 -1
- package/dist/indexer/build-cache/module-cache.d.ts +1 -1
- package/dist/indexer/build-cache/module-cache.d.ts.map +1 -1
- package/dist/indexer/build-cache/module-cache.js +4 -4
- package/dist/indexer/build-cache/module-cache.js.map +1 -1
- package/dist/indexer/build-cache/options.d.ts +6 -4
- package/dist/indexer/build-cache/options.d.ts.map +1 -1
- package/dist/indexer/build-cache/options.js +9 -7
- package/dist/indexer/build-cache/options.js.map +1 -1
- package/dist/indexer/build-cache/project-snapshot.d.ts +1 -1
- package/dist/indexer/build-cache/project-snapshot.d.ts.map +1 -1
- package/dist/indexer/build-cache/project-snapshot.js +16 -19
- package/dist/indexer/build-cache/project-snapshot.js.map +1 -1
- package/dist/indexer/build-cache/reports.js +1 -1
- package/dist/indexer/build-cache/reports.js.map +1 -1
- package/dist/indexer/build-cache/resolver-environment.d.ts +6 -2
- package/dist/indexer/build-cache/resolver-environment.d.ts.map +1 -1
- package/dist/indexer/build-cache/resolver-environment.js +41 -5
- package/dist/indexer/build-cache/resolver-environment.js.map +1 -1
- package/dist/indexer/build-index.d.ts.map +1 -1
- package/dist/indexer/build-index.js +63 -29
- package/dist/indexer/build-index.js.map +1 -1
- package/dist/indexer/build-manifest.d.ts +3 -0
- package/dist/indexer/build-manifest.d.ts.map +1 -1
- package/dist/indexer/build-manifest.js +1 -1
- package/dist/indexer/build-manifest.js.map +1 -1
- package/dist/indexer/build-workers.d.ts +1 -1
- package/dist/indexer/build-workers.d.ts.map +1 -1
- package/dist/indexer/build-workers.js +6 -6
- package/dist/indexer/build-workers.js.map +1 -1
- package/dist/indexer/finalize.d.ts +3 -2
- package/dist/indexer/finalize.d.ts.map +1 -1
- package/dist/indexer/finalize.js +2 -1
- package/dist/indexer/finalize.js.map +1 -1
- package/dist/indexer/imports/graph-only.d.ts +13 -0
- package/dist/indexer/imports/graph-only.d.ts.map +1 -0
- package/dist/indexer/imports/graph-only.js +40 -0
- package/dist/indexer/imports/graph-only.js.map +1 -0
- package/dist/indexer/imports/js-text-imports.d.ts +9 -0
- package/dist/indexer/imports/js-text-imports.d.ts.map +1 -0
- package/dist/indexer/imports/js-text-imports.js +181 -0
- package/dist/indexer/imports/js-text-imports.js.map +1 -0
- package/dist/indexer/imports/language-specific.d.ts +26 -0
- package/dist/indexer/imports/language-specific.d.ts.map +1 -0
- package/dist/indexer/imports/language-specific.js +449 -0
- package/dist/indexer/imports/language-specific.js.map +1 -0
- package/dist/indexer/imports/native-captures.d.ts +16 -0
- package/dist/indexer/imports/native-captures.d.ts.map +1 -0
- package/dist/indexer/imports/native-captures.js +142 -0
- package/dist/indexer/imports/native-captures.js.map +1 -0
- package/dist/indexer/imports.d.ts +1 -1
- package/dist/indexer/imports.d.ts.map +1 -1
- package/dist/indexer/imports.js +7 -7
- package/dist/indexer/imports.js.map +1 -1
- package/dist/indexer/incremental-plan.d.ts +4 -3
- package/dist/indexer/incremental-plan.d.ts.map +1 -1
- package/dist/indexer/incremental-plan.js +9 -5
- package/dist/indexer/incremental-plan.js.map +1 -1
- package/dist/indexer/locals-and-exports.d.ts +1 -1
- package/dist/indexer/locals-and-exports.d.ts.map +1 -1
- package/dist/indexer/locals-and-exports.js +5 -5
- package/dist/indexer/locals-and-exports.js.map +1 -1
- package/dist/indexer/navigation-goto.js +1 -1
- package/dist/indexer/navigation-goto.js.map +1 -1
- package/dist/indexer/navigation-local.d.ts +2 -1
- package/dist/indexer/navigation-local.d.ts.map +1 -1
- package/dist/indexer/navigation-local.js +26 -21
- package/dist/indexer/navigation-local.js.map +1 -1
- package/dist/indexer/navigation.js +1 -1
- package/dist/indexer/navigation.js.map +1 -1
- package/dist/indexer/parse-context.d.ts +2 -2
- package/dist/indexer/parse-context.d.ts.map +1 -1
- package/dist/indexer/parse-context.js +5 -5
- package/dist/indexer/parse-context.js.map +1 -1
- package/dist/indexer/scope.d.ts +1 -1
- package/dist/indexer/scope.d.ts.map +1 -1
- package/dist/indexer/scope.js +2 -2
- package/dist/indexer/scope.js.map +1 -1
- package/dist/indexer/shared.d.ts +1 -1
- package/dist/indexer/shared.d.ts.map +1 -1
- package/dist/indexer/shared.js +1 -1
- package/dist/indexer/shared.js.map +1 -1
- package/dist/indexer/symbols.js +1 -1
- package/dist/indexer/symbols.js.map +1 -1
- package/dist/indexer/types.d.ts +4 -2
- package/dist/indexer/types.d.ts.map +1 -1
- package/dist/indexer.d.ts +2 -2
- package/dist/indexer.d.ts.map +1 -1
- package/dist/installer/locks.js +1 -1
- package/dist/installer/locks.js.map +1 -1
- package/dist/installer/registry.js +1 -1
- package/dist/installer/registry.js.map +1 -1
- package/dist/languages/definitions/adoc.js +1 -1
- package/dist/languages/definitions/adoc.js.map +1 -1
- package/dist/languages/definitions/astro.js +1 -1
- package/dist/languages/definitions/astro.js.map +1 -1
- package/dist/languages/definitions/c-family.d.ts +34 -0
- package/dist/languages/definitions/c-family.d.ts.map +1 -0
- package/dist/languages/definitions/c-family.js +177 -0
- package/dist/languages/definitions/c-family.js.map +1 -0
- package/dist/languages/definitions/c.js +1 -1
- package/dist/languages/definitions/c.js.map +1 -1
- package/dist/languages/definitions/cpp.js +1 -1
- package/dist/languages/definitions/cpp.js.map +1 -1
- package/dist/languages/definitions/css-like.d.ts +5 -0
- package/dist/languages/definitions/css-like.d.ts.map +1 -0
- package/dist/languages/definitions/css-like.js +32 -0
- package/dist/languages/definitions/css-like.js.map +1 -0
- package/dist/languages/definitions/css.js +1 -1
- package/dist/languages/definitions/css.js.map +1 -1
- package/dist/languages/definitions/hbs.js +1 -1
- package/dist/languages/definitions/hbs.js.map +1 -1
- package/dist/languages/definitions/html-stub.d.ts +18 -0
- package/dist/languages/definitions/html-stub.d.ts.map +1 -0
- package/dist/languages/definitions/html-stub.js +36 -0
- package/dist/languages/definitions/html-stub.js.map +1 -0
- package/dist/languages/definitions/javascript.js +1 -1
- package/dist/languages/definitions/javascript.js.map +1 -1
- package/dist/languages/definitions/js-family.d.ts +5 -0
- package/dist/languages/definitions/js-family.d.ts.map +1 -0
- package/dist/languages/definitions/js-family.js +75 -0
- package/dist/languages/definitions/js-family.js.map +1 -0
- package/dist/languages/definitions/less.js +1 -1
- package/dist/languages/definitions/less.js.map +1 -1
- package/dist/languages/definitions/markdown.js +1 -1
- package/dist/languages/definitions/markdown.js.map +1 -1
- package/dist/languages/definitions/mdx.js +1 -1
- package/dist/languages/definitions/mdx.js.map +1 -1
- package/dist/languages/definitions/rst.js +1 -1
- package/dist/languages/definitions/rst.js.map +1 -1
- package/dist/languages/definitions/typescript.js +1 -1
- package/dist/languages/definitions/typescript.js.map +1 -1
- package/dist/languages/file-prep.d.ts +36 -0
- package/dist/languages/file-prep.d.ts.map +1 -0
- package/dist/languages/file-prep.js +76 -0
- package/dist/languages/file-prep.js.map +1 -0
- package/dist/languages/import-statement-parsers.d.ts +57 -0
- package/dist/languages/import-statement-parsers.d.ts.map +1 -0
- package/dist/languages/import-statement-parsers.js +383 -0
- package/dist/languages/import-statement-parsers.js.map +1 -0
- package/dist/languages/query-generator.d.ts +6 -0
- package/dist/languages/query-generator.d.ts.map +1 -0
- package/dist/languages/query-generator.js +46 -0
- package/dist/languages/query-generator.js.map +1 -0
- package/dist/lifecycle/manifest.d.ts +1 -1
- package/dist/lifecycle/manifest.d.ts.map +1 -1
- package/dist/lifecycle/manifest.js +6 -4
- package/dist/lifecycle/manifest.js.map +1 -1
- package/dist/mcp/handlers.d.ts +7 -7
- package/dist/mcp/handlers.d.ts.map +1 -1
- package/dist/mcp/handlers.js +12 -15
- package/dist/mcp/handlers.js.map +1 -1
- package/dist/mcp/http-transport.d.ts +14 -0
- package/dist/mcp/http-transport.d.ts.map +1 -0
- package/dist/mcp/http-transport.js +185 -0
- package/dist/mcp/http-transport.js.map +1 -0
- package/dist/mcp/legacy-sessions.d.ts +38 -0
- package/dist/mcp/legacy-sessions.d.ts.map +1 -0
- package/dist/mcp/legacy-sessions.js +264 -0
- package/dist/mcp/legacy-sessions.js.map +1 -0
- package/dist/mcp/lifecycle-health.d.ts +12 -0
- package/dist/mcp/lifecycle-health.d.ts.map +1 -0
- package/dist/mcp/lifecycle-health.js +37 -0
- package/dist/mcp/lifecycle-health.js.map +1 -0
- package/dist/mcp/protocol.d.ts +1 -1
- package/dist/mcp/protocol.d.ts.map +1 -1
- package/dist/mcp/protocol.js +3 -3
- package/dist/mcp/protocol.js.map +1 -1
- package/dist/mcp/security.js +1 -1
- package/dist/mcp/security.js.map +1 -1
- package/dist/mcp/server.d.ts +4 -4
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +6 -6
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/sqlite-guard.d.ts +3 -0
- package/dist/mcp/sqlite-guard.d.ts.map +1 -0
- package/dist/mcp/sqlite-guard.js +35 -0
- package/dist/mcp/sqlite-guard.js.map +1 -0
- package/dist/mcp/stdio-lifecycle.d.ts +23 -0
- package/dist/mcp/stdio-lifecycle.d.ts.map +1 -0
- package/dist/mcp/stdio-lifecycle.js +83 -0
- package/dist/mcp/stdio-lifecycle.js.map +1 -0
- package/dist/mcp/tools.js +2 -2
- package/dist/mcp/tools.js.map +1 -1
- package/dist/native/binding-loader.d.ts +51 -0
- package/dist/native/binding-loader.d.ts.map +1 -0
- package/dist/native/binding-loader.js +223 -0
- package/dist/native/binding-loader.js.map +1 -0
- package/dist/native/byte-index.d.ts +26 -0
- package/dist/native/byte-index.d.ts.map +1 -0
- package/dist/native/byte-index.js +70 -0
- package/dist/native/byte-index.js.map +1 -0
- package/dist/native/execution.js +1 -1
- package/dist/native/execution.js.map +1 -1
- package/dist/native/js-bridge.d.ts +7 -0
- package/dist/native/js-bridge.d.ts.map +1 -0
- package/dist/native/js-bridge.js +20 -0
- package/dist/native/js-bridge.js.map +1 -0
- package/dist/native/native-backend-report.d.ts +22 -0
- package/dist/native/native-backend-report.d.ts.map +1 -0
- package/dist/native/native-backend-report.js +102 -0
- package/dist/native/native-backend-report.js.map +1 -0
- package/dist/native/projected-tree.d.ts +53 -0
- package/dist/native/projected-tree.d.ts.map +1 -0
- package/dist/native/projected-tree.js +180 -0
- package/dist/native/projected-tree.js.map +1 -0
- package/dist/native/query-results.d.ts +12 -0
- package/dist/native/query-results.d.ts.map +1 -0
- package/dist/native/query-results.js +34 -0
- package/dist/native/query-results.js.map +1 -0
- package/dist/native/runtime-cache.d.ts +128 -0
- package/dist/native/runtime-cache.d.ts.map +1 -0
- package/dist/native/runtime-cache.js +667 -0
- package/dist/native/runtime-cache.js.map +1 -0
- package/dist/native/runtime.js +3 -3
- package/dist/native/runtime.js.map +1 -1
- package/dist/native/tree-shape.d.ts +21 -0
- package/dist/native/tree-shape.d.ts.map +1 -0
- package/dist/native/tree-shape.js +28 -0
- package/dist/native/tree-shape.js.map +1 -0
- package/dist/native/tree-sitter-native.d.ts +6 -0
- package/dist/native/tree-sitter-native.d.ts.map +1 -0
- package/dist/native/tree-sitter-native.js +5 -0
- package/dist/native/tree-sitter-native.js.map +1 -0
- package/dist/review/deleted.js +2 -2
- package/dist/review/deleted.js.map +1 -1
- package/dist/review/report.d.ts +3 -3
- package/dist/review/report.d.ts.map +1 -1
- package/dist/review/report.js +2 -2
- package/dist/review/report.js.map +1 -1
- package/dist/review/summaries.js +3 -3
- package/dist/review/summaries.js.map +1 -1
- package/dist/review/types.d.ts +3 -3
- package/dist/review/types.d.ts.map +1 -1
- package/dist/review.js +3 -3
- package/dist/review.js.map +1 -1
- package/dist/runtime-identity.d.ts +27 -0
- package/dist/runtime-identity.d.ts.map +1 -0
- package/dist/runtime-identity.js +75 -0
- package/dist/runtime-identity.js.map +1 -0
- package/dist/session.js +1 -1
- package/dist/session.js.map +1 -1
- package/dist/sql/classify-sql-file.d.ts +3 -0
- package/dist/sql/classify-sql-file.d.ts.map +1 -0
- package/dist/sql/classify-sql-file.js +42 -0
- package/dist/sql/classify-sql-file.js.map +1 -0
- package/dist/sql/extract-facts.d.ts +4 -0
- package/dist/sql/extract-facts.d.ts.map +1 -0
- package/dist/sql/extract-facts.js +511 -0
- package/dist/sql/extract-facts.js.map +1 -0
- package/dist/sql/graph.js +1 -1
- package/dist/sql/graph.js.map +1 -1
- package/dist/sql/index.d.ts +2 -2
- package/dist/sql/index.d.ts.map +1 -1
- package/dist/sql/index.js +2 -2
- package/dist/sql/index.js.map +1 -1
- package/dist/sql/navigation.js +1 -1
- package/dist/sql/navigation.js.map +1 -1
- package/dist/sql/review.js +2 -2
- package/dist/sql/review.js.map +1 -1
- package/dist/sql/source-graph.d.ts +19 -0
- package/dist/sql/source-graph.d.ts.map +1 -0
- package/dist/sql/source-graph.js +195 -0
- package/dist/sql/source-graph.js.map +1 -0
- package/dist/sqlite/query.d.ts +2 -2
- package/dist/sqlite/query.d.ts.map +1 -1
- package/dist/sqlite/query.js +3 -3
- package/dist/sqlite/query.js.map +1 -1
- package/dist/sqlite/raw-query-worker-pool.d.ts +66 -0
- package/dist/sqlite/raw-query-worker-pool.d.ts.map +1 -0
- package/dist/sqlite/raw-query-worker-pool.js +146 -0
- package/dist/sqlite/raw-query-worker-pool.js.map +1 -0
- package/dist/sqlite/raw-query-worker.d.ts +22 -0
- package/dist/sqlite/raw-query-worker.d.ts.map +1 -0
- package/dist/sqlite/raw-query-worker.js +31 -0
- package/dist/sqlite/raw-query-worker.js.map +1 -0
- package/dist/sqlite/row-bounds.d.ts +24 -0
- package/dist/sqlite/row-bounds.d.ts.map +1 -0
- package/dist/sqlite/row-bounds.js +95 -0
- package/dist/sqlite/row-bounds.js.map +1 -0
- package/dist/sqlite-driver.js +1 -1
- package/dist/sqlite-driver.js.map +1 -1
- package/dist/util/bloom-filter.d.ts +100 -0
- package/dist/util/bloom-filter.d.ts.map +1 -0
- package/dist/util/bloom-filter.js +206 -0
- package/dist/util/bloom-filter.js.map +1 -0
- package/dist/util/confined-file.d.ts +48 -0
- package/dist/util/confined-file.d.ts.map +1 -0
- package/dist/util/confined-file.js +164 -0
- package/dist/util/confined-file.js.map +1 -0
- package/dist/util/discovery-path.d.ts +3 -0
- package/dist/util/discovery-path.d.ts.map +1 -0
- package/dist/util/discovery-path.js +19 -0
- package/dist/util/discovery-path.js.map +1 -0
- package/dist/util/git.d.ts +13 -10
- package/dist/util/git.d.ts.map +1 -1
- package/dist/util/git.js +29 -25
- package/dist/util/git.js.map +1 -1
- package/dist/util/graph-edges.d.ts +5 -0
- package/dist/util/graph-edges.d.ts.map +1 -0
- package/dist/util/graph-edges.js +42 -0
- package/dist/util/graph-edges.js.map +1 -0
- package/dist/util/graph-only-extensions.d.ts +5 -0
- package/dist/util/graph-only-extensions.d.ts.map +1 -0
- package/dist/util/graph-only-extensions.js +12 -0
- package/dist/util/graph-only-extensions.js.map +1 -0
- package/dist/util/include-roots.d.ts +6 -0
- package/dist/util/include-roots.d.ts.map +1 -0
- package/dist/util/include-roots.js +53 -0
- package/dist/util/include-roots.js.map +1 -0
- package/dist/util/lazy-symbols.d.ts +166 -0
- package/dist/util/lazy-symbols.d.ts.map +1 -0
- package/dist/util/lazy-symbols.js +365 -0
- package/dist/util/lazy-symbols.js.map +1 -0
- package/dist/util/lru-map.d.ts +3 -0
- package/dist/util/lru-map.d.ts.map +1 -0
- package/dist/util/lru-map.js +22 -0
- package/dist/util/lru-map.js.map +1 -0
- package/dist/util/member-access.d.ts +26 -0
- package/dist/util/member-access.d.ts.map +1 -0
- package/dist/util/member-access.js +185 -0
- package/dist/util/member-access.js.map +1 -0
- package/dist/util/package-exports.d.ts +25 -0
- package/dist/util/package-exports.d.ts.map +1 -0
- package/dist/util/package-exports.js +79 -0
- package/dist/util/package-exports.js.map +1 -0
- package/dist/util/package-info.d.ts +12 -0
- package/dist/util/package-info.d.ts.map +1 -0
- package/dist/util/package-info.js +57 -0
- package/dist/util/package-info.js.map +1 -0
- package/dist/util/partial-results.d.ts +81 -0
- package/dist/util/partial-results.d.ts.map +1 -0
- package/dist/util/partial-results.js +290 -0
- package/dist/util/partial-results.js.map +1 -0
- package/dist/util/project-files/definitions.d.ts +40 -0
- package/dist/util/project-files/definitions.d.ts.map +1 -0
- package/dist/util/project-files/definitions.js.map +1 -0
- package/dist/util/project-files/parsers.d.ts.map +1 -0
- package/dist/util/project-files/parsers.js.map +1 -0
- package/dist/util/project-files.d.ts +153 -0
- package/dist/util/project-files.d.ts.map +1 -0
- package/dist/util/project-files.js +1460 -0
- package/dist/util/project-files.js.map +1 -0
- package/dist/util/resolution/find-first-existing.d.ts +2 -0
- package/dist/util/resolution/find-first-existing.d.ts.map +1 -0
- package/dist/util/resolution/find-first-existing.js +13 -0
- package/dist/util/resolution/find-first-existing.js.map +1 -0
- package/dist/util/resolution/jvm.js +1 -1
- package/dist/util/resolution/jvm.js.map +1 -1
- package/dist/util/resolution/node.d.ts +1 -1
- package/dist/util/resolution/node.d.ts.map +1 -1
- package/dist/util/resolution/node.js +2 -2
- package/dist/util/resolution/node.js.map +1 -1
- package/dist/util/resolution/php-composer.d.ts +17 -0
- package/dist/util/resolution/php-composer.d.ts.map +1 -0
- package/dist/util/resolution/php-composer.js +269 -0
- package/dist/util/resolution/php-composer.js.map +1 -0
- package/dist/util/resolution/php.d.ts +1 -1
- package/dist/util/resolution/php.d.ts.map +1 -1
- package/dist/util/resolution/php.js +4 -4
- package/dist/util/resolution/php.js.map +1 -1
- package/dist/util/resolution/project-symbols.d.ts +14 -0
- package/dist/util/resolution/project-symbols.d.ts.map +1 -0
- package/dist/util/resolution/project-symbols.js +70 -0
- package/dist/util/resolution/project-symbols.js.map +1 -0
- package/dist/util/resolution/tsconfig.d.ts +7 -0
- package/dist/util/resolution/tsconfig.d.ts.map +1 -1
- package/dist/util/resolution/tsconfig.js +23 -8
- package/dist/util/resolution/tsconfig.js.map +1 -1
- package/dist/util/resolution-candidates.d.ts +5 -0
- package/dist/util/resolution-candidates.d.ts.map +1 -0
- package/dist/util/resolution-candidates.js +70 -0
- package/dist/util/resolution-candidates.js.map +1 -0
- package/dist/util/resolution.d.ts +2 -2
- package/dist/util/resolution.d.ts.map +1 -1
- package/dist/util/resolution.js +6 -6
- package/dist/util/resolution.js.map +1 -1
- package/dist/util/rust-test-modules.d.ts +3 -0
- package/dist/util/rust-test-modules.d.ts.map +1 -0
- package/dist/util/rust-test-modules.js +71 -0
- package/dist/util/rust-test-modules.js.map +1 -0
- package/dist/util/source-location.d.ts +8 -0
- package/dist/util/source-location.d.ts.map +1 -0
- package/dist/util/source-location.js +19 -0
- package/dist/util/source-location.js.map +1 -0
- package/dist/util/sqlite-schema.d.ts +28 -0
- package/dist/util/sqlite-schema.d.ts.map +1 -0
- package/dist/util/sqlite-schema.js +75 -0
- package/dist/util/sqlite-schema.js.map +1 -0
- package/dist/util/symbol-hash.d.ts +59 -0
- package/dist/util/symbol-hash.d.ts.map +1 -0
- package/dist/util/symbol-hash.js +84 -0
- package/dist/util/symbol-hash.js.map +1 -0
- package/dist/util/windows-process-drain.d.ts +23 -0
- package/dist/util/windows-process-drain.d.ts.map +1 -0
- package/dist/util/windows-process-drain.js +51 -0
- package/dist/util/windows-process-drain.js.map +1 -0
- package/dist/util/worker-threads.d.ts +12 -0
- package/dist/util/worker-threads.d.ts.map +1 -0
- package/dist/util/worker-threads.js +19 -0
- package/dist/util/worker-threads.js.map +1 -0
- package/dist/util/workspace.d.ts +1 -1
- package/dist/util/workspace.d.ts.map +1 -1
- package/dist/util/workspace.js +2 -2
- package/dist/util/workspace.js.map +1 -1
- package/dist/util.d.ts +2 -2
- package/dist/util.d.ts.map +1 -1
- package/dist/util.js +1 -1
- package/dist/util.js.map +1 -1
- package/dist/worker/native-extract-worker.d.ts +77 -0
- package/dist/worker/native-extract-worker.d.ts.map +1 -0
- package/dist/worker/native-extract-worker.js +272 -0
- package/dist/worker/native-extract-worker.js.map +1 -0
- package/dist/worker/native-worker-pool.d.ts +16 -0
- package/dist/worker/native-worker-pool.d.ts.map +1 -0
- package/dist/worker/native-worker-pool.js +54 -0
- package/dist/worker/native-worker-pool.js.map +1 -0
- package/docs/mcp.md +2 -2
- package/package.json +4 -4
- package/dist/agent/callHierarchy.d.ts +0 -28
- package/dist/agent/callHierarchy.d.ts.map +0 -1
- package/dist/agent/callHierarchy.js +0 -82
- package/dist/agent/callHierarchy.js.map +0 -1
- package/dist/agent/candidateTests.d.ts +0 -12
- package/dist/agent/candidateTests.d.ts.map +0 -1
- package/dist/agent/candidateTests.js +0 -17
- package/dist/agent/candidateTests.js.map +0 -1
- package/dist/agent/fileView.d.ts +0 -55
- package/dist/agent/fileView.d.ts.map +0 -1
- package/dist/agent/fileView.js +0 -521
- package/dist/agent/fileView.js.map +0 -1
- package/dist/agent/followUps.d.ts +0 -10
- package/dist/agent/followUps.d.ts.map +0 -1
- package/dist/agent/followUps.js +0 -175
- package/dist/agent/followUps.js.map +0 -1
- package/dist/agent/query-index/queryIndexWorker.d.ts +0 -8
- package/dist/agent/query-index/queryIndexWorker.d.ts.map +0 -1
- package/dist/agent/query-index/queryIndexWorker.js +0 -11
- package/dist/agent/query-index/queryIndexWorker.js.map +0 -1
- package/dist/agent/query-index/sessionStore.d.ts +0 -5
- package/dist/agent/query-index/sessionStore.d.ts.map +0 -1
- package/dist/agent/query-index/sessionStore.js +0 -69
- package/dist/agent/query-index/sessionStore.js.map +0 -1
- package/dist/agent/query-index/sourceIdentity.d.ts +0 -3
- package/dist/agent/query-index/sourceIdentity.d.ts.map +0 -1
- package/dist/agent/query-index/sourceIdentity.js +0 -12
- package/dist/agent/query-index/sourceIdentity.js.map +0 -1
- package/dist/agent/query-index/workerPool.d.ts +0 -27
- package/dist/agent/query-index/workerPool.d.ts.map +0 -1
- package/dist/agent/query-index/workerPool.js +0 -114
- package/dist/agent/query-index/workerPool.js.map +0 -1
- package/dist/agent/refactorPlan.d.ts +0 -40
- package/dist/agent/refactorPlan.d.ts.map +0 -1
- package/dist/agent/refactorPlan.js +0 -226
- package/dist/agent/refactorPlan.js.map +0 -1
- package/dist/agent/renamePreview.d.ts +0 -57
- package/dist/agent/renamePreview.d.ts.map +0 -1
- package/dist/agent/renamePreview.js +0 -1062
- package/dist/agent/renamePreview.js.map +0 -1
- package/dist/agent/semanticSymbols.d.ts +0 -16
- package/dist/agent/semanticSymbols.d.ts.map +0 -1
- package/dist/agent/semanticSymbols.js +0 -97
- package/dist/agent/semanticSymbols.js.map +0 -1
- package/dist/agent/sessionLifecycle.d.ts +0 -5
- package/dist/agent/sessionLifecycle.d.ts.map +0 -1
- package/dist/agent/sessionLifecycle.js +0 -18
- package/dist/agent/sessionLifecycle.js.map +0 -1
- package/dist/agent/symbolLookup.d.ts +0 -12
- package/dist/agent/symbolLookup.d.ts.map +0 -1
- package/dist/agent/symbolLookup.js +0 -26
- package/dist/agent/symbolLookup.js.map +0 -1
- package/dist/agent/typeHierarchy.d.ts +0 -39
- package/dist/agent/typeHierarchy.d.ts.map +0 -1
- package/dist/agent/typeHierarchy.js +0 -125
- package/dist/agent/typeHierarchy.js.map +0 -1
- package/dist/agent/workspaceSymbols.d.ts +0 -18
- package/dist/agent/workspaceSymbols.d.ts.map +0 -1
- package/dist/agent/workspaceSymbols.js +0 -75
- package/dist/agent/workspaceSymbols.js.map +0 -1
- package/dist/analysisSummary.d.ts +0 -19
- package/dist/analysisSummary.d.ts.map +0 -1
- package/dist/analysisSummary.js +0 -80
- package/dist/analysisSummary.js.map +0 -1
- package/dist/bin/queryIndexWorker.js +0 -4382
- package/dist/bin/rawQueryWorker.js +0 -383
- package/dist/bootstrap/treeSitterLanguages.d.ts +0 -5
- package/dist/bootstrap/treeSitterLanguages.d.ts.map +0 -1
- package/dist/bootstrap/treeSitterLanguages.js +0 -41
- package/dist/bootstrap/treeSitterLanguages.js.map +0 -1
- package/dist/chunking/chunkBlocks.d.ts +0 -9
- package/dist/chunking/chunkBlocks.d.ts.map +0 -1
- package/dist/chunking/chunkBlocks.js +0 -60
- package/dist/chunking/chunkBlocks.js.map +0 -1
- package/dist/chunking/chunkFile.d.ts +0 -39
- package/dist/chunking/chunkFile.d.ts.map +0 -1
- package/dist/chunking/chunkFile.js +0 -152
- package/dist/chunking/chunkFile.js.map +0 -1
- package/dist/chunking/chunkId.d.ts +0 -7
- package/dist/chunking/chunkId.d.ts.map +0 -1
- package/dist/chunking/chunkId.js +0 -30
- package/dist/chunking/chunkId.js.map +0 -1
- package/dist/chunking/chunkMatches.d.ts +0 -4
- package/dist/chunking/chunkMatches.d.ts.map +0 -1
- package/dist/chunking/chunkMatches.js +0 -65
- package/dist/chunking/chunkMatches.js.map +0 -1
- package/dist/chunking/chunkMerge.d.ts +0 -4
- package/dist/chunking/chunkMerge.d.ts.map +0 -1
- package/dist/chunking/chunkMerge.js +0 -144
- package/dist/chunking/chunkMerge.js.map +0 -1
- package/dist/chunking/chunkSFC.d.ts +0 -18
- package/dist/chunking/chunkSFC.d.ts.map +0 -1
- package/dist/chunking/chunkSFC.js +0 -165
- package/dist/chunking/chunkSFC.js.map +0 -1
- package/dist/chunking/chunkSplit.d.ts +0 -6
- package/dist/chunking/chunkSplit.d.ts.map +0 -1
- package/dist/chunking/chunkSplit.js +0 -155
- package/dist/chunking/chunkSplit.js.map +0 -1
- package/dist/chunking/chunkTextFile.d.ts +0 -28
- package/dist/chunking/chunkTextFile.d.ts.map +0 -1
- package/dist/chunking/chunkTextFile.js +0 -107
- package/dist/chunking/chunkTextFile.js.map +0 -1
- package/dist/chunking/languageConfig.d.ts +0 -35
- package/dist/chunking/languageConfig.d.ts.map +0 -1
- package/dist/chunking/languageConfig.js +0 -24
- package/dist/chunking/languageConfig.js.map +0 -1
- package/dist/cli/callHierarchy.d.ts +0 -6
- package/dist/cli/callHierarchy.d.ts.map +0 -1
- package/dist/cli/callHierarchy.js +0 -72
- package/dist/cli/callHierarchy.js.map +0 -1
- package/dist/cli/commandCatalog.d.ts +0 -14
- package/dist/cli/commandCatalog.d.ts.map +0 -1
- package/dist/cli/commandCatalog.js +0 -118
- package/dist/cli/commandCatalog.js.map +0 -1
- package/dist/cli/commandTable.d.ts +0 -16
- package/dist/cli/commandTable.d.ts.map +0 -1
- package/dist/cli/commandTable.js +0 -758
- package/dist/cli/commandTable.js.map +0 -1
- package/dist/cli/compileCache.d.ts +0 -22
- package/dist/cli/compileCache.d.ts.map +0 -1
- package/dist/cli/compileCache.js +0 -81
- package/dist/cli/compileCache.js.map +0 -1
- package/dist/cli/discoveryGlobs.d.ts +0 -11
- package/dist/cli/discoveryGlobs.d.ts.map +0 -1
- package/dist/cli/discoveryGlobs.js +0 -74
- package/dist/cli/discoveryGlobs.js.map +0 -1
- package/dist/cli/duplicateSimilarity.d.ts +0 -10
- package/dist/cli/duplicateSimilarity.d.ts.map +0 -1
- package/dist/cli/duplicateSimilarity.js +0 -20
- package/dist/cli/duplicateSimilarity.js.map +0 -1
- package/dist/cli/graphDelta.d.ts +0 -25
- package/dist/cli/graphDelta.d.ts.map +0 -1
- package/dist/cli/graphDelta.js +0 -80
- package/dist/cli/graphDelta.js.map +0 -1
- package/dist/cli/graphQueries.d.ts +0 -23
- package/dist/cli/graphQueries.d.ts.map +0 -1
- package/dist/cli/graphQueries.js +0 -265
- package/dist/cli/graphQueries.js.map +0 -1
- package/dist/cli/indexPolicy.d.ts +0 -36
- package/dist/cli/indexPolicy.d.ts.map +0 -1
- package/dist/cli/indexPolicy.js +0 -169
- package/dist/cli/indexPolicy.js.map +0 -1
- package/dist/cli/invocationContext.d.ts +0 -77
- package/dist/cli/invocationContext.d.ts.map +0 -1
- package/dist/cli/invocationContext.js +0 -423
- package/dist/cli/invocationContext.js.map +0 -1
- package/dist/cli/projectFile.d.ts +0 -13
- package/dist/cli/projectFile.d.ts.map +0 -1
- package/dist/cli/projectFile.js +0 -23
- package/dist/cli/projectFile.js.map +0 -1
- package/dist/cli/refactorPlan.d.ts +0 -6
- package/dist/cli/refactorPlan.d.ts.map +0 -1
- package/dist/cli/refactorPlan.js +0 -84
- package/dist/cli/refactorPlan.js.map +0 -1
- package/dist/cli/renamePreview.d.ts +0 -4
- package/dist/cli/renamePreview.d.ts.map +0 -1
- package/dist/cli/renamePreview.js +0 -92
- package/dist/cli/renamePreview.js.map +0 -1
- package/dist/cli/rootPolicy.d.ts +0 -53
- package/dist/cli/rootPolicy.d.ts.map +0 -1
- package/dist/cli/rootPolicy.js +0 -221
- package/dist/cli/rootPolicy.js.map +0 -1
- package/dist/cli/typeHierarchy.d.ts +0 -6
- package/dist/cli/typeHierarchy.d.ts.map +0 -1
- package/dist/cli/typeHierarchy.js +0 -90
- package/dist/cli/typeHierarchy.js.map +0 -1
- package/dist/cliBootstrap.d.ts +0 -3
- package/dist/cliBootstrap.d.ts.map +0 -1
- package/dist/cliBootstrap.js +0 -10
- package/dist/cliBootstrap.js.map +0 -1
- package/dist/documentLinks/asciidoc.d.ts.map +0 -1
- package/dist/documentLinks/asciidoc.js.map +0 -1
- package/dist/documentLinks/check.d.ts +0 -32
- package/dist/documentLinks/check.d.ts.map +0 -1
- package/dist/documentLinks/check.js +0 -286
- package/dist/documentLinks/check.js.map +0 -1
- package/dist/documentLinks/html.d.ts.map +0 -1
- package/dist/documentLinks/html.js.map +0 -1
- package/dist/documentLinks/markdown.d.ts.map +0 -1
- package/dist/documentLinks/markdown.js.map +0 -1
- package/dist/documentLinks/rst.d.ts.map +0 -1
- package/dist/documentLinks/rst.js.map +0 -1
- package/dist/documentLinks/sfc.d.ts.map +0 -1
- package/dist/documentLinks/sfc.js.map +0 -1
- package/dist/documentLinks/shared.d.ts.map +0 -1
- package/dist/documentLinks/shared.js.map +0 -1
- package/dist/documentLinks.d.ts +0 -12
- package/dist/documentLinks.d.ts.map +0 -1
- package/dist/documentLinks.js +0 -49
- package/dist/documentLinks.js.map +0 -1
- package/dist/duplicates/unitCache.d.ts +0 -46
- package/dist/duplicates/unitCache.d.ts.map +0 -1
- package/dist/duplicates/unitCache.js +0 -512
- package/dist/duplicates/unitCache.js.map +0 -1
- package/dist/duplicatesLeads.d.ts +0 -39
- package/dist/duplicatesLeads.d.ts.map +0 -1
- package/dist/duplicatesLeads.js +0 -112
- package/dist/duplicatesLeads.js.map +0 -1
- package/dist/graphs/edgeResolution.d.ts +0 -25
- package/dist/graphs/edgeResolution.d.ts.map +0 -1
- package/dist/graphs/edgeResolution.js +0 -97
- package/dist/graphs/edgeResolution.js.map +0 -1
- package/dist/graphs/symbol-graph-detailed/edgePasses.d.ts +0 -35
- package/dist/graphs/symbol-graph-detailed/edgePasses.d.ts.map +0 -1
- package/dist/graphs/symbol-graph-detailed/edgePasses.js +0 -586
- package/dist/graphs/symbol-graph-detailed/edgePasses.js.map +0 -1
- package/dist/graphs/symbol-graph-detailed/importAliases.d.ts +0 -10
- package/dist/graphs/symbol-graph-detailed/importAliases.d.ts.map +0 -1
- package/dist/graphs/symbol-graph-detailed/importAliases.js +0 -44
- package/dist/graphs/symbol-graph-detailed/importAliases.js.map +0 -1
- package/dist/graphs/symbol-graph-detailed/memberChains.d.ts +0 -17
- package/dist/graphs/symbol-graph-detailed/memberChains.d.ts.map +0 -1
- package/dist/graphs/symbol-graph-detailed/memberChains.js +0 -30
- package/dist/graphs/symbol-graph-detailed/memberChains.js.map +0 -1
- package/dist/graphs/symbol-graph-detailed/receiverCalls.d.ts +0 -69
- package/dist/graphs/symbol-graph-detailed/receiverCalls.d.ts.map +0 -1
- package/dist/graphs/symbol-graph-detailed/receiverCalls.js +0 -408
- package/dist/graphs/symbol-graph-detailed/receiverCalls.js.map +0 -1
- package/dist/impact/call-compatibility/textScanner.d.ts +0 -23
- package/dist/impact/call-compatibility/textScanner.d.ts.map +0 -1
- package/dist/impact/call-compatibility/textScanner.js +0 -615
- package/dist/impact/call-compatibility/textScanner.js.map +0 -1
- package/dist/impact/callCompatibility.d.ts +0 -24
- package/dist/impact/callCompatibility.d.ts.map +0 -1
- package/dist/impact/callCompatibility.js +0 -1023
- package/dist/impact/callCompatibility.js.map +0 -1
- package/dist/impact/memberResolutionCoverage.d.ts +0 -14
- package/dist/impact/memberResolutionCoverage.d.ts.map +0 -1
- package/dist/impact/memberResolutionCoverage.js +0 -42
- package/dist/impact/memberResolutionCoverage.js.map +0 -1
- package/dist/impact/referenceCache.d.ts +0 -12
- package/dist/impact/referenceCache.d.ts.map +0 -1
- package/dist/impact/referenceCache.js +0 -101
- package/dist/impact/referenceCache.js.map +0 -1
- package/dist/impact/reportCompact.d.ts +0 -8
- package/dist/impact/reportCompact.d.ts.map +0 -1
- package/dist/impact/reportCompact.js +0 -153
- package/dist/impact/reportCompact.js.map +0 -1
- package/dist/impact/reportFull.d.ts +0 -10
- package/dist/impact/reportFull.d.ts.map +0 -1
- package/dist/impact/reportFull.js +0 -67
- package/dist/impact/reportFull.js.map +0 -1
- package/dist/impact/reportParts.d.ts +0 -51
- package/dist/impact/reportParts.d.ts.map +0 -1
- package/dist/impact/reportParts.js +0 -2
- package/dist/impact/reportParts.js.map +0 -1
- package/dist/impact/reportShared.d.ts +0 -76
- package/dist/impact/reportShared.d.ts.map +0 -1
- package/dist/impact/reportShared.js +0 -130
- package/dist/impact/reportShared.js.map +0 -1
- package/dist/impact/testPatterns.d.ts +0 -6
- package/dist/impact/testPatterns.d.ts.map +0 -1
- package/dist/impact/testPatterns.js +0 -65
- package/dist/impact/testPatterns.js.map +0 -1
- package/dist/indexer/imports/graphOnly.d.ts +0 -13
- package/dist/indexer/imports/graphOnly.d.ts.map +0 -1
- package/dist/indexer/imports/graphOnly.js +0 -40
- package/dist/indexer/imports/graphOnly.js.map +0 -1
- package/dist/indexer/imports/jsTextImports.d.ts +0 -9
- package/dist/indexer/imports/jsTextImports.d.ts.map +0 -1
- package/dist/indexer/imports/jsTextImports.js +0 -181
- package/dist/indexer/imports/jsTextImports.js.map +0 -1
- package/dist/indexer/imports/languageSpecific.d.ts +0 -26
- package/dist/indexer/imports/languageSpecific.d.ts.map +0 -1
- package/dist/indexer/imports/languageSpecific.js +0 -449
- package/dist/indexer/imports/languageSpecific.js.map +0 -1
- package/dist/indexer/imports/nativeCaptures.d.ts +0 -16
- package/dist/indexer/imports/nativeCaptures.d.ts.map +0 -1
- package/dist/indexer/imports/nativeCaptures.js +0 -142
- package/dist/indexer/imports/nativeCaptures.js.map +0 -1
- package/dist/languages/definitions/cFamily.d.ts +0 -34
- package/dist/languages/definitions/cFamily.d.ts.map +0 -1
- package/dist/languages/definitions/cFamily.js +0 -177
- package/dist/languages/definitions/cFamily.js.map +0 -1
- package/dist/languages/definitions/cssLike.d.ts +0 -5
- package/dist/languages/definitions/cssLike.d.ts.map +0 -1
- package/dist/languages/definitions/cssLike.js +0 -32
- package/dist/languages/definitions/cssLike.js.map +0 -1
- package/dist/languages/definitions/htmlStub.d.ts +0 -18
- package/dist/languages/definitions/htmlStub.d.ts.map +0 -1
- package/dist/languages/definitions/htmlStub.js +0 -36
- package/dist/languages/definitions/htmlStub.js.map +0 -1
- package/dist/languages/definitions/jsFamily.d.ts +0 -5
- package/dist/languages/definitions/jsFamily.d.ts.map +0 -1
- package/dist/languages/definitions/jsFamily.js +0 -75
- package/dist/languages/definitions/jsFamily.js.map +0 -1
- package/dist/languages/filePrep.d.ts +0 -36
- package/dist/languages/filePrep.d.ts.map +0 -1
- package/dist/languages/filePrep.js +0 -76
- package/dist/languages/filePrep.js.map +0 -1
- package/dist/languages/importStatementParsers.d.ts +0 -57
- package/dist/languages/importStatementParsers.d.ts.map +0 -1
- package/dist/languages/importStatementParsers.js +0 -383
- package/dist/languages/importStatementParsers.js.map +0 -1
- package/dist/languages/queryGenerator.d.ts +0 -6
- package/dist/languages/queryGenerator.d.ts.map +0 -1
- package/dist/languages/queryGenerator.js +0 -46
- package/dist/languages/queryGenerator.js.map +0 -1
- package/dist/mcp/httpTransport.d.ts +0 -14
- package/dist/mcp/httpTransport.d.ts.map +0 -1
- package/dist/mcp/httpTransport.js +0 -185
- package/dist/mcp/httpTransport.js.map +0 -1
- package/dist/mcp/legacySessions.d.ts +0 -38
- package/dist/mcp/legacySessions.d.ts.map +0 -1
- package/dist/mcp/legacySessions.js +0 -264
- package/dist/mcp/legacySessions.js.map +0 -1
- package/dist/mcp/lifecycleHealth.d.ts +0 -12
- package/dist/mcp/lifecycleHealth.d.ts.map +0 -1
- package/dist/mcp/lifecycleHealth.js +0 -37
- package/dist/mcp/lifecycleHealth.js.map +0 -1
- package/dist/mcp/sqliteGuard.d.ts +0 -3
- package/dist/mcp/sqliteGuard.d.ts.map +0 -1
- package/dist/mcp/sqliteGuard.js +0 -35
- package/dist/mcp/sqliteGuard.js.map +0 -1
- package/dist/mcp/stdioLifecycle.d.ts +0 -23
- package/dist/mcp/stdioLifecycle.d.ts.map +0 -1
- package/dist/mcp/stdioLifecycle.js +0 -83
- package/dist/mcp/stdioLifecycle.js.map +0 -1
- package/dist/native/bindingLoader.d.ts +0 -51
- package/dist/native/bindingLoader.d.ts.map +0 -1
- package/dist/native/bindingLoader.js +0 -223
- package/dist/native/bindingLoader.js.map +0 -1
- package/dist/native/byteIndex.d.ts +0 -26
- package/dist/native/byteIndex.d.ts.map +0 -1
- package/dist/native/byteIndex.js +0 -70
- package/dist/native/byteIndex.js.map +0 -1
- package/dist/native/jsBridge.d.ts +0 -7
- package/dist/native/jsBridge.d.ts.map +0 -1
- package/dist/native/jsBridge.js +0 -25
- package/dist/native/jsBridge.js.map +0 -1
- package/dist/native/nativeBackendReport.d.ts +0 -22
- package/dist/native/nativeBackendReport.d.ts.map +0 -1
- package/dist/native/nativeBackendReport.js +0 -102
- package/dist/native/nativeBackendReport.js.map +0 -1
- package/dist/native/projectedTree.d.ts +0 -53
- package/dist/native/projectedTree.d.ts.map +0 -1
- package/dist/native/projectedTree.js +0 -180
- package/dist/native/projectedTree.js.map +0 -1
- package/dist/native/queryResults.d.ts +0 -12
- package/dist/native/queryResults.d.ts.map +0 -1
- package/dist/native/queryResults.js +0 -34
- package/dist/native/queryResults.js.map +0 -1
- package/dist/native/runtimeCache.d.ts +0 -128
- package/dist/native/runtimeCache.d.ts.map +0 -1
- package/dist/native/runtimeCache.js +0 -667
- package/dist/native/runtimeCache.js.map +0 -1
- package/dist/native/treeShape.d.ts +0 -21
- package/dist/native/treeShape.d.ts.map +0 -1
- package/dist/native/treeShape.js +0 -28
- package/dist/native/treeShape.js.map +0 -1
- package/dist/native/treeSitterNative.d.ts +0 -6
- package/dist/native/treeSitterNative.d.ts.map +0 -1
- package/dist/native/treeSitterNative.js +0 -5
- package/dist/native/treeSitterNative.js.map +0 -1
- package/dist/runtimeIdentity.d.ts +0 -27
- package/dist/runtimeIdentity.d.ts.map +0 -1
- package/dist/runtimeIdentity.js +0 -75
- package/dist/runtimeIdentity.js.map +0 -1
- package/dist/sql/classifySqlFile.d.ts +0 -3
- package/dist/sql/classifySqlFile.d.ts.map +0 -1
- package/dist/sql/classifySqlFile.js +0 -42
- package/dist/sql/classifySqlFile.js.map +0 -1
- package/dist/sql/extractFacts.d.ts +0 -4
- package/dist/sql/extractFacts.d.ts.map +0 -1
- package/dist/sql/extractFacts.js +0 -511
- package/dist/sql/extractFacts.js.map +0 -1
- package/dist/sql/sourceGraph.d.ts +0 -19
- package/dist/sql/sourceGraph.d.ts.map +0 -1
- package/dist/sql/sourceGraph.js +0 -195
- package/dist/sql/sourceGraph.js.map +0 -1
- package/dist/sqlite/rawQueryWorker.d.ts +0 -22
- package/dist/sqlite/rawQueryWorker.d.ts.map +0 -1
- package/dist/sqlite/rawQueryWorker.js +0 -31
- package/dist/sqlite/rawQueryWorker.js.map +0 -1
- package/dist/sqlite/rawQueryWorkerPool.d.ts +0 -66
- package/dist/sqlite/rawQueryWorkerPool.d.ts.map +0 -1
- package/dist/sqlite/rawQueryWorkerPool.js +0 -146
- package/dist/sqlite/rawQueryWorkerPool.js.map +0 -1
- package/dist/sqlite/rowBounds.d.ts +0 -24
- package/dist/sqlite/rowBounds.d.ts.map +0 -1
- package/dist/sqlite/rowBounds.js +0 -95
- package/dist/sqlite/rowBounds.js.map +0 -1
- package/dist/util/bloomFilter.d.ts +0 -100
- package/dist/util/bloomFilter.d.ts.map +0 -1
- package/dist/util/bloomFilter.js +0 -206
- package/dist/util/bloomFilter.js.map +0 -1
- package/dist/util/confinedFile.d.ts +0 -48
- package/dist/util/confinedFile.d.ts.map +0 -1
- package/dist/util/confinedFile.js +0 -164
- package/dist/util/confinedFile.js.map +0 -1
- package/dist/util/discoveryPath.d.ts +0 -3
- package/dist/util/discoveryPath.d.ts.map +0 -1
- package/dist/util/discoveryPath.js +0 -19
- package/dist/util/discoveryPath.js.map +0 -1
- package/dist/util/graphEdges.d.ts +0 -5
- package/dist/util/graphEdges.d.ts.map +0 -1
- package/dist/util/graphEdges.js +0 -42
- package/dist/util/graphEdges.js.map +0 -1
- package/dist/util/graphOnlyExtensions.d.ts +0 -5
- package/dist/util/graphOnlyExtensions.d.ts.map +0 -1
- package/dist/util/graphOnlyExtensions.js +0 -12
- package/dist/util/graphOnlyExtensions.js.map +0 -1
- package/dist/util/includeRoots.d.ts +0 -6
- package/dist/util/includeRoots.d.ts.map +0 -1
- package/dist/util/includeRoots.js +0 -53
- package/dist/util/includeRoots.js.map +0 -1
- package/dist/util/lazySymbols.d.ts +0 -166
- package/dist/util/lazySymbols.d.ts.map +0 -1
- package/dist/util/lazySymbols.js +0 -365
- package/dist/util/lazySymbols.js.map +0 -1
- package/dist/util/lruMap.d.ts +0 -3
- package/dist/util/lruMap.d.ts.map +0 -1
- package/dist/util/lruMap.js +0 -22
- package/dist/util/lruMap.js.map +0 -1
- package/dist/util/memberAccess.d.ts +0 -26
- package/dist/util/memberAccess.d.ts.map +0 -1
- package/dist/util/memberAccess.js +0 -185
- package/dist/util/memberAccess.js.map +0 -1
- package/dist/util/packageExports.d.ts +0 -25
- package/dist/util/packageExports.d.ts.map +0 -1
- package/dist/util/packageExports.js +0 -79
- package/dist/util/packageExports.js.map +0 -1
- package/dist/util/packageInfo.d.ts +0 -12
- package/dist/util/packageInfo.d.ts.map +0 -1
- package/dist/util/packageInfo.js +0 -57
- package/dist/util/packageInfo.js.map +0 -1
- package/dist/util/partialResults.d.ts +0 -81
- package/dist/util/partialResults.d.ts.map +0 -1
- package/dist/util/partialResults.js +0 -290
- package/dist/util/partialResults.js.map +0 -1
- package/dist/util/projectFiles/definitions.d.ts +0 -21
- package/dist/util/projectFiles/definitions.d.ts.map +0 -1
- package/dist/util/projectFiles/definitions.js.map +0 -1
- package/dist/util/projectFiles/parsers.d.ts.map +0 -1
- package/dist/util/projectFiles/parsers.js.map +0 -1
- package/dist/util/projectFiles.d.ts +0 -102
- package/dist/util/projectFiles.d.ts.map +0 -1
- package/dist/util/projectFiles.js +0 -1209
- package/dist/util/projectFiles.js.map +0 -1
- package/dist/util/resolution/findFirstExisting.d.ts +0 -2
- package/dist/util/resolution/findFirstExisting.d.ts.map +0 -1
- package/dist/util/resolution/findFirstExisting.js +0 -13
- package/dist/util/resolution/findFirstExisting.js.map +0 -1
- package/dist/util/resolution/phpComposer.d.ts +0 -17
- package/dist/util/resolution/phpComposer.d.ts.map +0 -1
- package/dist/util/resolution/phpComposer.js +0 -269
- package/dist/util/resolution/phpComposer.js.map +0 -1
- package/dist/util/resolution/projectSymbols.d.ts +0 -14
- package/dist/util/resolution/projectSymbols.d.ts.map +0 -1
- package/dist/util/resolution/projectSymbols.js +0 -70
- package/dist/util/resolution/projectSymbols.js.map +0 -1
- package/dist/util/resolutionCandidates.d.ts +0 -5
- package/dist/util/resolutionCandidates.d.ts.map +0 -1
- package/dist/util/resolutionCandidates.js +0 -70
- package/dist/util/resolutionCandidates.js.map +0 -1
- package/dist/util/rustTestModules.d.ts +0 -3
- package/dist/util/rustTestModules.d.ts.map +0 -1
- package/dist/util/rustTestModules.js +0 -71
- package/dist/util/rustTestModules.js.map +0 -1
- package/dist/util/sourceLocation.d.ts +0 -8
- package/dist/util/sourceLocation.d.ts.map +0 -1
- package/dist/util/sourceLocation.js +0 -19
- package/dist/util/sourceLocation.js.map +0 -1
- package/dist/util/sqliteSchema.d.ts +0 -28
- package/dist/util/sqliteSchema.d.ts.map +0 -1
- package/dist/util/sqliteSchema.js +0 -75
- package/dist/util/sqliteSchema.js.map +0 -1
- package/dist/util/symbolHash.d.ts +0 -59
- package/dist/util/symbolHash.d.ts.map +0 -1
- package/dist/util/symbolHash.js +0 -84
- package/dist/util/symbolHash.js.map +0 -1
- package/dist/util/windowsProcessDrain.d.ts +0 -23
- package/dist/util/windowsProcessDrain.d.ts.map +0 -1
- package/dist/util/windowsProcessDrain.js +0 -51
- package/dist/util/windowsProcessDrain.js.map +0 -1
- package/dist/util/workerThreads.d.ts +0 -12
- package/dist/util/workerThreads.d.ts.map +0 -1
- package/dist/util/workerThreads.js +0 -16
- package/dist/util/workerThreads.js.map +0 -1
- package/dist/worker/nativeExtractWorker.d.ts +0 -77
- package/dist/worker/nativeExtractWorker.d.ts.map +0 -1
- package/dist/worker/nativeExtractWorker.js +0 -272
- package/dist/worker/nativeExtractWorker.js.map +0 -1
- package/dist/worker/nativeWorkerPool.d.ts +0 -16
- package/dist/worker/nativeWorkerPool.d.ts.map +0 -1
- package/dist/worker/nativeWorkerPool.js +0 -54
- package/dist/worker/nativeWorkerPool.js.map +0 -1
- package/docs/graph-visualization/viewer-selected-node.webp +0 -0
- /package/dist/{documentLinks → document-links}/asciidoc.d.ts +0 -0
- /package/dist/{documentLinks → document-links}/asciidoc.js +0 -0
- /package/dist/{documentLinks → document-links}/html.d.ts +0 -0
- /package/dist/{documentLinks → document-links}/html.js +0 -0
- /package/dist/{documentLinks → document-links}/markdown.d.ts +0 -0
- /package/dist/{documentLinks → document-links}/markdown.js +0 -0
- /package/dist/{documentLinks → document-links}/rst.d.ts +0 -0
- /package/dist/{documentLinks → document-links}/rst.js +0 -0
- /package/dist/{documentLinks → document-links}/sfc.d.ts +0 -0
- /package/dist/{documentLinks → document-links}/sfc.js +0 -0
- /package/dist/{documentLinks → document-links}/shared.d.ts +0 -0
- /package/dist/{documentLinks → document-links}/shared.js +0 -0
- /package/dist/util/{projectFiles → project-files}/definitions.js +0 -0
- /package/dist/util/{projectFiles → project-files}/parsers.d.ts +0 -0
- /package/dist/util/{projectFiles → project-files}/parsers.js +0 -0
- /package/{docs/graph-visualization → src/viewer}/app.js +0 -0
- /package/{docs/graph-visualization → src/viewer}/file-tree-filters.js +0 -0
- /package/{docs/graph-visualization → src/viewer}/file-tree-model.js +0 -0
- /package/{docs/graph-visualization → src/viewer}/graph-builder.js +0 -0
- /package/{docs/graph-visualization → src/viewer}/index.html +0 -0
- /package/{docs/graph-visualization → src/viewer}/styles.css +0 -0
- /package/{docs/graph-visualization → src/viewer}/vendor/LICENSE.graphology-layout-forceatlas2.txt +0 -0
- /package/{docs/graph-visualization → src/viewer}/vendor/LICENSE.graphology.txt +0 -0
- /package/{docs/graph-visualization → src/viewer}/vendor/LICENSE.sigma.txt +0 -0
- /package/{docs/graph-visualization → src/viewer}/vendor/graphology-layout-forceatlas2.js +0 -0
- /package/{docs/graph-visualization → src/viewer}/vendor/graphology.js +0 -0
- /package/{docs/graph-visualization → src/viewer}/vendor/sigma.js +0 -0
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
const CACHE_SCHEMA_VERSION = 1;
|
|
5
|
+
const HASH_BUFFER_SIZE = 1024 * 1024;
|
|
6
|
+
const IDENTITY_FILE_PREFIX = "identity-";
|
|
7
|
+
const IDENTITY_FILE_SUFFIX = ".json";
|
|
8
|
+
const IDENTITY_VERSION = 1;
|
|
9
|
+
/**
|
|
10
|
+
* How long a stat-only match is trusted before the entry is hashed again.
|
|
11
|
+
*
|
|
12
|
+
* The fast path below skips two 29 MB SHA-256 passes when the source and cached binaries
|
|
13
|
+
* both match the size and mtime recorded at the last full verification. That is weaker than
|
|
14
|
+
* hashing: an attacker who can write the cache directory can also preserve both fields. The
|
|
15
|
+
* TTL bounds how long such a substitution goes unnoticed, so verification still happens -
|
|
16
|
+
* once a day per entry instead of twice per process.
|
|
17
|
+
*/
|
|
18
|
+
const IDENTITY_REVERIFY_INTERVAL_MS = 24 * 60 * 60 * 1000;
|
|
19
|
+
/**
|
|
20
|
+
* How long an entry for another package version is kept before it is treated as abandoned.
|
|
21
|
+
*
|
|
22
|
+
* The cache root is per-user and shared by every project on the machine, so "not the version I
|
|
23
|
+
* am installing" does not mean "nobody's". Deleting on that basis alone makes two projects
|
|
24
|
+
* pinned to different native versions delete each other's entry on every run, each re-copying
|
|
25
|
+
* 29 MB and never reaching the fast path - worse than the unbounded growth it set out to fix.
|
|
26
|
+
*
|
|
27
|
+
* An entry in use is re-verified at least every IDENTITY_REVERIFY_INTERVAL_MS of use, and that
|
|
28
|
+
* refreshes its timestamp, so an entry older than this window is one no project has run in a
|
|
29
|
+
* month. That is the signal, rather than which version happens to be installing right now.
|
|
30
|
+
*/
|
|
31
|
+
const ABANDONED_ENTRY_RETENTION_MS = 30 * 24 * 60 * 60 * 1000;
|
|
32
|
+
function asError(error) {
|
|
33
|
+
return error instanceof Error ? error : new Error(String(error));
|
|
34
|
+
}
|
|
35
|
+
function isWithinDirectory(filePath, directoryPath) {
|
|
36
|
+
const relative = path.relative(directoryPath, filePath);
|
|
37
|
+
return !relative || (!relative.startsWith("..") && !path.isAbsolute(relative));
|
|
38
|
+
}
|
|
39
|
+
function assertSafeCacheSegment(value, label) {
|
|
40
|
+
if (!value || value === "." || value === ".." || path.basename(value) !== value) {
|
|
41
|
+
throw new Error(`invalid native cache ${label}: ${value}`);
|
|
42
|
+
}
|
|
43
|
+
if (!/^[A-Za-z0-9._+-]+$/.test(value)) {
|
|
44
|
+
throw new Error(`invalid native cache ${label}: ${value}`);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function assertSafePathComponent(componentPath) {
|
|
48
|
+
const stats = fs.lstatSync(componentPath);
|
|
49
|
+
if (!stats.isDirectory() || stats.isSymbolicLink()) {
|
|
50
|
+
throw new Error(`unsafe native cache path component: ${componentPath}`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function prepareSafeDirectory(directoryPath, create = true) {
|
|
54
|
+
const absolute = path.resolve(directoryPath);
|
|
55
|
+
const parsed = path.parse(absolute);
|
|
56
|
+
let current = parsed.root;
|
|
57
|
+
assertSafePathComponent(current);
|
|
58
|
+
const relativeParts = absolute.slice(parsed.root.length).split(path.sep).filter(Boolean);
|
|
59
|
+
for (const part of relativeParts) {
|
|
60
|
+
current = path.join(current, part);
|
|
61
|
+
try {
|
|
62
|
+
assertSafePathComponent(current);
|
|
63
|
+
}
|
|
64
|
+
catch (error) {
|
|
65
|
+
if (error.code !== "ENOENT" || !create) {
|
|
66
|
+
throw error;
|
|
67
|
+
}
|
|
68
|
+
try {
|
|
69
|
+
fs.mkdirSync(current);
|
|
70
|
+
}
|
|
71
|
+
catch (mkdirError) {
|
|
72
|
+
if (mkdirError.code !== "EEXIST")
|
|
73
|
+
throw mkdirError;
|
|
74
|
+
}
|
|
75
|
+
assertSafePathComponent(current);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return fs.realpathSync.native(absolute);
|
|
79
|
+
}
|
|
80
|
+
function findProductionCacheRoot() {
|
|
81
|
+
const localAppData = process.env.LOCALAPPDATA;
|
|
82
|
+
if (!localAppData)
|
|
83
|
+
return null;
|
|
84
|
+
return path.join(localAppData, "codegraph", "native-cache", `v${CACHE_SCHEMA_VERSION}`);
|
|
85
|
+
}
|
|
86
|
+
function resolveProductionCacheRoot() {
|
|
87
|
+
const cacheRoot = findProductionCacheRoot();
|
|
88
|
+
if (!cacheRoot) {
|
|
89
|
+
throw new Error("LOCALAPPDATA is unavailable; cannot prepare the Windows native runtime cache");
|
|
90
|
+
}
|
|
91
|
+
return cacheRoot;
|
|
92
|
+
}
|
|
93
|
+
export function hashFileStreaming(filePath, onChunk) {
|
|
94
|
+
const before = fs.statSync(filePath);
|
|
95
|
+
if (!before.isFile() || before.size <= 0) {
|
|
96
|
+
throw new Error(`native binary is not a non-empty regular file: ${filePath}`);
|
|
97
|
+
}
|
|
98
|
+
const hash = createHash("sha256");
|
|
99
|
+
const buffer = Buffer.allocUnsafe(HASH_BUFFER_SIZE);
|
|
100
|
+
const descriptor = fs.openSync(filePath, "r");
|
|
101
|
+
let size = 0;
|
|
102
|
+
try {
|
|
103
|
+
while (true) {
|
|
104
|
+
const bytesRead = fs.readSync(descriptor, buffer, 0, buffer.length, null);
|
|
105
|
+
if (!bytesRead)
|
|
106
|
+
break;
|
|
107
|
+
hash.update(buffer.subarray(0, bytesRead));
|
|
108
|
+
size += bytesRead;
|
|
109
|
+
onChunk?.(bytesRead);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
finally {
|
|
113
|
+
fs.closeSync(descriptor);
|
|
114
|
+
}
|
|
115
|
+
const after = fs.statSync(filePath);
|
|
116
|
+
if (!after.isFile() || size !== before.size || after.size !== before.size || after.mtimeMs !== before.mtimeMs) {
|
|
117
|
+
throw new Error(`native binary changed while hashing: ${filePath}`);
|
|
118
|
+
}
|
|
119
|
+
return { sha256: hash.digest("hex"), size, mtimeMs: before.mtimeMs };
|
|
120
|
+
}
|
|
121
|
+
function randomSuffix() {
|
|
122
|
+
return `${process.pid}.${randomBytes(8).toString("hex")}`;
|
|
123
|
+
}
|
|
124
|
+
function copyFileExclusive(sourcePath, destinationPath) {
|
|
125
|
+
const source = fs.openSync(sourcePath, "r");
|
|
126
|
+
let destination;
|
|
127
|
+
const buffer = Buffer.allocUnsafe(HASH_BUFFER_SIZE);
|
|
128
|
+
try {
|
|
129
|
+
destination = fs.openSync(destinationPath, "wx");
|
|
130
|
+
while (true) {
|
|
131
|
+
const bytesRead = fs.readSync(source, buffer, 0, buffer.length, null);
|
|
132
|
+
if (!bytesRead)
|
|
133
|
+
break;
|
|
134
|
+
let written = 0;
|
|
135
|
+
while (written < bytesRead) {
|
|
136
|
+
written += fs.writeSync(destination, buffer, written, bytesRead - written);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
fs.fsyncSync(destination);
|
|
140
|
+
}
|
|
141
|
+
finally {
|
|
142
|
+
if (destination !== undefined)
|
|
143
|
+
fs.closeSync(destination);
|
|
144
|
+
fs.closeSync(source);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
function removeRegularTemporaryFile(filePath) {
|
|
148
|
+
try {
|
|
149
|
+
const stats = fs.lstatSync(filePath);
|
|
150
|
+
if (stats.isFile() && !stats.isSymbolicLink())
|
|
151
|
+
fs.unlinkSync(filePath);
|
|
152
|
+
}
|
|
153
|
+
catch {
|
|
154
|
+
// Best-effort cleanup. A later bounded cleanup may remove abandoned temporary files.
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function verifyFile(filePath, expected) {
|
|
158
|
+
try {
|
|
159
|
+
const actual = hashFileStreaming(filePath);
|
|
160
|
+
return actual.size === expected.size && actual.sha256 === expected.sha256 ? actual : null;
|
|
161
|
+
}
|
|
162
|
+
catch {
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function publishExclusive(temporaryPath, finalPath) {
|
|
167
|
+
try {
|
|
168
|
+
fs.linkSync(temporaryPath, finalPath);
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
catch (error) {
|
|
172
|
+
if (error.code === "EEXIST")
|
|
173
|
+
return false;
|
|
174
|
+
throw error;
|
|
175
|
+
}
|
|
176
|
+
finally {
|
|
177
|
+
removeRegularTemporaryFile(temporaryPath);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
function populateBinary(sourcePath, finalPath, expected) {
|
|
181
|
+
const temporaryPath = `${finalPath}.${randomSuffix()}.tmp`;
|
|
182
|
+
try {
|
|
183
|
+
copyFileExclusive(sourcePath, temporaryPath);
|
|
184
|
+
if (!verifyFile(temporaryPath, expected)) {
|
|
185
|
+
throw new Error("native cache temporary file failed integrity verification");
|
|
186
|
+
}
|
|
187
|
+
return publishExclusive(temporaryPath, finalPath);
|
|
188
|
+
}
|
|
189
|
+
catch (error) {
|
|
190
|
+
removeRegularTemporaryFile(temporaryPath);
|
|
191
|
+
throw error;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
function recoverCorruptFinal(finalPath) {
|
|
195
|
+
const recoveryPath = `${finalPath}.corrupt.${randomSuffix()}`;
|
|
196
|
+
fs.renameSync(finalPath, recoveryPath);
|
|
197
|
+
}
|
|
198
|
+
function writeManifest(entryPath, manifest) {
|
|
199
|
+
const finalPath = path.join(entryPath, "manifest.json");
|
|
200
|
+
if (fs.existsSync(finalPath))
|
|
201
|
+
return;
|
|
202
|
+
const temporaryPath = `${finalPath}.${randomSuffix()}.tmp`;
|
|
203
|
+
try {
|
|
204
|
+
const descriptor = fs.openSync(temporaryPath, "wx");
|
|
205
|
+
try {
|
|
206
|
+
fs.writeFileSync(descriptor, `${JSON.stringify(manifest, null, 2)}\n`, "utf8");
|
|
207
|
+
fs.fsyncSync(descriptor);
|
|
208
|
+
}
|
|
209
|
+
finally {
|
|
210
|
+
fs.closeSync(descriptor);
|
|
211
|
+
}
|
|
212
|
+
publishExclusive(temporaryPath, finalPath);
|
|
213
|
+
}
|
|
214
|
+
catch (error) {
|
|
215
|
+
removeRegularTemporaryFile(temporaryPath);
|
|
216
|
+
throw error;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
function currentRuntimeStamp() {
|
|
220
|
+
return { abi: process.versions.modules, platform: process.platform, arch: process.arch };
|
|
221
|
+
}
|
|
222
|
+
function identityFilePath(entryPath, sourcePath) {
|
|
223
|
+
const sourceKey = createHash("sha256").update(sourcePath).digest("hex");
|
|
224
|
+
return path.join(entryPath, `${IDENTITY_FILE_PREFIX}${sourceKey}${IDENTITY_FILE_SUFFIX}`);
|
|
225
|
+
}
|
|
226
|
+
function isIdentityFileName(fileName) {
|
|
227
|
+
return /^identity-[a-f0-9]{64}\.json$/.test(fileName);
|
|
228
|
+
}
|
|
229
|
+
function readCacheIdentityFile(filePath) {
|
|
230
|
+
let parsed;
|
|
231
|
+
try {
|
|
232
|
+
parsed = JSON.parse(fs.readFileSync(filePath, "utf8"));
|
|
233
|
+
}
|
|
234
|
+
catch {
|
|
235
|
+
// Absent (an entry written before this file existed), unreadable, or malformed. All three
|
|
236
|
+
// mean the same thing to the caller: no fast path, fall back to hashing.
|
|
237
|
+
return null;
|
|
238
|
+
}
|
|
239
|
+
if (!parsed || typeof parsed !== "object")
|
|
240
|
+
return null;
|
|
241
|
+
const candidate = parsed;
|
|
242
|
+
if (candidate.version !== IDENTITY_VERSION)
|
|
243
|
+
return null;
|
|
244
|
+
const numbers = [candidate.sourceSize, candidate.sourceMtimeMs, candidate.cachedSize, candidate.cachedMtimeMs];
|
|
245
|
+
if (numbers.some((value) => typeof value !== "number" || !Number.isFinite(value)))
|
|
246
|
+
return null;
|
|
247
|
+
const strings = [
|
|
248
|
+
candidate.sha256,
|
|
249
|
+
candidate.cacheKey,
|
|
250
|
+
candidate.sourcePath,
|
|
251
|
+
candidate.loadedPath,
|
|
252
|
+
candidate.verifiedAt,
|
|
253
|
+
];
|
|
254
|
+
if (strings.some((value) => typeof value !== "string" || !value))
|
|
255
|
+
return null;
|
|
256
|
+
if (!Array.isArray(candidate.supportedLanguageIds))
|
|
257
|
+
return null;
|
|
258
|
+
if (candidate.supportedLanguageIds.some((value) => typeof value !== "string"))
|
|
259
|
+
return null;
|
|
260
|
+
const origin = candidate.origin;
|
|
261
|
+
if (!origin || typeof origin !== "object" || origin.mode !== "cache" || typeof origin.packageName !== "string") {
|
|
262
|
+
return null;
|
|
263
|
+
}
|
|
264
|
+
const runtime = candidate.runtime;
|
|
265
|
+
if (!runtime || typeof runtime !== "object")
|
|
266
|
+
return null;
|
|
267
|
+
if (typeof runtime.abi !== "string" || typeof runtime.platform !== "string" || typeof runtime.arch !== "string") {
|
|
268
|
+
return null;
|
|
269
|
+
}
|
|
270
|
+
return candidate;
|
|
271
|
+
}
|
|
272
|
+
function readCacheIdentity(entryPath, sourcePath) {
|
|
273
|
+
return readCacheIdentityFile(identityFilePath(entryPath, sourcePath));
|
|
274
|
+
}
|
|
275
|
+
function latestCacheIdentityVerifiedAt(entryPath, now) {
|
|
276
|
+
let fileNames;
|
|
277
|
+
try {
|
|
278
|
+
fileNames = fs.readdirSync(entryPath);
|
|
279
|
+
}
|
|
280
|
+
catch {
|
|
281
|
+
return Number.NaN;
|
|
282
|
+
}
|
|
283
|
+
let latest = Number.NaN;
|
|
284
|
+
for (const fileName of fileNames) {
|
|
285
|
+
if (!isIdentityFileName(fileName))
|
|
286
|
+
continue;
|
|
287
|
+
const identity = readCacheIdentityFile(path.join(entryPath, fileName));
|
|
288
|
+
const verifiedAt = identity ? Date.parse(identity.verifiedAt) : Number.NaN;
|
|
289
|
+
if (!Number.isFinite(verifiedAt) || verifiedAt > now)
|
|
290
|
+
continue;
|
|
291
|
+
if (!Number.isFinite(latest) || verifiedAt > latest)
|
|
292
|
+
latest = verifiedAt;
|
|
293
|
+
}
|
|
294
|
+
return latest;
|
|
295
|
+
}
|
|
296
|
+
function statOrNull(filePath) {
|
|
297
|
+
try {
|
|
298
|
+
const stats = fs.statSync(filePath);
|
|
299
|
+
return stats.isFile() ? stats : null;
|
|
300
|
+
}
|
|
301
|
+
catch {
|
|
302
|
+
return null;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
function lstatRegularFileOrNull(filePath) {
|
|
306
|
+
try {
|
|
307
|
+
const stats = fs.lstatSync(filePath);
|
|
308
|
+
return stats.isFile() && !stats.isSymbolicLink() ? stats : null;
|
|
309
|
+
}
|
|
310
|
+
catch {
|
|
311
|
+
return null;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
function isSafeExistingDirectory(directoryPath) {
|
|
315
|
+
try {
|
|
316
|
+
prepareSafeDirectory(directoryPath, false);
|
|
317
|
+
return true;
|
|
318
|
+
}
|
|
319
|
+
catch {
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
function pathsResolveEqual(left, right) {
|
|
324
|
+
return path.resolve(left) === path.resolve(right);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Find a cache entry for this (package version, target) whose recorded identity still matches
|
|
328
|
+
* the files on disk, without hashing either of them.
|
|
329
|
+
*
|
|
330
|
+
* The entry directory is named `<packageVersion>-<sha256>`, so locating it the normal way means
|
|
331
|
+
* hashing the source first. Scanning the target directory for the version prefix and comparing
|
|
332
|
+
* the stat fields recorded at the last full verification reaches the same entry with bounded
|
|
333
|
+
* metadata reads. A miss - no entry, no identity file, a stat mismatch, or an expired
|
|
334
|
+
* TTL - returns null, and every caller then does the full hash-and-verify pass.
|
|
335
|
+
*/
|
|
336
|
+
export function lookupNativeRuntimeCacheEntry(request) {
|
|
337
|
+
try {
|
|
338
|
+
assertSafeCacheSegment(request.target, "target");
|
|
339
|
+
assertSafeCacheSegment(request.packageVersion, "package version");
|
|
340
|
+
const cacheRoot = request.cacheRoot ?? findProductionCacheRoot();
|
|
341
|
+
if (!cacheRoot)
|
|
342
|
+
return null;
|
|
343
|
+
const sourceRealPath = fs.realpathSync.native(request.sourcePath);
|
|
344
|
+
const sourceStats = statOrNull(sourceRealPath);
|
|
345
|
+
if (!sourceStats)
|
|
346
|
+
return null;
|
|
347
|
+
const runtime = currentRuntimeStamp();
|
|
348
|
+
const resolvedCacheRoot = path.resolve(cacheRoot);
|
|
349
|
+
const targetPath = path.join(resolvedCacheRoot, request.target);
|
|
350
|
+
if (!isSafeExistingDirectory(resolvedCacheRoot) || !isSafeExistingDirectory(targetPath))
|
|
351
|
+
return null;
|
|
352
|
+
const prefix = `${request.packageVersion}-`;
|
|
353
|
+
let entryNames;
|
|
354
|
+
try {
|
|
355
|
+
entryNames = fs.readdirSync(targetPath);
|
|
356
|
+
}
|
|
357
|
+
catch {
|
|
358
|
+
return null;
|
|
359
|
+
}
|
|
360
|
+
const now = request.now ?? Date.now();
|
|
361
|
+
for (const entryName of entryNames) {
|
|
362
|
+
if (!entryName.startsWith(prefix))
|
|
363
|
+
continue;
|
|
364
|
+
const entryPath = path.join(targetPath, entryName);
|
|
365
|
+
if (!isSafeExistingDirectory(entryPath))
|
|
366
|
+
continue;
|
|
367
|
+
const identity = readCacheIdentity(entryPath, sourceRealPath);
|
|
368
|
+
if (!identity)
|
|
369
|
+
continue;
|
|
370
|
+
const expectedEntryName = `${request.packageVersion}-${identity.sha256}`;
|
|
371
|
+
const expectedCacheKey = `${request.packageName}@${request.packageVersion}:${request.target}:${identity.sha256}`;
|
|
372
|
+
const loadedPath = path.resolve(identity.loadedPath);
|
|
373
|
+
if (entryName !== expectedEntryName ||
|
|
374
|
+
identity.cacheKey !== expectedCacheKey ||
|
|
375
|
+
identity.loadedPath !== loadedPath ||
|
|
376
|
+
path.dirname(loadedPath) !== entryPath ||
|
|
377
|
+
path.basename(loadedPath) !== path.basename(sourceRealPath)) {
|
|
378
|
+
continue;
|
|
379
|
+
}
|
|
380
|
+
// Same version, same bytes, different install. The cache root is shared by every project
|
|
381
|
+
// on the machine, and npm can produce byte-identical files with matching mtimes, so size
|
|
382
|
+
// and mtime alone can match another project's record - whose sourcePath would then be
|
|
383
|
+
// replayed into this build's binding origin and change its runtime fingerprint.
|
|
384
|
+
if (identity.sourcePath !== sourceRealPath)
|
|
385
|
+
continue;
|
|
386
|
+
if (identity.sourceSize !== sourceStats.size || identity.sourceMtimeMs !== sourceStats.mtimeMs)
|
|
387
|
+
continue;
|
|
388
|
+
if (identity.origin.packageName !== request.packageName ||
|
|
389
|
+
identity.origin.packageVersion !== request.packageVersion ||
|
|
390
|
+
identity.origin.target !== request.target ||
|
|
391
|
+
identity.origin.sourcePath === undefined ||
|
|
392
|
+
identity.origin.loadedPath === undefined ||
|
|
393
|
+
!pathsResolveEqual(identity.origin.sourcePath, sourceRealPath) ||
|
|
394
|
+
!pathsResolveEqual(identity.origin.loadedPath, identity.loadedPath) ||
|
|
395
|
+
identity.origin.cacheKey !== identity.cacheKey ||
|
|
396
|
+
identity.origin.sha256 !== identity.sha256) {
|
|
397
|
+
continue;
|
|
398
|
+
}
|
|
399
|
+
// Recorded by a runtime that could load the file. A different ABI cannot, and claiming
|
|
400
|
+
// otherwise would report native as available for a build that falls back away from it.
|
|
401
|
+
if (identity.runtime.abi !== runtime.abi ||
|
|
402
|
+
identity.runtime.platform !== runtime.platform ||
|
|
403
|
+
identity.runtime.arch !== runtime.arch) {
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
const cachedStats = lstatRegularFileOrNull(identity.loadedPath);
|
|
407
|
+
if (!cachedStats)
|
|
408
|
+
continue;
|
|
409
|
+
if (identity.cachedSize !== cachedStats.size || identity.cachedMtimeMs !== cachedStats.mtimeMs)
|
|
410
|
+
continue;
|
|
411
|
+
const verifiedAt = Date.parse(identity.verifiedAt);
|
|
412
|
+
if (!Number.isFinite(verifiedAt) || verifiedAt > now || now - verifiedAt >= IDENTITY_REVERIFY_INTERVAL_MS) {
|
|
413
|
+
continue;
|
|
414
|
+
}
|
|
415
|
+
if (!isWithinDirectory(identity.loadedPath, resolvedCacheRoot))
|
|
416
|
+
continue;
|
|
417
|
+
return { entryPath, identity, revalidateAt: verifiedAt + IDENTITY_REVERIFY_INTERVAL_MS };
|
|
418
|
+
}
|
|
419
|
+
return null;
|
|
420
|
+
}
|
|
421
|
+
catch {
|
|
422
|
+
return null;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Record what a successful load proved about this entry, so the next process can skip both
|
|
427
|
+
* SHA-256 passes and the addon load itself. Called only after the binary at `loadedPath` has
|
|
428
|
+
* been fully verified and then loaded, so every field describes a state known to work.
|
|
429
|
+
*
|
|
430
|
+
* Replaces any previous record atomically: the TTL refresh rewrites it, unlike the immutable
|
|
431
|
+
* `manifest.json` beside it.
|
|
432
|
+
*/
|
|
433
|
+
export function recordNativeRuntimeCacheIdentity(identity) {
|
|
434
|
+
try {
|
|
435
|
+
const sourceStats = statOrNull(identity.sourcePath);
|
|
436
|
+
const cachedStats = lstatRegularFileOrNull(identity.loadedPath);
|
|
437
|
+
if (!sourceStats ||
|
|
438
|
+
!cachedStats ||
|
|
439
|
+
sourceStats.size !== identity.sourceSize ||
|
|
440
|
+
sourceStats.mtimeMs !== identity.sourceMtimeMs ||
|
|
441
|
+
cachedStats.size !== identity.cachedSize ||
|
|
442
|
+
cachedStats.mtimeMs !== identity.cachedMtimeMs) {
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
const entryPath = path.dirname(identity.loadedPath);
|
|
446
|
+
const record = {
|
|
447
|
+
version: IDENTITY_VERSION,
|
|
448
|
+
runtime: currentRuntimeStamp(),
|
|
449
|
+
...identity,
|
|
450
|
+
};
|
|
451
|
+
const finalPath = identityFilePath(entryPath, identity.sourcePath);
|
|
452
|
+
const temporaryPath = `${finalPath}.${randomSuffix()}.tmp`;
|
|
453
|
+
try {
|
|
454
|
+
const descriptor = fs.openSync(temporaryPath, "wx");
|
|
455
|
+
try {
|
|
456
|
+
fs.writeFileSync(descriptor, `${JSON.stringify(record, null, 2)}\n`, "utf8");
|
|
457
|
+
fs.fsyncSync(descriptor);
|
|
458
|
+
}
|
|
459
|
+
finally {
|
|
460
|
+
fs.closeSync(descriptor);
|
|
461
|
+
}
|
|
462
|
+
fs.renameSync(temporaryPath, finalPath);
|
|
463
|
+
}
|
|
464
|
+
catch {
|
|
465
|
+
removeRegularTemporaryFile(temporaryPath);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
catch {
|
|
469
|
+
// Best effort. Failing to record identity costs the next process the slow path, nothing more.
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* When an entry was last known to be in use, and which version it holds.
|
|
474
|
+
*
|
|
475
|
+
* Path-keyed identity records are refreshed whenever a process re-verifies an entry, so their
|
|
476
|
+
* latest non-future timestamp is the freshest signal. `manifest.json`'s `cachedAt` covers an
|
|
477
|
+
* entry that has never been loaded through the fast path. An entry that yields neither is left
|
|
478
|
+
* alone rather than guessed about.
|
|
479
|
+
*/
|
|
480
|
+
function readEntrySummary(entryPath, now) {
|
|
481
|
+
let packageVersion = null;
|
|
482
|
+
let sourceFileName = null;
|
|
483
|
+
let cachedAtMs = null;
|
|
484
|
+
try {
|
|
485
|
+
const parsed = JSON.parse(fs.readFileSync(path.join(entryPath, "manifest.json"), "utf8"));
|
|
486
|
+
if (parsed && typeof parsed === "object") {
|
|
487
|
+
const manifest = parsed;
|
|
488
|
+
if (typeof manifest.packageVersion === "string" && manifest.packageVersion) {
|
|
489
|
+
packageVersion = manifest.packageVersion;
|
|
490
|
+
}
|
|
491
|
+
if (typeof manifest.sourceFileName === "string" &&
|
|
492
|
+
manifest.sourceFileName &&
|
|
493
|
+
path.basename(manifest.sourceFileName) === manifest.sourceFileName) {
|
|
494
|
+
sourceFileName = manifest.sourceFileName;
|
|
495
|
+
}
|
|
496
|
+
const cachedAt = typeof manifest.cachedAt === "string" ? Date.parse(manifest.cachedAt) : Number.NaN;
|
|
497
|
+
if (Number.isFinite(cachedAt))
|
|
498
|
+
cachedAtMs = cachedAt;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
catch {
|
|
502
|
+
// Missing or malformed: indistinguishable from an entry another process is still writing.
|
|
503
|
+
return null;
|
|
504
|
+
}
|
|
505
|
+
if (!packageVersion || !sourceFileName)
|
|
506
|
+
return null;
|
|
507
|
+
const verifiedAt = latestCacheIdentityVerifiedAt(entryPath, now);
|
|
508
|
+
const lastUsedMs = Number.isFinite(verifiedAt) ? verifiedAt : cachedAtMs;
|
|
509
|
+
if (lastUsedMs === null)
|
|
510
|
+
return null;
|
|
511
|
+
return { packageVersion, lastUsedMs, sourceFileName };
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Delete the mapped binary before its metadata. Windows rejects an unlink of a loaded DLL,
|
|
515
|
+
* leaving the whole entry unchanged instead of partially deleting it through recursive removal.
|
|
516
|
+
*/
|
|
517
|
+
function removeAbandonedEntry(entryPath, sourceFileName) {
|
|
518
|
+
const cachedBinaryPath = path.join(entryPath, sourceFileName);
|
|
519
|
+
if (!isWithinDirectory(cachedBinaryPath, entryPath) || path.dirname(cachedBinaryPath) !== entryPath) {
|
|
520
|
+
throw new Error("invalid native cache binary path");
|
|
521
|
+
}
|
|
522
|
+
const stats = fs.lstatSync(cachedBinaryPath);
|
|
523
|
+
if (!stats.isFile() || stats.isSymbolicLink())
|
|
524
|
+
throw new Error("unsafe native cache binary");
|
|
525
|
+
fs.unlinkSync(cachedBinaryPath);
|
|
526
|
+
fs.rmSync(entryPath, { recursive: true, force: true });
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* Delete entries that no project has used in a long time.
|
|
530
|
+
*
|
|
531
|
+
* The cache only ever grew: every upgrade left roughly 29 MB behind, and a machine that had
|
|
532
|
+
* tracked a few releases carried well over a hundred megabytes of addons nothing would load
|
|
533
|
+
* again. Keeping the directory small also keeps it warm, which is what the stat-only fast path
|
|
534
|
+
* above depends on.
|
|
535
|
+
*
|
|
536
|
+
* Retention is by age rather than by version, because the cache root is per-user and shared by
|
|
537
|
+
* every project on the machine. Removing "every version that is not the one installing" would
|
|
538
|
+
* make two projects pinned to different native versions delete each other's entry on every run.
|
|
539
|
+
*
|
|
540
|
+
* Best effort throughout, and deliberately conservative:
|
|
541
|
+
* - the entry just produced is never a candidate, nor is any entry for its version;
|
|
542
|
+
* - an entry whose manifest is missing, unreadable, or undated is left alone, because that is
|
|
543
|
+
* what a concurrent population in progress looks like;
|
|
544
|
+
* - Windows holds a lock on a loaded DLL, so unlinking its binary fails with EBUSY or EPERM
|
|
545
|
+
* before recursive metadata removal begins. Those failures preserve the whole entry and are
|
|
546
|
+
* expected rather than exceptional, so they are simply skipped.
|
|
547
|
+
*/
|
|
548
|
+
function pruneAbandonedEntries(targetPath, cacheRoot, keepEntryPath, keepVersion, now) {
|
|
549
|
+
let entryNames;
|
|
550
|
+
try {
|
|
551
|
+
entryNames = fs.readdirSync(targetPath);
|
|
552
|
+
}
|
|
553
|
+
catch {
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
for (const entryName of entryNames) {
|
|
557
|
+
const entryPath = path.join(targetPath, entryName);
|
|
558
|
+
if (entryPath === keepEntryPath)
|
|
559
|
+
continue;
|
|
560
|
+
if (!isWithinDirectory(entryPath, cacheRoot))
|
|
561
|
+
continue;
|
|
562
|
+
try {
|
|
563
|
+
if (!fs.lstatSync(entryPath).isDirectory())
|
|
564
|
+
continue;
|
|
565
|
+
}
|
|
566
|
+
catch {
|
|
567
|
+
continue;
|
|
568
|
+
}
|
|
569
|
+
const summary = readEntrySummary(entryPath, now);
|
|
570
|
+
if (!summary || summary.packageVersion === keepVersion)
|
|
571
|
+
continue;
|
|
572
|
+
if (now - summary.lastUsedMs < ABANDONED_ENTRY_RETENTION_MS)
|
|
573
|
+
continue;
|
|
574
|
+
try {
|
|
575
|
+
removeAbandonedEntry(entryPath, summary.sourceFileName);
|
|
576
|
+
}
|
|
577
|
+
catch {
|
|
578
|
+
// In use, incomplete, or not ours to remove. The next install tries again.
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
export function prepareNativeRuntimeCache(request) {
|
|
583
|
+
const sourcePath = path.resolve(request.sourcePath);
|
|
584
|
+
try {
|
|
585
|
+
assertSafeCacheSegment(request.target, "target");
|
|
586
|
+
assertSafeCacheSegment(request.packageVersion, "package version");
|
|
587
|
+
// Cheap-identity fast path: a previous process verified this exact pair of files and
|
|
588
|
+
// recorded their stat fields, so nothing here needs to be hashed. Population and every
|
|
589
|
+
// mismatch still take the full path below.
|
|
590
|
+
const hit = lookupNativeRuntimeCacheEntry({
|
|
591
|
+
sourcePath,
|
|
592
|
+
packageName: request.packageName,
|
|
593
|
+
packageVersion: request.packageVersion,
|
|
594
|
+
target: request.target,
|
|
595
|
+
...(request.cacheRoot !== undefined ? { cacheRoot: request.cacheRoot } : {}),
|
|
596
|
+
...(request.now !== undefined ? { now: request.now } : {}),
|
|
597
|
+
});
|
|
598
|
+
if (hit) {
|
|
599
|
+
return {
|
|
600
|
+
status: "reused",
|
|
601
|
+
sourcePath: hit.identity.sourcePath,
|
|
602
|
+
loadedPath: hit.identity.loadedPath,
|
|
603
|
+
cacheKey: hit.identity.cacheKey,
|
|
604
|
+
sha256: hit.identity.sha256,
|
|
605
|
+
sourceSize: hit.identity.sourceSize,
|
|
606
|
+
sourceMtimeMs: hit.identity.sourceMtimeMs,
|
|
607
|
+
cachedSize: hit.identity.cachedSize,
|
|
608
|
+
cachedMtimeMs: hit.identity.cachedMtimeMs,
|
|
609
|
+
verified: false,
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
const sourceRealPath = fs.realpathSync.native(sourcePath);
|
|
613
|
+
const source = hashFileStreaming(sourceRealPath);
|
|
614
|
+
const cacheRoot = prepareSafeDirectory(request.cacheRoot ?? resolveProductionCacheRoot());
|
|
615
|
+
const targetPath = prepareSafeDirectory(path.join(cacheRoot, request.target));
|
|
616
|
+
if (!isWithinDirectory(targetPath, cacheRoot)) {
|
|
617
|
+
throw new Error("native cache target escaped the cache root");
|
|
618
|
+
}
|
|
619
|
+
const cacheKey = `${request.packageName}@${request.packageVersion}:${request.target}:${source.sha256}`;
|
|
620
|
+
const entryPath = prepareSafeDirectory(path.join(targetPath, `${request.packageVersion}-${source.sha256}`));
|
|
621
|
+
if (!isWithinDirectory(entryPath, cacheRoot)) {
|
|
622
|
+
throw new Error("native cache entry escaped the cache root");
|
|
623
|
+
}
|
|
624
|
+
const sourceFileName = path.basename(sourceRealPath);
|
|
625
|
+
const finalPath = path.join(entryPath, sourceFileName);
|
|
626
|
+
let status = "reused";
|
|
627
|
+
let cached = fs.existsSync(finalPath) ? verifyFile(finalPath, source) : null;
|
|
628
|
+
if (!cached) {
|
|
629
|
+
if (fs.existsSync(finalPath))
|
|
630
|
+
recoverCorruptFinal(finalPath);
|
|
631
|
+
status = populateBinary(sourceRealPath, finalPath, source) ? "cached" : "reused";
|
|
632
|
+
cached = verifyFile(finalPath, source);
|
|
633
|
+
if (!cached) {
|
|
634
|
+
throw new Error("native cache winner failed integrity verification");
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
writeManifest(entryPath, {
|
|
638
|
+
schemaVersion: CACHE_SCHEMA_VERSION,
|
|
639
|
+
packageName: request.packageName,
|
|
640
|
+
packageVersion: request.packageVersion,
|
|
641
|
+
target: request.target,
|
|
642
|
+
sourceFileName,
|
|
643
|
+
sourceSize: source.size,
|
|
644
|
+
sourceSha256: source.sha256,
|
|
645
|
+
cachedAt: new Date().toISOString(),
|
|
646
|
+
});
|
|
647
|
+
// Only on the verified path. A fast-path hit means nothing new arrived, so there is nothing
|
|
648
|
+
// to clean up, and the warm run stays free of extra directory work.
|
|
649
|
+
pruneAbandonedEntries(targetPath, cacheRoot, entryPath, request.packageVersion, request.now ?? Date.now());
|
|
650
|
+
return {
|
|
651
|
+
status,
|
|
652
|
+
sourcePath: sourceRealPath,
|
|
653
|
+
loadedPath: finalPath,
|
|
654
|
+
cacheKey,
|
|
655
|
+
sha256: source.sha256,
|
|
656
|
+
sourceSize: source.size,
|
|
657
|
+
sourceMtimeMs: source.mtimeMs,
|
|
658
|
+
cachedSize: cached.size,
|
|
659
|
+
cachedMtimeMs: cached.mtimeMs,
|
|
660
|
+
verified: true,
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
catch (error) {
|
|
664
|
+
return { status: "unavailable", sourcePath, error: asError(error) };
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
//# sourceMappingURL=runtime-cache.js.map
|