MCPcopy Create free account
hub / github.com/codeaashu/claude-code / detectAsdf

Function detectAsdf

src/utils/nativeInstaller/packageManagers.ts:81–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 * asdf installs to: ~/.asdf/installs/<tool>/<version>/
80 */
81export function detectAsdf(): boolean {
82 const execPath = process.execPath || process.argv[0] || ''
83
84 // Check if the executable is within an asdf installs directory
85 if (/[/\\]\.?asdf[/\\]installs[/\\]/i.test(execPath)) {
86 logForDebugging(`Detected asdf installation: ${execPath}`)
87 return true
88 }
89
90 return false
91}
92
93/**
94 * Detects if the currently running Claude instance was installed via Homebrew

Callers 2

packageManagers.tsFile · 0.85

Calls 1

logForDebuggingFunction · 0.85

Tested by

no test coverage detected