MCPcopy Index your code
hub / github.com/codeaashu/claude-code / localInstallationExists

Function localInstallationExists

src/utils/localInstaller.ts:144–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142 * Pure existence probe — callers use this to choose update path / UI hints.
143 */
144export 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

Callers 4

AutoUpdaterFunction · 0.85
updateFunction · 0.85

Calls 1

getLocalInstallDirFunction · 0.85

Tested by

no test coverage detected