Skip to main content

Module frame

Module frame 

Source
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§

PeerFrame
A message from another session, as the receiving CLI reported it.
PeerHold
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.
SendCall
The CLI’s own SendMessage tool called by this agent.
SendResult
What the CLI answered a SendMessage call.

Enums§

Lifecycle
What the CLI says about a message turn it began for its own reasons.
Replay
A user frame the CLI replays under --replay-user-messages.

Functions§

lifecycle
command_lifecycle frame: (command uuid, state).
peer_hold
system/peer_message_hold frame.
replay
Some for a replayed user frame, None for any other frame.
send_calls
The SendMessage calls in an assistant frame. Only the CLI’s own tool, by its bare name: mcp__<server>__SendMessage tools are other tools.
send_results
The tool results in a non-replayed user frame, read as SendMessage results. A result that is not the tool’s JSON answer reads as not accepted.