(dir: string)
| 1594 | function discoverSkillSurface(): string[] { |
| 1595 | const results: string[] = []; |
| 1596 | function walk(dir: string) { |
| 1597 | for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { |
| 1598 | if (entry.name.startsWith('.') && entry.name !== '.agents') continue; |
| 1599 | if (entry.name === 'node_modules' || entry.name === 'dist') continue; |
| 1600 | const full = path.join(dir, entry.name); |
| 1601 | if (entry.isDirectory()) { |
| 1602 | walk(full); |
| 1603 | } else if (entry.name === 'SKILL.md' || entry.name === 'SKILL.md.tmpl') { |
| 1604 | results.push(full); |
| 1605 | } |
| 1606 | } |
| 1607 | } |
| 1608 | walk(ROOT); |
| 1609 | return results; |
| 1610 | } |
no test coverage detected