MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / printStreamToStdout

Function printStreamToStdout

packages/core/src/pipes/pipes.ts:570–575  ·  view source on GitHub ↗
(runner: Runner)

Source from the content-addressed store, hash-verified

568 * @returns A Promise that resolves when the printing is complete.
569 */
570export const printStreamToStdout = async (runner: Runner): Promise<void> => {
571 for await (const chunk of runner) {
572 const textPart = chunk.choices[0]?.delta?.content || '';
573 process.stdout.write(textPart);
574 }
575};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected