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
refactor: decouple PyPI release creation from publishing
[email protected]cdd6eac0f6e1
diff --git a/.github/workflows/pypi-publish-agent.yml b/.github/workflows/pypi-publish-agent.ymlindex 3ae5f189c2..a577645edd 100644--- a/.github/workflows/pypi-publish-agent.yml+++ b/.github/workflows/pypi-publish-agent.yml@@ -173,3 +173,31 @@ jobs:echo "COMPUTER_VERSION=${{ needs.prepare.outputs.computer_version }}" >> $GITHUB_ENVecho "SOM_VERSION=${{ needs.prepare.outputs.som_version }}" >> $GITHUB_ENVecho "CORE_VERSION=${{ needs.prepare.outputs.core_version }}" >> $GITHUB_ENV++ create-release:+ needs: prepare+ uses: ./.github/workflows/github-release-reusable.yml+ with:+ tag_name: "agent-v${{ needs.prepare.outputs.version }}"+ release_name: "cua-agent v${{ needs.prepare.outputs.version }}"+ body: |+ ## Dependencies+ * cua-computer: ${{ needs.prepare.outputs.computer_version }}+ * cua-som: ${{ needs.prepare.outputs.som_version }}++ ## Installation Options++ ### Basic installation with Anthropic+ ```bash+ pip install cua-agent[anthropic]==${{ needs.prepare.outputs.version }}+ ```++ ### With SOM (recommended)+ ```bash+ pip install cua-agent[som]==${{ needs.prepare.outputs.version }}+ ```++ ### All features+ ```bash+ pip install cua-agent[all]==${{ needs.prepare.outputs.version }}+ ```diff --git a/.github/workflows/pypi-publish-computer-server.yml b/.github/workflows/pypi-publish-computer-server.ymlindex 899cc60525..9c499321a2 100644--- a/.github/workflows/pypi-publish-computer-server.yml+++ b/.github/workflows/pypi-publish-computer-server.yml@@ -78,3 +78,27 @@ jobs:- name: Set environment variables for use in other jobsrun: |echo "COMPUTER_VERSION=${{ needs.prepare.outputs.version }}" >> $GITHUB_ENV++ create-release:+ needs: prepare+ uses: ./.github/workflows/github-release-reusable.yml+ with:+ tag_name: "computer-server-v${{ needs.prepare.outputs.version }}"+ release_name: "cua-computer-server v${{ needs.prepare.outputs.version }}"+ body: |+ ## Computer Server for the Computer Universal Automation (CUA) project++ A FastAPI-based server implementation for computer control.++ ## Usage++ ```bash+ # Run the server+ cua-computer-server+ ```++ ## Installation++ ```bash+ pip install cua-computer-server==${{ needs.prepare.outputs.version }}+ ```diff --git a/.github/workflows/pypi-publish-computer.yml b/.github/workflows/pypi-publish-computer.ymlindex c2dd402974..a1f9dde7b9 100644--- a/.github/workflows/pypi-publish-computer.yml+++ b/.github/workflows/pypi-publish-computer.yml@@ -156,3 +156,18 @@ jobs:- name: Set environment variables for use in other jobsrun: |echo "CORE_VERSION=${{ needs.prepare.outputs.core_version }}" >> $GITHUB_ENV++ create-release:+ needs: prepare+ uses: ./.github/workflows/github-release-reusable.yml+ with:+ tag_name: "computer-v${{ needs.prepare.outputs.version }}"+ release_name: "cua-computer v${{ needs.prepare.outputs.version }}"+ body: |+ ## Computer control library for the Computer Universal Automation (CUA) project++ ## Installation++ ```bash+ pip install cua-computer==${{ needs.prepare.outputs.version }}+ ```diff --git a/.github/workflows/pypi-publish-core.yml b/.github/workflows/pypi-publish-core.ymlindex a5b993f690..d72fa87d94 100644--- a/.github/workflows/pypi-publish-core.yml+++ b/.github/workflows/pypi-publish-core.yml@@ -61,3 +61,18 @@ jobs:base_package_name: "cua-core"secrets:PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}++ create-release:+ needs: prepare+ uses: ./.github/workflows/github-release-reusable.yml+ with:+ tag_name: "core-v${{ needs.prepare.outputs.version }}"+ release_name: "cua-core v${{ needs.prepare.outputs.version }}"+ body: |+ ## Base package for CUA project with telemetry and core utilities++ ## Installation++ ```bash+ pip install cua-core==${{ needs.prepare.outputs.version }}+ ```diff --git a/.github/workflows/pypi-publish-mcp-server.yml b/.github/workflows/pypi-publish-mcp-server.ymlindex cd1b0c2f39..79f9d99faf 100644--- a/.github/workflows/pypi-publish-mcp-server.yml+++ b/.github/workflows/pypi-publish-mcp-server.yml@@ -155,3 +155,47 @@ jobs:run: |echo "AGENT_VERSION=${{ needs.prepare.outputs.agent_version }}" >> $GITHUB_ENVecho "COMPUTER_VERSION=${{ needs.prepare.outputs.computer_version }}" >> $GITHUB_ENV++ create-release:+ needs: prepare+ uses: ./.github/workflows/github-release-reusable.yml+ with:+ tag_name: "mcp-server-v${{ needs.prepare.outputs.version }}"+ release_name: "cua-mcp-server v${{ needs.prepare.outputs.version }}"+ body: |+ ## MCP Server for the Computer-Use Agent (CUA)++ This package provides MCP (Model Context Protocol) integration for CUA agents, allowing them to be used with Claude Desktop, Cursor, and other MCP clients.++ ## Usage++ ```bash+ # Run the MCP server directly+ cua-mcp-server+ ```++ ## Claude Desktop Integration++ Add to your Claude Desktop configuration (~/.config/claude-desktop/claude_desktop_config.json or OS-specific location):++ ```json+ "mcpServers": {+ "cua-agent": {+ "command": "cua-mcp-server",+ "args": [],+ "env": {+ "CUA_AGENT_LOOP": "OMNI",+ "CUA_MODEL_PROVIDER": "ANTHROPIC",+ "CUA_MODEL_NAME": "claude-3-opus-20240229",+ "ANTHROPIC_API_KEY": "your-api-key",+ "PYTHONIOENCODING": "utf-8"+ }+ }+ }+ ```++ ## Installation++ ```bash+ pip install cua-mcp-server==${{ needs.prepare.outputs.version }}+ ```diff --git a/.github/workflows/pypi-publish-som.yml b/.github/workflows/pypi-publish-som.ymlindex fd80d3e8e8..8d36cb7afe 100644--- a/.github/workflows/pypi-publish-som.yml+++ b/.github/workflows/pypi-publish-som.yml@@ -65,3 +65,20 @@ jobs:base_package_name: "cua-som"secrets:PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}++ create-release:+ needs: determine-version+ uses: ./.github/workflows/github-release-reusable.yml+ with:+ tag_name: "som-v${{ needs.determine-version.outputs.version }}"+ release_name: "cua-som v${{ needs.determine-version.outputs.version }}"+ body: |+ ## Computer Vision and OCR library for detecting and analyzing UI elements++ This package provides enhanced UI understanding capabilities through computer vision and OCR.++ ## Installation++ ```bash+ pip install cua-som==${{ needs.determine-version.outputs.version }}+ ```diff --git a/.github/workflows/pypi-reusable-publish.yml b/.github/workflows/pypi-reusable-publish.ymlindex c7fabf05f6..35bfc7f5af 100644--- a/.github/workflows/pypi-reusable-publish.yml+++ b/.github/workflows/pypi-reusable-publish.yml@@ -41,7 +41,7 @@ jobs:build-and-publish:runs-on: macos-latestpermissions:- contents: write # This permission is needed for creating releases+ contents: readoutputs:version: ${{ steps.set-version.outputs.version }}steps:@@ -161,123 +161,3 @@ jobs:echo "Publishing to PyPI using twine..."TWINE_USERNAME="__token__" TWINE_PASSWORD="$PYPI_TOKEN" python -m twine upload dist/*-- # Save the wheel file path for the release- WHEEL_FILE=$(ls dist/*.whl | head -1)- echo "WHEEL_FILE=${WHEEL_FILE}" >> $GITHUB_ENV-- - name: Prepare Simple Release Notes- if: startsWith(github.ref, 'refs/tags/')- run: |- # Create release notes based on package type- echo "# ${{ inputs.base_package_name }} v${VERSION}" > release_notes.md- echo "" >> release_notes.md-- if [ "${{ inputs.package_name }}" = "pylume" ]; then- echo "## Python SDK for lume - run macOS and Linux VMs on Apple Silicon" >> release_notes.md- echo "" >> release_notes.md- echo "This package provides Python bindings for the lume virtualization tool." >> release_notes.md- echo "" >> release_notes.md- echo "## Dependencies" >> release_notes.md- echo "* lume binary: v${LUME_VERSION}" >> release_notes.md- elif [ "${{ inputs.package_name }}" = "computer" ]; then- echo "## Computer control library for the Computer Universal Automation (CUA) project" >> release_notes.md- echo "" >> release_notes.md- echo "## Dependencies" >> release_notes.md- echo "* pylume: ${PYLUME_VERSION:-latest}" >> release_notes.md- elif [ "${{ inputs.package_name }}" = "agent" ]; then- echo "## Dependencies" >> release_notes.md- echo "* cua-computer: ${COMPUTER_VERSION:-latest}" >> release_notes.md- echo "* cua-som: ${SOM_VERSION:-latest}" >> release_notes.md- echo "" >> release_notes.md- echo "## Installation Options" >> release_notes.md- echo "" >> release_notes.md- echo "### Basic installation with Anthropic" >> release_notes.md- echo '```bash' >> release_notes.md- echo "pip install cua-agent[anthropic]==${VERSION}" >> release_notes.md- echo '```' >> release_notes.md- echo "" >> release_notes.md- echo "### With SOM (recommended)" >> release_notes.md- echo '```bash' >> release_notes.md- echo "pip install cua-agent[som]==${VERSION}" >> release_notes.md- echo '```' >> release_notes.md- echo "" >> release_notes.md- echo "### All features" >> release_notes.md- echo '```bash' >> release_notes.md- echo "pip install cua-agent[all]==${VERSION}" >> release_notes.md- echo '```' >> release_notes.md- elif [ "${{ inputs.package_name }}" = "som" ]; then- echo "## Computer Vision and OCR library for detecting and analyzing UI elements" >> release_notes.md- echo "" >> release_notes.md- echo "This package provides enhanced UI understanding capabilities through computer vision and OCR." >> release_notes.md- elif [ "${{ inputs.package_name }}" = "computer-server" ]; then- echo "## Computer Server for the Computer Universal Automation (CUA) project" >> release_notes.md- echo "" >> release_notes.md- echo "A FastAPI-based server implementation for computer control." >> release_notes.md- echo "" >> release_notes.md- echo "## Dependencies" >> release_notes.md- echo "* cua-computer: ${COMPUTER_VERSION:-latest}" >> release_notes.md- echo "" >> release_notes.md- echo "## Usage" >> release_notes.md- echo '```bash' >> release_notes.md- echo "# Run the server" >> release_notes.md- echo "cua-computer-server" >> release_notes.md- echo '```' >> release_notes.md- elif [ "${{ inputs.package_name }}" = "mcp-server" ]; then- echo "## MCP Server for the Computer-Use Agent (CUA)" >> release_notes.md- echo "" >> release_notes.md- echo "This package provides MCP (Model Context Protocol) integration for CUA agents, allowing them to be used with Claude Desktop, Cursor, and other MCP clients." >> release_notes.md- echo "" >> release_notes.md- echo "## Dependencies" >> release_notes.md- echo "* cua-computer: ${COMPUTER_VERSION:-latest}" >> release_notes.md- echo "* cua-agent: ${AGENT_VERSION:-latest}" >> release_notes.md- echo "" >> release_notes.md- echo "## Usage" >> release_notes.md- echo '```bash' >> release_notes.md- echo "# Run the MCP server directly" >> release_notes.md- echo "cua-mcp-server" >> release_notes.md- echo '```' >> release_notes.md- echo "" >> release_notes.md- echo "## Claude Desktop Integration" >> release_notes.md- echo "Add to your Claude Desktop configuration (~/.config/claude-desktop/claude_desktop_config.json or OS-specific location):" >> release_notes.md- echo '```json' >> release_notes.md- echo '"mcpServers": {' >> release_notes.md- echo ' "cua-agent": {' >> release_notes.md- echo ' "command": "cua-mcp-server",' >> release_notes.md- echo ' "args": [],' >> release_notes.md- echo ' "env": {' >> release_notes.md- echo ' "CUA_AGENT_LOOP": "OMNI",' >> release_notes.md- echo ' "CUA_MODEL_PROVIDER": "ANTHROPIC",' >> release_notes.md- echo ' "CUA_MODEL_NAME": "claude-3-opus-20240229",' >> release_notes.md- echo ' "ANTHROPIC_API_KEY": "your-api-key",' >> release_notes.md- echo ' "PYTHONIOENCODING": "utf-8"' >> release_notes.md- echo ' }' >> release_notes.md- echo ' }' >> release_notes.md- echo '}' >> release_notes.md- echo '```' >> release_notes.md- fi-- # Add installation section if not agent (which has its own installation section)- if [ "${{ inputs.package_name }}" != "agent" ]; then- echo "" >> release_notes.md- echo "## Installation" >> release_notes.md- echo '```bash' >> release_notes.md- echo "pip install ${{ inputs.base_package_name }}==${VERSION}" >> release_notes.md- echo '```' >> release_notes.md- fi-- echo "Release notes created:"- cat release_notes.md-- - name: Create GitHub Release- uses: softprops/action-gh-release@v2- if: startsWith(github.ref, 'refs/tags/')- with:- name: "${{ inputs.base_package_name }} v${{ env.VERSION }}"- body_path: release_notes.md- files: ${{ inputs.package_dir }}/${{ env.WHEEL_FILE }}- draft: false- prerelease: false- make_latest: ${{ inputs.package_name == 'lume' }}- env:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}