mod acl;
mod broker;
mod orchestrator;
mod persist;
#[cfg(feature = "postgres")]
mod pg_broker;
mod registry;
pub use acl::{
ABSOLUTE_MAX_DELEGATION_DEPTH, AclEnvelope, AclMessage, DEFAULT_MAX_DELEGATION_DEPTH,
check_delegate_depth,
};
pub use broker::{MessageBroker, MpscBroker};
pub use orchestrator::{DelegationOutcome, FederationOrchestrator};
#[cfg(feature = "postgres")]
pub use persist::{AgentStateSnapshot, load_agent_states};
pub use persist::{
delete_federation_agent, load_registry_into, mark_stale_agents_inactive,
set_agent_current_task, touch_agent_heartbeat, upsert_agent_state_for_record,
upsert_registry_record,
};
#[cfg(feature = "postgres")]
pub use pg_broker::{
PgBroker, bridge_postgres_notify_to_mpsc, bridge_postgres_notify_to_mpsc_pool, pg_pool_connect,
};
pub use registry::{AgentRecord, AgentRegistry};