()
| 142 | * Pure existence probe — callers use this to choose update path / UI hints. |
| 143 | */ |
| 144 | export async function localInstallationExists(): Promise<boolean> { |
| 145 | try { |
| 146 | await access(join(getLocalInstallDir(), 'node_modules', '.bin', 'claude')) |
| 147 | return true |
| 148 | } catch { |
| 149 | return false |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * Get shell type to determine appropriate path setup |
no test coverage detected