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

Function getCacheFile

scripts/brain-cache-spec.ts:216–220  ·  view source on GitHub ↗
(entityName: string)

Source from the content-addressed store, hash-verified

214
215/** Returns the cache filename for an entity name, throws if unknown. */
216export function getCacheFile(entityName: string): string {
217 const entity = BRAIN_CACHE_ENTITIES[entityName];
218 if (!entity) throw new Error(`Unknown brain cache entity: ${entityName}`);
219 return entity.file;
220}
221
222/** Returns the digest subset for a skill, throws if the skill isn't preflight-enabled. */
223export function getSkillSubset(skillName: string): ReadonlyArray<string> {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected