Expand description
The stream-json frames that carry a CLI-native message, read as typed values.
The shapes are the pinned CLI’s (providers/claude.rs pinned_version);
tests holds frames captured from it.
Structs§
- Peer
Frame - A message from another session, as the receiving CLI reported it.
- Peer
Hold - The receiving CLI kept a message from reaching its model, as in a different permission mode from the sender’s. It says nothing of who sent it but a name the sender gave, and nothing of what it said.
- Send
Call - The CLI’s own
SendMessagetool called by this agent. - Send
Result - What the CLI answered a
SendMessagecall.
Enums§
- Lifecycle
- What the CLI says about a message turn it began for its own reasons.
- Replay
- A
userframe the CLI replays under--replay-user-messages.
Functions§
- lifecycle
command_lifecycleframe: (command uuid, state).- peer_
hold system/peer_message_holdframe.- replay
Somefor a replayed user frame,Nonefor any other frame.- send_
calls - The
SendMessagecalls in an assistant frame. Only the CLI’s own tool, by its bare name:mcp__<server>__SendMessagetools are other tools. - send_
results - The tool results in a non-replayed user frame, read as
SendMessageresults. A result that is not the tool’s JSON answer reads as not accepted.