Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
test(host): compare empty results with assert_eq
leepokai320e2b329276
diff --git a/host/src/chat/group/tests.rs b/host/src/chat/group/tests.rsindex cdd2c0b3..19fc9f81 100644--- a/host/src/chat/group/tests.rs+++ b/host/src/chat/group/tests.rs@@ -51,15 +51,23 @@ fn later_rounds_ask_only_the_members_another_member_mentioned() {cited(&members, messages, &asked).into_iter().map(|b| b.id.clone()).collect()};let ids = |messages: &[Entry]| asked_ids(messages, &[]);- assert!(ids(&[said("hi all"), by("a", "done", 2)]).is_empty(), "nobody named: the room turn ends");+ assert_eq!(ids(&[said("hi all"), by("a", "done", 2)]), Vec::<String>::new(), "nobody named: the room turn ends");let named = [said("hi"), by("a", "@bob check", 2)];- assert!(asked_ids(&named, &[("b", 2)]).is_empty(), "Bob saw it and passed");+ assert_eq!(asked_ids(&named, &[("b", 2)]), Vec::<String>::new(), "Bob saw it and passed");assert_eq!(asked_ids(&named, &[("b", 1)]), ["b"], "Bob was asked before he was named");assert_eq!(ids(&[said("hi"), by("a", "@bob can you check?", 2)]), ["b"]);- assert!(ids(&[said("hi"), by("a", "@bob check", 2), by("b", "checked", 3)]).is_empty(), "Bob already answered");+ assert_eq!(+ ids(&[said("hi"), by("a", "@bob check", 2), by("b", "checked", 3)]),+ Vec::<String>::new(),+ "Bob already answered"+ );assert_eq!(ids(&[said("hi"), by("a", "@bob check", 2), by("b", "ok", 3), by("c", "@bob again", 4)]), ["b"]);assert_eq!(ids(&[said("hi"), by("a", "@alice @all over to you", 2)]), ["b", "c"], "not yourself");- assert!(ids(&[said("@cara look"), by("a", "ok", 2)]).is_empty(), "the user's mentions pick the first round");+ assert_eq!(+ ids(&[said("@cara look"), by("a", "ok", 2)]),+ Vec::<String>::new(),+ "the user's mentions pick the first round"+ );}use crate::api::devices::Caller;diff --git a/host/src/chat/team/tests.rs b/host/src/chat/team/tests.rsindex c903a0eb..ef01e9c9 100644--- a/host/src/chat/team/tests.rs+++ b/host/src/chat/team/tests.rs@@ -207,8 +207,8 @@ async fn permission_cards_still_require_the_recipients_approval_and_a_request_mef.until(|| f.took("a", 1) && f.took("b", 1)).await;assert!(f.notices(&receipt).iter().all(|e| e.data["status"] == "completed"));assert_eq!(f.finals("a"), ["Relayed: reply: PERMISSION inspect the project"]);- assert!(f.finals("b").is_empty());- assert!(f.prompts_of("c").is_empty());+ assert_eq!(f.finals("b"), Vec::<String>::new());+ assert_eq!(f.prompts_of("c"), Vec::<String>::new());f.shutdown().await;}@@ -254,7 +254,7 @@ async fn message_returns_before_approval_and_survives_sender_stop() {for bot in ["a", "b"] {assert!(f.hub.store.history(bot, i64::MAX, 100).unwrap().iter().all(|e| e.kind != "user"));}- assert!(f.finals("b").is_empty());+ assert_eq!(f.finals("b"), Vec::<String>::new());assert_eq!(f.finals("a"), ["Relayed: reply: PERMISSION BLOCK independent work"]);f.shutdown().await;}diff --git a/host/tests/team_e2e.rs b/host/tests/team_e2e.rsindex dbcaabe5..c2146816 100644--- a/host/tests/team_e2e.rs+++ b/host/tests/team_e2e.rs@@ -151,7 +151,7 @@ async fn a_bot_messages_another_and_relays_its_reply_to_the_user() {let conversation = host.call("botConversation", json!({"botId": lead, "peerId": reviewer})).await;assert_eq!(conversation["entries"].as_array().unwrap().len(), 1);let recipient_history = host.call("history", json!({"botId": reviewer})).await;- assert!(finals(&recipient_history).is_empty(), "the answer is the lead's, not the reviewer's chat's");+ assert_eq!(finals(&recipient_history), Vec::<&str>::new(), "the answer is the lead's, not the reviewer's chat's");assert!(recipient_history["entries"].as_array().unwrap().iter().all(|e| e["kind"] != "user"));assert!(recipient_history["entries"]@@ -185,7 +185,7 @@ async fn a_bot_request_answers_the_sender_and_never_the_user() {assert!(notices[0]["data"]["text"].as_str().unwrap().contains("Answer for the requesting bot"));assert!(!history["entries"].as_array().unwrap().iter().any(|e| e["data"]["text"] == "Report for the user"));if bot == &reviewer {- assert!(finals(&history).is_empty());+ assert_eq!(finals(&history), Vec::<&str>::new());}}}