(onEvent?: (event: StreamEvent) => Promise<void>)
| 220 | } |
| 221 | |
| 222 | const runLifecycle = (onEvent?: (event: StreamEvent) => Promise<void>) => |
| 223 | runHeadlessCopilotLifecycle(requestPayload, { |
| 224 | userId, |
| 225 | workspaceId, |
| 226 | chatId: effectiveChatId, |
| 227 | workflowId, |
| 228 | executionId, |
| 229 | simRequestId: requestId, |
| 230 | goRoute: '/api/mothership/execute', |
| 231 | autoExecuteTools: true, |
| 232 | interactive: false, |
| 233 | abortSignal: lifecycleAbortController.signal, |
| 234 | onEvent, |
| 235 | }) |
| 236 | |
| 237 | if (wantsStreamedExecuteResponse(req)) { |
| 238 | let cancelled = false |
no test coverage detected