()
| 110 | } |
| 111 | |
| 112 | async function main() { |
| 113 | console.log( |
| 114 | `Starting workflow ${WORKFLOW_ID} via ${API_BASE_URL}/api/v1/workflows/${WORKFLOW_ID}/run`, |
| 115 | ) |
| 116 | const { runId } = await startRun() |
| 117 | console.log(`Run started: ${runId}`) |
| 118 | console.log(`Subscribing to SSE stream and writing to ${OUTPUT_PATH} ...`) |
| 119 | const path = await captureStream(runId, OUTPUT_PATH) |
| 120 | console.log(`Stream capture completed: ${path}`) |
| 121 | } |
| 122 | |
| 123 | main().catch((error) => { |
| 124 | console.error('Failed to capture run stream', error) |
no test coverage detected