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

Function encodeExecEvent

packages/computer/src/exec-wire.ts:85–87  ·  view source on GitHub ↗
(event: WorkspaceExecEvent<ExecEncoding>)

Source from the content-addressed store, hash-verified

83const encoder = new TextEncoder();
84
85export function encodeExecEvent(event: WorkspaceExecEvent<ExecEncoding>): Uint8Array {
86 return encoder.encode(`${JSON.stringify(frameOf(event))}\n`);
87}
88
89// Frame a stream of exec events as JSONL bytes for the wire.
90export function encodeExecEvents(

Callers 1

transformFunction · 0.85

Calls 1

frameOfFunction · 0.85

Tested by

no test coverage detected