()
| 158 | * Pure existence probe — callers use this to choose update path / UI hints. |
| 159 | */ |
| 160 | export async function localInstallationExists(): Promise<boolean> { |
| 161 | try { |
| 162 | await access(join(getLocalInstallDir(), 'node_modules', '.bin', 'claude')) |
| 163 | return true |
| 164 | } catch { |
| 165 | return false |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | /** |
| 170 | * Get shell type to determine appropriate path setup |
no test coverage detected