pub fn encode_capnp(diff: &FrameDiff, pane_id: u32) -> Vec<u8> ⓘExpand description
Encode a frame diff as a Cap’n Proto TuiFrame message.
Returns serialized bytes ready for streaming via StreamPublisher.
pane_id is embedded in the TuiFrame so the client can route frames
to the correct pane buffer without relying on server-side active pane state.