pub struct AdapterConfig {
pub leader_sock: Option<PathBuf>,
pub inbox_dir: Option<PathBuf>,
pub codex: Option<CodexEndpoint>,
pub kimi_url: Option<String>,
pub kimi_bearer: Option<String>,
pub routine_url: Option<String>,
pub routine_bearer: Option<String>,
pub claude_fire_url: Option<String>,
pub claude_fire_bearer: Option<String>,
pub codex_cloud_env: Option<String>,
pub spawn_program: Option<PathBuf>,
}Expand description
Endpoints the host hands to adapter_for. Every field is optional;
an adapter whose endpoint is missing reports WakeError::Unavailable.
Credentials come from the host keychain / environment, never a literal.
Fields§
§leader_sock: Option<PathBuf>Grok leader.sock (M4A_LEADER_SOCK).
inbox_dir: Option<PathBuf>Inbox directory for queue-style adapters (M4A_INBOX_DIR).
codex: Option<CodexEndpoint>Codex app-server endpoint (M4A_CODEX_APP_SERVER).
kimi_url: Option<String>Kimi local server origin (M4A_KIMI_SERVER_URL).
kimi_bearer: Option<String>Kimi local server bearer (M4A_KIMI_SERVER_TOKEN), in memory only.
routine_url: Option<String>Web routine URL of the bot (M4A_ROUTINE_URL), in memory only.
routine_bearer: Option<String>Web routine key (M4A_ROUTINE_BEARER), in memory only.
claude_fire_url: Option<String>Claude routine /fire URL (M4A_CLAUDE_ROUTINE_FIRE_URL), in memory only.
claude_fire_bearer: Option<String>Claude routine token (M4A_CLAUDE_ROUTINE_TOKEN), in memory only.
codex_cloud_env: Option<String>Codex cloud environment id for codex cloud exec --env.
spawn_program: Option<PathBuf>Override of the provider binary for resume spawns (tests).
Implementations§
Source§impl AdapterConfig
impl AdapterConfig
Sourcepub fn from_env(inbox_dir: Option<PathBuf>) -> Self
pub fn from_env(inbox_dir: Option<PathBuf>) -> Self
Endpoints from the environment for one session. inbox_dir is the
session’s inbox (see registry::inbox_dir) unless
INBOX_DIR_ENV overrides it. A Kimi server is discovered from
~/.kimi-code when its env is unset. Routine URL/bearer are not
read here: the web client passes its own.