Computer use CLI for AI agents
Rust accessibilityaccessibility-apiai-agentsautomationclicomputer-usecomputer-use-agentcomputer-use-agentsdesktop-automationmacosmcprust
use agent_desktop_core::commands::batch::BatchCommand;
use super::parse_command;
fn item(command: &str) -> BatchCommand {
BatchCommand {
command: command.into(),
session: None,
args: serde_json::Value::Null,
}
}
#[test]
fn sandbox_is_refused_inside_a_batch() {
let error = parse_command(item("sandbox")).expect_err("batch must refuse the command");
assert_eq!(error.code(), "INVALID_ARGS");
}