Files
computer/tests
r33drichards f6c10468d6 Add CloudV2Provider with cua.sh domain support (#1017)
* Add CloudV2 provider with new cua.sh domain format

- Add CLOUDV2 to VMProviderType enum
- Create CloudV2Provider class using {name}-api.cua.sh:443 for API
  and {name}-vnc.cua.sh:443 for VNC endpoints
- Update VMProviderFactory to support cloudv2 provider type
- Update Computer class to handle cloudv2 provider with proper
  api_key handling and port 443 default
- Fix provider_type string to enum normalization to ensure
  consistent comparisons for cloud providers

https://claude.ai/code/session_01BDyNF14Hq8eidGCpZAKPUY

* Fix playwright_exec to use _api_port instead of hardcoded port

The playwright_exec method was hardcoding port 8443 for HTTPS connections,
but cloudv2 provider uses port 443. This fix uses the _api_port attribute
when set, falling back to the previous behavior for backwards compatibility.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix Python lint and test failures in CI

- Fix isort import ordering issues across 6 files
- Fix black formatting across 18 files (some pre-existing issues)
- Fix ruff E741 ambiguous variable name in overlay-cursor.py
- Fix ruff F841 unused variable warning in adobe_photoshop.py
- Fix test_tool_resolution.py tests that were checking deferred behavior:
  - Tests now properly call _resolve_tools() since tool resolution is
    async and deferred to _initialize_computers()

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-04 15:49:06 -08:00
..
2025-06-03 13:12:01 -04:00