@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,872 @@
|
|
|
1
|
+
import { isGraphOnlyLanguage } from "../documentLinks.js";
|
|
2
|
+
import { capturesByName, capturesNamed, rangeFromNativeCapture } from "../native/queryResults.js";
|
|
3
|
+
import { ProjectedSyntaxTree } from "../native/projectedTree.js";
|
|
4
|
+
import { assertNativeRequiredAvailable, getNativeSyntaxTreeExecution, isNativeRequiredUnavailableError, } from "../native/treeSitterNative.js";
|
|
5
|
+
import { maskJsLikeCommentsAndStrings } from "../util/comments.js";
|
|
6
|
+
import { sliceText, toRange, unquote } from "../util/ast.js";
|
|
7
|
+
import { bindingKindToSymbolKind } from "./declarations.js";
|
|
8
|
+
import { buildScopeIndexFromSource } from "./scope.js";
|
|
9
|
+
import { SymbolKind } from "./types.js";
|
|
10
|
+
const METHOD_LIKE_BINDING_NODE_TYPES = new Set([
|
|
11
|
+
"method_definition",
|
|
12
|
+
"method_signature",
|
|
13
|
+
"abstract_method_signature",
|
|
14
|
+
"method_declaration",
|
|
15
|
+
"method",
|
|
16
|
+
"function_item",
|
|
17
|
+
"function_declaration",
|
|
18
|
+
"function_definition",
|
|
19
|
+
]);
|
|
20
|
+
// TypeScript/TSX and JavaScript class field declarations are absent from
|
|
21
|
+
// those languages' native `locals` query (only method-like declarations
|
|
22
|
+
// are queried there), so `#private` and public class fields resolve to
|
|
23
|
+
// zero definitions without this structural supplement.
|
|
24
|
+
const FIELD_LIKE_BINDING_NODE_TYPES = new Set([
|
|
25
|
+
"public_field_definition", // TypeScript/TSX
|
|
26
|
+
"field_definition", // JavaScript
|
|
27
|
+
]);
|
|
28
|
+
const MEMBER_CONTAINER_NODE_TYPES = {
|
|
29
|
+
class_body: true,
|
|
30
|
+
class_declaration: true,
|
|
31
|
+
abstract_class_declaration: true,
|
|
32
|
+
class_definition: true,
|
|
33
|
+
class: true,
|
|
34
|
+
interface_declaration: true,
|
|
35
|
+
impl_item: true,
|
|
36
|
+
trait_item: true,
|
|
37
|
+
enum_declaration: true,
|
|
38
|
+
enum_item: true,
|
|
39
|
+
};
|
|
40
|
+
const CALLABLE_DECLARATION_NODE_TYPES = {
|
|
41
|
+
function_declaration: true,
|
|
42
|
+
generator_function_declaration: true,
|
|
43
|
+
function_definition: true,
|
|
44
|
+
function_item: true,
|
|
45
|
+
method_definition: true,
|
|
46
|
+
method_declaration: true,
|
|
47
|
+
method: true,
|
|
48
|
+
singleton_method: true,
|
|
49
|
+
};
|
|
50
|
+
function isTypeMemberDeclaration(node) {
|
|
51
|
+
let current = node.parent?.parent ?? null;
|
|
52
|
+
while (current) {
|
|
53
|
+
if (MEMBER_CONTAINER_NODE_TYPES[current.type])
|
|
54
|
+
return true;
|
|
55
|
+
if (CALLABLE_DECLARATION_NODE_TYPES[current.type])
|
|
56
|
+
return false;
|
|
57
|
+
current = current.parent;
|
|
58
|
+
}
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
function appendJsLikeRegexFallbackExports(file, source, locals, exports) {
|
|
62
|
+
const maskedSource = maskJsLikeCommentsAndStrings(source);
|
|
63
|
+
const reDecl = /\bexport\s+(?:const|let|var|function|class)\s+([A-Za-z_$][\w$]*)/g;
|
|
64
|
+
const reDefault = /\bexport\s+default\s+([A-Za-z_$][\w$]*)/g;
|
|
65
|
+
const reExportAssign = /\bexport\s*=\s*([A-Za-z_$][\w$]*)/g;
|
|
66
|
+
const reReexport = /\bexport\s*\{\s*([^}]+)\}\s*from\s*("|')([^"']*)\2/g;
|
|
67
|
+
const reReexportNs = /\bexport\s*\*\s+as\s+([A-Za-z_$][\w$]*)\s+from\s*("|')([^"']*)\2/g;
|
|
68
|
+
const reStar = /\bexport\s*\*\s*from\s*("|')([^"']*)\1/g;
|
|
69
|
+
const reCjsFn = /(?:^|[;\n\r])\s*(?:exports|module\.exports)\.([A-Za-z_$][\w$]*)\s*=\s*(function\b|\([^)]*\)\s*=>)/g;
|
|
70
|
+
const reCjsObjFn = /([A-Za-z_$][\w$]*)\s*:\s*(function\b|\([^)]*\)\s*=>)/g;
|
|
71
|
+
const moduleExportsObject = /module\.exports\s*=\s*\{([^}]*)\}/s;
|
|
72
|
+
let match;
|
|
73
|
+
while ((match = reDecl.exec(maskedSource))) {
|
|
74
|
+
const name = match[1];
|
|
75
|
+
if (!exports.some((entry) => entry.type === "local" && entry.exportedAs === name)) {
|
|
76
|
+
const local = locals.find((def) => def.localName === name);
|
|
77
|
+
if (local)
|
|
78
|
+
exports.push({ type: "local", exportedAs: name, target: local });
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
while ((match = reDefault.exec(maskedSource))) {
|
|
82
|
+
const name = match[1];
|
|
83
|
+
if (!exports.some((entry) => entry.type === "local" && entry.exportedAs === "default")) {
|
|
84
|
+
const local = locals.find((def) => def.localName === name);
|
|
85
|
+
if (local) {
|
|
86
|
+
exports.push({
|
|
87
|
+
type: "local",
|
|
88
|
+
exportedAs: "default",
|
|
89
|
+
target: { ...local, kind: SymbolKind.Default },
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
while ((match = reExportAssign.exec(maskedSource))) {
|
|
95
|
+
const name = match[1];
|
|
96
|
+
if (!exports.some((entry) => entry.type === "local" && entry.exportedAs === "default")) {
|
|
97
|
+
const local = locals.find((def) => def.localName === name);
|
|
98
|
+
if (local) {
|
|
99
|
+
exports.push({
|
|
100
|
+
type: "local",
|
|
101
|
+
exportedAs: "default",
|
|
102
|
+
target: { ...local, kind: SymbolKind.Default },
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
while ((match = reReexport.exec(maskedSource))) {
|
|
108
|
+
const list = match[1]
|
|
109
|
+
.split(",")
|
|
110
|
+
.map((item) => item.trim())
|
|
111
|
+
.filter(Boolean);
|
|
112
|
+
const from = source.slice(match.index, reReexport.lastIndex).match(/from\s*("|')([^"']+)\1/)?.[2];
|
|
113
|
+
if (!from)
|
|
114
|
+
continue;
|
|
115
|
+
for (const spec of list) {
|
|
116
|
+
const entryMatch = spec.match(/^([A-Za-z_$][\w$]*)(?:\s+as\s+([A-Za-z_$][\w$]*))?$/);
|
|
117
|
+
if (!entryMatch)
|
|
118
|
+
continue;
|
|
119
|
+
const srcName = entryMatch[1];
|
|
120
|
+
const alias = entryMatch[2] ?? srcName;
|
|
121
|
+
if (!exports.some((entry) => entry.type === "reexport" && entry.exportedAs === alias && entry.fromModule === from)) {
|
|
122
|
+
exports.push({
|
|
123
|
+
type: "reexport",
|
|
124
|
+
exportedAs: alias,
|
|
125
|
+
fromModule: from,
|
|
126
|
+
sourceSpecifier: srcName,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
while ((match = reReexportNs.exec(maskedSource))) {
|
|
132
|
+
const alias = match[1];
|
|
133
|
+
const from = source.slice(match.index, reReexportNs.lastIndex).match(/from\s*("|')([^"']+)\1/)?.[2];
|
|
134
|
+
if (!from)
|
|
135
|
+
continue;
|
|
136
|
+
if (!exports.some((entry) => (entry.type === "reexport" || entry.type === "namespaceReexport") &&
|
|
137
|
+
entry.exportedAs === alias &&
|
|
138
|
+
entry.fromModule === from)) {
|
|
139
|
+
exports.push({
|
|
140
|
+
type: "namespaceReexport",
|
|
141
|
+
exportedAs: alias,
|
|
142
|
+
fromModule: from,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
while ((match = reStar.exec(maskedSource))) {
|
|
147
|
+
const from = source.slice(match.index, reStar.lastIndex).match(/("|')([^"']+)\1/)?.[2];
|
|
148
|
+
if (!from)
|
|
149
|
+
continue;
|
|
150
|
+
if (!exports.some((entry) => entry.type === "exportStar" && entry.fromModule === from)) {
|
|
151
|
+
exports.push({
|
|
152
|
+
type: "exportStar",
|
|
153
|
+
fromModule: from,
|
|
154
|
+
sourceSpecifier: from,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
while ((match = reCjsFn.exec(maskedSource))) {
|
|
159
|
+
const exportedAs = match[1];
|
|
160
|
+
let local = locals.find((def) => def.localName === exportedAs);
|
|
161
|
+
if (!local) {
|
|
162
|
+
const idx = match.index + match[0].indexOf(exportedAs);
|
|
163
|
+
const pos = { line: 1, column: 1, index: idx };
|
|
164
|
+
local = {
|
|
165
|
+
file,
|
|
166
|
+
localName: exportedAs,
|
|
167
|
+
kind: SymbolKind.Function,
|
|
168
|
+
range: { start: pos, end: pos },
|
|
169
|
+
};
|
|
170
|
+
locals.push(local);
|
|
171
|
+
}
|
|
172
|
+
if (!exports.some((entry) => entry.type === "local" && entry.exportedAs === exportedAs)) {
|
|
173
|
+
exports.push({ type: "local", exportedAs, target: local });
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
const moduleExportsObjMatch = moduleExportsObject.exec(maskedSource);
|
|
177
|
+
if (!moduleExportsObjMatch || moduleExportsObjMatch.index === undefined) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
const objContent = moduleExportsObjMatch[1];
|
|
181
|
+
let objectMatch;
|
|
182
|
+
while ((objectMatch = reCjsObjFn.exec(objContent))) {
|
|
183
|
+
const exportedAs = objectMatch[1];
|
|
184
|
+
let local = locals.find((def) => def.localName === exportedAs);
|
|
185
|
+
if (!local) {
|
|
186
|
+
const idx = moduleExportsObjMatch.index + moduleExportsObjMatch[0].indexOf(exportedAs);
|
|
187
|
+
const pos = { line: 1, column: 1, index: idx };
|
|
188
|
+
local = {
|
|
189
|
+
file,
|
|
190
|
+
localName: exportedAs,
|
|
191
|
+
kind: SymbolKind.Function,
|
|
192
|
+
range: { start: pos, end: pos },
|
|
193
|
+
};
|
|
194
|
+
locals.push(local);
|
|
195
|
+
}
|
|
196
|
+
if (!exports.some((entry) => entry.type === "local" && entry.exportedAs === exportedAs)) {
|
|
197
|
+
exports.push({ type: "local", exportedAs, target: local });
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
export function collectLocalsAndExportsFromSource(file, source, support, lang, imports = [], opts) {
|
|
202
|
+
if (isGraphOnlyLanguage(support.id)) {
|
|
203
|
+
return { file, exports: [], imports, locals: [] };
|
|
204
|
+
}
|
|
205
|
+
assertNativeRequiredAvailable(opts?.nativeMode);
|
|
206
|
+
const normalizeDocstringLine = (line) => line.replace(/^\s*(?:\/\/\/?\s?|#\s?)/, "").replace(/^\s*\*\s?/, "");
|
|
207
|
+
const _sourceLines = source.split(/\r?\n/);
|
|
208
|
+
const extractLeadingDocstring = (node) => {
|
|
209
|
+
if (!node)
|
|
210
|
+
return undefined;
|
|
211
|
+
// If we're looking at an identifier, look at its parent (the declaration)
|
|
212
|
+
let target = node;
|
|
213
|
+
if (target.type === "identifier" || target.type === "type_identifier" || target.type === "property_identifier") {
|
|
214
|
+
if (target.parent)
|
|
215
|
+
target = target.parent;
|
|
216
|
+
}
|
|
217
|
+
// Handle variable declarators - climb to declaration statement
|
|
218
|
+
if (target.type === "variable_declarator" && target.parent) {
|
|
219
|
+
target = target.parent;
|
|
220
|
+
}
|
|
221
|
+
// Handle export statements wrapping the declaration
|
|
222
|
+
if (target.parent && target.parent.type === "export_statement") {
|
|
223
|
+
target = target.parent;
|
|
224
|
+
}
|
|
225
|
+
const comments = [];
|
|
226
|
+
let prev = target.previousNamedSibling;
|
|
227
|
+
// Walk backwards through comments
|
|
228
|
+
while (prev && (prev.type === "comment" || prev.type === "line_comment" || prev.type === "block_comment")) {
|
|
229
|
+
const text = sliceText(prev, source);
|
|
230
|
+
// Clean up comment syntax
|
|
231
|
+
const clean = text
|
|
232
|
+
.replace(/^\s*\/\*\*?/, "") // /** or /*
|
|
233
|
+
.replace(/\*\/\s*$/, "") // */
|
|
234
|
+
.replace(/^\s*\/\/\/?/, "") // // or ///
|
|
235
|
+
.replace(/^\s*#/, "") // #
|
|
236
|
+
.split("\n")
|
|
237
|
+
.map((l) => normalizeDocstringLine(l))
|
|
238
|
+
.join("\n");
|
|
239
|
+
comments.unshift(clean.trim());
|
|
240
|
+
prev = prev.previousNamedSibling;
|
|
241
|
+
}
|
|
242
|
+
return comments.length ? comments.join("\n").trim() : undefined;
|
|
243
|
+
};
|
|
244
|
+
const countMatches = (text, re) => {
|
|
245
|
+
const matches = text.match(re);
|
|
246
|
+
return matches ? matches.length : 0;
|
|
247
|
+
};
|
|
248
|
+
const estimateComplexity = (range, languageId) => {
|
|
249
|
+
const startIdx = range.start.index;
|
|
250
|
+
const endIdx = range.end.index;
|
|
251
|
+
if (startIdx === undefined || endIdx === undefined || endIdx <= startIdx)
|
|
252
|
+
return undefined;
|
|
253
|
+
const snippet = source.slice(startIdx, endIdx);
|
|
254
|
+
if (!snippet.trim())
|
|
255
|
+
return undefined;
|
|
256
|
+
const keywordPatterns = [/\bif\b/g, /\bfor\b/g, /\bwhile\b/g, /\bcase\b/g, /\bcatch\b/g, /\belse\s+if\b/g];
|
|
257
|
+
if (languageId === "python") {
|
|
258
|
+
keywordPatterns.push(/\belif\b/g, /\bexcept\b/g);
|
|
259
|
+
}
|
|
260
|
+
const operatorPatterns = [/&&/g, /\|\|/g, /\?\s*[^:]/g];
|
|
261
|
+
let count = 0;
|
|
262
|
+
for (const re of keywordPatterns)
|
|
263
|
+
count += countMatches(snippet, re);
|
|
264
|
+
for (const re of operatorPatterns)
|
|
265
|
+
count += countMatches(snippet, re);
|
|
266
|
+
return 1 + count;
|
|
267
|
+
};
|
|
268
|
+
const positionForIndex = (index) => {
|
|
269
|
+
let line = 1;
|
|
270
|
+
let lineStart = 0;
|
|
271
|
+
for (let offset = 0; offset < index && offset < source.length; offset += 1) {
|
|
272
|
+
if (source.charCodeAt(offset) === 10) {
|
|
273
|
+
line += 1;
|
|
274
|
+
lineStart = offset + 1;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
return { line, column: index - lineStart + 1, index };
|
|
278
|
+
};
|
|
279
|
+
const rangeFromOffsets = (start, end) => ({
|
|
280
|
+
start: positionForIndex(start),
|
|
281
|
+
end: positionForIndex(end),
|
|
282
|
+
});
|
|
283
|
+
const buildSymbolDef = (localName, kind, range, node) => {
|
|
284
|
+
let lineSpan;
|
|
285
|
+
if (typeof range.start.line === "number" &&
|
|
286
|
+
typeof range.end.line === "number" &&
|
|
287
|
+
range.end.line >= range.start.line) {
|
|
288
|
+
lineSpan = Math.max(1, range.end.line - range.start.line + 1);
|
|
289
|
+
}
|
|
290
|
+
let docstring;
|
|
291
|
+
if (node) {
|
|
292
|
+
docstring = extractLeadingDocstring(node);
|
|
293
|
+
}
|
|
294
|
+
const shouldEstimateComplexity = kind === SymbolKind.Function || kind === SymbolKind.Class;
|
|
295
|
+
const complexity = shouldEstimateComplexity ? estimateComplexity(range, support.id) : undefined;
|
|
296
|
+
const base = {
|
|
297
|
+
file,
|
|
298
|
+
localName,
|
|
299
|
+
kind,
|
|
300
|
+
range,
|
|
301
|
+
};
|
|
302
|
+
if (node && isTypeMemberDeclaration(node))
|
|
303
|
+
base.isMember = true;
|
|
304
|
+
if (docstring)
|
|
305
|
+
base.docstring = docstring;
|
|
306
|
+
if (lineSpan)
|
|
307
|
+
base.lineSpan = lineSpan;
|
|
308
|
+
if (typeof complexity === "number")
|
|
309
|
+
base.complexity = complexity;
|
|
310
|
+
return base;
|
|
311
|
+
};
|
|
312
|
+
const nativeQueries = opts?.nativeQueries ?? null;
|
|
313
|
+
let tree = opts?.tree ?? null;
|
|
314
|
+
let treeAttempted = !!tree;
|
|
315
|
+
// Lazily parse a native-projected tree on first access. In zero-native mode
|
|
316
|
+
// there is no grammar fallback; callers get reduced locals/exports instead.
|
|
317
|
+
const ensureTree = () => {
|
|
318
|
+
if (tree || treeAttempted)
|
|
319
|
+
return tree;
|
|
320
|
+
treeAttempted = true;
|
|
321
|
+
try {
|
|
322
|
+
const nativeTreeExecution = getNativeSyntaxTreeExecution(source, support, opts?.nativeMode);
|
|
323
|
+
if (nativeTreeExecution.tree) {
|
|
324
|
+
tree = new ProjectedSyntaxTree(source, nativeTreeExecution.tree);
|
|
325
|
+
return tree;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
catch (error) {
|
|
329
|
+
if (isNativeRequiredUnavailableError(error))
|
|
330
|
+
throw error;
|
|
331
|
+
/* reduced mode: ignore */
|
|
332
|
+
}
|
|
333
|
+
return tree;
|
|
334
|
+
};
|
|
335
|
+
const locals = [];
|
|
336
|
+
const seenLocals = new Set();
|
|
337
|
+
const toKind = (s) => {
|
|
338
|
+
if (s === "function")
|
|
339
|
+
return SymbolKind.Function;
|
|
340
|
+
if (s === "method")
|
|
341
|
+
return SymbolKind.Function;
|
|
342
|
+
if (s === "class")
|
|
343
|
+
return SymbolKind.Class;
|
|
344
|
+
if (s === "interface")
|
|
345
|
+
return SymbolKind.Interface;
|
|
346
|
+
if (s === "type")
|
|
347
|
+
return SymbolKind.TypeAlias;
|
|
348
|
+
return SymbolKind.Variable;
|
|
349
|
+
};
|
|
350
|
+
const pushLocal = (localName, kind, range, node) => {
|
|
351
|
+
const key = `${localName}:${range.start.index ?? 0}:${range.end.index ?? 0}`;
|
|
352
|
+
if (seenLocals.has(key))
|
|
353
|
+
return;
|
|
354
|
+
seenLocals.add(key);
|
|
355
|
+
locals.push(buildSymbolDef(localName, kind, range, node));
|
|
356
|
+
};
|
|
357
|
+
const symbolKindForDeclarationNode = (node) => {
|
|
358
|
+
if (node.type === "function_declaration" ||
|
|
359
|
+
node.type === "generator_function_declaration" ||
|
|
360
|
+
node.type === "function")
|
|
361
|
+
return SymbolKind.Function;
|
|
362
|
+
if (node.type === "class_declaration" || node.type === "abstract_class_declaration")
|
|
363
|
+
return SymbolKind.Class;
|
|
364
|
+
return SymbolKind.Variable;
|
|
365
|
+
};
|
|
366
|
+
const classifyLocalCapture = (capture, range, node) => {
|
|
367
|
+
if (node)
|
|
368
|
+
return toKind(support.classifyDefinition(node));
|
|
369
|
+
if ("name" in capture && capture.name === "tname") {
|
|
370
|
+
return SymbolKind.TypeAlias;
|
|
371
|
+
}
|
|
372
|
+
return SymbolKind.Variable;
|
|
373
|
+
};
|
|
374
|
+
const extractLocalsFromNativeQueries = () => {
|
|
375
|
+
if (!nativeQueries)
|
|
376
|
+
return false;
|
|
377
|
+
if (!support.usesQueryDrivenLocals)
|
|
378
|
+
return false;
|
|
379
|
+
let capturedLocals = false;
|
|
380
|
+
try {
|
|
381
|
+
// Lazily get the tree only for enrichment (classification + docstrings).
|
|
382
|
+
// If the tree was already provided or the language benefits from it, use
|
|
383
|
+
// it. Otherwise native captures still succeed without tree enrichment.
|
|
384
|
+
const enrichmentTree = ensureTree();
|
|
385
|
+
for (const match of nativeQueries.locals) {
|
|
386
|
+
for (const capture of match.captures) {
|
|
387
|
+
if (capture.name !== "name" && capture.name !== "tname")
|
|
388
|
+
continue;
|
|
389
|
+
const nativeRange = rangeFromNativeCapture(capture);
|
|
390
|
+
const node = enrichmentTree?.rootNode.descendantForIndex(nativeRange.start.index ?? 0, nativeRange.end.index ?? 0) ??
|
|
391
|
+
undefined;
|
|
392
|
+
pushLocal(capture.text, classifyLocalCapture(capture, nativeRange, node), nativeRange, node);
|
|
393
|
+
capturedLocals = true;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
return capturedLocals;
|
|
397
|
+
}
|
|
398
|
+
catch (error) {
|
|
399
|
+
if (isNativeRequiredUnavailableError(error))
|
|
400
|
+
throw error;
|
|
401
|
+
return false;
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
const extractLocalsFromJsQueries = () => false;
|
|
405
|
+
const usedNativeLocals = extractLocalsFromNativeQueries();
|
|
406
|
+
const usedQueryLocals = usedNativeLocals || extractLocalsFromJsQueries();
|
|
407
|
+
if (!usedQueryLocals) {
|
|
408
|
+
const scopeTree = ensureTree();
|
|
409
|
+
if (scopeTree) {
|
|
410
|
+
const scopeIdx = buildScopeIndexFromSource(file, source, support, lang, imports, { tree: scopeTree });
|
|
411
|
+
for (const b of scopeIdx.all) {
|
|
412
|
+
if (!b.def)
|
|
413
|
+
continue;
|
|
414
|
+
const kind = bindingKindToSymbolKind(b.kind);
|
|
415
|
+
pushLocal(b.name, kind, b.def, b.node);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
const methodSupplementTree = ensureTree();
|
|
420
|
+
if (methodSupplementTree) {
|
|
421
|
+
supplementMethodLocalsFromSyntaxTree(methodSupplementTree.rootNode);
|
|
422
|
+
}
|
|
423
|
+
function supplementMethodLocalsFromSyntaxTree(node) {
|
|
424
|
+
if (METHOD_LIKE_BINDING_NODE_TYPES.has(node.type)) {
|
|
425
|
+
const name = node.childForFieldName("name");
|
|
426
|
+
if (name) {
|
|
427
|
+
pushLocal(sliceText(name, source), SymbolKind.Function, toRange(name), name);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
else if (FIELD_LIKE_BINDING_NODE_TYPES.has(node.type)) {
|
|
431
|
+
// TypeScript exposes the field name via the "name" field; JavaScript exposes
|
|
432
|
+
// the same position via "property". Both cover `#private` and public names.
|
|
433
|
+
const name = node.childForFieldName("name") ?? node.childForFieldName("property");
|
|
434
|
+
if (name) {
|
|
435
|
+
pushLocal(sliceText(name, source), SymbolKind.Variable, toRange(name), name);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
for (const child of node.namedChildren) {
|
|
439
|
+
supplementMethodLocalsFromSyntaxTree(child);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
const mergeTypeScriptNamespaceDeclarations = (items) => {
|
|
443
|
+
if (support.id !== "ts" && support.id !== "tsx")
|
|
444
|
+
return items;
|
|
445
|
+
const byName = new Map();
|
|
446
|
+
for (const item of items) {
|
|
447
|
+
const group = byName.get(item.localName);
|
|
448
|
+
if (group)
|
|
449
|
+
group.push(item);
|
|
450
|
+
else
|
|
451
|
+
byName.set(item.localName, [item]);
|
|
452
|
+
}
|
|
453
|
+
const out = [];
|
|
454
|
+
const rank = (k) => {
|
|
455
|
+
if (k === SymbolKind.Class)
|
|
456
|
+
return 5;
|
|
457
|
+
if (k === SymbolKind.Interface)
|
|
458
|
+
return 4;
|
|
459
|
+
if (k === SymbolKind.TypeAlias)
|
|
460
|
+
return 3;
|
|
461
|
+
if (k === SymbolKind.Function)
|
|
462
|
+
return 2;
|
|
463
|
+
return 1;
|
|
464
|
+
};
|
|
465
|
+
for (const group of byName.values()) {
|
|
466
|
+
if (group.length === 1) {
|
|
467
|
+
out.push(group[0]);
|
|
468
|
+
continue;
|
|
469
|
+
}
|
|
470
|
+
if (group.every((item) => item.kind === SymbolKind.Function)) {
|
|
471
|
+
out.push(...group);
|
|
472
|
+
continue;
|
|
473
|
+
}
|
|
474
|
+
const sorted = [...group].sort((a, b) => rank(b.kind) - rank(a.kind));
|
|
475
|
+
out.push(sorted[0]);
|
|
476
|
+
}
|
|
477
|
+
return out;
|
|
478
|
+
};
|
|
479
|
+
const mergedLocals = mergeTypeScriptNamespaceDeclarations(locals);
|
|
480
|
+
const exports = [];
|
|
481
|
+
const pythonAllExports = new Set();
|
|
482
|
+
let hasPythonAll = false;
|
|
483
|
+
const appendExportsFromMatches = (matches, treeForEnrichment) => {
|
|
484
|
+
const nodeForCapture = (capture) => {
|
|
485
|
+
if (!capture || !treeForEnrichment)
|
|
486
|
+
return undefined;
|
|
487
|
+
const range = rangeFromNativeCapture(capture);
|
|
488
|
+
return treeForEnrichment.rootNode.descendantForIndex(range.start.index ?? 0, range.end.index ?? 0) ?? undefined;
|
|
489
|
+
};
|
|
490
|
+
const defaultDeclarationNameNode = (node) => {
|
|
491
|
+
if (!node)
|
|
492
|
+
return undefined;
|
|
493
|
+
return (node.childForFieldName("name") ?? node.childForFieldName("declaration")?.childForFieldName("name") ?? undefined);
|
|
494
|
+
};
|
|
495
|
+
const hasDefaultExport = () => exports.some((entry) => entry.type === "local" && entry.exportedAs === "default");
|
|
496
|
+
for (const match of matches) {
|
|
497
|
+
const map = capturesByName(match);
|
|
498
|
+
const stmtText = map["stmt"]?.text ?? "";
|
|
499
|
+
const isTypeOnly = support.isTypeOnly(stmtText);
|
|
500
|
+
if (support.id === "python") {
|
|
501
|
+
const leftText = map["left"]?.text ?? "";
|
|
502
|
+
const methodText = map["method"]?.text ?? "";
|
|
503
|
+
const isAllAssignment = leftText === "__all__";
|
|
504
|
+
const isAllMethod = leftText === "__all__" && (methodText === "extend" || methodText === "append");
|
|
505
|
+
if (isAllAssignment || isAllMethod) {
|
|
506
|
+
hasPythonAll = true;
|
|
507
|
+
const items = capturesNamed(match, "all_item");
|
|
508
|
+
for (const item of items) {
|
|
509
|
+
const name = unquote(item.text);
|
|
510
|
+
pythonAllExports.add(name);
|
|
511
|
+
const local = mergedLocals.find((def) => def.localName === name);
|
|
512
|
+
if (local &&
|
|
513
|
+
!exports.some((entry) => entry.type !== "exportStar" && "exportedAs" in entry && entry.exportedAs === name)) {
|
|
514
|
+
exports.push({
|
|
515
|
+
type: "local",
|
|
516
|
+
exportedAs: name,
|
|
517
|
+
target: local,
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
if (isAllAssignment && map["stmt"]) {
|
|
522
|
+
const assignmentText = map["stmt"].text;
|
|
523
|
+
const hasTuple = /=\s*\(/.test(assignmentText);
|
|
524
|
+
if (!items.length || hasTuple) {
|
|
525
|
+
const strRe = /["']([^"']+)["']/g;
|
|
526
|
+
for (let submatch; (submatch = strRe.exec(assignmentText));) {
|
|
527
|
+
const name = submatch[1];
|
|
528
|
+
pythonAllExports.add(name);
|
|
529
|
+
const local = mergedLocals.find((def) => def.localName === name);
|
|
530
|
+
if (local &&
|
|
531
|
+
!exports.some((entry) => entry.type !== "exportStar" && "exportedAs" in entry && entry.exportedAs === name)) {
|
|
532
|
+
exports.push({
|
|
533
|
+
type: "local",
|
|
534
|
+
exportedAs: name,
|
|
535
|
+
target: local,
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
continue;
|
|
542
|
+
}
|
|
543
|
+
if (map["name"]) {
|
|
544
|
+
const nameText = map["name"].text;
|
|
545
|
+
const local = locals.find((def) => def.localName === nameText);
|
|
546
|
+
if (local && !nameText.startsWith("_")) {
|
|
547
|
+
exports.push({
|
|
548
|
+
type: "local",
|
|
549
|
+
exportedAs: nameText,
|
|
550
|
+
target: local,
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
continue;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
if (map["from"]) {
|
|
557
|
+
const from = unquote(map["from"].text);
|
|
558
|
+
if (map["src"]) {
|
|
559
|
+
const srcName = map["src"].text;
|
|
560
|
+
const alias = map["alias"]?.text ?? srcName;
|
|
561
|
+
exports.push({
|
|
562
|
+
type: "reexport",
|
|
563
|
+
exportedAs: alias,
|
|
564
|
+
fromModule: from,
|
|
565
|
+
moduleSpecifier: from,
|
|
566
|
+
sourceSpecifier: srcName,
|
|
567
|
+
typeOnly: isTypeOnly,
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
else if (/^\s*export\s*\*/.test(stmtText)) {
|
|
571
|
+
exports.push({
|
|
572
|
+
type: "exportStar",
|
|
573
|
+
fromModule: from,
|
|
574
|
+
moduleSpecifier: from,
|
|
575
|
+
sourceSpecifier: from,
|
|
576
|
+
typeOnly: isTypeOnly,
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
continue;
|
|
580
|
+
}
|
|
581
|
+
if (map["cjs_spread"]) {
|
|
582
|
+
const spreadName = map["cjs_spread"].text;
|
|
583
|
+
const imported = imports.find((binding) => (binding.kind === "default" && binding.local === spreadName) ||
|
|
584
|
+
(binding.kind === "namespace" && binding.localNS === spreadName));
|
|
585
|
+
if (imported) {
|
|
586
|
+
const fromModule = typeof imported.resolved === "string" ? imported.resolved : imported.from;
|
|
587
|
+
if (!exports.some((entry) => entry.type === "exportStar" && entry.fromModule === fromModule)) {
|
|
588
|
+
exports.push({
|
|
589
|
+
type: "exportStar",
|
|
590
|
+
fromModule,
|
|
591
|
+
moduleSpecifier: imported.from,
|
|
592
|
+
sourceSpecifier: imported.from,
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
continue;
|
|
596
|
+
}
|
|
597
|
+
const findLocalObject = (node) => {
|
|
598
|
+
if (node.type === "variable_declarator") {
|
|
599
|
+
const name = node.childForFieldName("name");
|
|
600
|
+
const value = node.childForFieldName("value");
|
|
601
|
+
if (sliceText(name, source) === spreadName && value?.type === "object")
|
|
602
|
+
return value;
|
|
603
|
+
}
|
|
604
|
+
for (const child of node.namedChildren) {
|
|
605
|
+
const value = findLocalObject(child);
|
|
606
|
+
if (value)
|
|
607
|
+
return value;
|
|
608
|
+
}
|
|
609
|
+
return undefined;
|
|
610
|
+
};
|
|
611
|
+
const localObject = treeForEnrichment ? findLocalObject(treeForEnrichment.rootNode) : undefined;
|
|
612
|
+
if (localObject) {
|
|
613
|
+
const addObjectMember = (exportedAs, value, member) => {
|
|
614
|
+
let local;
|
|
615
|
+
if (value.type === "identifier" || value.type === "shorthand_property_identifier") {
|
|
616
|
+
local = locals.find((definition) => definition.localName === sliceText(value, source));
|
|
617
|
+
}
|
|
618
|
+
else if (value.type === "function" || value.type === "arrow_function") {
|
|
619
|
+
local = buildSymbolDef(exportedAs, SymbolKind.Function, toRange(value), member);
|
|
620
|
+
locals.push(local);
|
|
621
|
+
}
|
|
622
|
+
if (local && !exports.some((entry) => entry.type === "local" && entry.exportedAs === exportedAs)) {
|
|
623
|
+
exports.push({ type: "local", exportedAs, target: local });
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
for (const member of localObject.namedChildren) {
|
|
627
|
+
if (member.type === "shorthand_property_identifier") {
|
|
628
|
+
addObjectMember(member.text, member, member);
|
|
629
|
+
continue;
|
|
630
|
+
}
|
|
631
|
+
if (member.type === "pair") {
|
|
632
|
+
const key = member.childForFieldName("key");
|
|
633
|
+
const value = member.childForFieldName("value");
|
|
634
|
+
if (key &&
|
|
635
|
+
value &&
|
|
636
|
+
(key.type === "identifier" || key.type === "property_identifier" || key.type === "string")) {
|
|
637
|
+
addObjectMember(key.type === "string" ? unquote(key.text) : key.text, value, member);
|
|
638
|
+
}
|
|
639
|
+
continue;
|
|
640
|
+
}
|
|
641
|
+
if (member.type === "method_definition") {
|
|
642
|
+
const name = member.childForFieldName("name");
|
|
643
|
+
if (name) {
|
|
644
|
+
const local = locals.find((definition) => definition.localName === name.text && definition.range.start.index === name.startIndex);
|
|
645
|
+
if (local && !exports.some((entry) => entry.type === "local" && entry.exportedAs === name.text)) {
|
|
646
|
+
exports.push({ type: "local", exportedAs: name.text, target: local });
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
continue;
|
|
652
|
+
}
|
|
653
|
+
// The source exists syntactically but cannot be resolved without executing
|
|
654
|
+
// user code. Keep an explicit API marker instead of silently losing it.
|
|
655
|
+
const unresolvedMarker = `<unresolved cjs spread: ${spreadName}>`;
|
|
656
|
+
exports.push({
|
|
657
|
+
type: "namespaceReexport",
|
|
658
|
+
exportedAs: unresolvedMarker,
|
|
659
|
+
fromModule: unresolvedMarker,
|
|
660
|
+
});
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
if (map["cjs_shorthand"]) {
|
|
664
|
+
const nameText = map["cjs_shorthand"].text;
|
|
665
|
+
const local = locals.find((def) => def.localName === nameText);
|
|
666
|
+
if (local) {
|
|
667
|
+
exports.push({
|
|
668
|
+
type: "local",
|
|
669
|
+
exportedAs: nameText,
|
|
670
|
+
target: local,
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
continue;
|
|
674
|
+
}
|
|
675
|
+
if (map["cjs_export_name"] && map["cjs_local"]) {
|
|
676
|
+
const exportedAs = map["cjs_export_name"].text;
|
|
677
|
+
const localName = map["cjs_local"].text;
|
|
678
|
+
const local = locals.find((def) => def.localName === localName);
|
|
679
|
+
if (local)
|
|
680
|
+
exports.push({ type: "local", exportedAs, target: local });
|
|
681
|
+
continue;
|
|
682
|
+
}
|
|
683
|
+
if (map["cjs_export_name"] && map["cjs_fn"]) {
|
|
684
|
+
const exportedAs = map["cjs_export_name"].text;
|
|
685
|
+
const fnNode = nodeForCapture(map["cjs_fn"]);
|
|
686
|
+
const sym = buildSymbolDef(exportedAs, SymbolKind.Function, rangeFromNativeCapture(map["cjs_fn"]), fnNode);
|
|
687
|
+
locals.push(sym);
|
|
688
|
+
exports.push({ type: "local", exportedAs, target: sym });
|
|
689
|
+
continue;
|
|
690
|
+
}
|
|
691
|
+
if (map["default"]) {
|
|
692
|
+
const nameText = map["default"].text;
|
|
693
|
+
const local = locals.find((def) => def.localName === nameText);
|
|
694
|
+
if (local) {
|
|
695
|
+
exports.push({
|
|
696
|
+
type: "local",
|
|
697
|
+
exportedAs: "default",
|
|
698
|
+
target: { ...local, kind: SymbolKind.Default },
|
|
699
|
+
});
|
|
700
|
+
}
|
|
701
|
+
continue;
|
|
702
|
+
}
|
|
703
|
+
if (map["anon_default"]) {
|
|
704
|
+
if (!/^\s*export\s+default\b/.test(stmtText))
|
|
705
|
+
continue;
|
|
706
|
+
if (hasDefaultExport())
|
|
707
|
+
continue;
|
|
708
|
+
const defaultNode = nodeForCapture(map["anon_default"]);
|
|
709
|
+
const declaredName = defaultDeclarationNameNode(defaultNode);
|
|
710
|
+
const declaredNameText = declaredName ? sliceText(declaredName, source) : null;
|
|
711
|
+
let declaredLocal = declaredNameText ? locals.find((def) => def.localName === declaredNameText) : undefined;
|
|
712
|
+
if (declaredName && declaredNameText && !declaredLocal && defaultNode) {
|
|
713
|
+
declaredLocal = buildSymbolDef(declaredNameText, symbolKindForDeclarationNode(defaultNode), toRange(declaredName), declaredName);
|
|
714
|
+
locals.push(declaredLocal);
|
|
715
|
+
}
|
|
716
|
+
if (declaredLocal) {
|
|
717
|
+
exports.push({
|
|
718
|
+
type: "local",
|
|
719
|
+
exportedAs: "default",
|
|
720
|
+
target: { ...declaredLocal, kind: SymbolKind.Default },
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
else {
|
|
724
|
+
const sym = buildSymbolDef("__default_export__", SymbolKind.Default, rangeFromNativeCapture(map["anon_default"]), defaultNode);
|
|
725
|
+
locals.push(sym);
|
|
726
|
+
exports.push({ type: "local", exportedAs: "default", target: sym });
|
|
727
|
+
}
|
|
728
|
+
continue;
|
|
729
|
+
}
|
|
730
|
+
const tsExportAssignMatch = support.id === "ts" || support.id === "tsx"
|
|
731
|
+
? stmtText.match(/^\s*export\s*=\s*([A-Za-z_$][\w$]*)\s*;?\s*$/)
|
|
732
|
+
: null;
|
|
733
|
+
if (tsExportAssignMatch) {
|
|
734
|
+
const ident = tsExportAssignMatch[1];
|
|
735
|
+
const local = locals.find((def) => def.localName === ident);
|
|
736
|
+
if (local) {
|
|
737
|
+
exports.push({
|
|
738
|
+
type: "local",
|
|
739
|
+
exportedAs: "default",
|
|
740
|
+
target: { ...local, kind: SymbolKind.Default },
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
continue;
|
|
744
|
+
}
|
|
745
|
+
if (map["ts_export_assign"]) {
|
|
746
|
+
const ident = map["ts_export_assign"].text;
|
|
747
|
+
const local = locals.find((def) => def.localName === ident);
|
|
748
|
+
if (local) {
|
|
749
|
+
exports.push({
|
|
750
|
+
type: "local",
|
|
751
|
+
exportedAs: "default",
|
|
752
|
+
target: { ...local, kind: SymbolKind.Default },
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
continue;
|
|
756
|
+
}
|
|
757
|
+
if (map["name"]) {
|
|
758
|
+
const nameText = map["name"].text;
|
|
759
|
+
const local = locals.find((def) => def.localName === nameText);
|
|
760
|
+
if (local) {
|
|
761
|
+
const isDefaultExport = /^\s*export\s+default\b/.test(stmtText);
|
|
762
|
+
if (!isDefaultExport) {
|
|
763
|
+
exports.push({
|
|
764
|
+
type: "local",
|
|
765
|
+
exportedAs: nameText,
|
|
766
|
+
target: local,
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
if (isDefaultExport && !hasDefaultExport()) {
|
|
770
|
+
exports.push({
|
|
771
|
+
type: "local",
|
|
772
|
+
exportedAs: "default",
|
|
773
|
+
target: { ...local, kind: SymbolKind.Default },
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
continue;
|
|
778
|
+
}
|
|
779
|
+
if (map["src"]) {
|
|
780
|
+
const srcName = map["src"].text;
|
|
781
|
+
const alias = map["alias"]?.text ?? srcName;
|
|
782
|
+
const local = locals.find((def) => def.localName === srcName);
|
|
783
|
+
if (local) {
|
|
784
|
+
exports.push({
|
|
785
|
+
type: "local",
|
|
786
|
+
exportedAs: alias,
|
|
787
|
+
target: local,
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
continue;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
if (support.queries.exports.trim() && nativeQueries) {
|
|
795
|
+
try {
|
|
796
|
+
appendExportsFromMatches(nativeQueries.exports, ensureTree() ?? undefined);
|
|
797
|
+
if (!exports.some((entry) => entry.type === "local" && entry.exportedAs === "default")) {
|
|
798
|
+
const mDefFn = source.match(/\bexport\s+default\s+(?:async\s+)?function\b\s*\*?\s*([A-Za-z_$][\w$]*)/);
|
|
799
|
+
const mDefCls = source.match(/\bexport\s+default\s+(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/);
|
|
800
|
+
const name = mDefFn?.[1] ?? mDefCls?.[1];
|
|
801
|
+
if (name) {
|
|
802
|
+
const local = locals.find((def) => def.localName === name);
|
|
803
|
+
if (local) {
|
|
804
|
+
exports.push({
|
|
805
|
+
type: "local",
|
|
806
|
+
exportedAs: "default",
|
|
807
|
+
target: { ...local, kind: SymbolKind.Default },
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
catch (error) {
|
|
814
|
+
if (isNativeRequiredUnavailableError(error))
|
|
815
|
+
throw error;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
// Regex fallback for JS/TS exports when queries miss some patterns (e.g., re-exports)
|
|
819
|
+
if (support.id === "ts" || support.id === "tsx" || support.id === "js") {
|
|
820
|
+
appendJsLikeRegexFallbackExports(file, source, locals, exports);
|
|
821
|
+
}
|
|
822
|
+
if (support.id === "python" && hasPythonAll) {
|
|
823
|
+
const seen = new Set();
|
|
824
|
+
const filtered = exports.filter((e) => {
|
|
825
|
+
if (e.type === "local") {
|
|
826
|
+
if (!pythonAllExports.has(e.exportedAs))
|
|
827
|
+
return false;
|
|
828
|
+
if (seen.has(e.exportedAs))
|
|
829
|
+
return false;
|
|
830
|
+
seen.add(e.exportedAs);
|
|
831
|
+
return true;
|
|
832
|
+
}
|
|
833
|
+
if (e.type === "reexport")
|
|
834
|
+
return pythonAllExports.has(e.exportedAs);
|
|
835
|
+
return true;
|
|
836
|
+
});
|
|
837
|
+
exports.length = 0;
|
|
838
|
+
exports.push(...filtered);
|
|
839
|
+
}
|
|
840
|
+
if ((support.id === "ts" || support.id === "tsx" || support.id === "js") &&
|
|
841
|
+
!exports.some((e) => e.type === "local" && e.exportedAs === "default")) {
|
|
842
|
+
const maskedSource = maskJsLikeCommentsAndStrings(source);
|
|
843
|
+
const defFn = maskedSource.match(/\bexport\s+default\s+(?:async\s+)?function\b\s*\*?\s*([A-Za-z_$][\w$]*)/);
|
|
844
|
+
const defCls = maskedSource.match(/\bexport\s+default\s+(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/);
|
|
845
|
+
const defIdent = maskedSource.match(/\bexport\s+default\s+([A-Za-z_$][\w$]*)\b/);
|
|
846
|
+
const ignoredDefaultIdentifiers = new Set(["abstract", "async", "class", "function"]);
|
|
847
|
+
const identName = defIdent && defIdent[1] && !ignoredDefaultIdentifiers.has(defIdent[1]) ? defIdent[1] : undefined;
|
|
848
|
+
const name = defFn?.[1] ?? defCls?.[1] ?? identName;
|
|
849
|
+
if (name) {
|
|
850
|
+
const local = locals.find((d) => d.localName === name);
|
|
851
|
+
if (local)
|
|
852
|
+
exports.push({
|
|
853
|
+
type: "local",
|
|
854
|
+
exportedAs: "default",
|
|
855
|
+
target: { ...local, kind: SymbolKind.Default },
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
else {
|
|
859
|
+
const anon = maskedSource.match(/\bexport\s+default\s+(?:async\s+)?(?:function\b\s*\*?|(?:abstract\s+)?class\b)/);
|
|
860
|
+
if (anon && anon.index !== undefined) {
|
|
861
|
+
const startIndex = anon.index;
|
|
862
|
+
const endIndex = startIndex + anon[0].length;
|
|
863
|
+
const treeNode = ensureTree()?.rootNode.descendantForIndex(startIndex, endIndex) ?? undefined;
|
|
864
|
+
const sym = buildSymbolDef("__default_export__", SymbolKind.Default, treeNode ? toRange(treeNode) : rangeFromOffsets(startIndex, endIndex));
|
|
865
|
+
locals.push(sym);
|
|
866
|
+
exports.push({ type: "local", exportedAs: "default", target: sym });
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
return { file, exports, imports, locals };
|
|
871
|
+
}
|
|
872
|
+
//# sourceMappingURL=locals-and-exports.js.map
|