Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
// SPDX-License-Identifier: MIT
// Copyright (c) 2026 Cua AI, Inc.
//! Narrow current-main characterization for backlog #2317.
//! No desktop, input, clipboard, or user state is accessed.
#![cfg(not(target_os = "linux"))]
fn assert_screenshot_removed(compat: bool) {
let registry = platform_linux::tools::build_registry(compat);
assert!(
registry.get_def("screenshot").is_none(),
"removed screenshot remains resolvable (compat={compat})"
);
let list = registry.tools_list();
let tools = list["tools"].as_array().expect("tools/list array");
assert!(
tools.iter().all(|tool| tool["name"] != "screenshot"),
"removed screenshot remains advertised (compat={compat})"
);
}
#[test]
fn standard_registry_does_not_expose_removed_screenshot() {
assert_screenshot_removed(false);
}
#[test]
fn compat_registry_does_not_expose_removed_screenshot() {
assert_screenshot_removed(true);
}