Metadata-Version: 2.5
Name: rcode-tunnel
Version: 0.1.0
Summary: Stream multiplexing protocol shared by the RCode tunnel relay and agent.
Requires-Python: >=3.11
Requires-Dist: websockets>=13
Description-Content-Type: text/markdown

# rcode-tunnel

Stream multiplexing protocol shared by the RCode tunnel relay and agent.

One WebSocket carries JSON control messages as text frames and multiplexed
stream data as binary frames laid out as `type:u8 | stream_id:u32 | payload`
(big endian). `Mux` turns that socket into independent `Stream` objects with
per-stream credit-based flow control; `pipe()` splices a `Stream` onto a TCP
connection.

Design: `docs/superpowers/specs/2026-09-15-tunnel-service-design.md`, section 8.

```bash
uv sync
uv run pytest -q
```
