MCPcopy Create free account
hub / github.com/cloudflare/computer / stdout

Function stdout

packages/computer/src/shell.test.ts:155–157  ·  view source on GitHub ↗
(seq: number, text: string)

Source from the content-addressed store, hash-verified

153
154// Convenience: a stream-event with the encoder bytes inlined.
155function stdout(seq: number, text: string): ExecEvent {
156 return { id: "_", seq, name: "stdout", value: new TextEncoder().encode(text) };
157}
158function stderr(seq: number, text: string): ExecEvent {
159 return { id: "_", seq, name: "stderr", value: new TextEncoder().encode(text) };
160}

Callers 1

shell.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected