Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

832 B
Raw Blame
// SPDX-License-Identifier: MIT
// Copyright (c) 2026 Cua AI, Inc.

//! Agent cursor overlay — transparent click-through window.
//!
//! Public surface:
//! - `overlay::init(cfg)` — called from `register_tools_with_cursor`
//! - `overlay::run_on_main_thread()` — called from `main()` on the main thread
//! - `overlay::send_command(cmd)` — called from tool implementations

pub mod overlay;
/// System cursor shape reporting (what the OS draws, not what Cua draws).
pub mod shape;
pub mod state;

// Re-export the legacy per-instance cursor state (used by tools for multi-cursor tracking).
pub use state::{CursorRegistry, CursorState};
// Note: `state::CursorConfig` (the old runtime config) is intentionally not re-exported
// at this level to avoid conflicting with `cursor_overlay::CursorConfig` (the CLI/shared config).