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
Move non-python libs to respective directories. Update workflows to use updated directories
Morgan Dean83499550e3b4
diff --git a/.github/workflows/ci-lume.yml b/.github/workflows/ci-lume.ymlindex d33191ccbd..dc31bd5a95 100644--- a/.github/workflows/ci-lume.yml+++ b/.github/workflows/ci-lume.yml@@ -20,7 +20,7 @@ jobs:- run: uname -a- run: sudo xcode-select -s /Applications/Xcode_16.app # Swift 6.0- run: swift test- working-directory: ./libs/lume+ working-directory: ./libs/swift/lumebuild:name: Release buildruns-on: macos-15@@ -29,4 +29,4 @@ jobs:- run: uname -a- run: sudo xcode-select -s /Applications/Xcode_16.app # Swift 6.0- run: swift build --configuration release- working-directory: ./libs/lume+ working-directory: ./libs/swift/lumediff --git a/.github/workflows/publish-agent.yml b/.github/workflows/publish-agent.ymlindex ea03edd6c2..5869bcd178 100644--- a/.github/workflows/publish-agent.yml+++ b/.github/workflows/publish-agent.yml@@ -3,17 +3,17 @@ name: Publish Agent Packageon:push:tags:- - 'agent-v*'+ - "agent-v*"workflow_dispatch:inputs:version:- description: 'Version to publish (without v prefix)'+ description: "Version to publish (without v prefix)"required: true- default: '0.1.0'+ default: "0.1.0"workflow_call:inputs:version:- description: 'Version to publish'+ description: "Version to publish"required: truetype: string@@ -30,127 +30,127 @@ jobs:som_version: ${{ steps.update-deps.outputs.som_version }}core_version: ${{ steps.update-deps.outputs.core_version }}steps:- - uses: actions/checkout@v4-- - name: Determine version- id: get-version- run: |- if [ "${{ github.event_name }}" == "push" ]; then- # Extract version from tag (for package-specific tags)- if [[ "${{ github.ref }}" =~ ^refs/tags/agent-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then- VERSION=${BASH_REMATCH[1]}+ - uses: actions/checkout@v4++ - name: Determine version+ id: get-version+ run: |+ if [ "${{ github.event_name }}" == "push" ]; then+ # Extract version from tag (for package-specific tags)+ if [[ "${{ github.ref }}" =~ ^refs/tags/agent-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then+ VERSION=${BASH_REMATCH[1]}+ else+ echo "Invalid tag format for agent"+ exit 1+ fi+ elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then+ # Use version from workflow dispatch+ VERSION=${{ github.event.inputs.version }}else- echo "Invalid tag format for agent"- exit 1+ # Use version from workflow_call+ VERSION=${{ inputs.version }}fi- elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then- # Use version from workflow dispatch- VERSION=${{ github.event.inputs.version }}- else- # Use version from workflow_call- VERSION=${{ inputs.version }}- fi- echo "VERSION=$VERSION"- echo "version=$VERSION" >> $GITHUB_OUTPUT-- - name: Set up Python- uses: actions/setup-python@v4- with:- python-version: '3.11'-- - name: Update dependencies to latest versions- id: update-deps- run: |- cd libs/agent-- # Install required package for PyPI API access- pip install requests-- # Create a more robust Python script for PyPI version checking- cat > get_latest_versions.py << 'EOF'- import requests- import json- import sys-- def get_package_version(package_name, fallback="0.1.0"):- try:- response = requests.get(f'https://pypi.org/pypi/{package_name}/json')- print(f"API Response Status for {package_name}: {response.status_code}", file=sys.stderr)-- if response.status_code != 200:- print(f"API request failed for {package_name}, using fallback version", file=sys.stderr)- return fallback-- data = json.loads(response.text)-- if 'info' not in data:- print(f"Missing 'info' key in API response for {package_name}, using fallback version", file=sys.stderr)- return fallback-- return data['info']['version']- except Exception as e:- print(f"Error fetching version for {package_name}: {str(e)}", file=sys.stderr)- return fallback-- # Get latest versions- print(get_package_version('cua-computer'))- print(get_package_version('cua-som'))- print(get_package_version('cua-core'))- EOF-- # Execute the script to get the versions- VERSIONS=($(python get_latest_versions.py))- LATEST_COMPUTER=${VERSIONS[0]}- LATEST_SOM=${VERSIONS[1]}- LATEST_CORE=${VERSIONS[2]}-- echo "Latest cua-computer version: $LATEST_COMPUTER"- echo "Latest cua-som version: $LATEST_SOM"- echo "Latest cua-core version: $LATEST_CORE"-- # Output the versions for the next job- echo "computer_version=$LATEST_COMPUTER" >> $GITHUB_OUTPUT- echo "som_version=$LATEST_SOM" >> $GITHUB_OUTPUT- echo "core_version=$LATEST_CORE" >> $GITHUB_OUTPUT-- # Determine major version for version constraint- COMPUTER_MAJOR=$(echo $LATEST_COMPUTER | cut -d. -f1)- SOM_MAJOR=$(echo $LATEST_SOM | cut -d. -f1)- CORE_MAJOR=$(echo $LATEST_CORE | cut -d. -f1)-- NEXT_COMPUTER_MAJOR=$((COMPUTER_MAJOR + 1))- NEXT_SOM_MAJOR=$((SOM_MAJOR + 1))- NEXT_CORE_MAJOR=$((CORE_MAJOR + 1))-- # Update dependencies in pyproject.toml- if [[ "$OSTYPE" == "darwin"* ]]; then- # macOS version of sed needs an empty string for -i- sed -i '' "s/\"cua-computer>=.*,<.*\"/\"cua-computer>=$LATEST_COMPUTER,<$NEXT_COMPUTER_MAJOR.0.0\"/" pyproject.toml- sed -i '' "s/\"cua-som>=.*,<.*\"/\"cua-som>=$LATEST_SOM,<$NEXT_SOM_MAJOR.0.0\"/" pyproject.toml- sed -i '' "s/\"cua-core>=.*,<.*\"/\"cua-core>=$LATEST_CORE,<$NEXT_CORE_MAJOR.0.0\"/" pyproject.toml- else- # Linux version- sed -i "s/\"cua-computer>=.*,<.*\"/\"cua-computer>=$LATEST_COMPUTER,<$NEXT_COMPUTER_MAJOR.0.0\"/" pyproject.toml- sed -i "s/\"cua-som>=.*,<.*\"/\"cua-som>=$LATEST_SOM,<$NEXT_SOM_MAJOR.0.0\"/" pyproject.toml- sed -i "s/\"cua-core>=.*,<.*\"/\"cua-core>=$LATEST_CORE,<$NEXT_CORE_MAJOR.0.0\"/" pyproject.toml- fi-- # Display the updated dependencies- echo "Updated dependencies in pyproject.toml:"- grep -E "cua-computer|cua-som|cua-core" pyproject.toml+ echo "VERSION=$VERSION"+ echo "version=$VERSION" >> $GITHUB_OUTPUT++ - name: Set up Python+ uses: actions/setup-python@v4+ with:+ python-version: "3.11"++ - name: Update dependencies to latest versions+ id: update-deps+ run: |+ cd libs/python/agent++ # Install required package for PyPI API access+ pip install requests++ # Create a more robust Python script for PyPI version checking+ cat > get_latest_versions.py << 'EOF'+ import requests+ import json+ import sys++ def get_package_version(package_name, fallback="0.1.0"):+ try:+ response = requests.get(f'https://pypi.org/pypi/{package_name}/json')+ print(f"API Response Status for {package_name}: {response.status_code}", file=sys.stderr)++ if response.status_code != 200:+ print(f"API request failed for {package_name}, using fallback version", file=sys.stderr)+ return fallback++ data = json.loads(response.text)++ if 'info' not in data:+ print(f"Missing 'info' key in API response for {package_name}, using fallback version", file=sys.stderr)+ return fallback++ return data['info']['version']+ except Exception as e:+ print(f"Error fetching version for {package_name}: {str(e)}", file=sys.stderr)+ return fallback++ # Get latest versions+ print(get_package_version('cua-computer'))+ print(get_package_version('cua-som'))+ print(get_package_version('cua-core'))+ EOF++ # Execute the script to get the versions+ VERSIONS=($(python get_latest_versions.py))+ LATEST_COMPUTER=${VERSIONS[0]}+ LATEST_SOM=${VERSIONS[1]}+ LATEST_CORE=${VERSIONS[2]}++ echo "Latest cua-computer version: $LATEST_COMPUTER"+ echo "Latest cua-som version: $LATEST_SOM"+ echo "Latest cua-core version: $LATEST_CORE"++ # Output the versions for the next job+ echo "computer_version=$LATEST_COMPUTER" >> $GITHUB_OUTPUT+ echo "som_version=$LATEST_SOM" >> $GITHUB_OUTPUT+ echo "core_version=$LATEST_CORE" >> $GITHUB_OUTPUT++ # Determine major version for version constraint+ COMPUTER_MAJOR=$(echo $LATEST_COMPUTER | cut -d. -f1)+ SOM_MAJOR=$(echo $LATEST_SOM | cut -d. -f1)+ CORE_MAJOR=$(echo $LATEST_CORE | cut -d. -f1)++ NEXT_COMPUTER_MAJOR=$((COMPUTER_MAJOR + 1))+ NEXT_SOM_MAJOR=$((SOM_MAJOR + 1))+ NEXT_CORE_MAJOR=$((CORE_MAJOR + 1))++ # Update dependencies in pyproject.toml+ if [[ "$OSTYPE" == "darwin"* ]]; then+ # macOS version of sed needs an empty string for -i+ sed -i '' "s/\"cua-computer>=.*,<.*\"/\"cua-computer>=$LATEST_COMPUTER,<$NEXT_COMPUTER_MAJOR.0.0\"/" pyproject.toml+ sed -i '' "s/\"cua-som>=.*,<.*\"/\"cua-som>=$LATEST_SOM,<$NEXT_SOM_MAJOR.0.0\"/" pyproject.toml+ sed -i '' "s/\"cua-core>=.*,<.*\"/\"cua-core>=$LATEST_CORE,<$NEXT_CORE_MAJOR.0.0\"/" pyproject.toml+ else+ # Linux version+ sed -i "s/\"cua-computer>=.*,<.*\"/\"cua-computer>=$LATEST_COMPUTER,<$NEXT_COMPUTER_MAJOR.0.0\"/" pyproject.toml+ sed -i "s/\"cua-som>=.*,<.*\"/\"cua-som>=$LATEST_SOM,<$NEXT_SOM_MAJOR.0.0\"/" pyproject.toml+ sed -i "s/\"cua-core>=.*,<.*\"/\"cua-core>=$LATEST_CORE,<$NEXT_CORE_MAJOR.0.0\"/" pyproject.toml+ fi++ # Display the updated dependencies+ echo "Updated dependencies in pyproject.toml:"+ grep -E "cua-computer|cua-som|cua-core" pyproject.tomlpublish:needs: prepareuses: ./.github/workflows/reusable-publish.ymlwith:package_name: "agent"- package_dir: "libs/agent"+ package_dir: "libs/python/agent"version: ${{ needs.prepare.outputs.version }}is_lume_package: falsebase_package_name: "cua-agent"secrets:PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}-+set-env-variables:needs: [prepare, publish]runs-on: macos-latest@@ -159,4 +159,4 @@ jobs:run: |echo "COMPUTER_VERSION=${{ needs.prepare.outputs.computer_version }}" >> $GITHUB_ENVecho "SOM_VERSION=${{ needs.prepare.outputs.som_version }}" >> $GITHUB_ENV- echo "CORE_VERSION=${{ needs.prepare.outputs.core_version }}" >> $GITHUB_ENV\ No newline at end of file+ echo "CORE_VERSION=${{ needs.prepare.outputs.core_version }}" >> $GITHUB_ENVdiff --git a/.github/workflows/publish-computer-server.yml b/.github/workflows/publish-computer-server.ymlindex 15eca34856..01f6153097 100644--- a/.github/workflows/publish-computer-server.yml+++ b/.github/workflows/publish-computer-server.yml@@ -3,17 +3,17 @@ name: Publish Computer Server Packageon:push:tags:- - 'computer-server-v*'+ - "computer-server-v*"workflow_dispatch:inputs:version:- description: 'Version to publish (without v prefix)'+ description: "Version to publish (without v prefix)"required: true- default: '0.1.0'+ default: "0.1.0"workflow_call:inputs:version:- description: 'Version to publish'+ description: "Version to publish"required: truetype: stringoutputs:@@ -31,50 +31,50 @@ jobs:outputs:version: ${{ steps.get-version.outputs.version }}steps:- - uses: actions/checkout@v4-- - name: Determine version- id: get-version- run: |- if [ "${{ github.event_name }}" == "push" ]; then- # Extract version from tag (for package-specific tags)- if [[ "${{ github.ref }}" =~ ^refs/tags/computer-server-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then- VERSION=${BASH_REMATCH[1]}+ - uses: actions/checkout@v4++ - name: Determine version+ id: get-version+ run: |+ if [ "${{ github.event_name }}" == "push" ]; then+ # Extract version from tag (for package-specific tags)+ if [[ "${{ github.ref }}" =~ ^refs/tags/computer-server-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then+ VERSION=${BASH_REMATCH[1]}+ else+ echo "Invalid tag format for computer-server"+ exit 1+ fi+ elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then+ # Use version from workflow dispatch+ VERSION=${{ github.event.inputs.version }}else- echo "Invalid tag format for computer-server"- exit 1+ # Use version from workflow_call+ VERSION=${{ inputs.version }}fi- elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then- # Use version from workflow dispatch- VERSION=${{ github.event.inputs.version }}- else- # Use version from workflow_call- VERSION=${{ inputs.version }}- fi- echo "VERSION=$VERSION"- echo "version=$VERSION" >> $GITHUB_OUTPUT+ echo "VERSION=$VERSION"+ echo "version=$VERSION" >> $GITHUB_OUTPUT- - name: Set up Python- uses: actions/setup-python@v4- with:- python-version: '3.10'+ - name: Set up Python+ uses: actions/setup-python@v4+ with:+ python-version: "3.10"publish:needs: prepareuses: ./.github/workflows/reusable-publish.ymlwith:package_name: "computer-server"- package_dir: "libs/computer-server"+ package_dir: "libs/python/computer-server"version: ${{ needs.prepare.outputs.version }}is_lume_package: falsebase_package_name: "cua-computer-server"secrets:PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}-+set-env-variables:needs: [prepare, publish]runs-on: macos-lateststeps:- name: Set environment variables for use in other jobsrun: |- echo "COMPUTER_VERSION=${{ needs.prepare.outputs.version }}" >> $GITHUB_ENV\ No newline at end of file+ echo "COMPUTER_VERSION=${{ needs.prepare.outputs.version }}" >> $GITHUB_ENVdiff --git a/.github/workflows/publish-computer.yml b/.github/workflows/publish-computer.ymlindex 52e5c6ab52..df13669d76 100644--- a/.github/workflows/publish-computer.yml+++ b/.github/workflows/publish-computer.yml@@ -3,17 +3,17 @@ name: Publish Computer Packageon:push:tags:- - 'computer-v*'+ - "computer-v*"workflow_dispatch:inputs:version:- description: 'Version to publish (without v prefix)'+ description: "Version to publish (without v prefix)"required: true- default: '0.1.0'+ default: "0.1.0"workflow_call:inputs:version:- description: 'Version to publish'+ description: "Version to publish"required: truetype: string@@ -28,113 +28,113 @@ jobs:version: ${{ steps.get-version.outputs.version }}core_version: ${{ steps.update-deps.outputs.core_version }}steps:- - uses: actions/checkout@v4-- - name: Determine version- id: get-version- run: |- if [ "${{ github.event_name }}" == "push" ]; then- # Extract version from tag (for package-specific tags)- if [[ "${{ github.ref }}" =~ ^refs/tags/computer-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then- VERSION=${BASH_REMATCH[1]}+ - uses: actions/checkout@v4++ - name: Determine version+ id: get-version+ run: |+ if [ "${{ github.event_name }}" == "push" ]; then+ # Extract version from tag (for package-specific tags)+ if [[ "${{ github.ref }}" =~ ^refs/tags/computer-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then+ VERSION=${BASH_REMATCH[1]}+ else+ echo "Invalid tag format for computer"+ exit 1+ fi+ elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then+ # Use version from workflow dispatch+ VERSION=${{ github.event.inputs.version }}else- echo "Invalid tag format for computer"- exit 1+ # Use version from workflow_call+ VERSION=${{ inputs.version }}fi- elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then- # Use version from workflow dispatch- VERSION=${{ github.event.inputs.version }}- else- # Use version from workflow_call- VERSION=${{ inputs.version }}- fi- echo "VERSION=$VERSION"- echo "version=$VERSION" >> $GITHUB_OUTPUT-- - name: Set up Python- uses: actions/setup-python@v4- with:- python-version: '3.11'-- - name: Update dependencies to latest versions- id: update-deps- run: |- cd libs/computer/python- # Install required package for PyPI API access- pip install requests-- # Create a more robust Python script for PyPI version checking- cat > get_latest_versions.py << 'EOF'- import requests- import json- import sys-- def get_package_version(package_name, fallback="0.1.0"):- try:- response = requests.get(f'https://pypi.org/pypi/{package_name}/json')- print(f"API Response Status for {package_name}: {response.status_code}", file=sys.stderr)-- if response.status_code != 200:- print(f"API request failed for {package_name}, using fallback version", file=sys.stderr)- return fallback-- data = json.loads(response.text)-- if 'info' not in data:- print(f"Missing 'info' key in API response for {package_name}, using fallback version", file=sys.stderr)- return fallback-- return data['info']['version']- except Exception as e:- print(f"Error fetching version for {package_name}: {str(e)}", file=sys.stderr)- return fallback-- # Get latest versions- print(get_package_version('cua-core'))- EOF-- # Execute the script to get the versions- VERSIONS=($(python get_latest_versions.py))- LATEST_CORE=${VERSIONS[0]}-- echo "Latest cua-core version: $LATEST_CORE"-- # Output the versions for the next job- echo "core_version=$LATEST_CORE" >> $GITHUB_OUTPUT-- # Determine major version for version constraint- CORE_MAJOR=$(echo $LATEST_CORE | cut -d. -f1)- NEXT_CORE_MAJOR=$((CORE_MAJOR + 1))-- # Update dependencies in pyproject.toml- if [[ "$OSTYPE" == "darwin"* ]]; then- # macOS version of sed needs an empty string for -i- sed -i '' "s/\"cua-core>=.*,<.*\"/\"cua-core>=$LATEST_CORE,<$NEXT_CORE_MAJOR.0.0\"/" pyproject.toml- else- # Linux version- sed -i "s/\"cua-core>=.*,<.*\"/\"cua-core>=$LATEST_CORE,<$NEXT_CORE_MAJOR.0.0\"/" pyproject.toml- fi-- # Display the updated dependencies- echo "Updated dependencies in pyproject.toml:"- grep -E "cua-core" pyproject.toml+ echo "VERSION=$VERSION"+ echo "version=$VERSION" >> $GITHUB_OUTPUT++ - name: Set up Python+ uses: actions/setup-python@v4+ with:+ python-version: "3.11"++ - name: Update dependencies to latest versions+ id: update-deps+ run: |+ cd libs/python/computer+ # Install required package for PyPI API access+ pip install requests++ # Create a more robust Python script for PyPI version checking+ cat > get_latest_versions.py << 'EOF'+ import requests+ import json+ import sys++ def get_package_version(package_name, fallback="0.1.0"):+ try:+ response = requests.get(f'https://pypi.org/pypi/{package_name}/json')+ print(f"API Response Status for {package_name}: {response.status_code}", file=sys.stderr)++ if response.status_code != 200:+ print(f"API request failed for {package_name}, using fallback version", file=sys.stderr)+ return fallback++ data = json.loads(response.text)++ if 'info' not in data:+ print(f"Missing 'info' key in API response for {package_name}, using fallback version", file=sys.stderr)+ return fallback++ return data['info']['version']+ except Exception as e:+ print(f"Error fetching version for {package_name}: {str(e)}", file=sys.stderr)+ return fallback++ # Get latest versions+ print(get_package_version('cua-core'))+ EOF++ # Execute the script to get the versions+ VERSIONS=($(python get_latest_versions.py))+ LATEST_CORE=${VERSIONS[0]}++ echo "Latest cua-core version: $LATEST_CORE"++ # Output the versions for the next job+ echo "core_version=$LATEST_CORE" >> $GITHUB_OUTPUT++ # Determine major version for version constraint+ CORE_MAJOR=$(echo $LATEST_CORE | cut -d. -f1)+ NEXT_CORE_MAJOR=$((CORE_MAJOR + 1))++ # Update dependencies in pyproject.toml+ if [[ "$OSTYPE" == "darwin"* ]]; then+ # macOS version of sed needs an empty string for -i+ sed -i '' "s/\"cua-core>=.*,<.*\"/\"cua-core>=$LATEST_CORE,<$NEXT_CORE_MAJOR.0.0\"/" pyproject.toml+ else+ # Linux version+ sed -i "s/\"cua-core>=.*,<.*\"/\"cua-core>=$LATEST_CORE,<$NEXT_CORE_MAJOR.0.0\"/" pyproject.toml+ fi++ # Display the updated dependencies+ echo "Updated dependencies in pyproject.toml:"+ grep -E "cua-core" pyproject.tomlpublish:needs: prepareuses: ./.github/workflows/reusable-publish.ymlwith:package_name: "computer"- package_dir: "libs/computer/python"+ package_dir: "libs/python/computer"version: ${{ needs.prepare.outputs.version }}is_lume_package: falsebase_package_name: "cua-computer"secrets:PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}-+set-env-variables:needs: [prepare, publish]runs-on: macos-lateststeps:- name: Set environment variables for use in other jobsrun: |- echo "CORE_VERSION=${{ needs.prepare.outputs.core_version }}" >> $GITHUB_ENV\ No newline at end of file+ echo "CORE_VERSION=${{ needs.prepare.outputs.core_version }}" >> $GITHUB_ENVdiff --git a/.github/workflows/publish-core.yml b/.github/workflows/publish-core.ymlindex 4f868f26c1..760c055d67 100644--- a/.github/workflows/publish-core.yml+++ b/.github/workflows/publish-core.yml@@ -3,17 +3,17 @@ name: Publish Core Packageon:push:tags:- - 'core-v*'+ - "core-v*"workflow_dispatch:inputs:version:- description: 'Version to publish (without v prefix)'+ description: "Version to publish (without v prefix)"required: true- default: '0.1.0'+ default: "0.1.0"workflow_call:inputs:version:- description: 'Version to publish'+ description: "Version to publish"required: truetype: string@@ -27,37 +27,37 @@ jobs:outputs:version: ${{ steps.get-version.outputs.version }}steps:- - uses: actions/checkout@v4-- - name: Determine version- id: get-version- run: |- if [ "${{ github.event_name }}" == "push" ]; then- # Extract version from tag (for package-specific tags)- if [[ "${{ github.ref }}" =~ ^refs/tags/core-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then- VERSION=${BASH_REMATCH[1]}+ - uses: actions/checkout@v4++ - name: Determine version+ id: get-version+ run: |+ if [ "${{ github.event_name }}" == "push" ]; then+ # Extract version from tag (for package-specific tags)+ if [[ "${{ github.ref }}" =~ ^refs/tags/core-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then+ VERSION=${BASH_REMATCH[1]}+ else+ echo "Invalid tag format for core"+ exit 1+ fi+ elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then+ # Use version from workflow dispatch+ VERSION=${{ github.event.inputs.version }}else- echo "Invalid tag format for core"- exit 1+ # Use version from workflow_call+ VERSION=${{ inputs.version }}fi- elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then- # Use version from workflow dispatch- VERSION=${{ github.event.inputs.version }}- else- # Use version from workflow_call- VERSION=${{ inputs.version }}- fi- echo "VERSION=$VERSION"- echo "version=$VERSION" >> $GITHUB_OUTPUT+ echo "VERSION=$VERSION"+ echo "version=$VERSION" >> $GITHUB_OUTPUTpublish:needs: prepareuses: ./.github/workflows/reusable-publish.ymlwith:package_name: "core"- package_dir: "libs/core"+ package_dir: "libs/python/core"version: ${{ needs.prepare.outputs.version }}is_lume_package: falsebase_package_name: "cua-core"secrets:- PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}\ No newline at end of file+ PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}diff --git a/.github/workflows/publish-lume.yml b/.github/workflows/publish-lume.ymlindex ec5e7550a2..8557d51699 100644--- a/.github/workflows/publish-lume.yml+++ b/.github/workflows/publish-lume.yml@@ -3,17 +3,17 @@ name: Publish Notarized Lumeon:push:tags:- - 'lume-v*'+ - "lume-v*"workflow_dispatch:inputs:version:- description: 'Version to notarize (without v prefix)'+ description: "Version to notarize (without v prefix)"required: true- default: '0.1.0'+ default: "0.1.0"workflow_call:inputs:version:- description: 'Version to notarize'+ description: "Version to notarize"required: truetype: stringsecrets:@@ -64,7 +64,7 @@ jobs:- name: Create .release directoryrun: mkdir -p .release-+- name: Set versionid: set_versionrun: |@@ -82,11 +82,11 @@ jobs:echo "Error: No version found in tag or input"exit 1fi-+# Update version in Main.swiftecho "Updating version in Main.swift to $VERSION"- sed -i '' "s/static let current: String = \".*\"/static let current: String = \"$VERSION\"/" libs/lume/src/Main.swift-+ sed -i '' "s/static let current: String = \".*\"/static let current: String = \"$VERSION\"/" libs/swift/lume/src/Main.swift+# Set output for later stepsecho "version=$VERSION" >> $GITHUB_OUTPUT@@ -106,34 +106,34 @@ jobs:# Import certificatesecho $APPLICATION_CERT_BASE64 | base64 --decode > application.p12echo $INSTALLER_CERT_BASE64 | base64 --decode > installer.p12-+# Import certificates silently (minimize output)security import application.p12 -k build.keychain -P "$CERT_PASSWORD" -T /usr/bin/codesign -T /usr/bin/pkgbuild > /dev/null 2>&1security import installer.p12 -k build.keychain -P "$CERT_PASSWORD" -T /usr/bin/codesign -T /usr/bin/pkgbuild > /dev/null 2>&1-+# Allow codesign to access the certificates (minimal output)security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$KEYCHAIN_PASSWORD" build.keychain > /dev/null 2>&1-+# Verify certificates were importedecho "Verifying signing identities..."CERT_COUNT=$(security find-identity -v -p codesigning build.keychain | grep -c "Developer ID Application" || echo "0")INSTALLER_COUNT=$(security find-identity -v build.keychain | grep -c "Developer ID Installer" || echo "0")-+if [ "$CERT_COUNT" -eq 0 ]; thenecho "Error: No Developer ID Application certificate found"security find-identity -v -p codesigning build.keychainexit 1fi-+if [ "$INSTALLER_COUNT" -eq 0 ]; thenecho "Error: No Developer ID Installer certificate found"security find-identity -v build.keychainexit 1fi-+echo "Found $CERT_COUNT Developer ID Application certificate(s) and $INSTALLER_COUNT Developer ID Installer certificate(s)"echo "All required certificates verified successfully"-+# Clean up certificate filesrm application.p12 installer.p12@@ -147,45 +147,45 @@ jobs:CERT_APPLICATION_NAME: "Developer ID Application: ${{ secrets.DEVELOPER_NAME }} (${{ secrets.TEAM_ID }})"CERT_INSTALLER_NAME: "Developer ID Installer: ${{ secrets.DEVELOPER_NAME }} (${{ secrets.TEAM_ID }})"VERSION: ${{ steps.set_version.outputs.version }}- working-directory: ./libs/lume+ working-directory: ./libs/swift/lumerun: |# Minimal debug informationecho "Starting build process..."echo "Swift version: $(swift --version | head -n 1)"echo "Building version: $VERSION"-+# Ensure .release directory existsmkdir -p .releasechmod 755 .release-+# Build the project first (redirect verbose output)echo "Building project..."swift build --configuration release > build.log 2>&1echo "Build completed."-+# Run the notarization script with LOG_LEVEL env varchmod +x scripts/build/build-release-notarized.shcd scripts/buildLOG_LEVEL=minimal ./build-release-notarized.sh-+# Return to the lume directorycd ../..-+# Debug: List what files were actually createdecho "Files in .release directory:"find .release -type f -name "*.tar.gz" -o -name "*.pkg.tar.gz"-+# Get architecture for output filenameARCH=$(uname -m)OS_IDENTIFIER="darwin-${ARCH}"-+# Output paths for later useecho "tarball_path=.release/lume-${VERSION}-${OS_IDENTIFIER}.tar.gz" >> $GITHUB_OUTPUTecho "pkg_path=.release/lume-${VERSION}-${OS_IDENTIFIER}.pkg.tar.gz" >> $GITHUB_OUTPUT- name: Generate SHA256 Checksumsid: generate_checksums- working-directory: ./libs/lume/.release+ working-directory: ./libs/swift/lume/.releaserun: |# Use existing checksums file if it exists, otherwise generate oneif [ -f "checksums.txt" ]; then@@ -197,31 +197,31 @@ jobs:shasum -a 256 lume-*.tar.gz >> checksums.txtecho '```' >> checksums.txtfi-+checksums=$(cat checksums.txt)echo "checksums<<EOF" >> $GITHUB_OUTPUTecho "$checksums" >> $GITHUB_OUTPUTecho "EOF" >> $GITHUB_OUTPUT-+# Debug: Show all files in the release directoryecho "All files in release directory:"ls -la- name: Create Standard Version Releases- working-directory: ./libs/lume/.release+ working-directory: ./libs/swift/lume/.releaserun: |VERSION=${{ steps.set_version.outputs.version }}ARCH=$(uname -m)OS_IDENTIFIER="darwin-${ARCH}"-+# Create OS-tagged symlinksln -sf "lume-${VERSION}-${OS_IDENTIFIER}.tar.gz" "lume-darwin.tar.gz"ln -sf "lume-${VERSION}-${OS_IDENTIFIER}.pkg.tar.gz" "lume-darwin.pkg.tar.gz"-+# Create simple symlinksln -sf "lume-${VERSION}-${OS_IDENTIFIER}.tar.gz" "lume.tar.gz"ln -sf "lume-${VERSION}-${OS_IDENTIFIER}.pkg.tar.gz" "lume.pkg.tar.gz"-+# List all files (including symlinks)echo "Files with symlinks in release directory:"ls -la@@ -230,14 +230,14 @@ jobs:uses: actions/upload-artifact@v4with:name: lume-notarized-tarball- path: ./libs/lume/${{ steps.build_notarize.outputs.tarball_path }}+ path: ./libs/swift/lume/${{ steps.build_notarize.outputs.tarball_path }}if-no-files-found: error- name: Upload Notarized Package (Installer)uses: actions/upload-artifact@v4with:name: lume-notarized-installer- path: ./libs/lume/${{ steps.build_notarize.outputs.pkg_path }}+ path: ./libs/swift/lume/${{ steps.build_notarize.outputs.pkg_path }}if-no-files-found: error- name: Create Release@@ -245,18 +245,18 @@ jobs:uses: softprops/action-gh-release@v1with:files: |- ./libs/lume/${{ steps.build_notarize.outputs.tarball_path }}- ./libs/lume/${{ steps.build_notarize.outputs.pkg_path }}- ./libs/lume/.release/lume-darwin.tar.gz- ./libs/lume/.release/lume-darwin.pkg.tar.gz- ./libs/lume/.release/lume.tar.gz- ./libs/lume/.release/lume.pkg.tar.gz+ ./libs/swift/lume/${{ steps.build_notarize.outputs.tarball_path }}+ ./libs/swift/lume/${{ steps.build_notarize.outputs.pkg_path }}+ ./libs/swift/lume/.release/lume-darwin.tar.gz+ ./libs/swift/lume/.release/lume-darwin.pkg.tar.gz+ ./libs/swift/lume/.release/lume.tar.gz+ ./libs/swift/lume/.release/lume.pkg.tar.gzbody: |${{ steps.generate_checksums.outputs.checksums }}-+### Installation with script- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/lume/scripts/install.sh)"+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trycua/cua/main/libs/swift/lume/scripts/install.sh)"```generate_release_notes: true- make_latest: true\ No newline at end of file+ make_latest: truediff --git a/.github/workflows/publish-mcp-server.yml b/.github/workflows/publish-mcp-server.ymlindex e6eccd5a11..0e84a5a62c 100644--- a/.github/workflows/publish-mcp-server.yml+++ b/.github/workflows/publish-mcp-server.yml@@ -3,17 +3,17 @@ name: Publish MCP Server Packageon:push:tags:- - 'mcp-server-v*'+ - "mcp-server-v*"workflow_dispatch:inputs:version:- description: 'Version to publish (without v prefix)'+ description: "Version to publish (without v prefix)"required: true- default: '0.1.0'+ default: "0.1.0"workflow_call:inputs:version:- description: 'Version to publish'+ description: "Version to publish"required: truetype: stringoutputs:@@ -33,120 +33,120 @@ jobs:agent_version: ${{ steps.update-deps.outputs.agent_version }}computer_version: ${{ steps.update-deps.outputs.computer_version }}steps:- - uses: actions/checkout@v4-- - name: Determine version- id: get-version- run: |- if [ "${{ github.event_name }}" == "push" ]; then- # Extract version from tag (for package-specific tags)- if [[ "${{ github.ref }}" =~ ^refs/tags/mcp-server-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then- VERSION=${BASH_REMATCH[1]}+ - uses: actions/checkout@v4++ - name: Determine version+ id: get-version+ run: |+ if [ "${{ github.event_name }}" == "push" ]; then+ # Extract version from tag (for package-specific tags)+ if [[ "${{ github.ref }}" =~ ^refs/tags/mcp-server-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then+ VERSION=${BASH_REMATCH[1]}+ else+ echo "Invalid tag format for mcp-server"+ exit 1+ fi+ elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then+ # Use version from workflow dispatch+ VERSION=${{ github.event.inputs.version }}else- echo "Invalid tag format for mcp-server"- exit 1+ # Use version from workflow_call+ VERSION=${{ inputs.version }}fi- elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then- # Use version from workflow dispatch- VERSION=${{ github.event.inputs.version }}- else- # Use version from workflow_call- VERSION=${{ inputs.version }}- fi- echo "VERSION=$VERSION"- echo "version=$VERSION" >> $GITHUB_OUTPUT-- - name: Set up Python- uses: actions/setup-python@v4- with:- python-version: '3.11'-- - name: Update dependencies to latest versions- id: update-deps- run: |- cd libs/mcp-server-- # Install required package for PyPI API access- pip install requests-- # Create a Python script for PyPI version checking- cat > get_latest_versions.py << 'EOF'- import requests- import json- import sys-- def get_package_version(package_name, fallback="0.1.0"):- try:- response = requests.get(f'https://pypi.org/pypi/{package_name}/json')- print(f"API Response Status for {package_name}: {response.status_code}", file=sys.stderr)-- if response.status_code != 200:- print(f"API request failed for {package_name}, using fallback version", file=sys.stderr)- return fallback-- data = json.loads(response.text)-- if 'info' not in data:- print(f"Missing 'info' key in API response for {package_name}, using fallback version", file=sys.stderr)- return fallback-- return data['info']['version']- except Exception as e:- print(f"Error fetching version for {package_name}: {str(e)}", file=sys.stderr)- return fallback-- # Get latest versions- print(get_package_version('cua-agent'))- print(get_package_version('cua-computer'))- EOF-- # Execute the script to get the versions- VERSIONS=($(python get_latest_versions.py))- LATEST_AGENT=${VERSIONS[0]}- LATEST_COMPUTER=${VERSIONS[1]}-- echo "Latest cua-agent version: $LATEST_AGENT"- echo "Latest cua-computer version: $LATEST_COMPUTER"-- # Output the versions for the next job- echo "agent_version=$LATEST_AGENT" >> $GITHUB_OUTPUT- echo "computer_version=$LATEST_COMPUTER" >> $GITHUB_OUTPUT-- # Determine major version for version constraint- AGENT_MAJOR=$(echo $LATEST_AGENT | cut -d. -f1)- COMPUTER_MAJOR=$(echo $LATEST_COMPUTER | cut -d. -f1)-- NEXT_AGENT_MAJOR=$((AGENT_MAJOR + 1))- NEXT_COMPUTER_MAJOR=$((COMPUTER_MAJOR + 1))-- # Update dependencies in pyproject.toml- if [[ "$OSTYPE" == "darwin"* ]]; then- # macOS version of sed needs an empty string for -i- # Update cua-agent with all extras- sed -i '' "s/\"cua-agent\[all\]>=.*,<.*\"/\"cua-agent[all]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml- sed -i '' "s/\"cua-computer>=.*,<.*\"/\"cua-computer>=$LATEST_COMPUTER,<$NEXT_COMPUTER_MAJOR.0.0\"/" pyproject.toml- else- # Linux version- sed -i "s/\"cua-agent\[all\]>=.*,<.*\"/\"cua-agent[all]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml- sed -i "s/\"cua-computer>=.*,<.*\"/\"cua-computer>=$LATEST_COMPUTER,<$NEXT_COMPUTER_MAJOR.0.0\"/" pyproject.toml- fi-- # Display the updated dependencies- echo "Updated dependencies in pyproject.toml:"- grep -E "cua-agent|cua-computer" pyproject.toml+ echo "VERSION=$VERSION"+ echo "version=$VERSION" >> $GITHUB_OUTPUT++ - name: Set up Python+ uses: actions/setup-python@v4+ with:+ python-version: "3.11"++ - name: Update dependencies to latest versions+ id: update-deps+ run: |+ cd libs/python/mcp-server++ # Install required package for PyPI API access+ pip install requests++ # Create a Python script for PyPI version checking+ cat > get_latest_versions.py << 'EOF'+ import requests+ import json+ import sys++ def get_package_version(package_name, fallback="0.1.0"):+ try:+ response = requests.get(f'https://pypi.org/pypi/{package_name}/json')+ print(f"API Response Status for {package_name}: {response.status_code}", file=sys.stderr)++ if response.status_code != 200:+ print(f"API request failed for {package_name}, using fallback version", file=sys.stderr)+ return fallback++ data = json.loads(response.text)++ if 'info' not in data:+ print(f"Missing 'info' key in API response for {package_name}, using fallback version", file=sys.stderr)+ return fallback++ return data['info']['version']+ except Exception as e:+ print(f"Error fetching version for {package_name}: {str(e)}", file=sys.stderr)+ return fallback++ # Get latest versions+ print(get_package_version('cua-agent'))+ print(get_package_version('cua-computer'))+ EOF++ # Execute the script to get the versions+ VERSIONS=($(python get_latest_versions.py))+ LATEST_AGENT=${VERSIONS[0]}+ LATEST_COMPUTER=${VERSIONS[1]}++ echo "Latest cua-agent version: $LATEST_AGENT"+ echo "Latest cua-computer version: $LATEST_COMPUTER"++ # Output the versions for the next job+ echo "agent_version=$LATEST_AGENT" >> $GITHUB_OUTPUT+ echo "computer_version=$LATEST_COMPUTER" >> $GITHUB_OUTPUT++ # Determine major version for version constraint+ AGENT_MAJOR=$(echo $LATEST_AGENT | cut -d. -f1)+ COMPUTER_MAJOR=$(echo $LATEST_COMPUTER | cut -d. -f1)++ NEXT_AGENT_MAJOR=$((AGENT_MAJOR + 1))+ NEXT_COMPUTER_MAJOR=$((COMPUTER_MAJOR + 1))++ # Update dependencies in pyproject.toml+ if [[ "$OSTYPE" == "darwin"* ]]; then+ # macOS version of sed needs an empty string for -i+ # Update cua-agent with all extras+ sed -i '' "s/\"cua-agent\[all\]>=.*,<.*\"/\"cua-agent[all]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml+ sed -i '' "s/\"cua-computer>=.*,<.*\"/\"cua-computer>=$LATEST_COMPUTER,<$NEXT_COMPUTER_MAJOR.0.0\"/" pyproject.toml+ else+ # Linux version+ sed -i "s/\"cua-agent\[all\]>=.*,<.*\"/\"cua-agent[all]>=$LATEST_AGENT,<$NEXT_AGENT_MAJOR.0.0\"/" pyproject.toml+ sed -i "s/\"cua-computer>=.*,<.*\"/\"cua-computer>=$LATEST_COMPUTER,<$NEXT_COMPUTER_MAJOR.0.0\"/" pyproject.toml+ fi++ # Display the updated dependencies+ echo "Updated dependencies in pyproject.toml:"+ grep -E "cua-agent|cua-computer" pyproject.tomlpublish:needs: prepareuses: ./.github/workflows/reusable-publish.ymlwith:package_name: "mcp-server"- package_dir: "libs/mcp-server"+ package_dir: "libs/python/mcp-server"version: ${{ needs.prepare.outputs.version }}is_lume_package: falsebase_package_name: "cua-mcp-server"secrets:PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}-+set-env-variables:needs: [prepare, publish]runs-on: macos-latest@@ -154,4 +154,4 @@ jobs:- name: Set environment variables for use in other jobsrun: |echo "AGENT_VERSION=${{ needs.prepare.outputs.agent_version }}" >> $GITHUB_ENV- echo "COMPUTER_VERSION=${{ needs.prepare.outputs.computer_version }}" >> $GITHUB_ENV\ No newline at end of file+ echo "COMPUTER_VERSION=${{ needs.prepare.outputs.computer_version }}" >> $GITHUB_ENVdiff --git a/.github/workflows/publish-pylume.yml b/.github/workflows/publish-pylume.ymlindex c5bd4f6f4a..e9e5253993 100644--- a/.github/workflows/publish-pylume.yml+++ b/.github/workflows/publish-pylume.yml@@ -3,17 +3,17 @@ name: Publish Pylume Packageon:push:tags:- - 'pylume-v*'+ - "pylume-v*"workflow_dispatch:inputs:version:- description: 'Version to publish (without v prefix)'+ description: "Version to publish (without v prefix)"required: true- default: '0.1.0'+ default: "0.1.0"workflow_call:inputs:version:- description: 'Version to publish'+ description: "Version to publish"required: truetype: stringoutputs:@@ -31,52 +31,52 @@ jobs:outputs:version: ${{ steps.get-version.outputs.version }}steps:- - uses: actions/checkout@v4-- - name: Determine version- id: get-version- run: |- if [ "${{ github.event_name }}" == "push" ]; then- # Extract version from tag (for package-specific tags)- if [[ "${{ github.ref }}" =~ ^refs/tags/pylume-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then- VERSION=${BASH_REMATCH[1]}+ - uses: actions/checkout@v4++ - name: Determine version+ id: get-version+ run: |+ if [ "${{ github.event_name }}" == "push" ]; then+ # Extract version from tag (for package-specific tags)+ if [[ "${{ github.ref }}" =~ ^refs/tags/pylume-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then+ VERSION=${BASH_REMATCH[1]}+ else+ echo "Invalid tag format for pylume"+ exit 1+ fi+ elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then+ # Use version from workflow dispatch+ VERSION=${{ github.event.inputs.version }}else- echo "Invalid tag format for pylume"- exit 1+ # Use version from workflow_call+ VERSION=${{ inputs.version }}fi- elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then- # Use version from workflow dispatch- VERSION=${{ github.event.inputs.version }}- else- # Use version from workflow_call- VERSION=${{ inputs.version }}- fi- echo "VERSION=$VERSION"- echo "version=$VERSION" >> $GITHUB_OUTPUT+ echo "VERSION=$VERSION"+ echo "version=$VERSION" >> $GITHUB_OUTPUTvalidate-version:runs-on: macos-latestneeds: determine-versionsteps:- - uses: actions/checkout@v4- - name: Validate version- id: validate-version- run: |- CODE_VERSION=$(grep '__version__' libs/pylume/pylume/__init__.py | cut -d'"' -f2)- if [ "${{ needs.determine-version.outputs.version }}" != "$CODE_VERSION" ]; then- echo "Version mismatch: expected $CODE_VERSION, got ${{ needs.determine-version.outputs.version }}"- exit 1- fi- echo "Version validated: $CODE_VERSION"+ - uses: actions/checkout@v4+ - name: Validate version+ id: validate-version+ run: |+ CODE_VERSION=$(grep '__version__' libs/python/pylume/pylume/__init__.py | cut -d'"' -f2)+ if [ "${{ needs.determine-version.outputs.version }}" != "$CODE_VERSION" ]; then+ echo "Version mismatch: expected $CODE_VERSION, got ${{ needs.determine-version.outputs.version }}"+ exit 1+ fi+ echo "Version validated: $CODE_VERSION"publish:needs: determine-versionuses: ./.github/workflows/reusable-publish.ymlwith:package_name: "pylume"- package_dir: "libs/pylume"+ package_dir: "libs/python/pylume"version: ${{ needs.determine-version.outputs.version }}is_lume_package: truebase_package_name: "pylume"secrets:- PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}\ No newline at end of file+ PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}diff --git a/.github/workflows/publish-som.yml b/.github/workflows/publish-som.ymlindex b1d53ac81a..a5ac30e937 100644--- a/.github/workflows/publish-som.yml+++ b/.github/workflows/publish-som.yml@@ -3,17 +3,17 @@ name: Publish SOM Packageon:push:tags:- - 'som-v*'+ - "som-v*"workflow_dispatch:inputs:version:- description: 'Version to publish (without v prefix)'+ description: "Version to publish (without v prefix)"required: true- default: '0.1.0'+ default: "0.1.0"workflow_call:inputs:version:- description: 'Version to publish'+ description: "Version to publish"required: truetype: stringoutputs:@@ -31,37 +31,37 @@ jobs:outputs:version: ${{ steps.get-version.outputs.version }}steps:- - uses: actions/checkout@v4-- - name: Determine version- id: get-version- run: |- if [ "${{ github.event_name }}" == "push" ]; then- # Extract version from tag (for package-specific tags)- if [[ "${{ github.ref }}" =~ ^refs/tags/som-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then- VERSION=${BASH_REMATCH[1]}+ - uses: actions/checkout@v4++ - name: Determine version+ id: get-version+ run: |+ if [ "${{ github.event_name }}" == "push" ]; then+ # Extract version from tag (for package-specific tags)+ if [[ "${{ github.ref }}" =~ ^refs/tags/som-v([0-9]+\.[0-9]+\.[0-9]+) ]]; then+ VERSION=${BASH_REMATCH[1]}+ else+ echo "Invalid tag format for som"+ exit 1+ fi+ elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then+ # Use version from workflow dispatch+ VERSION=${{ github.event.inputs.version }}else- echo "Invalid tag format for som"- exit 1+ # Use version from workflow_call+ VERSION=${{ inputs.version }}fi- elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then- # Use version from workflow dispatch- VERSION=${{ github.event.inputs.version }}- else- # Use version from workflow_call- VERSION=${{ inputs.version }}- fi- echo "VERSION=$VERSION"- echo "version=$VERSION" >> $GITHUB_OUTPUT+ echo "VERSION=$VERSION"+ echo "version=$VERSION" >> $GITHUB_OUTPUTpublish:needs: determine-versionuses: ./.github/workflows/reusable-publish.ymlwith:package_name: "som"- package_dir: "libs/som"+ package_dir: "libs/python/som"version: ${{ needs.determine-version.outputs.version }}is_lume_package: falsebase_package_name: "cua-som"secrets:- PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}\ No newline at end of file+ PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}diff --git a/.github/workflows/reusable-publish.yml b/.github/workflows/reusable-publish.ymlindex 8856b60dba..f1eb045edc 100644--- a/.github/workflows/reusable-publish.yml+++ b/.github/workflows/reusable-publish.yml@@ -4,28 +4,28 @@ on:workflow_call:inputs:package_name:- description: 'Name of the package (e.g. pylume, computer, agent)'+ description: "Name of the package (e.g. pylume, computer, agent)"required: truetype: stringpackage_dir:- description: 'Directory containing the package relative to workspace root (e.g. libs/pylume)'+ description: "Directory containing the package relative to workspace root (e.g. libs/python/pylume)"required: truetype: stringversion:- description: 'Version to publish'+ description: "Version to publish"required: truetype: stringis_lume_package:- description: 'Whether this package includes the lume binary'+ description: "Whether this package includes the lume binary"required: falsetype: booleandefault: falsebase_package_name:- description: 'PyPI package name (e.g. pylume, cua-agent)'+ description: "PyPI package name (e.g. pylume, cua-agent)"required: truetype: stringmake_latest:- description: 'Whether to mark this release as latest (should only be true for lume)'+ description: "Whether to mark this release as latest (should only be true for lume)"required: falsetype: booleandefault: false@@ -41,240 +41,240 @@ jobs:build-and-publish:runs-on: macos-latestpermissions:- contents: write # This permission is needed for creating releases+ contents: write # This permission is needed for creating releasesoutputs:version: ${{ steps.set-version.outputs.version }}steps:- - uses: actions/checkout@v4- with:- fetch-depth: 0 # Full history for release creation-- - name: Set up Python- uses: actions/setup-python@v4- with:- python-version: '3.11'-- - name: Create root pdm.lock file- run: |- # Create an empty pdm.lock file in the root- touch pdm.lock-- - name: Install PDM- uses: pdm-project/setup-pdm@v3- with:- python-version: '3.11'- cache: true-- - name: Set version- id: set-version- run: |- echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV- echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT+ - uses: actions/checkout@v4+ with:+ fetch-depth: 0 # Full history for release creation- - name: Initialize PDM in package directory- run: |- # Make sure we're working with a properly initialized PDM project- cd ${{ inputs.package_dir }}-- # Create pdm.lock if it doesn't exist- if [ ! -f "pdm.lock" ]; then- echo "No pdm.lock found, initializing PDM project..."- pdm lock- fi-- - name: Set version in package- run: |- cd ${{ inputs.package_dir }}- # Replace pdm bump with direct edit of pyproject.toml- if [[ "$OSTYPE" == "darwin"* ]]; then- # macOS version of sed needs an empty string for -i- sed -i '' "s/version = \".*\"/version = \"$VERSION\"/" pyproject.toml- else- # Linux version- sed -i "s/version = \".*\"/version = \"$VERSION\"/" pyproject.toml- fi- # Verify version was updated- echo "Updated version in pyproject.toml:"- grep "version =" pyproject.toml-- # Conditional step for lume binary download (only for pylume package)- - name: Download and setup lume binary- if: inputs.is_lume_package- run: |- # Create a temporary directory for extraction- mkdir -p temp_lume-- # Download the latest lume release directly- echo "Downloading latest lume version..."- curl -sL "https://github.com/trycua/lume/releases/latest/download/lume.tar.gz" -o temp_lume/lume.tar.gz-- # Extract the tar file (ignore ownership and suppress warnings)- cd temp_lume && tar --no-same-owner -xzf lume.tar.gz-- # Make the binary executable- chmod +x lume-- # Copy the lume binary to the correct location in the pylume package- mkdir -p "${GITHUB_WORKSPACE}/${{ inputs.package_dir }}/pylume"- cp lume "${GITHUB_WORKSPACE}/${{ inputs.package_dir }}/pylume/lume"-- # Verify the binary exists and is executable- test -x "${GITHUB_WORKSPACE}/${{ inputs.package_dir }}/pylume/lume" || { echo "lume binary not found or not executable"; exit 1; }-- # Get the version from the downloaded binary for reference- LUME_VERSION=$(./lume --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' || echo "unknown")- echo "Using lume version: $LUME_VERSION"-- # Cleanup- cd "${GITHUB_WORKSPACE}" && rm -rf temp_lume-- # Save the lume version for reference- echo "LUME_VERSION=${LUME_VERSION}" >> $GITHUB_ENV-- - name: Build and publish- env:- PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}- run: |- cd ${{ inputs.package_dir }}- # Build with PDM- pdm build-- # For pylume package, verify the binary is in the wheel- if [ "${{ inputs.is_lume_package }}" = "true" ]; then- python -m pip install wheel- wheel unpack dist/*.whl --dest temp_wheel- echo "Listing contents of wheel directory:"- find temp_wheel -type f- test -f temp_wheel/pylume-*/pylume/lume || { echo "lume binary not found in wheel"; exit 1; }- rm -rf temp_wheel- echo "Publishing ${{ inputs.base_package_name }} ${VERSION} with lume ${LUME_VERSION}"- else- echo "Publishing ${{ inputs.base_package_name }} ${VERSION}"- fi-- # Install and use twine directly instead of PDM publish- echo "Installing twine for direct publishing..."- pip install twine-- 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+ - name: Set up Python+ uses: actions/setup-python@v4+ with:+ python-version: "3.11"++ - name: Create root pdm.lock file+ run: |+ # Create an empty pdm.lock file in the root+ touch pdm.lock++ - name: Install PDM+ uses: pdm-project/setup-pdm@v3+ with:+ python-version: "3.11"+ cache: true++ - name: Set version+ id: set-version+ run: |+ echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV+ echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT++ - name: Initialize PDM in package directory+ run: |+ # Make sure we're working with a properly initialized PDM project+ cd ${{ inputs.package_dir }}++ # Create pdm.lock if it doesn't exist+ if [ ! -f "pdm.lock" ]; then+ echo "No pdm.lock found, initializing PDM project..."+ pdm lock+ fi++ - name: Set version in package+ run: |+ cd ${{ inputs.package_dir }}+ # Replace pdm bump with direct edit of pyproject.toml+ if [[ "$OSTYPE" == "darwin"* ]]; then+ # macOS version of sed needs an empty string for -i+ sed -i '' "s/version = \".*\"/version = \"$VERSION\"/" pyproject.toml+ else+ # Linux version+ sed -i "s/version = \".*\"/version = \"$VERSION\"/" pyproject.toml+ fi+ # Verify version was updated+ echo "Updated version in pyproject.toml:"+ grep "version =" pyproject.toml++ # Conditional step for lume binary download (only for pylume package)+ - name: Download and setup lume binary+ if: inputs.is_lume_package+ run: |+ # Create a temporary directory for extraction+ mkdir -p temp_lume++ # Download the latest lume release directly+ echo "Downloading latest lume version..."+ curl -sL "https://github.com/trycua/lume/releases/latest/download/lume.tar.gz" -o temp_lume/lume.tar.gz++ # Extract the tar file (ignore ownership and suppress warnings)+ cd temp_lume && tar --no-same-owner -xzf lume.tar.gz++ # Make the binary executable+ chmod +x lume++ # Copy the lume binary to the correct location in the pylume package+ mkdir -p "${GITHUB_WORKSPACE}/${{ inputs.package_dir }}/pylume"+ cp lume "${GITHUB_WORKSPACE}/${{ inputs.package_dir }}/pylume/lume"++ # Verify the binary exists and is executable+ test -x "${GITHUB_WORKSPACE}/${{ inputs.package_dir }}/pylume/lume" || { echo "lume binary not found or not executable"; exit 1; }++ # Get the version from the downloaded binary for reference+ LUME_VERSION=$(./lume --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' || echo "unknown")+ echo "Using lume version: $LUME_VERSION"++ # Cleanup+ cd "${GITHUB_WORKSPACE}" && rm -rf temp_lume++ # Save the lume version for reference+ echo "LUME_VERSION=${LUME_VERSION}" >> $GITHUB_ENV++ - name: Build and publish+ env:+ PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}+ run: |+ cd ${{ inputs.package_dir }}+ # Build with PDM+ pdm build++ # For pylume package, verify the binary is in the wheel+ if [ "${{ inputs.is_lume_package }}" = "true" ]; then+ python -m pip install wheel+ wheel unpack dist/*.whl --dest temp_wheel+ echo "Listing contents of wheel directory:"+ find temp_wheel -type f+ test -f temp_wheel/pylume-*/pylume/lume || { echo "lume binary not found in wheel"; exit 1; }+ rm -rf temp_wheel+ echo "Publishing ${{ inputs.base_package_name }} ${VERSION} with lume ${LUME_VERSION}"+ else+ echo "Publishing ${{ inputs.base_package_name }} ${VERSION}"+ fi++ # Install and use twine directly instead of PDM publish+ echo "Installing twine for direct publishing..."+ pip install twine++ 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.mdecho "" >> 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 }}\ No newline at end of file++ 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 }}diff --git a/libs/python/lumier/.dockerignore b/libs/bash/lumier/.dockerignoresimilarity index 100%rename from libs/python/lumier/.dockerignorerename to libs/bash/lumier/.dockerignorediff --git a/libs/python/lumier/Dockerfile b/libs/bash/lumier/Dockerfilesimilarity index 100%rename from libs/python/lumier/Dockerfilerename to libs/bash/lumier/Dockerfilediff --git a/libs/python/lumier/README.md b/libs/bash/lumier/README.mdsimilarity index 100%rename from libs/python/lumier/README.mdrename to libs/bash/lumier/README.mddiff --git a/libs/python/lumier/src/bin/entry.sh b/libs/bash/lumier/src/bin/entry.shsimilarity index 100%rename from libs/python/lumier/src/bin/entry.shrename to libs/bash/lumier/src/bin/entry.shdiff --git a/libs/python/lumier/src/config/constants.sh b/libs/bash/lumier/src/config/constants.shsimilarity index 100%rename from libs/python/lumier/src/config/constants.shrename to libs/bash/lumier/src/config/constants.shdiff --git a/libs/python/lumier/src/hooks/on-logon.sh b/libs/bash/lumier/src/hooks/on-logon.shsimilarity index 100%rename from libs/python/lumier/src/hooks/on-logon.shrename to libs/bash/lumier/src/hooks/on-logon.shdiff --git a/libs/python/lumier/src/lib/utils.sh b/libs/bash/lumier/src/lib/utils.shsimilarity index 100%rename from libs/python/lumier/src/lib/utils.shrename to libs/bash/lumier/src/lib/utils.shdiff --git a/libs/python/lumier/src/lib/vm.sh b/libs/bash/lumier/src/lib/vm.shsimilarity index 100%rename from libs/python/lumier/src/lib/vm.shrename to libs/bash/lumier/src/lib/vm.shdiff --git a/libs/python/lume/.cursorignore b/libs/swift/lume/.cursorignoresimilarity index 100%rename from libs/python/lume/.cursorignorerename to libs/swift/lume/.cursorignorediff --git a/libs/python/lume/CONTRIBUTING.md b/libs/swift/lume/CONTRIBUTING.mdsimilarity index 100%rename from libs/python/lume/CONTRIBUTING.mdrename to libs/swift/lume/CONTRIBUTING.mddiff --git a/libs/python/lume/Package.resolved b/libs/swift/lume/Package.resolvedsimilarity index 100%rename from libs/python/lume/Package.resolvedrename to libs/swift/lume/Package.resolveddiff --git a/libs/python/lume/Package.swift b/libs/swift/lume/Package.swiftsimilarity index 100%rename from libs/python/lume/Package.swiftrename to libs/swift/lume/Package.swiftdiff --git a/libs/python/lume/README.md b/libs/swift/lume/README.mdsimilarity index 100%rename from libs/python/lume/README.mdrename to libs/swift/lume/README.mddiff --git a/libs/python/lume/docs/API-Reference.md b/libs/swift/lume/docs/API-Reference.mdsimilarity index 100%rename from libs/python/lume/docs/API-Reference.mdrename to libs/swift/lume/docs/API-Reference.mddiff --git a/libs/python/lume/docs/Development.md b/libs/swift/lume/docs/Development.mdsimilarity index 100%rename from libs/python/lume/docs/Development.mdrename to libs/swift/lume/docs/Development.mddiff --git a/libs/python/lume/docs/FAQ.md b/libs/swift/lume/docs/FAQ.mdsimilarity index 100%rename from libs/python/lume/docs/FAQ.mdrename to libs/swift/lume/docs/FAQ.mddiff --git a/libs/python/lume/img/cli.png b/libs/swift/lume/img/cli.pngsimilarity index 100%rename from libs/python/lume/img/cli.pngrename to libs/swift/lume/img/cli.pngdiff --git a/libs/python/lume/img/logo_black.png b/libs/swift/lume/img/logo_black.pngsimilarity index 100%rename from libs/python/lume/img/logo_black.pngrename to libs/swift/lume/img/logo_black.pngdiff --git a/libs/python/lume/img/logo_white.png b/libs/swift/lume/img/logo_white.pngsimilarity index 100%rename from libs/python/lume/img/logo_white.pngrename to libs/swift/lume/img/logo_white.pngdiff --git a/libs/python/lume/resources/lume.entitlements b/libs/swift/lume/resources/lume.entitlementssimilarity index 100%rename from libs/python/lume/resources/lume.entitlementsrename to libs/swift/lume/resources/lume.entitlementsdiff --git a/libs/python/lume/scripts/install.sh b/libs/swift/lume/scripts/install.shsimilarity index 100%rename from libs/python/lume/scripts/install.shrename to libs/swift/lume/scripts/install.shdiff --git a/libs/python/lume/src/Commands/Clone.swift b/libs/swift/lume/src/Commands/Clone.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Clone.swiftrename to libs/swift/lume/src/Commands/Clone.swiftdiff --git a/libs/python/lume/src/Commands/Config.swift b/libs/swift/lume/src/Commands/Config.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Config.swiftrename to libs/swift/lume/src/Commands/Config.swiftdiff --git a/libs/python/lume/src/Commands/Create.swift b/libs/swift/lume/src/Commands/Create.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Create.swiftrename to libs/swift/lume/src/Commands/Create.swiftdiff --git a/libs/python/lume/src/Commands/Delete.swift b/libs/swift/lume/src/Commands/Delete.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Delete.swiftrename to libs/swift/lume/src/Commands/Delete.swiftdiff --git a/libs/python/lume/src/Commands/Get.swift b/libs/swift/lume/src/Commands/Get.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Get.swiftrename to libs/swift/lume/src/Commands/Get.swiftdiff --git a/libs/python/lume/src/Commands/IPSW.swift b/libs/swift/lume/src/Commands/IPSW.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/IPSW.swiftrename to libs/swift/lume/src/Commands/IPSW.swiftdiff --git a/libs/python/lume/src/Commands/Images.swift b/libs/swift/lume/src/Commands/Images.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Images.swiftrename to libs/swift/lume/src/Commands/Images.swiftdiff --git a/libs/python/lume/src/Commands/List.swift b/libs/swift/lume/src/Commands/List.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/List.swiftrename to libs/swift/lume/src/Commands/List.swiftdiff --git a/libs/python/lume/src/Commands/Logs.swift b/libs/swift/lume/src/Commands/Logs.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Logs.swiftrename to libs/swift/lume/src/Commands/Logs.swiftdiff --git a/libs/python/lume/src/Commands/Options/FormatOption.swift b/libs/swift/lume/src/Commands/Options/FormatOption.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Options/FormatOption.swiftrename to libs/swift/lume/src/Commands/Options/FormatOption.swiftdiff --git a/libs/python/lume/src/Commands/Prune.swift b/libs/swift/lume/src/Commands/Prune.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Prune.swiftrename to libs/swift/lume/src/Commands/Prune.swiftdiff --git a/libs/python/lume/src/Commands/Pull.swift b/libs/swift/lume/src/Commands/Pull.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Pull.swiftrename to libs/swift/lume/src/Commands/Pull.swiftdiff --git a/libs/python/lume/src/Commands/Push.swift b/libs/swift/lume/src/Commands/Push.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Push.swiftrename to libs/swift/lume/src/Commands/Push.swiftdiff --git a/libs/python/lume/src/Commands/Run.swift b/libs/swift/lume/src/Commands/Run.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Run.swiftrename to libs/swift/lume/src/Commands/Run.swiftdiff --git a/libs/python/lume/src/Commands/Serve.swift b/libs/swift/lume/src/Commands/Serve.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Serve.swiftrename to libs/swift/lume/src/Commands/Serve.swiftdiff --git a/libs/python/lume/src/Commands/Set.swift b/libs/swift/lume/src/Commands/Set.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Set.swiftrename to libs/swift/lume/src/Commands/Set.swiftdiff --git a/libs/python/lume/src/Commands/Stop.swift b/libs/swift/lume/src/Commands/Stop.swiftsimilarity index 100%rename from libs/python/lume/src/Commands/Stop.swiftrename to libs/swift/lume/src/Commands/Stop.swiftdiff --git a/libs/python/lume/src/ContainerRegistry/ImageContainerRegistry.swift b/libs/swift/lume/src/ContainerRegistry/ImageContainerRegistry.swiftsimilarity index 100%rename from libs/python/lume/src/ContainerRegistry/ImageContainerRegistry.swiftrename to libs/swift/lume/src/ContainerRegistry/ImageContainerRegistry.swiftdiff --git a/libs/python/lume/src/ContainerRegistry/ImageList.swift b/libs/swift/lume/src/ContainerRegistry/ImageList.swiftsimilarity index 100%rename from libs/python/lume/src/ContainerRegistry/ImageList.swiftrename to libs/swift/lume/src/ContainerRegistry/ImageList.swiftdiff --git a/libs/python/lume/src/ContainerRegistry/ImagesPrinter.swift b/libs/swift/lume/src/ContainerRegistry/ImagesPrinter.swiftsimilarity index 100%rename from libs/python/lume/src/ContainerRegistry/ImagesPrinter.swiftrename to libs/swift/lume/src/ContainerRegistry/ImagesPrinter.swiftdiff --git a/libs/python/lume/src/Errors/Errors.swift b/libs/swift/lume/src/Errors/Errors.swiftsimilarity index 100%rename from libs/python/lume/src/Errors/Errors.swiftrename to libs/swift/lume/src/Errors/Errors.swiftdiff --git a/libs/python/lume/src/FileSystem/Home.swift b/libs/swift/lume/src/FileSystem/Home.swiftsimilarity index 100%rename from libs/python/lume/src/FileSystem/Home.swiftrename to libs/swift/lume/src/FileSystem/Home.swiftdiff --git a/libs/python/lume/src/FileSystem/Settings.swift b/libs/swift/lume/src/FileSystem/Settings.swiftsimilarity index 100%rename from libs/python/lume/src/FileSystem/Settings.swiftrename to libs/swift/lume/src/FileSystem/Settings.swiftdiff --git a/libs/python/lume/src/FileSystem/VMConfig.swift b/libs/swift/lume/src/FileSystem/VMConfig.swiftsimilarity index 100%rename from libs/python/lume/src/FileSystem/VMConfig.swiftrename to libs/swift/lume/src/FileSystem/VMConfig.swiftdiff --git a/libs/python/lume/src/FileSystem/VMDirectory.swift b/libs/swift/lume/src/FileSystem/VMDirectory.swiftsimilarity index 100%rename from libs/python/lume/src/FileSystem/VMDirectory.swiftrename to libs/swift/lume/src/FileSystem/VMDirectory.swiftdiff --git a/libs/python/lume/src/FileSystem/VMLocation.swift b/libs/swift/lume/src/FileSystem/VMLocation.swiftsimilarity index 100%rename from libs/python/lume/src/FileSystem/VMLocation.swiftrename to libs/swift/lume/src/FileSystem/VMLocation.swiftdiff --git a/libs/python/lume/src/LumeController.swift b/libs/swift/lume/src/LumeController.swiftsimilarity index 100%rename from libs/python/lume/src/LumeController.swiftrename to libs/swift/lume/src/LumeController.swiftdiff --git a/libs/python/lume/src/Main.swift b/libs/swift/lume/src/Main.swiftsimilarity index 100%rename from libs/python/lume/src/Main.swiftrename to libs/swift/lume/src/Main.swiftdiff --git a/libs/python/lume/src/Server/HTTP.swift b/libs/swift/lume/src/Server/HTTP.swiftsimilarity index 100%rename from libs/python/lume/src/Server/HTTP.swiftrename to libs/swift/lume/src/Server/HTTP.swiftdiff --git a/libs/python/lume/src/Server/Handlers.swift b/libs/swift/lume/src/Server/Handlers.swiftsimilarity index 100%rename from libs/python/lume/src/Server/Handlers.swiftrename to libs/swift/lume/src/Server/Handlers.swiftdiff --git a/libs/python/lume/src/Server/Requests.swift b/libs/swift/lume/src/Server/Requests.swiftsimilarity index 100%rename from libs/python/lume/src/Server/Requests.swiftrename to libs/swift/lume/src/Server/Requests.swiftdiff --git a/libs/python/lume/src/Server/Responses.swift b/libs/swift/lume/src/Server/Responses.swiftsimilarity index 100%rename from libs/python/lume/src/Server/Responses.swiftrename to libs/swift/lume/src/Server/Responses.swiftdiff --git a/libs/python/lume/src/Server/Server.swift b/libs/swift/lume/src/Server/Server.swiftsimilarity index 100%rename from libs/python/lume/src/Server/Server.swiftrename to libs/swift/lume/src/Server/Server.swiftdiff --git a/libs/python/lume/src/Utils/CommandRegistry.swift b/libs/swift/lume/src/Utils/CommandRegistry.swiftsimilarity index 100%rename from libs/python/lume/src/Utils/CommandRegistry.swiftrename to libs/swift/lume/src/Utils/CommandRegistry.swiftdiff --git a/libs/python/lume/src/Utils/CommandUtils.swift b/libs/swift/lume/src/Utils/CommandUtils.swiftsimilarity index 100%rename from libs/python/lume/src/Utils/CommandUtils.swiftrename to libs/swift/lume/src/Utils/CommandUtils.swiftdiff --git a/libs/python/lume/src/Utils/Logger.swift b/libs/swift/lume/src/Utils/Logger.swiftsimilarity index 100%rename from libs/python/lume/src/Utils/Logger.swiftrename to libs/swift/lume/src/Utils/Logger.swiftdiff --git a/libs/python/lume/src/Utils/NetworkUtils.swift b/libs/swift/lume/src/Utils/NetworkUtils.swiftsimilarity index 100%rename from libs/python/lume/src/Utils/NetworkUtils.swiftrename to libs/swift/lume/src/Utils/NetworkUtils.swiftdiff --git a/libs/python/lume/src/Utils/Path.swift b/libs/swift/lume/src/Utils/Path.swiftsimilarity index 100%rename from libs/python/lume/src/Utils/Path.swiftrename to libs/swift/lume/src/Utils/Path.swiftdiff --git a/libs/python/lume/src/Utils/ProcessRunner.swift b/libs/swift/lume/src/Utils/ProcessRunner.swiftsimilarity index 100%rename from libs/python/lume/src/Utils/ProcessRunner.swiftrename to libs/swift/lume/src/Utils/ProcessRunner.swiftdiff --git a/libs/python/lume/src/Utils/ProgressLogger.swift b/libs/swift/lume/src/Utils/ProgressLogger.swiftsimilarity index 100%rename from libs/python/lume/src/Utils/ProgressLogger.swiftrename to libs/swift/lume/src/Utils/ProgressLogger.swiftdiff --git a/libs/python/lume/src/Utils/String.swift b/libs/swift/lume/src/Utils/String.swiftsimilarity index 100%rename from libs/python/lume/src/Utils/String.swiftrename to libs/swift/lume/src/Utils/String.swiftdiff --git a/libs/python/lume/src/Utils/Utils.swift b/libs/swift/lume/src/Utils/Utils.swiftsimilarity index 100%rename from libs/python/lume/src/Utils/Utils.swiftrename to libs/swift/lume/src/Utils/Utils.swiftdiff --git a/libs/python/lume/src/VM/DarwinVM.swift b/libs/swift/lume/src/VM/DarwinVM.swiftsimilarity index 100%rename from libs/python/lume/src/VM/DarwinVM.swiftrename to libs/swift/lume/src/VM/DarwinVM.swiftdiff --git a/libs/python/lume/src/VM/LinuxVM.swift b/libs/swift/lume/src/VM/LinuxVM.swiftsimilarity index 100%rename from libs/python/lume/src/VM/LinuxVM.swiftrename to libs/swift/lume/src/VM/LinuxVM.swiftdiff --git a/libs/python/lume/src/VM/VM.swift b/libs/swift/lume/src/VM/VM.swiftsimilarity index 100%rename from libs/python/lume/src/VM/VM.swiftrename to libs/swift/lume/src/VM/VM.swiftdiff --git a/libs/python/lume/src/VM/VMDetails.swift b/libs/swift/lume/src/VM/VMDetails.swiftsimilarity index 100%rename from libs/python/lume/src/VM/VMDetails.swiftrename to libs/swift/lume/src/VM/VMDetails.swiftdiff --git a/libs/python/lume/src/VM/VMDetailsPrinter.swift b/libs/swift/lume/src/VM/VMDetailsPrinter.swiftsimilarity index 100%rename from libs/python/lume/src/VM/VMDetailsPrinter.swiftrename to libs/swift/lume/src/VM/VMDetailsPrinter.swiftdiff --git a/libs/python/lume/src/VM/VMDisplayResolution.swift b/libs/swift/lume/src/VM/VMDisplayResolution.swiftsimilarity index 100%rename from libs/python/lume/src/VM/VMDisplayResolution.swiftrename to libs/swift/lume/src/VM/VMDisplayResolution.swiftdiff --git a/libs/python/lume/src/VM/VMFactory.swift b/libs/swift/lume/src/VM/VMFactory.swiftsimilarity index 100%rename from libs/python/lume/src/VM/VMFactory.swiftrename to libs/swift/lume/src/VM/VMFactory.swiftdiff --git a/libs/python/lume/src/VNC/PassphraseGenerator.swift b/libs/swift/lume/src/VNC/PassphraseGenerator.swiftsimilarity index 100%rename from libs/python/lume/src/VNC/PassphraseGenerator.swiftrename to libs/swift/lume/src/VNC/PassphraseGenerator.swiftdiff --git a/libs/python/lume/src/VNC/VNCService.swift b/libs/swift/lume/src/VNC/VNCService.swiftsimilarity index 100%rename from libs/python/lume/src/VNC/VNCService.swiftrename to libs/swift/lume/src/VNC/VNCService.swiftdiff --git a/libs/python/lume/src/Virtualization/DHCPLeaseParser.swift b/libs/swift/lume/src/Virtualization/DHCPLeaseParser.swiftsimilarity index 100%rename from libs/python/lume/src/Virtualization/DHCPLeaseParser.swiftrename to libs/swift/lume/src/Virtualization/DHCPLeaseParser.swiftdiff --git a/libs/python/lume/src/Virtualization/DarwinImageLoader.swift b/libs/swift/lume/src/Virtualization/DarwinImageLoader.swiftsimilarity index 100%rename from libs/python/lume/src/Virtualization/DarwinImageLoader.swiftrename to libs/swift/lume/src/Virtualization/DarwinImageLoader.swiftdiff --git a/libs/python/lume/src/Virtualization/ImageLoaderFactory.swift b/libs/swift/lume/src/Virtualization/ImageLoaderFactory.swiftsimilarity index 100%rename from libs/python/lume/src/Virtualization/ImageLoaderFactory.swiftrename to libs/swift/lume/src/Virtualization/ImageLoaderFactory.swiftdiff --git a/libs/python/lume/src/Virtualization/VMVirtualizationService.swift b/libs/swift/lume/src/Virtualization/VMVirtualizationService.swiftsimilarity index 100%rename from libs/python/lume/src/Virtualization/VMVirtualizationService.swiftrename to libs/swift/lume/src/Virtualization/VMVirtualizationService.swiftdiff --git a/libs/python/lume/tests/Mocks/MockVM.swift b/libs/swift/lume/tests/Mocks/MockVM.swiftsimilarity index 100%rename from libs/python/lume/tests/Mocks/MockVM.swiftrename to libs/swift/lume/tests/Mocks/MockVM.swiftdiff --git a/libs/python/lume/tests/Mocks/MockVMVirtualizationService.swift b/libs/swift/lume/tests/Mocks/MockVMVirtualizationService.swiftsimilarity index 100%rename from libs/python/lume/tests/Mocks/MockVMVirtualizationService.swiftrename to libs/swift/lume/tests/Mocks/MockVMVirtualizationService.swiftdiff --git a/libs/python/lume/tests/Mocks/MockVNCService.swift b/libs/swift/lume/tests/Mocks/MockVNCService.swiftsimilarity index 100%rename from libs/python/lume/tests/Mocks/MockVNCService.swiftrename to libs/swift/lume/tests/Mocks/MockVNCService.swiftdiff --git a/libs/python/lume/tests/VM/VMDetailsPrinterTests.swift b/libs/swift/lume/tests/VM/VMDetailsPrinterTests.swiftsimilarity index 100%rename from libs/python/lume/tests/VM/VMDetailsPrinterTests.swiftrename to libs/swift/lume/tests/VM/VMDetailsPrinterTests.swiftdiff --git a/libs/python/lume/tests/VMTests.swift b/libs/swift/lume/tests/VMTests.swiftsimilarity index 100%rename from libs/python/lume/tests/VMTests.swiftrename to libs/swift/lume/tests/VMTests.swiftdiff --git a/libs/python/lume/tests/VMVirtualizationServiceTests.swift b/libs/swift/lume/tests/VMVirtualizationServiceTests.swiftsimilarity index 100%rename from libs/python/lume/tests/VMVirtualizationServiceTests.swiftrename to libs/swift/lume/tests/VMVirtualizationServiceTests.swiftdiff --git a/libs/python/lume/tests/VNCServiceTests.swift b/libs/swift/lume/tests/VNCServiceTests.swiftsimilarity index 100%rename from libs/python/lume/tests/VNCServiceTests.swiftrename to libs/swift/lume/tests/VNCServiceTests.swift