codetether-agent 4.7.0-a-002.4

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Staged mouse result assembly.

use crate::tool::computer_use::input::ComputerUseInput;

pub fn staged_result(
    action: &str,
    button: &str,
    target: Option<(i32, i32)>,
    input: &ComputerUseInput,
) -> crate::tool::ToolResult {
    super::report::mouse_result(serde_json::json!({
        "action": action,
        "button": button,
        "target": target.map(|(x, y)| serde_json::json!({"x": x, "y": y})),
        "modifiers": input.modifiers,
        "coordinate_mode": if input.hwnd.is_some() { "window_relative" } else { "physical_screen" }
    }))
}