MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / minimumScopeDepth

Function minimumScopeDepth

graph-ui/src/galaxy/use-graph-scope.ts:10–12  ·  view source on GitHub ↗
(scope: GraphScope | undefined)

Source from the content-addressed store, hash-verified

8/** A node or symbol alone has no relationships to show, so it starts one hop
9 * out. Files and folders already carry their internal edges at depth 0. */
10export function minimumScopeDepth(scope: GraphScope | undefined): number {
11 return scope?.kind === 'node' || scope?.kind === 'symbol' ? 1 : 0;
12}
13
14/** Scoped requests are independent of the whole-repository layout budget. */
15export function useGraphScope({ project, layout, filePath, range, fetch: fetchImpl, edgeTypes, limits }: {

Callers 1

useGraphScopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected