Skip to main content

scv_server/
lib.rs

1//! The SCV server: the authority over sessions, policy, and approvals, served
2//! over the daemon's Unix socket ([`run_socket`]) or one stdio connection
3//! ([`run_stdio`]), for the instance the caller selected with
4//! `scv_client::Layout::from_env`.
5//!
6//! Each connection gets its own session with an ordered turn queue; turns run
7//! `scv_core::AgentRuntime` with the configured provider and the tools
8//! `scv_tools` offers. The daemon also supervises long-running components
9//! (`components`), such as chat channel accounts, and plans restarts into a
10//! newly installed release. [`config`] reads and layers the configuration,
11//! which the `scv` command line also inspects.
12
13mod approval;
14mod attachments;
15mod components;
16pub mod config;
17mod confirm;
18mod connection;
19mod control;
20mod daemon;
21mod events;
22mod outbound;
23mod prompt;
24mod restart;
25mod session;
26#[cfg(test)]
27mod test_support;
28
29pub use daemon::{run_socket, run_stdio};
30pub use restart::{BuildInfo, build_info, watchdog as restart_watchdog};
31
32#[cfg(test)]
33mod tests;