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
bump agent (#143), computer-server, computer, mcp-server python version to 3.11
Dillon DuPontba68e85ba936
diff --git a/.github/workflows/publish-agent.yml b/.github/workflows/publish-agent.ymlindex 1566880bb1..ea03edd6c2 100644--- a/.github/workflows/publish-agent.yml+++ b/.github/workflows/publish-agent.yml@@ -56,7 +56,7 @@ jobs:- name: Set up Pythonuses: actions/setup-python@v4with:- python-version: '3.10'+ python-version: '3.11'- name: Update dependencies to latest versionsid: update-depsdiff --git a/.github/workflows/publish-computer-server.yml b/.github/workflows/publish-computer-server.ymlindex 15eca34856..f2440a67b7 100644--- a/.github/workflows/publish-computer-server.yml+++ b/.github/workflows/publish-computer-server.yml@@ -57,7 +57,7 @@ jobs:- name: Set up Pythonuses: actions/setup-python@v4with:- python-version: '3.10'+ python-version: '3.11'publish:needs: preparediff --git a/.github/workflows/publish-computer.yml b/.github/workflows/publish-computer.ymlindex 80e15730ac..b2a9fb2571 100644--- a/.github/workflows/publish-computer.yml+++ b/.github/workflows/publish-computer.yml@@ -54,7 +54,7 @@ jobs:- name: Set up Pythonuses: actions/setup-python@v4with:- python-version: '3.10'+ python-version: '3.11'- name: Update dependencies to latest versionsid: update-depsdiff --git a/.github/workflows/publish-mcp-server.yml b/.github/workflows/publish-mcp-server.ymlindex d23bf8c01f..e6eccd5a11 100644--- a/.github/workflows/publish-mcp-server.yml+++ b/.github/workflows/publish-mcp-server.yml@@ -59,7 +59,7 @@ jobs:- name: Set up Pythonuses: actions/setup-python@v4with:- python-version: '3.10'+ python-version: '3.11'- name: Update dependencies to latest versionsid: update-depsdiff --git a/.github/workflows/reusable-publish.yml b/.github/workflows/reusable-publish.ymlindex 892e32500a..8856b60dba 100644--- a/.github/workflows/reusable-publish.yml+++ b/.github/workflows/reusable-publish.yml@@ -52,7 +52,7 @@ jobs:- name: Set up Pythonuses: actions/setup-python@v4with:- python-version: '3.10'+ python-version: '3.11'- name: Create root pdm.lock filerun: |@@ -62,7 +62,7 @@ jobs:- name: Install PDMuses: pdm-project/setup-pdm@v3with:- python-version: '3.10'+ python-version: '3.11'cache: true- name: Set versiondiff --git a/docs/Developer-Guide.md b/docs/Developer-Guide.mdindex 52d9d9783b..31cf1c12a3 100644--- a/docs/Developer-Guide.md+++ b/docs/Developer-Guide.md@@ -200,11 +200,11 @@ The formatting configuration is defined in the root `pyproject.toml` file:```toml[tool.black]line-length = 100-target-version = ["py310"]+target-version = ["py311"][tool.ruff]line-length = 100-target-version = "py310"+target-version = "py311"select = ["E", "F", "B", "I"]fix = true@@ -213,7 +213,7 @@ docstring-code-format = true[tool.mypy]strict = true-python_version = "3.10"+python_version = "3.11"ignore_missing_imports = truedisallow_untyped_defs = truecheck_untyped_defs = true@@ -225,7 +225,7 @@ warn_unused_ignores = false#### Key Formatting Rules- **Line Length**: Maximum of 100 characters-- **Python Version**: Code should be compatible with Python 3.10++- **Python Version**: Code should be compatible with Python 3.11+- **Imports**: Automatically sorted (using Ruff's "I" rule)- **Type Hints**: Required for all function definitions (strict mypy mode)diff --git a/docs/Telemetry.md b/docs/Telemetry.mdindex 0173128710..8f85e7613f 100644--- a/docs/Telemetry.md+++ b/docs/Telemetry.md@@ -10,7 +10,7 @@ CUA libraries collect minimal anonymous usage data to help improve our software.- Basic system information:- Operating system (e.g., 'darwin', 'win32', 'linux')- - Python version (e.g., '3.10.0')+ - Python version (e.g., '3.11.0')- Module initialization events:- When a module (like 'computer' or 'agent') is imported- Version of the module being useddiff --git a/libs/agent/agent/core/tools.py b/libs/agent/agent/core/tools.pyindex 13b1f8ded4..0447eaee35 100644--- a/libs/agent/agent/core/tools.py+++ b/libs/agent/agent/core/tools.py@@ -1,10 +1,10 @@"""Tool-related type definitions."""-from enum import Enum+from enum import StrEnumfrom typing import Dict, Any, Optionalfrom pydantic import BaseModel, ConfigDict-class ToolInvocationState(str, Enum):+class ToolInvocationState(StrEnum):"""States for tool invocation."""CALL = 'call'PARTIAL_CALL = 'partial-call'diff --git a/libs/agent/agent/core/types.py b/libs/agent/agent/core/types.pyindex fd3370627d..8d84cd7500 100644--- a/libs/agent/agent/core/types.py+++ b/libs/agent/agent/core/types.py@@ -1,18 +1,18 @@"""Core type definitions."""from typing import Any, Dict, List, Optional, TypedDict, Union-from enum import Enum, StrEnum, auto+from enum import StrEnumfrom dataclasses import dataclass-class AgentLoop(Enum):+class AgentLoop(StrEnum):"""Enumeration of available loop types."""- ANTHROPIC = auto() # Anthropic implementation- OMNI = auto() # OmniLoop implementation- OPENAI = auto() # OpenAI implementation- OLLAMA = auto() # OLLAMA implementation- UITARS = auto() # UI-TARS implementation+ ANTHROPIC = "anthropic" # Anthropic implementation+ OMNI = "omni" # OmniLoop implementation+ OPENAI = "openai" # OpenAI implementation+ OLLAMA = "ollama" # OLLAMA implementation+ UITARS = "uitars" # UI-TARS implementation# Add more loop types as neededdiff --git a/libs/agent/agent/ui/gradio/app.py b/libs/agent/agent/ui/gradio/app.pyindex b4f8bddd71..c8f832f5eb 100644--- a/libs/agent/agent/ui/gradio/app.py+++ b/libs/agent/agent/ui/gradio/app.py@@ -22,7 +22,7 @@ Supported Agent Loops and Models:Requirements:- Mac with Apple Silicon (M1/M2/M3/M4)- macOS 14 (Sonoma) or newer- - Python 3.10++ - Python 3.11+- Lume CLI installed (https://github.com/trycua/cua)- OpenAI or Anthropic API key"""diff --git a/libs/agent/pyproject.toml b/libs/agent/pyproject.tomlindex d41635b404..8ea6a3fc11 100644--- a/libs/agent/pyproject.toml+++ b/libs/agent/pyproject.toml@@ -23,7 +23,7 @@ dependencies = ["cua-core>=0.1.0,<0.2.0","certifi>=2024.2.2"]-requires-python = ">=3.10"+requires-python = ">=3.11"[project.optional-dependencies]anthropic = [@@ -102,11 +102,11 @@ source-includes = ["tests/", "README.md", "LICENSE"][tool.black]line-length = 100-target-version = ["py310"]+target-version = ["py311"][tool.ruff]line-length = 100-target-version = "py310"+target-version = "py311"select = ["E", "F", "B", "I"]fix = true@@ -115,7 +115,7 @@ docstring-code-format = true[tool.mypy]strict = true-python_version = "3.10"+python_version = "3.11"ignore_missing_imports = truedisallow_untyped_defs = truecheck_untyped_defs = truediff --git a/libs/computer-server/pyproject.toml b/libs/computer-server/pyproject.tomlindex b5480f0fe2..e8b9bac844 100644--- a/libs/computer-server/pyproject.toml+++ b/libs/computer-server/pyproject.toml@@ -64,7 +64,7 @@ api = "python -m computer_server"[tool.ruff]line-length = 100-target-version = "py310"+target-version = "py311"select = ["E", "F", "B", "I"]fix = true@@ -73,7 +73,7 @@ docstring-code-format = true[tool.mypy]strict = true-python_version = "3.10"+python_version = "3.11"ignore_missing_imports = truedisallow_untyped_defs = truecheck_untyped_defs = truediff --git a/libs/computer/computer/providers/base.py b/libs/computer/computer/providers/base.pyindex e652e23a2c..4a8f8fdf76 100644--- a/libs/computer/computer/providers/base.py+++ b/libs/computer/computer/providers/base.py@@ -1,11 +1,11 @@"""Base provider interface for VM backends."""import abc-from enum import Enum+from enum import StrEnumfrom typing import Dict, List, Optional, Any, AsyncContextManager-class VMProviderType(str, Enum):+class VMProviderType(StrEnum):"""Enum of supported VM provider types."""LUME = "lume"LUMIER = "lumier"diff --git a/libs/computer/pyproject.toml b/libs/computer/pyproject.tomlindex a1de047dc6..c9aa46da5a 100644--- a/libs/computer/pyproject.toml+++ b/libs/computer/pyproject.toml@@ -18,7 +18,7 @@ dependencies = ["cua-core>=0.1.0,<0.2.0","pydantic>=2.11.1"]-requires-python = ">=3.10"+requires-python = ">=3.11"[project.optional-dependencies]lume = [@@ -46,11 +46,11 @@ source-includes = ["tests/", "README.md", "LICENSE"][tool.black]line-length = 100-target-version = ["py310"]+target-version = ["py311"][tool.ruff]line-length = 100-target-version = "py310"+target-version = "py311"select = ["E", "F", "B", "I"]fix = true@@ -59,7 +59,7 @@ docstring-code-format = true[tool.mypy]strict = true-python_version = "3.10"+python_version = "3.11"ignore_missing_imports = truedisallow_untyped_defs = truecheck_untyped_defs = truediff --git a/libs/core/pyproject.toml b/libs/core/pyproject.tomlindex bf0f1cf5bc..82ecc775a1 100644--- a/libs/core/pyproject.toml+++ b/libs/core/pyproject.toml@@ -15,7 +15,7 @@ dependencies = ["httpx>=0.24.0","posthog>=3.20.0"]-requires-python = ">=3.10"+requires-python = ">=3.11"[tool.pdm]distribution = true@@ -26,11 +26,11 @@ source-includes = ["tests/", "README.md", "LICENSE"][tool.black]line-length = 100-target-version = ["py310"]+target-version = ["py311"][tool.ruff]line-length = 100-target-version = "py310"+target-version = "py311"select = ["E", "F", "B", "I"]fix = true@@ -39,7 +39,7 @@ docstring-code-format = true[tool.mypy]strict = true-python_version = "3.10"+python_version = "3.11"ignore_missing_imports = truedisallow_untyped_defs = truecheck_untyped_defs = truediff --git a/libs/mcp-server/pyproject.toml b/libs/mcp-server/pyproject.tomlindex 1c69f4c026..62fc1a2ed9 100644--- a/libs/mcp-server/pyproject.toml+++ b/libs/mcp-server/pyproject.toml@@ -6,7 +6,7 @@ build-backend = "pdm.backend"name = "cua-mcp-server"description = "MCP Server for Computer-Use Agent (CUA)"readme = "README.md"-requires-python = ">=3.10"+requires-python = ">=3.11"version = "0.1.0"authors = [{name = "TryCua", email = "[email protected]"}@@ -31,10 +31,10 @@ dev = [[tool.black]line-length = 100-target-version = ["py310"]+target-version = ["py311"][tool.ruff]line-length = 100-target-version = "py310"+target-version = "py311"select = ["E", "F", "B", "I"]fix = truediff --git a/libs/pylume/pyproject.toml b/libs/pylume/pyproject.tomlindex 21cdc9b75f..f21f2bb23a 100644--- a/libs/pylume/pyproject.toml+++ b/libs/pylume/pyproject.toml@@ -43,13 +43,13 @@ dev = [[tool.black]line-length = 100-target-version = ["py310"]+target-version = ["py311"][tool.ruff]fix = trueline-length = 100select = ["B", "E", "F", "I"]-target-version = "py310"+target-version = "py311"[tool.ruff.format]docstring-code-format = true@@ -58,7 +58,7 @@ docstring-code-format = truecheck_untyped_defs = truedisallow_untyped_defs = trueignore_missing_imports = true-python_version = "3.10"+python_version = "3.11"show_error_codes = truestrict = truewarn_return_any = truediff --git a/libs/som/pyproject.toml b/libs/som/pyproject.tomlindex f18be609f8..0bae7ea28a 100644--- a/libs/som/pyproject.toml+++ b/libs/som/pyproject.toml@@ -24,7 +24,7 @@ dependencies = ["typing-extensions>=4.9.0","pydantic>=2.6.3"]-requires-python = ">=3.10"+requires-python = ">=3.11"readme = "README.md"license = {text = "MIT"}keywords = ["computer-vision", "ocr", "ui-analysis", "icon-detection"]diff --git a/pyproject.toml b/pyproject.tomlindex 5be2eca180..36fa43c198 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -9,7 +9,7 @@ description = "CUA (Computer Use Agent) mono-repo"license = { text = "MIT" }name = "cua-workspace"readme = "README.md"-requires-python = ">=3.10"+requires-python = ">=3.11"version = "0.1.0"[project.urls]@@ -53,13 +53,13 @@ respect-source-order = true[tool.black]line-length = 100-target-version = ["py310"]+target-version = ["py311"][tool.ruff]fix = trueline-length = 100select = ["B", "E", "F", "I"]-target-version = "py310"+target-version = "py311"[tool.ruff.format]docstring-code-format = true@@ -68,7 +68,7 @@ docstring-code-format = truecheck_untyped_defs = truedisallow_untyped_defs = trueignore_missing_imports = true-python_version = "3.10"+python_version = "3.11"show_error_codes = truestrict = truewarn_return_any = true