@roll-agent/browser-use-agent 0.22.0 → 0.22.2
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.
|
@@ -202,6 +202,9 @@ export declare class ZhipinNativePagePort {
|
|
|
202
202
|
reload(options: ZhipinNativeReloadOptions): Promise<void>;
|
|
203
203
|
isChatSurfaceOpen(): Promise<boolean>;
|
|
204
204
|
waitForChatSurface(timeoutMs?: number): Promise<boolean>;
|
|
205
|
+
waitForChatListReady(options?: {
|
|
206
|
+
readonly expectedConversationId?: string;
|
|
207
|
+
}, timeoutMs?: number): Promise<boolean>;
|
|
205
208
|
isRecommendSurfaceOpen(): Promise<boolean>;
|
|
206
209
|
waitForRecommendSurface(timeoutMs?: number): Promise<boolean>;
|
|
207
210
|
private resolveRecommendFrameContextId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roll-agent/browser-use-agent",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.2",
|
|
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.5.0",
|
|
49
49
|
"@roll-agent/sdk": "0.3.0",
|
|
50
|
-
"@roll-agent/browser": "0.9.
|
|
50
|
+
"@roll-agent/browser": "0.9.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "^22.0.0"
|
package/references/env.yaml
CHANGED
|
@@ -1,47 +1,71 @@
|
|
|
1
1
|
required:
|
|
2
2
|
- name: REPLY_AUTHORITY_URL
|
|
3
|
+
secret: false
|
|
4
|
+
type: url
|
|
3
5
|
purpose: Reply Authority Service API base URL;`zhipin_generate_reply_preview` 使用 SSE 直接生成并展示回复
|
|
4
6
|
example: https://reply-authority.duliday.com
|
|
5
7
|
- name: REPLY_AUTHORITY_BEARER_TOKEN
|
|
8
|
+
secret: true
|
|
6
9
|
purpose: 调用 Reply Authority Service `POST /generate-signed-reply` 的 Bearer token;只用于生成 prepared reply,不会返回给 orchestrator
|
|
7
10
|
example: token_xxx
|
|
8
11
|
- name: REPLY_AUTHORITY_KEYS_URL
|
|
12
|
+
secret: false
|
|
13
|
+
type: url
|
|
9
14
|
purpose: Reply Authority Service 公钥分发端点;`zhipin_send_prepared_reply` 启动预热和本地 Ed25519 验签都依赖它
|
|
10
15
|
example: https://reply-authority.duliday.com/.well-known/reply-authority-keys
|
|
11
16
|
- name: RECRUITMENT_EVENTS_DEFAULT_AGENT_ID
|
|
17
|
+
secret: false
|
|
12
18
|
purpose: 单 browser-use 实例 / 单 Boss 账号部署下的默认招聘业务 Agent ID;多 browser.instances 下仅作为实例缺少 trackingAgentId 时的 fallback;招聘事件默认启用,上报时必须有可解析归因
|
|
13
19
|
example: zhipin-shanghai-kfc-001
|
|
14
20
|
- name: RECRUITMENT_EVENTS_API_TOKEN
|
|
21
|
+
secret: true
|
|
15
22
|
purpose: 招聘事件 Open API Bearer token;公开 npm 包不内置兜底 token,必须由部署环境提供
|
|
16
23
|
example: token_xxx
|
|
17
24
|
optional:
|
|
18
25
|
- name: RECRUITMENT_EVENTS_ENABLED
|
|
26
|
+
secret: false
|
|
27
|
+
type: boolean
|
|
19
28
|
purpose: 是否启用招聘事件埋点上报;未设置时默认启用,设为 `"false"` 可关闭
|
|
20
29
|
default: "true"
|
|
21
30
|
example: "false"
|
|
22
31
|
- name: RECRUITMENT_EVENTS_API_BASE_URL
|
|
32
|
+
secret: false
|
|
33
|
+
type: url
|
|
23
34
|
purpose: 招聘事件 Open API base URL;工具成功后会调用 `/api/v1/recruitment-events`
|
|
24
35
|
default: https://huajune.duliday.com
|
|
25
36
|
example: https://example.com
|
|
26
37
|
- name: BROWSER_SECURITY_JSON
|
|
38
|
+
secret: false
|
|
39
|
+
type: json
|
|
27
40
|
purpose: 浏览器安全策略 JSON;可配置 domainAllowlist、maxPageContentBytes、maxSnapshotNodes、actionPolicy、foregroundPolicy;foregroundPolicy 默认 when-minimized,无需显式配置
|
|
28
41
|
default: '{"domainAllowlist":[],"maxPageContentBytes":102400,"maxSnapshotNodes":500,"actionPolicy":"log","foregroundPolicy":"when-minimized"}'
|
|
29
42
|
example: '{"domainAllowlist":["zhipin.com"],"maxPageContentBytes":102400,"maxSnapshotNodes":500,"actionPolicy":"log","foregroundPolicy":"when-minimized"}'
|
|
30
43
|
- name: BROWSER_USE_POLICY_JSON
|
|
44
|
+
secret: false
|
|
45
|
+
type: json
|
|
31
46
|
purpose: browser-use 工具级业务策略 JSON;可按 exact tool name 配置 log、deny、confirm
|
|
32
47
|
default: '{"approvalTtlMs":300000,"tools":{}}'
|
|
33
48
|
example: '{"approvalTtlMs":300000,"tools":{"zhipin_send_prepared_reply":{"policy":"confirm"}}}'
|
|
34
49
|
- name: BROWSER_PROFILE_COLOR
|
|
50
|
+
secret: false
|
|
35
51
|
purpose: legacy 单浏览器运行时的 Chrome profile 颜色,格式为 `#RRGGBB`;配置了 `browser.instances` 时由每个实例的 profileColor 接管,此 env 会被忽略
|
|
36
52
|
example: "#2563EB"
|
|
37
53
|
- name: BROWSER_INSTANCES_JSON
|
|
54
|
+
secret: false
|
|
55
|
+
type: json
|
|
56
|
+
configurable: false
|
|
57
|
+
sourcePath: [browser, instances]
|
|
38
58
|
purpose: Roll core 注入的多浏览器实例声明 JSON;由 `browser.instances` 派生,包含每个实例的 profile、CDP 端口、session 目录、可选 profileName/profileColor/windowBounds 和招聘事件归因 ID;orchestrator 不应手工拼接,手工配置时必须保持 cdpPort/userDataDir 唯一
|
|
39
59
|
example: '{"defaultInstance":"boss-a","instances":{"boss-a":{"platform":"zhipin","mode":"managed-cdp","cdpPort":9222,"userDataDir":"/tmp/roll-browser/profiles/boss-a","profileName":"boss-a","profileColor":"#2563EB","windowBounds":{"x":0,"y":0,"width":680,"height":1000},"trackingAgentId":"zhipin-boss-a"}}}'
|
|
40
60
|
- name: BROWSER_VISUAL_CURSOR
|
|
61
|
+
secret: false
|
|
62
|
+
type: boolean
|
|
41
63
|
purpose: 在可见浏览器页面内显示 browser-use 的页内虚拟指针和点击波纹;默认开启,设为 `"false"` 可关闭
|
|
42
64
|
default: "true"
|
|
43
65
|
example: "false"
|
|
44
66
|
- name: BROWSER_VISUAL_ACTIVITY
|
|
67
|
+
secret: false
|
|
68
|
+
type: boolean
|
|
45
69
|
purpose: 在消息读取、账号识别、聊天详情提取等非点击型操作期间显示页内状态胶囊、区域柔光和完成态反馈;默认开启,设为 `"false"` 可关闭
|
|
46
70
|
default: "true"
|
|
47
71
|
example: "true"
|