@roll-agent/browser-use-agent 0.12.1 → 0.13.0
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/SKILL.md +1 -1
- package/dist/browser-foreground.d.ts +10 -0
- package/dist/index.js +1 -1
- package/dist/tools/browser-status.d.ts +1 -0
- package/package.json +2 -2
- package/references/env.yaml +3 -3
|
@@ -6,6 +6,7 @@ export declare const browserStatus: import("@roll-agent/sdk").ToolDefinition<{},
|
|
|
6
6
|
maxPageContentBytes?: number | undefined;
|
|
7
7
|
maxSnapshotNodes?: number | undefined;
|
|
8
8
|
actionPolicy?: "log" | "deny" | "confirm" | undefined;
|
|
9
|
+
foregroundPolicy?: "when-minimized" | "always" | "never" | undefined;
|
|
9
10
|
};
|
|
10
11
|
running: boolean;
|
|
11
12
|
activeSessions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roll-agent/browser-use-agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"zod": "^3.25.76",
|
|
48
48
|
"@roll-agent/reply-authority-client": "0.1.2",
|
|
49
49
|
"@roll-agent/sdk": "0.2.0",
|
|
50
|
-
"@roll-agent/browser": "0.
|
|
50
|
+
"@roll-agent/browser": "0.6.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "^22.0.0"
|
package/references/env.yaml
CHANGED
|
@@ -24,9 +24,9 @@ optional:
|
|
|
24
24
|
default: https://huajune.duliday.com
|
|
25
25
|
example: https://example.com
|
|
26
26
|
- name: BROWSER_SECURITY_JSON
|
|
27
|
-
purpose: 浏览器安全策略 JSON;可配置 domainAllowlist、maxPageContentBytes、maxSnapshotNodes、actionPolicy
|
|
28
|
-
default: '{"domainAllowlist":[],"maxPageContentBytes":102400,"maxSnapshotNodes":500,"actionPolicy":"log"}'
|
|
29
|
-
example: '{"domainAllowlist":["zhipin.com"],"maxPageContentBytes":102400,"maxSnapshotNodes":500,"actionPolicy":"log"}'
|
|
27
|
+
purpose: 浏览器安全策略 JSON;可配置 domainAllowlist、maxPageContentBytes、maxSnapshotNodes、actionPolicy、foregroundPolicy;foregroundPolicy 默认 when-minimized,无需显式配置
|
|
28
|
+
default: '{"domainAllowlist":[],"maxPageContentBytes":102400,"maxSnapshotNodes":500,"actionPolicy":"log","foregroundPolicy":"when-minimized"}'
|
|
29
|
+
example: '{"domainAllowlist":["zhipin.com"],"maxPageContentBytes":102400,"maxSnapshotNodes":500,"actionPolicy":"log","foregroundPolicy":"when-minimized"}'
|
|
30
30
|
- name: BROWSER_USE_POLICY_JSON
|
|
31
31
|
purpose: browser-use 工具级业务策略 JSON;可按 exact tool name 配置 log、deny、confirm
|
|
32
32
|
default: '{"approvalTtlMs":300000,"tools":{}}'
|