@nodetool-ai/browser 0.8.1 → 0.8.3
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/README.md +2 -2
- package/dist/.nodetool-build-stamp +1 -1
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +10 -35
- package/dist/actions.js.map +1 -1
- package/dist/extension/bridge-paths.d.ts +17 -0
- package/dist/extension/bridge-paths.d.ts.map +1 -0
- package/dist/extension/bridge-paths.js +35 -0
- package/dist/extension/bridge-paths.js.map +1 -0
- package/dist/extension/client.d.ts +30 -20
- package/dist/extension/client.d.ts.map +1 -1
- package/dist/extension/client.js +63 -69
- package/dist/extension/client.js.map +1 -1
- package/dist/extension/install-native-host.d.ts +25 -0
- package/dist/extension/install-native-host.d.ts.map +1 -0
- package/dist/extension/install-native-host.js +81 -0
- package/dist/extension/install-native-host.js.map +1 -0
- package/dist/extension/native-framing.d.ts +16 -0
- package/dist/extension/native-framing.d.ts.map +1 -0
- package/dist/extension/native-framing.js +39 -0
- package/dist/extension/native-framing.js.map +1 -0
- package/dist/extension/native-host-bin.d.ts +3 -0
- package/dist/extension/native-host-bin.d.ts.map +1 -0
- package/dist/extension/native-host-bin.js +8 -0
- package/dist/extension/native-host-bin.js.map +1 -0
- package/dist/extension/native-host.d.ts +60 -0
- package/dist/extension/native-host.d.ts.map +1 -0
- package/dist/extension/native-host.js +209 -0
- package/dist/extension/native-host.js.map +1 -0
- package/dist/extension/page.d.ts +5 -3
- package/dist/extension/page.d.ts.map +1 -1
- package/dist/extension/page.js +8 -4
- package/dist/extension/page.js.map +1 -1
- package/dist/extension/protocol.d.ts +8 -3
- package/dist/extension/protocol.d.ts.map +1 -1
- package/dist/extension/protocol.js +2 -2
- package/dist/extension/protocol.js.map +1 -1
- package/dist/extension/socket-channel.d.ts +18 -0
- package/dist/extension/socket-channel.d.ts.map +1 -0
- package/dist/extension/socket-channel.js +145 -0
- package/dist/extension/socket-channel.js.map +1 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +82 -481
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +2 -3
- package/dist/schemas.js.map +1 -1
- package/package.json +3 -5
- package/dist/extension/channel.d.ts +0 -28
- package/dist/extension/channel.d.ts.map +0 -1
- package/dist/extension/channel.js +0 -30
- package/dist/extension/channel.js.map +0 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BrowserViewInput: z.ZodObject<{
|
|
3
3
|
include_screenshot: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
-
},
|
|
5
|
-
include_screenshot?: boolean | undefined;
|
|
6
|
-
}, {
|
|
7
|
-
include_screenshot?: boolean | undefined;
|
|
8
|
-
}>;
|
|
4
|
+
}, z.core.$strip>;
|
|
9
5
|
export type BrowserViewInput = z.infer<typeof BrowserViewInput>;
|
|
10
6
|
export declare const BrowserElement: z.ZodObject<{
|
|
11
7
|
index: z.ZodNumber;
|
|
@@ -18,42 +14,8 @@ export declare const BrowserElement: z.ZodObject<{
|
|
|
18
14
|
y: z.ZodNumber;
|
|
19
15
|
width: z.ZodNumber;
|
|
20
16
|
height: z.ZodNumber;
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
y: number;
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
}, {
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
|
-
width: number;
|
|
30
|
-
height: number;
|
|
31
|
-
}>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
index: number;
|
|
34
|
-
tag: string;
|
|
35
|
-
role: string | null;
|
|
36
|
-
text: string;
|
|
37
|
-
attributes: Record<string, string>;
|
|
38
|
-
bbox: {
|
|
39
|
-
x: number;
|
|
40
|
-
y: number;
|
|
41
|
-
width: number;
|
|
42
|
-
height: number;
|
|
43
|
-
};
|
|
44
|
-
}, {
|
|
45
|
-
index: number;
|
|
46
|
-
tag: string;
|
|
47
|
-
role: string | null;
|
|
48
|
-
text: string;
|
|
49
|
-
attributes: Record<string, string>;
|
|
50
|
-
bbox: {
|
|
51
|
-
x: number;
|
|
52
|
-
y: number;
|
|
53
|
-
width: number;
|
|
54
|
-
height: number;
|
|
55
|
-
};
|
|
56
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
}, z.core.$strip>;
|
|
57
19
|
export type BrowserElement = z.infer<typeof BrowserElement>;
|
|
58
20
|
export declare const BrowserViewOutput: z.ZodObject<{
|
|
59
21
|
url: z.ZodString;
|
|
@@ -61,13 +23,7 @@ export declare const BrowserViewOutput: z.ZodObject<{
|
|
|
61
23
|
viewport: z.ZodObject<{
|
|
62
24
|
width: z.ZodNumber;
|
|
63
25
|
height: z.ZodNumber;
|
|
64
|
-
},
|
|
65
|
-
width: number;
|
|
66
|
-
height: number;
|
|
67
|
-
}, {
|
|
68
|
-
width: number;
|
|
69
|
-
height: number;
|
|
70
|
-
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
71
27
|
elements: z.ZodArray<z.ZodObject<{
|
|
72
28
|
index: z.ZodNumber;
|
|
73
29
|
tag: z.ZodString;
|
|
@@ -79,111 +35,25 @@ export declare const BrowserViewOutput: z.ZodObject<{
|
|
|
79
35
|
y: z.ZodNumber;
|
|
80
36
|
width: z.ZodNumber;
|
|
81
37
|
height: z.ZodNumber;
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
y: number;
|
|
85
|
-
width: number;
|
|
86
|
-
height: number;
|
|
87
|
-
}, {
|
|
88
|
-
x: number;
|
|
89
|
-
y: number;
|
|
90
|
-
width: number;
|
|
91
|
-
height: number;
|
|
92
|
-
}>;
|
|
93
|
-
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
index: number;
|
|
95
|
-
tag: string;
|
|
96
|
-
role: string | null;
|
|
97
|
-
text: string;
|
|
98
|
-
attributes: Record<string, string>;
|
|
99
|
-
bbox: {
|
|
100
|
-
x: number;
|
|
101
|
-
y: number;
|
|
102
|
-
width: number;
|
|
103
|
-
height: number;
|
|
104
|
-
};
|
|
105
|
-
}, {
|
|
106
|
-
index: number;
|
|
107
|
-
tag: string;
|
|
108
|
-
role: string | null;
|
|
109
|
-
text: string;
|
|
110
|
-
attributes: Record<string, string>;
|
|
111
|
-
bbox: {
|
|
112
|
-
x: number;
|
|
113
|
-
y: number;
|
|
114
|
-
width: number;
|
|
115
|
-
height: number;
|
|
116
|
-
};
|
|
117
|
-
}>, "many">;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
118
40
|
screenshot_png_b64: z.ZodNullable<z.ZodString>;
|
|
119
|
-
},
|
|
120
|
-
url: string;
|
|
121
|
-
title: string;
|
|
122
|
-
viewport: {
|
|
123
|
-
width: number;
|
|
124
|
-
height: number;
|
|
125
|
-
};
|
|
126
|
-
elements: {
|
|
127
|
-
index: number;
|
|
128
|
-
tag: string;
|
|
129
|
-
role: string | null;
|
|
130
|
-
text: string;
|
|
131
|
-
attributes: Record<string, string>;
|
|
132
|
-
bbox: {
|
|
133
|
-
x: number;
|
|
134
|
-
y: number;
|
|
135
|
-
width: number;
|
|
136
|
-
height: number;
|
|
137
|
-
};
|
|
138
|
-
}[];
|
|
139
|
-
screenshot_png_b64: string | null;
|
|
140
|
-
}, {
|
|
141
|
-
url: string;
|
|
142
|
-
title: string;
|
|
143
|
-
viewport: {
|
|
144
|
-
width: number;
|
|
145
|
-
height: number;
|
|
146
|
-
};
|
|
147
|
-
elements: {
|
|
148
|
-
index: number;
|
|
149
|
-
tag: string;
|
|
150
|
-
role: string | null;
|
|
151
|
-
text: string;
|
|
152
|
-
attributes: Record<string, string>;
|
|
153
|
-
bbox: {
|
|
154
|
-
x: number;
|
|
155
|
-
y: number;
|
|
156
|
-
width: number;
|
|
157
|
-
height: number;
|
|
158
|
-
};
|
|
159
|
-
}[];
|
|
160
|
-
screenshot_png_b64: string | null;
|
|
161
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
162
42
|
export type BrowserViewOutput = z.infer<typeof BrowserViewOutput>;
|
|
163
43
|
export declare const BrowserNavigateInput: z.ZodObject<{
|
|
164
44
|
url: z.ZodString;
|
|
165
|
-
wait_until: z.ZodOptional<z.ZodEnum<
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
wait_until?: "domcontentloaded" | "load" | "networkidle" | undefined;
|
|
172
|
-
}>;
|
|
45
|
+
wait_until: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
domcontentloaded: "domcontentloaded";
|
|
47
|
+
load: "load";
|
|
48
|
+
networkidle: "networkidle";
|
|
49
|
+
}>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
173
51
|
export type BrowserNavigateInput = z.infer<typeof BrowserNavigateInput>;
|
|
174
52
|
export declare const BrowserNavigateOutput: z.ZodObject<{
|
|
175
53
|
url: z.ZodString;
|
|
176
54
|
title: z.ZodString;
|
|
177
55
|
status: z.ZodNullable<z.ZodNumber>;
|
|
178
|
-
},
|
|
179
|
-
url: string;
|
|
180
|
-
title: string;
|
|
181
|
-
status: number | null;
|
|
182
|
-
}, {
|
|
183
|
-
url: string;
|
|
184
|
-
title: string;
|
|
185
|
-
status: number | null;
|
|
186
|
-
}>;
|
|
56
|
+
}, z.core.$strip>;
|
|
187
57
|
export type BrowserNavigateOutput = z.infer<typeof BrowserNavigateOutput>;
|
|
188
58
|
/**
|
|
189
59
|
* `transport` is how a caller switches between the headless Chrome this
|
|
@@ -191,272 +61,123 @@ export type BrowserNavigateOutput = z.infer<typeof BrowserNavigateOutput>;
|
|
|
191
61
|
* relay. It only takes effect on a restart: the session is a process
|
|
192
62
|
* singleton, so switching means tearing the current one down.
|
|
193
63
|
*/
|
|
194
|
-
export declare const BrowserTransport: z.ZodEnum<
|
|
64
|
+
export declare const BrowserTransport: z.ZodEnum<{
|
|
65
|
+
extension: "extension";
|
|
66
|
+
local: "local";
|
|
67
|
+
}>;
|
|
195
68
|
export type BrowserTransport = z.infer<typeof BrowserTransport>;
|
|
196
69
|
export declare const BrowserRestartInput: z.ZodObject<{
|
|
197
70
|
url: z.ZodOptional<z.ZodString>;
|
|
198
|
-
transport: z.ZodOptional<z.ZodEnum<
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
},
|
|
203
|
-
url?: string | undefined;
|
|
204
|
-
transport?: "extension" | "local" | undefined;
|
|
205
|
-
}>;
|
|
71
|
+
transport: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
extension: "extension";
|
|
73
|
+
local: "local";
|
|
74
|
+
}>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
206
76
|
export type BrowserRestartInput = z.infer<typeof BrowserRestartInput>;
|
|
207
77
|
export declare const BrowserRestartOutput: z.ZodObject<{
|
|
208
78
|
url: z.ZodString;
|
|
209
|
-
transport: z.ZodEnum<
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
},
|
|
214
|
-
url: string;
|
|
215
|
-
transport: "extension" | "local";
|
|
216
|
-
}>;
|
|
79
|
+
transport: z.ZodEnum<{
|
|
80
|
+
extension: "extension";
|
|
81
|
+
local: "local";
|
|
82
|
+
}>;
|
|
83
|
+
}, z.core.$strip>;
|
|
217
84
|
export type BrowserRestartOutput = z.infer<typeof BrowserRestartOutput>;
|
|
218
85
|
/** What `browser_status` answers without opening a session. */
|
|
219
86
|
export declare const BrowserStatusOutput: z.ZodObject<{
|
|
220
|
-
transport: z.ZodEnum<
|
|
221
|
-
|
|
87
|
+
transport: z.ZodEnum<{
|
|
88
|
+
extension: "extension";
|
|
89
|
+
local: "local";
|
|
90
|
+
}>;
|
|
222
91
|
session_open: z.ZodBoolean;
|
|
223
|
-
/**
|
|
224
|
-
* Whether a Chrome extension currently holds the `/ws/extension` socket.
|
|
225
|
-
* `null` when this process cannot answer — it is not the server holding the
|
|
226
|
-
* bridge, so it would have to open a socket to find out.
|
|
227
|
-
*/
|
|
228
92
|
extension_connected: z.ZodNullable<z.ZodBoolean>;
|
|
229
93
|
url: z.ZodNullable<z.ZodString>;
|
|
230
94
|
title: z.ZodNullable<z.ZodString>;
|
|
231
|
-
/** What to do next when the session cannot be driven as configured. */
|
|
232
95
|
hint: z.ZodNullable<z.ZodString>;
|
|
233
|
-
},
|
|
234
|
-
transport: "extension" | "local";
|
|
235
|
-
session_open: boolean;
|
|
236
|
-
extension_connected: boolean | null;
|
|
237
|
-
url: string | null;
|
|
238
|
-
title: string | null;
|
|
239
|
-
hint: string | null;
|
|
240
|
-
}, {
|
|
241
|
-
transport: "extension" | "local";
|
|
242
|
-
session_open: boolean;
|
|
243
|
-
extension_connected: boolean | null;
|
|
244
|
-
url: string | null;
|
|
245
|
-
title: string | null;
|
|
246
|
-
hint: string | null;
|
|
247
|
-
}>;
|
|
96
|
+
}, z.core.$strip>;
|
|
248
97
|
export type BrowserStatusOutput = z.infer<typeof BrowserStatusOutput>;
|
|
249
|
-
export declare const BrowserClickInput: z.
|
|
98
|
+
export declare const BrowserClickInput: z.ZodObject<{
|
|
250
99
|
index: z.ZodOptional<z.ZodNumber>;
|
|
251
100
|
coordinate_x: z.ZodOptional<z.ZodNumber>;
|
|
252
101
|
coordinate_y: z.ZodOptional<z.ZodNumber>;
|
|
253
|
-
},
|
|
254
|
-
index?: number | undefined;
|
|
255
|
-
coordinate_x?: number | undefined;
|
|
256
|
-
coordinate_y?: number | undefined;
|
|
257
|
-
}, {
|
|
258
|
-
index?: number | undefined;
|
|
259
|
-
coordinate_x?: number | undefined;
|
|
260
|
-
coordinate_y?: number | undefined;
|
|
261
|
-
}>, {
|
|
262
|
-
index?: number | undefined;
|
|
263
|
-
coordinate_x?: number | undefined;
|
|
264
|
-
coordinate_y?: number | undefined;
|
|
265
|
-
}, {
|
|
266
|
-
index?: number | undefined;
|
|
267
|
-
coordinate_x?: number | undefined;
|
|
268
|
-
coordinate_y?: number | undefined;
|
|
269
|
-
}>;
|
|
102
|
+
}, z.core.$strip>;
|
|
270
103
|
export type BrowserClickInput = z.infer<typeof BrowserClickInput>;
|
|
271
104
|
export declare const BrowserClickOutput: z.ZodObject<{
|
|
272
105
|
clicked: z.ZodLiteral<true>;
|
|
273
|
-
},
|
|
274
|
-
clicked: true;
|
|
275
|
-
}, {
|
|
276
|
-
clicked: true;
|
|
277
|
-
}>;
|
|
106
|
+
}, z.core.$strip>;
|
|
278
107
|
export type BrowserClickOutput = z.infer<typeof BrowserClickOutput>;
|
|
279
|
-
export declare const BrowserInputTextInput: z.
|
|
108
|
+
export declare const BrowserInputTextInput: z.ZodObject<{
|
|
280
109
|
text: z.ZodString;
|
|
281
110
|
press_enter: z.ZodOptional<z.ZodBoolean>;
|
|
282
111
|
index: z.ZodOptional<z.ZodNumber>;
|
|
283
112
|
coordinate_x: z.ZodOptional<z.ZodNumber>;
|
|
284
113
|
coordinate_y: z.ZodOptional<z.ZodNumber>;
|
|
285
|
-
},
|
|
286
|
-
text: string;
|
|
287
|
-
press_enter?: boolean | undefined;
|
|
288
|
-
index?: number | undefined;
|
|
289
|
-
coordinate_x?: number | undefined;
|
|
290
|
-
coordinate_y?: number | undefined;
|
|
291
|
-
}, {
|
|
292
|
-
text: string;
|
|
293
|
-
press_enter?: boolean | undefined;
|
|
294
|
-
index?: number | undefined;
|
|
295
|
-
coordinate_x?: number | undefined;
|
|
296
|
-
coordinate_y?: number | undefined;
|
|
297
|
-
}>, {
|
|
298
|
-
text: string;
|
|
299
|
-
press_enter?: boolean | undefined;
|
|
300
|
-
index?: number | undefined;
|
|
301
|
-
coordinate_x?: number | undefined;
|
|
302
|
-
coordinate_y?: number | undefined;
|
|
303
|
-
}, {
|
|
304
|
-
text: string;
|
|
305
|
-
press_enter?: boolean | undefined;
|
|
306
|
-
index?: number | undefined;
|
|
307
|
-
coordinate_x?: number | undefined;
|
|
308
|
-
coordinate_y?: number | undefined;
|
|
309
|
-
}>;
|
|
114
|
+
}, z.core.$strip>;
|
|
310
115
|
export type BrowserInputTextInput = z.infer<typeof BrowserInputTextInput>;
|
|
311
116
|
export declare const BrowserInputTextOutput: z.ZodObject<{
|
|
312
117
|
typed: z.ZodLiteral<true>;
|
|
313
|
-
},
|
|
314
|
-
typed: true;
|
|
315
|
-
}, {
|
|
316
|
-
typed: true;
|
|
317
|
-
}>;
|
|
118
|
+
}, z.core.$strip>;
|
|
318
119
|
export type BrowserInputTextOutput = z.infer<typeof BrowserInputTextOutput>;
|
|
319
120
|
export declare const BrowserMoveMouseInput: z.ZodObject<{
|
|
320
121
|
coordinate_x: z.ZodNumber;
|
|
321
122
|
coordinate_y: z.ZodNumber;
|
|
322
|
-
},
|
|
323
|
-
coordinate_x: number;
|
|
324
|
-
coordinate_y: number;
|
|
325
|
-
}, {
|
|
326
|
-
coordinate_x: number;
|
|
327
|
-
coordinate_y: number;
|
|
328
|
-
}>;
|
|
123
|
+
}, z.core.$strip>;
|
|
329
124
|
export type BrowserMoveMouseInput = z.infer<typeof BrowserMoveMouseInput>;
|
|
330
125
|
export declare const BrowserMoveMouseOutput: z.ZodObject<{
|
|
331
126
|
moved: z.ZodLiteral<true>;
|
|
332
|
-
},
|
|
333
|
-
moved: true;
|
|
334
|
-
}, {
|
|
335
|
-
moved: true;
|
|
336
|
-
}>;
|
|
127
|
+
}, z.core.$strip>;
|
|
337
128
|
export type BrowserMoveMouseOutput = z.infer<typeof BrowserMoveMouseOutput>;
|
|
338
129
|
export declare const BrowserPressKeyInput: z.ZodObject<{
|
|
339
130
|
key: z.ZodString;
|
|
340
|
-
},
|
|
341
|
-
key: string;
|
|
342
|
-
}, {
|
|
343
|
-
key: string;
|
|
344
|
-
}>;
|
|
131
|
+
}, z.core.$strip>;
|
|
345
132
|
export type BrowserPressKeyInput = z.infer<typeof BrowserPressKeyInput>;
|
|
346
133
|
export declare const BrowserPressKeyOutput: z.ZodObject<{
|
|
347
134
|
pressed: z.ZodLiteral<true>;
|
|
348
|
-
},
|
|
349
|
-
pressed: true;
|
|
350
|
-
}, {
|
|
351
|
-
pressed: true;
|
|
352
|
-
}>;
|
|
135
|
+
}, z.core.$strip>;
|
|
353
136
|
export type BrowserPressKeyOutput = z.infer<typeof BrowserPressKeyOutput>;
|
|
354
137
|
export declare const BrowserSelectOptionInput: z.ZodObject<{
|
|
355
138
|
index: z.ZodNumber;
|
|
356
139
|
option: z.ZodString;
|
|
357
|
-
},
|
|
358
|
-
index: number;
|
|
359
|
-
option: string;
|
|
360
|
-
}, {
|
|
361
|
-
index: number;
|
|
362
|
-
option: string;
|
|
363
|
-
}>;
|
|
140
|
+
}, z.core.$strip>;
|
|
364
141
|
export type BrowserSelectOptionInput = z.infer<typeof BrowserSelectOptionInput>;
|
|
365
142
|
export declare const BrowserSelectOptionOutput: z.ZodObject<{
|
|
366
|
-
selected: z.ZodArray<z.ZodString
|
|
367
|
-
},
|
|
368
|
-
selected: string[];
|
|
369
|
-
}, {
|
|
370
|
-
selected: string[];
|
|
371
|
-
}>;
|
|
143
|
+
selected: z.ZodArray<z.ZodString>;
|
|
144
|
+
}, z.core.$strip>;
|
|
372
145
|
export type BrowserSelectOptionOutput = z.infer<typeof BrowserSelectOptionOutput>;
|
|
373
146
|
export declare const BrowserScrollInput: z.ZodObject<{
|
|
374
147
|
to_top: z.ZodOptional<z.ZodBoolean>;
|
|
375
148
|
to_bottom: z.ZodOptional<z.ZodBoolean>;
|
|
376
149
|
pixels: z.ZodOptional<z.ZodNumber>;
|
|
377
|
-
},
|
|
378
|
-
to_top?: boolean | undefined;
|
|
379
|
-
to_bottom?: boolean | undefined;
|
|
380
|
-
pixels?: number | undefined;
|
|
381
|
-
}, {
|
|
382
|
-
to_top?: boolean | undefined;
|
|
383
|
-
to_bottom?: boolean | undefined;
|
|
384
|
-
pixels?: number | undefined;
|
|
385
|
-
}>;
|
|
150
|
+
}, z.core.$strip>;
|
|
386
151
|
export type BrowserScrollInput = z.infer<typeof BrowserScrollInput>;
|
|
387
152
|
export declare const BrowserScrollOutput: z.ZodObject<{
|
|
388
153
|
scroll_y: z.ZodNumber;
|
|
389
|
-
},
|
|
390
|
-
scroll_y: number;
|
|
391
|
-
}, {
|
|
392
|
-
scroll_y: number;
|
|
393
|
-
}>;
|
|
154
|
+
}, z.core.$strip>;
|
|
394
155
|
export type BrowserScrollOutput = z.infer<typeof BrowserScrollOutput>;
|
|
395
156
|
export declare const BrowserConsoleExecInput: z.ZodObject<{
|
|
396
157
|
javascript: z.ZodString;
|
|
397
|
-
},
|
|
398
|
-
javascript: string;
|
|
399
|
-
}, {
|
|
400
|
-
javascript: string;
|
|
401
|
-
}>;
|
|
158
|
+
}, z.core.$strip>;
|
|
402
159
|
export type BrowserConsoleExecInput = z.infer<typeof BrowserConsoleExecInput>;
|
|
403
160
|
export declare const BrowserConsoleExecOutput: z.ZodObject<{
|
|
404
161
|
result_json: z.ZodString;
|
|
405
|
-
},
|
|
406
|
-
result_json: string;
|
|
407
|
-
}, {
|
|
408
|
-
result_json: string;
|
|
409
|
-
}>;
|
|
162
|
+
}, z.core.$strip>;
|
|
410
163
|
export type BrowserConsoleExecOutput = z.infer<typeof BrowserConsoleExecOutput>;
|
|
411
164
|
export declare const BrowserConsoleViewInput: z.ZodObject<{
|
|
412
165
|
max_lines: z.ZodOptional<z.ZodNumber>;
|
|
413
|
-
},
|
|
414
|
-
max_lines?: number | undefined;
|
|
415
|
-
}, {
|
|
416
|
-
max_lines?: number | undefined;
|
|
417
|
-
}>;
|
|
166
|
+
}, z.core.$strip>;
|
|
418
167
|
export type BrowserConsoleViewInput = z.infer<typeof BrowserConsoleViewInput>;
|
|
419
168
|
export declare const BrowserConsoleMessage: z.ZodObject<{
|
|
420
169
|
type: z.ZodString;
|
|
421
170
|
text: z.ZodString;
|
|
422
171
|
timestamp: z.ZodNumber;
|
|
423
|
-
},
|
|
424
|
-
type: string;
|
|
425
|
-
text: string;
|
|
426
|
-
timestamp: number;
|
|
427
|
-
}, {
|
|
428
|
-
type: string;
|
|
429
|
-
text: string;
|
|
430
|
-
timestamp: number;
|
|
431
|
-
}>;
|
|
172
|
+
}, z.core.$strip>;
|
|
432
173
|
export type BrowserConsoleMessage = z.infer<typeof BrowserConsoleMessage>;
|
|
433
174
|
export declare const BrowserConsoleViewOutput: z.ZodObject<{
|
|
434
175
|
messages: z.ZodArray<z.ZodObject<{
|
|
435
176
|
type: z.ZodString;
|
|
436
177
|
text: z.ZodString;
|
|
437
178
|
timestamp: z.ZodNumber;
|
|
438
|
-
},
|
|
439
|
-
|
|
440
|
-
text: string;
|
|
441
|
-
timestamp: number;
|
|
442
|
-
}, {
|
|
443
|
-
type: string;
|
|
444
|
-
text: string;
|
|
445
|
-
timestamp: number;
|
|
446
|
-
}>, "many">;
|
|
447
|
-
}, "strip", z.ZodTypeAny, {
|
|
448
|
-
messages: {
|
|
449
|
-
type: string;
|
|
450
|
-
text: string;
|
|
451
|
-
timestamp: number;
|
|
452
|
-
}[];
|
|
453
|
-
}, {
|
|
454
|
-
messages: {
|
|
455
|
-
type: string;
|
|
456
|
-
text: string;
|
|
457
|
-
timestamp: number;
|
|
458
|
-
}[];
|
|
459
|
-
}>;
|
|
179
|
+
}, z.core.$strip>>;
|
|
180
|
+
}, z.core.$strip>;
|
|
460
181
|
export type BrowserConsoleViewOutput = z.infer<typeof BrowserConsoleViewOutput>;
|
|
461
182
|
/**
|
|
462
183
|
* Capture generated media (image/video/audio) from the current page into bytes.
|
|
@@ -472,32 +193,16 @@ export type BrowserConsoleViewOutput = z.infer<typeof BrowserConsoleViewOutput>;
|
|
|
472
193
|
* is an optional hint ("image" | "video" | "audio") that biases element
|
|
473
194
|
* resolution and the inferred MIME when the source doesn't declare one.
|
|
474
195
|
*/
|
|
475
|
-
export declare const BrowserCaptureMediaInput: z.
|
|
196
|
+
export declare const BrowserCaptureMediaInput: z.ZodObject<{
|
|
476
197
|
index: z.ZodOptional<z.ZodNumber>;
|
|
477
198
|
url: z.ZodOptional<z.ZodString>;
|
|
478
199
|
resource_url: z.ZodOptional<z.ZodString>;
|
|
479
|
-
media_type: z.ZodOptional<z.ZodEnum<
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
}, {
|
|
486
|
-
index?: number | undefined;
|
|
487
|
-
url?: string | undefined;
|
|
488
|
-
resource_url?: string | undefined;
|
|
489
|
-
media_type?: "audio" | "image" | "video" | undefined;
|
|
490
|
-
}>, {
|
|
491
|
-
index?: number | undefined;
|
|
492
|
-
url?: string | undefined;
|
|
493
|
-
resource_url?: string | undefined;
|
|
494
|
-
media_type?: "audio" | "image" | "video" | undefined;
|
|
495
|
-
}, {
|
|
496
|
-
index?: number | undefined;
|
|
497
|
-
url?: string | undefined;
|
|
498
|
-
resource_url?: string | undefined;
|
|
499
|
-
media_type?: "audio" | "image" | "video" | undefined;
|
|
500
|
-
}>;
|
|
200
|
+
media_type: z.ZodOptional<z.ZodEnum<{
|
|
201
|
+
audio: "audio";
|
|
202
|
+
image: "image";
|
|
203
|
+
video: "video";
|
|
204
|
+
}>>;
|
|
205
|
+
}, z.core.$strip>;
|
|
501
206
|
export type BrowserCaptureMediaInput = z.infer<typeof BrowserCaptureMediaInput>;
|
|
502
207
|
/**
|
|
503
208
|
* Raw capture result from the action. Carries the bytes as base64 plus the
|
|
@@ -506,25 +211,15 @@ export type BrowserCaptureMediaInput = z.infer<typeof BrowserCaptureMediaInput>;
|
|
|
506
211
|
* shape with a {@link BrowserCaptureMediaOutput} AssetRef.
|
|
507
212
|
*/
|
|
508
213
|
export declare const BrowserCaptureMediaRaw: z.ZodObject<{
|
|
509
|
-
/** Base64-encoded media bytes. */
|
|
510
214
|
media_b64: z.ZodString;
|
|
511
|
-
/** Resolved MIME type of the captured bytes. */
|
|
512
215
|
mime_type: z.ZodString;
|
|
513
|
-
/** The URL the bytes were read from (`blob:`/`http(s):`/element currentSrc). */
|
|
514
216
|
source_url: z.ZodNullable<z.ZodString>;
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
via: "downloads" | "in_page_fetch" | "response_body";
|
|
522
|
-
}, {
|
|
523
|
-
media_b64: string;
|
|
524
|
-
mime_type: string;
|
|
525
|
-
source_url: string | null;
|
|
526
|
-
via: "downloads" | "in_page_fetch" | "response_body";
|
|
527
|
-
}>;
|
|
217
|
+
via: z.ZodEnum<{
|
|
218
|
+
downloads: "downloads";
|
|
219
|
+
in_page_fetch: "in_page_fetch";
|
|
220
|
+
response_body: "response_body";
|
|
221
|
+
}>;
|
|
222
|
+
}, z.core.$strip>;
|
|
528
223
|
export type BrowserCaptureMediaRaw = z.infer<typeof BrowserCaptureMediaRaw>;
|
|
529
224
|
/**
|
|
530
225
|
* AssetRef-shaped capture output returned to the agent. Mirrors the `screenshot`
|
|
@@ -532,7 +227,11 @@ export type BrowserCaptureMediaRaw = z.infer<typeof BrowserCaptureMediaRaw>;
|
|
|
532
227
|
* (when the context exposes `createAsset`) or a workspace file `path`.
|
|
533
228
|
*/
|
|
534
229
|
export declare const BrowserCaptureMediaOutput: z.ZodObject<{
|
|
535
|
-
type: z.ZodEnum<
|
|
230
|
+
type: z.ZodEnum<{
|
|
231
|
+
audio: "audio";
|
|
232
|
+
image: "image";
|
|
233
|
+
video: "video";
|
|
234
|
+
}>;
|
|
536
235
|
asset_id: z.ZodOptional<z.ZodString>;
|
|
537
236
|
asset_uri: z.ZodOptional<z.ZodString>;
|
|
538
237
|
uri: z.ZodNullable<z.ZodString>;
|
|
@@ -540,25 +239,7 @@ export declare const BrowserCaptureMediaOutput: z.ZodObject<{
|
|
|
540
239
|
mime_type: z.ZodString;
|
|
541
240
|
bytes: z.ZodNumber;
|
|
542
241
|
source_url: z.ZodNullable<z.ZodString>;
|
|
543
|
-
},
|
|
544
|
-
type: "audio" | "image" | "video";
|
|
545
|
-
asset_id?: string | undefined;
|
|
546
|
-
asset_uri?: string | undefined;
|
|
547
|
-
uri: string | null;
|
|
548
|
-
path?: string | undefined;
|
|
549
|
-
mime_type: string;
|
|
550
|
-
bytes: number;
|
|
551
|
-
source_url: string | null;
|
|
552
|
-
}, {
|
|
553
|
-
type: "audio" | "image" | "video";
|
|
554
|
-
asset_id?: string | undefined;
|
|
555
|
-
asset_uri?: string | undefined;
|
|
556
|
-
uri: string | null;
|
|
557
|
-
path?: string | undefined;
|
|
558
|
-
mime_type: string;
|
|
559
|
-
bytes: number;
|
|
560
|
-
source_url: string | null;
|
|
561
|
-
}>;
|
|
242
|
+
}, z.core.$strip>;
|
|
562
243
|
export type BrowserCaptureMediaOutput = z.infer<typeof BrowserCaptureMediaOutput>;
|
|
563
244
|
/**
|
|
564
245
|
* Inject an existing NodeTool asset into a page `<input type="file">`.
|
|
@@ -574,56 +255,14 @@ export type BrowserCaptureMediaOutput = z.infer<typeof BrowserCaptureMediaOutput
|
|
|
574
255
|
* asset_id / uri, and at least one of index / (coordinate_x, coordinate_y),
|
|
575
256
|
* must be provided.
|
|
576
257
|
*/
|
|
577
|
-
export declare const BrowserUploadAssetInput: z.
|
|
258
|
+
export declare const BrowserUploadAssetInput: z.ZodObject<{
|
|
578
259
|
index: z.ZodOptional<z.ZodNumber>;
|
|
579
260
|
coordinate_x: z.ZodOptional<z.ZodNumber>;
|
|
580
261
|
coordinate_y: z.ZodOptional<z.ZodNumber>;
|
|
581
262
|
asset_id: z.ZodOptional<z.ZodString>;
|
|
582
263
|
uri: z.ZodOptional<z.ZodString>;
|
|
583
264
|
file_name: z.ZodOptional<z.ZodString>;
|
|
584
|
-
},
|
|
585
|
-
index?: number | undefined;
|
|
586
|
-
coordinate_x?: number | undefined;
|
|
587
|
-
coordinate_y?: number | undefined;
|
|
588
|
-
asset_id?: string | undefined;
|
|
589
|
-
uri?: string | undefined;
|
|
590
|
-
file_name?: string | undefined;
|
|
591
|
-
}, {
|
|
592
|
-
index?: number | undefined;
|
|
593
|
-
coordinate_x?: number | undefined;
|
|
594
|
-
coordinate_y?: number | undefined;
|
|
595
|
-
asset_id?: string | undefined;
|
|
596
|
-
uri?: string | undefined;
|
|
597
|
-
file_name?: string | undefined;
|
|
598
|
-
}>, {
|
|
599
|
-
index?: number | undefined;
|
|
600
|
-
coordinate_x?: number | undefined;
|
|
601
|
-
coordinate_y?: number | undefined;
|
|
602
|
-
asset_id?: string | undefined;
|
|
603
|
-
uri?: string | undefined;
|
|
604
|
-
file_name?: string | undefined;
|
|
605
|
-
}, {
|
|
606
|
-
index?: number | undefined;
|
|
607
|
-
coordinate_x?: number | undefined;
|
|
608
|
-
coordinate_y?: number | undefined;
|
|
609
|
-
asset_id?: string | undefined;
|
|
610
|
-
uri?: string | undefined;
|
|
611
|
-
file_name?: string | undefined;
|
|
612
|
-
}>, {
|
|
613
|
-
index?: number | undefined;
|
|
614
|
-
coordinate_x?: number | undefined;
|
|
615
|
-
coordinate_y?: number | undefined;
|
|
616
|
-
asset_id?: string | undefined;
|
|
617
|
-
uri?: string | undefined;
|
|
618
|
-
file_name?: string | undefined;
|
|
619
|
-
}, {
|
|
620
|
-
index?: number | undefined;
|
|
621
|
-
coordinate_x?: number | undefined;
|
|
622
|
-
coordinate_y?: number | undefined;
|
|
623
|
-
asset_id?: string | undefined;
|
|
624
|
-
uri?: string | undefined;
|
|
625
|
-
file_name?: string | undefined;
|
|
626
|
-
}>;
|
|
265
|
+
}, z.core.$strip>;
|
|
627
266
|
export type BrowserUploadAssetInput = z.infer<typeof BrowserUploadAssetInput>;
|
|
628
267
|
/**
|
|
629
268
|
* The wire input the upload_asset action actually consumes: the file input's
|
|
@@ -631,45 +270,14 @@ export type BrowserUploadAssetInput = z.infer<typeof BrowserUploadAssetInput>;
|
|
|
631
270
|
* name the website should see, and the MIME type. The host tool wrapper builds
|
|
632
271
|
* this from a {@link BrowserUploadAssetInput} after reading the asset.
|
|
633
272
|
*/
|
|
634
|
-
export declare const BrowserUploadAssetRaw: z.
|
|
273
|
+
export declare const BrowserUploadAssetRaw: z.ZodObject<{
|
|
635
274
|
index: z.ZodOptional<z.ZodNumber>;
|
|
636
275
|
coordinate_x: z.ZodOptional<z.ZodNumber>;
|
|
637
276
|
coordinate_y: z.ZodOptional<z.ZodNumber>;
|
|
638
|
-
/** Base64-encoded file bytes. */
|
|
639
277
|
file_b64: z.ZodString;
|
|
640
|
-
/** File name the website sees on the injected File. */
|
|
641
278
|
file_name: z.ZodString;
|
|
642
|
-
/** MIME type stamped on the injected File. */
|
|
643
279
|
mime_type: z.ZodString;
|
|
644
|
-
},
|
|
645
|
-
index?: number | undefined;
|
|
646
|
-
coordinate_x?: number | undefined;
|
|
647
|
-
coordinate_y?: number | undefined;
|
|
648
|
-
file_b64: string;
|
|
649
|
-
file_name: string;
|
|
650
|
-
mime_type: string;
|
|
651
|
-
}, {
|
|
652
|
-
index?: number | undefined;
|
|
653
|
-
coordinate_x?: number | undefined;
|
|
654
|
-
coordinate_y?: number | undefined;
|
|
655
|
-
file_b64: string;
|
|
656
|
-
file_name: string;
|
|
657
|
-
mime_type: string;
|
|
658
|
-
}>, {
|
|
659
|
-
index?: number | undefined;
|
|
660
|
-
coordinate_x?: number | undefined;
|
|
661
|
-
coordinate_y?: number | undefined;
|
|
662
|
-
file_b64: string;
|
|
663
|
-
file_name: string;
|
|
664
|
-
mime_type: string;
|
|
665
|
-
}, {
|
|
666
|
-
index?: number | undefined;
|
|
667
|
-
coordinate_x?: number | undefined;
|
|
668
|
-
coordinate_y?: number | undefined;
|
|
669
|
-
file_b64: string;
|
|
670
|
-
file_name: string;
|
|
671
|
-
mime_type: string;
|
|
672
|
-
}>;
|
|
280
|
+
}, z.core.$strip>;
|
|
673
281
|
export type BrowserUploadAssetRaw = z.infer<typeof BrowserUploadAssetRaw>;
|
|
674
282
|
/**
|
|
675
283
|
* Result of injecting an asset into a file input. `via` records which path
|
|
@@ -682,17 +290,10 @@ export declare const BrowserUploadAssetOutput: z.ZodObject<{
|
|
|
682
290
|
uploaded: z.ZodLiteral<true>;
|
|
683
291
|
file_name: z.ZodString;
|
|
684
292
|
bytes: z.ZodNumber;
|
|
685
|
-
via: z.ZodEnum<
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
via: "data_transfer" | "native";
|
|
691
|
-
}, {
|
|
692
|
-
uploaded: true;
|
|
693
|
-
file_name: string;
|
|
694
|
-
bytes: number;
|
|
695
|
-
via: "data_transfer" | "native";
|
|
696
|
-
}>;
|
|
293
|
+
via: z.ZodEnum<{
|
|
294
|
+
data_transfer: "data_transfer";
|
|
295
|
+
native: "native";
|
|
296
|
+
}>;
|
|
297
|
+
}, z.core.$strip>;
|
|
697
298
|
export type BrowserUploadAssetOutput = z.infer<typeof BrowserUploadAssetOutput>;
|
|
698
299
|
//# sourceMappingURL=schemas.d.ts.map
|