@samchon/graph 0.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 +129 -0
- package/lib/AsyncSamchonGraphSource.d.ts +2 -0
- package/lib/AsyncSamchonGraphSource.js +3 -0
- package/lib/AsyncSamchonGraphSource.js.map +1 -0
- package/lib/SamchonGraphApplication.d.ts +10 -0
- package/lib/SamchonGraphApplication.js +64 -0
- package/lib/SamchonGraphApplication.js.map +1 -0
- package/lib/SamchonGraphSource.d.ts +2 -0
- package/lib/SamchonGraphSource.js +3 -0
- package/lib/SamchonGraphSource.js.map +1 -0
- package/lib/application.d.ts +3 -0
- package/lib/application.js +20 -0
- package/lib/application.js.map +1 -0
- package/lib/bin.d.ts +2 -0
- package/lib/bin.js +8 -0
- package/lib/bin.js.map +1 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/indexer/IBuildGraphOptions.d.ts +41 -0
- package/lib/indexer/IBuildGraphOptions.js +3 -0
- package/lib/indexer/IBuildGraphOptions.js.map +1 -0
- package/lib/indexer/IIndexerResult.d.ts +5 -0
- package/lib/indexer/IIndexerResult.js +3 -0
- package/lib/indexer/IIndexerResult.js.map +1 -0
- package/lib/indexer/ILanguageSpec.d.ts +10 -0
- package/lib/indexer/ILanguageSpec.js +3 -0
- package/lib/indexer/ILanguageSpec.js.map +1 -0
- package/lib/indexer/LANGUAGE_SPECS.d.ts +2 -0
- package/lib/indexer/LANGUAGE_SPECS.js +114 -0
- package/lib/indexer/LANGUAGE_SPECS.js.map +1 -0
- package/lib/indexer/allExtensions.d.ts +2 -0
- package/lib/indexer/allExtensions.js +16 -0
- package/lib/indexer/allExtensions.js.map +1 -0
- package/lib/indexer/buildGraph.d.ts +3 -0
- package/lib/indexer/buildGraph.js +10 -0
- package/lib/indexer/buildGraph.js.map +1 -0
- package/lib/indexer/buildGraphDump.d.ts +3 -0
- package/lib/indexer/buildGraphDump.js +394 -0
- package/lib/indexer/buildGraphDump.js.map +1 -0
- package/lib/indexer/buildLspGraph.d.ts +3 -0
- package/lib/indexer/buildLspGraph.js +617 -0
- package/lib/indexer/buildLspGraph.js.map +1 -0
- package/lib/indexer/buildStaticGraph.d.ts +3 -0
- package/lib/indexer/buildStaticGraph.js +479 -0
- package/lib/indexer/buildStaticGraph.js.map +1 -0
- package/lib/indexer/decoratorsAbove.d.ts +1 -0
- package/lib/indexer/decoratorsAbove.js +14 -0
- package/lib/indexer/decoratorsAbove.js.map +1 -0
- package/lib/indexer/languageOf.d.ts +2 -0
- package/lib/indexer/languageOf.js +19 -0
- package/lib/indexer/languageOf.js.map +1 -0
- package/lib/indexer/languages.d.ts +5 -0
- package/lib/indexer/languages.js +22 -0
- package/lib/indexer/languages.js.map +1 -0
- package/lib/indexer/lspIndexer.d.ts +1 -0
- package/lib/indexer/lspIndexer.js +18 -0
- package/lib/indexer/lspIndexer.js.map +1 -0
- package/lib/indexer/overrideEdges.d.ts +2 -0
- package/lib/indexer/overrideEdges.js +45 -0
- package/lib/indexer/overrideEdges.js.map +1 -0
- package/lib/indexer/resolveType.d.ts +2 -0
- package/lib/indexer/resolveType.js +11 -0
- package/lib/indexer/resolveType.js.map +1 -0
- package/lib/indexer/specOf.d.ts +3 -0
- package/lib/indexer/specOf.js +8 -0
- package/lib/indexer/specOf.js.map +1 -0
- package/lib/indexer/staticIndexer.d.ts +1 -0
- package/lib/indexer/staticIndexer.js +18 -0
- package/lib/indexer/staticIndexer.js.map +1 -0
- package/lib/indexer/supertypesOf.d.ts +4 -0
- package/lib/indexer/supertypesOf.js +48 -0
- package/lib/indexer/supertypesOf.js.map +1 -0
- package/lib/lsp/DocumentSymbolResult.d.ts +3 -0
- package/lib/lsp/DocumentSymbolResult.js +3 -0
- package/lib/lsp/DocumentSymbolResult.js.map +1 -0
- package/lib/lsp/IDiagnostic.d.ts +8 -0
- package/lib/lsp/IDiagnostic.js +3 -0
- package/lib/lsp/IDiagnostic.js.map +1 -0
- package/lib/lsp/IDocumentSymbol.d.ts +9 -0
- package/lib/lsp/IDocumentSymbol.js +3 -0
- package/lib/lsp/IDocumentSymbol.js.map +1 -0
- package/lib/lsp/ILocation.d.ts +5 -0
- package/lib/lsp/ILocation.js +3 -0
- package/lib/lsp/ILocation.js.map +1 -0
- package/lib/lsp/IPosition.d.ts +4 -0
- package/lib/lsp/IPosition.js +3 -0
- package/lib/lsp/IPosition.js.map +1 -0
- package/lib/lsp/IRange.d.ts +5 -0
- package/lib/lsp/IRange.js +3 -0
- package/lib/lsp/IRange.js.map +1 -0
- package/lib/lsp/ISymbolInformation.d.ts +7 -0
- package/lib/lsp/ISymbolInformation.js +3 -0
- package/lib/lsp/ISymbolInformation.js.map +1 -0
- package/lib/lsp/LspClient.d.ts +17 -0
- package/lib/lsp/LspClient.js +140 -0
- package/lib/lsp/LspClient.js.map +1 -0
- package/lib/lsp/isDocumentSymbol.d.ts +3 -0
- package/lib/lsp/isDocumentSymbol.js +7 -0
- package/lib/lsp/isDocumentSymbol.js.map +1 -0
- package/lib/lsp/types.d.ts +8 -0
- package/lib/lsp/types.js +25 -0
- package/lib/lsp/types.js.map +1 -0
- package/lib/mcp/createServer.d.ts +3 -0
- package/lib/mcp/createServer.js +1947 -0
- package/lib/mcp/createServer.js.map +1 -0
- package/lib/mcp/startServer.d.ts +5 -0
- package/lib/mcp/startServer.js +23 -0
- package/lib/mcp/startServer.js.map +1 -0
- package/lib/model/GraphMemory.d.ts +25 -0
- package/lib/model/GraphMemory.js +141 -0
- package/lib/model/GraphMemory.js.map +1 -0
- package/lib/operations/bound.d.ts +1 -0
- package/lib/operations/bound.js +8 -0
- package/lib/operations/bound.js.map +1 -0
- package/lib/operations/common.d.ts +15 -0
- package/lib/operations/common.js +32 -0
- package/lib/operations/common.js.map +1 -0
- package/lib/operations/compareEdges.d.ts +2 -0
- package/lib/operations/compareEdges.js +10 -0
- package/lib/operations/compareEdges.js.map +1 -0
- package/lib/operations/edgeRank.d.ts +1 -0
- package/lib/operations/edgeRank.js +25 -0
- package/lib/operations/edgeRank.js.map +1 -0
- package/lib/operations/isExecution.d.ts +1 -0
- package/lib/operations/isExecution.js +11 -0
- package/lib/operations/isExecution.js.map +1 -0
- package/lib/operations/isPublicApiNoisePath.d.ts +2 -0
- package/lib/operations/isPublicApiNoisePath.js +11 -0
- package/lib/operations/isPublicApiNoisePath.js.map +1 -0
- package/lib/operations/isStructural.d.ts +1 -0
- package/lib/operations/isStructural.js +7 -0
- package/lib/operations/isStructural.js.map +1 -0
- package/lib/operations/isSupportPath.d.ts +2 -0
- package/lib/operations/isSupportPath.js +16 -0
- package/lib/operations/isSupportPath.js.map +1 -0
- package/lib/operations/isTestPath.d.ts +1 -0
- package/lib/operations/isTestPath.js +9 -0
- package/lib/operations/isTestPath.js.map +1 -0
- package/lib/operations/isTypeEdge.d.ts +1 -0
- package/lib/operations/isTypeEdge.js +11 -0
- package/lib/operations/isTypeEdge.js.map +1 -0
- package/lib/operations/publicEvidence.d.ts +2 -0
- package/lib/operations/publicEvidence.js +13 -0
- package/lib/operations/publicEvidence.js.map +1 -0
- package/lib/operations/referencesFromEdges.d.ts +3 -0
- package/lib/operations/referencesFromEdges.js +38 -0
- package/lib/operations/referencesFromEdges.js.map +1 -0
- package/lib/operations/resolveHandle.d.ts +6 -0
- package/lib/operations/resolveHandle.js +28 -0
- package/lib/operations/resolveHandle.js.map +1 -0
- package/lib/operations/resultGuide.d.ts +1 -0
- package/lib/operations/resultGuide.js +7 -0
- package/lib/operations/resultGuide.js.map +1 -0
- package/lib/operations/resultNext.d.ts +2 -0
- package/lib/operations/resultNext.js +7 -0
- package/lib/operations/resultNext.js.map +1 -0
- package/lib/operations/runDetails.d.ts +8 -0
- package/lib/operations/runDetails.js +190 -0
- package/lib/operations/runDetails.js.map +1 -0
- package/lib/operations/runEntrypoints.d.ts +9 -0
- package/lib/operations/runEntrypoints.js +122 -0
- package/lib/operations/runEntrypoints.js.map +1 -0
- package/lib/operations/runLookup.d.ts +10 -0
- package/lib/operations/runLookup.js +229 -0
- package/lib/operations/runLookup.js.map +1 -0
- package/lib/operations/runOverview.d.ts +10 -0
- package/lib/operations/runOverview.js +142 -0
- package/lib/operations/runOverview.js.map +1 -0
- package/lib/operations/runTour.d.ts +8 -0
- package/lib/operations/runTour.js +539 -0
- package/lib/operations/runTour.js.map +1 -0
- package/lib/operations/runTrace.d.ts +10 -0
- package/lib/operations/runTrace.js +283 -0
- package/lib/operations/runTrace.js.map +1 -0
- package/lib/operations/signatureOf.d.ts +2 -0
- package/lib/operations/signatureOf.js +45 -0
- package/lib/operations/signatureOf.js.map +1 -0
- package/lib/operations/subwords.d.ts +1 -0
- package/lib/operations/subwords.js +12 -0
- package/lib/operations/subwords.js.map +1 -0
- package/lib/operations/summaryOf.d.ts +2 -0
- package/lib/operations/summaryOf.js +24 -0
- package/lib/operations/summaryOf.js.map +1 -0
- package/lib/runGraph.d.ts +1 -0
- package/lib/runGraph.js +165 -0
- package/lib/runGraph.js.map +1 -0
- package/lib/structures/GraphEdgeKind.d.ts +10 -0
- package/lib/structures/GraphEdgeKind.js +3 -0
- package/lib/structures/GraphEdgeKind.js.map +1 -0
- package/lib/structures/GraphLanguage.d.ts +2 -0
- package/lib/structures/GraphLanguage.js +3 -0
- package/lib/structures/GraphLanguage.js.map +1 -0
- package/lib/structures/GraphNodeKind.d.ts +11 -0
- package/lib/structures/GraphNodeKind.js +3 -0
- package/lib/structures/GraphNodeKind.js.map +1 -0
- package/lib/structures/IGraphDecorator.d.ts +22 -0
- package/lib/structures/IGraphDecorator.js +3 -0
- package/lib/structures/IGraphDecorator.js.map +1 -0
- package/lib/structures/IGraphDetails.d.ts +126 -0
- package/lib/structures/IGraphDetails.js +3 -0
- package/lib/structures/IGraphDetails.js.map +1 -0
- package/lib/structures/IGraphDiagnostic.d.ts +23 -0
- package/lib/structures/IGraphDiagnostic.js +3 -0
- package/lib/structures/IGraphDiagnostic.js.map +1 -0
- package/lib/structures/IGraphDump.d.ts +37 -0
- package/lib/structures/IGraphDump.js +3 -0
- package/lib/structures/IGraphDump.js.map +1 -0
- package/lib/structures/IGraphEdge.d.ts +20 -0
- package/lib/structures/IGraphEdge.js +3 -0
- package/lib/structures/IGraphEdge.js.map +1 -0
- package/lib/structures/IGraphEntrypoints.d.ts +57 -0
- package/lib/structures/IGraphEntrypoints.js +3 -0
- package/lib/structures/IGraphEntrypoints.js.map +1 -0
- package/lib/structures/IGraphEscape.d.ts +40 -0
- package/lib/structures/IGraphEscape.js +3 -0
- package/lib/structures/IGraphEscape.js.map +1 -0
- package/lib/structures/IGraphEvidence.d.ts +24 -0
- package/lib/structures/IGraphEvidence.js +3 -0
- package/lib/structures/IGraphEvidence.js.map +1 -0
- package/lib/structures/IGraphLookup.d.ts +66 -0
- package/lib/structures/IGraphLookup.js +3 -0
- package/lib/structures/IGraphLookup.js.map +1 -0
- package/lib/structures/IGraphNext.d.ts +15 -0
- package/lib/structures/IGraphNext.js +3 -0
- package/lib/structures/IGraphNext.js.map +1 -0
- package/lib/structures/IGraphNode.d.ts +62 -0
- package/lib/structures/IGraphNode.js +3 -0
- package/lib/structures/IGraphNode.js.map +1 -0
- package/lib/structures/IGraphOverview.d.ts +100 -0
- package/lib/structures/IGraphOverview.js +3 -0
- package/lib/structures/IGraphOverview.js.map +1 -0
- package/lib/structures/IGraphTour.d.ts +54 -0
- package/lib/structures/IGraphTour.js +3 -0
- package/lib/structures/IGraphTour.js.map +1 -0
- package/lib/structures/IGraphTrace.d.ts +126 -0
- package/lib/structures/IGraphTrace.js +3 -0
- package/lib/structures/IGraphTrace.js.map +1 -0
- package/lib/structures/ISamchonGraphApplication.d.ts +162 -0
- package/lib/structures/ISamchonGraphApplication.js +3 -0
- package/lib/structures/ISamchonGraphApplication.js.map +1 -0
- package/lib/structures/index.d.ts +18 -0
- package/lib/structures/index.js +35 -0
- package/lib/structures/index.js.map +1 -0
- package/lib/structures.d.ts +1 -0
- package/lib/structures.js +18 -0
- package/lib/structures.js.map +1 -0
- package/lib/utils/DEFAULT_IGNORES.d.ts +1 -0
- package/lib/utils/DEFAULT_IGNORES.js +39 -0
- package/lib/utils/DEFAULT_IGNORES.js.map +1 -0
- package/lib/utils/IWalkOptions.d.ts +5 -0
- package/lib/utils/IWalkOptions.js +3 -0
- package/lib/utils/IWalkOptions.js.map +1 -0
- package/lib/utils/basename.d.ts +1 -0
- package/lib/utils/basename.js +10 -0
- package/lib/utils/basename.js.map +1 -0
- package/lib/utils/dirname.d.ts +1 -0
- package/lib/utils/dirname.js +10 -0
- package/lib/utils/dirname.js.map +1 -0
- package/lib/utils/fileFromUri.d.ts +1 -0
- package/lib/utils/fileFromUri.js +20 -0
- package/lib/utils/fileFromUri.js.map +1 -0
- package/lib/utils/fileUri.d.ts +1 -0
- package/lib/utils/fileUri.js +19 -0
- package/lib/utils/fileUri.js.map +1 -0
- package/lib/utils/fs.d.ts +6 -0
- package/lib/utils/fs.js +23 -0
- package/lib/utils/fs.js.map +1 -0
- package/lib/utils/isSubPath.d.ts +1 -0
- package/lib/utils/isSubPath.js +15 -0
- package/lib/utils/isSubPath.js.map +1 -0
- package/lib/utils/normalizePath.d.ts +1 -0
- package/lib/utils/normalizePath.js +7 -0
- package/lib/utils/normalizePath.js.map +1 -0
- package/lib/utils/path.d.ts +7 -0
- package/lib/utils/path.js +24 -0
- package/lib/utils/path.js.map +1 -0
- package/lib/utils/projectRelative.d.ts +1 -0
- package/lib/utils/projectRelative.js +9 -0
- package/lib/utils/projectRelative.js.map +1 -0
- package/lib/utils/readLines.d.ts +1 -0
- package/lib/utils/readLines.js +8 -0
- package/lib/utils/readLines.js.map +1 -0
- package/lib/utils/readText.d.ts +1 -0
- package/lib/utils/readText.js +17 -0
- package/lib/utils/readText.js.map +1 -0
- package/lib/utils/relativePath.d.ts +1 -0
- package/lib/utils/relativePath.js +12 -0
- package/lib/utils/relativePath.js.map +1 -0
- package/lib/utils/walkSourceFiles.d.ts +2 -0
- package/lib/utils/walkSourceFiles.js +44 -0
- package/lib/utils/walkSourceFiles.js.map +1 -0
- package/package.json +55 -0
- package/src/AsyncSamchonGraphSource.ts +5 -0
- package/src/SamchonGraphApplication.ts +74 -0
- package/src/SamchonGraphSource.ts +3 -0
- package/src/application.ts +3 -0
- package/src/bin.ts +6 -0
- package/src/index.ts +13 -0
- package/src/indexer/IBuildGraphOptions.ts +42 -0
- package/src/indexer/IIndexerResult.ts +6 -0
- package/src/indexer/ILanguageSpec.ts +11 -0
- package/src/indexer/LANGUAGE_SPECS.ts +112 -0
- package/src/indexer/allExtensions.ts +12 -0
- package/src/indexer/buildGraph.ts +10 -0
- package/src/indexer/buildGraphDump.ts +29 -0
- package/src/indexer/buildLspGraph.ts +710 -0
- package/src/indexer/buildStaticGraph.ts +507 -0
- package/src/indexer/decoratorsAbove.ts +9 -0
- package/src/indexer/languageOf.ts +13 -0
- package/src/indexer/languages.ts +5 -0
- package/src/indexer/lspIndexer.ts +1 -0
- package/src/indexer/overrideEdges.ts +42 -0
- package/src/indexer/resolveType.ts +14 -0
- package/src/indexer/specOf.ts +7 -0
- package/src/indexer/staticIndexer.ts +1 -0
- package/src/indexer/supertypesOf.ts +43 -0
- package/src/lsp/DocumentSymbolResult.ts +4 -0
- package/src/lsp/IDiagnostic.ts +9 -0
- package/src/lsp/IDocumentSymbol.ts +10 -0
- package/src/lsp/ILocation.ts +6 -0
- package/src/lsp/IPosition.ts +4 -0
- package/src/lsp/IRange.ts +6 -0
- package/src/lsp/ISymbolInformation.ts +8 -0
- package/src/lsp/LspClient.ts +165 -0
- package/src/lsp/isDocumentSymbol.ts +8 -0
- package/src/lsp/types.ts +8 -0
- package/src/mcp/createServer.ts +23 -0
- package/src/mcp/startServer.ts +23 -0
- package/src/model/GraphMemory.ts +165 -0
- package/src/operations/bound.ts +9 -0
- package/src/operations/common.ts +15 -0
- package/src/operations/compareEdges.ts +10 -0
- package/src/operations/edgeRank.ts +23 -0
- package/src/operations/isExecution.ts +9 -0
- package/src/operations/isPublicApiNoisePath.ts +10 -0
- package/src/operations/isStructural.ts +3 -0
- package/src/operations/isSupportPath.ts +16 -0
- package/src/operations/isTestPath.ts +7 -0
- package/src/operations/isTypeEdge.ts +9 -0
- package/src/operations/publicEvidence.ts +11 -0
- package/src/operations/referencesFromEdges.ts +37 -0
- package/src/operations/resolveHandle.ts +27 -0
- package/src/operations/resultGuide.ts +3 -0
- package/src/operations/resultNext.ts +9 -0
- package/src/operations/runDetails.ts +240 -0
- package/src/operations/runEntrypoints.ts +153 -0
- package/src/operations/runLookup.ts +269 -0
- package/src/operations/runOverview.ts +158 -0
- package/src/operations/runTour.ts +582 -0
- package/src/operations/runTrace.ts +339 -0
- package/src/operations/signatureOf.ts +40 -0
- package/src/operations/subwords.ts +8 -0
- package/src/operations/summaryOf.ts +21 -0
- package/src/runGraph.ts +144 -0
- package/src/structures/GraphEdgeKind.ts +24 -0
- package/src/structures/GraphLanguage.ts +21 -0
- package/src/structures/GraphNodeKind.ts +27 -0
- package/src/structures/IGraphDecorator.ts +25 -0
- package/src/structures/IGraphDetails.ts +153 -0
- package/src/structures/IGraphDiagnostic.ts +29 -0
- package/src/structures/IGraphDump.ts +45 -0
- package/src/structures/IGraphEdge.ts +24 -0
- package/src/structures/IGraphEntrypoints.ts +70 -0
- package/src/structures/IGraphEscape.ts +49 -0
- package/src/structures/IGraphEvidence.ts +29 -0
- package/src/structures/IGraphLookup.ts +80 -0
- package/src/structures/IGraphNext.ts +23 -0
- package/src/structures/IGraphNode.ts +76 -0
- package/src/structures/IGraphOverview.ts +121 -0
- package/src/structures/IGraphTour.ts +68 -0
- package/src/structures/IGraphTrace.ts +154 -0
- package/src/structures/ISamchonGraphApplication.ts +186 -0
- package/src/structures/index.ts +18 -0
- package/src/structures.ts +1 -0
- package/src/utils/DEFAULT_IGNORES.ts +35 -0
- package/src/utils/IWalkOptions.ts +5 -0
- package/src/utils/basename.ts +7 -0
- package/src/utils/dirname.ts +7 -0
- package/src/utils/fileFromUri.ts +14 -0
- package/src/utils/fileUri.ts +13 -0
- package/src/utils/fs.ts +6 -0
- package/src/utils/isSubPath.ts +9 -0
- package/src/utils/normalizePath.ts +3 -0
- package/src/utils/path.ts +7 -0
- package/src/utils/projectRelative.ts +6 -0
- package/src/utils/readLines.ts +5 -0
- package/src/utils/readText.ts +10 -0
- package/src/utils/relativePath.ts +7 -0
- package/src/utils/walkSourceFiles.ts +35 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { GraphLanguage } from "./GraphLanguage";
|
|
2
|
+
import { IGraphDiagnostic } from "./IGraphDiagnostic";
|
|
3
|
+
import { IGraphEvidence } from "./IGraphEvidence";
|
|
4
|
+
import { IGraphNext } from "./IGraphNext";
|
|
5
|
+
/** A compact, source-read-free project map for broad orientation only. */
|
|
6
|
+
export interface IGraphOverview {
|
|
7
|
+
/** Discriminator for source-free project overview. */
|
|
8
|
+
type: "overview";
|
|
9
|
+
/** Absolute project root. */
|
|
10
|
+
project: string;
|
|
11
|
+
/** Languages present in the project. */
|
|
12
|
+
languages: GraphLanguage[];
|
|
13
|
+
/** Size of the graph. */
|
|
14
|
+
counts: IGraphOverview.ICounts;
|
|
15
|
+
/** Folder layering, largest first. */
|
|
16
|
+
layers?: IGraphOverview.ILayer[];
|
|
17
|
+
/** Highest-dependency symbols, busiest first. */
|
|
18
|
+
hotspots?: IGraphOverview.IHotspot[];
|
|
19
|
+
/** Exported API symbols, most-depended-on first. */
|
|
20
|
+
publicApi?: IGraphOverview.IPublicApi[];
|
|
21
|
+
/** Index diagnostics, when any. */
|
|
22
|
+
diagnostics?: IGraphDiagnostic[];
|
|
23
|
+
/** How to use this source-free result next. */
|
|
24
|
+
next: IGraphNext;
|
|
25
|
+
/** Human-readable compatibility note mirroring `next`. */
|
|
26
|
+
guide: string;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace IGraphOverview {
|
|
29
|
+
/** Which broad architecture facets `overview` should return. */
|
|
30
|
+
interface IRequest {
|
|
31
|
+
/** Discriminator for source-free project overview. */
|
|
32
|
+
type: "overview";
|
|
33
|
+
/**
|
|
34
|
+
* The facet to project, or `all` for every facet. `layers` is the folder
|
|
35
|
+
* layering, `hotspots` the highest-dependency symbols, `publicApi` the
|
|
36
|
+
* exported API symbols ranked by how depended-on they are.
|
|
37
|
+
*
|
|
38
|
+
* Use this only for broad public API or layer orientation. For behavior,
|
|
39
|
+
* lifecycle, request-flow, rendering-flow, validation-flow, caller, or
|
|
40
|
+
* dependency questions, use `entrypoints` then `trace` instead.
|
|
41
|
+
*
|
|
42
|
+
* @default "all"
|
|
43
|
+
*/
|
|
44
|
+
aspect?: "all" | "layers" | "hotspots" | "publicApi" | "diagnostics";
|
|
45
|
+
}
|
|
46
|
+
/** Size of the graph by node/edge totals and per-kind node counts. */
|
|
47
|
+
interface ICounts {
|
|
48
|
+
/** Number of source file container nodes. */
|
|
49
|
+
files: number;
|
|
50
|
+
/** Total node count, including declarations and file containers. */
|
|
51
|
+
nodes: number;
|
|
52
|
+
/** Total edge count, including structural edges. */
|
|
53
|
+
edges: number;
|
|
54
|
+
/** Node count per kind. */
|
|
55
|
+
byKind: Record<string, number>;
|
|
56
|
+
/** Node count per language. */
|
|
57
|
+
byLanguage: Record<string, number>;
|
|
58
|
+
}
|
|
59
|
+
/** One folder layer: its source files and export surface. */
|
|
60
|
+
interface ILayer {
|
|
61
|
+
/** Directory, project-relative. */
|
|
62
|
+
dir: string;
|
|
63
|
+
/** Distinct source files under it. */
|
|
64
|
+
files: number;
|
|
65
|
+
/** Exported symbols declared under it. */
|
|
66
|
+
exported: number;
|
|
67
|
+
/** Languages present under it. */
|
|
68
|
+
languages: GraphLanguage[];
|
|
69
|
+
}
|
|
70
|
+
/** A compact symbol coordinate that can be passed to deeper graph tools. */
|
|
71
|
+
interface INode {
|
|
72
|
+
/** Stable handle for `details` or `trace`. */
|
|
73
|
+
id: string;
|
|
74
|
+
/** The symbol's qualified name when available. */
|
|
75
|
+
name: string;
|
|
76
|
+
/** Its declaration kind (`class`, `interface`, `function`, ...). */
|
|
77
|
+
kind: string;
|
|
78
|
+
/** Language the symbol is written in. */
|
|
79
|
+
language: GraphLanguage;
|
|
80
|
+
/** Project-relative path of the file that declares it. */
|
|
81
|
+
file: string;
|
|
82
|
+
/** 1-based declaration line, when known. */
|
|
83
|
+
line?: number;
|
|
84
|
+
/** Source span of the declaration, when known. */
|
|
85
|
+
sourceSpan?: Pick<IGraphEvidence, "file" | "startLine" | "endLine">;
|
|
86
|
+
}
|
|
87
|
+
/** A high-dependency symbol with its non-structural fan-in and fan-out. */
|
|
88
|
+
interface IHotspot extends INode {
|
|
89
|
+
/** Non-structural edges pointing at this symbol. */
|
|
90
|
+
fanIn: number;
|
|
91
|
+
/** Non-structural edges leaving this symbol. */
|
|
92
|
+
fanOut: number;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* One symbol on the project's exported public API surface. The list is ranked
|
|
96
|
+
* by how depended-on the symbol is, with test, typings, and generated files
|
|
97
|
+
* excluded.
|
|
98
|
+
*/
|
|
99
|
+
type IPublicApi = INode;
|
|
100
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IGraphOverview.js","sourceRoot":"","sources":["../../src/structures/IGraphOverview.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { GraphLanguage } from "./GraphLanguage";
|
|
2
|
+
import { IGraphDiagnostic } from "./IGraphDiagnostic";
|
|
3
|
+
import { IGraphEntrypoints } from "./IGraphEntrypoints";
|
|
4
|
+
import { IGraphNext } from "./IGraphNext";
|
|
5
|
+
import { IGraphOverview } from "./IGraphOverview";
|
|
6
|
+
/** Answer-ready, source-free tour evidence for broad code-flow questions. */
|
|
7
|
+
export interface IGraphTour {
|
|
8
|
+
/** Discriminator for code-tour indexing. */
|
|
9
|
+
type: "tour";
|
|
10
|
+
/** Natural code question this tour was built for. */
|
|
11
|
+
question?: string;
|
|
12
|
+
/** Central entrypoints selected for the tour. */
|
|
13
|
+
entrypoints: IGraphEntrypoints.IEntrypoint[];
|
|
14
|
+
/** Selected primary runtime flows; sufficient for an index-level tour. */
|
|
15
|
+
primaryFlow: string[];
|
|
16
|
+
/** Nearby dependency anchors around the selected entrypoints. */
|
|
17
|
+
nearbyPaths: IGraphOverview.INode[];
|
|
18
|
+
/** Test or usage anchors reached through graph impact edges. */
|
|
19
|
+
testAnchors: IGraphOverview.INode[];
|
|
20
|
+
/** Ordered file/line anchors to cite in the final answer, not file reads. */
|
|
21
|
+
answerAnchors: IGraphOverview.INode[];
|
|
22
|
+
/** Diagnostics collected while building the tour. */
|
|
23
|
+
diagnostics?: IGraphDiagnostic[];
|
|
24
|
+
/** How to use this source-free result next. */
|
|
25
|
+
next: IGraphNext;
|
|
26
|
+
/** Human-readable compatibility note mirroring `next`. */
|
|
27
|
+
guide: string;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace IGraphTour {
|
|
30
|
+
/**
|
|
31
|
+
* Build the complete index-level answer surface for broad code tours: central
|
|
32
|
+
* entrypoints, primary flow, nearby paths, tests, and answer anchors. Use
|
|
33
|
+
* this instead of decomposing repository-orientation, read-next,
|
|
34
|
+
* architecture, or multi-phase runtime-flow questions into many
|
|
35
|
+
* lookup/details/trace calls.
|
|
36
|
+
*/
|
|
37
|
+
interface IRequest {
|
|
38
|
+
/** Discriminator for code-tour indexing. */
|
|
39
|
+
type: "tour";
|
|
40
|
+
/** The user's natural code-tour question. */
|
|
41
|
+
question?: string;
|
|
42
|
+
/** Target source language for the tour. */
|
|
43
|
+
language?: GraphLanguage;
|
|
44
|
+
/**
|
|
45
|
+
* Maximum central entrypoints to seed the tour.
|
|
46
|
+
*
|
|
47
|
+
* Prefer the default. Raise only when the question names several distinct
|
|
48
|
+
* public paths that must all appear in one answer.
|
|
49
|
+
*
|
|
50
|
+
* @default 4
|
|
51
|
+
*/
|
|
52
|
+
limit?: number;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IGraphTour.js","sourceRoot":"","sources":["../../src/structures/IGraphTour.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { IGraphEvidence } from "./IGraphEvidence";
|
|
2
|
+
import { IGraphNext } from "./IGraphNext";
|
|
3
|
+
import { IGraphOverview } from "./IGraphOverview";
|
|
4
|
+
/** The compact dependency or caller flow returned from a selected start symbol. */
|
|
5
|
+
export interface IGraphTrace {
|
|
6
|
+
/** Discriminator for dependency tracing. */
|
|
7
|
+
type: "trace";
|
|
8
|
+
/** The resolved start node, or undefined when `from` matched nothing. */
|
|
9
|
+
start?: IGraphTrace.INode;
|
|
10
|
+
/** Trace direction actually used by this result. */
|
|
11
|
+
direction: string;
|
|
12
|
+
/** Edges traversed, in breadth-first order. */
|
|
13
|
+
hops: IGraphTrace.IHop[];
|
|
14
|
+
/** Unique nodes reached (excluding the start), each with its depth and roles. */
|
|
15
|
+
reached: IGraphTrace.INode[];
|
|
16
|
+
/** True when the trace hit maxNodes or maxDepth and more flow exists. */
|
|
17
|
+
truncated: boolean;
|
|
18
|
+
/** The resolved `to` target, when a path was requested. */
|
|
19
|
+
target?: IGraphTrace.INode;
|
|
20
|
+
/**
|
|
21
|
+
* When `to` was given: the ordered dependency path from `from` to `to`
|
|
22
|
+
* (`from` first, `to` last), or empty when `to` is not reachable from
|
|
23
|
+
* `from`.
|
|
24
|
+
*/
|
|
25
|
+
path?: IGraphTrace.INode[];
|
|
26
|
+
/** Compact hop summaries preserving node names and edge evidence, capped. */
|
|
27
|
+
steps?: string[];
|
|
28
|
+
/** When `from` was an ambiguous name, the matches to disambiguate with. */
|
|
29
|
+
candidates?: IGraphTrace.INode[];
|
|
30
|
+
/** How to use this source-free result next. */
|
|
31
|
+
next: IGraphNext;
|
|
32
|
+
/** Human-readable compatibility note mirroring `next`. */
|
|
33
|
+
guide: string;
|
|
34
|
+
}
|
|
35
|
+
export declare namespace IGraphTrace {
|
|
36
|
+
/** Where and how far to trace dependency flow. */
|
|
37
|
+
interface IRequest {
|
|
38
|
+
/** Discriminator for dependency tracing. */
|
|
39
|
+
type: "trace";
|
|
40
|
+
/**
|
|
41
|
+
* Where to start: a node id from another tool, a simple symbol name, or a
|
|
42
|
+
* dotted member name such as `OrderService.create`. An ambiguous name
|
|
43
|
+
* returns its candidates instead of a trace.
|
|
44
|
+
*/
|
|
45
|
+
from: string;
|
|
46
|
+
/**
|
|
47
|
+
* A target symbol: node id, simple symbol name, or dotted member name. When
|
|
48
|
+
* given, the tool returns the dependency path from `from` to this target,
|
|
49
|
+
* the one-call answer for "how does A reach B", instead of an open-ended
|
|
50
|
+
* trace. Prefer this path mode whenever both ends are known.
|
|
51
|
+
*/
|
|
52
|
+
to?: string;
|
|
53
|
+
/**
|
|
54
|
+
* `forward` follows what the start uses (callees, instantiations, renders);
|
|
55
|
+
* `reverse` follows what uses the start (callers); `impact` is a reverse
|
|
56
|
+
* trace that prioritizes public API and test nodes a change would reach.
|
|
57
|
+
* Its test nodes are semantic usage edges, not a text-search inventory.
|
|
58
|
+
* Caller questions usually fit `reverse`.
|
|
59
|
+
*
|
|
60
|
+
* @default "forward"
|
|
61
|
+
*/
|
|
62
|
+
direction?: "forward" | "reverse" | "impact";
|
|
63
|
+
/**
|
|
64
|
+
* Which non-structural edge family to follow: `execution` follows runtime
|
|
65
|
+
* calls, instantiations, property access, and JSX renders; `types` follows
|
|
66
|
+
* type references and inheritance; `all` preserves the full graph. Flow
|
|
67
|
+
* questions should usually choose `execution` rather than `all`.
|
|
68
|
+
*
|
|
69
|
+
* @default "all"
|
|
70
|
+
*/
|
|
71
|
+
focus?: "all" | "execution" | "types";
|
|
72
|
+
/**
|
|
73
|
+
* How many hops deep to follow. Open forward/reverse traces are capped at
|
|
74
|
+
* 2; impact traces at 4; path mode at 12.
|
|
75
|
+
*
|
|
76
|
+
* Prefer the default for open traces. Raise only for path mode or when the
|
|
77
|
+
* previous trace named the missing next hop.
|
|
78
|
+
*
|
|
79
|
+
* @default 2
|
|
80
|
+
*/
|
|
81
|
+
maxDepth?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Cap on reached nodes; the trace stops and marks itself truncated past it.
|
|
84
|
+
* Open forward/reverse traces are capped at 8 nodes, impact at 16 nodes.
|
|
85
|
+
*
|
|
86
|
+
* Prefer the default; use larger open traces only when a named missing edge
|
|
87
|
+
* requires it.
|
|
88
|
+
*
|
|
89
|
+
* @default 6
|
|
90
|
+
*/
|
|
91
|
+
maxNodes?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Include dependency-boundary nodes from bundled libraries. Leave false for
|
|
94
|
+
* source-flow tours; enable only when the user asks about external type/API
|
|
95
|
+
* boundaries.
|
|
96
|
+
*
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
99
|
+
includeExternal?: boolean;
|
|
100
|
+
}
|
|
101
|
+
/** One traversed edge, with its depth from the start. */
|
|
102
|
+
interface IHop {
|
|
103
|
+
/** Source node id for this traversed edge. */
|
|
104
|
+
from: string;
|
|
105
|
+
/** Target node id for this traversed edge. */
|
|
106
|
+
to: string;
|
|
107
|
+
/** Edge kind (`calls`, `type_ref`, `accesses`, ...). */
|
|
108
|
+
kind: string;
|
|
109
|
+
/** Hops from the start (1 = direct). */
|
|
110
|
+
depth: number;
|
|
111
|
+
/**
|
|
112
|
+
* Source span for the expression that produced this hop. It is repository
|
|
113
|
+
* evidence for the hop and can be cited without opening the file.
|
|
114
|
+
*/
|
|
115
|
+
evidence?: IGraphEvidence;
|
|
116
|
+
}
|
|
117
|
+
/** A node on the trace: the start, a reached node, or a candidate. */
|
|
118
|
+
interface INode extends IGraphOverview.INode {
|
|
119
|
+
/** Hops from the start, on a reached node. */
|
|
120
|
+
depth?: number;
|
|
121
|
+
/** The node's signature, carried on path nodes so the path explains itself. */
|
|
122
|
+
signature?: string;
|
|
123
|
+
/** Why this node matters to an impact trace: `exported`, `test`. */
|
|
124
|
+
roles?: string[];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IGraphTrace.js","sourceRoot":"","sources":["../../src/structures/IGraphTrace.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { IGraphDetails } from "./IGraphDetails";
|
|
2
|
+
import { IGraphEntrypoints } from "./IGraphEntrypoints";
|
|
3
|
+
import { IGraphEscape } from "./IGraphEscape";
|
|
4
|
+
import { IGraphLookup } from "./IGraphLookup";
|
|
5
|
+
import { IGraphOverview } from "./IGraphOverview";
|
|
6
|
+
import { IGraphTour } from "./IGraphTour";
|
|
7
|
+
import { IGraphTrace } from "./IGraphTrace";
|
|
8
|
+
/**
|
|
9
|
+
* ## What This MCP Is
|
|
10
|
+
*
|
|
11
|
+
* `inspect_code_graph` returns a language-server-built code graph contract
|
|
12
|
+
* for the current source snapshot.
|
|
13
|
+
*
|
|
14
|
+
* Use it for architecture, runtime flow, APIs, callers/callees, code tours, and
|
|
15
|
+
* type relations. It returns answer-ready index evidence: names, edges,
|
|
16
|
+
* signatures, decorators, tests, spans, and anchors.
|
|
17
|
+
*
|
|
18
|
+
* Until source is edited, returned graph facts are sacred, infallible
|
|
19
|
+
* language-server truth. Never verify them with files or more graph calls.
|
|
20
|
+
*
|
|
21
|
+
* ## Result Contract
|
|
22
|
+
*
|
|
23
|
+
* - The returned object is the graph evidence contract: names, signatures, spans,
|
|
24
|
+
* decorators, tests, edges, steps, anchors, and `next` are answer evidence,
|
|
25
|
+
* not hints.
|
|
26
|
+
* - When `next.action` is `answer`, stop tool use for the current question and
|
|
27
|
+
* answer from the returned result.
|
|
28
|
+
* - `truncated` means the answer surface hit an index cap. Mention the cap if it
|
|
29
|
+
* matters; do not expand every branch to compensate.
|
|
30
|
+
* - When `next.action` is `inspect`, make the focused graph request it names or
|
|
31
|
+
* choose `escape` if the result already answers.
|
|
32
|
+
* - Read files only for exact source body text, configs, docs, generated output,
|
|
33
|
+
* exact text search, files outside the indexed languages, or facts the graph
|
|
34
|
+
* marks outside itself. A returned span is a citation anchor, not a reading
|
|
35
|
+
* command.
|
|
36
|
+
* - After editing source, the old graph no longer governs changed code.
|
|
37
|
+
* Rebuild/reload the graph or verify changed code normally.
|
|
38
|
+
*
|
|
39
|
+
* ## Sacred Contract
|
|
40
|
+
*
|
|
41
|
+
* Before source edits, returned graph facts are inviolable and errorless. Never
|
|
42
|
+
* use extra graph calls, repository search, or file reads to doubt, fact-check,
|
|
43
|
+
* humanize, re-derive, re-narrate, or re-confirm returned nodes, spans, edges,
|
|
44
|
+
* signatures, decorators, tests, references, steps, or anchors.
|
|
45
|
+
*
|
|
46
|
+
* ## Tour Contract
|
|
47
|
+
*
|
|
48
|
+
* Use `tour` for repository orientation, read-next, architecture tours, and
|
|
49
|
+
* broad runtime flow, including questions that name several phases or
|
|
50
|
+
* subsystems. A tour is the complete index-level answer surface: central
|
|
51
|
+
* entrypoints, primary flow, nearby paths, tests, and anchors. Do not decompose
|
|
52
|
+
* a broad tour into lookup/details loops unless the user later asks for a named
|
|
53
|
+
* missing symbol or exact source text.
|
|
54
|
+
*
|
|
55
|
+
* ## Use Contract
|
|
56
|
+
*
|
|
57
|
+
* 1. Ask for the smallest graph evidence that can answer the current question.
|
|
58
|
+
* 2. Broad flow, repository-orientation, code-tour, or read-next question: start
|
|
59
|
+
* with `tour`.
|
|
60
|
+
* 3. Concrete named symbol: use `lookup`, then `details` only if needed.
|
|
61
|
+
* 4. Known endpoint pair or one selected handle: use one `trace`.
|
|
62
|
+
* 5. Unknown narrow orientation: use `entrypoints` once.
|
|
63
|
+
* 6. Selected symbol shape: use `details` for one to three handles.
|
|
64
|
+
* 7. Follow the returned `next`: answer, inspect once more, leave graph, or
|
|
65
|
+
* clarify.
|
|
66
|
+
* 8. Use `escape` when another graph call would repeat evidence or the remaining
|
|
67
|
+
* evidence is outside the code graph.
|
|
68
|
+
*
|
|
69
|
+
* Most code structure answers need one or two graph calls.
|
|
70
|
+
*
|
|
71
|
+
* ## Request Fields
|
|
72
|
+
*
|
|
73
|
+
* Fill the visible checklist, then exactly one request.
|
|
74
|
+
*
|
|
75
|
+
* - `question`: restate the code question being considered.
|
|
76
|
+
* - `draft`: initial request type and why it seems smallest.
|
|
77
|
+
* - `review`: correct a wrong, broad, stale, or duplicate draft. If graph facts
|
|
78
|
+
* already answer, if prior `next.action` was `answer`, or if the next
|
|
79
|
+
* evidence is outside the indexed code graph, say so here and make
|
|
80
|
+
* `request.type` be `escape`. If a broad flow draft is not `tour`, correct it
|
|
81
|
+
* here.
|
|
82
|
+
* - `request`: final request after review.
|
|
83
|
+
*
|
|
84
|
+
* ## How to answer from graph evidence
|
|
85
|
+
*
|
|
86
|
+
* - Use returned node names, signatures, edges, references, evidence, and
|
|
87
|
+
* `sourceSpan` ranges directly.
|
|
88
|
+
* - Explain the central path first, then mention important branches.
|
|
89
|
+
* - For tests, impact, or reading lists, returned nodes and ranges are the answer
|
|
90
|
+
* evidence, not search keywords.
|
|
91
|
+
* - A returned range is a sacred citation anchor, not permission to open the
|
|
92
|
+
* file.
|
|
93
|
+
*/
|
|
94
|
+
export interface ISamchonGraphApplication {
|
|
95
|
+
/**
|
|
96
|
+
* Inspect the code graph contract.
|
|
97
|
+
*
|
|
98
|
+
* Use this before repository search when an answer depends on code
|
|
99
|
+
* symbols, calls, types, decorators, references, ranges, or runtime/source
|
|
100
|
+
* relationships. For repository orientation, read-next, architecture, and
|
|
101
|
+
* broad runtime flow questions, use `tour`.
|
|
102
|
+
*
|
|
103
|
+
* Returned nodes, edges, signatures, spans, tests, anchors, and `next` are
|
|
104
|
+
* the answer surface. If `next.action` is `answer`, stop tool use and answer
|
|
105
|
+
* from that result. Before source edits, graph facts are sacred, inviolable,
|
|
106
|
+
* complete, and infallible.
|
|
107
|
+
*
|
|
108
|
+
* @param props Reasoning plus one graph request
|
|
109
|
+
* @returns Matching `result` union member
|
|
110
|
+
*/
|
|
111
|
+
inspect_code_graph(props: ISamchonGraphApplication.IProps): Promise<ISamchonGraphApplication.IResult>;
|
|
112
|
+
}
|
|
113
|
+
export declare namespace ISamchonGraphApplication {
|
|
114
|
+
/** Draft, review, then submit exactly one graph request or escape. */
|
|
115
|
+
interface IProps {
|
|
116
|
+
/**
|
|
117
|
+
* User's code question.
|
|
118
|
+
*
|
|
119
|
+
* Restate the code question being considered. If the next evidence is a
|
|
120
|
+
* script, config, doc, generated output, exact text, a file outside the
|
|
121
|
+
* indexed languages, or source body text, choose `escape`.
|
|
122
|
+
*/
|
|
123
|
+
question: string;
|
|
124
|
+
/**
|
|
125
|
+
* Initial request plan before final arguments are filled.
|
|
126
|
+
*
|
|
127
|
+
* Name the intended request type in `type` and why it seems smallest in
|
|
128
|
+
* `reason`. Broad flow, architecture, repository-orientation, and read-next
|
|
129
|
+
* questions should normally draft `tour`; narrow named symbols can draft
|
|
130
|
+
* `lookup`, `trace`, or `details`.
|
|
131
|
+
*/
|
|
132
|
+
draft: IDraft;
|
|
133
|
+
/**
|
|
134
|
+
* Final self-review before calling.
|
|
135
|
+
*
|
|
136
|
+
* Correct a stale, broad, duplicate, or wrong draft here. If broad flow was
|
|
137
|
+
* split into search/detail steps, switch to `tour`. If graph facts already
|
|
138
|
+
* answer, or prior `next.action` was `answer`, make `request.type` be
|
|
139
|
+
* `escape`; do not call graph or read files to re-confirm returned facts.
|
|
140
|
+
*/
|
|
141
|
+
review: string;
|
|
142
|
+
/** Final graph operation chosen after review, or a no-op escape. */
|
|
143
|
+
request: IGraphEntrypoints.IRequest | IGraphLookup.IRequest | IGraphTrace.IRequest | IGraphDetails.IRequest | IGraphOverview.IRequest | IGraphTour.IRequest | IGraphEscape.IRequest;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* First-pass request plan, filled before the final `request` arguments.
|
|
147
|
+
*
|
|
148
|
+
* `reason` comes before `type` so the justification is written before the
|
|
149
|
+
* choice it justifies.
|
|
150
|
+
*/
|
|
151
|
+
interface IDraft {
|
|
152
|
+
/** Why this request type looks like the smallest useful next step. */
|
|
153
|
+
reason: string;
|
|
154
|
+
/** The request type being considered, corrected later in `review`. */
|
|
155
|
+
type: IProps["request"]["type"];
|
|
156
|
+
}
|
|
157
|
+
/** The selected request's output. `result.type` mirrors `request.type`. */
|
|
158
|
+
interface IResult {
|
|
159
|
+
/** Result branch matching the submitted `request.type`. */
|
|
160
|
+
result: IGraphEntrypoints | IGraphLookup | IGraphTrace | IGraphDetails | IGraphOverview | IGraphTour | IGraphEscape;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISamchonGraphApplication.js","sourceRoot":"","sources":["../../src/structures/ISamchonGraphApplication.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from "./GraphEdgeKind";
|
|
2
|
+
export * from "./GraphLanguage";
|
|
3
|
+
export * from "./GraphNodeKind";
|
|
4
|
+
export * from "./IGraphDecorator";
|
|
5
|
+
export * from "./IGraphDetails";
|
|
6
|
+
export * from "./IGraphDiagnostic";
|
|
7
|
+
export * from "./IGraphDump";
|
|
8
|
+
export * from "./IGraphEdge";
|
|
9
|
+
export * from "./IGraphEntrypoints";
|
|
10
|
+
export * from "./IGraphEscape";
|
|
11
|
+
export * from "./IGraphEvidence";
|
|
12
|
+
export * from "./IGraphLookup";
|
|
13
|
+
export * from "./IGraphNext";
|
|
14
|
+
export * from "./IGraphNode";
|
|
15
|
+
export * from "./IGraphOverview";
|
|
16
|
+
export * from "./IGraphTour";
|
|
17
|
+
export * from "./IGraphTrace";
|
|
18
|
+
export * from "./ISamchonGraphApplication";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./GraphEdgeKind"), exports);
|
|
18
|
+
__exportStar(require("./GraphLanguage"), exports);
|
|
19
|
+
__exportStar(require("./GraphNodeKind"), exports);
|
|
20
|
+
__exportStar(require("./IGraphDecorator"), exports);
|
|
21
|
+
__exportStar(require("./IGraphDetails"), exports);
|
|
22
|
+
__exportStar(require("./IGraphDiagnostic"), exports);
|
|
23
|
+
__exportStar(require("./IGraphDump"), exports);
|
|
24
|
+
__exportStar(require("./IGraphEdge"), exports);
|
|
25
|
+
__exportStar(require("./IGraphEntrypoints"), exports);
|
|
26
|
+
__exportStar(require("./IGraphEscape"), exports);
|
|
27
|
+
__exportStar(require("./IGraphEvidence"), exports);
|
|
28
|
+
__exportStar(require("./IGraphLookup"), exports);
|
|
29
|
+
__exportStar(require("./IGraphNext"), exports);
|
|
30
|
+
__exportStar(require("./IGraphNode"), exports);
|
|
31
|
+
__exportStar(require("./IGraphOverview"), exports);
|
|
32
|
+
__exportStar(require("./IGraphTour"), exports);
|
|
33
|
+
__exportStar(require("./IGraphTrace"), exports);
|
|
34
|
+
__exportStar(require("./ISamchonGraphApplication"), exports);
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/structures/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,oDAAkC;AAClC,kDAAgC;AAChC,qDAAmC;AACnC,+CAA6B;AAC7B,+CAA6B;AAC7B,sDAAoC;AACpC,iDAA+B;AAC/B,mDAAiC;AACjC,iDAA+B;AAC/B,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,+CAA6B;AAC7B,gDAA8B;AAC9B,6DAA2C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./structures/index";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./structures/index"), exports);
|
|
18
|
+
//# sourceMappingURL=structures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structures.js","sourceRoot":"","sources":["../src/structures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_IGNORES: Set<string>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_IGNORES = void 0;
|
|
4
|
+
exports.DEFAULT_IGNORES = new Set([
|
|
5
|
+
".git",
|
|
6
|
+
".hg",
|
|
7
|
+
".svn",
|
|
8
|
+
".idea",
|
|
9
|
+
".vscode",
|
|
10
|
+
"node_modules",
|
|
11
|
+
"bower_components",
|
|
12
|
+
"vendor",
|
|
13
|
+
"dist",
|
|
14
|
+
"lib",
|
|
15
|
+
"build",
|
|
16
|
+
"target",
|
|
17
|
+
"out",
|
|
18
|
+
"coverage",
|
|
19
|
+
".next",
|
|
20
|
+
".nuxt",
|
|
21
|
+
".turbo",
|
|
22
|
+
".cache",
|
|
23
|
+
// Language build/cache directories for the supported languages.
|
|
24
|
+
"obj",
|
|
25
|
+
"__pycache__",
|
|
26
|
+
".venv",
|
|
27
|
+
"venv",
|
|
28
|
+
".pytest_cache",
|
|
29
|
+
".mypy_cache",
|
|
30
|
+
".tox",
|
|
31
|
+
".gradle",
|
|
32
|
+
".mvn",
|
|
33
|
+
".build",
|
|
34
|
+
".dart_tool",
|
|
35
|
+
"zig-cache",
|
|
36
|
+
"zig-out",
|
|
37
|
+
"Pods",
|
|
38
|
+
]);
|
|
39
|
+
//# sourceMappingURL=DEFAULT_IGNORES.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DEFAULT_IGNORES.js","sourceRoot":"","sources":["../../src/utils/DEFAULT_IGNORES.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,IAAI,GAAG,CAAC;IACrC,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,SAAS;IACT,cAAc;IACd,kBAAkB;IAClB,QAAQ;IACR,MAAM;IACN,KAAK;IACL,OAAO;IACP,QAAQ;IACR,KAAK;IACL,UAAU;IACV,OAAO;IACP,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,gEAAgE;IAChE,KAAK;IACL,aAAa;IACb,OAAO;IACP,MAAM;IACN,eAAe;IACf,aAAa;IACb,MAAM;IACN,SAAS;IACT,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,WAAW;IACX,SAAS;IACT,MAAM;CACP,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IWalkOptions.js","sourceRoot":"","sources":["../../src/utils/IWalkOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function basename(file: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.basename = basename;
|
|
4
|
+
const normalizePath_1 = require("./normalizePath");
|
|
5
|
+
function basename(file) {
|
|
6
|
+
const normalized = (0, normalizePath_1.normalizePath)(file);
|
|
7
|
+
const slash = normalized.lastIndexOf("/");
|
|
8
|
+
return slash >= 0 ? normalized.slice(slash + 1) : normalized;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=basename.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basename.js","sourceRoot":"","sources":["../../src/utils/basename.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD,kBAAyB,IAAY;IACnC,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,IAAI,CAAC,CAAC;IACvC,MAAM,KAAK,GAAG,UAAU,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAC1C,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function dirname(file: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dirname = dirname;
|
|
4
|
+
const normalizePath_1 = require("./normalizePath");
|
|
5
|
+
function dirname(file) {
|
|
6
|
+
const normalized = (0, normalizePath_1.normalizePath)(file);
|
|
7
|
+
const slash = normalized.lastIndexOf("/");
|
|
8
|
+
return slash >= 0 ? normalized.slice(0, slash) : ".";
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=dirname.js.map
|