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.

Fix hotkeys on windows

Dillon DuPont7cfe63e50b72
diff --git a/libs/computer-server/computer_server/handlers/windows.py b/libs/computer-server/computer_server/handlers/windows.py
index 269b97b6de..d88dfe0bea 100644
--- a/libs/computer-server/computer_server/handlers/windows.py
+++ b/libs/computer-server/computer_server/handlers/windows.py
@@ -277,7 +277,7 @@ class WindowsAutomationHandler(BaseAutomationHandler):
except Exception as e:
return {"success": False, "error": str(e)}
- async def hotkey(self, *keys: str) -> Dict[str, Any]:
+ async def hotkey(self, keys: str) -> Dict[str, Any]:
if not pyautogui:
return {"success": False, "error": "pyautogui not available"}
diff --git a/libs/computer/computer/providers/winsandbox/__init__.py b/libs/computer/computer/providers/winsandbox/__init__.py
new file mode 100644
index 0000000000..715ed7db06
--- /dev/null
+++ b/libs/computer/computer/providers/winsandbox/__init__.py
@@ -0,0 +1,11 @@
+"""Windows Sandbox provider for CUA Computer."""
+
+try:
+ import winsandbox
+ HAS_WINSANDBOX = True
+except ImportError:
+ HAS_WINSANDBOX = False
+
+from .provider import WinSandboxProvider
+
+__all__ = ["WinSandboxProvider", "HAS_WINSANDBOX"]