Skip to main content

ralph_proto/
lib.rs

1//! # ralph-proto
2//!
3//! Shared types, error definitions, and traits for the Ralph Orchestrator framework.
4//!
5//! This crate provides the foundational abstractions used across all Ralph crates,
6//! including:
7//! - Event and `EventBus` types for pub/sub messaging
8//! - Hat definitions for agent personas
9//! - Topic matching for event routing
10//! - Common error types
11
12pub mod daemon;
13mod error;
14mod event;
15mod event_bus;
16mod hat;
17pub mod json_rpc;
18pub mod robot;
19mod topic;
20mod ux_event;
21
22pub use daemon::{DaemonAdapter, StartLoopFn};
23pub use error::{Error, Result};
24pub use event::Event;
25pub use event_bus::EventBus;
26pub use hat::{Hat, HatId};
27pub use json_rpc::{
28    GuidanceTarget, RpcCommand, RpcEvent, RpcIterationInfo, RpcState, RpcTaskCounts,
29    RpcTaskSummary, TerminationReason, emit_event, emit_event_line, parse_command,
30};
31pub use robot::{CheckinContext, RobotService};
32pub use topic::Topic;
33pub use ux_event::{
34    FrameCapture, TerminalColorMode, TerminalResize, TerminalWrite, TuiFrame, UxEvent,
35};