createSkillBodyLoader
@forge/monorepo / backend/src / createSkillBodyLoader
Function: createSkillBodyLoader()
createSkillBodyLoader(
deps):SkillBodyLoader
Defined in: backend/src/skills/context.ts:106
Adapts a SkillResolver to the registry's structural SkillBodyLoader.
The version is not a parameter. loadBody pins to an exact version so a mid-run edit cannot change behaviour,
and the version the model should get is the one the catalogue it just read advertised — so it is looked up
here rather than trusted from the model's arguments. A model naming a version would be a model choosing which
revision of an instruction to follow.
Parameters
deps
policy
{ allowTenantSkills: boolean; assigned: readonly string[]; }
policy.allowTenantSkills
boolean
policy.assigned
readonly string[]