MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / holdBack

Method holdBack

src/mcp/tools.ts:7556–7558  ·  view source on GitHub ↗
(room: number)

Source from the content-addressed store, hash-verified

7554 : rankedClusters.slice(p + 1).reduce((n, other) => (other.c.maxImportance < EXACT_IMPORTANCE
7555 ? n : n + exactCostOf(other.c) + GAP_MARKER.length), 0);
7556 const holdBack = (room: number): number => (owedExact > 0
7557 ? Math.min(room, Math.max(exactCostOf(rc.c), room - owedExact))
7558 : room);
7559 if (first) {
7560 const firstCap = holdBack(cap);
7561 const section = renderCluster(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected