@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,1002 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import {} from "../analysisSummary.js";
|
|
3
|
+
import { SymbolKind } from "../indexer/types.js";
|
|
4
|
+
import {} from "../graphs/symbol-graph.js";
|
|
5
|
+
import { buildSymbolLookup } from "./symbolLookup.js";
|
|
6
|
+
import { AGENT_SEARCH_EVIDENCE_PER_RESULT_LIMIT, AGENT_SEARCH_FOLLOWUPS_PER_RESULT_LIMIT, AGENT_SEARCH_FORMAT_REASON_LIMIT, AGENT_SEARCH_NEIGHBORS_PER_RESULT_LIMIT, AGENT_SEARCH_RANK_REASONS_PER_RESULT_LIMIT, AGENT_SEARCH_RESULT_LIMIT, } from "../presentation/bounds.js";
|
|
7
|
+
import { normalizePath } from "../util/paths.js";
|
|
8
|
+
import { errorMessage } from "../util/errors.js";
|
|
9
|
+
import { boundAgentList, defaultAgentLimit } from "./bounds.js";
|
|
10
|
+
import { formatAgentChunkHandle, formatAgentFileHandle, formatAgentGraphHandle, formatAgentSqlHandle, formatAgentSymbolHandle, parseAgentChunkHandle, parseAgentFileHandle, parseAgentGraphHandle, parseAgentSqlHandle, parseAgentSymbolHandle, } from "./handles.js";
|
|
11
|
+
import { collectDefinitionFollowUps, collectFileFollowUps as collectCommonFileFollowUps, isAgentSqlObjectNode, normalizeAgentFilePath, resolveAgentSnapshotFile, } from "./normalize.js";
|
|
12
|
+
import { createAgentSession } from "./session.js";
|
|
13
|
+
import { formatAgentFollowUpAsCli, toolFollowUp } from "./followUps.js";
|
|
14
|
+
import { buildQueryTextChunks, detectQueryIndexSurface, normalizeQuerySearchText, QUERY_INDEX_NORMALIZER_VERSION, } from "./query-index/content.js";
|
|
15
|
+
import { findQueryIndexChunkCandidates, QUERY_INDEX_CANDIDATE_VERSION } from "./query-index/candidates.js";
|
|
16
|
+
import { registerSessionInvalidationHook } from "./sessionLifecycle.js";
|
|
17
|
+
const DEFAULT_LIMIT = 20;
|
|
18
|
+
const MAX_TEXT_BYTES = 300_000;
|
|
19
|
+
const MAX_GRAPH_DEPTH = 5;
|
|
20
|
+
const DOCS_EXACT_PHRASE_BOOST = 18;
|
|
21
|
+
const DOCS_PROXIMITY_BOOST = 6;
|
|
22
|
+
const NATURAL_LANGUAGE_SYNTAX_TERMS = new Set([
|
|
23
|
+
"a",
|
|
24
|
+
"an",
|
|
25
|
+
"are",
|
|
26
|
+
"can",
|
|
27
|
+
"did",
|
|
28
|
+
"do",
|
|
29
|
+
"does",
|
|
30
|
+
"how",
|
|
31
|
+
"is",
|
|
32
|
+
"the",
|
|
33
|
+
"what",
|
|
34
|
+
"when",
|
|
35
|
+
"where",
|
|
36
|
+
"which",
|
|
37
|
+
"who",
|
|
38
|
+
"why",
|
|
39
|
+
"or",
|
|
40
|
+
]);
|
|
41
|
+
const SEARCH_CACHES = new WeakMap();
|
|
42
|
+
const SEARCH_RESULT_CACHES = new WeakMap();
|
|
43
|
+
const SEARCH_RANKING_VERSION = 2;
|
|
44
|
+
export async function searchCodegraph(request) {
|
|
45
|
+
const session = createAgentSession({
|
|
46
|
+
root: request.root,
|
|
47
|
+
...(request.buildOptions ? { buildOptions: request.buildOptions } : {}),
|
|
48
|
+
});
|
|
49
|
+
try {
|
|
50
|
+
return await searchCodegraphWithSession(session, request);
|
|
51
|
+
}
|
|
52
|
+
finally {
|
|
53
|
+
session.invalidate();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export async function searchCodegraphWithSession(session, request) {
|
|
57
|
+
if (canUsePathFastPath(request) && session.listFiles && session.root) {
|
|
58
|
+
const files = await session.listFiles();
|
|
59
|
+
return searchPathOnly(session.root, files, request);
|
|
60
|
+
}
|
|
61
|
+
const snapshot = await session.loadProject({
|
|
62
|
+
// Hybrid/symbol/graph need symbol nodes, but not the detailed sidecar.
|
|
63
|
+
symbolGraph: searchNeedsSymbolGraph(request) ? "basic" : "skip",
|
|
64
|
+
});
|
|
65
|
+
const resultCache = getSessionSearchResultCache(session);
|
|
66
|
+
const cacheKey = searchResultCacheKey(snapshot, request);
|
|
67
|
+
const existing = resultCache.get(cacheKey);
|
|
68
|
+
if (existing) {
|
|
69
|
+
const response = await existing;
|
|
70
|
+
if (response.query === request.query)
|
|
71
|
+
return response;
|
|
72
|
+
return { ...response, query: request.query };
|
|
73
|
+
}
|
|
74
|
+
const mode = request.mode ?? "hybrid";
|
|
75
|
+
let queryIndex;
|
|
76
|
+
if (mode === "hybrid" || mode === "text") {
|
|
77
|
+
const { ensureSessionQueryIndex } = await import("./query-index/sessionStore.js");
|
|
78
|
+
queryIndex = await ensureSessionQueryIndex(session, snapshot);
|
|
79
|
+
}
|
|
80
|
+
const search = searchSnapshot(snapshot, request, queryIndex);
|
|
81
|
+
resultCache.set(cacheKey, search);
|
|
82
|
+
search.catch(() => {
|
|
83
|
+
if (resultCache.get(cacheKey) === search)
|
|
84
|
+
resultCache.delete(cacheKey);
|
|
85
|
+
});
|
|
86
|
+
return await search;
|
|
87
|
+
}
|
|
88
|
+
export function formatAgentSearchResponse(response) {
|
|
89
|
+
if (!response.results.length) {
|
|
90
|
+
return `No matches for "${response.query}"\nAnalysis: ${response.analysis.label}`;
|
|
91
|
+
}
|
|
92
|
+
const lines = [`Analysis: ${response.analysis.label}`];
|
|
93
|
+
for (const [index, result] of response.results.entries()) {
|
|
94
|
+
const location = result.range
|
|
95
|
+
? `${result.file}:${result.range.start.line}:${result.range.start.column}`
|
|
96
|
+
: result.file;
|
|
97
|
+
const reasons = result.rankReasons.slice(0, AGENT_SEARCH_FORMAT_REASON_LIMIT).join("; ");
|
|
98
|
+
lines.push(`${index + 1}. ${result.label} [${result.kind}] ${location} score=${result.score} (${result.provenance.surface}, ${result.provenance.capability})`);
|
|
99
|
+
lines.push(` ${reasons}`);
|
|
100
|
+
for (const followUp of result.followUps) {
|
|
101
|
+
lines.push(` follow-up: ${formatAgentFollowUpAsCli(followUp)}`);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return lines.join("\n");
|
|
105
|
+
}
|
|
106
|
+
async function searchSnapshot(snapshot, request, queryIndex) {
|
|
107
|
+
const mode = request.mode ?? "hybrid";
|
|
108
|
+
const query = buildQueryTerms(request.query, snapshot);
|
|
109
|
+
const resultMap = new Map();
|
|
110
|
+
const limit = defaultAgentLimit(request.limit, DEFAULT_LIMIT, AGENT_SEARCH_RESULT_LIMIT);
|
|
111
|
+
let fileNeighborIndex;
|
|
112
|
+
const getFileNeighborIndex = () => {
|
|
113
|
+
fileNeighborIndex ??= buildFileNeighborIndex(snapshot);
|
|
114
|
+
return fileNeighborIndex;
|
|
115
|
+
};
|
|
116
|
+
if (query.rankTokens.length) {
|
|
117
|
+
if (mode === "sql") {
|
|
118
|
+
addSqlResults(snapshot, resultMap, getFileNeighborIndex(), query);
|
|
119
|
+
}
|
|
120
|
+
else if (mode === "hybrid" || mode === "symbol" || mode === "graph") {
|
|
121
|
+
const symbolLookup = buildSymbolLookup(snapshot);
|
|
122
|
+
addSymbolResults(snapshot, resultMap, symbolLookup, buildSymbolNeighborIndex(snapshot), query, mode);
|
|
123
|
+
}
|
|
124
|
+
if (mode === "hybrid" || mode === "path" || mode === "graph") {
|
|
125
|
+
addPathResults(snapshot, resultMap, getFileNeighborIndex(), query);
|
|
126
|
+
}
|
|
127
|
+
if (mode === "hybrid" || mode === "text") {
|
|
128
|
+
await addTextResults(snapshot, resultMap, query, request.includeSnippets ?? true, mode, queryIndex);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (request.from !== undefined && (mode === "hybrid" || mode === "graph")) {
|
|
132
|
+
applyGraphNeighborhood(snapshot, resultMap, getFileNeighborIndex(), query, request.from, normalizeDepth(request.depth));
|
|
133
|
+
}
|
|
134
|
+
const selectedResults = selectTopResults(resultMap, limit);
|
|
135
|
+
const results = selectedResults.items.map(finalizeResult);
|
|
136
|
+
return {
|
|
137
|
+
schemaVersion: 1,
|
|
138
|
+
query: request.query,
|
|
139
|
+
mode,
|
|
140
|
+
root: snapshot.root,
|
|
141
|
+
analysis: snapshot.analysis,
|
|
142
|
+
limits: {
|
|
143
|
+
results: limit,
|
|
144
|
+
rankReasonsPerResult: AGENT_SEARCH_RANK_REASONS_PER_RESULT_LIMIT,
|
|
145
|
+
evidencePerResult: AGENT_SEARCH_EVIDENCE_PER_RESULT_LIMIT,
|
|
146
|
+
neighborsPerResult: AGENT_SEARCH_NEIGHBORS_PER_RESULT_LIMIT,
|
|
147
|
+
followUpsPerResult: AGENT_SEARCH_FOLLOWUPS_PER_RESULT_LIMIT,
|
|
148
|
+
},
|
|
149
|
+
resultCount: results.length,
|
|
150
|
+
totalCandidates: selectedResults.totalCandidates,
|
|
151
|
+
omittedCounts: {
|
|
152
|
+
results: selectedResults.omitted,
|
|
153
|
+
},
|
|
154
|
+
results,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function canUsePathFastPath(request) {
|
|
158
|
+
return (request.mode ?? "hybrid") === "path" && request.from === undefined;
|
|
159
|
+
}
|
|
160
|
+
function getSessionSearchResultCache(session) {
|
|
161
|
+
const existing = SEARCH_RESULT_CACHES.get(session);
|
|
162
|
+
if (existing)
|
|
163
|
+
return existing;
|
|
164
|
+
const created = new Map();
|
|
165
|
+
SEARCH_RESULT_CACHES.set(session, created);
|
|
166
|
+
registerSessionInvalidationHook(session, () => SEARCH_RESULT_CACHES.delete(session));
|
|
167
|
+
return created;
|
|
168
|
+
}
|
|
169
|
+
function searchResultCacheKey(snapshot, request) {
|
|
170
|
+
const { rankTokens, normalizedRankPhrase, identifierLike } = buildQueryTerms(request.query, snapshot);
|
|
171
|
+
return JSON.stringify({
|
|
172
|
+
projectSnapshotIdentity: snapshot.index.projectSnapshotIdentity ?? "",
|
|
173
|
+
query: { rankTokens, normalizedRankPhrase, identifierLike },
|
|
174
|
+
mode: request.mode ?? "hybrid",
|
|
175
|
+
limit: defaultAgentLimit(request.limit, DEFAULT_LIMIT, AGENT_SEARCH_RESULT_LIMIT),
|
|
176
|
+
depth: normalizeDepth(request.depth),
|
|
177
|
+
from: request.from ?? "",
|
|
178
|
+
includeSnippets: request.includeSnippets ?? true,
|
|
179
|
+
normalizerVersion: QUERY_INDEX_NORMALIZER_VERSION,
|
|
180
|
+
rankingVersion: SEARCH_RANKING_VERSION,
|
|
181
|
+
candidateVersion: QUERY_INDEX_CANDIDATE_VERSION,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
function searchPathOnly(root, files, request) {
|
|
185
|
+
const query = buildQueryTerms(request.query, { root, files });
|
|
186
|
+
const resultMap = new Map();
|
|
187
|
+
const limit = defaultAgentLimit(request.limit, DEFAULT_LIMIT, AGENT_SEARCH_RESULT_LIMIT);
|
|
188
|
+
if (query.tokens.length) {
|
|
189
|
+
for (const file of files) {
|
|
190
|
+
const relFile = normalizeAgentFilePath(root, file);
|
|
191
|
+
const pathMatch = matchTokenScore(relFile, query);
|
|
192
|
+
if (pathMatch.score <= 0)
|
|
193
|
+
continue;
|
|
194
|
+
const result = upsertResult(resultMap, {
|
|
195
|
+
handle: formatAgentFileHandle({ file: relFile }),
|
|
196
|
+
kind: "file",
|
|
197
|
+
label: relFile,
|
|
198
|
+
file: relFile,
|
|
199
|
+
provenance: createSearchProvenance(relFile, "text", "high", {
|
|
200
|
+
mode: "reduced",
|
|
201
|
+
backend: "unknown",
|
|
202
|
+
}),
|
|
203
|
+
});
|
|
204
|
+
result.score += pathMatch.score * 2;
|
|
205
|
+
addMatchedRankTerms(result, pathMatch);
|
|
206
|
+
addReason(result, `path token match: ${pathMatch.matched.join(", ")}`);
|
|
207
|
+
addEvidence(result, { source: "path", label: relFile, file: relFile });
|
|
208
|
+
addFileFollowUps(result, relFile);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
const selectedResults = selectTopResults(resultMap, limit);
|
|
212
|
+
const results = selectedResults.items.map(finalizeResult);
|
|
213
|
+
return {
|
|
214
|
+
schemaVersion: 1,
|
|
215
|
+
query: request.query,
|
|
216
|
+
mode: "path",
|
|
217
|
+
root,
|
|
218
|
+
analysis: {
|
|
219
|
+
mode: "reduced",
|
|
220
|
+
backend: "unknown",
|
|
221
|
+
parserDegradedFiles: 0,
|
|
222
|
+
fallbackImportExtractionFiles: 0,
|
|
223
|
+
nativeFilesUsed: 0,
|
|
224
|
+
nativeFilesFellBack: 0,
|
|
225
|
+
label: "path-only",
|
|
226
|
+
},
|
|
227
|
+
limits: {
|
|
228
|
+
results: limit,
|
|
229
|
+
rankReasonsPerResult: AGENT_SEARCH_RANK_REASONS_PER_RESULT_LIMIT,
|
|
230
|
+
evidencePerResult: AGENT_SEARCH_EVIDENCE_PER_RESULT_LIMIT,
|
|
231
|
+
neighborsPerResult: AGENT_SEARCH_NEIGHBORS_PER_RESULT_LIMIT,
|
|
232
|
+
followUpsPerResult: AGENT_SEARCH_FOLLOWUPS_PER_RESULT_LIMIT,
|
|
233
|
+
},
|
|
234
|
+
resultCount: results.length,
|
|
235
|
+
totalCandidates: selectedResults.totalCandidates,
|
|
236
|
+
omittedCounts: {
|
|
237
|
+
results: selectedResults.omitted,
|
|
238
|
+
},
|
|
239
|
+
results,
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
function normalizeDepth(depth) {
|
|
243
|
+
if (typeof depth !== "number" || !Number.isFinite(depth))
|
|
244
|
+
return 1;
|
|
245
|
+
return Math.min(MAX_GRAPH_DEPTH, Math.max(0, Math.floor(depth)));
|
|
246
|
+
}
|
|
247
|
+
function searchNeedsSymbolGraph(request) {
|
|
248
|
+
const mode = request.mode ?? "hybrid";
|
|
249
|
+
return mode !== "path" && mode !== "text" && mode !== "sql";
|
|
250
|
+
}
|
|
251
|
+
function buildQueryTerms(input, snapshot) {
|
|
252
|
+
const normalized = normalizeSearchText(input);
|
|
253
|
+
const tokenSequence = normalized.split(/\s+/).filter((token) => token.length);
|
|
254
|
+
const tokens = Array.from(new Set(tokenSequence));
|
|
255
|
+
const identifierLike = isIdentifierLikeQuery(input);
|
|
256
|
+
const pathLike = isExplicitPathQuery(input, snapshot);
|
|
257
|
+
const filterNaturalLanguageSyntax = !identifierLike && !pathLike;
|
|
258
|
+
const filteredRankTokenSequence = filterNaturalLanguageSyntax
|
|
259
|
+
? tokenSequence.filter((token) => !NATURAL_LANGUAGE_SYNTAX_TERMS.has(token))
|
|
260
|
+
: tokenSequence;
|
|
261
|
+
const rankTokenSequence = filteredRankTokenSequence.length ? filteredRankTokenSequence : tokenSequence;
|
|
262
|
+
return {
|
|
263
|
+
tokens,
|
|
264
|
+
rankTokens: Array.from(new Set(rankTokenSequence)),
|
|
265
|
+
normalizedRankPhrase: rankTokenSequence.join(" "),
|
|
266
|
+
identifierLike,
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
function isExplicitPathQuery(input, snapshot) {
|
|
270
|
+
const trimmed = input.trim();
|
|
271
|
+
const slashIndex = trimmed.search(/[\\/]/);
|
|
272
|
+
if (slashIndex < 0)
|
|
273
|
+
return false;
|
|
274
|
+
if (!/\s/.test(trimmed))
|
|
275
|
+
return true;
|
|
276
|
+
return resolveAgentSnapshotFile(snapshot, trimmed) !== null;
|
|
277
|
+
}
|
|
278
|
+
function normalizeSearchText(input) {
|
|
279
|
+
return normalizeQuerySearchText(input);
|
|
280
|
+
}
|
|
281
|
+
function isIdentifierLikeQuery(input) {
|
|
282
|
+
const trimmed = input.trim();
|
|
283
|
+
return /^[A-Za-z_$][A-Za-z0-9_$]*(?:[.#:][A-Za-z_$][A-Za-z0-9_$]*)*$/.test(trimmed);
|
|
284
|
+
}
|
|
285
|
+
function emptyTokenMatch() {
|
|
286
|
+
return { score: 0, matched: [], exactPhrase: false, proximity: false };
|
|
287
|
+
}
|
|
288
|
+
function matchTokenScore(text, query) {
|
|
289
|
+
const normalized = normalizeSearchText(text);
|
|
290
|
+
return matchTokenScoreFromNormalized(normalized, query);
|
|
291
|
+
}
|
|
292
|
+
function matchTokenScoreFromNormalized(normalized, query) {
|
|
293
|
+
if (!normalized)
|
|
294
|
+
return emptyTokenMatch();
|
|
295
|
+
const words = new Set(normalized.split(/\s+/).filter(Boolean));
|
|
296
|
+
const compact = normalized.replace(/\s+/g, "");
|
|
297
|
+
const matched = [];
|
|
298
|
+
let score = 0;
|
|
299
|
+
for (const token of query.rankTokens) {
|
|
300
|
+
if (words.has(token)) {
|
|
301
|
+
score += 10;
|
|
302
|
+
matched.push(token);
|
|
303
|
+
}
|
|
304
|
+
else if (compact.includes(token)) {
|
|
305
|
+
score += 7;
|
|
306
|
+
matched.push(token);
|
|
307
|
+
}
|
|
308
|
+
else if (normalized.includes(token)) {
|
|
309
|
+
score += 4;
|
|
310
|
+
matched.push(token);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
let exactPhrase = false;
|
|
314
|
+
let proximity = false;
|
|
315
|
+
if (matched.length === query.rankTokens.length && query.rankTokens.length > 1) {
|
|
316
|
+
score += 12;
|
|
317
|
+
if (normalized.includes(query.normalizedRankPhrase)) {
|
|
318
|
+
score += 30;
|
|
319
|
+
exactPhrase = true;
|
|
320
|
+
}
|
|
321
|
+
else if (tokensAppearInOrder(normalized, query.rankTokens)) {
|
|
322
|
+
score += 10;
|
|
323
|
+
proximity = true;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return { score, matched, exactPhrase, proximity };
|
|
327
|
+
}
|
|
328
|
+
function tokensAppearInOrder(normalizedText, tokens) {
|
|
329
|
+
let fromIndex = 0;
|
|
330
|
+
for (const token of tokens) {
|
|
331
|
+
const tokenIndex = normalizedText.indexOf(token, fromIndex);
|
|
332
|
+
if (tokenIndex < 0)
|
|
333
|
+
return false;
|
|
334
|
+
fromIndex = tokenIndex + token.length;
|
|
335
|
+
}
|
|
336
|
+
return true;
|
|
337
|
+
}
|
|
338
|
+
function addSymbolResults(snapshot, resultMap, lookup, neighborsBySymbolId, query, mode) {
|
|
339
|
+
for (const node of snapshot.symbolGraph.nodes.values()) {
|
|
340
|
+
const sqlObject = isAgentSqlObjectNode(node);
|
|
341
|
+
if (mode === "sql" && !sqlObject)
|
|
342
|
+
continue;
|
|
343
|
+
if (mode === "symbol" && sqlObject)
|
|
344
|
+
continue;
|
|
345
|
+
const nameMatch = matchTokenScore(node.name, query);
|
|
346
|
+
const fileMatch = matchTokenScore(normalizeAgentFilePath(snapshot.root, node.file), query);
|
|
347
|
+
const docMatch = node.docstring ? matchTokenScore(node.docstring, query) : emptyTokenMatch();
|
|
348
|
+
const score = nameMatch.score * 4 + fileMatch.score + docMatch.score;
|
|
349
|
+
if (score <= 0)
|
|
350
|
+
continue;
|
|
351
|
+
const def = lookup.defById.get(node.id);
|
|
352
|
+
if (!def)
|
|
353
|
+
continue;
|
|
354
|
+
const relFile = normalizeAgentFilePath(snapshot.root, node.file);
|
|
355
|
+
const handle = sqlObject
|
|
356
|
+
? formatAgentSqlHandle({ name: node.name, file: relFile, line: def.range.start.line })
|
|
357
|
+
: formatAgentSymbolHandle({
|
|
358
|
+
file: relFile,
|
|
359
|
+
name: node.name,
|
|
360
|
+
line: def.range.start.line,
|
|
361
|
+
column: def.range.start.column,
|
|
362
|
+
});
|
|
363
|
+
const result = upsertResult(resultMap, {
|
|
364
|
+
handle,
|
|
365
|
+
kind: sqlObject ? "sql_object" : "symbol",
|
|
366
|
+
label: node.name,
|
|
367
|
+
file: relFile,
|
|
368
|
+
range: def.range,
|
|
369
|
+
provenance: createSearchProvenance(relFile, "semantic", "high", snapshot.analysis),
|
|
370
|
+
});
|
|
371
|
+
result.score += score + (lookup.exportedIds.has(node.id) ? 5 : 0);
|
|
372
|
+
addMatchedRankTerms(result, nameMatch, fileMatch, docMatch);
|
|
373
|
+
if (nameMatch.matched.length) {
|
|
374
|
+
addReason(result, `${sqlObject ? "SQL object" : "symbol"} token match: ${nameMatch.matched.join(", ")}`);
|
|
375
|
+
addEvidence(result, {
|
|
376
|
+
source: sqlObject ? "sql" : "symbol",
|
|
377
|
+
label: node.name,
|
|
378
|
+
file: relFile,
|
|
379
|
+
line: def.range.start.line,
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
if (fileMatch.matched.length) {
|
|
383
|
+
addReason(result, `path token match: ${fileMatch.matched.join(", ")}`);
|
|
384
|
+
}
|
|
385
|
+
if (docMatch.matched.length) {
|
|
386
|
+
addReason(result, `docstring token match: ${docMatch.matched.join(", ")}`);
|
|
387
|
+
}
|
|
388
|
+
addPhraseReasons(result, nameMatch, "symbol name");
|
|
389
|
+
addPhraseReasons(result, docMatch, "docstring");
|
|
390
|
+
addSymbolNeighbors(snapshot, result, neighborsBySymbolId.get(node.id) ?? []);
|
|
391
|
+
addSymbolFollowUps(result, relFile, def);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
function addSqlResults(snapshot, resultMap, fileNeighborIndex, query) {
|
|
395
|
+
for (const moduleIndex of snapshot.index.byFile.values()) {
|
|
396
|
+
for (const local of moduleIndex.locals) {
|
|
397
|
+
if (!isSqlObjectSymbol(local))
|
|
398
|
+
continue;
|
|
399
|
+
const nameMatch = matchTokenScore(local.localName, query);
|
|
400
|
+
const relFile = normalizeAgentFilePath(snapshot.root, local.file);
|
|
401
|
+
const fileMatch = matchTokenScore(relFile, query);
|
|
402
|
+
const docMatch = local.docstring ? matchTokenScore(local.docstring, query) : emptyTokenMatch();
|
|
403
|
+
const score = nameMatch.score * 4 + fileMatch.score + docMatch.score;
|
|
404
|
+
if (score <= 0)
|
|
405
|
+
continue;
|
|
406
|
+
const result = upsertResult(resultMap, {
|
|
407
|
+
handle: formatAgentSqlHandle({ name: local.localName, file: relFile, line: local.range.start.line }),
|
|
408
|
+
kind: "sql_object",
|
|
409
|
+
label: local.localName,
|
|
410
|
+
file: relFile,
|
|
411
|
+
range: local.range,
|
|
412
|
+
provenance: createSearchProvenance(relFile, "semantic", "high", snapshot.analysis),
|
|
413
|
+
});
|
|
414
|
+
result.score += score;
|
|
415
|
+
addMatchedRankTerms(result, nameMatch, fileMatch, docMatch);
|
|
416
|
+
if (nameMatch.matched.length) {
|
|
417
|
+
addReason(result, `SQL object token match: ${nameMatch.matched.join(", ")}`);
|
|
418
|
+
addEvidence(result, {
|
|
419
|
+
source: "sql",
|
|
420
|
+
label: local.localName,
|
|
421
|
+
file: relFile,
|
|
422
|
+
line: local.range.start.line,
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
if (fileMatch.matched.length) {
|
|
426
|
+
addReason(result, `path token match: ${fileMatch.matched.join(", ")}`);
|
|
427
|
+
}
|
|
428
|
+
if (docMatch.matched.length) {
|
|
429
|
+
addReason(result, `docstring token match: ${docMatch.matched.join(", ")}`);
|
|
430
|
+
}
|
|
431
|
+
addPhraseReasons(result, nameMatch, "SQL object name");
|
|
432
|
+
addPhraseReasons(result, docMatch, "docstring");
|
|
433
|
+
addFileNeighbors(snapshot, result, fileNeighborIndex.get(normalizePath(local.file)) ?? []);
|
|
434
|
+
addSymbolFollowUps(result, relFile, local);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
function isSqlObjectSymbol(symbol) {
|
|
439
|
+
return (symbol.kind === SymbolKind.Table ||
|
|
440
|
+
symbol.kind === SymbolKind.View ||
|
|
441
|
+
symbol.kind === SymbolKind.Index ||
|
|
442
|
+
symbol.kind === SymbolKind.Routine);
|
|
443
|
+
}
|
|
444
|
+
function addPathResults(snapshot, resultMap, fileNeighborIndex, query) {
|
|
445
|
+
for (const file of snapshot.files) {
|
|
446
|
+
const relFile = normalizeAgentFilePath(snapshot.root, file);
|
|
447
|
+
const pathMatch = matchTokenScore(relFile, query);
|
|
448
|
+
if (pathMatch.score <= 0)
|
|
449
|
+
continue;
|
|
450
|
+
const result = upsertResult(resultMap, {
|
|
451
|
+
handle: formatAgentFileHandle({ file: relFile }),
|
|
452
|
+
kind: "file",
|
|
453
|
+
label: relFile,
|
|
454
|
+
file: relFile,
|
|
455
|
+
provenance: createSearchProvenance(relFile, "graph", "high", snapshot.analysis),
|
|
456
|
+
});
|
|
457
|
+
result.score += pathMatch.score * 2;
|
|
458
|
+
addMatchedRankTerms(result, pathMatch);
|
|
459
|
+
addReason(result, `path token match: ${pathMatch.matched.join(", ")}`);
|
|
460
|
+
addEvidence(result, { source: "path", label: relFile, file: relFile });
|
|
461
|
+
addFileNeighbors(snapshot, result, fileNeighborIndex.get(normalizePath(file)) ?? []);
|
|
462
|
+
addFileFollowUps(result, relFile);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
function mergeSearchResults(targetMap, sourceMap) {
|
|
466
|
+
for (const source of sourceMap.values()) {
|
|
467
|
+
const target = upsertResult(targetMap, source);
|
|
468
|
+
target.score += source.score;
|
|
469
|
+
for (const term of source.matchedRankTerms)
|
|
470
|
+
target.matchedRankTerms.add(term);
|
|
471
|
+
for (const reason of source.rankReasons)
|
|
472
|
+
target.rankReasons.add(reason);
|
|
473
|
+
for (const evidence of source.evidence)
|
|
474
|
+
addEvidence(target, evidence);
|
|
475
|
+
for (const [key, neighbor] of source.neighbors)
|
|
476
|
+
target.neighbors.set(key, neighbor);
|
|
477
|
+
for (const [key, followUp] of source.followUps)
|
|
478
|
+
target.followUps.set(key, followUp);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
async function addTextResults(snapshot, resultMap, query, includeSnippets, mode, queryIndex) {
|
|
482
|
+
const projectSnapshotIdentity = snapshot.index.projectSnapshotIdentity;
|
|
483
|
+
const store = queryIndex?.store;
|
|
484
|
+
const diagnostics = queryIndex?.diagnostics;
|
|
485
|
+
if (store && diagnostics && projectSnapshotIdentity) {
|
|
486
|
+
const candidateResultMap = new Map();
|
|
487
|
+
try {
|
|
488
|
+
store.withReadSnapshot(projectSnapshotIdentity, () => {
|
|
489
|
+
const candidateStarted = performance.now();
|
|
490
|
+
const candidateChunks = findQueryIndexChunkCandidates(store, query.rankTokens);
|
|
491
|
+
diagnostics.candidateMs += performance.now() - candidateStarted;
|
|
492
|
+
diagnostics.fileCandidates += new Set(candidateChunks.map((chunk) => chunk.path)).size;
|
|
493
|
+
diagnostics.chunkCandidates += candidateChunks.length;
|
|
494
|
+
const allowedPaths = new Set(snapshot.files.map((file) => normalizeAgentFilePath(snapshot.root, file)));
|
|
495
|
+
const scoringStarted = performance.now();
|
|
496
|
+
for (const chunk of candidateChunks) {
|
|
497
|
+
if (!allowedPaths.has(chunk.path)) {
|
|
498
|
+
throw new Error(`Query index returned an out-of-snapshot path: ${chunk.path}`);
|
|
499
|
+
}
|
|
500
|
+
addTextFileResults(snapshot, candidateResultMap, query, includeSnippets, mode, chunk.path, [chunk]);
|
|
501
|
+
}
|
|
502
|
+
diagnostics.scoringMs += performance.now() - scoringStarted;
|
|
503
|
+
});
|
|
504
|
+
mergeSearchResults(resultMap, candidateResultMap);
|
|
505
|
+
return;
|
|
506
|
+
}
|
|
507
|
+
catch (error) {
|
|
508
|
+
diagnostics.sidecarState = "unavailable";
|
|
509
|
+
diagnostics.fallbackReason = errorMessage(error);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
const cache = getSearchCache(snapshot);
|
|
513
|
+
for (const file of snapshot.files) {
|
|
514
|
+
const normalizedText = await getCachedNormalizedText(cache, file);
|
|
515
|
+
if (!normalizedText || !textCouldMatchNormalized(normalizedText, query.rankTokens))
|
|
516
|
+
continue;
|
|
517
|
+
const relFile = normalizeAgentFilePath(snapshot.root, file);
|
|
518
|
+
const chunks = await getCachedTextChunks(cache, file);
|
|
519
|
+
addTextFileResults(snapshot, resultMap, query, includeSnippets, mode, relFile, chunks);
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
function addTextFileResults(snapshot, resultMap, query, includeSnippets, mode, relFile, chunks) {
|
|
523
|
+
const documentationFile = isDocumentationFile(relFile);
|
|
524
|
+
for (const chunk of chunks) {
|
|
525
|
+
const match = matchTokenScoreFromNormalized(chunk.normalizedText, query);
|
|
526
|
+
if (match.score <= 0)
|
|
527
|
+
continue;
|
|
528
|
+
const handle = formatAgentChunkHandle({ file: relFile, line: chunk.startLine });
|
|
529
|
+
const result = upsertResult(resultMap, {
|
|
530
|
+
handle,
|
|
531
|
+
kind: "chunk",
|
|
532
|
+
label: chunk.name ? `${chunk.name} (${relFile})` : `${relFile}:${chunk.startLine}`,
|
|
533
|
+
file: relFile,
|
|
534
|
+
range: {
|
|
535
|
+
start: { line: chunk.startLine, column: 0 },
|
|
536
|
+
end: { line: chunk.endLine, column: 0 },
|
|
537
|
+
},
|
|
538
|
+
provenance: createSearchProvenance(relFile, "text", documentationFile ? "medium" : "high", snapshot.analysis),
|
|
539
|
+
});
|
|
540
|
+
if (chunk.name && result.label === `${relFile}:${chunk.startLine}`) {
|
|
541
|
+
result.label = `${chunk.name} (${relFile})`;
|
|
542
|
+
result.range = {
|
|
543
|
+
start: { line: chunk.startLine, column: 0 },
|
|
544
|
+
end: { line: chunk.endLine, column: 0 },
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
result.score += match.score + textResultBoost(match, documentationFile, query, mode);
|
|
548
|
+
addMatchedRankTerms(result, match);
|
|
549
|
+
addReason(result, `text token match: ${match.matched.join(", ")}`);
|
|
550
|
+
addPhraseReasons(result, match, documentationFile ? "docs text" : "text");
|
|
551
|
+
addEvidence(result, {
|
|
552
|
+
source: "chunk",
|
|
553
|
+
label: result.label,
|
|
554
|
+
file: relFile,
|
|
555
|
+
line: chunk.startLine,
|
|
556
|
+
...(includeSnippets ? { snippet: makeSnippet(chunk.text, query) } : {}),
|
|
557
|
+
});
|
|
558
|
+
addFileFollowUps(result, relFile);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
function textResultBoost(match, documentationFile, query, mode) {
|
|
562
|
+
if (!documentationFile || query.identifierLike)
|
|
563
|
+
return 0;
|
|
564
|
+
if (mode !== "text" && mode !== "hybrid")
|
|
565
|
+
return 0;
|
|
566
|
+
if (match.exactPhrase)
|
|
567
|
+
return DOCS_EXACT_PHRASE_BOOST;
|
|
568
|
+
if (match.proximity)
|
|
569
|
+
return DOCS_PROXIMITY_BOOST;
|
|
570
|
+
return 0;
|
|
571
|
+
}
|
|
572
|
+
function isDocumentationFile(relFile) {
|
|
573
|
+
const lower = relFile.toLowerCase();
|
|
574
|
+
return (lower === "readme.md" ||
|
|
575
|
+
lower.startsWith("docs/") ||
|
|
576
|
+
lower.endsWith(".md") ||
|
|
577
|
+
lower.endsWith(".mdx") ||
|
|
578
|
+
lower.endsWith(".rst") ||
|
|
579
|
+
lower.endsWith(".adoc") ||
|
|
580
|
+
lower.endsWith(".txt"));
|
|
581
|
+
}
|
|
582
|
+
function addPhraseReasons(result, match, label) {
|
|
583
|
+
if (match.exactPhrase) {
|
|
584
|
+
addReason(result, `exact phrase match in ${label}`);
|
|
585
|
+
return;
|
|
586
|
+
}
|
|
587
|
+
if (match.proximity) {
|
|
588
|
+
addReason(result, `nearby token match in ${label}`);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
function textCouldMatchNormalized(normalizedText, tokens) {
|
|
592
|
+
return tokens.some((token) => normalizedText.includes(token));
|
|
593
|
+
}
|
|
594
|
+
function getSearchCache(snapshot) {
|
|
595
|
+
const existing = SEARCH_CACHES.get(snapshot);
|
|
596
|
+
if (existing)
|
|
597
|
+
return existing;
|
|
598
|
+
const created = {
|
|
599
|
+
fileText: new Map(),
|
|
600
|
+
normalizedText: new Map(),
|
|
601
|
+
textChunks: new Map(),
|
|
602
|
+
};
|
|
603
|
+
SEARCH_CACHES.set(snapshot, created);
|
|
604
|
+
return created;
|
|
605
|
+
}
|
|
606
|
+
async function getCachedFileText(cache, file) {
|
|
607
|
+
const cached = cache.fileText.get(file);
|
|
608
|
+
if (cached)
|
|
609
|
+
return await cached;
|
|
610
|
+
const loadPromise = readSearchableFile(file);
|
|
611
|
+
cache.fileText.set(file, loadPromise);
|
|
612
|
+
loadPromise.catch(() => {
|
|
613
|
+
if (cache.fileText.get(file) === loadPromise)
|
|
614
|
+
cache.fileText.delete(file);
|
|
615
|
+
});
|
|
616
|
+
return await loadPromise;
|
|
617
|
+
}
|
|
618
|
+
async function getCachedNormalizedText(cache, file) {
|
|
619
|
+
const cached = cache.normalizedText.get(file);
|
|
620
|
+
if (cached)
|
|
621
|
+
return await cached;
|
|
622
|
+
const loadPromise = getCachedFileText(cache, file).then((text) => (text ? normalizeSearchText(text) : null));
|
|
623
|
+
cache.normalizedText.set(file, loadPromise);
|
|
624
|
+
loadPromise.catch(() => {
|
|
625
|
+
if (cache.normalizedText.get(file) === loadPromise)
|
|
626
|
+
cache.normalizedText.delete(file);
|
|
627
|
+
});
|
|
628
|
+
return await loadPromise;
|
|
629
|
+
}
|
|
630
|
+
async function getCachedTextChunks(cache, file) {
|
|
631
|
+
const cached = cache.textChunks.get(file);
|
|
632
|
+
if (cached)
|
|
633
|
+
return await cached;
|
|
634
|
+
const loadPromise = getCachedFileText(cache, file).then((text) => (text ? buildTextChunks(file, text) : []));
|
|
635
|
+
cache.textChunks.set(file, loadPromise);
|
|
636
|
+
loadPromise.catch(() => {
|
|
637
|
+
if (cache.textChunks.get(file) === loadPromise)
|
|
638
|
+
cache.textChunks.delete(file);
|
|
639
|
+
});
|
|
640
|
+
return await loadPromise;
|
|
641
|
+
}
|
|
642
|
+
function applyGraphNeighborhood(snapshot, resultMap, fileNeighborIndex, query, from, depth) {
|
|
643
|
+
const anchorFiles = resolveAnchorFiles(snapshot, from);
|
|
644
|
+
if (anchorFiles.size === 0)
|
|
645
|
+
return;
|
|
646
|
+
const reachable = collectReachableFiles(fileNeighborIndex, anchorFiles, depth);
|
|
647
|
+
for (const entry of reachable.values()) {
|
|
648
|
+
const relFile = normalizeAgentFilePath(snapshot.root, entry.file);
|
|
649
|
+
const existingResults = [...resultMap.values()].filter((result) => result.file === relFile);
|
|
650
|
+
const fileMatch = matchTokenScore(relFile, query);
|
|
651
|
+
if (fileMatch.score > 0) {
|
|
652
|
+
const graphResult = upsertResult(resultMap, {
|
|
653
|
+
handle: formatAgentGraphHandle({ file: relFile }),
|
|
654
|
+
kind: "graph_node",
|
|
655
|
+
label: relFile,
|
|
656
|
+
file: relFile,
|
|
657
|
+
provenance: createSearchProvenance(relFile, "graph", "medium", snapshot.analysis),
|
|
658
|
+
});
|
|
659
|
+
graphResult.score += fileMatch.score + graphBoost(entry.distance);
|
|
660
|
+
addGraphEvidence(graphResult, relFile, entry);
|
|
661
|
+
addMatchedRankTerms(graphResult, fileMatch);
|
|
662
|
+
addFileFollowUps(graphResult, relFile);
|
|
663
|
+
}
|
|
664
|
+
for (const result of existingResults) {
|
|
665
|
+
result.score += graphBoost(entry.distance);
|
|
666
|
+
addGraphEvidence(result, relFile, entry);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
function addGraphEvidence(result, relFile, entry) {
|
|
671
|
+
addReason(result, `graph neighborhood match at depth ${entry.distance}`);
|
|
672
|
+
addEvidence(result, {
|
|
673
|
+
source: "graph",
|
|
674
|
+
label: entry.relation,
|
|
675
|
+
file: relFile,
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
function graphBoost(distance) {
|
|
679
|
+
return Math.max(2, 14 - distance * 3);
|
|
680
|
+
}
|
|
681
|
+
function resolveAnchorFiles(snapshot, from) {
|
|
682
|
+
const anchor = new Set();
|
|
683
|
+
const directFile = resolveAgentSnapshotFile(snapshot, from);
|
|
684
|
+
if (directFile)
|
|
685
|
+
anchor.add(directFile);
|
|
686
|
+
const fileLikeHandle = parseAgentFileHandle(from) ?? parseAgentChunkHandle(from) ?? parseAgentGraphHandle(from);
|
|
687
|
+
if (fileLikeHandle) {
|
|
688
|
+
const handleFile = resolveAgentSnapshotFile(snapshot, fileLikeHandle.file);
|
|
689
|
+
if (handleFile)
|
|
690
|
+
anchor.add(handleFile);
|
|
691
|
+
}
|
|
692
|
+
if (from.startsWith("symbol:")) {
|
|
693
|
+
const symbolHandle = parseAgentSymbolHandle(from);
|
|
694
|
+
const symbolFile = symbolHandle ? resolveAgentSnapshotFile(snapshot, symbolHandle.file) : null;
|
|
695
|
+
if (symbolFile) {
|
|
696
|
+
anchor.add(symbolFile);
|
|
697
|
+
}
|
|
698
|
+
else {
|
|
699
|
+
const symbol = snapshot.symbolGraph.nodes.get(from.slice("symbol:".length));
|
|
700
|
+
if (symbol)
|
|
701
|
+
anchor.add(normalizePath(symbol.file));
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
if (from.startsWith("sql:")) {
|
|
705
|
+
const sqlHandle = parseAgentSqlHandle(from);
|
|
706
|
+
if (sqlHandle) {
|
|
707
|
+
const file = resolveAgentSnapshotFile(snapshot, sqlHandle.file);
|
|
708
|
+
if (file)
|
|
709
|
+
anchor.add(file);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
for (const node of snapshot.symbolGraph.nodes.values()) {
|
|
713
|
+
if (node.name === from) {
|
|
714
|
+
anchor.add(normalizePath(node.file));
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
return anchor;
|
|
718
|
+
}
|
|
719
|
+
function collectReachableFiles(fileNeighborIndex, anchorFiles, depth) {
|
|
720
|
+
const reachable = new Map();
|
|
721
|
+
const queue = [...anchorFiles].map((file) => ({
|
|
722
|
+
file,
|
|
723
|
+
distance: 0,
|
|
724
|
+
relation: "anchor",
|
|
725
|
+
}));
|
|
726
|
+
while (queue.length) {
|
|
727
|
+
const current = queue.shift();
|
|
728
|
+
const existing = reachable.get(current.file);
|
|
729
|
+
if (existing && existing.distance <= current.distance)
|
|
730
|
+
continue;
|
|
731
|
+
reachable.set(current.file, current);
|
|
732
|
+
if (current.distance >= depth)
|
|
733
|
+
continue;
|
|
734
|
+
for (const neighbor of fileNeighborIndex.get(current.file) ?? []) {
|
|
735
|
+
queue.push({
|
|
736
|
+
file: neighbor.file,
|
|
737
|
+
distance: current.distance + 1,
|
|
738
|
+
relation: neighbor.relation,
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
return reachable;
|
|
743
|
+
}
|
|
744
|
+
async function readSearchableFile(file) {
|
|
745
|
+
try {
|
|
746
|
+
const stat = await fs.stat(file);
|
|
747
|
+
if (stat.size > MAX_TEXT_BYTES)
|
|
748
|
+
return null;
|
|
749
|
+
return await fs.readFile(file, "utf8");
|
|
750
|
+
}
|
|
751
|
+
catch {
|
|
752
|
+
return null;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
function buildTextChunks(file, text) {
|
|
756
|
+
return buildQueryTextChunks(file, text);
|
|
757
|
+
}
|
|
758
|
+
function makeSnippet(text, query) {
|
|
759
|
+
const lines = text.split(/\r?\n/);
|
|
760
|
+
const matchIndex = lines.findIndex((line) => matchTokenScore(line, query).score > 0);
|
|
761
|
+
const index = matchIndex >= 0 ? matchIndex : 0;
|
|
762
|
+
return lines
|
|
763
|
+
.slice(Math.max(0, index - 1), Math.min(lines.length, index + 2))
|
|
764
|
+
.join("\n")
|
|
765
|
+
.trim();
|
|
766
|
+
}
|
|
767
|
+
function upsertResult(resultMap, base) {
|
|
768
|
+
const existing = resultMap.get(base.handle);
|
|
769
|
+
if (existing)
|
|
770
|
+
return existing;
|
|
771
|
+
const result = {
|
|
772
|
+
handle: base.handle,
|
|
773
|
+
kind: base.kind,
|
|
774
|
+
label: base.label,
|
|
775
|
+
file: base.file,
|
|
776
|
+
...(base.range ? { range: base.range } : {}),
|
|
777
|
+
provenance: base.provenance,
|
|
778
|
+
score: 0,
|
|
779
|
+
rankReasons: new Set(),
|
|
780
|
+
evidence: [],
|
|
781
|
+
neighbors: new Map(),
|
|
782
|
+
followUps: new Map(),
|
|
783
|
+
matchedRankTerms: new Set(),
|
|
784
|
+
};
|
|
785
|
+
resultMap.set(base.handle, result);
|
|
786
|
+
return result;
|
|
787
|
+
}
|
|
788
|
+
function addMatchedRankTerms(result, ...matches) {
|
|
789
|
+
for (const match of matches) {
|
|
790
|
+
for (const term of match.matched)
|
|
791
|
+
result.matchedRankTerms.add(term);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
function addReason(result, reason) {
|
|
795
|
+
if (reason.trim())
|
|
796
|
+
result.rankReasons.add(reason);
|
|
797
|
+
}
|
|
798
|
+
function addEvidence(result, evidence) {
|
|
799
|
+
if (result.evidence.some((entry) => entry.source === evidence.source &&
|
|
800
|
+
entry.label === evidence.label &&
|
|
801
|
+
entry.file === evidence.file &&
|
|
802
|
+
entry.line === evidence.line)) {
|
|
803
|
+
return;
|
|
804
|
+
}
|
|
805
|
+
result.evidence.push(evidence);
|
|
806
|
+
}
|
|
807
|
+
function buildSymbolNeighborIndex(snapshot) {
|
|
808
|
+
const neighborsBySymbolId = new Map();
|
|
809
|
+
const addNeighbor = (sourceId, neighbor) => {
|
|
810
|
+
const neighbors = neighborsBySymbolId.get(sourceId);
|
|
811
|
+
if (neighbors) {
|
|
812
|
+
neighbors.push(neighbor);
|
|
813
|
+
return;
|
|
814
|
+
}
|
|
815
|
+
neighborsBySymbolId.set(sourceId, [neighbor]);
|
|
816
|
+
};
|
|
817
|
+
for (const edge of snapshot.symbolGraph.edges) {
|
|
818
|
+
const from = snapshot.symbolGraph.nodes.get(edge.from);
|
|
819
|
+
const to = snapshot.symbolGraph.nodes.get(edge.to);
|
|
820
|
+
if (!from || !to)
|
|
821
|
+
continue;
|
|
822
|
+
const forwardRelation = edge.label ?? "uses";
|
|
823
|
+
addNeighbor(from.id, { key: "uses", relation: forwardRelation, target: to });
|
|
824
|
+
addNeighbor(to.id, {
|
|
825
|
+
key: "referenced_by",
|
|
826
|
+
relation: `incoming:${forwardRelation}`,
|
|
827
|
+
target: from,
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
return neighborsBySymbolId;
|
|
831
|
+
}
|
|
832
|
+
function buildFileNeighborIndex(snapshot) {
|
|
833
|
+
const neighborsByFile = new Map();
|
|
834
|
+
const addNeighbor = (file, neighbor) => {
|
|
835
|
+
const normalizedFile = normalizePath(file);
|
|
836
|
+
const neighbors = neighborsByFile.get(normalizedFile);
|
|
837
|
+
if (neighbors) {
|
|
838
|
+
neighbors.push(neighbor);
|
|
839
|
+
return;
|
|
840
|
+
}
|
|
841
|
+
neighborsByFile.set(normalizedFile, [neighbor]);
|
|
842
|
+
};
|
|
843
|
+
for (const edge of snapshot.fileGraph.edges) {
|
|
844
|
+
if (edge.to.type !== "file")
|
|
845
|
+
continue;
|
|
846
|
+
const from = normalizePath(edge.from);
|
|
847
|
+
const to = normalizePath(edge.to.path);
|
|
848
|
+
addNeighbor(from, { relation: "imports", file: to });
|
|
849
|
+
addNeighbor(to, { relation: "imported_by", file: from });
|
|
850
|
+
}
|
|
851
|
+
return neighborsByFile;
|
|
852
|
+
}
|
|
853
|
+
function addSymbolNeighbors(snapshot, result, neighbors) {
|
|
854
|
+
for (const neighbor of neighbors) {
|
|
855
|
+
const relFile = normalizeAgentFilePath(snapshot.root, neighbor.target.file);
|
|
856
|
+
const key = `${neighbor.key}:${neighbor.target.id}`;
|
|
857
|
+
result.neighbors.set(key, {
|
|
858
|
+
relation: neighbor.relation,
|
|
859
|
+
target: neighbor.target.name,
|
|
860
|
+
file: relFile,
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
function addFileNeighbors(snapshot, result, neighbors) {
|
|
865
|
+
for (const neighbor of neighbors) {
|
|
866
|
+
const relFile = normalizeAgentFilePath(snapshot.root, neighbor.file);
|
|
867
|
+
result.neighbors.set(`${neighbor.relation}:${relFile}`, {
|
|
868
|
+
relation: neighbor.relation,
|
|
869
|
+
target: relFile,
|
|
870
|
+
file: relFile,
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
function addSymbolFollowUps(result, relFile, def) {
|
|
875
|
+
addFollowUp(result, toolFollowUp("get_symbol", { handle: result.handle }));
|
|
876
|
+
if (def) {
|
|
877
|
+
for (const followUp of collectDefinitionFollowUps(relFile, def.range.start.line, def.range.start.column)) {
|
|
878
|
+
addFollowUp(result, followUp);
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
addFileFollowUps(result, relFile);
|
|
882
|
+
}
|
|
883
|
+
function addFileFollowUps(result, relFile) {
|
|
884
|
+
for (const followUp of collectCommonFileFollowUps(relFile)) {
|
|
885
|
+
addFollowUp(result, followUp);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
function addFollowUp(result, followUp) {
|
|
889
|
+
result.followUps.set(JSON.stringify(followUp), followUp);
|
|
890
|
+
}
|
|
891
|
+
function compareResults(left, right) {
|
|
892
|
+
const scoreDelta = right.score - left.score;
|
|
893
|
+
if (scoreDelta !== 0)
|
|
894
|
+
return scoreDelta;
|
|
895
|
+
const capabilityDelta = capabilityRank(left.provenance.capability) - capabilityRank(right.provenance.capability);
|
|
896
|
+
if (capabilityDelta !== 0)
|
|
897
|
+
return capabilityDelta;
|
|
898
|
+
const coverageDelta = right.matchedRankTerms.size - left.matchedRankTerms.size;
|
|
899
|
+
if (coverageDelta !== 0)
|
|
900
|
+
return coverageDelta;
|
|
901
|
+
const labelDelta = compareAscii(left.label, right.label);
|
|
902
|
+
if (labelDelta !== 0)
|
|
903
|
+
return labelDelta;
|
|
904
|
+
const fileDelta = compareAscii(left.file, right.file);
|
|
905
|
+
if (fileDelta !== 0)
|
|
906
|
+
return fileDelta;
|
|
907
|
+
return compareAscii(left.handle, right.handle);
|
|
908
|
+
}
|
|
909
|
+
function capabilityRank(capability) {
|
|
910
|
+
if (capability === "semantic")
|
|
911
|
+
return 0;
|
|
912
|
+
if (capability === "graph")
|
|
913
|
+
return 1;
|
|
914
|
+
return 2;
|
|
915
|
+
}
|
|
916
|
+
function compareAscii(left, right) {
|
|
917
|
+
if (left < right)
|
|
918
|
+
return -1;
|
|
919
|
+
if (left > right)
|
|
920
|
+
return 1;
|
|
921
|
+
return 0;
|
|
922
|
+
}
|
|
923
|
+
function selectTopResults(resultMap, limit) {
|
|
924
|
+
const top = [];
|
|
925
|
+
let totalCandidates = 0;
|
|
926
|
+
for (const result of resultMap.values()) {
|
|
927
|
+
if (result.score <= 0)
|
|
928
|
+
continue;
|
|
929
|
+
totalCandidates += 1;
|
|
930
|
+
insertTopResult(top, result, limit);
|
|
931
|
+
}
|
|
932
|
+
return {
|
|
933
|
+
items: top,
|
|
934
|
+
totalCandidates,
|
|
935
|
+
omitted: Math.max(0, totalCandidates - top.length),
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
function insertTopResult(top, result, limit) {
|
|
939
|
+
if (limit <= 0)
|
|
940
|
+
return;
|
|
941
|
+
let insertIndex = top.length;
|
|
942
|
+
while (insertIndex > 0 && compareResults(result, top[insertIndex - 1]) < 0) {
|
|
943
|
+
insertIndex -= 1;
|
|
944
|
+
}
|
|
945
|
+
if (insertIndex >= limit)
|
|
946
|
+
return;
|
|
947
|
+
top.splice(insertIndex, 0, result);
|
|
948
|
+
if (top.length > limit)
|
|
949
|
+
top.pop();
|
|
950
|
+
}
|
|
951
|
+
function finalizeResult(result) {
|
|
952
|
+
const rankReasons = [...result.rankReasons].sort();
|
|
953
|
+
const evidence = result.evidence.sort((left, right) => {
|
|
954
|
+
const sourceDelta = left.source.localeCompare(right.source);
|
|
955
|
+
if (sourceDelta !== 0)
|
|
956
|
+
return sourceDelta;
|
|
957
|
+
return left.label.localeCompare(right.label);
|
|
958
|
+
});
|
|
959
|
+
const neighbors = [...result.neighbors.values()].sort((left, right) => {
|
|
960
|
+
const relationDelta = left.relation.localeCompare(right.relation);
|
|
961
|
+
if (relationDelta !== 0)
|
|
962
|
+
return relationDelta;
|
|
963
|
+
return left.target.localeCompare(right.target);
|
|
964
|
+
});
|
|
965
|
+
const followUps = [...result.followUps.values()].sort((left, right) => formatAgentFollowUpAsCli(left).localeCompare(formatAgentFollowUpAsCli(right)));
|
|
966
|
+
const boundedRankReasons = boundAgentList(rankReasons, AGENT_SEARCH_RANK_REASONS_PER_RESULT_LIMIT);
|
|
967
|
+
const boundedEvidence = boundAgentList(evidence, AGENT_SEARCH_EVIDENCE_PER_RESULT_LIMIT);
|
|
968
|
+
const boundedNeighbors = boundAgentList(neighbors, AGENT_SEARCH_NEIGHBORS_PER_RESULT_LIMIT);
|
|
969
|
+
const boundedFollowUps = boundAgentList(followUps, AGENT_SEARCH_FOLLOWUPS_PER_RESULT_LIMIT);
|
|
970
|
+
return {
|
|
971
|
+
handle: result.handle,
|
|
972
|
+
kind: result.kind,
|
|
973
|
+
label: result.label,
|
|
974
|
+
file: result.file,
|
|
975
|
+
...(result.range ? { range: result.range } : {}),
|
|
976
|
+
score: Number(result.score.toFixed(3)),
|
|
977
|
+
provenance: result.provenance,
|
|
978
|
+
rankReasons: boundedRankReasons.items,
|
|
979
|
+
evidence: boundedEvidence.items,
|
|
980
|
+
neighbors: boundedNeighbors.items,
|
|
981
|
+
followUps: boundedFollowUps.items,
|
|
982
|
+
omittedCounts: {
|
|
983
|
+
rankReasons: boundedRankReasons.omitted,
|
|
984
|
+
evidence: boundedEvidence.omitted,
|
|
985
|
+
neighbors: boundedNeighbors.omitted,
|
|
986
|
+
followUps: boundedFollowUps.omitted,
|
|
987
|
+
},
|
|
988
|
+
};
|
|
989
|
+
}
|
|
990
|
+
function createSearchProvenance(relFile, capability, confidence, analysis) {
|
|
991
|
+
return {
|
|
992
|
+
surface: detectSearchSurface(relFile),
|
|
993
|
+
capability,
|
|
994
|
+
analysisMode: analysis.mode,
|
|
995
|
+
backend: analysis.backend,
|
|
996
|
+
confidence,
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
function detectSearchSurface(relFile) {
|
|
1000
|
+
return detectQueryIndexSurface(relFile);
|
|
1001
|
+
}
|
|
1002
|
+
//# sourceMappingURL=search.js.map
|