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

Function getSkillSubset

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

Source from the content-addressed store, hash-verified

221
222/** Returns the digest subset for a skill, throws if the skill isn't preflight-enabled. */
223export function getSkillSubset(skillName: string): ReadonlyArray<string> {
224 const subset = SKILL_DIGEST_SUBSETS[skillName];
225 if (!subset) throw new Error(`Skill not registered for brain preflight: ${skillName}`);
226 return subset;
227}
228
229/** Returns the per-skill total digest budget in bytes. */
230export function getSkillBudget(skillName: string): number {

Callers 3

generateBrainPreflightFunction · 0.90
getMaxSubsetBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected