MCPcopy Create free account
hub / github.com/Noumena-Network/code / localInstallationExists

Function localInstallationExists

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

Source from the content-addressed store, hash-verified

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

Callers 4

AutoUpdaterFunction · 0.85
updateFunction · 0.85

Calls 1

getLocalInstallDirFunction · 0.85

Tested by

no test coverage detected