Skip to main content

Crate clawbro

Crate clawbro 

Source
Expand description

ClawBro server library target. Exposes modules and test helpers for integration tests.

Re-exports§

pub use gateway_process::run as run_gateway_process;
pub use config::GatewayConfig;
pub use state::AppState;
pub use state::BrokerApprovalResolver;

Modules§

agent_core
agent_sdk_internal
Reusable ClawBro execution core shared by library and shell runtimes.
channel_registry
channels_internal
cli
config
delivery_resolver
diagnostics
embedded_agent
gateway
gateway_process
im_sink
progress_presentation
protocol
Host-neutral runtime contract for ClawBro runtimes, shells, and gateway adapters.
runtime
scheduler
scheduler_runtime
session
skills_internal
state
team_contract
team_runtime

Functions§

build_test_state_with_config
start_test_gateway
Start a gateway instance for testing. The server runs until the tokio runtime shuts down (end of #[tokio::test]). agent_binary: path to the ACP agent binary (e.g. clawbro-rust-agent). Returns the bound SocketAddr (port 0 = OS-assigned).
start_test_gateway_with_backend
Start a gateway instance for testing with an explicit runtime backend. Returns the bound SocketAddr (port 0 = OS-assigned).
start_test_gateway_with_config
Start a gateway instance for testing with an explicit GatewayConfig. Returns the bound SocketAddr (port 0 = OS-assigned).