browse 0.9.5 → 0.9.6
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 +9 -0
- package/bin/run.js +27 -1
- package/dist/commands/cloud/sessions/logs.js +31 -4
- package/dist/lib/cloud/reduce-logs.js +107 -0
- package/dist/lib/driver/daemon/client.js +41 -0
- package/oclif.manifest.json +484 -467
- package/package.json +2 -2
- package/skills/browse/SKILL.md +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browse",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "Unified Browserbase CLI for browser automation and cloud APIs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"tsx": "^4.20.6",
|
|
102
102
|
"ws": "^8.18.3",
|
|
103
103
|
"zod": "^4.2.1",
|
|
104
|
-
"@browserbasehq/stagehand": "3.
|
|
104
|
+
"@browserbasehq/stagehand": "3.7.1"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@eslint/js": "^10.0.1",
|
package/skills/browse/SKILL.md
CHANGED
|
@@ -86,6 +86,8 @@ Remote browser and cloud API commands require:
|
|
|
86
86
|
export BROWSERBASE_API_KEY=...
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
+
The CLI forwards `BROWSERBASE_API_KEY` from the caller on every browser command, even when the daemon is already running. If a remote command first fails because the key was missing, set or export the key and retry the command; do not restart the daemon just to refresh the environment.
|
|
90
|
+
|
|
89
91
|
## Browser Automation Workflow
|
|
90
92
|
|
|
91
93
|
Start by opening the page, then inspect state, act, and verify.
|
|
@@ -200,6 +202,8 @@ browse stop --force
|
|
|
200
202
|
|
|
201
203
|
Use `browse doctor` before debugging a broken browser session. Use `browse doctor --json` when another agent or CI needs structured diagnostics.
|
|
202
204
|
|
|
205
|
+
`browse stop` is idempotent. If no daemon is running, `{ "stopped": false }` with exit code `0` is successful cleanup, not an error.
|
|
206
|
+
|
|
203
207
|
If a page command reports that no active page is available, inspect and recover the named session:
|
|
204
208
|
|
|
205
209
|
```bash
|
|
@@ -360,6 +364,7 @@ JSON output includes every match with full descriptions and ignores `--limit`; `
|
|
|
360
364
|
## Troubleshooting
|
|
361
365
|
|
|
362
366
|
- "No active page": run `browse status --session <name>`, then `browse open <url> --session <name>` or `browse tab new <url> --session <name>`; use `browse stop --force` if the daemon is stale.
|
|
367
|
+
- "Driver daemon ... is not running": run the exact `browse open` command printed by the error. Browser commands start the daemon automatically.
|
|
363
368
|
- Chrome not found: use `--remote` with Browserbase credentials, install Chrome, or attach with `--cdp`.
|
|
364
369
|
- Action fails: run `browse snapshot` and use a visible ref from the current page state.
|
|
365
370
|
- 401 Unauthorized on `open`, `get`, or other driver commands: a set `BROWSERBASE_API_KEY` makes `browse` default to remote mode. Fix the key at https://browserbase.com/settings, unset it, or pass `--local` to run a managed local browser (no key needed).
|