Commit Graph

103 Commits

Author SHA1 Message Date
synacktra.work@gmail.com
efcb370a55 test(helpers): add comprehensive teists for dependency collection
- Test closure variable detection (helpers, constants, imports)
- Test nested dependency resolution and ordering
- Test class definitions and decorator removal
- Test import style preservation
- Test caching mechanism
2025-12-17 01:12:38 +05:30
synacktra.work@gmail.com
e7be69d5cd refactor(computer): update venv_exec to use generate source code utility 2025-12-17 01:09:46 +05:30
synacktra.work@gmail.com
b8a6a42baa feat(helpers): add automatic dependency resolution for @sandboxed decorator
- Implement AST-based dependency analysis with closure support
- Automatically detect and include helper functions, imports, and constants
- Handle nested dependencies recursively
- Add caching with function object as key
2025-12-17 01:07:40 +05:30
github-actions[bot]
e661adca91 Bump cua-computer to v0.4.18 2025-12-09 21:30:13 +00:00
Dillon DuPont
7ee7ecd3b3 Run uv run pre-commit run --all-files 2025-12-09 13:24:33 -08:00
Dillon DuPont
ed9a0159ec Merge branch 'main' into feat/cua-bench-submodules 2025-12-09 15:25:46 -05:00
Dillon DuPont
378ce68c5b Merge branch 'main' into feat/cua-bench-submodules 2025-12-09 15:22:15 -05:00
Dillon DuPont
8f297eac3c Migrate browser interface into computer SDK 2025-12-03 09:00:20 -08:00
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
Dillon DuPont
a397b5e4b1 pass api_port to docker provider 2025-11-13 09:47:33 -05:00
Dillon DuPont
1bc5a042ad improve timeout message 2025-11-12 22:34:12 -05:00
Dillon DuPont
441937c3b7 renamed port to provider_port, added api_port and noVNC_port parameters 2025-11-12 22:31:45 -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
Dillon DuPont
5f58ede106 fix python rpc with multiline input args 2025-11-01 20:50:58 -04: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