(stream: ReadableStream<ComputerdExecEvent>)
| 108 | // RPC layer. Heartbeats are a local observability signal only; the |
| 109 | // computer-rpc wire contract carries only stdout, stderr, and exit. |
| 110 | function dropHeartbeats(stream: ReadableStream<ComputerdExecEvent>): ReadableStream<RpcExecEvent> { |
| 111 | return stream.pipeThrough( |
| 112 | new TransformStream<ComputerdExecEvent, RpcExecEvent>({ |
| 113 | transform(event, controller) { |
| 114 | if (event.name !== "heartbeat") { |
| 115 | controller.enqueue(event as RpcExecEvent); |
| 116 | } |
| 117 | }, |
| 118 | }), |
| 119 | ); |
| 120 | } |
| 121 | |
| 122 | interface ComputerdInfo { |
| 123 | backend: FUSEBackend; |
no test coverage detected