()
| 108 | } |
| 109 | |
| 110 | async function getMachineIdOrExit(): Promise<string> { |
| 111 | const settings = await readSettings() |
| 112 | const machineId = settings?.machineId |
| 113 | if (!machineId) { |
| 114 | console.error(`[START] No machine ID found in settings, which is unexpected since authAndSetupMachineIfNeeded should have created it. Please report this issue on ${packageJson.bugs}`) |
| 115 | process.exit(1) |
| 116 | } |
| 117 | logger.debug(`Using machineId: ${machineId}`) |
| 118 | return machineId |
| 119 | } |
| 120 | |
| 121 | async function reportSessionStarted(sessionId: string, metadata: Metadata): Promise<void> { |
| 122 | try { |
no test coverage detected