(dir: string)
| 666 | |
| 667 | // Helper to scan a skills directory |
| 668 | async function scanDir(dir: string): Promise<string[]> { |
| 669 | try { |
| 670 | const entries = await readdir(dir, { withFileTypes: true }); |
| 671 | return entries.filter((e) => e.isDirectory() || e.isSymbolicLink()).map((e) => e.name); |
| 672 | } catch { |
| 673 | return []; |
| 674 | } |
| 675 | } |
| 676 | |
| 677 | if (hasExplicitIdeOption(options)) { |
| 678 | // Explicit flag mode — check the specific IDE paths |