Skip to main content

Crate codeswarm_adapters

Crate codeswarm_adapters 

Source
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.
AdapterHost
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.
HostUpdate
RelayCancellation
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.
RelayHost
Sequential multi-adapter runner. It intentionally never polls two adapters concurrently: the next prompt depends on the prior response.
RelayPermissionAnswer
A permission response delivered while a relay turn is still streaming.
ScriptedAdapter
Deterministic in-memory adapter used for contract and relay tests.

Enums§

AdapterError
CommandParseError
A shell-free argv parser for commands stored in the agent catalog.

Traits§

AgentAdapter
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.

Type Aliases§

AdapterResult