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

Method costOfSection

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

Source from the content-addressed store, hash-verified

7693 let fileHeader = headerFor(assembled.symbols, assembled.elided);
7694 let chosenNow = chosenIndices;
7695 const costOfSection = (header: string, body: string) =>
7696 header.length + 2 + (body.length > 0 ? body.length + lang.length + 11 : 0);
7697 // Every file was funded for SOURCE against an ESTIMATED header
7698 // (`sectionOverhead`: the file's symbol names), and the real one also lists
7699 // 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