| 26 | } from './devicectl'; |
| 27 | |
| 28 | export interface BootstrapOptions { |
| 29 | /** Target device UDID. If null, picks the first connected paired device. */ |
| 30 | udid?: string; |
| 31 | /** Bundle ID of the iOS app hosting the StateServer. */ |
| 32 | bundleId: string; |
| 33 | /** StateServer port. Defaults to 9999. */ |
| 34 | port?: number; |
| 35 | /** Token-path inside the app sandbox (relative to data container). */ |
| 36 | bootTokenPath?: string; |
| 37 | /** Max time to wait for the StateServer to start after launch (ms). */ |
| 38 | startupTimeoutMs?: number; |
| 39 | /** Test injection. */ |
| 40 | spawnImpl?: SpawnImpl; |
| 41 | resolveImpl?: ResolveImpl; |
| 42 | fetchImpl?: typeof fetch; |
| 43 | } |
| 44 | |
| 45 | export type BootstrapResult = |
| 46 | | { ok: true; tunnel: DeviceTunnel } |
nothing calls this directly
no outgoing calls
no test coverage detected