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

Method protectedCoreCost

src/mcp/tools.ts:7077–7082  ·  view source on GitHub ↗
(c: ExploreCluster)

Source from the content-addressed store, hash-verified

7075 * them. 0 for a cluster with nothing the query asked for.
7076 */
7077 const protectedCoreCost = (c: ExploreCluster): number => {
7078 const core = c.members.filter(isProtectedMember);
7079 if (core.length === 0) return 0;
7080 const parts = core.length === c.members.length ? buildSection(c) : partsOfMembers(core);
7081 return sectionText(dedupeSpans(parts).parts).length + GAP_MARKER.length;
7082 };
7083
7084 /**
7085 * Shrink an oversize cluster to the highest-importance symbols inside it

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected