MCPcopy Create free account
hub / github.com/arctic-cli/interface / findProjectClaudeAgentsDir

Function findProjectClaudeAgentsDir

packages/arctic/src/cli/claude-import.ts:460–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

458}
459
460async 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
475async function listClaudeCommandFiles(sourceDir: string): Promise<string[]> {
476 return listClaudeMarkdownFiles(sourceDir)

Callers 1

Calls 1

cwdMethod · 0.65

Tested by

no test coverage detected