use anyhow::Result;
use arcbox_constants::ports::AGENT_PORT;
use super::Guest;
pub struct Agent;
impl Agent {
pub fn new() -> Self {
Self
}
pub async fn run(&self, _guest: Guest) -> Result<()> {
tracing::warn!("Agent is running in stub mode (non-Linux platform)");
tracing::info!("Agent would listen on vsock port {}", AGENT_PORT);
loop {
tokio::time::sleep(tokio::time::Duration::from_secs(60)).await;
tracing::debug!("Agent stub heartbeat");
}
}
}
impl Default for Agent {
fn default() -> Self {
Self::new()
}
}