@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.
Files changed (56) hide show
  1. package/dist/browser-use-policy.d.ts +18 -26
  2. package/dist/diagnostics/effective-env.d.ts +2 -14
  3. package/dist/goal/contracts.d.ts +173 -1537
  4. package/dist/goal/decisions.d.ts +1 -9
  5. package/dist/goal/execution-context.d.ts +83 -457
  6. package/dist/goal/form-context.d.ts +104 -480
  7. package/dist/goal/form-handoff.d.ts +12 -138
  8. package/dist/goal/interaction-feedback.d.ts +10 -36
  9. package/dist/goal/observation.d.ts +122 -827
  10. package/dist/goal/picker-observation.d.ts +26 -41
  11. package/dist/goal/picker-state.d.ts +33 -70
  12. package/dist/goal/task-evidence.d.ts +3 -3
  13. package/dist/goal/task-freshness.d.ts +8 -48
  14. package/dist/goal/task-policy.d.ts +10 -10
  15. package/dist/goal/task-progress.d.ts +25 -271
  16. package/dist/goal/task-sources.d.ts +2 -2
  17. package/dist/index.js +1 -1
  18. package/dist/reply-authority/prepared-reply-decision.d.ts +22 -25
  19. package/dist/reply-authority/prepared-reply-judge-context.d.ts +9 -64
  20. package/dist/reply-authority/schemas.d.ts +6 -100
  21. package/dist/runtime-config.d.ts +40 -302
  22. package/dist/tool-action-approval.d.ts +1 -5
  23. package/dist/tools/attach-browser-session.d.ts +2 -2
  24. package/dist/tools/browser-execute.d.ts +19 -19
  25. package/dist/tools/browser-operate.d.ts +113 -113
  26. package/dist/tools/browser-ref-schemas.d.ts +19 -77
  27. package/dist/tools/browser-snapshot.d.ts +7 -7
  28. package/dist/tools/browser-status.d.ts +34 -34
  29. package/dist/tools/browser-stop.d.ts +19 -54
  30. package/dist/tools/browser-workflows.d.ts +87 -454
  31. package/dist/tools/click-ref.d.ts +7 -7
  32. package/dist/tools/type-ref.d.ts +8 -8
  33. package/dist/tools/yupao-send-reply.d.ts +1 -1
  34. package/dist/tools/zhipin-capture-resume.d.ts +7 -7
  35. package/dist/tools/zhipin-close-resume.d.ts +2 -2
  36. package/dist/tools/zhipin-diagnose-browser-state.d.ts +76 -156
  37. package/dist/tools/zhipin-exchange-wechat.d.ts +2 -2
  38. package/dist/tools/zhipin-filter-recommend-candidates.d.ts +15 -15
  39. package/dist/tools/zhipin-generate-reply-preview.d.ts +14 -14
  40. package/dist/tools/zhipin-get-candidate-info.d.ts +16 -16
  41. package/dist/tools/zhipin-get-candidate-list.d.ts +7 -7
  42. package/dist/tools/zhipin-get-username.d.ts +3 -3
  43. package/dist/tools/zhipin-judge-prepared-reply.d.ts +5 -5
  44. package/dist/tools/zhipin-list-recommend-jobs.d.ts +7 -7
  45. package/dist/tools/zhipin-open-chat-page.d.ts +4 -4
  46. package/dist/tools/zhipin-open-chat.d.ts +3 -3
  47. package/dist/tools/zhipin-open-recommend-page.d.ts +3 -3
  48. package/dist/tools/zhipin-open-resume.d.ts +2 -2
  49. package/dist/tools/zhipin-read-messages.d.ts +4 -4
  50. package/dist/tools/zhipin-say-hello.d.ts +3 -3
  51. package/dist/tools/zhipin-scroll-view.d.ts +13 -13
  52. package/dist/tools/zhipin-select-recommend-job.d.ts +16 -16
  53. package/dist/tools/zhipin-send-prepared-reply.d.ts +6 -6
  54. package/dist/tools/zhipin-send-reply.d.ts +2 -10
  55. package/dist/workflows/store.d.ts +46 -253
  56. package/package.json +5 -5
@@ -5,486 +5,119 @@ import { z } from "zod";
5
5
  import { WorkflowStore } from "../workflows/store.ts";
6
6
  export declare const BrowserWorkflowListInputSchema: z.ZodObject<{
7
7
  url: z.ZodString;
8
- }, "strict", z.ZodTypeAny, {
9
- url: string;
10
- }, {
11
- url: string;
12
- }>;
8
+ }, z.core.$strict>;
13
9
  export declare const BrowserWorkflowSaveDraftInputSchema: z.ZodObject<{
14
- draft: z.ZodEffects<z.ZodObject<{
10
+ draft: z.ZodObject<{
15
11
  id: z.ZodString;
16
12
  name: z.ZodString;
17
13
  description: z.ZodString;
18
14
  appliesTo: z.ZodObject<{
19
- origins: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
15
+ origins: z.ZodArray<z.ZodString>;
20
16
  pathPrefix: z.ZodOptional<z.ZodString>;
21
- }, "strict", z.ZodTypeAny, {
22
- origins: string[];
23
- pathPrefix?: string | undefined;
24
- }, {
25
- origins: string[];
26
- pathPrefix?: string | undefined;
27
- }>;
17
+ }, z.core.$strict>;
28
18
  source: z.ZodString;
29
- parameterSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
30
- capabilities: z.ZodArray<z.ZodEnum<["read", "interact", "navigate", "capture"]>, "many">;
31
- allowedOrigins: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
32
- preconditions: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
33
- postconditions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
19
+ parameterSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
20
+ capabilities: z.ZodArray<z.ZodEnum<{
21
+ navigate: "navigate";
22
+ read: "read";
23
+ interact: "interact";
24
+ capture: "capture";
25
+ }>>;
26
+ allowedOrigins: z.ZodArray<z.ZodString>;
27
+ preconditions: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
28
+ postconditions: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
34
29
  notes: z.ZodDefault<z.ZodString>;
35
- locatorExplanations: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
36
- }, "strict", z.ZodTypeAny, {
37
- id: string;
38
- source: string;
39
- name: string;
40
- description: string;
41
- capabilities: ("navigate" | "read" | "interact" | "capture")[];
42
- allowedOrigins: string[];
43
- preconditions: Record<string, unknown>[];
44
- postconditions: Record<string, unknown>[];
45
- appliesTo: {
46
- origins: string[];
47
- pathPrefix?: string | undefined;
48
- };
49
- parameterSchema: Record<string, unknown>;
50
- notes: string;
51
- locatorExplanations: string[];
52
- }, {
53
- id: string;
54
- source: string;
55
- name: string;
56
- description: string;
57
- capabilities: ("navigate" | "read" | "interact" | "capture")[];
58
- allowedOrigins: string[];
59
- postconditions: Record<string, unknown>[];
60
- appliesTo: {
61
- origins: string[];
62
- pathPrefix?: string | undefined;
63
- };
64
- parameterSchema: Record<string, unknown>;
65
- preconditions?: Record<string, unknown>[] | undefined;
66
- notes?: string | undefined;
67
- locatorExplanations?: string[] | undefined;
68
- }>, {
69
- id: string;
70
- source: string;
71
- name: string;
72
- description: string;
73
- capabilities: ("navigate" | "read" | "interact" | "capture")[];
74
- allowedOrigins: string[];
75
- preconditions: Record<string, unknown>[];
76
- postconditions: Record<string, unknown>[];
77
- appliesTo: {
78
- origins: string[];
79
- pathPrefix?: string | undefined;
80
- };
81
- parameterSchema: Record<string, unknown>;
82
- notes: string;
83
- locatorExplanations: string[];
84
- }, {
85
- id: string;
86
- source: string;
87
- name: string;
88
- description: string;
89
- capabilities: ("navigate" | "read" | "interact" | "capture")[];
90
- allowedOrigins: string[];
91
- postconditions: Record<string, unknown>[];
92
- appliesTo: {
93
- origins: string[];
94
- pathPrefix?: string | undefined;
95
- };
96
- parameterSchema: Record<string, unknown>;
97
- preconditions?: Record<string, unknown>[] | undefined;
98
- notes?: string | undefined;
99
- locatorExplanations?: string[] | undefined;
100
- }>;
101
- }, "strict", z.ZodTypeAny, {
102
- draft: {
103
- id: string;
104
- source: string;
105
- name: string;
106
- description: string;
107
- capabilities: ("navigate" | "read" | "interact" | "capture")[];
108
- allowedOrigins: string[];
109
- preconditions: Record<string, unknown>[];
110
- postconditions: Record<string, unknown>[];
111
- appliesTo: {
112
- origins: string[];
113
- pathPrefix?: string | undefined;
114
- };
115
- parameterSchema: Record<string, unknown>;
116
- notes: string;
117
- locatorExplanations: string[];
118
- };
119
- }, {
120
- draft: {
121
- id: string;
122
- source: string;
123
- name: string;
124
- description: string;
125
- capabilities: ("navigate" | "read" | "interact" | "capture")[];
126
- allowedOrigins: string[];
127
- postconditions: Record<string, unknown>[];
128
- appliesTo: {
129
- origins: string[];
130
- pathPrefix?: string | undefined;
131
- };
132
- parameterSchema: Record<string, unknown>;
133
- preconditions?: Record<string, unknown>[] | undefined;
134
- notes?: string | undefined;
135
- locatorExplanations?: string[] | undefined;
136
- };
137
- }>;
30
+ locatorExplanations: z.ZodDefault<z.ZodArray<z.ZodString>>;
31
+ }, z.core.$strict>;
32
+ }, z.core.$strict>;
138
33
  export declare const BrowserWorkflowExecutionInputSchema: z.ZodObject<{
139
34
  id: z.ZodString;
140
35
  version: z.ZodString;
141
- } & {
142
36
  pageId: z.ZodString;
143
37
  args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
144
38
  scriptApproval: z.ZodOptional<z.ZodObject<{
145
39
  id: z.ZodString;
146
- }, "strict", z.ZodTypeAny, {
147
- id: string;
148
- }, {
149
- id: string;
150
- }>>;
151
- }, "strict", z.ZodTypeAny, {
152
- id: string;
153
- args: Record<string, unknown>;
154
- pageId: string;
155
- version: string;
156
- scriptApproval?: {
157
- id: string;
158
- } | undefined;
159
- }, {
160
- id: string;
161
- pageId: string;
162
- version: string;
163
- args?: Record<string, unknown> | undefined;
164
- scriptApproval?: {
165
- id: string;
166
- } | undefined;
167
- }>;
40
+ }, z.core.$strict>>;
41
+ }, z.core.$strict>;
168
42
  export declare const BrowserWorkflowSetStatusInputSchema: z.ZodObject<{
169
43
  id: z.ZodString;
170
44
  version: z.ZodString;
171
- } & {
172
- status: z.ZodEnum<["active", "disabled"]>;
45
+ status: z.ZodEnum<{
46
+ disabled: "disabled";
47
+ active: "active";
48
+ }>;
173
49
  toolActionApproval: z.ZodOptional<z.ZodObject<{
174
50
  id: z.ZodString;
175
- }, "strip", z.ZodTypeAny, {
176
- id: string;
177
- }, {
178
- id: string;
179
- }>>;
180
- }, "strict", z.ZodTypeAny, {
181
- status: "disabled" | "active";
182
- id: string;
183
- version: string;
184
- toolActionApproval?: {
185
- id: string;
186
- } | undefined;
187
- }, {
188
- status: "disabled" | "active";
189
- id: string;
190
- version: string;
191
- toolActionApproval?: {
192
- id: string;
193
- } | undefined;
194
- }>;
51
+ }, z.core.$strip>>;
52
+ }, z.core.$strict>;
195
53
  export declare const BrowserWorkflowExecutionOutputSchema: z.ZodObject<{
196
54
  workflow: z.ZodObject<{
197
55
  id: z.ZodString;
198
56
  version: z.ZodString;
199
- } & {
200
- status: z.ZodEnum<["draft", "active", "disabled", "suspended"]>;
201
- }, "strip", z.ZodTypeAny, {
202
- status: "disabled" | "draft" | "active" | "suspended";
203
- id: string;
204
- version: string;
205
- }, {
206
- status: "disabled" | "draft" | "active" | "suspended";
207
- id: string;
208
- version: string;
209
- }>;
57
+ status: z.ZodEnum<{
58
+ disabled: "disabled";
59
+ draft: "draft";
60
+ active: "active";
61
+ suspended: "suspended";
62
+ }>;
63
+ }, z.core.$strip>;
210
64
  result: z.ZodObject<{
211
65
  executionId: z.ZodString;
212
- status: z.ZodEnum<["completed", "failed", "cancelled", "timed_out"]>;
213
- verification: z.ZodEnum<["passed", "not_requested", "failed"]>;
66
+ status: z.ZodEnum<{
67
+ failed: "failed";
68
+ completed: "completed";
69
+ cancelled: "cancelled";
70
+ timed_out: "timed_out";
71
+ }>;
72
+ verification: z.ZodEnum<{
73
+ not_requested: "not_requested";
74
+ passed: "passed";
75
+ failed: "failed";
76
+ }>;
214
77
  value: z.ZodOptional<z.ZodUnknown>;
215
- logs: z.ZodArray<z.ZodString, "many">;
78
+ logs: z.ZodArray<z.ZodString>;
216
79
  actions: z.ZodArray<z.ZodObject<{
217
80
  index: z.ZodNumber;
218
81
  method: z.ZodString;
219
82
  executed: z.ZodBoolean;
220
- verification: z.ZodEnum<["not_requested", "passed", "failed"]>;
83
+ verification: z.ZodEnum<{
84
+ not_requested: "not_requested";
85
+ passed: "passed";
86
+ failed: "failed";
87
+ }>;
221
88
  elapsedMs: z.ZodNumber;
222
89
  errorCode: z.ZodOptional<z.ZodString>;
223
- }, "strip", z.ZodTypeAny, {
224
- index: number;
225
- method: string;
226
- executed: boolean;
227
- verification: "not_requested" | "passed" | "failed";
228
- elapsedMs: number;
229
- errorCode?: string | undefined;
230
- }, {
231
- index: number;
232
- method: string;
233
- executed: boolean;
234
- verification: "not_requested" | "passed" | "failed";
235
- elapsedMs: number;
236
- errorCode?: string | undefined;
237
- }>, "many">;
90
+ }, z.core.$strip>>;
238
91
  checks: z.ZodArray<z.ZodObject<{
239
92
  passed: z.ZodBoolean;
240
93
  kind: z.ZodString;
241
94
  elapsedMs: z.ZodNumber;
242
- actual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
243
- }, "strip", z.ZodTypeAny, {
244
- passed: boolean;
245
- elapsedMs: number;
246
- kind: string;
247
- actual?: Record<string, string | number | boolean | null> | undefined;
248
- }, {
249
- passed: boolean;
250
- elapsedMs: number;
251
- kind: string;
252
- actual?: Record<string, string | number | boolean | null> | undefined;
253
- }>, "many">;
95
+ actual: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
96
+ }, z.core.$strip>>;
254
97
  observation: z.ZodObject<{
255
98
  beforeUrl: z.ZodOptional<z.ZodString>;
256
99
  afterUrl: z.ZodOptional<z.ZodString>;
257
100
  changed: z.ZodBoolean;
258
- changes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
259
- }, "strip", z.ZodTypeAny, {
260
- changed: boolean;
261
- beforeUrl?: string | undefined;
262
- afterUrl?: string | undefined;
263
- changes?: string[] | undefined;
264
- }, {
265
- changed: boolean;
266
- beforeUrl?: string | undefined;
267
- afterUrl?: string | undefined;
268
- changes?: string[] | undefined;
269
- }>;
101
+ changes: z.ZodOptional<z.ZodArray<z.ZodString>>;
102
+ }, z.core.$strip>;
270
103
  artifacts: z.ZodArray<z.ZodObject<{
271
104
  id: z.ZodString;
272
105
  path: z.ZodString;
273
106
  mimeType: z.ZodLiteral<"image/png">;
274
- }, "strip", z.ZodTypeAny, {
275
- path: string;
276
- id: string;
277
- mimeType: "image/png";
278
- }, {
279
- path: string;
280
- id: string;
281
- mimeType: "image/png";
282
- }>, "many">;
107
+ }, z.core.$strip>>;
283
108
  error: z.ZodOptional<z.ZodObject<{
284
109
  code: z.ZodString;
285
110
  message: z.ZodString;
286
- }, "strip", z.ZodTypeAny, {
287
- code: string;
288
- message: string;
289
- }, {
290
- code: string;
291
- message: string;
292
- }>>;
111
+ }, z.core.$strip>>;
293
112
  metrics: z.ZodObject<{
294
113
  elapsedMs: z.ZodNumber;
295
114
  helperCalls: z.ZodNumber;
296
115
  verifiedAssertions: z.ZodNumber;
297
- }, "strip", z.ZodTypeAny, {
298
- elapsedMs: number;
299
- helperCalls: number;
300
- verifiedAssertions: number;
301
- }, {
302
- elapsedMs: number;
303
- helperCalls: number;
304
- verifiedAssertions: number;
305
- }>;
306
- }, "strip", z.ZodTypeAny, {
307
- status: "failed" | "completed" | "cancelled" | "timed_out";
308
- verification: "not_requested" | "passed" | "failed";
309
- executionId: string;
310
- logs: string[];
311
- actions: {
312
- index: number;
313
- method: string;
314
- executed: boolean;
315
- verification: "not_requested" | "passed" | "failed";
316
- elapsedMs: number;
317
- errorCode?: string | undefined;
318
- }[];
319
- checks: {
320
- passed: boolean;
321
- elapsedMs: number;
322
- kind: string;
323
- actual?: Record<string, string | number | boolean | null> | undefined;
324
- }[];
325
- observation: {
326
- changed: boolean;
327
- beforeUrl?: string | undefined;
328
- afterUrl?: string | undefined;
329
- changes?: string[] | undefined;
330
- };
331
- artifacts: {
332
- path: string;
333
- id: string;
334
- mimeType: "image/png";
335
- }[];
336
- metrics: {
337
- elapsedMs: number;
338
- helperCalls: number;
339
- verifiedAssertions: number;
340
- };
341
- value?: unknown;
342
- error?: {
343
- code: string;
344
- message: string;
345
- } | undefined;
346
- }, {
347
- status: "failed" | "completed" | "cancelled" | "timed_out";
348
- verification: "not_requested" | "passed" | "failed";
349
- executionId: string;
350
- logs: string[];
351
- actions: {
352
- index: number;
353
- method: string;
354
- executed: boolean;
355
- verification: "not_requested" | "passed" | "failed";
356
- elapsedMs: number;
357
- errorCode?: string | undefined;
358
- }[];
359
- checks: {
360
- passed: boolean;
361
- elapsedMs: number;
362
- kind: string;
363
- actual?: Record<string, string | number | boolean | null> | undefined;
364
- }[];
365
- observation: {
366
- changed: boolean;
367
- beforeUrl?: string | undefined;
368
- afterUrl?: string | undefined;
369
- changes?: string[] | undefined;
370
- };
371
- artifacts: {
372
- path: string;
373
- id: string;
374
- mimeType: "image/png";
375
- }[];
376
- metrics: {
377
- elapsedMs: number;
378
- helperCalls: number;
379
- verifiedAssertions: number;
380
- };
381
- value?: unknown;
382
- error?: {
383
- code: string;
384
- message: string;
385
- } | undefined;
386
- }>;
116
+ }, z.core.$strip>;
117
+ }, z.core.$strip>;
387
118
  needsReexploration: z.ZodBoolean;
388
119
  validationRecorded: z.ZodOptional<z.ZodBoolean>;
389
- }, "strip", z.ZodTypeAny, {
390
- result: {
391
- status: "failed" | "completed" | "cancelled" | "timed_out";
392
- verification: "not_requested" | "passed" | "failed";
393
- executionId: string;
394
- logs: string[];
395
- actions: {
396
- index: number;
397
- method: string;
398
- executed: boolean;
399
- verification: "not_requested" | "passed" | "failed";
400
- elapsedMs: number;
401
- errorCode?: string | undefined;
402
- }[];
403
- checks: {
404
- passed: boolean;
405
- elapsedMs: number;
406
- kind: string;
407
- actual?: Record<string, string | number | boolean | null> | undefined;
408
- }[];
409
- observation: {
410
- changed: boolean;
411
- beforeUrl?: string | undefined;
412
- afterUrl?: string | undefined;
413
- changes?: string[] | undefined;
414
- };
415
- artifacts: {
416
- path: string;
417
- id: string;
418
- mimeType: "image/png";
419
- }[];
420
- metrics: {
421
- elapsedMs: number;
422
- helperCalls: number;
423
- verifiedAssertions: number;
424
- };
425
- value?: unknown;
426
- error?: {
427
- code: string;
428
- message: string;
429
- } | undefined;
430
- };
431
- workflow: {
432
- status: "disabled" | "draft" | "active" | "suspended";
433
- id: string;
434
- version: string;
435
- };
436
- needsReexploration: boolean;
437
- validationRecorded?: boolean | undefined;
438
- }, {
439
- result: {
440
- status: "failed" | "completed" | "cancelled" | "timed_out";
441
- verification: "not_requested" | "passed" | "failed";
442
- executionId: string;
443
- logs: string[];
444
- actions: {
445
- index: number;
446
- method: string;
447
- executed: boolean;
448
- verification: "not_requested" | "passed" | "failed";
449
- elapsedMs: number;
450
- errorCode?: string | undefined;
451
- }[];
452
- checks: {
453
- passed: boolean;
454
- elapsedMs: number;
455
- kind: string;
456
- actual?: Record<string, string | number | boolean | null> | undefined;
457
- }[];
458
- observation: {
459
- changed: boolean;
460
- beforeUrl?: string | undefined;
461
- afterUrl?: string | undefined;
462
- changes?: string[] | undefined;
463
- };
464
- artifacts: {
465
- path: string;
466
- id: string;
467
- mimeType: "image/png";
468
- }[];
469
- metrics: {
470
- elapsedMs: number;
471
- helperCalls: number;
472
- verifiedAssertions: number;
473
- };
474
- value?: unknown;
475
- error?: {
476
- code: string;
477
- message: string;
478
- } | undefined;
479
- };
480
- workflow: {
481
- status: "disabled" | "draft" | "active" | "suspended";
482
- id: string;
483
- version: string;
484
- };
485
- needsReexploration: boolean;
486
- validationRecorded?: boolean | undefined;
487
- }>;
120
+ }, z.core.$strip>;
488
121
  type ExecutionOptions = {
489
122
  workflowKey?: string;
490
123
  beforeAction?: () => Promise<void>;
@@ -515,20 +148,20 @@ export declare const browserWorkflowList: import("@roll-agent/sdk").ToolDefiniti
515
148
  export declare const browserWorkflowSaveDraft: import("@roll-agent/sdk").ToolDefinition<{
516
149
  draft: {
517
150
  id: string;
518
- source: string;
519
151
  name: string;
520
152
  description: string;
521
- capabilities: ("navigate" | "read" | "interact" | "capture")[];
522
- allowedOrigins: string[];
523
- postconditions: Record<string, unknown>[];
524
153
  appliesTo: {
525
154
  origins: string[];
526
155
  pathPrefix?: string | undefined;
527
156
  };
157
+ source: string;
528
158
  parameterSchema: Record<string, unknown>;
529
- preconditions?: Record<string, unknown>[] | undefined;
530
- notes?: string | undefined;
531
- locatorExplanations?: string[] | undefined;
159
+ capabilities: ("navigate" | "read" | "interact" | "capture")[];
160
+ allowedOrigins: string[];
161
+ preconditions: Record<string, unknown>[];
162
+ postconditions: Record<string, unknown>[];
163
+ notes: string;
164
+ locatorExplanations: string[];
532
165
  };
533
166
  }, {
534
167
  id: string;
@@ -539,17 +172,22 @@ export declare const browserWorkflowSaveDraft: import("@roll-agent/sdk").ToolDef
539
172
  }>;
540
173
  export declare const browserWorkflowValidate: import("@roll-agent/sdk").ToolDefinition<{
541
174
  id: string;
542
- pageId: string;
543
175
  version: string;
544
- args?: Record<string, unknown> | undefined;
176
+ pageId: string;
177
+ args: Record<string, unknown>;
545
178
  scriptApproval?: {
546
179
  id: string;
547
180
  } | undefined;
548
181
  }, {
182
+ workflow: {
183
+ id: string;
184
+ version: string;
185
+ status: "disabled" | "draft" | "active" | "suspended";
186
+ };
549
187
  result: {
188
+ executionId: string;
550
189
  status: "failed" | "completed" | "cancelled" | "timed_out";
551
190
  verification: "not_requested" | "passed" | "failed";
552
- executionId: string;
553
191
  logs: string[];
554
192
  actions: {
555
193
  index: number;
@@ -561,8 +199,8 @@ export declare const browserWorkflowValidate: import("@roll-agent/sdk").ToolDefi
561
199
  }[];
562
200
  checks: {
563
201
  passed: boolean;
564
- elapsedMs: number;
565
202
  kind: string;
203
+ elapsedMs: number;
566
204
  actual?: Record<string, string | number | boolean | null> | undefined;
567
205
  }[];
568
206
  observation: {
@@ -572,8 +210,8 @@ export declare const browserWorkflowValidate: import("@roll-agent/sdk").ToolDefi
572
210
  changes?: string[] | undefined;
573
211
  };
574
212
  artifacts: {
575
- path: string;
576
213
  id: string;
214
+ path: string;
577
215
  mimeType: "image/png";
578
216
  }[];
579
217
  metrics: {
@@ -587,18 +225,13 @@ export declare const browserWorkflowValidate: import("@roll-agent/sdk").ToolDefi
587
225
  message: string;
588
226
  } | undefined;
589
227
  };
590
- workflow: {
591
- status: "disabled" | "draft" | "active" | "suspended";
592
- id: string;
593
- version: string;
594
- };
595
228
  needsReexploration: boolean;
596
229
  validationRecorded?: boolean | undefined;
597
230
  }>;
598
231
  export declare const browserWorkflowSetStatus: import("@roll-agent/sdk").ToolDefinition<{
599
- status: "disabled" | "active";
600
232
  id: string;
601
233
  version: string;
234
+ status: "disabled" | "active";
602
235
  toolActionApproval?: {
603
236
  id: string;
604
237
  } | undefined;
@@ -611,17 +244,22 @@ export declare const browserWorkflowSetStatus: import("@roll-agent/sdk").ToolDef
611
244
  }>;
612
245
  export declare const browserWorkflowRun: import("@roll-agent/sdk").ToolDefinition<{
613
246
  id: string;
614
- pageId: string;
615
247
  version: string;
616
- args?: Record<string, unknown> | undefined;
248
+ pageId: string;
249
+ args: Record<string, unknown>;
617
250
  scriptApproval?: {
618
251
  id: string;
619
252
  } | undefined;
620
253
  }, {
254
+ workflow: {
255
+ id: string;
256
+ version: string;
257
+ status: "disabled" | "draft" | "active" | "suspended";
258
+ };
621
259
  result: {
260
+ executionId: string;
622
261
  status: "failed" | "completed" | "cancelled" | "timed_out";
623
262
  verification: "not_requested" | "passed" | "failed";
624
- executionId: string;
625
263
  logs: string[];
626
264
  actions: {
627
265
  index: number;
@@ -633,8 +271,8 @@ export declare const browserWorkflowRun: import("@roll-agent/sdk").ToolDefinitio
633
271
  }[];
634
272
  checks: {
635
273
  passed: boolean;
636
- elapsedMs: number;
637
274
  kind: string;
275
+ elapsedMs: number;
638
276
  actual?: Record<string, string | number | boolean | null> | undefined;
639
277
  }[];
640
278
  observation: {
@@ -644,8 +282,8 @@ export declare const browserWorkflowRun: import("@roll-agent/sdk").ToolDefinitio
644
282
  changes?: string[] | undefined;
645
283
  };
646
284
  artifacts: {
647
- path: string;
648
285
  id: string;
286
+ path: string;
649
287
  mimeType: "image/png";
650
288
  }[];
651
289
  metrics: {
@@ -659,11 +297,6 @@ export declare const browserWorkflowRun: import("@roll-agent/sdk").ToolDefinitio
659
297
  message: string;
660
298
  } | undefined;
661
299
  };
662
- workflow: {
663
- status: "disabled" | "draft" | "active" | "suspended";
664
- id: string;
665
- version: string;
666
- };
667
300
  needsReexploration: boolean;
668
301
  validationRecorded?: boolean | undefined;
669
302
  }>;