Merge pull request #200 from timkjr/pr/gate-gemini-drop-tunnel-button

fix(welcome): gate CLI welcome buttons on actual availability
This commit is contained in:
Codeman maintainer
2026-08-05 01:40:44 +02:00
5 changed files with 51 additions and 12 deletions
+9
View File
@@ -26,6 +26,15 @@ const CLAUDE_SEARCH_DIRS = [
/** Cached directory containing the claude binary (empty string = searched but not found) */
let _claudeDir: string | null = null;
/**
* Returns true if the Claude CLI binary can be located (via `which` or one of
* the common install directories). Mirrors `isGeminiAvailable`/`isOpenCodeAvailable`/
* `isCodexAvailable` in the sibling resolvers.
*/
export function isClaudeAvailable(): boolean {
return findClaudeDir() !== null;
}
/**
* Finds the directory containing the `claude` binary.
* Checks `which claude` first, then falls back to common install locations.