#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum DaemonType {
OpenCode,
OpenClaw,
}
#[derive(Debug, Clone)]
pub enum DaemonAuth {
Basic { password: String },
Bearer { token: String },
}
#[derive(Debug, Clone)]
pub struct DaemonConfig {
pub daemon_type: DaemonType,
pub host: String,
pub port: u16,
pub auth: Option<DaemonAuth>,
pub session_id: Option<String>,
}
impl Default for DaemonConfig {
fn default() -> Self {
Self {
daemon_type: DaemonType::OpenCode,
host: "127.0.0.1".to_string(),
port: 4096,
auth: None,
session_id: None,
}
}
}