MCPcopy Create free account
hub / github.com/ShipSecAI/studio / main

Function main

scripts/capture-run-stream.ts:112–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112async 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
123main().catch((error) => {
124 console.error('Failed to capture run stream', error)

Callers 1

Calls 2

startRunFunction · 0.85
captureStreamFunction · 0.85

Tested by

no test coverage detected