Module wshutil

Module wshutil 

Source
Expand description

WSH RPC transport layer. Port of Go’s pkg/wshutil/ — OSC encoding, RPC proxy, event system, and I/O adapters.

This module provides the communication layer between AgentMux terminals and the backend RPC system. Key components:

  • OSC encoding/decoding: Terminal escape sequences for RPC messages
  • WshRpc: Main RPC client with message routing and response handling
  • WshRpcProxy: Single-connection proxy for remote RPC
  • WshMultiProxy: Broadcast proxy for multiple connections
  • EventListener: Pub/sub event system
  • I/O adapters: Stream, PTY, WebSocket message conversion

Modules§

cmdreader
CLI stdin reader for WSH command-line interface. Port of Go’s pkg/wshutil/wshcmdreader.go.
event
Event listener system for AgentMux RPC. Port of Go’s pkg/wshutil/wshevent.go.
osc
OSC (Operating System Command) encoding/decoding for terminal RPC messages. Port of Go’s pkg/wshutil/wshutil.go — OSC escape sequence handling.
proxy
RPC proxy types for forwarding messages between connections. Port of Go’s pkg/wshutil/wshproxy.go and wshmultiproxy.go.
rpcio
RPC I/O adapters for different transport modes. Port of Go’s pkg/wshutil/wshrpcio.go.
wshrpc
WshRpc — main RPC client with message routing and response handling. Port of Go’s pkg/wshutil/wshrpc.go.