@divebell/agent-browser 0.33.2-divebell.2 → 0.33.2-divebell.3
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 +1 -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 +1 -2
- package/skill-data/core/references/session-management.md +1 -1
package/README.md
CHANGED
|
@@ -647,7 +647,7 @@ agent-browser --session "$SESSION" --restore --state ./my-auth.json open https:/
|
|
|
647
647
|
# From now on, --session "$SESSION" --restore auto-saves/restores this state
|
|
648
648
|
```
|
|
649
649
|
|
|
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`:
|
|
650
|
+
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
651
|
|
|
652
652
|
```bash
|
|
653
653
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@divebell/agent-browser",
|
|
3
|
-
"version": "0.33.2-divebell.
|
|
3
|
+
"version": "0.33.2-divebell.3",
|
|
4
4
|
"description": "Browser automation CLI for AI agents with Divebell memory diagnostics",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
"build:all-platforms": "npm run version:sync && (npm run build:linux & npm run build:windows & wait) && npm run build:macos",
|
|
56
56
|
"build:docker": "docker build --platform linux/amd64 -t agent-browser-builder -f docker/Dockerfile.build .",
|
|
57
57
|
"release": "npm run version:sync && npm run build:all-platforms && npm publish",
|
|
58
|
-
"postinstall": "node scripts/postinstall.js",
|
|
59
58
|
"build:dashboard": "cd packages/dashboard && pnpm build"
|
|
60
59
|
}
|
|
61
60
|
}
|
|
@@ -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
|
|