Skip to content

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.

1.1 KB
Raw Blame
//! Helper protocol types: displays and the helper's status.

use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Default, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct Display {
    pub id: u32,
    #[serde(default)]
    pub name: String,
    /// Size in points.
    pub width: f64,
    pub height: f64,
    #[serde(default)]
    pub main: bool,
}

/// What the helper reports about itself.
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct HelperStatus {
    #[serde(default)]
    pub platform: String,
    /// Name to look for in the operating system's permission settings.
    #[serde(default)]
    pub permission_app: String,
    #[serde(default)]
    pub displays: Vec<Display>,
    /// Screen capture is permitted.
    #[serde(default)]
    pub capture: bool,
    /// Input injection (and the accessibility tree) is permitted.
    #[serde(default)]
    pub input: bool,
    /// Both directions support incremental ICE candidates.
    #[serde(default)]
    pub trickle: bool,
}