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
+1 -1
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
}
+1
View File
@@ -28,4 +28,5 @@ export interface SkillLoadOptions {
getSessionID?: () => string
/** Git master configuration for watermark/co-author settings */
gitMasterConfig?: GitMasterConfig
disabledSkills?: Set<string>
}