Expand description
JSON-RPC 2.0 framing for the ACP transport (ADR-0007 §1, §2).
ADR-0007 takes the wire types from agent-client-protocol-schema — that is where
protocol churn lives — and owns the framing, which has not changed since JSON-RPC 2.0
in 2010. This is that framing: one JSON object per line, in both directions.
Verified, not assumed. The upstream SDK reads with .lines(), writes with
write_line, and asserts outgoing messages contain no \r or \n. So a line is a
message, and a message never spans lines.
Pure: bytes in, typed messages out. No process, no threads, no I/O — which is what makes the wire behaviour testable without an agent installed.
Structs§
- Request
Ids - Hands out request ids.
Enums§
- Decode
Error - Why a line could not be understood.
- Message
- A message we send to the agent, or one it sends us.