@lzehrung/codegraph 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +448 -0
- package/THIRD_PARTY_NOTICES +77 -0
- package/codegraph-skill/codegraph/SKILL.md +262 -0
- package/dist/agent/artifact.d.ts +65 -0
- package/dist/agent/artifact.d.ts.map +1 -0
- package/dist/agent/artifact.js +616 -0
- package/dist/agent/artifact.js.map +1 -0
- package/dist/agent/bounds.d.ts +12 -0
- package/dist/agent/bounds.d.ts.map +1 -0
- package/dist/agent/bounds.js +25 -0
- package/dist/agent/bounds.js.map +1 -0
- package/dist/agent/callHierarchy.d.ts +28 -0
- package/dist/agent/callHierarchy.d.ts.map +1 -0
- package/dist/agent/callHierarchy.js +82 -0
- package/dist/agent/callHierarchy.js.map +1 -0
- package/dist/agent/explain.d.ts +136 -0
- package/dist/agent/explain.d.ts.map +1 -0
- package/dist/agent/explain.js +743 -0
- package/dist/agent/explain.js.map +1 -0
- package/dist/agent/explore.d.ts +67 -0
- package/dist/agent/explore.d.ts.map +1 -0
- package/dist/agent/explore.js +474 -0
- package/dist/agent/explore.js.map +1 -0
- package/dist/agent/fileView.d.ts +55 -0
- package/dist/agent/fileView.d.ts.map +1 -0
- package/dist/agent/fileView.js +528 -0
- package/dist/agent/fileView.js.map +1 -0
- package/dist/agent/followUps.d.ts +9 -0
- package/dist/agent/followUps.d.ts.map +1 -0
- package/dist/agent/followUps.js +164 -0
- package/dist/agent/followUps.js.map +1 -0
- package/dist/agent/handles.d.ts +29 -0
- package/dist/agent/handles.d.ts.map +1 -0
- package/dist/agent/handles.js +103 -0
- package/dist/agent/handles.js.map +1 -0
- package/dist/agent/normalize.d.ts +19 -0
- package/dist/agent/normalize.d.ts.map +1 -0
- package/dist/agent/normalize.js +45 -0
- package/dist/agent/normalize.js.map +1 -0
- package/dist/agent/orient.d.ts +55 -0
- package/dist/agent/orient.d.ts.map +1 -0
- package/dist/agent/orient.js +307 -0
- package/dist/agent/orient.js.map +1 -0
- package/dist/agent/packet.d.ts +28 -0
- package/dist/agent/packet.d.ts.map +1 -0
- package/dist/agent/packet.js +138 -0
- package/dist/agent/packet.js.map +1 -0
- package/dist/agent/query-index/candidates.d.ts +4 -0
- package/dist/agent/query-index/candidates.d.ts.map +1 -0
- package/dist/agent/query-index/candidates.js +89 -0
- package/dist/agent/query-index/candidates.js.map +1 -0
- package/dist/agent/query-index/content.d.ts +36 -0
- package/dist/agent/query-index/content.d.ts.map +1 -0
- package/dist/agent/query-index/content.js +124 -0
- package/dist/agent/query-index/content.js.map +1 -0
- package/dist/agent/query-index/paths.d.ts +12 -0
- package/dist/agent/query-index/paths.d.ts.map +1 -0
- package/dist/agent/query-index/paths.js +41 -0
- package/dist/agent/query-index/paths.js.map +1 -0
- package/dist/agent/query-index/queryIndexWorker.d.ts +8 -0
- package/dist/agent/query-index/queryIndexWorker.d.ts.map +1 -0
- package/dist/agent/query-index/queryIndexWorker.js +11 -0
- package/dist/agent/query-index/queryIndexWorker.js.map +1 -0
- package/dist/agent/query-index/schema.d.ts +26 -0
- package/dist/agent/query-index/schema.d.ts.map +1 -0
- package/dist/agent/query-index/schema.js +171 -0
- package/dist/agent/query-index/schema.js.map +1 -0
- package/dist/agent/query-index/sessionStore.d.ts +5 -0
- package/dist/agent/query-index/sessionStore.d.ts.map +1 -0
- package/dist/agent/query-index/sessionStore.js +53 -0
- package/dist/agent/query-index/sessionStore.js.map +1 -0
- package/dist/agent/query-index/sourceIdentity.d.ts +3 -0
- package/dist/agent/query-index/sourceIdentity.d.ts.map +1 -0
- package/dist/agent/query-index/sourceIdentity.js +12 -0
- package/dist/agent/query-index/sourceIdentity.js.map +1 -0
- package/dist/agent/query-index/store.d.ts +48 -0
- package/dist/agent/query-index/store.d.ts.map +1 -0
- package/dist/agent/query-index/store.js +372 -0
- package/dist/agent/query-index/store.js.map +1 -0
- package/dist/agent/query-index/update.d.ts +9 -0
- package/dist/agent/query-index/update.d.ts.map +1 -0
- package/dist/agent/query-index/update.js +309 -0
- package/dist/agent/query-index/update.js.map +1 -0
- package/dist/agent/query-index/workerPool.d.ts +5 -0
- package/dist/agent/query-index/workerPool.d.ts.map +1 -0
- package/dist/agent/query-index/workerPool.js +82 -0
- package/dist/agent/query-index/workerPool.js.map +1 -0
- package/dist/agent/refactorPlan.d.ts +40 -0
- package/dist/agent/refactorPlan.d.ts.map +1 -0
- package/dist/agent/refactorPlan.js +234 -0
- package/dist/agent/refactorPlan.js.map +1 -0
- package/dist/agent/renamePreview.d.ts +60 -0
- package/dist/agent/renamePreview.d.ts.map +1 -0
- package/dist/agent/renamePreview.js +1008 -0
- package/dist/agent/renamePreview.js.map +1 -0
- package/dist/agent/search.d.ts +77 -0
- package/dist/agent/search.d.ts.map +1 -0
- package/dist/agent/search.js +1002 -0
- package/dist/agent/search.js.map +1 -0
- package/dist/agent/semantic.d.ts +35 -0
- package/dist/agent/semantic.d.ts.map +1 -0
- package/dist/agent/semantic.js +2 -0
- package/dist/agent/semantic.js.map +1 -0
- package/dist/agent/semanticSymbols.d.ts +16 -0
- package/dist/agent/semanticSymbols.d.ts.map +1 -0
- package/dist/agent/semanticSymbols.js +96 -0
- package/dist/agent/semanticSymbols.js.map +1 -0
- package/dist/agent/session.d.ts +71 -0
- package/dist/agent/session.d.ts.map +1 -0
- package/dist/agent/session.js +432 -0
- package/dist/agent/session.js.map +1 -0
- package/dist/agent/sessionLifecycle.d.ts +5 -0
- package/dist/agent/sessionLifecycle.d.ts.map +1 -0
- package/dist/agent/sessionLifecycle.js +18 -0
- package/dist/agent/sessionLifecycle.js.map +1 -0
- package/dist/agent/shell.d.ts +2 -0
- package/dist/agent/shell.d.ts.map +1 -0
- package/dist/agent/shell.js +6 -0
- package/dist/agent/shell.js.map +1 -0
- package/dist/agent/symbolLookup.d.ts +12 -0
- package/dist/agent/symbolLookup.d.ts.map +1 -0
- package/dist/agent/symbolLookup.js +26 -0
- package/dist/agent/symbolLookup.js.map +1 -0
- package/dist/agent/typeHierarchy.d.ts +39 -0
- package/dist/agent/typeHierarchy.d.ts.map +1 -0
- package/dist/agent/typeHierarchy.js +125 -0
- package/dist/agent/typeHierarchy.js.map +1 -0
- package/dist/agent/workspaceSymbols.d.ts +18 -0
- package/dist/agent/workspaceSymbols.d.ts.map +1 -0
- package/dist/agent/workspaceSymbols.js +75 -0
- package/dist/agent/workspaceSymbols.js.map +1 -0
- package/dist/agent-tools.d.ts +280 -0
- package/dist/agent-tools.d.ts.map +1 -0
- package/dist/agent-tools.js +669 -0
- package/dist/agent-tools.js.map +1 -0
- package/dist/agent.d.ts +35 -0
- package/dist/agent.d.ts.map +1 -0
- package/dist/agent.js +19 -0
- package/dist/agent.js.map +1 -0
- package/dist/analysisSummary.d.ts +19 -0
- package/dist/analysisSummary.d.ts.map +1 -0
- package/dist/analysisSummary.js +80 -0
- package/dist/analysisSummary.js.map +1 -0
- package/dist/bin/cli.js +105144 -0
- package/dist/bin/queryIndexWorker.js +3914 -0
- package/dist/bootstrap/treeSitterLanguages.d.ts +5 -0
- package/dist/bootstrap/treeSitterLanguages.d.ts.map +1 -0
- package/dist/bootstrap/treeSitterLanguages.js +41 -0
- package/dist/bootstrap/treeSitterLanguages.js.map +1 -0
- package/dist/chunking/chunkBlocks.d.ts +9 -0
- package/dist/chunking/chunkBlocks.d.ts.map +1 -0
- package/dist/chunking/chunkBlocks.js +60 -0
- package/dist/chunking/chunkBlocks.js.map +1 -0
- package/dist/chunking/chunkFile.d.ts +34 -0
- package/dist/chunking/chunkFile.d.ts.map +1 -0
- package/dist/chunking/chunkFile.js +153 -0
- package/dist/chunking/chunkFile.js.map +1 -0
- package/dist/chunking/chunkId.d.ts +7 -0
- package/dist/chunking/chunkId.d.ts.map +1 -0
- package/dist/chunking/chunkId.js +30 -0
- package/dist/chunking/chunkId.js.map +1 -0
- package/dist/chunking/chunkMatches.d.ts +4 -0
- package/dist/chunking/chunkMatches.d.ts.map +1 -0
- package/dist/chunking/chunkMatches.js +65 -0
- package/dist/chunking/chunkMatches.js.map +1 -0
- package/dist/chunking/chunkMerge.d.ts +4 -0
- package/dist/chunking/chunkMerge.d.ts.map +1 -0
- package/dist/chunking/chunkMerge.js +144 -0
- package/dist/chunking/chunkMerge.js.map +1 -0
- package/dist/chunking/chunkSFC.d.ts +18 -0
- package/dist/chunking/chunkSFC.d.ts.map +1 -0
- package/dist/chunking/chunkSFC.js +165 -0
- package/dist/chunking/chunkSFC.js.map +1 -0
- package/dist/chunking/chunkSplit.d.ts +6 -0
- package/dist/chunking/chunkSplit.d.ts.map +1 -0
- package/dist/chunking/chunkSplit.js +170 -0
- package/dist/chunking/chunkSplit.js.map +1 -0
- package/dist/chunking/chunkTextFile.d.ts +28 -0
- package/dist/chunking/chunkTextFile.d.ts.map +1 -0
- package/dist/chunking/chunkTextFile.js +107 -0
- package/dist/chunking/chunkTextFile.js.map +1 -0
- package/dist/chunking/languageConfig.d.ts +35 -0
- package/dist/chunking/languageConfig.d.ts.map +1 -0
- package/dist/chunking/languageConfig.js +24 -0
- package/dist/chunking/languageConfig.js.map +1 -0
- package/dist/chunking/tokenizer.d.ts +2 -0
- package/dist/chunking/tokenizer.d.ts.map +1 -0
- package/dist/chunking/tokenizer.js +6 -0
- package/dist/chunking/tokenizer.js.map +1 -0
- package/dist/chunking/types.d.ts +54 -0
- package/dist/chunking/types.d.ts.map +1 -0
- package/dist/chunking/types.js +2 -0
- package/dist/chunking/types.js.map +1 -0
- package/dist/cli/affected.d.ts +32 -0
- package/dist/cli/affected.d.ts.map +1 -0
- package/dist/cli/affected.js +235 -0
- package/dist/cli/affected.js.map +1 -0
- package/dist/cli/artifact.d.ts +4 -0
- package/dist/cli/artifact.d.ts.map +1 -0
- package/dist/cli/artifact.js +35 -0
- package/dist/cli/artifact.js.map +1 -0
- package/dist/cli/bootstrap.d.ts +3 -0
- package/dist/cli/bootstrap.d.ts.map +1 -0
- package/dist/cli/bootstrap.js +8 -0
- package/dist/cli/bootstrap.js.map +1 -0
- package/dist/cli/callHierarchy.d.ts +6 -0
- package/dist/cli/callHierarchy.d.ts.map +1 -0
- package/dist/cli/callHierarchy.js +65 -0
- package/dist/cli/callHierarchy.js.map +1 -0
- package/dist/cli/chunk.d.ts +4 -0
- package/dist/cli/chunk.d.ts.map +1 -0
- package/dist/cli/chunk.js +109 -0
- package/dist/cli/chunk.js.map +1 -0
- package/dist/cli/commandCatalog.d.ts +14 -0
- package/dist/cli/commandCatalog.d.ts.map +1 -0
- package/dist/cli/commandCatalog.js +109 -0
- package/dist/cli/commandCatalog.js.map +1 -0
- package/dist/cli/commandTable.d.ts +16 -0
- package/dist/cli/commandTable.d.ts.map +1 -0
- package/dist/cli/commandTable.js +716 -0
- package/dist/cli/commandTable.js.map +1 -0
- package/dist/cli/compileCache.d.ts +17 -0
- package/dist/cli/compileCache.d.ts.map +1 -0
- package/dist/cli/compileCache.js +63 -0
- package/dist/cli/compileCache.js.map +1 -0
- package/dist/cli/context.d.ts +87 -0
- package/dist/cli/context.d.ts.map +1 -0
- package/dist/cli/context.js +322 -0
- package/dist/cli/context.js.map +1 -0
- package/dist/cli/discoveryGlobs.d.ts +11 -0
- package/dist/cli/discoveryGlobs.d.ts.map +1 -0
- package/dist/cli/discoveryGlobs.js +74 -0
- package/dist/cli/discoveryGlobs.js.map +1 -0
- package/dist/cli/doctor.d.ts +33 -0
- package/dist/cli/doctor.d.ts.map +1 -0
- package/dist/cli/doctor.js +143 -0
- package/dist/cli/doctor.js.map +1 -0
- package/dist/cli/drift.d.ts +18 -0
- package/dist/cli/drift.d.ts.map +1 -0
- package/dist/cli/drift.js +101 -0
- package/dist/cli/drift.js.map +1 -0
- package/dist/cli/duplicateSimilarity.d.ts +10 -0
- package/dist/cli/duplicateSimilarity.d.ts.map +1 -0
- package/dist/cli/duplicateSimilarity.js +20 -0
- package/dist/cli/duplicateSimilarity.js.map +1 -0
- package/dist/cli/duplicates.d.ts +15 -0
- package/dist/cli/duplicates.d.ts.map +1 -0
- package/dist/cli/duplicates.js +400 -0
- package/dist/cli/duplicates.js.map +1 -0
- package/dist/cli/explain.d.ts +4 -0
- package/dist/cli/explain.d.ts.map +1 -0
- package/dist/cli/explain.js +47 -0
- package/dist/cli/explain.js.map +1 -0
- package/dist/cli/explore.d.ts +4 -0
- package/dist/cli/explore.d.ts.map +1 -0
- package/dist/cli/explore.js +28 -0
- package/dist/cli/explore.js.map +1 -0
- package/dist/cli/file.d.ts +4 -0
- package/dist/cli/file.d.ts.map +1 -0
- package/dist/cli/file.js +53 -0
- package/dist/cli/file.js.map +1 -0
- package/dist/cli/graph.d.ts +90 -0
- package/dist/cli/graph.d.ts.map +1 -0
- package/dist/cli/graph.js +379 -0
- package/dist/cli/graph.js.map +1 -0
- package/dist/cli/graphDelta.d.ts +24 -0
- package/dist/cli/graphDelta.d.ts.map +1 -0
- package/dist/cli/graphDelta.js +75 -0
- package/dist/cli/graphDelta.js.map +1 -0
- package/dist/cli/graphQueries.d.ts +23 -0
- package/dist/cli/graphQueries.d.ts.map +1 -0
- package/dist/cli/graphQueries.js +257 -0
- package/dist/cli/graphQueries.js.map +1 -0
- package/dist/cli/grep.d.ts +10 -0
- package/dist/cli/grep.d.ts.map +1 -0
- package/dist/cli/grep.js +61 -0
- package/dist/cli/grep.js.map +1 -0
- package/dist/cli/help.d.ts +52 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/help.js +749 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/impact.d.ts +24 -0
- package/dist/cli/impact.d.ts.map +1 -0
- package/dist/cli/impact.js +481 -0
- package/dist/cli/impact.js.map +1 -0
- package/dist/cli/index.d.ts +43 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +112 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/indexPolicy.d.ts +36 -0
- package/dist/cli/indexPolicy.d.ts.map +1 -0
- package/dist/cli/indexPolicy.js +168 -0
- package/dist/cli/indexPolicy.js.map +1 -0
- package/dist/cli/inspect.d.ts +30 -0
- package/dist/cli/inspect.d.ts.map +1 -0
- package/dist/cli/inspect.js +323 -0
- package/dist/cli/inspect.js.map +1 -0
- package/dist/cli/install.d.ts +14 -0
- package/dist/cli/install.d.ts.map +1 -0
- package/dist/cli/install.js +273 -0
- package/dist/cli/install.js.map +1 -0
- package/dist/cli/invocationContext.d.ts +77 -0
- package/dist/cli/invocationContext.d.ts.map +1 -0
- package/dist/cli/invocationContext.js +357 -0
- package/dist/cli/invocationContext.js.map +1 -0
- package/dist/cli/lifecycle.d.ts +11 -0
- package/dist/cli/lifecycle.d.ts.map +1 -0
- package/dist/cli/lifecycle.js +81 -0
- package/dist/cli/lifecycle.js.map +1 -0
- package/dist/cli/links.d.ts +11 -0
- package/dist/cli/links.d.ts.map +1 -0
- package/dist/cli/links.js +53 -0
- package/dist/cli/links.js.map +1 -0
- package/dist/cli/location.d.ts +5 -0
- package/dist/cli/location.d.ts.map +1 -0
- package/dist/cli/location.js +11 -0
- package/dist/cli/location.js.map +1 -0
- package/dist/cli/mcp.d.ts +7 -0
- package/dist/cli/mcp.d.ts.map +1 -0
- package/dist/cli/mcp.js +60 -0
- package/dist/cli/mcp.js.map +1 -0
- package/dist/cli/navigation.d.ts +23 -0
- package/dist/cli/navigation.d.ts.map +1 -0
- package/dist/cli/navigation.js +367 -0
- package/dist/cli/navigation.js.map +1 -0
- package/dist/cli/options.d.ts +21 -0
- package/dist/cli/options.d.ts.map +1 -0
- package/dist/cli/options.js +694 -0
- package/dist/cli/options.js.map +1 -0
- package/dist/cli/orient.d.ts +6 -0
- package/dist/cli/orient.d.ts.map +1 -0
- package/dist/cli/orient.js +72 -0
- package/dist/cli/orient.js.map +1 -0
- package/dist/cli/packet.d.ts +4 -0
- package/dist/cli/packet.d.ts.map +1 -0
- package/dist/cli/packet.js +53 -0
- package/dist/cli/packet.js.map +1 -0
- package/dist/cli/pretty.d.ts +9 -0
- package/dist/cli/pretty.d.ts.map +1 -0
- package/dist/cli/pretty.js +91 -0
- package/dist/cli/pretty.js.map +1 -0
- package/dist/cli/progress.d.ts +20 -0
- package/dist/cli/progress.d.ts.map +1 -0
- package/dist/cli/progress.js +156 -0
- package/dist/cli/progress.js.map +1 -0
- package/dist/cli/projectFile.d.ts +13 -0
- package/dist/cli/projectFile.d.ts.map +1 -0
- package/dist/cli/projectFile.js +23 -0
- package/dist/cli/projectFile.js.map +1 -0
- package/dist/cli/refactorPlan.d.ts +6 -0
- package/dist/cli/refactorPlan.d.ts.map +1 -0
- package/dist/cli/refactorPlan.js +84 -0
- package/dist/cli/refactorPlan.js.map +1 -0
- package/dist/cli/renamePreview.d.ts +4 -0
- package/dist/cli/renamePreview.d.ts.map +1 -0
- package/dist/cli/renamePreview.js +86 -0
- package/dist/cli/renamePreview.js.map +1 -0
- package/dist/cli/review.d.ts +36 -0
- package/dist/cli/review.d.ts.map +1 -0
- package/dist/cli/review.js +302 -0
- package/dist/cli/review.js.map +1 -0
- package/dist/cli/rootPolicy.d.ts +53 -0
- package/dist/cli/rootPolicy.d.ts.map +1 -0
- package/dist/cli/rootPolicy.js +190 -0
- package/dist/cli/rootPolicy.js.map +1 -0
- package/dist/cli/search.d.ts +8 -0
- package/dist/cli/search.d.ts.map +1 -0
- package/dist/cli/search.js +49 -0
- package/dist/cli/search.js.map +1 -0
- package/dist/cli/skill.d.ts +13 -0
- package/dist/cli/skill.d.ts.map +1 -0
- package/dist/cli/skill.js +227 -0
- package/dist/cli/skill.js.map +1 -0
- package/dist/cli/sql.d.ts +6 -0
- package/dist/cli/sql.d.ts.map +1 -0
- package/dist/cli/sql.js +37 -0
- package/dist/cli/sql.js.map +1 -0
- package/dist/cli/symbols.d.ts +4 -0
- package/dist/cli/symbols.d.ts.map +1 -0
- package/dist/cli/symbols.js +59 -0
- package/dist/cli/symbols.js.map +1 -0
- package/dist/cli/typeHierarchy.d.ts +6 -0
- package/dist/cli/typeHierarchy.d.ts.map +1 -0
- package/dist/cli/typeHierarchy.js +81 -0
- package/dist/cli/typeHierarchy.js.map +1 -0
- package/dist/cli/viewer.d.ts +27 -0
- package/dist/cli/viewer.d.ts.map +1 -0
- package/dist/cli/viewer.js +313 -0
- package/dist/cli/viewer.js.map +1 -0
- package/dist/cli.d.ts +7 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +185 -0
- package/dist/cli.js.map +1 -0
- package/dist/cliBootstrap.d.ts +3 -0
- package/dist/cliBootstrap.d.ts.map +1 -0
- package/dist/cliBootstrap.js +10 -0
- package/dist/cliBootstrap.js.map +1 -0
- package/dist/config.d.ts +18 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +141 -0
- package/dist/config.js.map +1 -0
- package/dist/documentLinks/asciidoc.d.ts +3 -0
- package/dist/documentLinks/asciidoc.d.ts.map +1 -0
- package/dist/documentLinks/asciidoc.js +115 -0
- package/dist/documentLinks/asciidoc.js.map +1 -0
- package/dist/documentLinks/check.d.ts +31 -0
- package/dist/documentLinks/check.d.ts.map +1 -0
- package/dist/documentLinks/check.js +272 -0
- package/dist/documentLinks/check.js.map +1 -0
- package/dist/documentLinks/html.d.ts +5 -0
- package/dist/documentLinks/html.d.ts.map +1 -0
- package/dist/documentLinks/html.js +324 -0
- package/dist/documentLinks/html.js.map +1 -0
- package/dist/documentLinks/markdown.d.ts +15 -0
- package/dist/documentLinks/markdown.d.ts.map +1 -0
- package/dist/documentLinks/markdown.js +538 -0
- package/dist/documentLinks/markdown.js.map +1 -0
- package/dist/documentLinks/rst.d.ts +3 -0
- package/dist/documentLinks/rst.d.ts.map +1 -0
- package/dist/documentLinks/rst.js +179 -0
- package/dist/documentLinks/rst.js.map +1 -0
- package/dist/documentLinks/sfc.d.ts +4 -0
- package/dist/documentLinks/sfc.d.ts.map +1 -0
- package/dist/documentLinks/sfc.js +30 -0
- package/dist/documentLinks/sfc.js.map +1 -0
- package/dist/documentLinks/shared.d.ts +11 -0
- package/dist/documentLinks/shared.d.ts.map +1 -0
- package/dist/documentLinks/shared.js +147 -0
- package/dist/documentLinks/shared.js.map +1 -0
- package/dist/documentLinks.d.ts +12 -0
- package/dist/documentLinks.d.ts.map +1 -0
- package/dist/documentLinks.js +50 -0
- package/dist/documentLinks.js.map +1 -0
- package/dist/drift/artifact.d.ts +3 -0
- package/dist/drift/artifact.d.ts.map +1 -0
- package/dist/drift/artifact.js +170 -0
- package/dist/drift/artifact.js.map +1 -0
- package/dist/drift/compare.d.ts +5 -0
- package/dist/drift/compare.d.ts.map +1 -0
- package/dist/drift/compare.js +355 -0
- package/dist/drift/compare.js.map +1 -0
- package/dist/drift/git.d.ts +3 -0
- package/dist/drift/git.d.ts.map +1 -0
- package/dist/drift/git.js +128 -0
- package/dist/drift/git.js.map +1 -0
- package/dist/drift/index.d.ts +8 -0
- package/dist/drift/index.d.ts.map +1 -0
- package/dist/drift/index.js +7 -0
- package/dist/drift/index.js.map +1 -0
- package/dist/drift/languages.d.ts +2 -0
- package/dist/drift/languages.d.ts.map +1 -0
- package/dist/drift/languages.js +18 -0
- package/dist/drift/languages.js.map +1 -0
- package/dist/drift/report.d.ts +6 -0
- package/dist/drift/report.d.ts.map +1 -0
- package/dist/drift/report.js +75 -0
- package/dist/drift/report.js.map +1 -0
- package/dist/drift/snapshot.d.ts +3 -0
- package/dist/drift/snapshot.d.ts.map +1 -0
- package/dist/drift/snapshot.js +164 -0
- package/dist/drift/snapshot.js.map +1 -0
- package/dist/drift/types.d.ts +142 -0
- package/dist/drift/types.d.ts.map +1 -0
- package/dist/drift/types.js +2 -0
- package/dist/drift/types.js.map +1 -0
- package/dist/duplicate-keywords.d.ts +3 -0
- package/dist/duplicate-keywords.d.ts.map +1 -0
- package/dist/duplicate-keywords.js +155 -0
- package/dist/duplicate-keywords.js.map +1 -0
- package/dist/duplicate-token-normalization.d.ts +6 -0
- package/dist/duplicate-token-normalization.d.ts.map +1 -0
- package/dist/duplicate-token-normalization.js +53 -0
- package/dist/duplicate-token-normalization.js.map +1 -0
- package/dist/duplicates/scoring.d.ts +121 -0
- package/dist/duplicates/scoring.d.ts.map +1 -0
- package/dist/duplicates/scoring.js +1245 -0
- package/dist/duplicates/scoring.js.map +1 -0
- package/dist/duplicates/types.d.ts +216 -0
- package/dist/duplicates/types.d.ts.map +1 -0
- package/dist/duplicates/types.js +2 -0
- package/dist/duplicates/types.js.map +1 -0
- package/dist/duplicates/unitCache.d.ts +40 -0
- package/dist/duplicates/unitCache.d.ts.map +1 -0
- package/dist/duplicates/unitCache.js +352 -0
- package/dist/duplicates/unitCache.js.map +1 -0
- package/dist/duplicates/units.d.ts +60 -0
- package/dist/duplicates/units.d.ts.map +1 -0
- package/dist/duplicates/units.js +447 -0
- package/dist/duplicates/units.js.map +1 -0
- package/dist/duplicates.d.ts +14 -0
- package/dist/duplicates.d.ts.map +1 -0
- package/dist/duplicates.js +400 -0
- package/dist/duplicates.js.map +1 -0
- package/dist/duplicatesLeads.d.ts +39 -0
- package/dist/duplicatesLeads.d.ts.map +1 -0
- package/dist/duplicatesLeads.js +112 -0
- package/dist/duplicatesLeads.js.map +1 -0
- package/dist/frameworks/angularjs.d.ts +18 -0
- package/dist/frameworks/angularjs.d.ts.map +1 -0
- package/dist/frameworks/angularjs.js +427 -0
- package/dist/frameworks/angularjs.js.map +1 -0
- package/dist/graph-builder.d.ts +35 -0
- package/dist/graph-builder.d.ts.map +1 -0
- package/dist/graph-builder.js +132 -0
- package/dist/graph-builder.js.map +1 -0
- package/dist/graph-edge-collector.d.ts +57 -0
- package/dist/graph-edge-collector.d.ts.map +1 -0
- package/dist/graph-edge-collector.js +199 -0
- package/dist/graph-edge-collector.js.map +1 -0
- package/dist/graphs/adjacency.d.ts +10 -0
- package/dist/graphs/adjacency.d.ts.map +1 -0
- package/dist/graphs/adjacency.js +38 -0
- package/dist/graphs/adjacency.js.map +1 -0
- package/dist/graphs/angularjs.d.ts +5 -0
- package/dist/graphs/angularjs.d.ts.map +1 -0
- package/dist/graphs/angularjs.js +88 -0
- package/dist/graphs/angularjs.js.map +1 -0
- package/dist/graphs/cycles.d.ts +24 -0
- package/dist/graphs/cycles.d.ts.map +1 -0
- package/dist/graphs/cycles.js +159 -0
- package/dist/graphs/cycles.js.map +1 -0
- package/dist/graphs/edgeResolution.d.ts +25 -0
- package/dist/graphs/edgeResolution.d.ts.map +1 -0
- package/dist/graphs/edgeResolution.js +97 -0
- package/dist/graphs/edgeResolution.js.map +1 -0
- package/dist/graphs/external/cache.d.ts +6 -0
- package/dist/graphs/external/cache.d.ts.map +1 -0
- package/dist/graphs/external/cache.js +21 -0
- package/dist/graphs/external/cache.js.map +1 -0
- package/dist/graphs/external/context.d.ts +9 -0
- package/dist/graphs/external/context.d.ts.map +1 -0
- package/dist/graphs/external/context.js +93 -0
- package/dist/graphs/external/context.js.map +1 -0
- package/dist/graphs/external/manifests.d.ts +8 -0
- package/dist/graphs/external/manifests.d.ts.map +1 -0
- package/dist/graphs/external/manifests.js +429 -0
- package/dist/graphs/external/manifests.js.map +1 -0
- package/dist/graphs/external/stdlib.d.ts +3 -0
- package/dist/graphs/external/stdlib.d.ts.map +1 -0
- package/dist/graphs/external/stdlib.js +166 -0
- package/dist/graphs/external/stdlib.js.map +1 -0
- package/dist/graphs/external-classifier.d.ts +16 -0
- package/dist/graphs/external-classifier.d.ts.map +1 -0
- package/dist/graphs/external-classifier.js +46 -0
- package/dist/graphs/external-classifier.js.map +1 -0
- package/dist/graphs/grep.d.ts +66 -0
- package/dist/graphs/grep.d.ts.map +1 -0
- package/dist/graphs/grep.js +131 -0
- package/dist/graphs/grep.js.map +1 -0
- package/dist/graphs/hotspots.d.ts +13 -0
- package/dist/graphs/hotspots.d.ts.map +1 -0
- package/dist/graphs/hotspots.js +88 -0
- package/dist/graphs/hotspots.js.map +1 -0
- package/dist/graphs/limits.d.ts +2 -0
- package/dist/graphs/limits.d.ts.map +1 -0
- package/dist/graphs/limits.js +7 -0
- package/dist/graphs/limits.js.map +1 -0
- package/dist/graphs/queries.d.ts +4 -0
- package/dist/graphs/queries.d.ts.map +1 -0
- package/dist/graphs/queries.js +4 -0
- package/dist/graphs/queries.js.map +1 -0
- package/dist/graphs/render.d.ts +6 -0
- package/dist/graphs/render.d.ts.map +1 -0
- package/dist/graphs/render.js +85 -0
- package/dist/graphs/render.js.map +1 -0
- package/dist/graphs/specifiers.d.ts +24 -0
- package/dist/graphs/specifiers.d.ts.map +1 -0
- package/dist/graphs/specifiers.js +434 -0
- package/dist/graphs/specifiers.js.map +1 -0
- package/dist/graphs/symbol-graph-detailed/ast.d.ts +25 -0
- package/dist/graphs/symbol-graph-detailed/ast.d.ts.map +1 -0
- package/dist/graphs/symbol-graph-detailed/ast.js +167 -0
- package/dist/graphs/symbol-graph-detailed/ast.js.map +1 -0
- package/dist/graphs/symbol-graph-detailed/edgePasses.d.ts +30 -0
- package/dist/graphs/symbol-graph-detailed/edgePasses.d.ts.map +1 -0
- package/dist/graphs/symbol-graph-detailed/edgePasses.js +484 -0
- package/dist/graphs/symbol-graph-detailed/edgePasses.js.map +1 -0
- package/dist/graphs/symbol-graph-detailed/importAliases.d.ts +10 -0
- package/dist/graphs/symbol-graph-detailed/importAliases.d.ts.map +1 -0
- package/dist/graphs/symbol-graph-detailed/importAliases.js +44 -0
- package/dist/graphs/symbol-graph-detailed/importAliases.js.map +1 -0
- package/dist/graphs/symbol-graph-detailed/memberChains.d.ts +17 -0
- package/dist/graphs/symbol-graph-detailed/memberChains.d.ts.map +1 -0
- package/dist/graphs/symbol-graph-detailed/memberChains.js +30 -0
- package/dist/graphs/symbol-graph-detailed/memberChains.js.map +1 -0
- package/dist/graphs/symbol-graph-detailed.d.ts +14 -0
- package/dist/graphs/symbol-graph-detailed.d.ts.map +1 -0
- package/dist/graphs/symbol-graph-detailed.js +180 -0
- package/dist/graphs/symbol-graph-detailed.js.map +1 -0
- package/dist/graphs/symbol-graph.d.ts +56 -0
- package/dist/graphs/symbol-graph.d.ts.map +1 -0
- package/dist/graphs/symbol-graph.js +180 -0
- package/dist/graphs/symbol-graph.js.map +1 -0
- package/dist/graphs/symbol-render.d.ts +22 -0
- package/dist/graphs/symbol-render.d.ts.map +1 -0
- package/dist/graphs/symbol-render.js +184 -0
- package/dist/graphs/symbol-render.js.map +1 -0
- package/dist/graphs/traversal.d.ts +20 -0
- package/dist/graphs/traversal.d.ts.map +1 -0
- package/dist/graphs/traversal.js +75 -0
- package/dist/graphs/traversal.js.map +1 -0
- package/dist/graphs/types.d.ts +18 -0
- package/dist/graphs/types.d.ts.map +1 -0
- package/dist/graphs/types.js +2 -0
- package/dist/graphs/types.js.map +1 -0
- package/dist/graphs/unresolved.d.ts +13 -0
- package/dist/graphs/unresolved.d.ts.map +1 -0
- package/dist/graphs/unresolved.js +47 -0
- package/dist/graphs/unresolved.js.map +1 -0
- package/dist/graphs.d.ts +17 -0
- package/dist/graphs.d.ts.map +1 -0
- package/dist/graphs.js +11 -0
- package/dist/graphs.js.map +1 -0
- package/dist/impact/analyzer.d.ts +8 -0
- package/dist/impact/analyzer.d.ts.map +1 -0
- package/dist/impact/analyzer.js +156 -0
- package/dist/impact/analyzer.js.map +1 -0
- package/dist/impact/budgets.d.ts +36 -0
- package/dist/impact/budgets.d.ts.map +1 -0
- package/dist/impact/budgets.js +178 -0
- package/dist/impact/budgets.js.map +1 -0
- package/dist/impact/call-compatibility/providers/index.d.ts +14 -0
- package/dist/impact/call-compatibility/providers/index.d.ts.map +1 -0
- package/dist/impact/call-compatibility/providers/index.js +58 -0
- package/dist/impact/call-compatibility/providers/index.js.map +1 -0
- package/dist/impact/call-compatibility/providers/types.d.ts +26 -0
- package/dist/impact/call-compatibility/providers/types.d.ts.map +1 -0
- package/dist/impact/call-compatibility/providers/types.js +2 -0
- package/dist/impact/call-compatibility/providers/types.js.map +1 -0
- package/dist/impact/call-compatibility/types.d.ts +24 -0
- package/dist/impact/call-compatibility/types.d.ts.map +1 -0
- package/dist/impact/call-compatibility/types.js +2 -0
- package/dist/impact/call-compatibility/types.js.map +1 -0
- package/dist/impact/callCompatibility.d.ts +17 -0
- package/dist/impact/callCompatibility.d.ts.map +1 -0
- package/dist/impact/callCompatibility.js +1546 -0
- package/dist/impact/callCompatibility.js.map +1 -0
- package/dist/impact/collect.d.ts +27 -0
- package/dist/impact/collect.d.ts.map +1 -0
- package/dist/impact/collect.js +97 -0
- package/dist/impact/collect.js.map +1 -0
- package/dist/impact/context.d.ts +42 -0
- package/dist/impact/context.d.ts.map +1 -0
- package/dist/impact/context.js +286 -0
- package/dist/impact/context.js.map +1 -0
- package/dist/impact/direct.d.ts +26 -0
- package/dist/impact/direct.d.ts.map +1 -0
- package/dist/impact/direct.js +187 -0
- package/dist/impact/direct.js.map +1 -0
- package/dist/impact/hunks.d.ts +14 -0
- package/dist/impact/hunks.d.ts.map +1 -0
- package/dist/impact/hunks.js +87 -0
- package/dist/impact/hunks.js.map +1 -0
- package/dist/impact/index.d.ts +22 -0
- package/dist/impact/index.d.ts.map +1 -0
- package/dist/impact/index.js +27 -0
- package/dist/impact/index.js.map +1 -0
- package/dist/impact/map.d.ts +12 -0
- package/dist/impact/map.d.ts.map +1 -0
- package/dist/impact/map.js +753 -0
- package/dist/impact/map.js.map +1 -0
- package/dist/impact/memberResolutionCoverage.d.ts +14 -0
- package/dist/impact/memberResolutionCoverage.d.ts.map +1 -0
- package/dist/impact/memberResolutionCoverage.js +38 -0
- package/dist/impact/memberResolutionCoverage.js.map +1 -0
- package/dist/impact/parse.d.ts +5 -0
- package/dist/impact/parse.d.ts.map +1 -0
- package/dist/impact/parse.js +239 -0
- package/dist/impact/parse.js.map +1 -0
- package/dist/impact/path.d.ts +14 -0
- package/dist/impact/path.d.ts.map +1 -0
- package/dist/impact/path.js +103 -0
- package/dist/impact/path.js.map +1 -0
- package/dist/impact/providers/base.d.ts +10 -0
- package/dist/impact/providers/base.d.ts.map +1 -0
- package/dist/impact/providers/base.js +239 -0
- package/dist/impact/providers/base.js.map +1 -0
- package/dist/impact/referenceCache.d.ts +12 -0
- package/dist/impact/referenceCache.d.ts.map +1 -0
- package/dist/impact/referenceCache.js +101 -0
- package/dist/impact/referenceCache.js.map +1 -0
- package/dist/impact/report-suggestions.d.ts +4 -0
- package/dist/impact/report-suggestions.d.ts.map +1 -0
- package/dist/impact/report-suggestions.js +886 -0
- package/dist/impact/report-suggestions.js.map +1 -0
- package/dist/impact/report.d.ts +8 -0
- package/dist/impact/report.d.ts.map +1 -0
- package/dist/impact/report.js +405 -0
- package/dist/impact/report.js.map +1 -0
- package/dist/impact/reportCompact.d.ts +8 -0
- package/dist/impact/reportCompact.d.ts.map +1 -0
- package/dist/impact/reportCompact.js +145 -0
- package/dist/impact/reportCompact.js.map +1 -0
- package/dist/impact/reportFull.d.ts +10 -0
- package/dist/impact/reportFull.d.ts.map +1 -0
- package/dist/impact/reportFull.js +66 -0
- package/dist/impact/reportFull.js.map +1 -0
- package/dist/impact/reportParts.d.ts +42 -0
- package/dist/impact/reportParts.d.ts.map +1 -0
- package/dist/impact/reportParts.js +2 -0
- package/dist/impact/reportParts.js.map +1 -0
- package/dist/impact/reportShared.d.ts +76 -0
- package/dist/impact/reportShared.d.ts.map +1 -0
- package/dist/impact/reportShared.js +130 -0
- package/dist/impact/reportShared.js.map +1 -0
- package/dist/impact/severity.d.ts +29 -0
- package/dist/impact/severity.d.ts.map +1 -0
- package/dist/impact/severity.js +178 -0
- package/dist/impact/severity.js.map +1 -0
- package/dist/impact/signature-node-utils.d.ts +5 -0
- package/dist/impact/signature-node-utils.d.ts.map +1 -0
- package/dist/impact/signature-node-utils.js +29 -0
- package/dist/impact/signature-node-utils.js.map +1 -0
- package/dist/impact/streaming.d.ts +60 -0
- package/dist/impact/streaming.d.ts.map +1 -0
- package/dist/impact/streaming.js +285 -0
- package/dist/impact/streaming.js.map +1 -0
- package/dist/impact/suggestions.d.ts +4 -0
- package/dist/impact/suggestions.d.ts.map +1 -0
- package/dist/impact/suggestions.js +317 -0
- package/dist/impact/suggestions.js.map +1 -0
- package/dist/impact/testPatterns.d.ts +6 -0
- package/dist/impact/testPatterns.d.ts.map +1 -0
- package/dist/impact/testPatterns.js +65 -0
- package/dist/impact/testPatterns.js.map +1 -0
- package/dist/impact/transitive.d.ts +12 -0
- package/dist/impact/transitive.d.ts.map +1 -0
- package/dist/impact/transitive.js +188 -0
- package/dist/impact/transitive.js.map +1 -0
- package/dist/impact/types.d.ts +556 -0
- package/dist/impact/types.d.ts.map +1 -0
- package/dist/impact/types.js +17 -0
- package/dist/impact/types.js.map +1 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +55 -0
- package/dist/index.js.map +1 -0
- package/dist/indexer/build-cache/manifest.d.ts +48 -0
- package/dist/indexer/build-cache/manifest.d.ts.map +1 -0
- package/dist/indexer/build-cache/manifest.js +228 -0
- package/dist/indexer/build-cache/manifest.js.map +1 -0
- package/dist/indexer/build-cache/module-cache.d.ts +20 -0
- package/dist/indexer/build-cache/module-cache.d.ts.map +1 -0
- package/dist/indexer/build-cache/module-cache.js +339 -0
- package/dist/indexer/build-cache/module-cache.js.map +1 -0
- package/dist/indexer/build-cache/options.d.ts +50 -0
- package/dist/indexer/build-cache/options.d.ts.map +1 -0
- package/dist/indexer/build-cache/options.js +276 -0
- package/dist/indexer/build-cache/options.js.map +1 -0
- package/dist/indexer/build-cache/project-snapshot.d.ts +30 -0
- package/dist/indexer/build-cache/project-snapshot.d.ts.map +1 -0
- package/dist/indexer/build-cache/project-snapshot.js +928 -0
- package/dist/indexer/build-cache/project-snapshot.js.map +1 -0
- package/dist/indexer/build-cache/reports.d.ts +13 -0
- package/dist/indexer/build-cache/reports.d.ts.map +1 -0
- package/dist/indexer/build-cache/reports.js +134 -0
- package/dist/indexer/build-cache/reports.js.map +1 -0
- package/dist/indexer/build-cache.d.ts +6 -0
- package/dist/indexer/build-cache.d.ts.map +1 -0
- package/dist/indexer/build-cache.js +6 -0
- package/dist/indexer/build-cache.js.map +1 -0
- package/dist/indexer/build-index.d.ts +28 -0
- package/dist/indexer/build-index.d.ts.map +1 -0
- package/dist/indexer/build-index.js +1579 -0
- package/dist/indexer/build-index.js.map +1 -0
- package/dist/indexer/build-manifest.d.ts +16 -0
- package/dist/indexer/build-manifest.d.ts.map +1 -0
- package/dist/indexer/build-manifest.js +43 -0
- package/dist/indexer/build-manifest.js.map +1 -0
- package/dist/indexer/build-workers.d.ts +27 -0
- package/dist/indexer/build-workers.d.ts.map +1 -0
- package/dist/indexer/build-workers.js +209 -0
- package/dist/indexer/build-workers.js.map +1 -0
- package/dist/indexer/call-hierarchy.d.ts +33 -0
- package/dist/indexer/call-hierarchy.d.ts.map +1 -0
- package/dist/indexer/call-hierarchy.js +192 -0
- package/dist/indexer/call-hierarchy.js.map +1 -0
- package/dist/indexer/declarations.d.ts +15 -0
- package/dist/indexer/declarations.d.ts.map +1 -0
- package/dist/indexer/declarations.js +95 -0
- package/dist/indexer/declarations.js.map +1 -0
- package/dist/indexer/finalize.d.ts +20 -0
- package/dist/indexer/finalize.d.ts.map +1 -0
- package/dist/indexer/finalize.js +34 -0
- package/dist/indexer/finalize.js.map +1 -0
- package/dist/indexer/import-types.d.ts +48 -0
- package/dist/indexer/import-types.d.ts.map +1 -0
- package/dist/indexer/import-types.js +2 -0
- package/dist/indexer/import-types.js.map +1 -0
- package/dist/indexer/imports/context.d.ts +7 -0
- package/dist/indexer/imports/context.d.ts.map +1 -0
- package/dist/indexer/imports/context.js +2 -0
- package/dist/indexer/imports/context.js.map +1 -0
- package/dist/indexer/imports/graphOnly.d.ts +13 -0
- package/dist/indexer/imports/graphOnly.d.ts.map +1 -0
- package/dist/indexer/imports/graphOnly.js +40 -0
- package/dist/indexer/imports/graphOnly.js.map +1 -0
- package/dist/indexer/imports/jsTextImports.d.ts +9 -0
- package/dist/indexer/imports/jsTextImports.d.ts.map +1 -0
- package/dist/indexer/imports/jsTextImports.js +173 -0
- package/dist/indexer/imports/jsTextImports.js.map +1 -0
- package/dist/indexer/imports/languageSpecific.d.ts +26 -0
- package/dist/indexer/imports/languageSpecific.d.ts.map +1 -0
- package/dist/indexer/imports/languageSpecific.js +444 -0
- package/dist/indexer/imports/languageSpecific.js.map +1 -0
- package/dist/indexer/imports/nativeCaptures.d.ts +16 -0
- package/dist/indexer/imports/nativeCaptures.d.ts.map +1 -0
- package/dist/indexer/imports/nativeCaptures.js +139 -0
- package/dist/indexer/imports/nativeCaptures.js.map +1 -0
- package/dist/indexer/imports/python.d.ts +8 -0
- package/dist/indexer/imports/python.d.ts.map +1 -0
- package/dist/indexer/imports/python.js +116 -0
- package/dist/indexer/imports/python.js.map +1 -0
- package/dist/indexer/imports.d.ts +21 -0
- package/dist/indexer/imports.d.ts.map +1 -0
- package/dist/indexer/imports.js +188 -0
- package/dist/indexer/imports.js.map +1 -0
- package/dist/indexer/incremental-plan.d.ts +71 -0
- package/dist/indexer/incremental-plan.d.ts.map +1 -0
- package/dist/indexer/incremental-plan.js +212 -0
- package/dist/indexer/incremental-plan.js.map +1 -0
- package/dist/indexer/load-current-index.d.ts +51 -0
- package/dist/indexer/load-current-index.d.ts.map +1 -0
- package/dist/indexer/load-current-index.js +53 -0
- package/dist/indexer/load-current-index.js.map +1 -0
- package/dist/indexer/locals-and-exports.d.ts +12 -0
- package/dist/indexer/locals-and-exports.d.ts.map +1 -0
- package/dist/indexer/locals-and-exports.js +872 -0
- package/dist/indexer/locals-and-exports.js.map +1 -0
- package/dist/indexer/navigation-goto.d.ts +13 -0
- package/dist/indexer/navigation-goto.d.ts.map +1 -0
- package/dist/indexer/navigation-goto.js +548 -0
- package/dist/indexer/navigation-goto.js.map +1 -0
- package/dist/indexer/navigation-local.d.ts +13 -0
- package/dist/indexer/navigation-local.d.ts.map +1 -0
- package/dist/indexer/navigation-local.js +173 -0
- package/dist/indexer/navigation-local.js.map +1 -0
- package/dist/indexer/navigation-php.d.ts +7 -0
- package/dist/indexer/navigation-php.d.ts.map +1 -0
- package/dist/indexer/navigation-php.js +90 -0
- package/dist/indexer/navigation-php.js.map +1 -0
- package/dist/indexer/navigation-provenance.d.ts +14 -0
- package/dist/indexer/navigation-provenance.d.ts.map +1 -0
- package/dist/indexer/navigation-provenance.js +26 -0
- package/dist/indexer/navigation-provenance.js.map +1 -0
- package/dist/indexer/navigation-references.d.ts +30 -0
- package/dist/indexer/navigation-references.d.ts.map +1 -0
- package/dist/indexer/navigation-references.js +299 -0
- package/dist/indexer/navigation-references.js.map +1 -0
- package/dist/indexer/navigation-resolve.d.ts +12 -0
- package/dist/indexer/navigation-resolve.d.ts.map +1 -0
- package/dist/indexer/navigation-resolve.js +389 -0
- package/dist/indexer/navigation-resolve.js.map +1 -0
- package/dist/indexer/navigation.d.ts +19 -0
- package/dist/indexer/navigation.d.ts.map +1 -0
- package/dist/indexer/navigation.js +468 -0
- package/dist/indexer/navigation.js.map +1 -0
- package/dist/indexer/parse-context.d.ts +47 -0
- package/dist/indexer/parse-context.d.ts.map +1 -0
- package/dist/indexer/parse-context.js +127 -0
- package/dist/indexer/parse-context.js.map +1 -0
- package/dist/indexer/parsed-cache.d.ts +6 -0
- package/dist/indexer/parsed-cache.d.ts.map +1 -0
- package/dist/indexer/parsed-cache.js +32 -0
- package/dist/indexer/parsed-cache.js.map +1 -0
- package/dist/indexer/reference-candidate-types.d.ts +5 -0
- package/dist/indexer/reference-candidate-types.d.ts.map +1 -0
- package/dist/indexer/reference-candidate-types.js +2 -0
- package/dist/indexer/reference-candidate-types.js.map +1 -0
- package/dist/indexer/reference-candidates.d.ts +6 -0
- package/dist/indexer/reference-candidates.d.ts.map +1 -0
- package/dist/indexer/reference-candidates.js +28 -0
- package/dist/indexer/reference-candidates.js.map +1 -0
- package/dist/indexer/reference-context.d.ts +13 -0
- package/dist/indexer/reference-context.d.ts.map +1 -0
- package/dist/indexer/reference-context.js +103 -0
- package/dist/indexer/reference-context.js.map +1 -0
- package/dist/indexer/scope-types.d.ts +25 -0
- package/dist/indexer/scope-types.d.ts.map +1 -0
- package/dist/indexer/scope-types.js +2 -0
- package/dist/indexer/scope-types.js.map +1 -0
- package/dist/indexer/scope.d.ts +11 -0
- package/dist/indexer/scope.d.ts.map +1 -0
- package/dist/indexer/scope.js +424 -0
- package/dist/indexer/scope.js.map +1 -0
- package/dist/indexer/shared.d.ts +4 -0
- package/dist/indexer/shared.d.ts.map +1 -0
- package/dist/indexer/shared.js +9 -0
- package/dist/indexer/shared.js.map +1 -0
- package/dist/indexer/symbols.d.ts +60 -0
- package/dist/indexer/symbols.d.ts.map +1 -0
- package/dist/indexer/symbols.js +272 -0
- package/dist/indexer/symbols.js.map +1 -0
- package/dist/indexer/type-hierarchy.d.ts +52 -0
- package/dist/indexer/type-hierarchy.d.ts.map +1 -0
- package/dist/indexer/type-hierarchy.js +296 -0
- package/dist/indexer/type-hierarchy.js.map +1 -0
- package/dist/indexer/types.d.ts +376 -0
- package/dist/indexer/types.d.ts.map +1 -0
- package/dist/indexer/types.js +15 -0
- package/dist/indexer/types.js.map +1 -0
- package/dist/indexer/workspace-symbols.d.ts +35 -0
- package/dist/indexer/workspace-symbols.d.ts.map +1 -0
- package/dist/indexer/workspace-symbols.js +226 -0
- package/dist/indexer/workspace-symbols.js.map +1 -0
- package/dist/indexer.d.ts +44 -0
- package/dist/indexer.d.ts.map +1 -0
- package/dist/indexer.js +35 -0
- package/dist/indexer.js.map +1 -0
- package/dist/installer/registry.d.ts +68 -0
- package/dist/installer/registry.d.ts.map +1 -0
- package/dist/installer/registry.js +1208 -0
- package/dist/installer/registry.js.map +1 -0
- package/dist/languages/all.d.ts +28 -0
- package/dist/languages/all.d.ts.map +1 -0
- package/dist/languages/all.js +28 -0
- package/dist/languages/all.js.map +1 -0
- package/dist/languages/definitions/adoc.d.ts +2 -0
- package/dist/languages/definitions/adoc.d.ts.map +1 -0
- package/dist/languages/definitions/adoc.js +5 -0
- package/dist/languages/definitions/adoc.js.map +1 -0
- package/dist/languages/definitions/astro.d.ts +2 -0
- package/dist/languages/definitions/astro.d.ts.map +1 -0
- package/dist/languages/definitions/astro.js +5 -0
- package/dist/languages/definitions/astro.js.map +1 -0
- package/dist/languages/definitions/c.d.ts +2 -0
- package/dist/languages/definitions/c.d.ts.map +1 -0
- package/dist/languages/definitions/c.js +78 -0
- package/dist/languages/definitions/c.js.map +1 -0
- package/dist/languages/definitions/cFamily.d.ts +35 -0
- package/dist/languages/definitions/cFamily.d.ts.map +1 -0
- package/dist/languages/definitions/cFamily.js +179 -0
- package/dist/languages/definitions/cFamily.js.map +1 -0
- package/dist/languages/definitions/cpp.d.ts +2 -0
- package/dist/languages/definitions/cpp.d.ts.map +1 -0
- package/dist/languages/definitions/cpp.js +88 -0
- package/dist/languages/definitions/cpp.js.map +1 -0
- package/dist/languages/definitions/csharp.d.ts +3 -0
- package/dist/languages/definitions/csharp.d.ts.map +1 -0
- package/dist/languages/definitions/csharp.js +126 -0
- package/dist/languages/definitions/csharp.js.map +1 -0
- package/dist/languages/definitions/css.d.ts +3 -0
- package/dist/languages/definitions/css.d.ts.map +1 -0
- package/dist/languages/definitions/css.js +13 -0
- package/dist/languages/definitions/css.js.map +1 -0
- package/dist/languages/definitions/cssLike.d.ts +5 -0
- package/dist/languages/definitions/cssLike.d.ts.map +1 -0
- package/dist/languages/definitions/cssLike.js +32 -0
- package/dist/languages/definitions/cssLike.js.map +1 -0
- package/dist/languages/definitions/go.d.ts +3 -0
- package/dist/languages/definitions/go.d.ts.map +1 -0
- package/dist/languages/definitions/go.js +113 -0
- package/dist/languages/definitions/go.js.map +1 -0
- package/dist/languages/definitions/hbs.d.ts +2 -0
- package/dist/languages/definitions/hbs.d.ts.map +1 -0
- package/dist/languages/definitions/hbs.js +5 -0
- package/dist/languages/definitions/hbs.js.map +1 -0
- package/dist/languages/definitions/html.d.ts +3 -0
- package/dist/languages/definitions/html.d.ts.map +1 -0
- package/dist/languages/definitions/html.js +45 -0
- package/dist/languages/definitions/html.js.map +1 -0
- package/dist/languages/definitions/htmlStub.d.ts +18 -0
- package/dist/languages/definitions/htmlStub.d.ts.map +1 -0
- package/dist/languages/definitions/htmlStub.js +38 -0
- package/dist/languages/definitions/htmlStub.js.map +1 -0
- package/dist/languages/definitions/java.d.ts +3 -0
- package/dist/languages/definitions/java.d.ts.map +1 -0
- package/dist/languages/definitions/java.js +124 -0
- package/dist/languages/definitions/java.js.map +1 -0
- package/dist/languages/definitions/javascript.d.ts +3 -0
- package/dist/languages/definitions/javascript.d.ts.map +1 -0
- package/dist/languages/definitions/javascript.js +172 -0
- package/dist/languages/definitions/javascript.js.map +1 -0
- package/dist/languages/definitions/jsFamily.d.ts +5 -0
- package/dist/languages/definitions/jsFamily.d.ts.map +1 -0
- package/dist/languages/definitions/jsFamily.js +75 -0
- package/dist/languages/definitions/jsFamily.js.map +1 -0
- package/dist/languages/definitions/kotlin.d.ts +3 -0
- package/dist/languages/definitions/kotlin.d.ts.map +1 -0
- package/dist/languages/definitions/kotlin.js +152 -0
- package/dist/languages/definitions/kotlin.js.map +1 -0
- package/dist/languages/definitions/less.d.ts +3 -0
- package/dist/languages/definitions/less.d.ts.map +1 -0
- package/dist/languages/definitions/less.js +13 -0
- package/dist/languages/definitions/less.js.map +1 -0
- package/dist/languages/definitions/loadLanguage.d.ts +2 -0
- package/dist/languages/definitions/loadLanguage.d.ts.map +1 -0
- package/dist/languages/definitions/loadLanguage.js +2 -0
- package/dist/languages/definitions/loadLanguage.js.map +1 -0
- package/dist/languages/definitions/markdown.d.ts +2 -0
- package/dist/languages/definitions/markdown.d.ts.map +1 -0
- package/dist/languages/definitions/markdown.js +5 -0
- package/dist/languages/definitions/markdown.js.map +1 -0
- package/dist/languages/definitions/mdx.d.ts +2 -0
- package/dist/languages/definitions/mdx.d.ts.map +1 -0
- package/dist/languages/definitions/mdx.js +5 -0
- package/dist/languages/definitions/mdx.js.map +1 -0
- package/dist/languages/definitions/php.d.ts +3 -0
- package/dist/languages/definitions/php.d.ts.map +1 -0
- package/dist/languages/definitions/php.js +157 -0
- package/dist/languages/definitions/php.js.map +1 -0
- package/dist/languages/definitions/python.d.ts +3 -0
- package/dist/languages/definitions/python.d.ts.map +1 -0
- package/dist/languages/definitions/python.js +137 -0
- package/dist/languages/definitions/python.js.map +1 -0
- package/dist/languages/definitions/rst.d.ts +2 -0
- package/dist/languages/definitions/rst.d.ts.map +1 -0
- package/dist/languages/definitions/rst.js +5 -0
- package/dist/languages/definitions/rst.js.map +1 -0
- package/dist/languages/definitions/ruby.d.ts +3 -0
- package/dist/languages/definitions/ruby.d.ts.map +1 -0
- package/dist/languages/definitions/ruby.js +92 -0
- package/dist/languages/definitions/ruby.js.map +1 -0
- package/dist/languages/definitions/rust.d.ts +3 -0
- package/dist/languages/definitions/rust.d.ts.map +1 -0
- package/dist/languages/definitions/rust.js +146 -0
- package/dist/languages/definitions/rust.js.map +1 -0
- package/dist/languages/definitions/scss.d.ts +3 -0
- package/dist/languages/definitions/scss.d.ts.map +1 -0
- package/dist/languages/definitions/scss.js +58 -0
- package/dist/languages/definitions/scss.js.map +1 -0
- package/dist/languages/definitions/sql.d.ts +3 -0
- package/dist/languages/definitions/sql.d.ts.map +1 -0
- package/dist/languages/definitions/sql.js +36 -0
- package/dist/languages/definitions/sql.js.map +1 -0
- package/dist/languages/definitions/svelte.d.ts +3 -0
- package/dist/languages/definitions/svelte.d.ts.map +1 -0
- package/dist/languages/definitions/svelte.js +31 -0
- package/dist/languages/definitions/svelte.js.map +1 -0
- package/dist/languages/definitions/swift.d.ts +3 -0
- package/dist/languages/definitions/swift.d.ts.map +1 -0
- package/dist/languages/definitions/swift.js +188 -0
- package/dist/languages/definitions/swift.js.map +1 -0
- package/dist/languages/definitions/typescript.d.ts +4 -0
- package/dist/languages/definitions/typescript.d.ts.map +1 -0
- package/dist/languages/definitions/typescript.js +212 -0
- package/dist/languages/definitions/typescript.js.map +1 -0
- package/dist/languages/definitions/vue.d.ts +3 -0
- package/dist/languages/definitions/vue.d.ts.map +1 -0
- package/dist/languages/definitions/vue.js +31 -0
- package/dist/languages/definitions/vue.js.map +1 -0
- package/dist/languages/definitions/zig.d.ts +3 -0
- package/dist/languages/definitions/zig.d.ts.map +1 -0
- package/dist/languages/definitions/zig.js +75 -0
- package/dist/languages/definitions/zig.js.map +1 -0
- package/dist/languages/filePrep.d.ts +33 -0
- package/dist/languages/filePrep.d.ts.map +1 -0
- package/dist/languages/filePrep.js +77 -0
- package/dist/languages/filePrep.js.map +1 -0
- package/dist/languages/importStatementParsers.d.ts +55 -0
- package/dist/languages/importStatementParsers.d.ts.map +1 -0
- package/dist/languages/importStatementParsers.js +369 -0
- package/dist/languages/importStatementParsers.js.map +1 -0
- package/dist/languages/js-family.d.ts +2 -0
- package/dist/languages/js-family.d.ts.map +1 -0
- package/dist/languages/js-family.js +9 -0
- package/dist/languages/js-family.js.map +1 -0
- package/dist/languages/queryGenerator.d.ts +6 -0
- package/dist/languages/queryGenerator.d.ts.map +1 -0
- package/dist/languages/queryGenerator.js +46 -0
- package/dist/languages/queryGenerator.js.map +1 -0
- package/dist/languages/registry.d.ts +5 -0
- package/dist/languages/registry.d.ts.map +1 -0
- package/dist/languages/registry.js +11 -0
- package/dist/languages/registry.js.map +1 -0
- package/dist/languages/sfc.d.ts +30 -0
- package/dist/languages/sfc.d.ts.map +1 -0
- package/dist/languages/sfc.js +402 -0
- package/dist/languages/sfc.js.map +1 -0
- package/dist/languages/types.d.ts +110 -0
- package/dist/languages/types.d.ts.map +1 -0
- package/dist/languages/types.js +2 -0
- package/dist/languages/types.js.map +1 -0
- package/dist/languages.d.ts +63 -0
- package/dist/languages.d.ts.map +1 -0
- package/dist/languages.js +118 -0
- package/dist/languages.js.map +1 -0
- package/dist/lifecycle/errors.d.ts +4 -0
- package/dist/lifecycle/errors.d.ts.map +1 -0
- package/dist/lifecycle/errors.js +4 -0
- package/dist/lifecycle/errors.js.map +1 -0
- package/dist/lifecycle/gitignore.d.ts +10 -0
- package/dist/lifecycle/gitignore.d.ts.map +1 -0
- package/dist/lifecycle/gitignore.js +83 -0
- package/dist/lifecycle/gitignore.js.map +1 -0
- package/dist/lifecycle/manifest.d.ts +73 -0
- package/dist/lifecycle/manifest.d.ts.map +1 -0
- package/dist/lifecycle/manifest.js +352 -0
- package/dist/lifecycle/manifest.js.map +1 -0
- package/dist/logging.d.ts +5 -0
- package/dist/logging.d.ts.map +1 -0
- package/dist/logging.js +35 -0
- package/dist/logging.js.map +1 -0
- package/dist/mcp/http.d.ts +29 -0
- package/dist/mcp/http.d.ts.map +1 -0
- package/dist/mcp/http.js +179 -0
- package/dist/mcp/http.js.map +1 -0
- package/dist/mcp/security.d.ts +3 -0
- package/dist/mcp/security.d.ts.map +1 -0
- package/dist/mcp/security.js +23 -0
- package/dist/mcp/security.js.map +1 -0
- package/dist/mcp/server.d.ts +267 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +1345 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/sqliteGuard.d.ts +3 -0
- package/dist/mcp/sqliteGuard.d.ts.map +1 -0
- package/dist/mcp/sqliteGuard.js +35 -0
- package/dist/mcp/sqliteGuard.js.map +1 -0
- package/dist/mcp/stdioLifecycle.d.ts +23 -0
- package/dist/mcp/stdioLifecycle.d.ts.map +1 -0
- package/dist/mcp/stdioLifecycle.js +83 -0
- package/dist/mcp/stdioLifecycle.js.map +1 -0
- package/dist/mcp/tools.d.ts +15 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +299 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/mcp.d.ts +9 -0
- package/dist/mcp.d.ts.map +1 -0
- package/dist/mcp.js +8 -0
- package/dist/mcp.js.map +1 -0
- package/dist/native/bindingLoader.d.ts +24 -0
- package/dist/native/bindingLoader.d.ts.map +1 -0
- package/dist/native/bindingLoader.js +206 -0
- package/dist/native/bindingLoader.js.map +1 -0
- package/dist/native/contracts.d.ts +122 -0
- package/dist/native/contracts.d.ts.map +1 -0
- package/dist/native/contracts.js +2 -0
- package/dist/native/contracts.js.map +1 -0
- package/dist/native/execution.d.ts +16 -0
- package/dist/native/execution.d.ts.map +1 -0
- package/dist/native/execution.js +184 -0
- package/dist/native/execution.js.map +1 -0
- package/dist/native/jsBridge.d.ts +7 -0
- package/dist/native/jsBridge.d.ts.map +1 -0
- package/dist/native/jsBridge.js +25 -0
- package/dist/native/jsBridge.js.map +1 -0
- package/dist/native/nativeBackendReport.d.ts +22 -0
- package/dist/native/nativeBackendReport.d.ts.map +1 -0
- package/dist/native/nativeBackendReport.js +102 -0
- package/dist/native/nativeBackendReport.js.map +1 -0
- package/dist/native/projectedTree.d.ts +37 -0
- package/dist/native/projectedTree.d.ts.map +1 -0
- package/dist/native/projectedTree.js +172 -0
- package/dist/native/projectedTree.js.map +1 -0
- package/dist/native/queries.d.ts +22 -0
- package/dist/native/queries.d.ts.map +1 -0
- package/dist/native/queries.js +67 -0
- package/dist/native/queries.js.map +1 -0
- package/dist/native/queryResults.d.ts +6 -0
- package/dist/native/queryResults.d.ts.map +1 -0
- package/dist/native/queryResults.js +26 -0
- package/dist/native/queryResults.js.map +1 -0
- package/dist/native/runtime.d.ts +17 -0
- package/dist/native/runtime.d.ts.map +1 -0
- package/dist/native/runtime.js +152 -0
- package/dist/native/runtime.js.map +1 -0
- package/dist/native/runtimeCache.d.ts +36 -0
- package/dist/native/runtimeCache.d.ts.map +1 -0
- package/dist/native/runtimeCache.js +237 -0
- package/dist/native/runtimeCache.js.map +1 -0
- package/dist/native/treeSitterNative.d.ts +6 -0
- package/dist/native/treeSitterNative.d.ts.map +1 -0
- package/dist/native/treeSitterNative.js +5 -0
- package/dist/native/treeSitterNative.js.map +1 -0
- package/dist/parserBackend.d.ts +57 -0
- package/dist/parserBackend.d.ts.map +1 -0
- package/dist/parserBackend.js +33 -0
- package/dist/parserBackend.js.map +1 -0
- package/dist/presentation/bounds.d.ts +34 -0
- package/dist/presentation/bounds.d.ts.map +1 -0
- package/dist/presentation/bounds.js +43 -0
- package/dist/presentation/bounds.js.map +1 -0
- package/dist/presets.d.ts +32 -0
- package/dist/presets.d.ts.map +1 -0
- package/dist/presets.js +127 -0
- package/dist/presets.js.map +1 -0
- package/dist/query/parser.d.ts +33 -0
- package/dist/query/parser.d.ts.map +1 -0
- package/dist/query/parser.js +104 -0
- package/dist/query/parser.js.map +1 -0
- package/dist/query/symbols.d.ts +15 -0
- package/dist/query/symbols.d.ts.map +1 -0
- package/dist/query/symbols.js +78 -0
- package/dist/query/symbols.js.map +1 -0
- package/dist/query.d.ts +3 -0
- package/dist/query.d.ts.map +1 -0
- package/dist/query.js +3 -0
- package/dist/query.js.map +1 -0
- package/dist/review/candidates.d.ts +13 -0
- package/dist/review/candidates.d.ts.map +1 -0
- package/dist/review/candidates.js +65 -0
- package/dist/review/candidates.js.map +1 -0
- package/dist/review/changes.d.ts +11 -0
- package/dist/review/changes.d.ts.map +1 -0
- package/dist/review/changes.js +94 -0
- package/dist/review/changes.js.map +1 -0
- package/dist/review/deleted.d.ts +23 -0
- package/dist/review/deleted.d.ts.map +1 -0
- package/dist/review/deleted.js +398 -0
- package/dist/review/deleted.js.map +1 -0
- package/dist/review/report.d.ts +37 -0
- package/dist/review/report.d.ts.map +1 -0
- package/dist/review/report.js +76 -0
- package/dist/review/report.js.map +1 -0
- package/dist/review/risk.d.ts +19 -0
- package/dist/review/risk.d.ts.map +1 -0
- package/dist/review/risk.js +105 -0
- package/dist/review/risk.js.map +1 -0
- package/dist/review/summaries.d.ts +24 -0
- package/dist/review/summaries.d.ts.map +1 -0
- package/dist/review/summaries.js +581 -0
- package/dist/review/summaries.js.map +1 -0
- package/dist/review/types.d.ts +146 -0
- package/dist/review/types.d.ts.map +1 -0
- package/dist/review/types.js +43 -0
- package/dist/review/types.js.map +1 -0
- package/dist/review.d.ts +19 -0
- package/dist/review.d.ts.map +1 -0
- package/dist/review.js +442 -0
- package/dist/review.js.map +1 -0
- package/dist/runtimeIdentity.d.ts +27 -0
- package/dist/runtimeIdentity.d.ts.map +1 -0
- package/dist/runtimeIdentity.js +75 -0
- package/dist/runtimeIdentity.js.map +1 -0
- package/dist/session.d.ts +246 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +858 -0
- package/dist/session.js.map +1 -0
- package/dist/sql/classifySqlFile.d.ts +3 -0
- package/dist/sql/classifySqlFile.d.ts.map +1 -0
- package/dist/sql/classifySqlFile.js +42 -0
- package/dist/sql/classifySqlFile.js.map +1 -0
- package/dist/sql/extractFacts.d.ts +4 -0
- package/dist/sql/extractFacts.d.ts.map +1 -0
- package/dist/sql/extractFacts.js +511 -0
- package/dist/sql/extractFacts.js.map +1 -0
- package/dist/sql/graph.d.ts +33 -0
- package/dist/sql/graph.d.ts.map +1 -0
- package/dist/sql/graph.js +167 -0
- package/dist/sql/graph.js.map +1 -0
- package/dist/sql/index.d.ts +8 -0
- package/dist/sql/index.d.ts.map +1 -0
- package/dist/sql/index.js +5 -0
- package/dist/sql/index.js.map +1 -0
- package/dist/sql/lex.d.ts +12 -0
- package/dist/sql/lex.d.ts.map +1 -0
- package/dist/sql/lex.js +180 -0
- package/dist/sql/lex.js.map +1 -0
- package/dist/sql/lookup.d.ts +3 -0
- package/dist/sql/lookup.d.ts.map +1 -0
- package/dist/sql/lookup.js +11 -0
- package/dist/sql/lookup.js.map +1 -0
- package/dist/sql/navigation.d.ts +4 -0
- package/dist/sql/navigation.d.ts.map +1 -0
- package/dist/sql/navigation.js +399 -0
- package/dist/sql/navigation.js.map +1 -0
- package/dist/sql/review.d.ts +15 -0
- package/dist/sql/review.d.ts.map +1 -0
- package/dist/sql/review.js +197 -0
- package/dist/sql/review.js.map +1 -0
- package/dist/sql/sourceGraph.d.ts +19 -0
- package/dist/sql/sourceGraph.d.ts.map +1 -0
- package/dist/sql/sourceGraph.js +195 -0
- package/dist/sql/sourceGraph.js.map +1 -0
- package/dist/sql/types.d.ts +21 -0
- package/dist/sql/types.d.ts.map +1 -0
- package/dist/sql/types.js +2 -0
- package/dist/sql/types.js.map +1 -0
- package/dist/sqlite/canned-query.d.ts +3 -0
- package/dist/sqlite/canned-query.d.ts.map +1 -0
- package/dist/sqlite/canned-query.js +192 -0
- package/dist/sqlite/canned-query.js.map +1 -0
- package/dist/sqlite/common.d.ts +6 -0
- package/dist/sqlite/common.d.ts.map +1 -0
- package/dist/sqlite/common.js +42 -0
- package/dist/sqlite/common.js.map +1 -0
- package/dist/sqlite/database.d.ts +5 -0
- package/dist/sqlite/database.d.ts.map +1 -0
- package/dist/sqlite/database.js +40 -0
- package/dist/sqlite/database.js.map +1 -0
- package/dist/sqlite/query.d.ts +9 -0
- package/dist/sqlite/query.d.ts.map +1 -0
- package/dist/sqlite/query.js +32 -0
- package/dist/sqlite/query.js.map +1 -0
- package/dist/sqlite/rowBounds.d.ts +24 -0
- package/dist/sqlite/rowBounds.d.ts.map +1 -0
- package/dist/sqlite/rowBounds.js +95 -0
- package/dist/sqlite/rowBounds.js.map +1 -0
- package/dist/sqlite/schema.d.ts +5 -0
- package/dist/sqlite/schema.d.ts.map +1 -0
- package/dist/sqlite/schema.js +243 -0
- package/dist/sqlite/schema.js.map +1 -0
- package/dist/sqlite/types.d.ts +77 -0
- package/dist/sqlite/types.d.ts.map +1 -0
- package/dist/sqlite/types.js +2 -0
- package/dist/sqlite/types.js.map +1 -0
- package/dist/sqlite/write.d.ts +5 -0
- package/dist/sqlite/write.d.ts.map +1 -0
- package/dist/sqlite/write.js +306 -0
- package/dist/sqlite/write.js.map +1 -0
- package/dist/sqlite-driver.d.ts +41 -0
- package/dist/sqlite-driver.d.ts.map +1 -0
- package/dist/sqlite-driver.js +144 -0
- package/dist/sqlite-driver.js.map +1 -0
- package/dist/sqlite.d.ts +4 -0
- package/dist/sqlite.d.ts.map +1 -0
- package/dist/sqlite.js +3 -0
- package/dist/sqlite.js.map +1 -0
- package/dist/triples.d.ts +27 -0
- package/dist/triples.d.ts.map +1 -0
- package/dist/triples.js +46 -0
- package/dist/triples.js.map +1 -0
- package/dist/types.d.ts +39 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/util/ast.d.ts +20 -0
- package/dist/util/ast.d.ts.map +1 -0
- package/dist/util/ast.js +62 -0
- package/dist/util/ast.js.map +1 -0
- package/dist/util/bloomFilter.d.ts +99 -0
- package/dist/util/bloomFilter.d.ts.map +1 -0
- package/dist/util/bloomFilter.js +205 -0
- package/dist/util/bloomFilter.js.map +1 -0
- package/dist/util/collections.d.ts +3 -0
- package/dist/util/collections.d.ts.map +1 -0
- package/dist/util/collections.js +21 -0
- package/dist/util/collections.js.map +1 -0
- package/dist/util/comments.d.ts +10 -0
- package/dist/util/comments.d.ts.map +1 -0
- package/dist/util/comments.js +398 -0
- package/dist/util/comments.js.map +1 -0
- package/dist/util/concurrency.d.ts +26 -0
- package/dist/util/concurrency.d.ts.map +1 -0
- package/dist/util/concurrency.js +121 -0
- package/dist/util/concurrency.js.map +1 -0
- package/dist/util/confinedFile.d.ts +8 -0
- package/dist/util/confinedFile.d.ts.map +1 -0
- package/dist/util/confinedFile.js +53 -0
- package/dist/util/confinedFile.js.map +1 -0
- package/dist/util/discoveryPath.d.ts +3 -0
- package/dist/util/discoveryPath.d.ts.map +1 -0
- package/dist/util/discoveryPath.js +19 -0
- package/dist/util/discoveryPath.js.map +1 -0
- package/dist/util/errors.d.ts +3 -0
- package/dist/util/errors.d.ts.map +1 -0
- package/dist/util/errors.js +7 -0
- package/dist/util/errors.js.map +1 -0
- package/dist/util/git.d.ts +79 -0
- package/dist/util/git.d.ts.map +1 -0
- package/dist/util/git.js +403 -0
- package/dist/util/git.js.map +1 -0
- package/dist/util/graphEdges.d.ts +5 -0
- package/dist/util/graphEdges.d.ts.map +1 -0
- package/dist/util/graphEdges.js +42 -0
- package/dist/util/graphEdges.js.map +1 -0
- package/dist/util/graphOnlyExtensions.d.ts +5 -0
- package/dist/util/graphOnlyExtensions.d.ts.map +1 -0
- package/dist/util/graphOnlyExtensions.js +12 -0
- package/dist/util/graphOnlyExtensions.js.map +1 -0
- package/dist/util/guards.d.ts +2 -0
- package/dist/util/guards.d.ts.map +1 -0
- package/dist/util/guards.js +4 -0
- package/dist/util/guards.js.map +1 -0
- package/dist/util/includeRoots.d.ts +6 -0
- package/dist/util/includeRoots.d.ts.map +1 -0
- package/dist/util/includeRoots.js +53 -0
- package/dist/util/includeRoots.js.map +1 -0
- package/dist/util/lazySymbols.d.ts +166 -0
- package/dist/util/lazySymbols.d.ts.map +1 -0
- package/dist/util/lazySymbols.js +365 -0
- package/dist/util/lazySymbols.js.map +1 -0
- package/dist/util/lines.d.ts +2 -0
- package/dist/util/lines.d.ts.map +1 -0
- package/dist/util/lines.js +9 -0
- package/dist/util/lines.js.map +1 -0
- package/dist/util/lruMap.d.ts +3 -0
- package/dist/util/lruMap.d.ts.map +1 -0
- package/dist/util/lruMap.js +22 -0
- package/dist/util/lruMap.js.map +1 -0
- package/dist/util/memberAccess.d.ts +26 -0
- package/dist/util/memberAccess.d.ts.map +1 -0
- package/dist/util/memberAccess.js +175 -0
- package/dist/util/memberAccess.js.map +1 -0
- package/dist/util/packageExports.d.ts +25 -0
- package/dist/util/packageExports.d.ts.map +1 -0
- package/dist/util/packageExports.js +79 -0
- package/dist/util/packageExports.js.map +1 -0
- package/dist/util/packageInfo.d.ts +12 -0
- package/dist/util/packageInfo.d.ts.map +1 -0
- package/dist/util/packageInfo.js +57 -0
- package/dist/util/packageInfo.js.map +1 -0
- package/dist/util/partialResults.d.ts +81 -0
- package/dist/util/partialResults.d.ts.map +1 -0
- package/dist/util/partialResults.js +290 -0
- package/dist/util/partialResults.js.map +1 -0
- package/dist/util/paths.d.ts +51 -0
- package/dist/util/paths.d.ts.map +1 -0
- package/dist/util/paths.js +245 -0
- package/dist/util/paths.js.map +1 -0
- package/dist/util/projectFiles/definitions.d.ts +21 -0
- package/dist/util/projectFiles/definitions.d.ts.map +1 -0
- package/dist/util/projectFiles/definitions.js +112 -0
- package/dist/util/projectFiles/definitions.js.map +1 -0
- package/dist/util/projectFiles/parsers.d.ts +13 -0
- package/dist/util/projectFiles/parsers.d.ts.map +1 -0
- package/dist/util/projectFiles/parsers.js +122 -0
- package/dist/util/projectFiles/parsers.js.map +1 -0
- package/dist/util/projectFiles.d.ts +43 -0
- package/dist/util/projectFiles.d.ts.map +1 -0
- package/dist/util/projectFiles.js +572 -0
- package/dist/util/projectFiles.js.map +1 -0
- package/dist/util/resolution/files.d.ts +3 -0
- package/dist/util/resolution/files.d.ts.map +1 -0
- package/dist/util/resolution/files.js +29 -0
- package/dist/util/resolution/files.js.map +1 -0
- package/dist/util/resolution/findFirstExisting.d.ts +2 -0
- package/dist/util/resolution/findFirstExisting.d.ts.map +1 -0
- package/dist/util/resolution/findFirstExisting.js +13 -0
- package/dist/util/resolution/findFirstExisting.js.map +1 -0
- package/dist/util/resolution/go.d.ts +2 -0
- package/dist/util/resolution/go.d.ts.map +1 -0
- package/dist/util/resolution/go.js +171 -0
- package/dist/util/resolution/go.js.map +1 -0
- package/dist/util/resolution/jvm.d.ts +5 -0
- package/dist/util/resolution/jvm.d.ts.map +1 -0
- package/dist/util/resolution/jvm.js +124 -0
- package/dist/util/resolution/jvm.js.map +1 -0
- package/dist/util/resolution/node.d.ts +3 -0
- package/dist/util/resolution/node.d.ts.map +1 -0
- package/dist/util/resolution/node.js +60 -0
- package/dist/util/resolution/node.js.map +1 -0
- package/dist/util/resolution/php.d.ts +4 -0
- package/dist/util/resolution/php.d.ts.map +1 -0
- package/dist/util/resolution/php.js +498 -0
- package/dist/util/resolution/php.js.map +1 -0
- package/dist/util/resolution/phpComposer.d.ts +17 -0
- package/dist/util/resolution/phpComposer.d.ts.map +1 -0
- package/dist/util/resolution/phpComposer.js +269 -0
- package/dist/util/resolution/phpComposer.js.map +1 -0
- package/dist/util/resolution/projectSymbols.d.ts +14 -0
- package/dist/util/resolution/projectSymbols.d.ts.map +1 -0
- package/dist/util/resolution/projectSymbols.js +70 -0
- package/dist/util/resolution/projectSymbols.js.map +1 -0
- package/dist/util/resolution/python.d.ts +7 -0
- package/dist/util/resolution/python.d.ts.map +1 -0
- package/dist/util/resolution/python.js +129 -0
- package/dist/util/resolution/python.js.map +1 -0
- package/dist/util/resolution/rust.d.ts +2 -0
- package/dist/util/resolution/rust.d.ts.map +1 -0
- package/dist/util/resolution/rust.js +87 -0
- package/dist/util/resolution/rust.js.map +1 -0
- package/dist/util/resolution/tsconfig.d.ts +8 -0
- package/dist/util/resolution/tsconfig.d.ts.map +1 -0
- package/dist/util/resolution/tsconfig.js +131 -0
- package/dist/util/resolution/tsconfig.js.map +1 -0
- package/dist/util/resolution.d.ts +37 -0
- package/dist/util/resolution.d.ts.map +1 -0
- package/dist/util/resolution.js +276 -0
- package/dist/util/resolution.js.map +1 -0
- package/dist/util/resolutionCandidates.d.ts +5 -0
- package/dist/util/resolutionCandidates.d.ts.map +1 -0
- package/dist/util/resolutionCandidates.js +70 -0
- package/dist/util/resolutionCandidates.js.map +1 -0
- package/dist/util/rustTestModules.d.ts +3 -0
- package/dist/util/rustTestModules.d.ts.map +1 -0
- package/dist/util/rustTestModules.js +69 -0
- package/dist/util/rustTestModules.js.map +1 -0
- package/dist/util/semaphore.d.ts +2 -0
- package/dist/util/semaphore.d.ts.map +1 -0
- package/dist/util/semaphore.js +2 -0
- package/dist/util/semaphore.js.map +1 -0
- package/dist/util/sourceLocation.d.ts +8 -0
- package/dist/util/sourceLocation.d.ts.map +1 -0
- package/dist/util/sourceLocation.js +19 -0
- package/dist/util/sourceLocation.js.map +1 -0
- package/dist/util/specifiers.d.ts +17 -0
- package/dist/util/specifiers.d.ts.map +1 -0
- package/dist/util/specifiers.js +263 -0
- package/dist/util/specifiers.js.map +1 -0
- package/dist/util/sqliteSchema.d.ts +28 -0
- package/dist/util/sqliteSchema.d.ts.map +1 -0
- package/dist/util/sqliteSchema.js +66 -0
- package/dist/util/sqliteSchema.js.map +1 -0
- package/dist/util/symbolHash.d.ts +59 -0
- package/dist/util/symbolHash.d.ts.map +1 -0
- package/dist/util/symbolHash.js +84 -0
- package/dist/util/symbolHash.js.map +1 -0
- package/dist/util/workerThreads.d.ts +12 -0
- package/dist/util/workerThreads.d.ts.map +1 -0
- package/dist/util/workerThreads.js +16 -0
- package/dist/util/workerThreads.js.map +1 -0
- package/dist/util/workspace.d.ts +32 -0
- package/dist/util/workspace.d.ts.map +1 -0
- package/dist/util/workspace.js +288 -0
- package/dist/util/workspace.js.map +1 -0
- package/dist/util.d.ts +14 -0
- package/dist/util.d.ts.map +1 -0
- package/dist/util.js +10 -0
- package/dist/util.js.map +1 -0
- package/dist/worker/nativeExtractWorker.d.ts +61 -0
- package/dist/worker/nativeExtractWorker.d.ts.map +1 -0
- package/dist/worker/nativeExtractWorker.js +196 -0
- package/dist/worker/nativeExtractWorker.js.map +1 -0
- package/dist/worker/nativeWorkerPool.d.ts +10 -0
- package/dist/worker/nativeWorkerPool.d.ts.map +1 -0
- package/dist/worker/nativeWorkerPool.js +35 -0
- package/dist/worker/nativeWorkerPool.js.map +1 -0
- package/docs/graph-visualization/app.js +900 -0
- package/docs/graph-visualization/file-tree-filters.js +50 -0
- package/docs/graph-visualization/file-tree-model.js +186 -0
- package/docs/graph-visualization/graph-builder.js +303 -0
- package/docs/graph-visualization/index.html +65 -0
- package/docs/graph-visualization/styles.css +513 -0
- package/docs/graph-visualization/vendor/LICENSE.graphology-layout-forceatlas2.txt +21 -0
- package/docs/graph-visualization/vendor/LICENSE.graphology.txt +21 -0
- package/docs/graph-visualization/vendor/LICENSE.sigma.txt +12 -0
- package/docs/graph-visualization/vendor/graphology-layout-forceatlas2.js +789 -0
- package/docs/graph-visualization/vendor/graphology.js +4204 -0
- package/docs/graph-visualization/vendor/sigma.js +5643 -0
- package/docs/graph-visualization/viewer-selected-node.webp +0 -0
- package/docs/mcp.md +373 -0
- package/package.json +104 -0
|
@@ -0,0 +1,928 @@
|
|
|
1
|
+
import fsp from "node:fs/promises";
|
|
2
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
3
|
+
import { brotliCompressSync, brotliDecompressSync, constants as zlibConstants } from "node:zlib";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import { buildGraphAdjacency } from "../../graphs/adjacency.js";
|
|
6
|
+
import { buildReferenceCandidateIndex } from "../reference-candidates.js";
|
|
7
|
+
import { BloomFilter, BloomFilterCache } from "../../util/bloomFilter.js";
|
|
8
|
+
import { summarizeAnalysis } from "../../analysisSummary.js";
|
|
9
|
+
import { fileIdentityKey, isFilePathWithinRoot, normalizePath } from "../../util/paths.js";
|
|
10
|
+
import { getNativeRuntimeFingerprint } from "../../native/treeSitterNative.js";
|
|
11
|
+
import { SymbolKind } from "../types.js";
|
|
12
|
+
import { buildSymbolGraph, } from "../../graphs/symbol-graph.js";
|
|
13
|
+
import { getImplementationFingerprint, normalizeGraphOptions } from "./options.js";
|
|
14
|
+
import { cacheRoot } from "./module-cache.js";
|
|
15
|
+
const SNAPSHOT_SYMBOL_KINDS = new Set(Object.values(SymbolKind));
|
|
16
|
+
const PROJECT_SNAPSHOT_VERSION = 4;
|
|
17
|
+
const BLOOM_FILTER_MIN_SIZE = 1_000;
|
|
18
|
+
const BLOOM_FILTER_MAX_SIZE = 1_000_000;
|
|
19
|
+
const BLOOM_FILTER_MIN_HASH_COUNT = 1;
|
|
20
|
+
const BLOOM_FILTER_MAX_HASH_COUNT = 10;
|
|
21
|
+
const DETAILED_SYMBOL_GRAPH_SNAPSHOT_VERSION = 2;
|
|
22
|
+
const DETAILED_SYMBOL_GRAPH_SNAPSHOT_FILENAME = "detailed-symbol-graph.json";
|
|
23
|
+
const SNAPSHOT_TEMP_RETENTION_MS = 24 * 60 * 60 * 1_000;
|
|
24
|
+
const SNAPSHOT_TEMP_SUFFIX = ".tmp";
|
|
25
|
+
const MAX_SNAPSHOT_CACHE_ENTRIES = 32;
|
|
26
|
+
const parsedSnapshotCache = new Map();
|
|
27
|
+
const detailedSymbolGraphCache = new Map();
|
|
28
|
+
export function projectSnapshotFilesSignature(entries) {
|
|
29
|
+
const hash = createHash("sha256");
|
|
30
|
+
for (const [file, entry] of [...entries.entries()].sort(([left], [right]) => compareSnapshotPath(left, right))) {
|
|
31
|
+
hash.update(file);
|
|
32
|
+
hash.update("\0");
|
|
33
|
+
hash.update(entry.sig);
|
|
34
|
+
hash.update("\0");
|
|
35
|
+
hash.update(entry.gitSig ?? "");
|
|
36
|
+
hash.update("\0");
|
|
37
|
+
hash.update(entry.sqlCorpusSig ?? "");
|
|
38
|
+
hash.update("\0");
|
|
39
|
+
}
|
|
40
|
+
return hash.digest("hex");
|
|
41
|
+
}
|
|
42
|
+
export function createProjectSnapshotIdentity(filesSignature, opts) {
|
|
43
|
+
const hash = createHash("sha256");
|
|
44
|
+
hash.update("project-index-snapshot-identity-v2");
|
|
45
|
+
hash.update("\0");
|
|
46
|
+
hash.update(filesSignature);
|
|
47
|
+
hash.update("\0");
|
|
48
|
+
hash.update(JSON.stringify(normalizeGraphOptions(opts?.graph)));
|
|
49
|
+
hash.update("\0");
|
|
50
|
+
hash.update(getNativeRuntimeFingerprint(opts?.native));
|
|
51
|
+
hash.update("\0");
|
|
52
|
+
hash.update(getImplementationFingerprint());
|
|
53
|
+
return hash.digest("hex");
|
|
54
|
+
}
|
|
55
|
+
function serializedProjectRoot(projectRoot) {
|
|
56
|
+
return normalizePath(path.resolve(projectRoot));
|
|
57
|
+
}
|
|
58
|
+
function projectRootMatches(projectRoot, storedProjectRoot) {
|
|
59
|
+
return fileIdentityKey(path.resolve(projectRoot)) === fileIdentityKey(path.resolve(storedProjectRoot));
|
|
60
|
+
}
|
|
61
|
+
function compareSnapshotPath(left, right) {
|
|
62
|
+
if (left < right)
|
|
63
|
+
return -1;
|
|
64
|
+
if (left > right)
|
|
65
|
+
return 1;
|
|
66
|
+
return 0;
|
|
67
|
+
}
|
|
68
|
+
function sameSnapshotFileIdentity(left, right) {
|
|
69
|
+
return left.size === right.size && left.mtimeMs === right.mtimeMs && left.ctimeMs === right.ctimeMs;
|
|
70
|
+
}
|
|
71
|
+
async function snapshotFileIdentity(snapshotPath) {
|
|
72
|
+
const stat = await fsp.stat(snapshotPath);
|
|
73
|
+
return {
|
|
74
|
+
size: stat.size,
|
|
75
|
+
mtimeMs: stat.mtimeMs,
|
|
76
|
+
ctimeMs: stat.ctimeMs,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
async function fsyncSnapshotFile(snapshotPath) {
|
|
80
|
+
const handle = await fsp.open(snapshotPath, "r+");
|
|
81
|
+
try {
|
|
82
|
+
await handle.sync();
|
|
83
|
+
}
|
|
84
|
+
finally {
|
|
85
|
+
await handle.close();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function isSnapshotTempName(name, snapshotName) {
|
|
89
|
+
const prefix = `.${snapshotName}.`;
|
|
90
|
+
if (!name.startsWith(prefix) || !name.endsWith(SNAPSHOT_TEMP_SUFFIX))
|
|
91
|
+
return false;
|
|
92
|
+
const marker = name.slice(prefix.length, -SNAPSHOT_TEMP_SUFFIX.length);
|
|
93
|
+
return /^\d+\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/u.test(marker);
|
|
94
|
+
}
|
|
95
|
+
async function cleanupStaleSnapshotTemps(snapshotPath) {
|
|
96
|
+
let entries;
|
|
97
|
+
try {
|
|
98
|
+
entries = await fsp.readdir(path.dirname(snapshotPath), { withFileTypes: true });
|
|
99
|
+
}
|
|
100
|
+
catch {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const cutoff = Date.now() - SNAPSHOT_TEMP_RETENTION_MS;
|
|
104
|
+
const snapshotName = path.basename(snapshotPath);
|
|
105
|
+
for (const entry of entries) {
|
|
106
|
+
if (!entry.isFile() || !isSnapshotTempName(entry.name, snapshotName))
|
|
107
|
+
continue;
|
|
108
|
+
const candidate = path.join(path.dirname(snapshotPath), entry.name);
|
|
109
|
+
try {
|
|
110
|
+
const stat = await fsp.lstat(candidate);
|
|
111
|
+
if (stat.mtimeMs > cutoff)
|
|
112
|
+
continue;
|
|
113
|
+
await fsp.rm(candidate, { force: true });
|
|
114
|
+
}
|
|
115
|
+
catch {
|
|
116
|
+
// Abandoned snapshot cleanup must not block a cache write.
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
async function writeSnapshotAtomically(snapshotPath, data) {
|
|
121
|
+
await fsp.mkdir(path.dirname(snapshotPath), { recursive: true });
|
|
122
|
+
await cleanupStaleSnapshotTemps(snapshotPath);
|
|
123
|
+
let tempPath = path.join(path.dirname(snapshotPath), `.${path.basename(snapshotPath)}.${process.pid}.${randomUUID()}${SNAPSHOT_TEMP_SUFFIX}`);
|
|
124
|
+
try {
|
|
125
|
+
await fsp.writeFile(tempPath, data, { flag: "wx" });
|
|
126
|
+
await fsyncSnapshotFile(tempPath);
|
|
127
|
+
await fsp.rename(tempPath, snapshotPath);
|
|
128
|
+
tempPath = undefined;
|
|
129
|
+
}
|
|
130
|
+
finally {
|
|
131
|
+
if (tempPath) {
|
|
132
|
+
await fsp.rm(tempPath, { force: true }).catch(() => undefined);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function setBoundedSnapshotCache(cache, key, value) {
|
|
137
|
+
cache.delete(key);
|
|
138
|
+
cache.set(key, value);
|
|
139
|
+
while (cache.size > MAX_SNAPSHOT_CACHE_ENTRIES) {
|
|
140
|
+
const oldestKey = cache.keys().next().value;
|
|
141
|
+
if (oldestKey === undefined)
|
|
142
|
+
break;
|
|
143
|
+
cache.delete(oldestKey);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function materializeDetailedSymbolGraph(payload) {
|
|
147
|
+
const graph = structuredClone(payload);
|
|
148
|
+
return {
|
|
149
|
+
nodes: new Map(graph.nodes.map((node) => [node.id, node])),
|
|
150
|
+
edges: graph.edges,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function decodeSnapshotPayload(compressed) {
|
|
154
|
+
return JSON.parse(brotliDecompressSync(compressed).toString("utf8"));
|
|
155
|
+
}
|
|
156
|
+
async function readParsedSnapshot(snapshotPath) {
|
|
157
|
+
const before = await snapshotFileIdentity(snapshotPath);
|
|
158
|
+
const cached = parsedSnapshotCache.get(snapshotPath);
|
|
159
|
+
if (cached && sameSnapshotFileIdentity(cached.identity, before)) {
|
|
160
|
+
setBoundedSnapshotCache(parsedSnapshotCache, snapshotPath, cached);
|
|
161
|
+
return { identity: cached.identity, payload: decodeSnapshotPayload(cached.compressed) };
|
|
162
|
+
}
|
|
163
|
+
const compressed = Buffer.from(await fsp.readFile(snapshotPath));
|
|
164
|
+
const payload = decodeSnapshotPayload(compressed);
|
|
165
|
+
const after = await snapshotFileIdentity(snapshotPath);
|
|
166
|
+
const entry = { identity: before, compressed };
|
|
167
|
+
if (sameSnapshotFileIdentity(before, after)) {
|
|
168
|
+
setBoundedSnapshotCache(parsedSnapshotCache, snapshotPath, entry);
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
parsedSnapshotCache.delete(snapshotPath);
|
|
172
|
+
}
|
|
173
|
+
return { identity: before, payload };
|
|
174
|
+
}
|
|
175
|
+
function projectIndexManifestEntries(entries) {
|
|
176
|
+
return new Map(Array.from(entries, ([file, entry]) => [
|
|
177
|
+
file,
|
|
178
|
+
{
|
|
179
|
+
sig: entry.sig,
|
|
180
|
+
...(entry.gitSig ? { gitSig: entry.gitSig } : {}),
|
|
181
|
+
},
|
|
182
|
+
]));
|
|
183
|
+
}
|
|
184
|
+
export async function tryLoadProjectIndexSnapshot(projectRoot, opts, manifestEntries) {
|
|
185
|
+
const filesSignature = projectSnapshotFilesSignature(manifestEntries);
|
|
186
|
+
if ((opts?.cache ?? "off") !== "disk")
|
|
187
|
+
return null;
|
|
188
|
+
try {
|
|
189
|
+
const rawPayload = (await readParsedSnapshot(projectSnapshotPath(projectRoot, opts))).payload;
|
|
190
|
+
const nativeRuntimeFingerprint = getNativeRuntimeFingerprint(opts?.native);
|
|
191
|
+
const implementationFingerprint = getImplementationFingerprint();
|
|
192
|
+
if (!isProjectIndexSnapshotPayload(rawPayload) ||
|
|
193
|
+
rawPayload.filesSignature !== filesSignature ||
|
|
194
|
+
!projectRootMatches(projectRoot, rawPayload.projectRoot) ||
|
|
195
|
+
rawPayload.nativeMode !== normalizedSnapshotNativeMode(opts?.native) ||
|
|
196
|
+
rawPayload.nativeRuntimeFingerprint !== nativeRuntimeFingerprint ||
|
|
197
|
+
rawPayload.implementationFingerprint !== implementationFingerprint) {
|
|
198
|
+
return null;
|
|
199
|
+
}
|
|
200
|
+
// Payload is freshly JSON.parsed from memoized compressed bytes (no deep clone).
|
|
201
|
+
const payload = rawPayload;
|
|
202
|
+
const graph = {
|
|
203
|
+
nodes: new Set(payload.graph.nodes),
|
|
204
|
+
edges: payload.graph.edges,
|
|
205
|
+
};
|
|
206
|
+
const modules = new Map(payload.modules.map((moduleIndex) => [fileIdentityKey(moduleIndex.file), moduleIndex]));
|
|
207
|
+
const shouldHydrateBloomFilters = opts?.useBloomFilters ?? true;
|
|
208
|
+
const index = {
|
|
209
|
+
graph,
|
|
210
|
+
graphAdjacency: buildGraphAdjacency(graph),
|
|
211
|
+
modules,
|
|
212
|
+
byFile: modules,
|
|
213
|
+
projectRoot: serializedProjectRoot(projectRoot),
|
|
214
|
+
...(payload.nativeMode ? { nativeMode: payload.nativeMode } : {}),
|
|
215
|
+
exportCache: new Map(),
|
|
216
|
+
scopeCache: new Map(),
|
|
217
|
+
...(shouldHydrateBloomFilters && payload.bloomFilters
|
|
218
|
+
? { bloomFilters: deserializeBloomFilterCache(payload.bloomFilters) }
|
|
219
|
+
: {}),
|
|
220
|
+
...(payload.projectFiles ? { projectFiles: payload.projectFiles } : {}),
|
|
221
|
+
referenceCandidates: buildReferenceCandidateIndex(modules),
|
|
222
|
+
...(opts?.cache ? { cacheMode: opts.cache, cacheRootDir: cacheRoot(projectRoot, opts) } : {}),
|
|
223
|
+
manifestEntries: projectIndexManifestEntries(manifestEntries),
|
|
224
|
+
projectSnapshotIdentity: createProjectSnapshotIdentity(filesSignature, opts),
|
|
225
|
+
};
|
|
226
|
+
return {
|
|
227
|
+
index: {
|
|
228
|
+
...index,
|
|
229
|
+
...(payload.analysis ? { analysis: payload.analysis } : {}),
|
|
230
|
+
},
|
|
231
|
+
...(payload.analysisReport ? { analysisReport: payload.analysisReport } : {}),
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
catch {
|
|
235
|
+
return null;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Load only the bloom-filter section of the last-written project snapshot, without requiring
|
|
240
|
+
* the whole snapshot to match this build's files signature or native runtime fingerprint.
|
|
241
|
+
* Bloom filters are a pure function of a file's text, so a filter persisted for a given file
|
|
242
|
+
* is safe to reuse after its snapshot's root and implementation fingerprints are validated.
|
|
243
|
+
* Only the bloom section is then read, so a corrupt payload is rejected without walking
|
|
244
|
+
* `graph.edges` / `modules`. Returns `null` when disk caching is off, `useBloomFilters` is
|
|
245
|
+
* disabled, or no valid snapshot with bloom data exists.
|
|
246
|
+
*/
|
|
247
|
+
export async function tryLoadPersistedBloomFilters(projectRoot, opts) {
|
|
248
|
+
if ((opts?.cache ?? "off") !== "disk" || (opts?.useBloomFilters ?? true) === false)
|
|
249
|
+
return null;
|
|
250
|
+
try {
|
|
251
|
+
const payload = (await readParsedSnapshot(projectSnapshotPath(projectRoot, opts))).payload;
|
|
252
|
+
const bloomFilters = persistedBloomFiltersFromSnapshot(payload, projectRoot);
|
|
253
|
+
if (!bloomFilters)
|
|
254
|
+
return null;
|
|
255
|
+
return deserializeBloomFilterCache(bloomFilters);
|
|
256
|
+
}
|
|
257
|
+
catch {
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
/** Light validation for bloom hydration: snapshot version, root identity, and bloom section only. */
|
|
262
|
+
function persistedBloomFiltersFromSnapshot(value, projectRoot) {
|
|
263
|
+
if (!value || typeof value !== "object")
|
|
264
|
+
return null;
|
|
265
|
+
const payload = value;
|
|
266
|
+
if (payload.version !== PROJECT_SNAPSHOT_VERSION ||
|
|
267
|
+
typeof payload.projectRoot !== "string" ||
|
|
268
|
+
!projectRootMatches(projectRoot, payload.projectRoot) ||
|
|
269
|
+
payload.implementationFingerprint !== getImplementationFingerprint()) {
|
|
270
|
+
return null;
|
|
271
|
+
}
|
|
272
|
+
if (!isSerializedBloomFilterRecord(payload.bloomFilters))
|
|
273
|
+
return null;
|
|
274
|
+
return payload.bloomFilters;
|
|
275
|
+
}
|
|
276
|
+
export async function writeProjectIndexSnapshot(projectRoot, opts, index, filesSignature) {
|
|
277
|
+
const projectSnapshotIdentity = createProjectSnapshotIdentity(filesSignature, opts);
|
|
278
|
+
const serializedBloomFilters = index.bloomFilters
|
|
279
|
+
? serializeBloomFilterCache(index.bloomFilters, Array.from(index.byFile.values(), (module) => module.file))
|
|
280
|
+
: undefined;
|
|
281
|
+
const snapshotAnalysisReport = analysisReportFromBuildReport(index.buildReport);
|
|
282
|
+
const snapshotAnalysis = index.buildReport ? summarizeAnalysis({ index, report: index.buildReport }) : index.analysis;
|
|
283
|
+
const payload = {
|
|
284
|
+
version: PROJECT_SNAPSHOT_VERSION,
|
|
285
|
+
filesSignature,
|
|
286
|
+
projectRoot: serializedProjectRoot(projectRoot),
|
|
287
|
+
nativeRuntimeFingerprint: getNativeRuntimeFingerprint(opts?.native),
|
|
288
|
+
implementationFingerprint: getImplementationFingerprint(),
|
|
289
|
+
graph: {
|
|
290
|
+
nodes: [...index.graph.nodes],
|
|
291
|
+
edges: index.graph.edges,
|
|
292
|
+
},
|
|
293
|
+
modules: [...index.byFile.values()],
|
|
294
|
+
...(normalizedSnapshotNativeMode(index.nativeMode)
|
|
295
|
+
? { nativeMode: normalizedSnapshotNativeMode(index.nativeMode) }
|
|
296
|
+
: {}),
|
|
297
|
+
...(index.projectFiles ? { projectFiles: index.projectFiles } : {}),
|
|
298
|
+
...(serializedBloomFilters ? { bloomFilters: serializedBloomFilters } : {}),
|
|
299
|
+
...(snapshotAnalysis ? { analysis: snapshotAnalysis } : {}),
|
|
300
|
+
...(snapshotAnalysisReport ? { analysisReport: snapshotAnalysisReport } : {}),
|
|
301
|
+
};
|
|
302
|
+
try {
|
|
303
|
+
const snapshotPath = projectSnapshotPath(projectRoot, opts);
|
|
304
|
+
const compressed = brotliCompressSync(JSON.stringify(payload), {
|
|
305
|
+
params: { [zlibConstants.BROTLI_PARAM_QUALITY]: 4 },
|
|
306
|
+
});
|
|
307
|
+
await writeSnapshotAtomically(snapshotPath, compressed);
|
|
308
|
+
const identity = await snapshotFileIdentity(snapshotPath);
|
|
309
|
+
setBoundedSnapshotCache(parsedSnapshotCache, snapshotPath, { identity, compressed });
|
|
310
|
+
index.projectSnapshotIdentity = projectSnapshotIdentity;
|
|
311
|
+
}
|
|
312
|
+
catch {
|
|
313
|
+
delete index.projectSnapshotIdentity;
|
|
314
|
+
// Snapshot writes are an optimization; cache write failures must not fail indexing.
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
function projectSnapshotPath(projectRoot, opts) {
|
|
318
|
+
return path.join(cacheRoot(projectRoot, opts), "project-index-snapshot.json");
|
|
319
|
+
}
|
|
320
|
+
export async function tryLoadDetailedSymbolGraphSnapshot(projectRoot, opts, index) {
|
|
321
|
+
if ((opts?.cache ?? "off") !== "disk" || !index.projectSnapshotIdentity)
|
|
322
|
+
return null;
|
|
323
|
+
try {
|
|
324
|
+
const snapshotPath = detailedSymbolGraphSnapshotPath(projectRoot, opts);
|
|
325
|
+
const observedIdentity = await snapshotFileIdentity(snapshotPath);
|
|
326
|
+
const cached = detailedSymbolGraphCache.get(snapshotPath);
|
|
327
|
+
if (cached &&
|
|
328
|
+
cached.projectSnapshotIdentity === index.projectSnapshotIdentity &&
|
|
329
|
+
sameSnapshotFileIdentity(cached.identity, observedIdentity)) {
|
|
330
|
+
setBoundedSnapshotCache(detailedSymbolGraphCache, snapshotPath, cached);
|
|
331
|
+
return materializeDetailedSymbolGraph(cached.graph);
|
|
332
|
+
}
|
|
333
|
+
const parsed = await readParsedSnapshot(snapshotPath);
|
|
334
|
+
const payload = parsed.payload;
|
|
335
|
+
if (!isDetailedSymbolGraphSnapshotPayload(payload) ||
|
|
336
|
+
!projectRootMatches(projectRoot, payload.projectRoot) ||
|
|
337
|
+
payload.implementationFingerprint !== getImplementationFingerprint() ||
|
|
338
|
+
payload.projectSnapshotIdentity !== index.projectSnapshotIdentity) {
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
const graph = materializeDetailedSymbolGraph(payload.graph);
|
|
342
|
+
if (!(await isDetailedSymbolGraphCompatibleWithProject(projectRoot, index, graph))) {
|
|
343
|
+
return null;
|
|
344
|
+
}
|
|
345
|
+
const identity = await snapshotFileIdentity(snapshotPath);
|
|
346
|
+
if (!sameSnapshotFileIdentity(parsed.identity, identity))
|
|
347
|
+
return null;
|
|
348
|
+
setBoundedSnapshotCache(detailedSymbolGraphCache, snapshotPath, {
|
|
349
|
+
identity,
|
|
350
|
+
projectSnapshotIdentity: index.projectSnapshotIdentity,
|
|
351
|
+
graph: payload.graph,
|
|
352
|
+
});
|
|
353
|
+
return graph;
|
|
354
|
+
}
|
|
355
|
+
catch {
|
|
356
|
+
return null;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
export async function writeDetailedSymbolGraphSnapshot(projectRoot, opts, index, graph) {
|
|
360
|
+
if ((opts?.cache ?? "off") !== "disk" || !index.projectSnapshotIdentity)
|
|
361
|
+
return;
|
|
362
|
+
const payload = {
|
|
363
|
+
version: DETAILED_SYMBOL_GRAPH_SNAPSHOT_VERSION,
|
|
364
|
+
projectRoot: serializedProjectRoot(projectRoot),
|
|
365
|
+
implementationFingerprint: getImplementationFingerprint(),
|
|
366
|
+
graphHash: detailedSymbolGraphContentHash(index.projectSnapshotIdentity, graph),
|
|
367
|
+
projectSnapshotIdentity: index.projectSnapshotIdentity,
|
|
368
|
+
graph: {
|
|
369
|
+
nodes: [...graph.nodes.values()],
|
|
370
|
+
edges: graph.edges,
|
|
371
|
+
},
|
|
372
|
+
};
|
|
373
|
+
try {
|
|
374
|
+
const snapshotPath = detailedSymbolGraphSnapshotPath(projectRoot, opts);
|
|
375
|
+
parsedSnapshotCache.delete(snapshotPath);
|
|
376
|
+
detailedSymbolGraphCache.delete(snapshotPath);
|
|
377
|
+
const compressed = brotliCompressSync(JSON.stringify(payload), {
|
|
378
|
+
params: { [zlibConstants.BROTLI_PARAM_QUALITY]: 4 },
|
|
379
|
+
});
|
|
380
|
+
await writeSnapshotAtomically(snapshotPath, compressed);
|
|
381
|
+
const identity = await snapshotFileIdentity(snapshotPath);
|
|
382
|
+
const cachedPayload = structuredClone(payload);
|
|
383
|
+
setBoundedSnapshotCache(parsedSnapshotCache, snapshotPath, { identity, compressed });
|
|
384
|
+
setBoundedSnapshotCache(detailedSymbolGraphCache, snapshotPath, {
|
|
385
|
+
identity,
|
|
386
|
+
projectSnapshotIdentity: index.projectSnapshotIdentity,
|
|
387
|
+
graph: cachedPayload.graph,
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
catch {
|
|
391
|
+
// Detailed graph persistence is an optimization; source parsing remains authoritative.
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
function detailedSymbolGraphSnapshotPath(projectRoot, opts) {
|
|
395
|
+
const root = path.resolve(cacheRoot(projectRoot, opts));
|
|
396
|
+
const snapshotPath = path.resolve(root, DETAILED_SYMBOL_GRAPH_SNAPSHOT_FILENAME);
|
|
397
|
+
if (!isFilePathWithinRoot(root, snapshotPath)) {
|
|
398
|
+
throw new Error(`Detailed symbol graph snapshot escaped cache root: ${snapshotPath}`);
|
|
399
|
+
}
|
|
400
|
+
return snapshotPath;
|
|
401
|
+
}
|
|
402
|
+
function detailedSymbolGraphContentHash(projectSnapshotIdentity, graph) {
|
|
403
|
+
const hash = createHash("sha256");
|
|
404
|
+
hash.update(projectSnapshotIdentity);
|
|
405
|
+
hash.update("\0");
|
|
406
|
+
hash.update(JSON.stringify({
|
|
407
|
+
nodes: [...graph.nodes.values()],
|
|
408
|
+
edges: graph.edges,
|
|
409
|
+
}));
|
|
410
|
+
return hash.digest("hex");
|
|
411
|
+
}
|
|
412
|
+
function isDetailedSymbolGraphSnapshotPayload(value) {
|
|
413
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
414
|
+
return false;
|
|
415
|
+
const payload = value;
|
|
416
|
+
if (payload.version !== DETAILED_SYMBOL_GRAPH_SNAPSHOT_VERSION ||
|
|
417
|
+
typeof payload.projectRoot !== "string" ||
|
|
418
|
+
typeof payload.implementationFingerprint !== "string" ||
|
|
419
|
+
!/^[a-f0-9]{64}$/.test(payload.implementationFingerprint) ||
|
|
420
|
+
typeof payload.projectSnapshotIdentity !== "string" ||
|
|
421
|
+
!/^[a-f0-9]{64}$/.test(payload.projectSnapshotIdentity) ||
|
|
422
|
+
typeof payload.graphHash !== "string" ||
|
|
423
|
+
!/^[a-f0-9]{64}$/.test(payload.graphHash) ||
|
|
424
|
+
!payload.graph ||
|
|
425
|
+
!Array.isArray(payload.graph.nodes) ||
|
|
426
|
+
!payload.graph.nodes.every(isSymbolNode) ||
|
|
427
|
+
!Array.isArray(payload.graph.edges) ||
|
|
428
|
+
!payload.graph.edges.every(isSymbolEdge)) {
|
|
429
|
+
return false;
|
|
430
|
+
}
|
|
431
|
+
// `graphHash` is still written at snapshot-write time (its format is validated above) but
|
|
432
|
+
// no longer re-verified here on load: recomputing it means re-stringifying the whole
|
|
433
|
+
// graph and re-hashing it, measured at ~36ms on an 11MB sidecar, and it is a
|
|
434
|
+
// self-consistency check on this file's own bytes, not a check against the current
|
|
435
|
+
// project. The atomic temp-file-then-rename write (`writeDetailedSymbolGraphSnapshot`
|
|
436
|
+
// below) already rules out a torn/partial write, and
|
|
437
|
+
// `isDetailedSymbolGraphCompatibleWithProject` independently re-derives and compares
|
|
438
|
+
// every node's semantic fields (name, kind, complexity, docstring, lineSpan) against the
|
|
439
|
+
// current index, which catches tampered or corrupted graph content this hash would have
|
|
440
|
+
// caught too -- so the hash added no protection the other checks do not already provide.
|
|
441
|
+
return new Set(payload.graph.nodes.map((node) => node.id)).size === payload.graph.nodes.length;
|
|
442
|
+
}
|
|
443
|
+
function isSymbolNode(value) {
|
|
444
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
445
|
+
return false;
|
|
446
|
+
const node = value;
|
|
447
|
+
return (typeof node.id === "string" &&
|
|
448
|
+
!!node.id &&
|
|
449
|
+
typeof node.file === "string" &&
|
|
450
|
+
!!node.file &&
|
|
451
|
+
typeof node.name === "string" &&
|
|
452
|
+
!!node.name &&
|
|
453
|
+
isSymbolNodeKind(node.kind) &&
|
|
454
|
+
(node.docstring === undefined || typeof node.docstring === "string") &&
|
|
455
|
+
isOptionalNonnegativeInteger(node.lineSpan) &&
|
|
456
|
+
isOptionalNonnegativeFiniteNumber(node.complexity) &&
|
|
457
|
+
(node.visibility === undefined || isSymbolVisibility(node.visibility)) &&
|
|
458
|
+
(node.implementationTarget === undefined || typeof node.implementationTarget === "boolean") &&
|
|
459
|
+
isOptionalNonnegativeInteger(node.memberArity));
|
|
460
|
+
}
|
|
461
|
+
function isSymbolNodeKind(value) {
|
|
462
|
+
return (value === "function" ||
|
|
463
|
+
value === "class" ||
|
|
464
|
+
value === "variable" ||
|
|
465
|
+
value === "interface" ||
|
|
466
|
+
value === "type" ||
|
|
467
|
+
value === "default" ||
|
|
468
|
+
value === "table" ||
|
|
469
|
+
value === "view" ||
|
|
470
|
+
value === "index" ||
|
|
471
|
+
value === "constraint" ||
|
|
472
|
+
value === "routine" ||
|
|
473
|
+
value === "import" ||
|
|
474
|
+
value === "namespaceImport");
|
|
475
|
+
}
|
|
476
|
+
function isSymbolVisibility(value) {
|
|
477
|
+
return value === "public" || value === "private" || value === "protected" || value === "internal";
|
|
478
|
+
}
|
|
479
|
+
function isOptionalNonnegativeInteger(value) {
|
|
480
|
+
return value === undefined || (typeof value === "number" && Number.isInteger(value) && value >= 0);
|
|
481
|
+
}
|
|
482
|
+
function isOptionalNonnegativeFiniteNumber(value) {
|
|
483
|
+
return value === undefined || (typeof value === "number" && Number.isFinite(value) && value >= 0);
|
|
484
|
+
}
|
|
485
|
+
function isDetailedRange(value) {
|
|
486
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
487
|
+
return false;
|
|
488
|
+
const range = value;
|
|
489
|
+
if (!isDetailedPosition(range.start) || !isDetailedPosition(range.end))
|
|
490
|
+
return false;
|
|
491
|
+
if (range.start.index !== undefined && range.end.index !== undefined) {
|
|
492
|
+
return range.start.index <= range.end.index;
|
|
493
|
+
}
|
|
494
|
+
if (range.start.line !== range.end.line)
|
|
495
|
+
return range.start.line <= range.end.line;
|
|
496
|
+
return range.start.column <= range.end.column;
|
|
497
|
+
}
|
|
498
|
+
function isDetailedPosition(value) {
|
|
499
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
500
|
+
return false;
|
|
501
|
+
const position = value;
|
|
502
|
+
return (typeof position.line === "number" &&
|
|
503
|
+
Number.isInteger(position.line) &&
|
|
504
|
+
position.line >= 0 &&
|
|
505
|
+
typeof position.column === "number" &&
|
|
506
|
+
Number.isInteger(position.column) &&
|
|
507
|
+
position.column >= 0 &&
|
|
508
|
+
(position.index === undefined ||
|
|
509
|
+
(typeof position.index === "number" && Number.isInteger(position.index) && position.index >= 0)));
|
|
510
|
+
}
|
|
511
|
+
function isSymbolEdge(value) {
|
|
512
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
513
|
+
return false;
|
|
514
|
+
const edge = value;
|
|
515
|
+
return (typeof edge.from === "string" &&
|
|
516
|
+
typeof edge.to === "string" &&
|
|
517
|
+
(edge.label === undefined || typeof edge.label === "string") &&
|
|
518
|
+
(edge.site === undefined ||
|
|
519
|
+
(!!edge.site &&
|
|
520
|
+
typeof edge.site === "object" &&
|
|
521
|
+
typeof edge.site.file === "string" &&
|
|
522
|
+
!!edge.site.file &&
|
|
523
|
+
isDetailedRange(edge.site.range))));
|
|
524
|
+
}
|
|
525
|
+
async function isDetailedSymbolGraphCompatibleWithProject(projectRoot, index, graph) {
|
|
526
|
+
const normalizedRoot = path.resolve(projectRoot);
|
|
527
|
+
const indexedFiles = new Set([...index.byFile.keys()]);
|
|
528
|
+
for (const node of graph.nodes.values()) {
|
|
529
|
+
const normalizedFile = normalizePath(node.file);
|
|
530
|
+
if (!indexedFiles.has(fileIdentityKey(normalizedFile)) ||
|
|
531
|
+
!isFilePathWithinRoot(normalizedRoot, normalizedFile) ||
|
|
532
|
+
!node.id.startsWith(`${normalizedFile}::`)) {
|
|
533
|
+
return false;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
for (const edge of graph.edges) {
|
|
537
|
+
if (!graph.nodes.has(edge.from) || !graph.nodes.has(edge.to))
|
|
538
|
+
return false;
|
|
539
|
+
if (edge.site) {
|
|
540
|
+
const normalizedSiteFile = normalizePath(edge.site.file);
|
|
541
|
+
if (!indexedFiles.has(fileIdentityKey(normalizedSiteFile)) ||
|
|
542
|
+
!isFilePathWithinRoot(normalizedRoot, normalizedSiteFile)) {
|
|
543
|
+
return false;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
const base = await buildSymbolGraph(index);
|
|
548
|
+
if (graph.nodes.size !== base.nodes.size)
|
|
549
|
+
return false;
|
|
550
|
+
for (const [id, expected] of base.nodes) {
|
|
551
|
+
const actual = graph.nodes.get(id);
|
|
552
|
+
if (!actual ||
|
|
553
|
+
actual.file !== expected.file ||
|
|
554
|
+
actual.name !== expected.name ||
|
|
555
|
+
actual.kind !== expected.kind ||
|
|
556
|
+
actual.docstring !== expected.docstring ||
|
|
557
|
+
actual.lineSpan !== expected.lineSpan ||
|
|
558
|
+
actual.complexity !== expected.complexity) {
|
|
559
|
+
return false;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return sameSymbolEdgeMultiset(base.edges, graph.edges);
|
|
563
|
+
}
|
|
564
|
+
function sameSymbolEdgeMultiset(expected, actual) {
|
|
565
|
+
if (expected.length !== actual.length)
|
|
566
|
+
return false;
|
|
567
|
+
const counts = new Map();
|
|
568
|
+
for (const edge of expected) {
|
|
569
|
+
const key = serializedSymbolEdge(edge);
|
|
570
|
+
counts.set(key, (counts.get(key) ?? 0) + 1);
|
|
571
|
+
}
|
|
572
|
+
for (const edge of actual) {
|
|
573
|
+
const key = serializedSymbolEdge(edge);
|
|
574
|
+
const remaining = counts.get(key);
|
|
575
|
+
if (remaining === undefined)
|
|
576
|
+
return false;
|
|
577
|
+
if (remaining === 1)
|
|
578
|
+
counts.delete(key);
|
|
579
|
+
else
|
|
580
|
+
counts.set(key, remaining - 1);
|
|
581
|
+
}
|
|
582
|
+
return !counts.size;
|
|
583
|
+
}
|
|
584
|
+
function serializedSymbolEdge(edge) {
|
|
585
|
+
return JSON.stringify({
|
|
586
|
+
from: edge.from,
|
|
587
|
+
to: edge.to,
|
|
588
|
+
label: edge.label,
|
|
589
|
+
site: edge.site
|
|
590
|
+
? {
|
|
591
|
+
file: edge.site.file,
|
|
592
|
+
range: {
|
|
593
|
+
start: {
|
|
594
|
+
line: edge.site.range.start.line,
|
|
595
|
+
column: edge.site.range.start.column,
|
|
596
|
+
...(edge.site.range.start.index !== undefined ? { index: edge.site.range.start.index } : {}),
|
|
597
|
+
},
|
|
598
|
+
end: {
|
|
599
|
+
line: edge.site.range.end.line,
|
|
600
|
+
column: edge.site.range.end.column,
|
|
601
|
+
...(edge.site.range.end.index !== undefined ? { index: edge.site.range.end.index } : {}),
|
|
602
|
+
},
|
|
603
|
+
},
|
|
604
|
+
}
|
|
605
|
+
: undefined,
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
function normalizedSnapshotNativeMode(nativeMode) {
|
|
609
|
+
if (nativeMode === undefined || nativeMode === "auto")
|
|
610
|
+
return undefined;
|
|
611
|
+
return nativeMode;
|
|
612
|
+
}
|
|
613
|
+
function isSnapshotNativeMode(value) {
|
|
614
|
+
return value === "auto" || value === "on" || value === "off";
|
|
615
|
+
}
|
|
616
|
+
function isProjectFileInfo(value) {
|
|
617
|
+
if (!value || typeof value !== "object")
|
|
618
|
+
return false;
|
|
619
|
+
const projectFile = value;
|
|
620
|
+
return (typeof projectFile.path === "string" &&
|
|
621
|
+
(projectFile.kind === "file" || projectFile.kind === "dir") &&
|
|
622
|
+
isProjectFileType(projectFile.type) &&
|
|
623
|
+
isProjectFileRole(projectFile.role) &&
|
|
624
|
+
typeof projectFile.projectRoot === "string" &&
|
|
625
|
+
(projectFile.name === undefined || typeof projectFile.name === "string"));
|
|
626
|
+
}
|
|
627
|
+
function isProjectFileType(value) {
|
|
628
|
+
return (value === "node" ||
|
|
629
|
+
value === "typescript" ||
|
|
630
|
+
value === "python" ||
|
|
631
|
+
value === "rust" ||
|
|
632
|
+
value === "go" ||
|
|
633
|
+
value === "maven" ||
|
|
634
|
+
value === "gradle" ||
|
|
635
|
+
value === "dotnet" ||
|
|
636
|
+
value === "ruby" ||
|
|
637
|
+
value === "php" ||
|
|
638
|
+
value === "swift" ||
|
|
639
|
+
value === "native" ||
|
|
640
|
+
value === "ide");
|
|
641
|
+
}
|
|
642
|
+
function isProjectFileRole(value) {
|
|
643
|
+
return value === "manifest" || value === "lockfile" || value === "config" || value === "solution" || value === "ide";
|
|
644
|
+
}
|
|
645
|
+
function isProjectIndexSnapshotPayload(value) {
|
|
646
|
+
if (!value || typeof value !== "object")
|
|
647
|
+
return false;
|
|
648
|
+
const payload = value;
|
|
649
|
+
return (payload.version === PROJECT_SNAPSHOT_VERSION &&
|
|
650
|
+
typeof payload.filesSignature === "string" &&
|
|
651
|
+
typeof payload.projectRoot === "string" &&
|
|
652
|
+
typeof payload.nativeRuntimeFingerprint === "string" &&
|
|
653
|
+
typeof payload.implementationFingerprint === "string" &&
|
|
654
|
+
/^[a-f0-9]{64}$/.test(payload.implementationFingerprint) &&
|
|
655
|
+
!!payload.graph &&
|
|
656
|
+
Array.isArray(payload.graph.nodes) &&
|
|
657
|
+
payload.graph.nodes.every((node) => typeof node === "string") &&
|
|
658
|
+
Array.isArray(payload.graph.edges) &&
|
|
659
|
+
payload.graph.edges.every(isGraphEdge) &&
|
|
660
|
+
Array.isArray(payload.modules) &&
|
|
661
|
+
payload.modules.every(isModuleIndex) &&
|
|
662
|
+
(payload.nativeMode === undefined || isSnapshotNativeMode(payload.nativeMode)) &&
|
|
663
|
+
(payload.bloomFilters === undefined || isSerializedBloomFilterRecord(payload.bloomFilters)) &&
|
|
664
|
+
(payload.analysis === undefined || isAnalysisSummary(payload.analysis)) &&
|
|
665
|
+
(payload.analysisReport === undefined || isSnapshotAnalysisReport(payload.analysisReport)) &&
|
|
666
|
+
(payload.projectFiles === undefined ||
|
|
667
|
+
(Array.isArray(payload.projectFiles) && payload.projectFiles.every(isProjectFileInfo))));
|
|
668
|
+
}
|
|
669
|
+
function analysisReportFromBuildReport(report) {
|
|
670
|
+
if (!report?.backend && !report?.graph) {
|
|
671
|
+
return undefined;
|
|
672
|
+
}
|
|
673
|
+
return {
|
|
674
|
+
...(report.backend ? { backend: report.backend } : {}),
|
|
675
|
+
...(report.graph ? { graph: report.graph } : {}),
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
function isSnapshotAnalysisReport(value) {
|
|
679
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
680
|
+
return false;
|
|
681
|
+
const report = value;
|
|
682
|
+
return ((report.backend === undefined || isBackendReport(report.backend)) &&
|
|
683
|
+
(report.graph === undefined || isGraphReport(report.graph)));
|
|
684
|
+
}
|
|
685
|
+
function isBackendReport(value) {
|
|
686
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
687
|
+
return false;
|
|
688
|
+
const report = value;
|
|
689
|
+
return (!!report.native &&
|
|
690
|
+
isNativeBackendReport(report.native) &&
|
|
691
|
+
(report.parser === undefined || isParserBackendDegradationReport(report.parser)));
|
|
692
|
+
}
|
|
693
|
+
function isNativeBackendReport(value) {
|
|
694
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
695
|
+
return false;
|
|
696
|
+
const report = value;
|
|
697
|
+
return (typeof report.available === "boolean" &&
|
|
698
|
+
typeof report.enabled === "boolean" &&
|
|
699
|
+
Array.isArray(report.supportedLanguageIds) &&
|
|
700
|
+
report.supportedLanguageIds.every((languageId) => typeof languageId === "string") &&
|
|
701
|
+
typeof report.filesUsed === "number" &&
|
|
702
|
+
typeof report.filesFellBack === "number" &&
|
|
703
|
+
isUnknownRecord(report.fallbackReasons) &&
|
|
704
|
+
isUnknownRecord(report.byLanguage) &&
|
|
705
|
+
Array.isArray(report.errors));
|
|
706
|
+
}
|
|
707
|
+
function isParserBackendDegradationReport(value) {
|
|
708
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
709
|
+
return false;
|
|
710
|
+
const report = value;
|
|
711
|
+
return typeof report.total === "number" && isNumberRecord(report.byLanguage) && Array.isArray(report.files);
|
|
712
|
+
}
|
|
713
|
+
function isGraphReport(value) {
|
|
714
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
715
|
+
return false;
|
|
716
|
+
const report = value;
|
|
717
|
+
return !!report.fallbackImportExtraction && isFallbackImportExtractionReport(report.fallbackImportExtraction);
|
|
718
|
+
}
|
|
719
|
+
function isFallbackImportExtractionReport(value) {
|
|
720
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
721
|
+
return false;
|
|
722
|
+
const report = value;
|
|
723
|
+
return (typeof report.total === "number" &&
|
|
724
|
+
isNumberRecord(report.byLanguage) &&
|
|
725
|
+
isUnknownRecord(report.files) &&
|
|
726
|
+
(report.byReason === undefined || isNumberRecord(report.byReason)));
|
|
727
|
+
}
|
|
728
|
+
function isUnknownRecord(value) {
|
|
729
|
+
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
730
|
+
}
|
|
731
|
+
function isNumberRecord(value) {
|
|
732
|
+
return isUnknownRecord(value) && Object.values(value).every((entry) => typeof entry === "number");
|
|
733
|
+
}
|
|
734
|
+
function isAnalysisSummary(value) {
|
|
735
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
736
|
+
return false;
|
|
737
|
+
const summary = value;
|
|
738
|
+
return ((summary.mode === "semantic" || summary.mode === "mixed" || summary.mode === "reduced") &&
|
|
739
|
+
(summary.backend === "native" ||
|
|
740
|
+
summary.backend === "mixed" ||
|
|
741
|
+
summary.backend === "graph-only" ||
|
|
742
|
+
summary.backend === "unknown") &&
|
|
743
|
+
typeof summary.parserDegradedFiles === "number" &&
|
|
744
|
+
typeof summary.fallbackImportExtractionFiles === "number" &&
|
|
745
|
+
typeof summary.nativeFilesUsed === "number" &&
|
|
746
|
+
typeof summary.nativeFilesFellBack === "number" &&
|
|
747
|
+
typeof summary.label === "string");
|
|
748
|
+
}
|
|
749
|
+
function serializeBloomFilterCache(cache, files) {
|
|
750
|
+
const serialized = {};
|
|
751
|
+
for (const file of files) {
|
|
752
|
+
const filter = cache.get(file);
|
|
753
|
+
if (!filter)
|
|
754
|
+
continue;
|
|
755
|
+
const metadata = filter.getMetadata();
|
|
756
|
+
serialized[file] = {
|
|
757
|
+
size: metadata.size,
|
|
758
|
+
hashCount: metadata.hashCount,
|
|
759
|
+
bitsBase64: filter.toBuffer().toString("base64"),
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
return Object.keys(serialized).length ? serialized : undefined;
|
|
763
|
+
}
|
|
764
|
+
function deserializeBloomFilterCache(serialized) {
|
|
765
|
+
const cache = new BloomFilterCache();
|
|
766
|
+
for (const [file, filter] of Object.entries(serialized)) {
|
|
767
|
+
cache.set(file, BloomFilter.fromBuffer(Buffer.from(filter.bitsBase64, "base64"), filter.size, filter.hashCount));
|
|
768
|
+
}
|
|
769
|
+
return cache;
|
|
770
|
+
}
|
|
771
|
+
function isSerializedBloomFilterRecord(value) {
|
|
772
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
773
|
+
return false;
|
|
774
|
+
return Object.values(value).every(isSerializedBloomFilter);
|
|
775
|
+
}
|
|
776
|
+
function isSerializedBloomFilter(value) {
|
|
777
|
+
if (!value || typeof value !== "object")
|
|
778
|
+
return false;
|
|
779
|
+
const filter = value;
|
|
780
|
+
if (typeof filter.size !== "number" ||
|
|
781
|
+
!Number.isInteger(filter.size) ||
|
|
782
|
+
filter.size < BLOOM_FILTER_MIN_SIZE ||
|
|
783
|
+
filter.size > BLOOM_FILTER_MAX_SIZE ||
|
|
784
|
+
typeof filter.hashCount !== "number" ||
|
|
785
|
+
!Number.isInteger(filter.hashCount) ||
|
|
786
|
+
filter.hashCount < BLOOM_FILTER_MIN_HASH_COUNT ||
|
|
787
|
+
filter.hashCount > BLOOM_FILTER_MAX_HASH_COUNT ||
|
|
788
|
+
typeof filter.bitsBase64 !== "string") {
|
|
789
|
+
return false;
|
|
790
|
+
}
|
|
791
|
+
const maxBytes = Math.ceil(filter.size / 8);
|
|
792
|
+
const maxBase64Length = Math.ceil(maxBytes / 3) * 4;
|
|
793
|
+
return filter.bitsBase64.length === maxBase64Length;
|
|
794
|
+
}
|
|
795
|
+
function isModuleIndex(value) {
|
|
796
|
+
if (!value || typeof value !== "object")
|
|
797
|
+
return false;
|
|
798
|
+
const moduleIndex = value;
|
|
799
|
+
return (typeof moduleIndex.file === "string" &&
|
|
800
|
+
Array.isArray(moduleIndex.locals) &&
|
|
801
|
+
moduleIndex.locals.every(isSymbolDef) &&
|
|
802
|
+
Array.isArray(moduleIndex.imports) &&
|
|
803
|
+
moduleIndex.imports.every(isImportBinding) &&
|
|
804
|
+
Array.isArray(moduleIndex.exports) &&
|
|
805
|
+
moduleIndex.exports.every(isExportEntry));
|
|
806
|
+
}
|
|
807
|
+
function isSymbolDef(value) {
|
|
808
|
+
if (!value || typeof value !== "object")
|
|
809
|
+
return false;
|
|
810
|
+
const symbol = value;
|
|
811
|
+
return (typeof symbol.file === "string" &&
|
|
812
|
+
typeof symbol.localName === "string" &&
|
|
813
|
+
isSymbolKind(symbol.kind) &&
|
|
814
|
+
isRange(symbol.range) &&
|
|
815
|
+
(symbol.docstring === undefined || typeof symbol.docstring === "string") &&
|
|
816
|
+
(symbol.lineSpan === undefined || typeof symbol.lineSpan === "number") &&
|
|
817
|
+
(symbol.complexity === undefined || typeof symbol.complexity === "number"));
|
|
818
|
+
}
|
|
819
|
+
function isImportBinding(value) {
|
|
820
|
+
if (!value || typeof value !== "object")
|
|
821
|
+
return false;
|
|
822
|
+
const binding = value;
|
|
823
|
+
if (typeof binding.from !== "string" ||
|
|
824
|
+
!isResolvedImportTarget(binding.resolved) ||
|
|
825
|
+
!isOptionalBoolean(binding.typeOnly) ||
|
|
826
|
+
!isImportMechanism(binding.mechanism) ||
|
|
827
|
+
!isResolvedType(binding.resolvedType) ||
|
|
828
|
+
!isOptionalNumber(binding.confidence)) {
|
|
829
|
+
return false;
|
|
830
|
+
}
|
|
831
|
+
if (binding.kind === "default")
|
|
832
|
+
return typeof binding.local === "string";
|
|
833
|
+
if (binding.kind === "named") {
|
|
834
|
+
return (typeof binding.local === "string" &&
|
|
835
|
+
typeof binding.imported === "string" &&
|
|
836
|
+
(binding.phpImportType === undefined ||
|
|
837
|
+
binding.phpImportType === "class" ||
|
|
838
|
+
binding.phpImportType === "function" ||
|
|
839
|
+
binding.phpImportType === "const"));
|
|
840
|
+
}
|
|
841
|
+
if (binding.kind === "namespace")
|
|
842
|
+
return typeof binding.localNS === "string";
|
|
843
|
+
return binding.kind === "star";
|
|
844
|
+
}
|
|
845
|
+
function isExportEntry(value) {
|
|
846
|
+
if (!value || typeof value !== "object")
|
|
847
|
+
return false;
|
|
848
|
+
const entry = value;
|
|
849
|
+
if (entry.type === "local")
|
|
850
|
+
return typeof entry.exportedAs === "string" && isSymbolDef(entry.target);
|
|
851
|
+
if (entry.type === "reexport") {
|
|
852
|
+
return (typeof entry.exportedAs === "string" &&
|
|
853
|
+
typeof entry.fromModule === "string" &&
|
|
854
|
+
typeof entry.sourceSpecifier === "string" &&
|
|
855
|
+
(entry.moduleSpecifier === undefined || typeof entry.moduleSpecifier === "string") &&
|
|
856
|
+
isOptionalBoolean(entry.typeOnly));
|
|
857
|
+
}
|
|
858
|
+
if (entry.type === "namespaceReexport") {
|
|
859
|
+
return (typeof entry.exportedAs === "string" &&
|
|
860
|
+
typeof entry.fromModule === "string" &&
|
|
861
|
+
(entry.moduleSpecifier === undefined || typeof entry.moduleSpecifier === "string") &&
|
|
862
|
+
isOptionalBoolean(entry.typeOnly));
|
|
863
|
+
}
|
|
864
|
+
if (entry.type === "exportStar") {
|
|
865
|
+
return (typeof entry.fromModule === "string" &&
|
|
866
|
+
typeof entry.sourceSpecifier === "string" &&
|
|
867
|
+
(entry.moduleSpecifier === undefined || typeof entry.moduleSpecifier === "string") &&
|
|
868
|
+
isOptionalBoolean(entry.typeOnly));
|
|
869
|
+
}
|
|
870
|
+
return false;
|
|
871
|
+
}
|
|
872
|
+
function isResolvedImportTarget(value) {
|
|
873
|
+
if (value === undefined || typeof value === "string")
|
|
874
|
+
return true;
|
|
875
|
+
return Boolean(value && typeof value === "object" && typeof value.external === "string");
|
|
876
|
+
}
|
|
877
|
+
function isImportMechanism(value) {
|
|
878
|
+
return value === undefined || value === "es" || value === "cjs" || value === "python" || value === "php";
|
|
879
|
+
}
|
|
880
|
+
function isResolvedType(value) {
|
|
881
|
+
return value === undefined || value === "heuristic" || value === "precise";
|
|
882
|
+
}
|
|
883
|
+
function isOptionalBoolean(value) {
|
|
884
|
+
return value === undefined || typeof value === "boolean";
|
|
885
|
+
}
|
|
886
|
+
function isOptionalNumber(value) {
|
|
887
|
+
return value === undefined || typeof value === "number";
|
|
888
|
+
}
|
|
889
|
+
function isSymbolKind(value) {
|
|
890
|
+
return SNAPSHOT_SYMBOL_KINDS.has(value);
|
|
891
|
+
}
|
|
892
|
+
function isRange(value) {
|
|
893
|
+
if (!value || typeof value !== "object")
|
|
894
|
+
return false;
|
|
895
|
+
const range = value;
|
|
896
|
+
return isPos(range.start) && isPos(range.end);
|
|
897
|
+
}
|
|
898
|
+
function isPos(value) {
|
|
899
|
+
if (!value || typeof value !== "object")
|
|
900
|
+
return false;
|
|
901
|
+
const pos = value;
|
|
902
|
+
return (typeof pos.line === "number" &&
|
|
903
|
+
typeof pos.column === "number" &&
|
|
904
|
+
(pos.index === undefined || typeof pos.index === "number"));
|
|
905
|
+
}
|
|
906
|
+
function isGraphEdge(value) {
|
|
907
|
+
if (!value || typeof value !== "object")
|
|
908
|
+
return false;
|
|
909
|
+
const edge = value;
|
|
910
|
+
const resolved = edge.resolved;
|
|
911
|
+
return (typeof edge.from === "string" &&
|
|
912
|
+
isEdgeTo(edge.to) &&
|
|
913
|
+
typeof edge.raw === "string" &&
|
|
914
|
+
(edge.typeOnly === undefined || typeof edge.typeOnly === "boolean") &&
|
|
915
|
+
(resolved === undefined || resolved === "heuristic" || resolved === "precise") &&
|
|
916
|
+
(edge.confidence === undefined || typeof edge.confidence === "number"));
|
|
917
|
+
}
|
|
918
|
+
function isEdgeTo(value) {
|
|
919
|
+
if (!value || typeof value !== "object")
|
|
920
|
+
return false;
|
|
921
|
+
const edgeTo = value;
|
|
922
|
+
if (edgeTo.type === "file")
|
|
923
|
+
return typeof edgeTo.path === "string";
|
|
924
|
+
if (edgeTo.type === "external")
|
|
925
|
+
return typeof edgeTo.name === "string";
|
|
926
|
+
return false;
|
|
927
|
+
}
|
|
928
|
+
//# sourceMappingURL=project-snapshot.js.map
|