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
fix(cua-sandbox): use published Fleet SDK
r33drichards8ba2d4fd98f5
diff --git a/libs/python/cua-sandbox/README.md b/libs/python/cua-sandbox/README.mdindex 16b214dfcd..9c8e0f5a8d 100644--- a/libs/python/cua-sandbox/README.md+++ b/libs/python/cua-sandbox/README.md@@ -6,8 +6,7 @@ Sandboxed VM environments with a unified Python API. Cloud by default.pip install cua-sandbox```-Fleet support is provided through the `cua-fleet` facade. Its transitive-`cua-train` dependency bundles the platform-specific `cyclops_sdk` native binding.+Fleet support is provided by the published `cua-fleet` wheel. It bundles the platform-specific `fleet_sdk` native binding.Install from the Cua wheel index when resolving dependencies with pip:```bashdiff --git a/libs/python/cua-sandbox/cua_sandbox/pool.py b/libs/python/cua-sandbox/cua_sandbox/pool.pyindex 8651218ac0..c331995dfd 100644--- a/libs/python/cua-sandbox/cua_sandbox/pool.py+++ b/libs/python/cua-sandbox/cua_sandbox/pool.py@@ -11,7 +11,7 @@ from cua_sandbox.image import Imagefrom cua_sandbox.sandbox import Sandboxfrom cua_sandbox.transport.fleet import FleetTransportfrom cua_sandbox.transport.fleet_cloud import FleetCloudTransport, _FleetClient-from cyclops_sdk import CreateClaimRequest+from fleet_sdk import CreateClaimRequestlogger = logging.getLogger(__name__)diff --git a/libs/python/cua-sandbox/cua_sandbox/transport/cyclops_http_client.py b/libs/python/cua-sandbox/cua_sandbox/transport/cyclops_http_client.pyindex f3c6de6c6e..ab7eeac680 100644--- a/libs/python/cua-sandbox/cua_sandbox/transport/cyclops_http_client.py+++ b/libs/python/cua-sandbox/cua_sandbox/transport/cyclops_http_client.py@@ -3,7 +3,7 @@from __future__ import annotationsimport httpx-from cyclops_sdk import HttpClient, HttpError, HttpHeader, HttpRequest, HttpResponse+from fleet_sdk import HttpClient, HttpError, HttpHeader, HttpRequest, HttpResponseclass CyclopsHttpClient(HttpClient):diff --git a/libs/python/cua-sandbox/cua_sandbox/transport/fleet.py b/libs/python/cua-sandbox/cua_sandbox/transport/fleet.pyindex e6a955d7c7..07e245f003 100644--- a/libs/python/cua-sandbox/cua_sandbox/transport/fleet.py+++ b/libs/python/cua-sandbox/cua_sandbox/transport/fleet.py@@ -13,7 +13,7 @@ from cua_sandbox.transport.computer_server import (normalize_screen_size,parse_command_response,)-from cyclops_sdk import HttpHeader, HttpRequest+from fleet_sdk import HttpHeader, HttpRequest_CMD_MAX_RETRIES = 3_CMD_RETRY_BACKOFF_S = 0.5diff --git a/libs/python/cua-sandbox/cua_sandbox/transport/fleet_cloud.py b/libs/python/cua-sandbox/cua_sandbox/transport/fleet_cloud.pyindex cae9c8c346..cd0d6504f7 100644--- a/libs/python/cua-sandbox/cua_sandbox/transport/fleet_cloud.py+++ b/libs/python/cua-sandbox/cua_sandbox/transport/fleet_cloud.py@@ -17,7 +17,7 @@ from cua_sandbox._config import (from cua_sandbox.image import Imagefrom cua_sandbox.transport.cyclops_http_client import CyclopsHttpClientfrom cua_sandbox.transport.fleet import FleetTransport-from cyclops_sdk import (+from fleet_sdk import (CreateClaimRequest,CreatePoolRequest,CyclopsClient,diff --git a/libs/python/cua-sandbox/pyproject.toml b/libs/python/cua-sandbox/pyproject.tomlindex 4bf7227862..c35b80c0c8 100644--- a/libs/python/cua-sandbox/pyproject.toml+++ b/libs/python/cua-sandbox/pyproject.toml@@ -29,7 +29,7 @@ requires-python = ">=3.11,<3.14"dependencies = ["cua-core>=0.3.0,<0.4.0","cua-auto>=0.1.2",- "cua-fleet==0.0.6",+ "cua-fleet==0.0.7","websockets>=12.0","httpx>=0.27.0","oras>=0.2.40",diff --git a/libs/python/cua-sandbox/tests/test_cyclops_sdk_distribution.py b/libs/python/cua-sandbox/tests/test_cyclops_sdk_distribution.pydeleted file mode 100644index ba8212297c..0000000000--- a/libs/python/cua-sandbox/tests/test_cyclops_sdk_distribution.py+++ /dev/null@@ -1,23 +0,0 @@-from importlib.metadata import distribution, requires-from pathlib import Path--import cua_fleet-import cua_train-import cyclops_sdk-from cua_sandbox.transport.fleet_cloud import FleetCloudTransport---def test_cyclops_sdk_is_provided_by_published_fleets_transitive_train_distribution():- cua_fleet_distribution = distribution("cua-fleet")- cua_train_distribution = distribution("cua-train")- installed_files = {str(path) for path in cua_train_distribution.files or []}- distribution_root = Path(cua_train_distribution.locate_file(".")).resolve()- binding_path = Path(cyclops_sdk.__file__).resolve()-- assert cua_fleet_distribution.version == "0.0.4"- assert "cua-train==0.1.1" in (requires("cua-fleet") or [])- assert cua_fleet.TrainClient is cua_train.TrainClient- assert cua_fleet.__all__ == ["TrainClient"]- assert "cyclops_sdk/__init__.py" in installed_files- assert binding_path.is_relative_to(distribution_root)- assert FleetCloudTransport.__module__ == "cua_sandbox.transport.fleet_cloud"diff --git a/libs/python/cua-sandbox/tests/test_fleet_cloud_transport.py b/libs/python/cua-sandbox/tests/test_fleet_cloud_transport.pyindex 4bc01962b0..e21237fa75 100644--- a/libs/python/cua-sandbox/tests/test_fleet_cloud_transport.py+++ b/libs/python/cua-sandbox/tests/test_fleet_cloud_transport.py@@ -2,7 +2,7 @@ import pytestfrom cua_sandbox import Imagefrom cua_sandbox.transport import fleet_cloudfrom cua_sandbox.transport.fleet_cloud import FleetCloudTransport-from cyclops_sdk import Sandbox+from fleet_sdk import Sandboxdef test_registry_image_becomes_typed_pool_request():diff --git a/libs/python/cua-sandbox/tests/test_fleet_sdk_distribution.py b/libs/python/cua-sandbox/tests/test_fleet_sdk_distribution.pynew file mode 100644index 0000000000..80582afb77--- /dev/null+++ b/libs/python/cua-sandbox/tests/test_fleet_sdk_distribution.py@@ -0,0 +1,15 @@+from importlib.metadata import distribution+from pathlib import Path++import fleet_sdk+++def test_fleet_sdk_is_provided_by_published_fleet_distribution():+ cua_fleet_distribution = distribution("cua-fleet")+ installed_files = {str(path) for path in cua_fleet_distribution.files or []}+ distribution_root = Path(cua_fleet_distribution.locate_file(".")).resolve()+ binding_path = Path(fleet_sdk.__file__).resolve()++ assert cua_fleet_distribution.version == "0.0.7"+ assert "fleet_sdk/__init__.py" in installed_files+ assert binding_path.is_relative_to(distribution_root)diff --git a/libs/python/cua-sandbox/tests/test_cyclops_sdk_packaging.py b/libs/python/cua-sandbox/tests/test_fleet_sdk_packaging.pysimilarity index 81%rename from libs/python/cua-sandbox/tests/test_cyclops_sdk_packaging.pyrename to libs/python/cua-sandbox/tests/test_fleet_sdk_packaging.pyindex ef029f30fe..2b78b32492 100644--- a/libs/python/cua-sandbox/tests/test_cyclops_sdk_packaging.py+++ b/libs/python/cua-sandbox/tests/test_fleet_sdk_packaging.py@@ -12,13 +12,13 @@ FLEET_IMPORTS = ()-class CyclopsSdkPackagingTests(unittest.TestCase):+class FleetSdkPackagingTests(unittest.TestCase):def test_declares_published_fleet_without_a_direct_train_dependency(self):with PYPROJECT_PATH.open("rb") as pyproject_file:project = tomllib.load(pyproject_file)dependencies = project["project"]["dependencies"]- self.assertIn("cua-fleet==0.0.4", dependencies)+ self.assertIn("cua-fleet==0.0.7", dependencies)self.assertFalse(any(dependency.startswith("cua-train") for dependency in dependencies))self.assertNotIn("cua-fleet", project["tool"]["uv"]["sources"])self.assertNotIn("cua-train", project["tool"]["uv"]["sources"])@@ -30,7 +30,7 @@ class CyclopsSdkPackagingTests(unittest.TestCase):},)- def test_lock_keeps_train_only_as_a_fleet_transitive_dependency(self):+ def test_lock_uses_the_published_fleet_bundle(self):with LOCK_PATH.open("rb") as lock_file:lock = tomllib.load(lock_file)@@ -49,15 +49,10 @@ class CyclopsSdkPackagingTests(unittest.TestCase):self.assertNotIn("cua-train", sandbox_dependencies)self.assertIn("cua-fleet", sandbox_requires_dist)self.assertNotIn("cua-train", sandbox_requires_dist)- self.assertEqual(packages["cua-fleet"]["version"], "0.0.4")+ self.assertEqual(packages["cua-fleet"]["version"], "0.0.7")self.assertEqual(packages["cua-fleet"]["source"], {"registry": "https://pypi.org/simple"})- self.assertIn("cua-train", fleet_dependencies)- self.assertEqual(fleet_dependencies, {"cua-train"})- self.assertEqual(packages["cua-train"]["version"], "0.1.1")- self.assertEqual(- packages["cua-train"]["source"],- {"registry": "https://wheels.cua.ai/simple"},- )+ self.assertNotIn("cua-train", fleet_dependencies)+ self.assertNotIn("cua-train", packages)def test_package_does_not_copy_the_binding_from_the_checkout(self):self.assertFalse((PROJECT_ROOT / "hatch_build.py").exists())@@ -65,10 +60,10 @@ class CyclopsSdkPackagingTests(unittest.TestCase):project = tomllib.load(pyproject_file)self.assertNotIn("hooks", project.get("tool", {}).get("hatch", {}).get("build", {}))- def test_fleet_runtime_keeps_binding_imports_direct(self):+ def test_fleet_runtime_imports_published_binding_directly(self):for source_path in FLEET_IMPORTS:source = source_path.read_text()- self.assertIn("from cyclops_sdk import", source)+ self.assertIn("from fleet_sdk import", source)self.assertNotIn("from cua_train", source)self.assertNotIn("sys.path", source)self.assertNotIn("site.addsitedir", source)diff --git a/libs/python/cua-sandbox/tests/test_fleet_transport.py b/libs/python/cua-sandbox/tests/test_fleet_transport.pyindex c5af869e2b..f7a9b04ce2 100644--- a/libs/python/cua-sandbox/tests/test_fleet_transport.py+++ b/libs/python/cua-sandbox/tests/test_fleet_transport.py@@ -3,7 +3,7 @@ import jsonimport pytestfrom cua_sandbox.transport.fleet import FleetTransport-from cyclops_sdk import HttpResponse, Sandbox+from fleet_sdk import HttpResponse, Sandboxclass FakeSDK:diff --git a/libs/python/cua-sandbox/tests/test_pool.py b/libs/python/cua-sandbox/tests/test_pool.pyindex fa953f239d..8dab66e6f1 100644--- a/libs/python/cua-sandbox/tests/test_pool.py+++ b/libs/python/cua-sandbox/tests/test_pool.py@@ -6,7 +6,7 @@ import pytestfrom cua_sandbox import Image, Poolfrom cua_sandbox.sync import Pool as SyncPoolfrom cua_sandbox.transport.fleet_cloud import _FleetClient-from cyclops_sdk import Sandbox as FleetSandbox+from fleet_sdk import Sandbox as FleetSandboxdef fleet_pool(name: str = "foo") -> SimpleNamespace:diff --git a/libs/python/cua-sandbox/uv.lock b/libs/python/cua-sandbox/uv.lockindex 21aff68ab3..93b228fae1 100644--- a/libs/python/cua-sandbox/uv.lock+++ b/libs/python/cua-sandbox/uv.lock@@ -539,7 +539,7 @@ dev = [{ name = "pytest", specifier = ">=8.3.5" }][[package]]name = "cua-fleet"-version = "0.0.6"+version = "0.0.7"source = { registry = "https://pypi.org/simple" }dependencies = [{ name = "attrs" },@@ -547,15 +547,15 @@ dependencies = [{ name = "python-dateutil" },]wheels = [- { url = "https://files.pythonhosted.org/packages/33/12/e0e08eb6b56e421c92815654f162ee1bcd9e5abb7dbc1e26e12f316dff46/cua_fleet-0.0.6-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:4a292b0519eaa172c4d4d081e771e0a66e6cb964a2bb01fc2cbd68020c302c8a", size = 2123635, upload-time = "2026-08-01T02:21:37.116Z" },- { url = "https://files.pythonhosted.org/packages/f7/53/398c64149eaf467e9d97fb0958ec97f5fab22a4c08a0a8c47cb72412532a/cua_fleet-0.0.6-py3-none-macosx_11_0_arm64.whl", hash = "sha256:ed310ad529c6655a9fde8455fc764c2b7e53f5ca2581e39aec9e878296a0de6e", size = 2037302, upload-time = "2026-08-01T02:21:38.393Z" },- { url = "https://files.pythonhosted.org/packages/c8/c2/ac127bde7f2ffe1b2affe49e11b48d4053728c15d700b2b96190768d2296/cua_fleet-0.0.6-py3-none-manylinux_2_34_aarch64.whl", hash = "sha256:612c3d2cfe4b4a1356503a0ddee6518f9cc1d8e5c410124b68627a8650977237", size = 2300923, upload-time = "2026-08-01T02:21:39.561Z" },- { url = "https://files.pythonhosted.org/packages/33/e1/67de4257140bc9d22f14cb9ee4d627d5e25cf0544aa323d4d6ff33a25c8e/cua_fleet-0.0.6-py3-none-manylinux_2_34_x86_64.whl", hash = "sha256:4d5119b7ff46bd2af9af1a2310c16b6993787bafa94f308512463929eddcc45a", size = 2355463, upload-time = "2026-08-01T02:21:40.87Z" },+ { url = "https://files.pythonhosted.org/packages/ef/ad/a8519f33efcc467a6f1e15ded9881e8c8c793614dcc62cd40eac7833066c/cua_fleet-0.0.7-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:3f76c64cd6d8abd42ca322bac1b184c202ed1fc7bfa47ef7d503949d304013b8", size = 2123635, upload-time = "2026-08-02T01:59:23.577Z" },+ { url = "https://files.pythonhosted.org/packages/b2/83/7e2dfe9d95925851298da4c1fca4b6b3c9cdf69278aaf0394669fe9bc9d1/cua_fleet-0.0.7-py3-none-macosx_11_0_arm64.whl", hash = "sha256:64972b5750fe512f7f60fac6cd98f7472a68d209d117615136402055d890c3df", size = 2037284, upload-time = "2026-08-02T01:59:25.091Z" },+ { url = "https://files.pythonhosted.org/packages/39/06/4b2b819236aa3a1f381e3e749805bdc063d2f8b84f43c545a6bae76d75d6/cua_fleet-0.0.7-py3-none-manylinux_2_34_aarch64.whl", hash = "sha256:372f46232c819751c8ad0469a1ea86a53da02203bfb251d15826178c81984097", size = 2300936, upload-time = "2026-08-02T01:59:26.369Z" },+ { url = "https://files.pythonhosted.org/packages/a5/40/d6777691c2ede5f657469ed1a66af127948bc8d00ee841aa9f3afb822982/cua_fleet-0.0.7-py3-none-manylinux_2_34_x86_64.whl", hash = "sha256:0eb19f50b3fe745b3e8177a20905a536b91121e4b85ddb5ca8b30bc2682119fd", size = 2355501, upload-time = "2026-08-02T01:59:27.814Z" },][[package]]name = "cua-sandbox"-version = "0.1.18"+version = "0.1.19"source = { editable = "." }dependencies = [{ name = "cua-auto" },@@ -592,7 +592,7 @@ dev = [requires-dist = [{ name = "cua-auto", specifier = ">=0.1.2" },{ name = "cua-core", specifier = ">=0.3.0,<0.4.0" },- { name = "cua-fleet", specifier = "==0.0.6" },+ { name = "cua-fleet", specifier = "==0.0.7" },{ name = "grpcio", specifier = "==1.78.0" },{ name = "httpx", specifier = ">=0.27.0" },{ name = "oras", specifier = ">=0.2.40" },