opencrabs 0.3.44

The autonomous, self-improving AI agent. Single Rust binary. Every channel. Install with: cargo install opencrabs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! `/mission-control` is a built-in channel command: it must route through the
//! text-command path (so channels send its body) and show up in `/help`.

use crate::channels::commands::{ChannelCommand, format_help, try_execute_text_command};

#[tokio::test]
async fn mission_control_command_returns_its_body() {
    let cmd = ChannelCommand::MissionControl("the mission control report".to_string());
    assert_eq!(
        try_execute_text_command(&cmd).await,
        Some("the mission control report".to_string())
    );
}

#[test]
fn help_lists_the_mission_control_command() {
    assert!(format_help().contains("/mission-control"));
}