fix: update skill resolution to support disabled skills functionality
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -28,4 +28,5 @@ export interface SkillLoadOptions {
|
||||
getSessionID?: () => string
|
||||
/** Git master configuration for watermark/co-author settings */
|
||||
gitMasterConfig?: GitMasterConfig
|
||||
disabledSkills?: Set<string>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user