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

Method costOfSection

src/mcp/tools.ts:7639–7640  ·  view source on GitHub ↗
(header: string, body: string)

Source from the content-addressed store, hash-verified

7637 let fileHeader = headerFor(assembled.symbols, assembled.elided);
7638 let chosenNow = chosenIndices;
7639 const costOfSection = (header: string, body: string) =>
7640 header.length + 2 + (body.length > 0 ? body.length + lang.length + 11 : 0);
7641 // Every file was funded for SOURCE against an ESTIMATED header
7642 // (`sectionOverhead`: the file's symbol names), and the real one also lists
7643 // the edge lines' targets (`filter(calls)`, `QuerySet(imports)`), so it can

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected