Skip to main content

systemprompt_api/services/server/lifecycle/
mod.rs

1//! Server startup reconciliation and lifecycle wiring.
2//!
3//! Reconciles enabled agents and system MCP services into a running state,
4//! bridges runtime startup events, and initializes the scheduler before the
5//! server begins accepting traffic.
6//!
7//! Copyright (c) systemprompt.io — Business Source License 1.1.
8//! See <https://systemprompt.io> for licensing details.
9
10pub mod agents;
11mod event_bridge;
12mod heartbeat;
13pub mod reconciliation;
14mod scheduler;
15mod schema_watch;
16mod secrets_refresh;
17
18pub(super) use agents::reconcile_agents;
19pub(super) use event_bridge::start_event_bridge;
20pub(super) use heartbeat::start_registry_heartbeat;
21pub(super) use reconciliation::reconcile_system_services;
22pub(super) use scheduler::initialize_scheduler;
23pub(super) use schema_watch::start_schema_watch;
24pub(super) use secrets_refresh::start_secrets_refresh;