Commit Graph

108 Commits

Author SHA1 Message Date
Saurav Panda d7b36c7dc5 Fix lint and skill sync checks 2026-08-26 11:27:38 -07:00
reformedot 2bfb3497d9 refactor: improve CDP session handling in cua.py and test_frame_hierarchy.py
- Updated the method of obtaining CDP sessions to utilize the public API, enhancing error handling during session retrieval.
- Added exception handling to ensure graceful failure when sessions cannot be created or retrieved, improving robustness in both the main functionality and tests.
2025-11-12 20:35:15 -08:00
reformedot c99e1bb41f refactor: improve type checking and linting script
- Updated `pyproject.toml` to enhance type checking configuration by refining the `exclude` list and adding an `include` section for better clarity.
- Modified `lint.sh` to run tools directly from the virtual environment, improving execution reliability and avoiding permission errors.
- Enhanced comments in `lint.sh` for better understanding of script functionality and usage.
2025-11-11 12:00:20 -08:00
Cyrus 9343371cd7 Merge branch 'main' into anyio-path 2025-09-22 20:19:34 -06:00
Magnus Müller 97a1ef1aa4 Update search google 2025-09-22 18:53:11 -07:00
Magnus Müller daee190e75 Linter 2025-09-22 18:25:19 -07:00
Mert Unsal 3034292e3c Merge branch 'main' into feature/parallel-agents-truly-clean 2025-09-23 03:08:04 +02:00
Gregor Žunič 504f8cad09 migrated Target to Page 2025-09-19 10:27:00 -07:00
abelsummation 54dae0f15a Add parallel multi-agent example
- Demonstrates parallel browser agent execution with isolated browser instances
- Each agent gets its own browser session with custom temp directory
- Proper browser session management and cleanup
- Configurable task at top of file for easy testing
- Shows how to run multiple agents simultaneously on different subtasks
2025-09-13 19:32:46 +04:00
Cyrus 9d7dfd7738 replace aiofiles with anyio.Path 2025-09-08 11:37:34 -06:00
Magnus Müller cd239317d0 Update 2FA example to reflect new sensitive data key
- Changed the key in sensitive_data from '2fa_code' to 'bu_2fa_code' for improved clarity.
- Updated user instructions to align with the new key terminology.

These modifications enhance the consistency and clarity of the 2FA implementation.
2025-09-06 08:38:54 -07:00
Magnus Müller bf385a3f34 Update 2FA implementation to standardize sensitive data references
- Changed the key in sensitive_data from 'otp_secret' to '2fa_code' for consistency across files.
- Updated instructions in the 2FA example to reflect the new key and improve clarity on user input.

These changes enhance the clarity and maintainability of the 2FA implementation.
2025-09-06 08:38:14 -07:00
Magnus Müller fce87aa7b7 Refactor 2FA example to enhance clarity and maintainability
- Removed unnecessary logging setup to streamline the code.
- Simplified the definition of sensitive_data by eliminating type annotations.
- Updated comments for better guidance on using the 2FA example.

These changes improve the readability and maintainability of the 2FA implementation.
2025-09-06 07:57:25 -07:00
Magnus Müller 719761313c Refactor sensitive data handling across examples
- Updated sensitive_data definitions to remove type annotations for clarity.
- Simplified the structure of sensitive_data in multiple files, ensuring consistency in credential representation.
- Enhanced comments to guide users on the proper use of sensitive data in the context of 2FA and domain-specific credentials.

These changes improve the readability and maintainability of the code while ensuring secure handling of sensitive information.
2025-09-06 07:51:52 -07:00
Magnus Müller dc1eb696b3 remove lmnr from examples 2025-09-03 18:11:45 -07:00
Magnus Müller 14229cd6e3 Enhance example scripts and improve test handling
- Updated `simple.py` to initialize `Browser` and `Tools` instances, improving agent configuration.
- Fixed action decorator in `notification.py` by removing trailing space for consistency.
- Adjusted test behavior in `test_browser_session_tab_management.py` to skip tests on initial tab count issues, improving test reliability.
- Stopped server in `test_browser_watchdog_downloads_upload_full_circle.py` to ensure proper cleanup before skipping tests.

These changes aim to enhance clarity and maintainability across examples and tests.
2025-08-27 01:04:14 -07:00
Magnus Müller caa0e7ef1b Rename controller to tools instances 2025-08-26 11:30:39 -07:00
Magnus Müller e89e78842c Rename controller file to tools 2025-08-26 11:06:28 -07:00
Magnus Müller 2a83442f17 Rename Controller to Tools 2025-08-26 11:04:16 -07:00
Magnus Müller fa977bccb6 Fix type checker 2025-08-19 01:36:23 -07:00
Magnus Müller 1c8e78ac77 simlify ChatOpenAI import 2025-08-18 19:45:02 -07:00
Magnus Müller 7ba8ba5958 replace gpt-4.1 with mini 2025-08-18 18:59:56 -07:00
Magnus Müller 1d34d2ed22 custom-functions examples 2025-08-18 18:51:58 -07:00
Nick Sweeting a1f1330aa6 linter fixes 2025-08-14 14:32:32 -07:00
Magnus Müller 9f398dab4f examples/file-upload-task-change 2025-08-12 21:34:08 -07:00
Nick Sweeting 7a0889cf20 formatting 2025-08-12 04:14:53 -07:00
Nick Sweeting d1e569eb31 raise BrowserError exceptions instead of returning success=False 2025-08-12 04:14:53 -07:00
Nick Sweeting 20b4b2a684 feature flags for iframes and recent_events, split security and nav actions 2025-08-08 19:13:10 -07:00
Nick Sweeting 557067b8e9 remove expect_download param from click action 2025-08-08 17:42:46 -07:00
Nick Sweeting 3bb8fb0fee improve focus tracking 2025-08-08 07:15:04 -07:00
Nick Sweeting 032f314a41 Merge branch 'main' into local-remote-split 2025-08-04 19:44:05 -07:00
mertunsall 9bd0036223 separate agent history and state 2025-08-02 15:48:49 +01:00
Nick Sweeting 659c5145f6 more event-driven refactoring 2025-08-01 02:42:01 -07:00
Cursor Agent fcfd80bbca Update import paths for Playwright types in custom functions
Co-authored-by: mailmertunsal <mailmertunsal@gmail.com>
2025-07-18 09:42:52 +00:00
Mert Unsal a06e04cabe Merge branch 'main' into mert/cua_fallback_example 2025-07-13 22:27:44 +02:00
Nick Sweeting d958260c42 tweak test fixture scope 2025-07-11 00:44:10 -07:00
mertunsall 82d7052aa4 add openai cua fallback as exmaple 2025-07-08 23:29:41 +02:00
mertunsall 220f0bc994 update models to gpt-4.1 2025-07-05 10:32:49 +02:00
mertunsall 74dffc96dc fix 2025-06-29 21:58:33 +02:00
mertunsall e9b8cfb9f7 remove the default save_pdf option 2025-06-29 21:51:56 +02:00
Gregor Žunič ea00a9ebee removed drag and drop from default controller, moved to example 2025-06-27 23:20:34 +02:00
Gregor Žunič 7a10ae0c96 Squashed commit langchain to native 2025-06-24 12:26:55 +02:00
mertunsall 15d25f4b61 fix click element upload_index problem
update file upload example
2025-06-23 21:46:17 +02:00
Nick Sweeting aad78d93ab more type hint fixes 2025-06-21 05:44:49 -07:00
Nick Sweeting 6c695d0a42 more lint and hint fixes 2025-06-21 05:39:17 -07:00
Nick Sweeting f878b8f07c type hint fixes 2025-06-21 05:16:02 -07:00
Nick Sweeting 80298332db Merge branch 'main' into mistral_example 2025-06-21 02:19:58 -07:00
Magnus Müller 90ae26316e Refactor ActionResult to standardize the inclusion of extracted content, replacing update_only_read_state with include_extracted_content_only_once across multiple services. This change enhances clarity in memory management and ensures consistent handling of extracted content. 2025-06-19 23:18:30 +02:00
Magnus Müller ce880e5e35 Refactor ActionResult handling across multiple services to standardize the use of long_term_memory, replacing memory references. Update related logic to ensure extracted content is consistently managed for improved clarity and error handling. 2025-06-19 23:11:55 +02:00
Magnus Müller 0b6ebea431 Merge branch 'main' into mert/new_everything 2025-06-19 09:49:43 +02:00