Skip to main content

Crate scv_server

Crate scv_server 

Source
Expand description

The SCV server: the authority over sessions, policy, and approvals, served over the daemon’s Unix socket (run_socket) or one stdio connection (run_stdio), for the instance the caller selected with scv_client::Layout::from_env.

Each connection gets its own session with an ordered turn queue; turns run scv_core::AgentRuntime with the configured provider and the tools scv_tools offers. The daemon also supervises long-running components (components), such as chat channel accounts, and plans restarts into a newly installed release. config reads and layers the configuration, which the scv command line also inspects.

Modules§

config
SCV’s configuration: the schema of config.toml ([schema]), how the layers are read and merged ([load]), what each value must satisfy and what a project may change ([validate]), and the settings the runtime, tools, and provider are built from ([runtime]).

Structs§

BuildInfo
What a binary reports about itself for a planned restart.

Functions§

build_info
This binary’s build information, printed by scv build-info.
restart_watchdog
Restart the unit, check the new release, and roll back when it fails and the releases share a config layout. Records the outcome in the plan.
run_socket
Run the authoritative server on the instance’s Unix socket.
run_stdio
Serve one session over stdin and stdout for the instance at layout.