MCPcopy Create free account
hub / github.com/garrytan/gstack / getMaxSubsetBytes

Function getMaxSubsetBytes

scripts/brain-cache-spec.ts:265–268  ·  view source on GitHub ↗
(skillName: string)

Source from the content-addressed store, hash-verified

263 * that the per-skill cap is enforceable given the per-entity caps.
264 */
265export function getMaxSubsetBytes(skillName: string): number {
266 const subset = getSkillSubset(skillName);
267 return subset.reduce((sum, name) => sum + (BRAIN_CACHE_ENTITIES[name]?.budget_bytes ?? 0), 0);
268}

Callers 1

Calls 1

getSkillSubsetFunction · 0.85

Tested by

no test coverage detected