rsclaw-runtime 2026.6.26

rsclaw composition root: AppState/RPC handlers (a2a, cmd, cron, gateway, hooks, server, ws) + process entry point
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use anyhow::Result;

use crate::cmd::gateway::cmd_gateway;
use rsclaw_cli::{DaemonCommand, GatewayCommand};

/// Delegate daemon sub-commands to gateway equivalents.
pub async fn cmd_daemon(sub: DaemonCommand) -> Result<()> {
    let gw = match sub {
        DaemonCommand::Install => GatewayCommand::Install,
        DaemonCommand::Start => GatewayCommand::Start,
        DaemonCommand::Stop => GatewayCommand::Stop,
        DaemonCommand::Restart => GatewayCommand::Restart,
        DaemonCommand::Status => GatewayCommand::Status,
        DaemonCommand::Uninstall => GatewayCommand::Uninstall,
    };
    println!("note: `daemon` is a legacy alias for `gateway`");
    cmd_gateway(gw).await
}