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

Function detectMise

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

Source from the content-addressed store, hash-verified

60 * mise installs to: ~/.local/share/mise/installs/<tool>/<version>/
61 */
62export function detectMise(): boolean {
63 const execPath = process.execPath || process.argv[0] || ''
64
65 // Check if the executable is within a mise installs directory
66 if (/[/\\]mise[/\\]installs[/\\]/i.test(execPath)) {
67 logForDebugging(`Detected mise installation: ${execPath}`)
68 return true
69 }
70
71 return false
72}
73
74/**
75 * Detects if the currently running Claude instance was installed via asdf

Callers 2

packageManagers.tsFile · 0.85

Calls 1

logForDebuggingFunction · 0.85

Tested by

no test coverage detected