Expand description
Payloads of the broker events agentmux-bashwrap publishes through srv’s
POST /agentmux/wps/publish. srv declares the same types for these events
(backend::mps_events), refuses a publish whose data isn’t one of them, and
generates them for the frontend, so the three can’t drift
(docs/specs/SPEC_CODEGEN_REMAINING_GAPS_2026_10_13.md, step 2).
The TypeScript derives are behind the ts feature, which only srv turns on.
Structs§
- Compaction
Started - The
compaction_startedevent: thePreCompacthook fired, so Claude Code is compacting. camelCase on the wire, like srv’sAgentEvent.
Enums§
- Compaction
Trigger - How compaction was triggered.
Auto= context filled up and Claude Code compacted automatically;Manual= the user (or the agent itself) ran/compact. - Tool
Chunk - The
tool_chunkevent, published toblock:<id>while a Bash call runs. The call’s tool_use_id rides in the payload, not the event name, so the pane opens one subscription per block and routes bytool_id(SPEC_STREAMING_BASH_RUNNER_2026_05_11.md §6). - Tool
Chunk Kind - Where a
tool_chunkline came from.