@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,292 +1,85 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const workflowDraftSchema: z.
|
|
2
|
+
export declare const workflowDraftSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
description: z.ZodString;
|
|
6
6
|
appliesTo: z.ZodObject<{
|
|
7
|
-
origins: z.ZodArray<z.
|
|
7
|
+
origins: z.ZodArray<z.ZodString>;
|
|
8
8
|
pathPrefix: z.ZodOptional<z.ZodString>;
|
|
9
|
-
},
|
|
10
|
-
origins: string[];
|
|
11
|
-
pathPrefix?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
origins: string[];
|
|
14
|
-
pathPrefix?: string | undefined;
|
|
15
|
-
}>;
|
|
9
|
+
}, z.core.$strict>;
|
|
16
10
|
source: z.ZodString;
|
|
17
|
-
parameterSchema: z.
|
|
18
|
-
capabilities: z.ZodArray<z.ZodEnum<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
parameterSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
13
|
+
navigate: "navigate";
|
|
14
|
+
read: "read";
|
|
15
|
+
interact: "interact";
|
|
16
|
+
capture: "capture";
|
|
17
|
+
}>>;
|
|
18
|
+
allowedOrigins: z.ZodArray<z.ZodString>;
|
|
19
|
+
preconditions: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
20
|
+
postconditions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
21
|
notes: z.ZodDefault<z.ZodString>;
|
|
23
|
-
locatorExplanations: z.ZodDefault<z.ZodArray<z.ZodString
|
|
24
|
-
},
|
|
25
|
-
id: string;
|
|
26
|
-
source: string;
|
|
27
|
-
name: string;
|
|
28
|
-
description: string;
|
|
29
|
-
capabilities: ("navigate" | "read" | "interact" | "capture")[];
|
|
30
|
-
allowedOrigins: string[];
|
|
31
|
-
preconditions: Record<string, unknown>[];
|
|
32
|
-
postconditions: Record<string, unknown>[];
|
|
33
|
-
appliesTo: {
|
|
34
|
-
origins: string[];
|
|
35
|
-
pathPrefix?: string | undefined;
|
|
36
|
-
};
|
|
37
|
-
parameterSchema: Record<string, unknown>;
|
|
38
|
-
notes: string;
|
|
39
|
-
locatorExplanations: string[];
|
|
40
|
-
}, {
|
|
41
|
-
id: string;
|
|
42
|
-
source: string;
|
|
43
|
-
name: string;
|
|
44
|
-
description: string;
|
|
45
|
-
capabilities: ("navigate" | "read" | "interact" | "capture")[];
|
|
46
|
-
allowedOrigins: string[];
|
|
47
|
-
postconditions: Record<string, unknown>[];
|
|
48
|
-
appliesTo: {
|
|
49
|
-
origins: string[];
|
|
50
|
-
pathPrefix?: string | undefined;
|
|
51
|
-
};
|
|
52
|
-
parameterSchema: Record<string, unknown>;
|
|
53
|
-
preconditions?: Record<string, unknown>[] | undefined;
|
|
54
|
-
notes?: string | undefined;
|
|
55
|
-
locatorExplanations?: string[] | undefined;
|
|
56
|
-
}>, {
|
|
57
|
-
id: string;
|
|
58
|
-
source: string;
|
|
59
|
-
name: string;
|
|
60
|
-
description: string;
|
|
61
|
-
capabilities: ("navigate" | "read" | "interact" | "capture")[];
|
|
62
|
-
allowedOrigins: string[];
|
|
63
|
-
preconditions: Record<string, unknown>[];
|
|
64
|
-
postconditions: Record<string, unknown>[];
|
|
65
|
-
appliesTo: {
|
|
66
|
-
origins: string[];
|
|
67
|
-
pathPrefix?: string | undefined;
|
|
68
|
-
};
|
|
69
|
-
parameterSchema: Record<string, unknown>;
|
|
70
|
-
notes: string;
|
|
71
|
-
locatorExplanations: string[];
|
|
72
|
-
}, {
|
|
73
|
-
id: string;
|
|
74
|
-
source: string;
|
|
75
|
-
name: string;
|
|
76
|
-
description: string;
|
|
77
|
-
capabilities: ("navigate" | "read" | "interact" | "capture")[];
|
|
78
|
-
allowedOrigins: string[];
|
|
79
|
-
postconditions: Record<string, unknown>[];
|
|
80
|
-
appliesTo: {
|
|
81
|
-
origins: string[];
|
|
82
|
-
pathPrefix?: string | undefined;
|
|
83
|
-
};
|
|
84
|
-
parameterSchema: Record<string, unknown>;
|
|
85
|
-
preconditions?: Record<string, unknown>[] | undefined;
|
|
86
|
-
notes?: string | undefined;
|
|
87
|
-
locatorExplanations?: string[] | undefined;
|
|
88
|
-
}>;
|
|
22
|
+
locatorExplanations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
23
|
+
}, z.core.$strict>;
|
|
89
24
|
export type WorkflowDraftInput = z.input<typeof workflowDraftSchema>;
|
|
90
25
|
export type WorkflowDraft = z.output<typeof workflowDraftSchema>;
|
|
91
|
-
export declare const workflowStatusSchema: z.ZodEnum<
|
|
26
|
+
export declare const workflowStatusSchema: z.ZodEnum<{
|
|
27
|
+
disabled: "disabled";
|
|
28
|
+
draft: "draft";
|
|
29
|
+
active: "active";
|
|
30
|
+
suspended: "suspended";
|
|
31
|
+
}>;
|
|
92
32
|
declare const receiptSchema: z.ZodObject<{
|
|
93
33
|
compiled: z.ZodLiteral<true>;
|
|
94
34
|
success: z.ZodLiteral<true>;
|
|
95
35
|
verifiedAssertions: z.ZodNumber;
|
|
96
36
|
executionDigest: z.ZodString;
|
|
97
|
-
},
|
|
98
|
-
success: true;
|
|
99
|
-
verifiedAssertions: number;
|
|
100
|
-
executionDigest: string;
|
|
101
|
-
compiled: true;
|
|
102
|
-
}, {
|
|
103
|
-
success: true;
|
|
104
|
-
verifiedAssertions: number;
|
|
105
|
-
executionDigest: string;
|
|
106
|
-
compiled: true;
|
|
107
|
-
}>;
|
|
37
|
+
}, z.core.$strict>;
|
|
108
38
|
export type WorkflowValidationReceipt = z.infer<typeof receiptSchema>;
|
|
109
39
|
declare const stateSchema: z.ZodObject<{
|
|
110
|
-
status: z.ZodEnum<
|
|
40
|
+
status: z.ZodEnum<{
|
|
41
|
+
disabled: "disabled";
|
|
42
|
+
draft: "draft";
|
|
43
|
+
active: "active";
|
|
44
|
+
suspended: "suspended";
|
|
45
|
+
}>;
|
|
111
46
|
validations: z.ZodArray<z.ZodObject<{
|
|
112
47
|
compiled: z.ZodLiteral<true>;
|
|
113
48
|
success: z.ZodLiteral<true>;
|
|
114
49
|
verifiedAssertions: z.ZodNumber;
|
|
115
50
|
executionDigest: z.ZodString;
|
|
116
|
-
} & {
|
|
117
51
|
version: z.ZodString;
|
|
118
52
|
at: z.ZodString;
|
|
119
|
-
},
|
|
120
|
-
at: string;
|
|
121
|
-
success: true;
|
|
122
|
-
verifiedAssertions: number;
|
|
123
|
-
version: string;
|
|
124
|
-
executionDigest: string;
|
|
125
|
-
compiled: true;
|
|
126
|
-
}, {
|
|
127
|
-
at: string;
|
|
128
|
-
success: true;
|
|
129
|
-
verifiedAssertions: number;
|
|
130
|
-
version: string;
|
|
131
|
-
executionDigest: string;
|
|
132
|
-
compiled: true;
|
|
133
|
-
}>, "many">;
|
|
53
|
+
}, z.core.$strict>>;
|
|
134
54
|
updatedAt: z.ZodString;
|
|
135
|
-
},
|
|
136
|
-
status: "disabled" | "draft" | "active" | "suspended";
|
|
137
|
-
validations: {
|
|
138
|
-
at: string;
|
|
139
|
-
success: true;
|
|
140
|
-
verifiedAssertions: number;
|
|
141
|
-
version: string;
|
|
142
|
-
executionDigest: string;
|
|
143
|
-
compiled: true;
|
|
144
|
-
}[];
|
|
145
|
-
updatedAt: string;
|
|
146
|
-
}, {
|
|
147
|
-
status: "disabled" | "draft" | "active" | "suspended";
|
|
148
|
-
validations: {
|
|
149
|
-
at: string;
|
|
150
|
-
success: true;
|
|
151
|
-
verifiedAssertions: number;
|
|
152
|
-
version: string;
|
|
153
|
-
executionDigest: string;
|
|
154
|
-
compiled: true;
|
|
155
|
-
}[];
|
|
156
|
-
updatedAt: string;
|
|
157
|
-
}>;
|
|
55
|
+
}, z.core.$strict>;
|
|
158
56
|
export type WorkflowState = z.infer<typeof stateSchema>;
|
|
159
57
|
declare const versionSchema: z.ZodObject<{
|
|
160
58
|
version: z.ZodString;
|
|
161
59
|
createdAt: z.ZodString;
|
|
162
|
-
draft: z.
|
|
60
|
+
draft: z.ZodObject<{
|
|
163
61
|
id: z.ZodString;
|
|
164
62
|
name: z.ZodString;
|
|
165
63
|
description: z.ZodString;
|
|
166
64
|
appliesTo: z.ZodObject<{
|
|
167
|
-
origins: z.ZodArray<z.
|
|
65
|
+
origins: z.ZodArray<z.ZodString>;
|
|
168
66
|
pathPrefix: z.ZodOptional<z.ZodString>;
|
|
169
|
-
},
|
|
170
|
-
origins: string[];
|
|
171
|
-
pathPrefix?: string | undefined;
|
|
172
|
-
}, {
|
|
173
|
-
origins: string[];
|
|
174
|
-
pathPrefix?: string | undefined;
|
|
175
|
-
}>;
|
|
67
|
+
}, z.core.$strict>;
|
|
176
68
|
source: z.ZodString;
|
|
177
|
-
parameterSchema: z.
|
|
178
|
-
capabilities: z.ZodArray<z.ZodEnum<
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
69
|
+
parameterSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
70
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
71
|
+
navigate: "navigate";
|
|
72
|
+
read: "read";
|
|
73
|
+
interact: "interact";
|
|
74
|
+
capture: "capture";
|
|
75
|
+
}>>;
|
|
76
|
+
allowedOrigins: z.ZodArray<z.ZodString>;
|
|
77
|
+
preconditions: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
78
|
+
postconditions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
182
79
|
notes: z.ZodDefault<z.ZodString>;
|
|
183
|
-
locatorExplanations: z.ZodDefault<z.ZodArray<z.ZodString
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
source: string;
|
|
187
|
-
name: string;
|
|
188
|
-
description: string;
|
|
189
|
-
capabilities: ("navigate" | "read" | "interact" | "capture")[];
|
|
190
|
-
allowedOrigins: string[];
|
|
191
|
-
preconditions: Record<string, unknown>[];
|
|
192
|
-
postconditions: Record<string, unknown>[];
|
|
193
|
-
appliesTo: {
|
|
194
|
-
origins: string[];
|
|
195
|
-
pathPrefix?: string | undefined;
|
|
196
|
-
};
|
|
197
|
-
parameterSchema: Record<string, unknown>;
|
|
198
|
-
notes: string;
|
|
199
|
-
locatorExplanations: string[];
|
|
200
|
-
}, {
|
|
201
|
-
id: string;
|
|
202
|
-
source: string;
|
|
203
|
-
name: string;
|
|
204
|
-
description: string;
|
|
205
|
-
capabilities: ("navigate" | "read" | "interact" | "capture")[];
|
|
206
|
-
allowedOrigins: string[];
|
|
207
|
-
postconditions: Record<string, unknown>[];
|
|
208
|
-
appliesTo: {
|
|
209
|
-
origins: string[];
|
|
210
|
-
pathPrefix?: string | undefined;
|
|
211
|
-
};
|
|
212
|
-
parameterSchema: Record<string, unknown>;
|
|
213
|
-
preconditions?: Record<string, unknown>[] | undefined;
|
|
214
|
-
notes?: string | undefined;
|
|
215
|
-
locatorExplanations?: string[] | undefined;
|
|
216
|
-
}>, {
|
|
217
|
-
id: string;
|
|
218
|
-
source: string;
|
|
219
|
-
name: string;
|
|
220
|
-
description: string;
|
|
221
|
-
capabilities: ("navigate" | "read" | "interact" | "capture")[];
|
|
222
|
-
allowedOrigins: string[];
|
|
223
|
-
preconditions: Record<string, unknown>[];
|
|
224
|
-
postconditions: Record<string, unknown>[];
|
|
225
|
-
appliesTo: {
|
|
226
|
-
origins: string[];
|
|
227
|
-
pathPrefix?: string | undefined;
|
|
228
|
-
};
|
|
229
|
-
parameterSchema: Record<string, unknown>;
|
|
230
|
-
notes: string;
|
|
231
|
-
locatorExplanations: string[];
|
|
232
|
-
}, {
|
|
233
|
-
id: string;
|
|
234
|
-
source: string;
|
|
235
|
-
name: string;
|
|
236
|
-
description: string;
|
|
237
|
-
capabilities: ("navigate" | "read" | "interact" | "capture")[];
|
|
238
|
-
allowedOrigins: string[];
|
|
239
|
-
postconditions: Record<string, unknown>[];
|
|
240
|
-
appliesTo: {
|
|
241
|
-
origins: string[];
|
|
242
|
-
pathPrefix?: string | undefined;
|
|
243
|
-
};
|
|
244
|
-
parameterSchema: Record<string, unknown>;
|
|
245
|
-
preconditions?: Record<string, unknown>[] | undefined;
|
|
246
|
-
notes?: string | undefined;
|
|
247
|
-
locatorExplanations?: string[] | undefined;
|
|
248
|
-
}>;
|
|
249
|
-
}, "strict", z.ZodTypeAny, {
|
|
250
|
-
version: string;
|
|
251
|
-
createdAt: string;
|
|
252
|
-
draft: {
|
|
253
|
-
id: string;
|
|
254
|
-
source: string;
|
|
255
|
-
name: string;
|
|
256
|
-
description: string;
|
|
257
|
-
capabilities: ("navigate" | "read" | "interact" | "capture")[];
|
|
258
|
-
allowedOrigins: string[];
|
|
259
|
-
preconditions: Record<string, unknown>[];
|
|
260
|
-
postconditions: Record<string, unknown>[];
|
|
261
|
-
appliesTo: {
|
|
262
|
-
origins: string[];
|
|
263
|
-
pathPrefix?: string | undefined;
|
|
264
|
-
};
|
|
265
|
-
parameterSchema: Record<string, unknown>;
|
|
266
|
-
notes: string;
|
|
267
|
-
locatorExplanations: string[];
|
|
268
|
-
};
|
|
269
|
-
}, {
|
|
270
|
-
version: string;
|
|
271
|
-
createdAt: string;
|
|
272
|
-
draft: {
|
|
273
|
-
id: string;
|
|
274
|
-
source: string;
|
|
275
|
-
name: string;
|
|
276
|
-
description: string;
|
|
277
|
-
capabilities: ("navigate" | "read" | "interact" | "capture")[];
|
|
278
|
-
allowedOrigins: string[];
|
|
279
|
-
postconditions: Record<string, unknown>[];
|
|
280
|
-
appliesTo: {
|
|
281
|
-
origins: string[];
|
|
282
|
-
pathPrefix?: string | undefined;
|
|
283
|
-
};
|
|
284
|
-
parameterSchema: Record<string, unknown>;
|
|
285
|
-
preconditions?: Record<string, unknown>[] | undefined;
|
|
286
|
-
notes?: string | undefined;
|
|
287
|
-
locatorExplanations?: string[] | undefined;
|
|
288
|
-
};
|
|
289
|
-
}>;
|
|
80
|
+
locatorExplanations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
}, z.core.$strict>;
|
|
290
83
|
export type WorkflowVersion = z.infer<typeof versionSchema>;
|
|
291
84
|
export type StoredWorkflow = WorkflowVersion & {
|
|
292
85
|
state: WorkflowState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roll-agent/browser-use-agent",
|
|
3
|
-
"version": "0.27.
|
|
3
|
+
"version": "0.27.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@roll-agent/browser": "0.
|
|
48
|
-
"@roll-agent/reply-authority-client": "0.
|
|
49
|
-
"@roll-agent/sdk": "0.
|
|
50
|
-
"zod": "
|
|
47
|
+
"@roll-agent/browser": "1.0.0",
|
|
48
|
+
"@roll-agent/reply-authority-client": "1.0.0",
|
|
49
|
+
"@roll-agent/sdk": "1.0.0",
|
|
50
|
+
"zod": "4.6.6"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "^22.0.0"
|