@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,886 @@
|
|
|
1
|
+
import fs from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { SymbolKind } from "../indexer/types.js";
|
|
4
|
+
import { findReferences } from "../indexer/navigation.js";
|
|
5
|
+
import { fileIdentityKey, resolveFilePathFromRoot, toProjectDisplayPath } from "../util/paths.js";
|
|
6
|
+
import { mapLimit } from "../util/concurrency.js";
|
|
7
|
+
import { maskJsLikeCommentsAndStrings } from "../util/comments.js";
|
|
8
|
+
import { listCandidateTestFiles } from "./context.js";
|
|
9
|
+
import { collectHunkLineText, collectRemovedLines } from "./hunks.js";
|
|
10
|
+
import { normalizeImpactFilePath } from "./path.js";
|
|
11
|
+
import { collectImpactSuggestions } from "./suggestions.js";
|
|
12
|
+
import { compileTestPatterns, createIndexTestFileMatcher } from "./testPatterns.js";
|
|
13
|
+
const CONFIG_FILE_RE = /(^|\/)(?:tsconfig(?:\.[^./]+)?\.json|jsconfig\.json|vite\.config\.[cm]?[jt]s|webpack\.config\.[cm]?[jt]s|rollup\.config\.[cm]?[jt]s|esbuild\.config\.[cm]?[jt]s|babel\.config\.[cm]?[jt]s|\.eslintrc(?:\.[^./]+)?|prettier\.config\.[cm]?[jt]s|package\.json|pnpm-workspace\.ya?ml|lerna\.json|turbo\.json|nx\.json|\.env(?:\.[^/]*)?)$/i;
|
|
14
|
+
const UNTESTED_CHANGE_REFERENCE_SCAN_LIMIT = 500;
|
|
15
|
+
function matchesConfigSemantics(filePath) {
|
|
16
|
+
return CONFIG_FILE_RE.test(filePath);
|
|
17
|
+
}
|
|
18
|
+
function collectAddedLines(change) {
|
|
19
|
+
return collectHunkLineText(change).added;
|
|
20
|
+
}
|
|
21
|
+
function collectRemovedLinesText(change) {
|
|
22
|
+
return collectHunkLineText(change).removed;
|
|
23
|
+
}
|
|
24
|
+
function collectRemovedAndAddedLines(change) {
|
|
25
|
+
return collectHunkLineText(change).changed;
|
|
26
|
+
}
|
|
27
|
+
function collectTsconfigPathAliases(change) {
|
|
28
|
+
const aliases = new Set();
|
|
29
|
+
const keyRe = /"([^"\n]+)"\s*:\s*/;
|
|
30
|
+
for (const line of collectRemovedAndAddedLines(change)) {
|
|
31
|
+
const match = keyRe.exec(line);
|
|
32
|
+
const key = match?.[1]?.trim();
|
|
33
|
+
if (!key)
|
|
34
|
+
continue;
|
|
35
|
+
if (key.startsWith("@") || key.includes("/*") || key.includes("/")) {
|
|
36
|
+
aliases.add(key);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return [...aliases];
|
|
40
|
+
}
|
|
41
|
+
function aliasMatchesImport(alias, rawSpecifier) {
|
|
42
|
+
if (alias.endsWith("/*")) {
|
|
43
|
+
const prefix = alias.slice(0, -1);
|
|
44
|
+
return rawSpecifier.startsWith(prefix);
|
|
45
|
+
}
|
|
46
|
+
return rawSpecifier === alias;
|
|
47
|
+
}
|
|
48
|
+
function collectTsconfigBlastRadius(index, aliases) {
|
|
49
|
+
if (!aliases.length) {
|
|
50
|
+
return { aliases: [], importers: [] };
|
|
51
|
+
}
|
|
52
|
+
const aliasSet = new Set(aliases);
|
|
53
|
+
const importers = new Set();
|
|
54
|
+
for (const edge of index.graph.edges) {
|
|
55
|
+
const raw = edge.raw?.trim();
|
|
56
|
+
if (!raw || edge.to.type !== "file")
|
|
57
|
+
continue;
|
|
58
|
+
for (const alias of aliasSet) {
|
|
59
|
+
if (!aliasMatchesImport(alias, raw))
|
|
60
|
+
continue;
|
|
61
|
+
importers.add(edge.from);
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
aliases: [...aliasSet],
|
|
67
|
+
importers: [...importers],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function collectWorkspaceManifestPaths(index) {
|
|
71
|
+
const out = new Set();
|
|
72
|
+
for (const node of index.graph.nodes) {
|
|
73
|
+
if (!node.endsWith("/package.json"))
|
|
74
|
+
continue;
|
|
75
|
+
out.add(node);
|
|
76
|
+
}
|
|
77
|
+
return [...out];
|
|
78
|
+
}
|
|
79
|
+
function classifyConfigImpact(index, projectRoot, change) {
|
|
80
|
+
const lowerPath = change.path.toLowerCase();
|
|
81
|
+
const addedLines = collectAddedLines(change).join("\n").toLowerCase();
|
|
82
|
+
const removedLines = collectRemovedLinesText(change).join("\n").toLowerCase();
|
|
83
|
+
const lineSignals = `${addedLines}\n${removedLines}`;
|
|
84
|
+
if (lowerPath.endsWith("package.json")) {
|
|
85
|
+
if (lineSignals.includes('"scripts"')) {
|
|
86
|
+
return {
|
|
87
|
+
details: "package.json scripts changed; CI/build workflows may be affected across packages.",
|
|
88
|
+
confidence: "medium",
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
if (lineSignals.includes('"dependencies"') || lineSignals.includes('"devdependencies"')) {
|
|
92
|
+
return {
|
|
93
|
+
details: "package.json dependency graph changed; dependency resolution can affect multiple workspaces.",
|
|
94
|
+
confidence: "high",
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const isTsconfig = lowerPath.endsWith("tsconfig.json") || lowerPath.endsWith("jsconfig.json");
|
|
99
|
+
if (isTsconfig) {
|
|
100
|
+
const aliases = collectTsconfigPathAliases(change);
|
|
101
|
+
const blastRadius = collectTsconfigBlastRadius(index, aliases);
|
|
102
|
+
if (blastRadius.aliases.length) {
|
|
103
|
+
const relImporters = blastRadius.importers.slice(0, 5).map((file) => toProjectDisplayPath(projectRoot, file));
|
|
104
|
+
const importerSummary = blastRadius.importers.length
|
|
105
|
+
? `Likely impacted importer files: ${relImporters.join(", ")}${blastRadius.importers.length > relImporters.length ? ", ..." : ""}.`
|
|
106
|
+
: "No existing imports currently match these aliases.";
|
|
107
|
+
return {
|
|
108
|
+
details: `TypeScript/JavaScript path aliases changed (${blastRadius.aliases.join(", ")}). ${importerSummary}`,
|
|
109
|
+
confidence: "high",
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
details: "TypeScript/JavaScript compiler config changed; type-checking and module resolution can shift project-wide.",
|
|
114
|
+
confidence: "high",
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
const isBuildToolConfig = lowerPath.includes("vite.config") ||
|
|
118
|
+
lowerPath.includes("webpack.config") ||
|
|
119
|
+
lowerPath.includes("rollup.config") ||
|
|
120
|
+
lowerPath.includes("esbuild.config");
|
|
121
|
+
if (isBuildToolConfig) {
|
|
122
|
+
const signalParts = [];
|
|
123
|
+
if (lineSignals.includes("alias"))
|
|
124
|
+
signalParts.push("module alias resolution");
|
|
125
|
+
if (lineSignals.includes("input") || lineSignals.includes("entry")) {
|
|
126
|
+
signalParts.push("entrypoint selection");
|
|
127
|
+
}
|
|
128
|
+
if (lineSignals.includes("output") || lineSignals.includes("outdir")) {
|
|
129
|
+
signalParts.push("bundle output targets");
|
|
130
|
+
}
|
|
131
|
+
if (lineSignals.includes("plugin"))
|
|
132
|
+
signalParts.push("plugin execution order");
|
|
133
|
+
if (lineSignals.includes("define"))
|
|
134
|
+
signalParts.push("compile-time constants");
|
|
135
|
+
const detailsSuffix = signalParts.length ? ` Detected changes touch ${signalParts.join(", ")}.` : "";
|
|
136
|
+
return {
|
|
137
|
+
details: `Build tool configuration changed (${path.basename(change.path)}); bundling and runtime artifact behavior may change.${detailsSuffix}`,
|
|
138
|
+
confidence: "high",
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
if (lowerPath.endsWith("turbo.json") || lowerPath.endsWith("nx.json")) {
|
|
142
|
+
const workspaceManifests = collectWorkspaceManifestPaths(index);
|
|
143
|
+
const affectsTasks = lineSignals.includes("pipeline") ||
|
|
144
|
+
lineSignals.includes("tasks") ||
|
|
145
|
+
lineSignals.includes("dependson") ||
|
|
146
|
+
lineSignals.includes("cache") ||
|
|
147
|
+
lineSignals.includes("outputs");
|
|
148
|
+
const scopeSummary = workspaceManifests.length
|
|
149
|
+
? `${workspaceManifests.length} workspace package manifest(s) discovered.`
|
|
150
|
+
: "Workspace package manifests were not discovered.";
|
|
151
|
+
return {
|
|
152
|
+
details: affectsTasks
|
|
153
|
+
? `Monorepo task orchestration config changed (${path.basename(change.path)}); task dependency graph, caching, or outputs may shift across packages. ${scopeSummary}`
|
|
154
|
+
: `Monorepo config changed (${path.basename(change.path)}); cross-package task behavior may shift. ${scopeSummary}`,
|
|
155
|
+
confidence: "high",
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
if (lowerPath.includes(".env")) {
|
|
159
|
+
return {
|
|
160
|
+
details: "Environment configuration changed; runtime behavior may differ across services and deploy environments.",
|
|
161
|
+
confidence: "medium",
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
return {
|
|
165
|
+
details: "Configuration change detected; impact can be broad and may require full-project validation.",
|
|
166
|
+
confidence: "high",
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
function collectConfigAndBreakingSuggestions(index, projectRoot, fileChanges, changedSymbols, opts) {
|
|
170
|
+
const suggestions = [];
|
|
171
|
+
const breakingByKey = new Map();
|
|
172
|
+
const removedLinesByFile = new Map();
|
|
173
|
+
const confidenceScore = {
|
|
174
|
+
low: 1,
|
|
175
|
+
medium: 2,
|
|
176
|
+
high: 3,
|
|
177
|
+
};
|
|
178
|
+
const upsertBreakingSuggestion = (entry) => {
|
|
179
|
+
const key = `${entry.kind}::${entry.file}::${entry.symbol ?? ""}`;
|
|
180
|
+
const existing = breakingByKey.get(key);
|
|
181
|
+
if (!existing) {
|
|
182
|
+
breakingByKey.set(key, entry);
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
const existingScore = confidenceScore[existing.confidence];
|
|
186
|
+
const incomingScore = confidenceScore[entry.confidence];
|
|
187
|
+
if (incomingScore > existingScore) {
|
|
188
|
+
breakingByKey.set(key, entry);
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
for (const fileChange of fileChanges) {
|
|
192
|
+
const normalized = normalizeImpactFilePath(projectRoot, fileChange.path);
|
|
193
|
+
removedLinesByFile.set(normalized, collectRemovedLines(fileChange));
|
|
194
|
+
if (!opts.configImpactRules || !matchesConfigSemantics(fileChange.path))
|
|
195
|
+
continue;
|
|
196
|
+
const configSemantics = classifyConfigImpact(index, projectRoot, fileChange);
|
|
197
|
+
suggestions.push({
|
|
198
|
+
file: normalized,
|
|
199
|
+
kind: "configImpact",
|
|
200
|
+
details: configSemantics.details,
|
|
201
|
+
confidence: configSemantics.confidence,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
if (opts.detectBreakingChanges) {
|
|
205
|
+
for (const fileChange of fileChanges) {
|
|
206
|
+
const normalized = normalizeImpactFilePath(projectRoot, fileChange.path);
|
|
207
|
+
const signatureChanges = detectExportSignatureChanges(fileChange);
|
|
208
|
+
for (const change of signatureChanges) {
|
|
209
|
+
upsertBreakingSuggestion({
|
|
210
|
+
file: normalized,
|
|
211
|
+
kind: "breakingChange",
|
|
212
|
+
symbol: change.name,
|
|
213
|
+
details: change.details,
|
|
214
|
+
confidence: change.confidence,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
for (const symbol of changedSymbols) {
|
|
219
|
+
if (!symbol.exported)
|
|
220
|
+
continue;
|
|
221
|
+
const removedLines = removedLinesByFile.get(symbol.file);
|
|
222
|
+
if (!removedLines || removedLines.size === 0)
|
|
223
|
+
continue;
|
|
224
|
+
const symbolStart = symbol.range.start.line;
|
|
225
|
+
const symbolEnd = symbol.range.end.line;
|
|
226
|
+
let overlapsRemoval = false;
|
|
227
|
+
for (const line of removedLines) {
|
|
228
|
+
if (line < symbolStart || line > symbolEnd)
|
|
229
|
+
continue;
|
|
230
|
+
overlapsRemoval = true;
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
if (!overlapsRemoval)
|
|
234
|
+
continue;
|
|
235
|
+
upsertBreakingSuggestion({
|
|
236
|
+
file: symbol.file,
|
|
237
|
+
range: symbol.range,
|
|
238
|
+
kind: "breakingChange",
|
|
239
|
+
symbol: symbol.name,
|
|
240
|
+
details: "Exported symbol overlaps removed lines; verify call sites for potential breaking changes.",
|
|
241
|
+
confidence: "medium",
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
for (const fileChange of fileChanges) {
|
|
245
|
+
const normalized = normalizeImpactFilePath(projectRoot, fileChange.path);
|
|
246
|
+
const removedLines = removedLinesByFile.get(normalized);
|
|
247
|
+
if (!removedLines || removedLines.size === 0)
|
|
248
|
+
continue;
|
|
249
|
+
const mod = index.byFile.get(fileIdentityKey(normalized));
|
|
250
|
+
const hasExports = !!mod?.exports.length;
|
|
251
|
+
const alreadyHasForFile = Array.from(breakingByKey.values()).some((entry) => fileIdentityKey(entry.file) === fileIdentityKey(normalized));
|
|
252
|
+
if (!hasExports || alreadyHasForFile)
|
|
253
|
+
continue;
|
|
254
|
+
upsertBreakingSuggestion({
|
|
255
|
+
file: normalized,
|
|
256
|
+
kind: "breakingChange",
|
|
257
|
+
details: "Removed lines in a module with exports may indicate breaking API changes.",
|
|
258
|
+
confidence: "low",
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
suggestions.push(...breakingByKey.values());
|
|
263
|
+
return suggestions;
|
|
264
|
+
}
|
|
265
|
+
async function collectUntestedChangeSuggestions(index, changedSymbols, projectRoot, fanInByFileInput, options) {
|
|
266
|
+
const suggestions = [];
|
|
267
|
+
const testPatterns = compileTestPatterns(options?.testPatterns);
|
|
268
|
+
const isIndexTestFile = createIndexTestFileMatcher(index, testPatterns, projectRoot);
|
|
269
|
+
const testFiles = new Set();
|
|
270
|
+
for (const module of index.byFile.values()) {
|
|
271
|
+
const file = module.file;
|
|
272
|
+
if (isIndexTestFile(file)) {
|
|
273
|
+
testFiles.add(fileIdentityKey(file));
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
const fanInByFile = fanInByFileInput ?? new Map();
|
|
277
|
+
if (!fanInByFileInput) {
|
|
278
|
+
for (const edge of index.graph.edges) {
|
|
279
|
+
if (edge.to.type !== "file")
|
|
280
|
+
continue;
|
|
281
|
+
const key = fileIdentityKey(edge.to.path);
|
|
282
|
+
const current = fanInByFile.get(key) ?? 0;
|
|
283
|
+
fanInByFile.set(key, current + 1);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
const candidateTestsByFile = new Map();
|
|
287
|
+
const changedSymbolIdsByFile = new Map();
|
|
288
|
+
for (const symbol of changedSymbols) {
|
|
289
|
+
const existing = changedSymbolIdsByFile.get(symbol.file);
|
|
290
|
+
if (existing) {
|
|
291
|
+
existing.push(symbol.id);
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
changedSymbolIdsByFile.set(symbol.file, [symbol.id]);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
for (const [file, symbolIds] of changedSymbolIdsByFile) {
|
|
298
|
+
candidateTestsByFile.set(file, listCandidateTestFiles(index, [file], symbolIds, {
|
|
299
|
+
...(options?.testPatterns ? { testPatterns: options.testPatterns } : {}),
|
|
300
|
+
maxCandidates: 3,
|
|
301
|
+
projectRoot,
|
|
302
|
+
}).filter((entry) => entry.file !== file));
|
|
303
|
+
}
|
|
304
|
+
const coverageOptions = {};
|
|
305
|
+
if (options?.lcovPaths)
|
|
306
|
+
coverageOptions.lcovPaths = options.lcovPaths;
|
|
307
|
+
if (options?.coveragePaths)
|
|
308
|
+
coverageOptions.coveragePaths = options.coveragePaths;
|
|
309
|
+
const coverageByFile = await loadCoverageByFile(projectRoot, coverageOptions);
|
|
310
|
+
const inferTestCommand = (candidateNames) => {
|
|
311
|
+
const template = options?.testCommandTemplate?.trim();
|
|
312
|
+
if (template) {
|
|
313
|
+
if (template.includes("{files}")) {
|
|
314
|
+
const fileArg = candidateNames.length ? candidateNames.join(" ") : "";
|
|
315
|
+
return template.replace("{files}", fileArg).trim();
|
|
316
|
+
}
|
|
317
|
+
return template;
|
|
318
|
+
}
|
|
319
|
+
const graphNodeKeys = new Set(Array.from(index.graph.nodes, fileIdentityKey));
|
|
320
|
+
const hasPnpm = graphNodeKeys.has(fileIdentityKey(path.resolve(projectRoot, "pnpm-lock.yaml").replace(/\\/g, "/")));
|
|
321
|
+
const hasYarn = graphNodeKeys.has(fileIdentityKey(path.resolve(projectRoot, "yarn.lock").replace(/\\/g, "/")));
|
|
322
|
+
const hasPackage = graphNodeKeys.has(fileIdentityKey(path.resolve(projectRoot, "package.json").replace(/\\/g, "/")));
|
|
323
|
+
let runner = "npm run";
|
|
324
|
+
if (hasPnpm) {
|
|
325
|
+
runner = "pnpm";
|
|
326
|
+
}
|
|
327
|
+
else if (hasYarn) {
|
|
328
|
+
runner = "yarn";
|
|
329
|
+
}
|
|
330
|
+
else if (hasPackage) {
|
|
331
|
+
runner = "npm run";
|
|
332
|
+
}
|
|
333
|
+
if (!candidateNames.length) {
|
|
334
|
+
return runner === "npm run" ? "npm run test" : `${runner} test`;
|
|
335
|
+
}
|
|
336
|
+
const target = candidateNames[0];
|
|
337
|
+
if (runner === "pnpm")
|
|
338
|
+
return `pnpm test ${target}`;
|
|
339
|
+
if (runner === "yarn")
|
|
340
|
+
return `yarn test ${target}`;
|
|
341
|
+
return `npm run test -- ${target}`;
|
|
342
|
+
};
|
|
343
|
+
const confidenceFromSignals = (signals) => {
|
|
344
|
+
let score = 2;
|
|
345
|
+
if (signals.hasCoverageData && signals.coveredLines === 0 && signals.totalLines > 0) {
|
|
346
|
+
score += 2;
|
|
347
|
+
}
|
|
348
|
+
if (!signals.hasCoverageData)
|
|
349
|
+
score += 1;
|
|
350
|
+
if (signals.exported)
|
|
351
|
+
score += 1;
|
|
352
|
+
if (signals.fanIn >= 3)
|
|
353
|
+
score += 1;
|
|
354
|
+
if (signals.kind === SymbolKind.Function)
|
|
355
|
+
score += 1;
|
|
356
|
+
if (signals.coveredLines > 0)
|
|
357
|
+
score -= 1;
|
|
358
|
+
if (score >= 5)
|
|
359
|
+
return "high";
|
|
360
|
+
if (score <= 2)
|
|
361
|
+
return "low";
|
|
362
|
+
return "medium";
|
|
363
|
+
};
|
|
364
|
+
const suggestionEntries = await mapLimit(changedSymbols, 8, async (symbol) => {
|
|
365
|
+
const refs = await findReferences(index, {
|
|
366
|
+
def: {
|
|
367
|
+
file: symbol.file,
|
|
368
|
+
localName: symbol.name,
|
|
369
|
+
kind: symbol.kind,
|
|
370
|
+
range: symbol.range,
|
|
371
|
+
},
|
|
372
|
+
}, {
|
|
373
|
+
maxReferences: UNTESTED_CHANGE_REFERENCE_SCAN_LIMIT,
|
|
374
|
+
});
|
|
375
|
+
if (refs.status !== "ok")
|
|
376
|
+
return undefined;
|
|
377
|
+
const hasTestRef = refs.references.some((entry) => testFiles.has(fileIdentityKey(entry.file)));
|
|
378
|
+
if (hasTestRef)
|
|
379
|
+
return undefined;
|
|
380
|
+
const coverage = coverageByFile.get(symbol.file);
|
|
381
|
+
const coveredLines = countCoveredLinesForRange(coverage, symbol.range);
|
|
382
|
+
const totalLines = countTotalLinesForRange(coverage, symbol.range);
|
|
383
|
+
const hasCoverageData = totalLines > 0;
|
|
384
|
+
const candidateNames = (candidateTestsByFile.get(symbol.file) ?? [])
|
|
385
|
+
.filter((entry) => entry.confidence !== "low")
|
|
386
|
+
.slice(0, 2)
|
|
387
|
+
.map((entry) => path.basename(entry.file));
|
|
388
|
+
const coverageSummary = hasCoverageData
|
|
389
|
+
? `Coverage currently exercises ${coveredLines}/${totalLines} changed line(s).`
|
|
390
|
+
: "No LCOV or Istanbul coverage data matched this symbol range.";
|
|
391
|
+
const fanIn = fanInByFile.get(fileIdentityKey(symbol.file)) ?? 0;
|
|
392
|
+
const confidence = confidenceFromSignals({
|
|
393
|
+
hasCoverageData,
|
|
394
|
+
coveredLines,
|
|
395
|
+
totalLines,
|
|
396
|
+
exported: symbol.exported,
|
|
397
|
+
fanIn,
|
|
398
|
+
kind: symbol.kind,
|
|
399
|
+
});
|
|
400
|
+
const suggestedCommand = inferTestCommand(candidateNames);
|
|
401
|
+
const details = candidateNames.length
|
|
402
|
+
? `Changed symbol has no discovered references in test files. ${coverageSummary} Candidate tests: ${candidateNames.join(", ")}. Fan-in for this file is ${fanIn}. Suggested command: ${suggestedCommand}`
|
|
403
|
+
: `Changed symbol has no discovered references in test files. ${coverageSummary} Fan-in for this file is ${fanIn}. Suggested command: ${suggestedCommand}`;
|
|
404
|
+
return {
|
|
405
|
+
file: symbol.file,
|
|
406
|
+
range: symbol.range,
|
|
407
|
+
kind: "untestedChange",
|
|
408
|
+
symbol: symbol.name,
|
|
409
|
+
details,
|
|
410
|
+
confidence,
|
|
411
|
+
};
|
|
412
|
+
});
|
|
413
|
+
for (const suggestion of suggestionEntries) {
|
|
414
|
+
if (suggestion)
|
|
415
|
+
suggestions.push(suggestion);
|
|
416
|
+
}
|
|
417
|
+
return suggestions;
|
|
418
|
+
}
|
|
419
|
+
function countParams(raw) {
|
|
420
|
+
const trimmed = raw.trim();
|
|
421
|
+
if (!trimmed)
|
|
422
|
+
return 0;
|
|
423
|
+
let count = 0;
|
|
424
|
+
let sawNonWhitespaceSinceLastComma = false;
|
|
425
|
+
let parenDepth = 0;
|
|
426
|
+
let bracketDepth = 0;
|
|
427
|
+
let braceDepth = 0;
|
|
428
|
+
let typeAngleDepth = 0;
|
|
429
|
+
let stringQuote = null;
|
|
430
|
+
let escaped = false;
|
|
431
|
+
let inTypeAnnotation = false;
|
|
432
|
+
for (let i = 0; i < trimmed.length; i += 1) {
|
|
433
|
+
const ch = trimmed[i];
|
|
434
|
+
if (!ch)
|
|
435
|
+
continue;
|
|
436
|
+
if (stringQuote) {
|
|
437
|
+
if (escaped) {
|
|
438
|
+
escaped = false;
|
|
439
|
+
continue;
|
|
440
|
+
}
|
|
441
|
+
if (ch === "\\") {
|
|
442
|
+
escaped = true;
|
|
443
|
+
continue;
|
|
444
|
+
}
|
|
445
|
+
if (ch === stringQuote) {
|
|
446
|
+
stringQuote = null;
|
|
447
|
+
}
|
|
448
|
+
continue;
|
|
449
|
+
}
|
|
450
|
+
if (ch === '"' || ch === "'" || ch === "`") {
|
|
451
|
+
stringQuote = ch;
|
|
452
|
+
escaped = false;
|
|
453
|
+
continue;
|
|
454
|
+
}
|
|
455
|
+
if (ch === "(") {
|
|
456
|
+
parenDepth += 1;
|
|
457
|
+
continue;
|
|
458
|
+
}
|
|
459
|
+
if (ch === ")") {
|
|
460
|
+
if (parenDepth > 0)
|
|
461
|
+
parenDepth -= 1;
|
|
462
|
+
continue;
|
|
463
|
+
}
|
|
464
|
+
if (ch === "[") {
|
|
465
|
+
bracketDepth += 1;
|
|
466
|
+
continue;
|
|
467
|
+
}
|
|
468
|
+
if (ch === "]") {
|
|
469
|
+
if (bracketDepth > 0)
|
|
470
|
+
bracketDepth -= 1;
|
|
471
|
+
continue;
|
|
472
|
+
}
|
|
473
|
+
if (ch === "{") {
|
|
474
|
+
braceDepth += 1;
|
|
475
|
+
continue;
|
|
476
|
+
}
|
|
477
|
+
if (ch === "}") {
|
|
478
|
+
if (braceDepth > 0)
|
|
479
|
+
braceDepth -= 1;
|
|
480
|
+
continue;
|
|
481
|
+
}
|
|
482
|
+
const atTopLevel = parenDepth === 0 && bracketDepth === 0 && braceDepth === 0 && typeAngleDepth === 0;
|
|
483
|
+
if (ch === ":") {
|
|
484
|
+
if (atTopLevel)
|
|
485
|
+
inTypeAnnotation = true;
|
|
486
|
+
continue;
|
|
487
|
+
}
|
|
488
|
+
if (ch === "=") {
|
|
489
|
+
if (atTopLevel)
|
|
490
|
+
inTypeAnnotation = false;
|
|
491
|
+
continue;
|
|
492
|
+
}
|
|
493
|
+
if (ch === "<") {
|
|
494
|
+
if (inTypeAnnotation)
|
|
495
|
+
typeAngleDepth += 1;
|
|
496
|
+
continue;
|
|
497
|
+
}
|
|
498
|
+
if (ch === ">") {
|
|
499
|
+
if (inTypeAnnotation && typeAngleDepth > 0)
|
|
500
|
+
typeAngleDepth -= 1;
|
|
501
|
+
continue;
|
|
502
|
+
}
|
|
503
|
+
if (ch === ",") {
|
|
504
|
+
if (atTopLevel && sawNonWhitespaceSinceLastComma) {
|
|
505
|
+
count += 1;
|
|
506
|
+
sawNonWhitespaceSinceLastComma = false;
|
|
507
|
+
}
|
|
508
|
+
inTypeAnnotation = false;
|
|
509
|
+
continue;
|
|
510
|
+
}
|
|
511
|
+
if (atTopLevel && !/\s/.test(ch)) {
|
|
512
|
+
sawNonWhitespaceSinceLastComma = true;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
if (sawNonWhitespaceSinceLastComma)
|
|
516
|
+
count += 1;
|
|
517
|
+
return count;
|
|
518
|
+
}
|
|
519
|
+
function countNewlines(text) {
|
|
520
|
+
let count = 0;
|
|
521
|
+
for (let index = 0; index < text.length; index += 1) {
|
|
522
|
+
if (text.charCodeAt(index) === 10)
|
|
523
|
+
count += 1;
|
|
524
|
+
}
|
|
525
|
+
return count;
|
|
526
|
+
}
|
|
527
|
+
function readBalancedParenContent(text, openParenIndex) {
|
|
528
|
+
let depth = 0;
|
|
529
|
+
let quote = null;
|
|
530
|
+
let escaping = false;
|
|
531
|
+
for (let index = openParenIndex; index < text.length; index += 1) {
|
|
532
|
+
const ch = text[index];
|
|
533
|
+
if (quote) {
|
|
534
|
+
if (escaping) {
|
|
535
|
+
escaping = false;
|
|
536
|
+
continue;
|
|
537
|
+
}
|
|
538
|
+
if (ch === "\\") {
|
|
539
|
+
escaping = true;
|
|
540
|
+
continue;
|
|
541
|
+
}
|
|
542
|
+
if (ch === quote)
|
|
543
|
+
quote = null;
|
|
544
|
+
continue;
|
|
545
|
+
}
|
|
546
|
+
if (ch === '"' || ch === "'" || ch === "`") {
|
|
547
|
+
quote = ch;
|
|
548
|
+
continue;
|
|
549
|
+
}
|
|
550
|
+
if (ch === "(") {
|
|
551
|
+
depth += 1;
|
|
552
|
+
continue;
|
|
553
|
+
}
|
|
554
|
+
if (ch === ")") {
|
|
555
|
+
depth -= 1;
|
|
556
|
+
if (!depth) {
|
|
557
|
+
return { content: text.slice(openParenIndex + 1, index), endIndex: index };
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
return null;
|
|
562
|
+
}
|
|
563
|
+
function functionSuffixStartsAfterParams(text, closeParenIndex) {
|
|
564
|
+
return /^\s*(?::|[{;])/.test(text.slice(closeParenIndex + 1));
|
|
565
|
+
}
|
|
566
|
+
function arrowSuffixStartsAfterParams(text, closeParenIndex) {
|
|
567
|
+
let parenDepth = 0;
|
|
568
|
+
let bracketDepth = 0;
|
|
569
|
+
let braceDepth = 0;
|
|
570
|
+
let angleDepth = 0;
|
|
571
|
+
let sawReturnTypeAnnotation = false;
|
|
572
|
+
for (let index = closeParenIndex + 1; index < text.length; index += 1) {
|
|
573
|
+
const ch = text[index];
|
|
574
|
+
if (!ch)
|
|
575
|
+
continue;
|
|
576
|
+
const atTopLevel = !parenDepth && !bracketDepth && !braceDepth && !angleDepth;
|
|
577
|
+
if (atTopLevel && ch === "=" && text[index + 1] === ">")
|
|
578
|
+
return true;
|
|
579
|
+
if (atTopLevel && (ch === ";" || ch === "\n" || ch === "\r"))
|
|
580
|
+
return false;
|
|
581
|
+
if (atTopLevel && ch === ":") {
|
|
582
|
+
sawReturnTypeAnnotation = true;
|
|
583
|
+
continue;
|
|
584
|
+
}
|
|
585
|
+
if (atTopLevel && !sawReturnTypeAnnotation && !/\s/.test(ch))
|
|
586
|
+
return false;
|
|
587
|
+
if (ch === "(") {
|
|
588
|
+
parenDepth += 1;
|
|
589
|
+
continue;
|
|
590
|
+
}
|
|
591
|
+
if (ch === ")") {
|
|
592
|
+
if (parenDepth)
|
|
593
|
+
parenDepth -= 1;
|
|
594
|
+
continue;
|
|
595
|
+
}
|
|
596
|
+
if (ch === "[") {
|
|
597
|
+
bracketDepth += 1;
|
|
598
|
+
continue;
|
|
599
|
+
}
|
|
600
|
+
if (ch === "]") {
|
|
601
|
+
if (bracketDepth)
|
|
602
|
+
bracketDepth -= 1;
|
|
603
|
+
continue;
|
|
604
|
+
}
|
|
605
|
+
if (ch === "{") {
|
|
606
|
+
braceDepth += 1;
|
|
607
|
+
continue;
|
|
608
|
+
}
|
|
609
|
+
if (ch === "}") {
|
|
610
|
+
if (braceDepth)
|
|
611
|
+
braceDepth -= 1;
|
|
612
|
+
continue;
|
|
613
|
+
}
|
|
614
|
+
if (ch === "<") {
|
|
615
|
+
angleDepth += 1;
|
|
616
|
+
continue;
|
|
617
|
+
}
|
|
618
|
+
if (ch === ">") {
|
|
619
|
+
if (angleDepth)
|
|
620
|
+
angleDepth -= 1;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
return false;
|
|
624
|
+
}
|
|
625
|
+
function collectExportSignaturesFromText(text, hunkIndex, startLine) {
|
|
626
|
+
const output = [];
|
|
627
|
+
const pushMatch = (match, name, rawParams) => {
|
|
628
|
+
output.push({
|
|
629
|
+
name,
|
|
630
|
+
paramCount: countParams(rawParams),
|
|
631
|
+
hunkIndex,
|
|
632
|
+
line: startLine + countNewlines(text.slice(0, match.index)),
|
|
633
|
+
});
|
|
634
|
+
};
|
|
635
|
+
const scanText = maskJsLikeCommentsAndStrings(text);
|
|
636
|
+
const functionRe = /^\s*export\s+(?:default\s+)?(?:async\s+)?function\s*(?:\*\s*)?(?:([A-Za-z_$][\w$]*))?(?:\s*<[^>]+>)?\s*\(/gm;
|
|
637
|
+
for (let match; (match = functionRe.exec(scanText));) {
|
|
638
|
+
const params = readBalancedParenContent(scanText, functionRe.lastIndex - 1);
|
|
639
|
+
if (params && functionSuffixStartsAfterParams(scanText, params.endIndex)) {
|
|
640
|
+
pushMatch(match, match[1] ?? "default", params.content);
|
|
641
|
+
functionRe.lastIndex = params.endIndex + 1;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
const arrowRe = /^\s*export\s+const\s+([A-Za-z_$][\w$]*)\s*=\s*(?:async\s*)?(?:<[^>]+>\s*)?\(/gm;
|
|
645
|
+
for (let match; (match = arrowRe.exec(scanText));) {
|
|
646
|
+
const name = match[1];
|
|
647
|
+
const params = readBalancedParenContent(scanText, arrowRe.lastIndex - 1);
|
|
648
|
+
if (name && params && arrowSuffixStartsAfterParams(scanText, params.endIndex)) {
|
|
649
|
+
pushMatch(match, name, params.content);
|
|
650
|
+
arrowRe.lastIndex = params.endIndex + 1;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
const singleParamArrowRe = /^\s*export\s+const\s+([A-Za-z_$][\w$]*)\s*=\s*(?:async\s*)?([A-Za-z_$][\w$]*)\s*=>/gm;
|
|
654
|
+
for (let match; (match = singleParamArrowRe.exec(scanText));) {
|
|
655
|
+
const name = match[1];
|
|
656
|
+
if (!name)
|
|
657
|
+
continue;
|
|
658
|
+
output.push({
|
|
659
|
+
name,
|
|
660
|
+
paramCount: 1,
|
|
661
|
+
hunkIndex,
|
|
662
|
+
line: startLine + countNewlines(text.slice(0, match.index)),
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
return output;
|
|
666
|
+
}
|
|
667
|
+
function detectExportSignatureChanges(change) {
|
|
668
|
+
const removed = [];
|
|
669
|
+
const added = [];
|
|
670
|
+
for (let hunkIndex = 0; hunkIndex < change.hunks.length; hunkIndex += 1) {
|
|
671
|
+
const hunk = change.hunks[hunkIndex];
|
|
672
|
+
const oldSideLines = [];
|
|
673
|
+
const newSideLines = [];
|
|
674
|
+
for (const rawLine of hunk.lines) {
|
|
675
|
+
if (rawLine.startsWith(" ")) {
|
|
676
|
+
const line = rawLine.slice(1);
|
|
677
|
+
oldSideLines.push(line);
|
|
678
|
+
newSideLines.push(line);
|
|
679
|
+
continue;
|
|
680
|
+
}
|
|
681
|
+
if (rawLine.startsWith("-")) {
|
|
682
|
+
oldSideLines.push(rawLine.slice(1));
|
|
683
|
+
continue;
|
|
684
|
+
}
|
|
685
|
+
if (rawLine.startsWith("+")) {
|
|
686
|
+
newSideLines.push(rawLine.slice(1));
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
removed.push(...collectExportSignaturesFromText(oldSideLines.join("\n"), hunkIndex, hunk.oldStart));
|
|
690
|
+
added.push(...collectExportSignaturesFromText(newSideLines.join("\n"), hunkIndex, hunk.newStart));
|
|
691
|
+
}
|
|
692
|
+
const addedByName = new Map();
|
|
693
|
+
const addedByHunk = new Map();
|
|
694
|
+
for (const entry of added) {
|
|
695
|
+
const byName = addedByName.get(entry.name);
|
|
696
|
+
if (byName)
|
|
697
|
+
byName.push(entry);
|
|
698
|
+
else
|
|
699
|
+
addedByName.set(entry.name, [entry]);
|
|
700
|
+
const byHunk = addedByHunk.get(entry.hunkIndex);
|
|
701
|
+
if (byHunk)
|
|
702
|
+
byHunk.push(entry);
|
|
703
|
+
else
|
|
704
|
+
addedByHunk.set(entry.hunkIndex, [entry]);
|
|
705
|
+
}
|
|
706
|
+
const bestAddedMatchForRemoved = (removedSig) => {
|
|
707
|
+
const sameName = addedByName.get(removedSig.name);
|
|
708
|
+
if (!sameName?.length)
|
|
709
|
+
return undefined;
|
|
710
|
+
let best = sameName[0];
|
|
711
|
+
let bestDistance = Number.POSITIVE_INFINITY;
|
|
712
|
+
for (const candidate of sameName) {
|
|
713
|
+
const hunkPenalty = candidate.hunkIndex === removedSig.hunkIndex ? 0 : 100_000;
|
|
714
|
+
const distance = hunkPenalty + Math.abs(candidate.line - removedSig.line);
|
|
715
|
+
if (distance < bestDistance) {
|
|
716
|
+
best = candidate;
|
|
717
|
+
bestDistance = distance;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
return best;
|
|
721
|
+
};
|
|
722
|
+
const output = [];
|
|
723
|
+
for (const removedSig of removed) {
|
|
724
|
+
const matched = bestAddedMatchForRemoved(removedSig);
|
|
725
|
+
if (matched && matched.paramCount !== removedSig.paramCount) {
|
|
726
|
+
output.push({
|
|
727
|
+
name: removedSig.name,
|
|
728
|
+
details: `Exported function signature changed from ${removedSig.paramCount} parameter(s) to ${matched.paramCount}. This is likely a breaking API change.`,
|
|
729
|
+
confidence: "high",
|
|
730
|
+
});
|
|
731
|
+
continue;
|
|
732
|
+
}
|
|
733
|
+
if (!matched && added.length) {
|
|
734
|
+
const candidates = addedByHunk.get(removedSig.hunkIndex) ?? [];
|
|
735
|
+
const candidate = candidates.find((entry) => Math.abs(entry.line - removedSig.line) <= 3);
|
|
736
|
+
const renameDetails = candidate
|
|
737
|
+
? `Exported symbol ${removedSig.name} appears to be removed or renamed (for example ${candidate.name}). Verify backward compatibility for downstream imports.`
|
|
738
|
+
: `Exported symbol ${removedSig.name} appears to be removed or renamed. Verify backward compatibility for downstream imports.`;
|
|
739
|
+
output.push({
|
|
740
|
+
name: removedSig.name,
|
|
741
|
+
details: renameDetails,
|
|
742
|
+
confidence: "medium",
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
return output;
|
|
747
|
+
}
|
|
748
|
+
async function loadCoverageByFile(projectRoot, options) {
|
|
749
|
+
const coverage = new Map();
|
|
750
|
+
const allPaths = [...(options?.lcovPaths ?? []), ...(options?.coveragePaths ?? [])];
|
|
751
|
+
if (!allPaths.length)
|
|
752
|
+
return coverage;
|
|
753
|
+
const ensureFileCoverage = (filePath) => {
|
|
754
|
+
const existing = coverage.get(filePath);
|
|
755
|
+
if (existing)
|
|
756
|
+
return existing;
|
|
757
|
+
const next = {
|
|
758
|
+
allLines: new Set(),
|
|
759
|
+
coveredLines: new Set(),
|
|
760
|
+
};
|
|
761
|
+
coverage.set(filePath, next);
|
|
762
|
+
return next;
|
|
763
|
+
};
|
|
764
|
+
const parseLcovText = (text) => {
|
|
765
|
+
let currentFile = null;
|
|
766
|
+
for (const rawLine of text.split(/\r?\n/)) {
|
|
767
|
+
if (rawLine.startsWith("SF:")) {
|
|
768
|
+
const filePath = rawLine.slice(3).trim();
|
|
769
|
+
currentFile = filePath ? normalizeImpactFilePath(projectRoot, filePath) : null;
|
|
770
|
+
continue;
|
|
771
|
+
}
|
|
772
|
+
if (!currentFile || !rawLine.startsWith("DA:"))
|
|
773
|
+
continue;
|
|
774
|
+
const parts = rawLine.slice(3).split(",");
|
|
775
|
+
const lineNo = Number(parts[0]);
|
|
776
|
+
const hits = Number(parts[1]);
|
|
777
|
+
if (!Number.isInteger(lineNo) || lineNo <= 0)
|
|
778
|
+
continue;
|
|
779
|
+
const fileCoverage = ensureFileCoverage(currentFile);
|
|
780
|
+
fileCoverage.allLines.add(lineNo);
|
|
781
|
+
if (Number.isFinite(hits) && hits > 0) {
|
|
782
|
+
fileCoverage.coveredLines.add(lineNo);
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
};
|
|
786
|
+
const parseIstanbulJson = (text) => {
|
|
787
|
+
let parsed;
|
|
788
|
+
try {
|
|
789
|
+
parsed = JSON.parse(text);
|
|
790
|
+
}
|
|
791
|
+
catch {
|
|
792
|
+
return;
|
|
793
|
+
}
|
|
794
|
+
if (!parsed || typeof parsed !== "object")
|
|
795
|
+
return;
|
|
796
|
+
const entries = Object.entries(parsed);
|
|
797
|
+
for (const [fileKey, value] of entries) {
|
|
798
|
+
if (!value || typeof value !== "object")
|
|
799
|
+
continue;
|
|
800
|
+
const statementMap = value.statementMap;
|
|
801
|
+
const statements = value.s;
|
|
802
|
+
if (!statementMap || !statements)
|
|
803
|
+
continue;
|
|
804
|
+
if (typeof statementMap !== "object" || typeof statements !== "object") {
|
|
805
|
+
continue;
|
|
806
|
+
}
|
|
807
|
+
const normalizedFile = normalizeImpactFilePath(projectRoot, fileKey);
|
|
808
|
+
const fileCoverage = ensureFileCoverage(normalizedFile);
|
|
809
|
+
const mapEntries = Object.entries(statementMap);
|
|
810
|
+
for (const [statementId, rangeValue] of mapEntries) {
|
|
811
|
+
if (!rangeValue || typeof rangeValue !== "object")
|
|
812
|
+
continue;
|
|
813
|
+
const start = rangeValue.start;
|
|
814
|
+
const end = rangeValue.end;
|
|
815
|
+
const startLineRaw = start?.line;
|
|
816
|
+
const endLineRaw = end?.line;
|
|
817
|
+
if (!Number.isInteger(startLineRaw) || !Number.isInteger(endLineRaw)) {
|
|
818
|
+
continue;
|
|
819
|
+
}
|
|
820
|
+
const startLine = Number(startLineRaw);
|
|
821
|
+
const endLine = Number(endLineRaw);
|
|
822
|
+
const hitsRaw = statements[statementId];
|
|
823
|
+
const hits = typeof hitsRaw === "number" ? hitsRaw : 0;
|
|
824
|
+
for (let line = startLine; line <= endLine; line += 1) {
|
|
825
|
+
fileCoverage.allLines.add(line);
|
|
826
|
+
if (hits > 0)
|
|
827
|
+
fileCoverage.coveredLines.add(line);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
for (const coveragePath of allPaths) {
|
|
833
|
+
const abs = resolveFilePathFromRoot(projectRoot, coveragePath);
|
|
834
|
+
let text = "";
|
|
835
|
+
try {
|
|
836
|
+
text = await fs.readFile(abs, "utf8");
|
|
837
|
+
}
|
|
838
|
+
catch {
|
|
839
|
+
continue;
|
|
840
|
+
}
|
|
841
|
+
const isJson = abs.toLowerCase().endsWith(".json");
|
|
842
|
+
if (isJson)
|
|
843
|
+
parseIstanbulJson(text);
|
|
844
|
+
else
|
|
845
|
+
parseLcovText(text);
|
|
846
|
+
}
|
|
847
|
+
return coverage;
|
|
848
|
+
}
|
|
849
|
+
function countLinesForRange(coverage, range, linesForCoverage) {
|
|
850
|
+
if (!coverage)
|
|
851
|
+
return 0;
|
|
852
|
+
let count = 0;
|
|
853
|
+
const lines = linesForCoverage(coverage);
|
|
854
|
+
for (let line = range.start.line; line <= range.end.line; line += 1) {
|
|
855
|
+
if (lines.has(line))
|
|
856
|
+
count += 1;
|
|
857
|
+
}
|
|
858
|
+
return count;
|
|
859
|
+
}
|
|
860
|
+
function countCoveredLinesForRange(coverage, range) {
|
|
861
|
+
return countLinesForRange(coverage, range, (entry) => entry.coveredLines);
|
|
862
|
+
}
|
|
863
|
+
function countTotalLinesForRange(coverage, range) {
|
|
864
|
+
return countLinesForRange(coverage, range, (entry) => entry.allLines);
|
|
865
|
+
}
|
|
866
|
+
export async function collectImpactReportSuggestions(projectRoot, index, options, normalizedChanges, changedSymbols) {
|
|
867
|
+
const suggestions = options.verifyReferences
|
|
868
|
+
? await collectImpactSuggestions(index, projectRoot, normalizedChanges, options)
|
|
869
|
+
: [];
|
|
870
|
+
const configAndBreaking = options.configImpactRules || options.detectBreakingChanges
|
|
871
|
+
? collectConfigAndBreakingSuggestions(index, projectRoot, normalizedChanges, changedSymbols, {
|
|
872
|
+
configImpactRules: !!options.configImpactRules,
|
|
873
|
+
detectBreakingChanges: !!options.detectBreakingChanges,
|
|
874
|
+
})
|
|
875
|
+
: [];
|
|
876
|
+
const coverageSuggestions = options.testCoverageSuggestions
|
|
877
|
+
? await collectUntestedChangeSuggestions(index, changedSymbols, projectRoot, undefined, {
|
|
878
|
+
...(options.lcovPaths ? { lcovPaths: options.lcovPaths } : {}),
|
|
879
|
+
...(options.coveragePaths ? { coveragePaths: options.coveragePaths } : {}),
|
|
880
|
+
...(options.testCommandTemplate ? { testCommandTemplate: options.testCommandTemplate } : {}),
|
|
881
|
+
...(options.testPatterns ? { testPatterns: options.testPatterns } : {}),
|
|
882
|
+
})
|
|
883
|
+
: [];
|
|
884
|
+
return [...suggestions, ...configAndBreaking, ...coverageSuggestions];
|
|
885
|
+
}
|
|
886
|
+
//# sourceMappingURL=report-suggestions.js.map
|