(entityName: string)
| 214 | |
| 215 | /** Returns the cache filename for an entity name, throws if unknown. */ |
| 216 | export 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. */ |
| 223 | export function getSkillSubset(skillName: string): ReadonlyArray<string> { |
no outgoing calls
no test coverage detected