fix(skill): pass directory to getAllSkills and fix async test timing

This commit is contained in:
Sami Jawhar
2026-04-03 20:43:18 +00:00
parent f540249838
commit d2d1541377
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)