@roll-agent/browser-use-agent 0.21.1 → 0.22.1

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;
@@ -3,6 +3,14 @@ import type { Platform } from "@roll-agent/browser";
3
3
  export interface BrowserInstanceToolOptions {
4
4
  readonly startRuntime?: boolean;
5
5
  readonly expectedPlatform?: Platform;
6
+ /**
7
+ * 是否对同一 browserInstance 的执行做互斥串行(默认 true)。
8
+ *
9
+ * 页面操作工具共享同一实例的页面状态,并行调用会互相踩踏,必须排队;
10
+ * page-free / 只读诊断工具(browser_status、list_pages 等)应显式传 false,
11
+ * 保证"检查实例是否卡死"这类排障出口不被锁挡住。
12
+ */
13
+ readonly serializePageOps?: boolean;
6
14
  }
7
15
  export declare function inferExpectedPlatformFromToolName(toolName: string): Platform | undefined;
8
16
  export declare function withBrowserInstanceInput(tool: AnyToolDefinition, options?: BrowserInstanceToolOptions): AnyToolDefinition;
@@ -15,6 +15,7 @@ export declare const zhipinOpenChatPage: import("@roll-agent/sdk").ToolDefinitio
15
15
  id: string;
16
16
  } | undefined;
17
17
  forceReload?: boolean | undefined;
18
+ expectedConversationId?: string | undefined;
18
19
  }, {
19
20
  success: boolean;
20
21
  alreadyOnChat: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roll-agent/browser-use-agent",
3
- "version": "0.21.1",
3
+ "version": "0.22.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,9 +45,9 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "zod": "^3.25.76",
48
- "@roll-agent/reply-authority-client": "0.5.0",
49
- "@roll-agent/sdk": "0.2.1",
50
- "@roll-agent/browser": "0.9.0"
48
+ "@roll-agent/sdk": "0.3.0",
49
+ "@roll-agent/browser": "0.9.1",
50
+ "@roll-agent/reply-authority-client": "0.5.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/node": "^22.0.0"