Commit Graph

88 Commits

Author SHA1 Message Date
Nick Sweeting
daa430435d working cli 2025-08-06 06:23:45 -07:00
Nick Sweeting
e8bd1bf3fd cleanup cdp_client access patterns using property on session 2025-08-06 04:52:19 -07:00
Nick Sweeting
328a4b5be4 Merge branch 'feature/new-dom-extraction-layer' into local-remote-split 2025-08-05 03:12:48 -07:00
Nick Sweeting
659c5145f6 more event-driven refactoring 2025-08-01 02:42:01 -07:00
Mert Unsal
a5bc83f766 Revert "add init to make things library" 2025-07-20 23:57:53 +02:00
mertunsall
f901a6931f add init to make things library 2025-07-20 23:55:25 +02:00
Magnus Müller
061e24b976 Merge remote-tracking branch 'origin/main' into extraction-magnus-revert-with-main 2025-07-14 18:35:21 +02:00
Gregor Žunič
7bf17064f6 started migration to pure cdp 2025-07-11 14:19:22 +02:00
Magnus Müller
6407c10918 laminar-ignore input output 2025-07-09 22:27:22 +02:00
Nick Sweeting
b2a84b2296 fix tests and other improvements 2025-07-08 02:32:03 -07:00
Magnus Müller
ab36dd8feb Comment out error handling and logging in Registry class to reduce verbosity during action retries. 2025-07-07 13:39:21 +02:00
Magnus Müller
ef36632ccf Refactor observability imports to maintain consistency across modules 2025-07-05 23:12:05 +02:00
Magnus Müller
a4c9b992ba Add observability module for browser-use with optional lmnr integration and debug mode support 2025-07-05 23:08:00 +02:00
Magnus Müller
af0487ee38 Observe execute_action with lmnr 2025-07-05 17:35:47 +02:00
Magnus Müller
680b7e7346 refactor: enhance error handling in action execution
- Updated retry logic to handle page errors more effectively by capturing the current page context before retrying the action.
- Improved error messaging to provide clearer feedback when actions fail due to page navigation or closure.
2025-07-04 17:10:59 +02:00
Magnus Müller
db67c1e4ff Refactor error handling in Registry class
- Commented out retry logic for page errors to simplify error handling.
- Maintained the raise of the original exception for clarity in error reporting.
2025-07-04 00:18:04 +02:00
Magnus Müller
6d28b23f6a Enhance error handling in action execution
- Reintroduced action retry mechanism to handle transient errors during action execution.
- Added logging for failures and implemented a retry attempt with context preservation for better resilience.
2025-07-03 22:12:27 +02:00
Magnus Müller
f20022b6c7 Remove action retry 2025-07-03 21:05:38 +02:00
Magnus Müller
54736224eb Remove unused controller telemetry functionality
- Remove ControllerRegisteredFunctionsTelemetryEvent and RegisteredFunction classes
- Remove telemetry capture call from controller registry service
- Clean up unused imports in telemetry module
- Simplify telemetry __all__ exports

This removes dead code that was capturing registered function telemetry
data but wasn't being used anywhere in the application.
2025-06-26 15:06:17 +02:00
Gregor Žunič
1e93ca5a9f fixed UnionType type error 2025-06-25 11:13:42 +02:00
Gregor Žunič
cda43e9573 fixed types 2025-06-25 11:06:38 +02:00
Gregor Žunič
5d55435491 fixed controller registry types 2025-06-25 10:52:38 +02:00
Magnus Müller
7cf9667127 Enhance ActionModelUnion to maintain interface and delegate methods
Refactors the ActionModelUnion class to ensure it properly maintains the ActionModel interface by delegating methods like get_index, set_index, and model_dump to the underlying action model. This improves the usability and consistency of the union type in handling action models.
2025-06-24 23:21:18 +02:00
Magnus Müller
f138b522cc Fix output model for openai 2025-06-24 23:08:06 +02:00
Gregor Žunič
7a10ae0c96 Squashed commit langchain to native 2025-06-24 12:26:55 +02:00
Nick Sweeting
01b9580743 show full error text, check for missing special args, dont check browser tabs for connection status 2025-06-23 15:03:02 -07:00
Nick Sweeting
b67be37490 fix type hint errors 2025-06-21 04:35:24 -07:00
Magnus Müller
ad446f5769 Merge branch 'main' into mert/new_everything 2025-06-19 23:45:41 +02:00
Nick Sweeting
c36ca35984 improve logging of errors 2025-06-19 06:40:14 -07:00
mertunsall
76ef41da45 Merge branch 'main' into mert/new_everything 2025-06-19 14:11:56 +02:00
Nick Sweeting
60f2abd206 add retry for actions that fail due to page navigation mid-action 2025-06-19 04:15:04 -07:00
Nick Sweeting
9bf0b10b31 throw explicit error for missing page 2025-06-19 02:27:38 -07:00
Magnus Müller
0b6ebea431 Merge branch 'main' into mert/new_everything 2025-06-19 09:49:43 +02:00
yasithdev
8ea4b4c71a centralize playwright/patchwright imports, and update typing/checks to reduce lint errors 2025-06-16 22:57:20 -04:00
mertunsall
bcdc522ade Nuke it all 2025-05-31 17:30:21 +02:00
Nick Sweeting
4ffd6bedc0 handle mixed order action params 2025-05-25 06:14:05 -07:00
Nick Sweeting
10ec1e8841 fix all actions to use kwargs at callsites 2025-05-25 02:58:17 -07:00
Nick Sweeting
d2ac59e211 refactor action registration to consistently require params or args and kwargs 2025-05-25 01:38:18 -07:00
Nick Sweeting
75f14c4784 checkpoint 2025-05-24 20:41:44 -07:00
Nick Sweeting
3f614ab9df simplify _replace_secrets func to take page obj directly 2025-05-24 02:20:52 -07:00
Nick Sweeting
e0a02faa7f avoid strange hacky check for first param type by variable name prefix 2025-05-24 02:19:44 -07:00
Nick Sweeting
6c05043e10 better comments 2025-05-23 18:23:18 -07:00
Nick Sweeting
6a19f29082 move SpecialActionParameters into views file 2025-05-23 18:21:19 -07:00
Nick Sweeting
f6ca4e13a3 massively improve logging experience and add loading animation on browser startup 2025-05-23 00:48:52 -07:00
Nick Sweeting
6b8360c475 better logging 2025-05-22 23:17:21 -07:00
Nick Sweeting
651db76040 fix multiple browser_session arg error 2025-05-22 07:01:51 -07:00
Nick Sweeting
5cbb48a718 tweak controller action param setup to avoid double browser_session arg 2025-05-22 06:55:47 -07:00
Nick Sweeting
187641f695 add support for nested sensitive_data 2025-05-22 04:58:23 -07:00
Nick Sweeting
b92fffae2e fix google sheets example 2025-05-22 02:30:43 -07:00
Nick Sweeting
cb4a5145f2 fix two bugs in BrowserSession and controller action passing 2025-05-22 02:30:41 -07:00