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
added wss, fixed server dep
Dillon DuPontb3518476ee45
diff --git a/libs/computer-server/pyproject.toml b/libs/computer-server/pyproject.tomlindex 674f11aa59..b5480f0fe2 100644--- a/libs/computer-server/pyproject.toml+++ b/libs/computer-server/pyproject.toml@@ -17,7 +17,8 @@ dependencies = ["uvicorn[standard]>=0.27.0","pydantic>=2.0.0","pyautogui>=0.9.54",- "pillow>=10.2.0"+ "pillow>=10.2.0",+ "aiohttp>=3.9.1"][project.optional-dependencies]diff --git a/libs/computer/computer/interface/linux.py b/libs/computer/computer/interface/linux.pyindex 71a702e0a8..ccfe695fc8 100644--- a/libs/computer/computer/interface/linux.py+++ b/libs/computer/computer/interface/linux.py@@ -37,7 +37,8 @@ class LinuxComputerInterface(BaseComputerInterface):Returns:WebSocket URI for the Computer API Server"""- return f"ws://{self.ip_address}:8000/ws"+ protocol = "wss" if self.api_key else "ws"+ return f"{protocol}://{self.ip_address}:8000/ws"async def _keep_alive(self):"""Keep the WebSocket connection alive with automatic reconnection."""diff --git a/libs/computer/computer/interface/macos.py b/libs/computer/computer/interface/macos.pyindex 243c039faf..ad53c42768 100644--- a/libs/computer/computer/interface/macos.py+++ b/libs/computer/computer/interface/macos.py@@ -37,7 +37,8 @@ class MacOSComputerInterface(BaseComputerInterface):Returns:WebSocket URI for the Computer API Server"""- return f"ws://{self.ip_address}:8000/ws"+ protocol = "wss" if self.api_key else "ws"+ return f"{protocol}://{self.ip_address}:8000/ws"async def _keep_alive(self):"""Keep the WebSocket connection alive with automatic reconnection."""diff --git a/libs/computer/computer/providers/cloud/provider.py b/libs/computer/computer/providers/cloud/provider.pyindex 2edb1e85b8..32cf844294 100644--- a/libs/computer/computer/providers/cloud/provider.py+++ b/libs/computer/computer/providers/cloud/provider.py@@ -51,7 +51,8 @@ class CloudProvider(BaseVMProvider):if resp.status == 200:vnc_url = (await resp.text()).strip()parsed = urlparse(vnc_url)- hostname = parsed.hostname+ hostname = parsed.hostname or ""+ hostname = hostname.replace(".us.vms.trycua.com", ".containers.cloud.trycua.com")return {"name": name, "status": "available", "vnc_url": vnc_url, "hostname": hostname}else:try: