fix: update skill resolution to support disabled skills functionality

This commit is contained in:
Muhammad Noor Misyuari
2026-02-01 23:54:32 +07:00
parent 2236a940f8
commit ba2a9a9051
7 changed files with 12 additions and 6 deletions

View File

@@ -133,7 +133,7 @@ export function createSkillTool(options: SkillLoadOptions = {}): ToolDefinition
const getSkills = async (): Promise<LoadedSkill[]> => {
if (options.skills) return options.skills
if (cachedSkills) return cachedSkills
cachedSkills = await getAllSkills()
cachedSkills = await getAllSkills({disabledSkills: options?.disabledSkills})
return cachedSkills
}