@divebell/agent-browser 0.33.2-divebell.2 → 0.33.2-divebell.4
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 +2 -1
- package/bin/agent-browser-darwin-arm64 +0 -0
- package/bin/agent-browser-darwin-x64 +0 -0
- package/bin/agent-browser-linux-arm64 +0 -0
- package/bin/agent-browser-linux-musl-arm64 +0 -0
- package/bin/agent-browser-linux-musl-x64 +0 -0
- package/bin/agent-browser-linux-x64 +0 -0
- package/bin/agent-browser-win32-x64.exe +0 -0
- package/bin/agent-browser.js +5 -6
- package/package.json +2 -4
- package/skill-data/core/references/session-management.md +1 -1
package/README.md
CHANGED
|
@@ -77,6 +77,7 @@ Detects your installation method (npm, Homebrew, or Cargo) and runs the appropri
|
|
|
77
77
|
### Requirements
|
|
78
78
|
|
|
79
79
|
- **Chrome** - Run `agent-browser install` to download Chrome from [Chrome for Testing](https://developer.chrome.com/blog/chrome-for-testing/) (Google's official automation channel). Existing Chrome, Brave, Playwright, and Puppeteer installations are detected automatically. No Playwright or Node.js required for the daemon.
|
|
80
|
+
- **Node.js 20.19+** - Required when installing or invoking the npm package wrapper. The native daemon itself does not require Node.js.
|
|
80
81
|
- **Node.js 24+ and pnpm 11+** - Only needed when building from source.
|
|
81
82
|
- **Rust** - Only needed when building from source (see From Source above).
|
|
82
83
|
|
|
@@ -647,7 +648,7 @@ agent-browser --session "$SESSION" --restore --state ./my-auth.json open https:/
|
|
|
647
648
|
# From now on, --session "$SESSION" --restore auto-saves/restores this state
|
|
648
649
|
```
|
|
649
650
|
|
|
650
|
-
State files preserve HTTP-only and partitioned cookie metadata. Cookies are collected for the whole browser session. To also collect localStorage from an authentication origin that the active agent-browser session did not visit, repeat `--include-origin`:
|
|
651
|
+
State files preserve HTTP-only and partitioned cookie metadata. Cookies are collected for the whole browser session. State replay restores localStorage and sessionStorage through intercepted blank responses, so saved origins are not contacted before the requested navigation. To also collect localStorage from an authentication origin that the active agent-browser session did not visit, repeat `--include-origin`:
|
|
651
652
|
|
|
652
653
|
```bash
|
|
653
654
|
agent-browser --auto-connect state save ./my-auth.json \
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/agent-browser.js
CHANGED
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Cross-platform CLI wrapper for agent-browser
|
|
5
5
|
*
|
|
6
|
-
* This wrapper enables npx support on Windows where shell scripts don't work
|
|
7
|
-
*
|
|
8
|
-
* binary directly (zero overhead).
|
|
6
|
+
* This wrapper enables npx support on Windows where shell scripts don't work
|
|
7
|
+
* and selects the bundled native binary for the current platform.
|
|
9
8
|
*/
|
|
10
9
|
|
|
11
10
|
import { spawn, execSync } from 'child_process';
|
|
@@ -80,12 +79,12 @@ function main() {
|
|
|
80
79
|
console.error(`Expected: ${binaryPath}`);
|
|
81
80
|
console.error('');
|
|
82
81
|
console.error('Run "npm run build:native" to build for your platform,');
|
|
83
|
-
console.error('or reinstall the package to
|
|
82
|
+
console.error('or reinstall the package to restore its bundled binaries.');
|
|
84
83
|
process.exit(1);
|
|
85
84
|
}
|
|
86
85
|
|
|
87
|
-
// Ensure binary is executable
|
|
88
|
-
//
|
|
86
|
+
// Ensure the bundled binary is executable even when a package manager does
|
|
87
|
+
// not preserve its mode.
|
|
89
88
|
if (platform() !== 'win32') {
|
|
90
89
|
try {
|
|
91
90
|
accessSync(binaryPath, constants.X_OK);
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@divebell/agent-browser",
|
|
3
|
-
"version": "0.33.2-divebell.
|
|
3
|
+
"version": "0.33.2-divebell.4",
|
|
4
4
|
"description": "Browser automation CLI for AI agents with Divebell memory diagnostics",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
8
|
-
"pnpm": ">=11.0.0"
|
|
7
|
+
"node": ">=20.19.0"
|
|
9
8
|
},
|
|
10
9
|
"files": [
|
|
11
10
|
"bin",
|
|
@@ -55,7 +54,6 @@
|
|
|
55
54
|
"build:all-platforms": "npm run version:sync && (npm run build:linux & npm run build:windows & wait) && npm run build:macos",
|
|
56
55
|
"build:docker": "docker build --platform linux/amd64 -t agent-browser-builder -f docker/Dockerfile.build .",
|
|
57
56
|
"release": "npm run version:sync && npm run build:all-platforms && npm publish",
|
|
58
|
-
"postinstall": "node scripts/postinstall.js",
|
|
59
57
|
"build:dashboard": "cd packages/dashboard && pnpm build"
|
|
60
58
|
}
|
|
61
59
|
}
|
|
@@ -73,7 +73,7 @@ agent-browser --session "$SESSION" session info --json
|
|
|
73
73
|
|
|
74
74
|
### Manual State Files
|
|
75
75
|
|
|
76
|
-
Use `state save`, `state load`, and `--state <path>` when you need an explicit portable JSON file. Repeat `state save --include-origin <url>` when a known SSO origin has localStorage that the active session did not visit. Do not make agents construct paths under `~/.agent-browser/sessions/`; prefer `--restore` for reusable agent sessions.
|
|
76
|
+
Use `state save`, `state load`, and `--state <path>` when you need an explicit portable JSON file. State replay restores localStorage and sessionStorage through intercepted blank responses, so saved origins are not contacted before the requested navigation. Repeat `state save --include-origin <url>` when a known SSO origin has localStorage that the active session did not visit. Do not make agents construct paths under `~/.agent-browser/sessions/`; prefer `--restore` for reusable agent sessions.
|
|
77
77
|
|
|
78
78
|
## Common Patterns
|
|
79
79
|
|