Expand description
Protocol adapters for CodeSwarm.
ACP and native CLI protocols are intentionally peers here. They emit the same core events and expose capabilities through the same adapter boundary.
Structs§
- AcpAdapter
- Stdio ACP transport. Protocol-specific response handling belongs here, keeping JSON-RPC framing outside the core and terminal renderer.
- Adapter
Host - Owns one adapter and feeds normalized events through the deterministic core reducer. The UI consumes effects and state snapshots.
- AgyAdapter
- A direct stream-JSON adapter for Antigravity. It deliberately does not pretend to be ACP; it translates its documented events into core events.
- Host
Update - Relay
Cancellation - A clonable signal used by a terminal control loop to interrupt the active relay turn without borrowing the relay while its adapter is being polled.
- Relay
Host - Sequential multi-adapter runner. It intentionally never polls two adapters concurrently: the next prompt depends on the prior response.
- Relay
Permission Answer - A permission response delivered while a relay turn is still streaming.
- Scripted
Adapter - Deterministic in-memory adapter used for contract and relay tests.
Enums§
- Adapter
Error - Command
Parse Error - A shell-free argv parser for commands stored in the agent catalog.
Traits§
- Agent
Adapter - Uniform control plane for ACP and custom command-line adapters.
Functions§
- parse_
command_ line - Parse a configured command into an executable and argv without invoking a shell. This is shared by native and ACP adapters.