@roll-agent/browser-use-agent 0.25.0 → 0.25.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.
@@ -208,6 +208,7 @@ type NativeClickOptions = {
208
208
  };
209
209
  type NativePageResolutionOptions = {
210
210
  readonly requireChatPage?: boolean;
211
+ readonly skipRiskGate?: boolean;
211
212
  };
212
213
  export declare function openZhipinNativePagePort(options?: NativePageResolutionOptions, deps?: {
213
214
  readonly ctxManager?: BrowserContextManager;
@@ -222,6 +223,7 @@ export declare class ZhipinNativePagePort {
222
223
  constructor(options: ZhipinNativePagePortOptions);
223
224
  get targetId(): string;
224
225
  inspectPage(): Promise<BrowserInspectablePage>;
226
+ assertNotRestricted(): Promise<void>;
225
227
  url(): Promise<string>;
226
228
  title(): Promise<string>;
227
229
  waitForSelector(selector: string, timeoutMs?: number): Promise<boolean>;
@@ -0,0 +1,17 @@
1
+ import { StructuredToolError } from "@roll-agent/sdk";
2
+ export declare const ZHIPIN_ACCESS_RESTRICTED_CODE: "zhipin_access_restricted";
3
+ export declare const ZHIPIN_RISK_PAGE_KINDS: readonly ["ip_block", "uid_block", "verify", "security", "anti_spider_login"];
4
+ export type ZhipinRiskPageKind = (typeof ZHIPIN_RISK_PAGE_KINDS)[number];
5
+ export type ZhipinRiskPageInput = {
6
+ readonly url: string;
7
+ readonly title?: string;
8
+ };
9
+ export type ZhipinRiskPageHit = {
10
+ readonly kind: ZhipinRiskPageKind;
11
+ readonly url: string;
12
+ readonly title: string;
13
+ };
14
+ export declare function inspectZhipinRiskPage(input: ZhipinRiskPageInput): ZhipinRiskPageHit | null;
15
+ export declare function assertZhipinPageNotRestricted(input: ZhipinRiskPageInput): void;
16
+ export declare function createZhipinAccessRestrictedError(hit: ZhipinRiskPageHit): StructuredToolError;
17
+ export declare function rethrowStructuredToolError(error: unknown): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roll-agent/browser-use-agent",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "zod": "^3.25.76",
48
48
  "@roll-agent/reply-authority-client": "0.7.0",
49
- "@roll-agent/sdk": "0.5.0",
49
+ "@roll-agent/sdk": "0.5.1",
50
50
  "@roll-agent/browser": "0.10.0"
51
51
  },
52
52
  "devDependencies": {