Detach: signal the remote and stop locally.
Remote → local: terminal output bytes. The transport awaits an async consumer before returning credit, so a slow local stdout applies real backpressure instead of acknowledging unread bytes.
The session ended: err on a transport error (rejects), else a clean detach/close (resolves),
with the peer's distinct end reason when it sent one.
Fires once the transport is connected and ready to carry the terminal.
Local → remote: terminal resize.
Local → remote: keystroke bytes.
A transport-agnostic terminal session. attachClient drives the terminal through this interface, so the SAME raw-mode / alt-screen / detach handling serves the mesh §13.6 session (meshSessionTransport). (The legacy loopback
ws://.../attach/transport was removed with the P2 item 6 no-127.0.0.1 sweep.)