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
fixed hotkey key expansion
Dillon DuPont51230a3349bd
diff --git a/libs/python/computer-server/computer_server/handlers/base.py b/libs/python/computer-server/computer_server/handlers/base.pyindex 012a296cd3..ac62983200 100644--- a/libs/python/computer-server/computer_server/handlers/base.py+++ b/libs/python/computer-server/computer_server/handlers/base.py@@ -167,7 +167,7 @@ class BaseAutomationHandler(ABC):pass@abstractmethod- async def hotkey(self, *keys: str) -> Dict[str, Any]:+ async def hotkey(self, keys: List[str]) -> Dict[str, Any]:"""Press a combination of keys together."""passdiff --git a/libs/python/computer-server/computer_server/handlers/windows.py b/libs/python/computer-server/computer_server/handlers/windows.pyindex 2d91ce5336..9dfe93b9bb 100644--- a/libs/python/computer-server/computer_server/handlers/windows.py+++ b/libs/python/computer-server/computer_server/handlers/windows.py@@ -279,7 +279,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: List[str]) -> Dict[str, Any]:if not pyautogui:return {"success": False, "error": "pyautogui not available"}diff --git a/libs/python/computer-server/computer_server/main.py b/libs/python/computer-server/computer_server/main.pyindex 85e5935bad..098dec6ed6 100644--- a/libs/python/computer-server/computer_server/main.py+++ b/libs/python/computer-server/computer_server/main.py@@ -568,13 +568,13 @@ async def agent_response_endpoint(async def keypress(self, keys: Union[List[str], str]) -> None:if isinstance(keys, str):- parts = keys.replace("-", "+").split("+")+ parts = keys.replace("-", "+").split("+") if len(keys) > 1 else [keys]else:parts = keysif len(parts) == 1:await self._auto.press_key(parts[0])else:- await self._auto.hotkey(*parts)+ await self._auto.hotkey(parts)async def drag(self, path: List[Dict[str, int]]) -> None:if not path: