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

Function getInvokedBinary

src/utils/doctorDiagnostic.ts:191–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189}
190
191export function getInvokedBinary(): string {
192 try {
193 // For bundled/compiled executables, show the actual binary path
194 if (isInBundledMode()) {
195 return process.execPath || 'unknown'
196 }
197
198 // For npm/development, show the script path
199 return process.argv[1] || 'unknown'
200 } catch {
201 return 'unknown'
202 }
203}
204
205async function detectMultipleInstallations(): Promise<
206 Array<{ type: string; path: string }>

Callers 1

getDoctorDiagnosticFunction · 0.85

Calls 1

isInBundledModeFunction · 0.85

Tested by

no test coverage detected