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

Function expandPastLimit

graph-ui/src/galaxy/graph-scope.ts:318–325  ·  view source on GitHub ↗
(outlook: ExpandOutlook)

Source from the content-addressed store, hash-verified

316 * Aufrufe, denn das Wachstum zaehlt Knoten. Die Knoten gehen vor.
317 */
318export function expandPastLimit(outlook: ExpandOutlook): { limit: 'nodes' | 'edges'; by: 'calls' | 'growth' } | undefined {
319 if (!outlook.limits) return undefined;
320 const calls = outlook.calls ?? 0;
321 const by = outlook.calls !== undefined && calls >= outlook.estimate ? 'calls' as const : 'growth' as const;
322 if (outlook.loaded.nodes + Math.max(outlook.estimate, calls) > outlook.limits.nodes) return { limit: 'nodes', by };
323 if (outlook.loaded.edges + calls > outlook.limits.edges) return { limit: 'edges', by: 'calls' };
324 return undefined;
325}
326
327/** Was die Galaxie zeigt, waehrend ein Scope angeordnet wird: das aktuelle
328 * Bild, sonst die letzte Anordnung, sonst den ganzen Graphen. Eine Anordnung

Callers 3

GalaxyPanelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected