also looking at this
feat: add scoped cargo receiving mission tasks
#102
21 files
+1186
-15
| @@ -2,12 +2,14 @@ import { Buffer } from 'node:buffer' | ||
| 2 | 2 | import { writeSync } from 'node:fs' |
| 3 | 3 | import { mkdir, open, writeFile } from 'node:fs/promises' |
| 4 | 4 | import { join } from 'node:path' |
| 5 | import type { BrowserStartupEvidence } from './browser-startup-process' | |
| 5 | 6 | |
| 6 | 7 | export interface BrowserLaunchObservation { |
| 7 | 8 | phase: 'startup-unavailable' | 'discovery-failed' | 'closed' |
| 8 | 9 | elapsedMs: number |
| 9 | 10 | launch: { pid: number, exitObserved: boolean, settledExitCode: number | null, signalCode: string | number | null, exitObservedBeforeCleanup: boolean, cleanupRequested: boolean, exitElapsedMs: number | null } |
| 10 | 11 | portProbe: { attempts: number, successfulReads: number, failedReads: number, lastReadError: string | null, discovered: boolean } |
| 12 | startup?: BrowserStartupEvidence | |
| 11 | 13 | } |
| 12 | 14 | export function browserFileErrorCode(error: unknown): string { |
| 13 | 15 | const code = (error as NodeJS.ErrnoException | null)?.code |