@divebell/agent-browser 0.33.2-divebell.6 → 0.33.2-divebell.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -111,7 +111,7 @@ agent-browser find role button click --name "Submit"
111
111
 
112
112
  ```bash
113
113
  agent-browser open # Launch browser (no navigation); stays on about:blank
114
- agent-browser open <url> # Launch + navigate to URL (aliases: goto, navigate)
114
+ agent-browser open <url> [--timeout <ms>] # Launch + navigate to URL (aliases: goto, navigate)
115
115
  agent-browser read [url] # Fetch agent-readable text, or read rendered active-tab DOM
116
116
  agent-browser click <sel> # Click element (--new-tab to open in new tab)
117
117
  agent-browser dblclick <sel> # Double-click element
@@ -513,6 +513,7 @@ Heap snapshots and allocation profiles can contain page text, application data,
513
513
  ### Navigation
514
514
 
515
515
  ```bash
516
+ agent-browser open <url> --timeout 40000 # Wait up to 40s for the page load lifecycle event
516
517
  agent-browser back # Go back
517
518
  agent-browser forward # Go forward
518
519
  agent-browser reload # Reload page
@@ -1200,7 +1201,9 @@ Auto-discovered config files that are missing are silently ignored. If `--config
1200
1201
 
1201
1202
  ## Default Timeout
1202
1203
 
1203
- The default timeout for standard operations (clicks, waits, fills, etc.) is 25 seconds. This is intentionally below the CLI's 30-second IPC read timeout so that the daemon returns a proper error instead of the CLI timing out with EAGAIN.
1204
+ The default timeout for standard operations (clicks, waits, fills, etc.) is 25 seconds. This is intentionally below the CLI's 30-second IPC read timeout so that the daemon returns a proper error instead of the CLI timing out with EAGAIN. Navigation commands (`open`, `goto`, and `navigate`) wait up to 60 seconds by default and receive a matching command transport budget.
1205
+
1206
+ Pass `--timeout <ms>` to `open`, `goto`, or `navigate` to override the navigation lifecycle timeout for one command. `AGENT_BROWSER_DEFAULT_TIMEOUT` also overrides the navigation default. The effective navigation timeout is forwarded to the command transport with an additional response margin.
1204
1207
 
1205
1208
  Override the default timeout via environment variable:
1206
1209
 
@@ -1209,7 +1212,7 @@ Override the default timeout via environment variable:
1209
1212
  export AGENT_BROWSER_DEFAULT_TIMEOUT=45000
1210
1213
  ```
1211
1214
 
1212
- > **Note:** Setting this above 30000 (30s) may cause EAGAIN errors on slow operations because the CLI's read timeout will expire before the daemon responds. The CLI retries transient errors automatically, but response times will increase.
1215
+ > **Note:** Navigation commands receive a transport budget that matches their effective timeout. For other slow operations, setting the environment variable above 30000 (30s) may still cause EAGAIN because their CLI read timeout can expire before the daemon responds.
1213
1216
 
1214
1217
  | Variable | Description |
1215
1218
  | ------------------------------- | ---------------------------------------- |
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divebell/agent-browser",
3
- "version": "0.33.2-divebell.6",
3
+ "version": "0.33.2-divebell.7",
4
4
  "description": "Browser automation CLI for AI agents with Divebell memory diagnostics",
5
5
  "type": "module",
6
6
  "engines": {
@@ -8,7 +8,10 @@ Complete reference for all agent-browser commands. For quick start and common pa
8
8
  agent-browser open # Launch browser (no navigation); stays on about:blank.
9
9
  # Pair with `network route`, `cookies set --curl`, or
10
10
  # `addinitscript` to stage state before the first navigation.
11
- agent-browser open <url> # Launch + navigate (aliases: goto, navigate)
11
+ agent-browser open <url> [--timeout <ms>]
12
+ # Launch + navigate (aliases: goto, navigate)
13
+ # Waits for the page load lifecycle event for 60s by default;
14
+ # --timeout overrides that navigation wait for one command
12
15
  # Supports: https://, http://, file://, about:, data://
13
16
  # Auto-prepends https:// if no protocol given
14
17
  agent-browser read [url] # Fetch agent-readable text, or read rendered active-tab DOM