MCPcopy Index your code
hub / github.com/simstudioai/sim / runLifecycle

Function runLifecycle

apps/sim/app/api/mothership/execute/route.ts:222–235  ·  view source on GitHub ↗
(onEvent?: (event: StreamEvent) => Promise<void>)

Source from the content-addressed store, hash-verified

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

Callers 2

startFunction · 0.85
route.tsFile · 0.85

Calls 1

Tested by

no test coverage detected