()
| 458 | } |
| 459 | |
| 460 | async function findProjectClaudeAgentsDir(): Promise<string | undefined> { |
| 461 | const found = await Filesystem.findUp(PROJECT_AGENTS_DIR, process.cwd()) |
| 462 | if (found.length === 0) return undefined |
| 463 | |
| 464 | const candidate = found[0] |
| 465 | try { |
| 466 | const stat = await fs.stat(candidate) |
| 467 | if (!stat.isDirectory()) return undefined |
| 468 | } catch { |
| 469 | return undefined |
| 470 | } |
| 471 | |
| 472 | return candidate |
| 473 | } |
| 474 | |
| 475 | async function listClaudeCommandFiles(sourceDir: string): Promise<string[]> { |
| 476 | return listClaudeMarkdownFiles(sourceDir) |
no test coverage detected