Trigger a run on the coordinator; resolve once it has a `runId`.
( coordinator: Coordinator, input: StartRunInput, )
| 162 | |
| 163 | /** Trigger a run on the coordinator; resolve once it has a `runId`. */ |
| 164 | async function triggerRun( |
| 165 | coordinator: Coordinator, |
| 166 | input: StartRunInput, |
| 167 | ): Promise<string> { |
| 168 | const { runId } = await coordinator.startRun(input) |
| 169 | return runId |
| 170 | } |
| 171 | |
| 172 | /** |
| 173 | * Open the run's WebSocket tail (the coordinator's `fetch` returns a `101` with a |