MCPcopy Index your code
hub / github.com/TanStack/ai / startRun

Function startRun

packages/ai-opencode/src/stream/translate.ts:132–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 let openReasoningId: string | null = null
131
132 function* startRun(): Generator<StreamChunk> {
133 if (runStarted) return
134 runStarted = true
135 yield {
136 type: EventType.RUN_STARTED,
137 runId,
138 threadId,
139 model,
140 timestamp: now(),
141 ...(ctx.parentRunId !== undefined && { parentRunId: ctx.parentRunId }),
142 }
143 }
144
145 function* closeText(): Generator<StreamChunk> {
146 if (openTextId !== null) {

Callers 2

finishFunction · 0.70
translateOpencodeStreamFunction · 0.70

Calls 1

nowFunction · 0.70

Tested by

no test coverage detected