()
| 38 | const STATE_KEY_GLOBAL_MCP = ["cli", "claude-import", "global", "mcp"] |
| 39 | |
| 40 | export async function maybeImportClaudeCommands() { |
| 41 | if (!process.stdin.isTTY || !process.stdout.isTTY) return |
| 42 | if (process.env.CI) return |
| 43 | if (process.argv.some((arg) => ["-h", "--help", "-v", "--version"].includes(arg))) return |
| 44 | |
| 45 | const projectSource = await maybeImportClaudeProjectCommands() |
| 46 | await maybeImportClaudeGlobalCommands(projectSource) |
| 47 | } |
| 48 | |
| 49 | export async function maybeImportClaudeAgents() { |
| 50 | if (!process.stdin.isTTY || !process.stdout.isTTY) return |
no test coverage detected