Merge pull request #4102 from sjawhar/fix/skill-directory-param

fix(skill): pass directory to getAllSkills + fix async test timing
This commit is contained in:
YeonGyu-Kim
2026-05-21 00:08:40 +09:00
committed by GitHub
5 changed files with 27 additions and 7 deletions
@@ -12,7 +12,8 @@ export function clearSkillCache(): void {
export async function getAllSkills(options?: SkillResolutionOptions): Promise<LoadedSkill[]> {
const browserProvider = options?.browserProvider ?? "playwright"
const teamModeEnabled = options?.teamModeEnabled ?? false
const cacheKey = `${browserProvider}:${teamModeEnabled ? "team-on" : "team-off"}`
const directory = options?.directory ?? ""
const cacheKey = `${directory}:${browserProvider}:${teamModeEnabled ? "team-on" : "team-off"}`
const hasDisabledSkills = options?.disabledSkills && options.disabledSkills.size > 0
// Skip cache if disabledSkills is provided (varies between calls)