@roll-agent/browser-use-agent 0.27.2 → 0.27.4
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/dist/browser-use-policy.d.ts +18 -26
- package/dist/diagnostics/effective-env.d.ts +2 -14
- package/dist/goal/contracts.d.ts +173 -1537
- package/dist/goal/decisions.d.ts +1 -9
- package/dist/goal/execution-context.d.ts +83 -457
- package/dist/goal/form-context.d.ts +104 -480
- package/dist/goal/form-handoff.d.ts +12 -138
- package/dist/goal/interaction-feedback.d.ts +10 -36
- package/dist/goal/observation.d.ts +122 -827
- package/dist/goal/picker-observation.d.ts +26 -41
- package/dist/goal/picker-state.d.ts +33 -70
- package/dist/goal/task-evidence.d.ts +3 -3
- package/dist/goal/task-freshness.d.ts +8 -48
- package/dist/goal/task-policy.d.ts +10 -10
- package/dist/goal/task-progress.d.ts +25 -271
- package/dist/goal/task-sources.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/reply-authority/prepared-reply-decision.d.ts +22 -25
- package/dist/reply-authority/prepared-reply-judge-context.d.ts +9 -64
- package/dist/reply-authority/schemas.d.ts +6 -100
- package/dist/runtime-config.d.ts +40 -302
- package/dist/tool-action-approval.d.ts +1 -5
- package/dist/tools/attach-browser-session.d.ts +2 -2
- package/dist/tools/browser-execute.d.ts +19 -19
- package/dist/tools/browser-operate.d.ts +113 -113
- package/dist/tools/browser-ref-schemas.d.ts +19 -77
- package/dist/tools/browser-snapshot.d.ts +7 -7
- package/dist/tools/browser-status.d.ts +34 -34
- package/dist/tools/browser-stop.d.ts +19 -54
- package/dist/tools/browser-workflows.d.ts +87 -454
- package/dist/tools/click-ref.d.ts +7 -7
- package/dist/tools/type-ref.d.ts +8 -8
- package/dist/tools/yupao-send-reply.d.ts +1 -1
- package/dist/tools/zhipin-capture-resume.d.ts +7 -7
- package/dist/tools/zhipin-close-resume.d.ts +2 -2
- package/dist/tools/zhipin-diagnose-browser-state.d.ts +76 -156
- package/dist/tools/zhipin-exchange-wechat.d.ts +2 -2
- package/dist/tools/zhipin-filter-recommend-candidates.d.ts +15 -15
- package/dist/tools/zhipin-generate-reply-preview.d.ts +14 -14
- package/dist/tools/zhipin-get-candidate-info.d.ts +16 -16
- package/dist/tools/zhipin-get-candidate-list.d.ts +7 -7
- package/dist/tools/zhipin-get-username.d.ts +3 -3
- package/dist/tools/zhipin-judge-prepared-reply.d.ts +5 -5
- package/dist/tools/zhipin-list-recommend-jobs.d.ts +7 -7
- package/dist/tools/zhipin-open-chat-page.d.ts +4 -4
- package/dist/tools/zhipin-open-chat.d.ts +3 -3
- package/dist/tools/zhipin-open-recommend-page.d.ts +3 -3
- package/dist/tools/zhipin-open-resume.d.ts +2 -2
- package/dist/tools/zhipin-read-messages.d.ts +4 -4
- package/dist/tools/zhipin-say-hello.d.ts +3 -3
- package/dist/tools/zhipin-scroll-view.d.ts +13 -13
- package/dist/tools/zhipin-select-recommend-job.d.ts +16 -16
- package/dist/tools/zhipin-send-prepared-reply.d.ts +6 -6
- package/dist/tools/zhipin-send-reply.d.ts +2 -10
- package/dist/workflows/store.d.ts +46 -253
- package/package.json +5 -5
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
export declare const clickRef: import("@roll-agent/sdk").ToolDefinition<{
|
|
2
2
|
ref: string;
|
|
3
|
-
pageId?: string | undefined;
|
|
4
3
|
snapshotId?: string | undefined;
|
|
4
|
+
pageId?: string | undefined;
|
|
5
5
|
browserActionApproval?: {
|
|
6
6
|
id: string;
|
|
7
7
|
} | undefined;
|
|
8
8
|
}, {
|
|
9
|
+
success: true;
|
|
9
10
|
ref: string;
|
|
11
|
+
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
10
12
|
target: {
|
|
11
|
-
|
|
12
|
-
y: number;
|
|
13
|
+
ref: string;
|
|
13
14
|
role: string;
|
|
14
15
|
name: string;
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
17
18
|
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
19
|
+
disabled: boolean;
|
|
18
20
|
backendNodeId?: number | undefined;
|
|
19
21
|
frameId?: string | undefined;
|
|
20
22
|
};
|
|
21
|
-
success: true;
|
|
22
|
-
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
23
23
|
}>;
|
package/dist/tools/type-ref.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export declare const typeRef: import("@roll-agent/sdk").ToolDefinition<{
|
|
2
2
|
ref: string;
|
|
3
3
|
text: string;
|
|
4
|
-
|
|
4
|
+
clear: boolean;
|
|
5
5
|
snapshotId?: string | undefined;
|
|
6
|
-
|
|
6
|
+
pageId?: string | undefined;
|
|
7
7
|
browserActionApproval?: {
|
|
8
8
|
id: string;
|
|
9
9
|
} | undefined;
|
|
10
10
|
}, {
|
|
11
|
+
success: true;
|
|
11
12
|
ref: string;
|
|
13
|
+
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
12
14
|
target: {
|
|
13
|
-
|
|
14
|
-
y: number;
|
|
15
|
+
ref: string;
|
|
15
16
|
role: string;
|
|
16
17
|
name: string;
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
19
20
|
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
21
|
+
disabled: boolean;
|
|
20
22
|
backendNodeId?: number | undefined;
|
|
21
23
|
frameId?: string | undefined;
|
|
22
24
|
};
|
|
23
|
-
success: true;
|
|
24
|
-
resolvedBy: "backend_node_id" | "role_name_nth";
|
|
25
25
|
}>;
|
|
@@ -9,17 +9,17 @@ export declare const zhipinCaptureResume: import("@roll-agent/sdk").ToolDefiniti
|
|
|
9
9
|
outputPath?: string | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
success: boolean;
|
|
12
|
+
imagePath?: string | undefined;
|
|
13
|
+
captureMode?: "canvas-data-url" | "viewport-clip" | "dom-screenshot" | undefined;
|
|
14
|
+
canvasSize?: {
|
|
15
|
+
width: number;
|
|
16
|
+
height: number;
|
|
17
|
+
} | undefined;
|
|
18
|
+
note?: string | undefined;
|
|
12
19
|
error?: string | undefined;
|
|
13
20
|
mcpImages?: {
|
|
14
21
|
data: string;
|
|
15
22
|
mimeType: string;
|
|
16
23
|
}[] | undefined;
|
|
17
|
-
note?: string | undefined;
|
|
18
|
-
canvasSize?: {
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
} | undefined;
|
|
22
|
-
imagePath?: string | undefined;
|
|
23
|
-
captureMode?: "canvas-data-url" | "viewport-clip" | "dom-screenshot" | undefined;
|
|
24
24
|
}>;
|
|
25
25
|
export {};
|
|
@@ -3,10 +3,10 @@ type ZhipinCloseResumeDeps = {
|
|
|
3
3
|
readonly openNativePagePort: typeof openZhipinNativePagePort;
|
|
4
4
|
};
|
|
5
5
|
export declare function setZhipinCloseResumeDepsForTests(override: Partial<ZhipinCloseResumeDeps> | undefined): void;
|
|
6
|
-
export declare const zhipinCloseResume: import("@roll-agent/sdk").ToolDefinition<
|
|
6
|
+
export declare const zhipinCloseResume: import("@roll-agent/sdk").ToolDefinition<Record<string, never>, {
|
|
7
7
|
success: boolean;
|
|
8
8
|
closed: boolean;
|
|
9
|
-
error?: string | undefined;
|
|
10
9
|
method?: "close-button" | "escape" | undefined;
|
|
10
|
+
error?: string | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
export {};
|
|
@@ -1,39 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
declare const StorageAreaSchema: z.ZodEnum<
|
|
2
|
+
declare const StorageAreaSchema: z.ZodEnum<{
|
|
3
|
+
localStorage: "localStorage";
|
|
4
|
+
sessionStorage: "sessionStorage";
|
|
5
|
+
}>;
|
|
3
6
|
declare const StorageEntrySummarySchema: z.ZodObject<{
|
|
4
|
-
area: z.ZodEnum<
|
|
7
|
+
area: z.ZodEnum<{
|
|
8
|
+
localStorage: "localStorage";
|
|
9
|
+
sessionStorage: "sessionStorage";
|
|
10
|
+
}>;
|
|
5
11
|
key: z.ZodString;
|
|
6
12
|
valueLength: z.ZodNumber;
|
|
7
|
-
valueKind: z.ZodEnum<
|
|
8
|
-
|
|
9
|
-
|
|
13
|
+
valueKind: z.ZodEnum<{
|
|
14
|
+
string: "string";
|
|
15
|
+
json: "json";
|
|
16
|
+
empty: "empty";
|
|
17
|
+
}>;
|
|
18
|
+
jsonKind: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
string: "string";
|
|
20
|
+
number: "number";
|
|
21
|
+
boolean: "boolean";
|
|
22
|
+
object: "object";
|
|
23
|
+
null: "null";
|
|
24
|
+
array: "array";
|
|
25
|
+
}>>;
|
|
26
|
+
jsonTopLevelKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
27
|
jsonArrayLength: z.ZodOptional<z.ZodNumber>;
|
|
11
28
|
numericFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
12
29
|
booleanFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
13
30
|
arrayLengths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
14
|
-
},
|
|
15
|
-
key: string;
|
|
16
|
-
area: "localStorage" | "sessionStorage";
|
|
17
|
-
valueKind: "string" | "json" | "empty";
|
|
18
|
-
valueLength: number;
|
|
19
|
-
jsonKind?: "string" | "number" | "boolean" | "object" | "null" | "array" | undefined;
|
|
20
|
-
jsonTopLevelKeys?: string[] | undefined;
|
|
21
|
-
jsonArrayLength?: number | undefined;
|
|
22
|
-
numericFields?: Record<string, number> | undefined;
|
|
23
|
-
booleanFields?: Record<string, boolean> | undefined;
|
|
24
|
-
arrayLengths?: Record<string, number> | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
key: string;
|
|
27
|
-
area: "localStorage" | "sessionStorage";
|
|
28
|
-
valueKind: "string" | "json" | "empty";
|
|
29
|
-
valueLength: number;
|
|
30
|
-
jsonKind?: "string" | "number" | "boolean" | "object" | "null" | "array" | undefined;
|
|
31
|
-
jsonTopLevelKeys?: string[] | undefined;
|
|
32
|
-
jsonArrayLength?: number | undefined;
|
|
33
|
-
numericFields?: Record<string, number> | undefined;
|
|
34
|
-
booleanFields?: Record<string, boolean> | undefined;
|
|
35
|
-
arrayLengths?: Record<string, number> | undefined;
|
|
36
|
-
}>;
|
|
31
|
+
}, z.core.$strip>;
|
|
37
32
|
declare const CookieSummarySchema: z.ZodObject<{
|
|
38
33
|
name: z.ZodString;
|
|
39
34
|
domain: z.ZodString;
|
|
@@ -43,27 +38,12 @@ declare const CookieSummarySchema: z.ZodObject<{
|
|
|
43
38
|
httpOnly: z.ZodBoolean;
|
|
44
39
|
secure: z.ZodBoolean;
|
|
45
40
|
sameSite: z.ZodOptional<z.ZodString>;
|
|
46
|
-
},
|
|
47
|
-
path: string;
|
|
48
|
-
name: string;
|
|
49
|
-
valueLength: number;
|
|
50
|
-
domain: string;
|
|
51
|
-
expires: string;
|
|
52
|
-
httpOnly: boolean;
|
|
53
|
-
secure: boolean;
|
|
54
|
-
sameSite?: string | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
path: string;
|
|
57
|
-
name: string;
|
|
58
|
-
valueLength: number;
|
|
59
|
-
domain: string;
|
|
60
|
-
expires: string;
|
|
61
|
-
httpOnly: boolean;
|
|
62
|
-
secure: boolean;
|
|
63
|
-
sameSite?: string | undefined;
|
|
64
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
65
42
|
declare const StorageCounterDiffSchema: z.ZodObject<{
|
|
66
|
-
area: z.ZodEnum<
|
|
43
|
+
area: z.ZodEnum<{
|
|
44
|
+
localStorage: "localStorage";
|
|
45
|
+
sessionStorage: "sessionStorage";
|
|
46
|
+
}>;
|
|
67
47
|
key: z.ZodString;
|
|
68
48
|
beforePresent: z.ZodBoolean;
|
|
69
49
|
afterPresent: z.ZodBoolean;
|
|
@@ -71,77 +51,17 @@ declare const StorageCounterDiffSchema: z.ZodObject<{
|
|
|
71
51
|
before: z.ZodOptional<z.ZodNumber>;
|
|
72
52
|
after: z.ZodOptional<z.ZodNumber>;
|
|
73
53
|
delta: z.ZodOptional<z.ZodNumber>;
|
|
74
|
-
},
|
|
75
|
-
before?: number | undefined;
|
|
76
|
-
after?: number | undefined;
|
|
77
|
-
delta?: number | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
before?: number | undefined;
|
|
80
|
-
after?: number | undefined;
|
|
81
|
-
delta?: number | undefined;
|
|
82
|
-
}>>>;
|
|
54
|
+
}, z.core.$strip>>>;
|
|
83
55
|
booleanChanges: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
84
56
|
before: z.ZodOptional<z.ZodBoolean>;
|
|
85
57
|
after: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
-
},
|
|
87
|
-
before?: boolean | undefined;
|
|
88
|
-
after?: boolean | undefined;
|
|
89
|
-
}, {
|
|
90
|
-
before?: boolean | undefined;
|
|
91
|
-
after?: boolean | undefined;
|
|
92
|
-
}>>>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
93
59
|
arrayLengthDeltas: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
94
60
|
before: z.ZodOptional<z.ZodNumber>;
|
|
95
61
|
after: z.ZodOptional<z.ZodNumber>;
|
|
96
62
|
delta: z.ZodOptional<z.ZodNumber>;
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
after?: number | undefined;
|
|
100
|
-
delta?: number | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
before?: number | undefined;
|
|
103
|
-
after?: number | undefined;
|
|
104
|
-
delta?: number | undefined;
|
|
105
|
-
}>>>;
|
|
106
|
-
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
key: string;
|
|
108
|
-
area: "localStorage" | "sessionStorage";
|
|
109
|
-
beforePresent: boolean;
|
|
110
|
-
afterPresent: boolean;
|
|
111
|
-
numericDeltas?: Record<string, {
|
|
112
|
-
before?: number | undefined;
|
|
113
|
-
after?: number | undefined;
|
|
114
|
-
delta?: number | undefined;
|
|
115
|
-
}> | undefined;
|
|
116
|
-
booleanChanges?: Record<string, {
|
|
117
|
-
before?: boolean | undefined;
|
|
118
|
-
after?: boolean | undefined;
|
|
119
|
-
}> | undefined;
|
|
120
|
-
arrayLengthDeltas?: Record<string, {
|
|
121
|
-
before?: number | undefined;
|
|
122
|
-
after?: number | undefined;
|
|
123
|
-
delta?: number | undefined;
|
|
124
|
-
}> | undefined;
|
|
125
|
-
}, {
|
|
126
|
-
key: string;
|
|
127
|
-
area: "localStorage" | "sessionStorage";
|
|
128
|
-
beforePresent: boolean;
|
|
129
|
-
afterPresent: boolean;
|
|
130
|
-
numericDeltas?: Record<string, {
|
|
131
|
-
before?: number | undefined;
|
|
132
|
-
after?: number | undefined;
|
|
133
|
-
delta?: number | undefined;
|
|
134
|
-
}> | undefined;
|
|
135
|
-
booleanChanges?: Record<string, {
|
|
136
|
-
before?: boolean | undefined;
|
|
137
|
-
after?: boolean | undefined;
|
|
138
|
-
}> | undefined;
|
|
139
|
-
arrayLengthDeltas?: Record<string, {
|
|
140
|
-
before?: number | undefined;
|
|
141
|
-
after?: number | undefined;
|
|
142
|
-
delta?: number | undefined;
|
|
143
|
-
}> | undefined;
|
|
144
|
-
}>;
|
|
63
|
+
}, z.core.$strip>>>;
|
|
64
|
+
}, z.core.$strip>;
|
|
145
65
|
type StorageArea = z.infer<typeof StorageAreaSchema>;
|
|
146
66
|
type StorageEntrySummary = z.infer<typeof StorageEntrySummarySchema>;
|
|
147
67
|
type CookieSummary = z.infer<typeof CookieSummarySchema>;
|
|
@@ -163,14 +83,14 @@ export declare function summarizeCookie(cookie: {
|
|
|
163
83
|
}): CookieSummary;
|
|
164
84
|
export declare function diffStorageCounters(beforeEntries: ReadonlyArray<StorageEntrySummary>, afterEntries: ReadonlyArray<StorageEntrySummary>): StorageCounterDiff[];
|
|
165
85
|
export declare const zhipinDiagnoseBrowserState: import("@roll-agent/sdk").ToolDefinition<{
|
|
166
|
-
phase
|
|
86
|
+
phase: "native" | "native-watch" | "native-ws-connect" | "native-page-bring-front" | "native-evaluate-url-no-runtime-enable" | "native-dom-read-no-runtime-enable" | "native-input-move-no-runtime-enable" | "native-runtime-enable" | "native-evaluate-url" | "native-dom-read" | "resume-canvas" | "browser-attach" | "page-attach" | "network-watch" | "page-evaluate" | "detector-fingerprint" | "storage-summary";
|
|
87
|
+
watchMs: number;
|
|
88
|
+
networkEventLimit: number;
|
|
167
89
|
targetPageId?: string | undefined;
|
|
168
|
-
watchMs?: number | undefined;
|
|
169
|
-
networkEventLimit?: number | undefined;
|
|
170
90
|
}, {
|
|
171
|
-
mode: string;
|
|
172
91
|
success: boolean;
|
|
173
92
|
requestedPhase: "native" | "native-watch" | "native-ws-connect" | "native-page-bring-front" | "native-evaluate-url-no-runtime-enable" | "native-dom-read-no-runtime-enable" | "native-input-move-no-runtime-enable" | "native-runtime-enable" | "native-evaluate-url" | "native-dom-read" | "resume-canvas" | "browser-attach" | "page-attach" | "network-watch" | "page-evaluate" | "detector-fingerprint" | "storage-summary";
|
|
93
|
+
mode: string;
|
|
174
94
|
nativePages: {
|
|
175
95
|
pageId: string;
|
|
176
96
|
url: string;
|
|
@@ -187,7 +107,6 @@ export declare const zhipinDiagnoseBrowserState: import("@roll-agent/sdk").ToolD
|
|
|
187
107
|
targetFound: boolean;
|
|
188
108
|
urlChangedFromPrevious: boolean;
|
|
189
109
|
titleChangedFromPrevious: boolean;
|
|
190
|
-
currentUrl?: string | undefined;
|
|
191
110
|
page?: {
|
|
192
111
|
pageId: string;
|
|
193
112
|
url: string;
|
|
@@ -197,22 +116,17 @@ export declare const zhipinDiagnoseBrowserState: import("@roll-agent/sdk").ToolD
|
|
|
197
116
|
isSelectedForPlatform: boolean;
|
|
198
117
|
} | undefined;
|
|
199
118
|
previousUrl?: string | undefined;
|
|
119
|
+
currentUrl?: string | undefined;
|
|
200
120
|
previousTitle?: string | undefined;
|
|
201
121
|
currentTitle?: string | undefined;
|
|
202
122
|
}[];
|
|
203
123
|
phases: {
|
|
124
|
+
phase: "native" | "native-watch" | "native-ws-connect" | "native-page-bring-front" | "native-evaluate-url-no-runtime-enable" | "native-dom-read-no-runtime-enable" | "native-input-move-no-runtime-enable" | "native-runtime-enable" | "native-evaluate-url" | "native-dom-read" | "resume-canvas" | "browser-attach" | "page-attach" | "network-watch" | "page-evaluate" | "detector-fingerprint" | "storage-summary";
|
|
204
125
|
success: boolean;
|
|
205
126
|
durationMs: number;
|
|
206
|
-
phase: "native" | "native-watch" | "native-ws-connect" | "native-page-bring-front" | "native-evaluate-url-no-runtime-enable" | "native-dom-read-no-runtime-enable" | "native-input-move-no-runtime-enable" | "native-runtime-enable" | "native-evaluate-url" | "native-dom-read" | "resume-canvas" | "browser-attach" | "page-attach" | "network-watch" | "page-evaluate" | "detector-fingerprint" | "storage-summary";
|
|
207
127
|
error?: string | undefined;
|
|
208
128
|
}[];
|
|
209
129
|
warnings: string[];
|
|
210
|
-
evaluate?: {
|
|
211
|
-
url: string;
|
|
212
|
-
title: string;
|
|
213
|
-
visibilityState: string;
|
|
214
|
-
hasFocus: boolean;
|
|
215
|
-
} | undefined;
|
|
216
130
|
targetPage?: {
|
|
217
131
|
pageId: string;
|
|
218
132
|
url: string;
|
|
@@ -222,35 +136,30 @@ export declare const zhipinDiagnoseBrowserState: import("@roll-agent/sdk").ToolD
|
|
|
222
136
|
isSelectedForPlatform: boolean;
|
|
223
137
|
} | undefined;
|
|
224
138
|
networkEvents?: {
|
|
225
|
-
url: string;
|
|
226
|
-
reason: "apm-action-log" | "device-action-report" | "boss-risk-report" | "zhipin-security";
|
|
227
139
|
kind: "request" | "response";
|
|
140
|
+
reason: "apm-action-log" | "device-action-report" | "boss-risk-report" | "zhipin-security";
|
|
228
141
|
capturedAt: string;
|
|
229
|
-
|
|
142
|
+
url: string;
|
|
230
143
|
method?: string | undefined;
|
|
231
144
|
resourceType?: string | undefined;
|
|
145
|
+
status?: number | undefined;
|
|
232
146
|
}[] | undefined;
|
|
233
147
|
navigationEvents?: {
|
|
234
|
-
url: string;
|
|
235
148
|
capturedAt: string;
|
|
149
|
+
url: string;
|
|
236
150
|
}[] | undefined;
|
|
237
151
|
nativeCdp?: {
|
|
238
152
|
targetId: string;
|
|
239
|
-
connected: boolean;
|
|
240
153
|
websocketUrlAvailable: boolean;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
y: number;
|
|
245
|
-
} | undefined;
|
|
154
|
+
connected: boolean;
|
|
155
|
+
pageBroughtToFront?: boolean | undefined;
|
|
156
|
+
runtimeEnabled?: boolean | undefined;
|
|
246
157
|
evaluate?: {
|
|
247
158
|
url: string;
|
|
248
159
|
title: string;
|
|
249
160
|
visibilityState: string;
|
|
250
161
|
hasFocus: boolean;
|
|
251
162
|
} | undefined;
|
|
252
|
-
pageBroughtToFront?: boolean | undefined;
|
|
253
|
-
runtimeEnabled?: boolean | undefined;
|
|
254
163
|
dom?: {
|
|
255
164
|
rootNodeId: number;
|
|
256
165
|
rootNodeName: string;
|
|
@@ -258,23 +167,34 @@ export declare const zhipinDiagnoseBrowserState: import("@roll-agent/sdk").ToolD
|
|
|
258
167
|
bodyTextLength?: number | undefined;
|
|
259
168
|
elementCount?: number | undefined;
|
|
260
169
|
} | undefined;
|
|
170
|
+
input?: {
|
|
171
|
+
type: "mouseMoved";
|
|
172
|
+
x: number;
|
|
173
|
+
y: number;
|
|
174
|
+
} | undefined;
|
|
261
175
|
} | undefined;
|
|
262
176
|
resumeCanvas?: {
|
|
263
177
|
dialogVisible: boolean;
|
|
264
178
|
iframeFound: boolean;
|
|
265
179
|
iframeVisible: boolean;
|
|
266
180
|
canvasReady: boolean;
|
|
267
|
-
error?: string | undefined;
|
|
268
|
-
canvasSize?: {
|
|
269
|
-
width: number;
|
|
270
|
-
height: number;
|
|
271
|
-
} | undefined;
|
|
272
181
|
screenshotArea?: {
|
|
273
182
|
x: number;
|
|
274
183
|
y: number;
|
|
275
184
|
width: number;
|
|
276
185
|
height: number;
|
|
277
186
|
} | undefined;
|
|
187
|
+
canvasSize?: {
|
|
188
|
+
width: number;
|
|
189
|
+
height: number;
|
|
190
|
+
} | undefined;
|
|
191
|
+
error?: string | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
evaluate?: {
|
|
194
|
+
url: string;
|
|
195
|
+
title: string;
|
|
196
|
+
visibilityState: string;
|
|
197
|
+
hasFocus: boolean;
|
|
278
198
|
} | undefined;
|
|
279
199
|
detectorFingerprint?: {
|
|
280
200
|
userAgentContainsHeadless: boolean;
|
|
@@ -290,21 +210,11 @@ export declare const zhipinDiagnoseBrowserState: import("@roll-agent/sdk").ToolD
|
|
|
290
210
|
permissionQueryIsNative?: boolean | undefined;
|
|
291
211
|
} | undefined;
|
|
292
212
|
storage?: {
|
|
293
|
-
cookies: {
|
|
294
|
-
path: string;
|
|
295
|
-
name: string;
|
|
296
|
-
valueLength: number;
|
|
297
|
-
domain: string;
|
|
298
|
-
expires: string;
|
|
299
|
-
httpOnly: boolean;
|
|
300
|
-
secure: boolean;
|
|
301
|
-
sameSite?: string | undefined;
|
|
302
|
-
}[];
|
|
303
213
|
localStorage: {
|
|
304
|
-
key: string;
|
|
305
214
|
area: "localStorage" | "sessionStorage";
|
|
306
|
-
|
|
215
|
+
key: string;
|
|
307
216
|
valueLength: number;
|
|
217
|
+
valueKind: "string" | "json" | "empty";
|
|
308
218
|
jsonKind?: "string" | "number" | "boolean" | "object" | "null" | "array" | undefined;
|
|
309
219
|
jsonTopLevelKeys?: string[] | undefined;
|
|
310
220
|
jsonArrayLength?: number | undefined;
|
|
@@ -313,10 +223,10 @@ export declare const zhipinDiagnoseBrowserState: import("@roll-agent/sdk").ToolD
|
|
|
313
223
|
arrayLengths?: Record<string, number> | undefined;
|
|
314
224
|
}[];
|
|
315
225
|
sessionStorage: {
|
|
316
|
-
key: string;
|
|
317
226
|
area: "localStorage" | "sessionStorage";
|
|
318
|
-
|
|
227
|
+
key: string;
|
|
319
228
|
valueLength: number;
|
|
229
|
+
valueKind: "string" | "json" | "empty";
|
|
320
230
|
jsonKind?: "string" | "number" | "boolean" | "object" | "null" | "array" | undefined;
|
|
321
231
|
jsonTopLevelKeys?: string[] | undefined;
|
|
322
232
|
jsonArrayLength?: number | undefined;
|
|
@@ -324,9 +234,19 @@ export declare const zhipinDiagnoseBrowserState: import("@roll-agent/sdk").ToolD
|
|
|
324
234
|
booleanFields?: Record<string, boolean> | undefined;
|
|
325
235
|
arrayLengths?: Record<string, number> | undefined;
|
|
326
236
|
}[];
|
|
237
|
+
cookies: {
|
|
238
|
+
name: string;
|
|
239
|
+
domain: string;
|
|
240
|
+
path: string;
|
|
241
|
+
expires: string;
|
|
242
|
+
valueLength: number;
|
|
243
|
+
httpOnly: boolean;
|
|
244
|
+
secure: boolean;
|
|
245
|
+
sameSite?: string | undefined;
|
|
246
|
+
}[];
|
|
327
247
|
counterDiffs: {
|
|
328
|
-
key: string;
|
|
329
248
|
area: "localStorage" | "sessionStorage";
|
|
249
|
+
key: string;
|
|
330
250
|
beforePresent: boolean;
|
|
331
251
|
afterPresent: boolean;
|
|
332
252
|
numericDeltas?: Record<string, {
|
|
@@ -8,13 +8,13 @@ type ZhipinExchangeWechatDeps = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare function setZhipinExchangeWechatDepsForTests(override: Partial<ZhipinExchangeWechatDeps> | undefined): void;
|
|
10
10
|
export declare const zhipinExchangeWechat: import("@roll-agent/sdk").ToolDefinition<{
|
|
11
|
-
index?: number | undefined;
|
|
12
11
|
conversationId?: string | undefined;
|
|
13
12
|
candidateName?: string | undefined;
|
|
13
|
+
index?: number | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
success: boolean;
|
|
16
16
|
exchanged: boolean;
|
|
17
|
-
error?: string | undefined;
|
|
18
17
|
wechatNumber?: string | undefined;
|
|
18
|
+
error?: string | undefined;
|
|
19
19
|
}>;
|
|
20
20
|
export {};
|
|
@@ -8,8 +8,13 @@ type ZhipinFilterRecommendCandidatesDeps = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare function setZhipinFilterRecommendCandidatesDepsForTests(override: Partial<ZhipinFilterRecommendCandidatesDeps> | undefined): void;
|
|
10
10
|
export declare const zhipinFilterRecommendCandidates: import("@roll-agent/sdk").ToolDefinition<{
|
|
11
|
-
|
|
11
|
+
applyMode?: "replace" | "patch" | undefined;
|
|
12
|
+
ageMin?: number | undefined;
|
|
13
|
+
ageMax?: number | undefined;
|
|
14
|
+
locationCity?: string | undefined;
|
|
15
|
+
locationDistrict?: string | undefined;
|
|
12
16
|
gender?: "不限" | "男" | "女" | undefined;
|
|
17
|
+
activity?: "不限" | "刚刚活跃" | "今日活跃" | "3日内活跃" | "本周活跃" | "本月活跃" | undefined;
|
|
13
18
|
major?: string[] | undefined;
|
|
14
19
|
recentNotView?: string | undefined;
|
|
15
20
|
exchangeResumeWithColleague?: string | undefined;
|
|
@@ -21,23 +26,18 @@ export declare const zhipinFilterRecommendCandidates: import("@roll-agent/sdk").
|
|
|
21
26
|
degree?: string[] | undefined;
|
|
22
27
|
experience?: string[] | undefined;
|
|
23
28
|
callPhone?: string | undefined;
|
|
24
|
-
ageMin?: number | undefined;
|
|
25
|
-
ageMax?: number | undefined;
|
|
26
|
-
applyMode?: "replace" | "patch" | undefined;
|
|
27
|
-
locationCity?: string | undefined;
|
|
28
|
-
locationDistrict?: string | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
status: "error" | "applied" | "recommend_not_ready" | "filter_not_found" | "requires_vip" | "age_not_applied" | "clear_failed" | "submit_failed";
|
|
31
30
|
success: boolean;
|
|
31
|
+
status: "error" | "applied" | "recommend_not_ready" | "filter_not_found" | "requires_vip" | "age_not_applied" | "clear_failed" | "submit_failed";
|
|
32
32
|
requested: {
|
|
33
|
+
applyMode: "replace" | "patch";
|
|
33
34
|
optionSelections: {
|
|
34
|
-
|
|
35
|
+
fieldKey: string;
|
|
35
36
|
label: string;
|
|
37
|
+
values: string[];
|
|
36
38
|
selection: "single" | "multi";
|
|
37
|
-
fieldKey: string;
|
|
38
39
|
clearValue: string;
|
|
39
40
|
}[];
|
|
40
|
-
applyMode: "replace" | "patch";
|
|
41
41
|
ageMin?: number | undefined;
|
|
42
42
|
ageMax?: number | undefined;
|
|
43
43
|
location?: {
|
|
@@ -45,22 +45,22 @@ export declare const zhipinFilterRecommendCandidates: import("@roll-agent/sdk").
|
|
|
45
45
|
district?: string | undefined;
|
|
46
46
|
} | undefined;
|
|
47
47
|
};
|
|
48
|
-
error?: string | undefined;
|
|
49
48
|
applied?: {
|
|
50
49
|
optionSelections: {
|
|
51
|
-
values: string[];
|
|
52
|
-
label: string;
|
|
53
50
|
fieldKey: string;
|
|
51
|
+
label: string;
|
|
52
|
+
values: string[];
|
|
54
53
|
}[];
|
|
55
|
-
activity?: string | undefined;
|
|
56
|
-
gender?: string | undefined;
|
|
57
54
|
ageMin?: number | undefined;
|
|
58
55
|
ageMax?: number | undefined;
|
|
59
56
|
location?: {
|
|
60
57
|
city: string;
|
|
61
58
|
district?: string | undefined;
|
|
62
59
|
} | undefined;
|
|
60
|
+
gender?: string | undefined;
|
|
61
|
+
activity?: string | undefined;
|
|
63
62
|
} | undefined;
|
|
64
63
|
filterButtonText?: string | undefined;
|
|
64
|
+
error?: string | undefined;
|
|
65
65
|
}>;
|
|
66
66
|
export {};
|
|
@@ -17,29 +17,22 @@ type ZhipinGenerateReplyPreviewDeps = {
|
|
|
17
17
|
};
|
|
18
18
|
export declare function setZhipinGenerateReplyPreviewDepsForTests(override: Partial<ZhipinGenerateReplyPreviewDeps> | undefined): void;
|
|
19
19
|
export declare const zhipinGenerateReplyPreview: import("@roll-agent/sdk").ToolDefinition<{
|
|
20
|
-
|
|
20
|
+
maxMessages: number;
|
|
21
21
|
conversationId?: string | undefined;
|
|
22
22
|
candidateName?: string | undefined;
|
|
23
|
+
index?: number | undefined;
|
|
23
24
|
reasoning?: {
|
|
24
25
|
enabled: boolean;
|
|
25
|
-
scope?: "reply" | "all" | undefined;
|
|
26
26
|
effort?: "high" | "low" | "medium" | undefined;
|
|
27
|
+
scope?: "reply" | "all" | undefined;
|
|
27
28
|
} | undefined;
|
|
28
|
-
maxMessages?: number | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
success: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
preparedReplyId?: string | undefined;
|
|
32
|
+
suggestedReply?: string | undefined;
|
|
33
33
|
stage?: string | undefined;
|
|
34
34
|
confidence?: number | undefined;
|
|
35
|
-
requestId?: string | undefined;
|
|
36
35
|
expiresAt?: number | undefined;
|
|
37
|
-
suggestedReply?: string | undefined;
|
|
38
|
-
preparedReplyId?: string | undefined;
|
|
39
|
-
clientTimeoutMs?: number | undefined;
|
|
40
|
-
lastStartedPhase?: string | undefined;
|
|
41
|
-
activePhase?: string | undefined;
|
|
42
|
-
phaseLatencies?: Record<string, number> | undefined;
|
|
43
36
|
timing?: {
|
|
44
37
|
totalLatencyMs: number;
|
|
45
38
|
preparedContextHit: boolean;
|
|
@@ -49,12 +42,12 @@ export declare const zhipinGenerateReplyPreview: import("@roll-agent/sdk").ToolD
|
|
|
49
42
|
} | undefined;
|
|
50
43
|
gateRewritten?: boolean | undefined;
|
|
51
44
|
replyVariantSelection?: {
|
|
45
|
+
groupId: string;
|
|
52
46
|
options: {
|
|
53
47
|
option: "option_1" | "option_2";
|
|
54
|
-
expiresAt: number;
|
|
55
48
|
suggestedReply: string;
|
|
49
|
+
expiresAt: number;
|
|
56
50
|
}[];
|
|
57
|
-
groupId: string;
|
|
58
51
|
findings: {
|
|
59
52
|
code: string;
|
|
60
53
|
description: string;
|
|
@@ -62,6 +55,13 @@ export declare const zhipinGenerateReplyPreview: import("@roll-agent/sdk").ToolD
|
|
|
62
55
|
rubricVersion: string;
|
|
63
56
|
rubricHash: string;
|
|
64
57
|
} | undefined;
|
|
58
|
+
error?: string | undefined;
|
|
65
59
|
errorKind?: "timeout" | "rejected" | "server_error" | undefined;
|
|
60
|
+
requestId?: string | undefined;
|
|
61
|
+
elapsedMs?: number | undefined;
|
|
62
|
+
clientTimeoutMs?: number | undefined;
|
|
63
|
+
lastStartedPhase?: string | undefined;
|
|
64
|
+
activePhase?: string | undefined;
|
|
65
|
+
phaseLatencies?: Record<string, number> | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
export {};
|