Skip to main content

Crate scv_server

Crate scv_server 

Source
Expand description

SCV’s authoritative stdio server.

Modules§

adapters
The native agent CLIs SCV can delegate to, one descriptor each.
components
Server-owned lifecycle for every long-running integration.
delegation
What SCV started, so it can list, stop, and clean up delegated agents.

Structs§

ConfigOverrides
Endpoint
An OpenAI-compatible endpoint for pi, without its key.

Enums§

ApprovalPolicy
WireApi
Which OpenAI wire protocol an endpoint speaks.

Constants§

PI_PROVIDER
The pi provider id SCV writes for an OpenAI-compatible endpoint.

Functions§

agent_command
Build a command for a native agent’s CLI with the same private home and cleaned environment the daemon’s agent_<name> tool uses, so the agent’s own sign-in stores credentials where delegated runs will find them. Project configuration cannot set [agents], so none is read.
agent_executable
Where agent’s executable resolves, as the daemon would find it.
agent_home
The prepared private adapter home for agent.
agent_stored_status
Whether the agent’s stored credentials exist, with display lines that never contain secrets.
collect_agent_garbage
Remove delegated-conversation transcripts older than older_than from the adapter homes (agent, or every agent that keeps them), keeping any a live conversation still uses. Returns each agent’s report.
configure_pi_endpoint
Point SCV’s pi at an OpenAI-compatible endpoint.
conversation_age
Parse a scv agents gc --older-than age such as 30d.
default_socket_path
Return the local Unix socket used by the SCV daemon and TUI.
import_codex
Copy the user’s own Codex setup from source into SCV’s private Codex adapter home: config.toml, and auth.json only when it holds an API key. Returns display lines that never contain secret values.
import_grok
Copy the user’s own Grok config.toml from source (a Grok home) into SCV’s private Grok home, keeping settings only SCV’s copy has. Returns display lines that never contain secret values.
import_pi_from_scv_provider
Point SCV’s pi at SCV’s own active provider: its base URL, model, and key (read from api_key, or from the api_key_env variable now, since delegated agents never inherit key variables).
init_user_config
read_secret
Read a secret from the terminal without echo, or from piped stdin.
remove_agent_credentials
Remove the agent’s stored credentials from its adapter home.
run_socket
Run the authoritative server on the local Unix socket.
run_stdio
service_name
Return the user service name for the selected SCV instance.
service_unit_path
store_agent_key
Store key in the agent’s native credential file inside its adapter home.
update_index_url
user_home_path