Proto.IncomingIncoming messages from the Claude CLI.
This module defines a discriminated union of all possible message types that can be received from the Claude CLI, with a single jsont codec.
The codec uses the "type" field to discriminate between message types:
This provides a clean, type-safe way to decode incoming messages in a single operation.
type t = | Message of Message.t| Control_response of Control.response_envelope| Control_request of Control.request_envelope