pub mod adapter;
pub mod envelope;
pub mod event;
pub mod frame;
pub mod lifecycle;
pub mod ops;
pub mod text;
pub mod view;
pub use adapter::{
AdapterMsg, AgentMount, AssignAckArgs, AssignArgs, ByeNotice, Capability, ClusterMount,
ConfigGetArgs, DetachArgs, GatewayBinding, GatewayMount, HELLO_REQUIRED_MESSAGE,
HELLO_TIMEOUT_MS, HandoffArgs, HelloAck, HelloArgs, HostOp, Mount, MountKind, MsgDirection,
OpenArgs, OpenedArgs, PluginOp, RecycleArgs, RenderSendArgs, ServerInfo, SessionRegisterArgs,
ToolsMount, TypingArgs, WelcomeSlice,
};
pub use envelope::{
BODY_TEXT_MAX_BYTES, Body, CAUSALITY_LABEL_KEY_MAX_BYTES, CAUSALITY_LABEL_MAX_ENTRIES,
CAUSALITY_LABEL_VALUE_MAX_BYTES, Causality, ControlOp, Envelope, Error, IMAGE_DATA_MAX_BYTES,
IMAGE_DATA_MAX_ENCODED_BYTES, IMAGE_MIMES, ImagePart, MsgKind, Outcome, Principal, Result,
new_envelope, new_id, new_op_id, new_task_id, sha256_hex,
};
pub use event::{
CLIENT_EVENT_CLASSES, DELIVERY_BLOCKED, Event, EventRow, EventTier, FaultEvent, GatewayHealth,
HANDOFF, LedgerState, LedgerStateEvent, Lifecycle, Presence, RolePresence, SessionStateEvent,
SpecReloaded, TURN_END_WITHOUT_COMPLETE, client_event,
};
pub use frame::{
AdminFrame, ErrorCode, ErrorPayload, Frame, GatewayFrame, MAX_ERROR_MESSAGE_BYTES,
OP_ID_CONFLICT_MESSAGE, ResBody, Retry,
};
pub use lifecycle::{
AgentPhase, DeliveryPhase, HostRef, IgnoredReason, LifecycleEvent, Observation, OrcaPane,
RecoveryPhase, RejectReason, ResourcePhase, TaskState, Verdict, Version, apply, event_version,
is_legal, project,
};
pub use ops::{
AckArgs, AdminControl, AdminOp, AdminReport, AdminSend, ByeArgs, ClientOp, ControlArgs,
ConversationInfo, DETAILS_MAX_BYTES, Delivery, Drive, FreshRead, GatewayOp, GhostSweep,
HandshakeArgs, HealthArgs, HistoryArgs, LedgerEntry, LedgerQuery, LiveSession,
PublishEventArgs, PullArgs, PullReply, QueryFaultsArgs, QueryRolesArgs, QuerySessionsArgs,
Receipt, RegisterChannelArgs, RemoveRole, RepairAck, RepairAdopt, RepairFail, RepairRebind,
RepairTarget, Report, RoleInfo, RoleRuntime, SessionProjection, SessionRow, SetProse,
SetRuntime, SetSenders, SetSession, SetTargets, ShutdownArgs, SpecApply, SpecEdit, SpecView,
Subscribe, UpsertRole, Welcome,
};
pub use text::{
BINARY_NOT_FOUND_PREFIX, EXIT_NEEDS_MIGRATION, NO_SOCKET_MESSAGE, SchemaMismatch,
binary_not_found, legacy_workspace_message, unsupported_schema_message,
};
pub use view::{
BoardColumn, Card, ClusterSummary, DeliveryAxis, DeliveryView, EVENT_TAIL_LIMIT,
FAULT_STATE_OPEN, RESYNC_LAG_KIND, SessionCounts, SessionState, SessionView, Snapshot, View,
fault_is_open, is_resync_lag, snapshot_to_view, update, update_class,
};
pub const PROTOCOL_VERSION: u16 = 1;
pub const OP_ID_PREFIX: &str = "o-";
pub fn envelope_schema() -> &'static str {
include_str!(concat!(env!("OUT_DIR"), "/envelope.schema.json"))
}
pub fn adapter_schema() -> &'static str {
include_str!(concat!(env!("OUT_DIR"), "/adapter.schema.json"))
}