()
| 79 | * asdf installs to: ~/.asdf/installs/<tool>/<version>/ |
| 80 | */ |
| 81 | export 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 |
no test coverage detected