()
| 189 | } |
| 190 | |
| 191 | export 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 | |
| 205 | async function detectMultipleInstallations(): Promise< |
| 206 | Array<{ type: string; path: string }> |
no test coverage detected