class OpenUI::Rails::Stream::Bridge

Turns model output into an ordered sequence of {Envelope}s, coalescing small chunks up to pending_byte_limit and enforcing stream_byte_limit. Transport-agnostic: a caller broadcasts the yielded envelopes over Turbo Streams or Action Cable.

Pull sources (an Enumerable of chunks) go through {#each_envelope}; push sources (a streaming callback) use a {Writer} directly.