(event: WorkspaceExecEvent<ExecEncoding>)
| 83 | const encoder = new TextEncoder(); |
| 84 | |
| 85 | export 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. |
| 90 | export function encodeExecEvents( |