@roll-agent/browser-use-agent 0.25.0 → 0.25.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.
- package/SKILL.md +1 -1
- package/dist/index.js +1 -1
- package/dist/pages/zhipin/native-page.d.ts +2 -0
- package/dist/pages/zhipin/risk-page.d.ts +17 -0
- package/package.json +1 -1
|
@@ -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;
|