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

Method sectionCost

src/mcp/tools.ts:6661–6662  ·  view source on GitHub ↗
(ps: ReadonlyArray<{ text: string }>)

Source from the content-addressed store, hash-verified

6659 let parts = dd.parts;
6660 let trimmedSigs = 0;
6661 const sectionCost = (ps: ReadonlyArray<{ text: string }>) =>
6662 header.length + 2 + (ps.length > 0 ? withTail(ps, trimmedSigs).length + lang.length + 11 : 0);
6663 while (parts.length > 1 && totalChars + sectionCost(parts) > renderCeiling) {
6664 let drop = -1;
6665 for (let k = parts.length - 1; k >= 0; k--) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected