Commit Graph

91 Commits

Author SHA1 Message Date
Dillon DuPont
ddfb53e79f Migrate browser interface into computer SDK 2025-12-03 08:17:52 -08:00
r33drichards
7d3d826672 fix linting and typechecking github action (#631)
* Sort imports alphabetically in agent loops __init__.py

Fix isort check failure by alphabetically sorting both the import list
and __all__ list to match the expected order.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

* run on all prs

* Fix black formatting issues in responses.py and provider.py

Apply black formatting to fix lint check failures:
- Reformat conditional expression in responses.py for better readability
- Break long assert line in provider.py to comply with line length limits

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

* Fix prettier formatting issues in markdown and TypeScript files

Apply prettier formatting to blog posts, documentation, and CLI code:
- Format blog markdown files for consistent styling
- Format TypeScript CLI source files
- Format documentation MDX files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-01 16:31:20 -05:00
Adam
3e2798f835 Python Compatibility (3.14) Note 2025-12-01 13:00:40 -05:00
github-actions[bot]
d4a791c5d1 Bump cua-computer to v0.4.17 2025-11-19 18:56:05 +00:00
github-actions[bot]
dcff4a9c53 Bump cua-computer to v0.4.16 2025-11-19 18:52:53 +00:00
github-actions[bot]
4c557cc252 Bump cua-computer to v0.4.15 2025-11-19 18:44:00 +00:00
github-actions[bot]
00298f23ab Bump cua-computer to v0.4.14 2025-11-19 18:39:25 +00:00
github-actions[bot]
edca61f79c Bump cua-computer to v0.4.13 2025-11-19 18:38:53 +00:00
f-trycua
73c0f3e52e Add automatic CUA_API_KEY environment variable support for Computer and CloudProvider
Previously, users had to explicitly read the CUA_API_KEY environment variable
and pass it to the Computer/CloudProvider constructor. This change makes the
API key parameter optional and automatically reads from the CUA_API_KEY
environment variable if not provided.

Changes:
- CloudProvider.__init__: Made api_key parameter optional, reads from CUA_API_KEY env var
- Computer.__init__: Added fallback to CUA_API_KEY env var for api_key parameter
- Updated documentation examples to show simplified usage without explicit api_key
- Updated cloud_api_examples.py to demonstrate the new simpler pattern

This provides a cleaner API while maintaining backward compatibility with
explicit api_key parameter passing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 19:35:32 +01:00
Adam
e98f71dc57 fix: correct computer typing helper in docs
Replace the outdated `interface.type()` calls in the Python docs with
`interface.type_text()` to match the current Computer SDK API.
2025-11-15 00:59:16 -05:00
github-actions[bot]
e7bb78d7dd Bump cua-computer to v0.4.12 2025-11-11 22:25:19 +00:00
Dillon DuPont
ff957a7d04 run uv run pre-commit run --all-files 2025-11-11 17:18:18 -05:00
Dillon DuPont
679eafe7c7 update computer SDK and computer-server SDK to support the new .sandbox.cua.ai domain 2025-11-11 12:44:24 -05:00
Sarina Li
7c727339a2 fix backlinks for seo 2025-10-31 16:18:21 -04:00
James Murdza
097f6f92af Format #423 with uv run pre-commit run --all-files 2025-10-31 10:14:18 -07:00
Jagjeevan Kashid
c3d2ff530c Merge branch 'main' into jagjeevan/299 2025-10-30 14:36:40 +05:30
Aditya Bavadekar
c2a695d466 fix: sanitize shell input
- Replaced unsafe string concatenation with `shlex.join()` for POSIX systems, `mslex.join()` for Windows systems.
- Add utility function `safe_join`.
- Modified `pyproject.toml` to include `mslex` dependency for Windows environments.
2025-10-30 08:43:19 +05:30
github-actions[bot]
451ece2457 Bump cua-computer to v0.4.11 2025-10-29 20:26:12 +00:00
ddupont
91f43b9e32 Change bump version from 0.4.7 to 0.4.10 2025-10-29 16:25:44 -04:00
Dillon DuPont
f0da8a129e Merge branch 'main' into feat/add-desktop-commands 2025-10-29 16:15:54 -04:00
Dillon DuPont
2c372e6846 Include alias in base.py 2025-10-29 15:59:21 -04:00
Dillon DuPont
3b04e23721 Add window management to base.py 2025-10-29 15:57:41 -04:00
James Murdza
e3ab4fe7b0 Format tests with uv run pre-commit run --all-files 2025-10-28 17:03:26 -07:00
James Murdza
3ee5206baf Merge pull request #491 from AceAtDev/CI/CDtests
Add test infrastructure with CI/CD #478
2025-10-28 17:00:05 -07:00
Elshoubky M
59016608da fixed ImportPathMismatchError caused by init files 2025-10-25 01:54:04 -04:00
Dillon DuPont
4823256fde Add window frame cmds 2025-10-24 16:56:39 -07:00
Dillon DuPont
83d8d7e82b Add window management commands 2025-10-24 16:40:29 -07:00
Dillon DuPont
fb174d6aa4 Add get_desktop_environment, set_wallpaper 2025-10-24 16:27:58 -07:00
Dillon DuPont
efb52bdc77 Delete ephemeral containers when stopped 2025-10-24 15:02:00 -07:00
Dillon DuPont
b1eae0f2cf use dict for display 2025-10-24 13:56:31 -07:00
Dillon DuPont
9cb2c6c664 Forward display resolution to Docker based sandboxes 2025-10-24 13:52:14 -07:00
Elshoubky M
05ba209808 fixing CI/CD missing and failing tests 2025-10-23 22:36:11 -04:00
Aditya Bavadekar
a38219d3ef fix(python): standardize Python version across all packages
- Updated all `libs/python/*/pyproject.toml` files to require Python >=3.12
- Synchronized root `pyproject.toml` and regenerated `uv.lock`
2025-10-23 03:15:21 +05:30
James Murdza
ddc5a5de91 Format codebase with uv run pre-commit run --all-files 2025-10-22 11:35:31 -07:00
Aditya Bavadekar
c33517a42d chore: consolidate Ruff configs, add prettier dependancy and updated documentation usage
- Remove per-package Black, Ruff, and MyPy settings in individual pyproject.toml files
- Centralize Ruff configuration in root pyproject.toml under [tool.ruff.lint] with selected ignores
- Add Prettier setup and usage instructions to Development.md
- Include pnpm install instructions for JS/TS dependencies
- Ensure pre-commit hooks enforce Python and JS/TS formatting consistently
2025-10-22 11:10:21 -07:00
Elshoubky M
451c9c2c01 Add test infrastructure with CI/CD
- Add separate test directories for all 7 packages (core, agent, computer, computer-server, mcp-server, pylume, som)
- Create 30+ unit tests with mocks for external dependencies (liteLLM, PostHog, Computer)
- Add conftest.py fixtures for each package to enable isolated testing
- Implement GitHub Actions CI workflow with matrix strategy to test each package independently
- Add TESTING.md with comprehensive testing guide and architecture documentation
- Follow SOLID principles: SRP, Vertical Slice Architecture, and Testability as Design Signal

Note:
- No API keys required for unit tests
2025-10-21 18:58:40 -04:00
James Murdza
503aa0a01f Merge pull request #467 from trycua/fix/docker-nits
Add multiplatform build docs for Docker images, fix incorrect image name
2025-10-16 14:37:13 -07:00
Dillon DuPont
b9e73fc622 rename cua-docker-xfce to cua-xfce 2025-10-15 15:38:55 -04:00
Dillon DuPont
d30c3d2a41 Fix unicode typing on windows and linux 2025-10-15 15:27:11 -04:00
James Murdza
a25c2dc13c Merge pull request #463 from trycua/b2v
Add bump2version configuration for all Python packages
2025-10-14 17:13:27 -07:00
Dillon DuPont
99b502b00d Bump computer to 0.4.10 2025-10-14 14:48:46 -04:00
ddupont
c3de071bd5 Merge pull request #452 from trycua/feat/extended_cloud_api
Add Cloud VM Management API
2025-10-14 11:31:18 -04:00
Dillon DuPont
86a339d1cd add restart_vm to all providers 2025-10-14 11:30:40 -04:00
f-trycua
88638ccdac Merge branch 'main' into b2v 2025-10-13 07:06:13 +02:00
f-trycua
bf57eee78b Bump 0.4.8 2025-10-12 15:13:08 -07:00
f-trycua
3053270f74 Add XFCE provider 2025-10-11 11:03:50 -07:00
Your Name
3d50e3cefb update pyproj 2025-10-10 22:40:36 +00:00
Your Name
424b8762c4 bump versions 2025-10-10 22:36:07 +00:00
Your Name
0af7ea394f add tag prefix 2025-10-10 21:51:18 +00:00
Your Name
2ff4030709 tag 2025-10-10 21:33:45 +00:00