@xpert-ai/chatkit-host-automation 0.3.4 → 0.3.5

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 (3) hide show
  1. package/dist/index.d.ts +505 -0
  2. package/dist/index.js +683 -387
  3. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -4,6 +4,500 @@ export declare function createHostPageAutomationClientToolHandler(options?: Host
4
4
 
5
5
  export declare const HOST_PAGE_AUTOMATION_TOOL_NAMES: readonly ["host_page_snapshot", "host_page_click", "host_page_fill", "host_page_press", "host_page_select", "host_page_scroll", "host_page_navigate", "host_page_hover", "host_page_focus", "host_page_pointer", "host_page_screenshot", "host_page_wait_for"];
6
6
 
7
+ export declare const HOST_PAGE_AUTOMATION_TOOL_SCHEMAS: {
8
+ readonly host_page_snapshot: {
9
+ readonly type: "object";
10
+ readonly properties: {};
11
+ readonly additionalProperties: false;
12
+ };
13
+ readonly host_page_click: {
14
+ readonly type: "object";
15
+ readonly properties: {
16
+ readonly ref: {
17
+ type: string[];
18
+ description: string;
19
+ };
20
+ readonly axRef: {
21
+ type: string[];
22
+ description: string;
23
+ };
24
+ readonly selector: {
25
+ type: string;
26
+ description: string;
27
+ };
28
+ readonly testId: {
29
+ type: string;
30
+ description: string;
31
+ };
32
+ readonly role: {
33
+ type: string;
34
+ description: string;
35
+ };
36
+ readonly name: {
37
+ type: string;
38
+ description: string;
39
+ };
40
+ readonly text: {
41
+ type: string;
42
+ description: string;
43
+ };
44
+ readonly x: {
45
+ type: string;
46
+ description: string;
47
+ };
48
+ readonly y: {
49
+ type: string;
50
+ description: string;
51
+ };
52
+ };
53
+ readonly additionalProperties: false;
54
+ };
55
+ readonly host_page_fill: {
56
+ readonly type: "object";
57
+ readonly properties: {
58
+ readonly value: {
59
+ readonly type: "string";
60
+ readonly description: "Text value to set on the target field.";
61
+ };
62
+ readonly ref: {
63
+ type: string[];
64
+ description: string;
65
+ };
66
+ readonly axRef: {
67
+ type: string[];
68
+ description: string;
69
+ };
70
+ readonly selector: {
71
+ type: string;
72
+ description: string;
73
+ };
74
+ readonly testId: {
75
+ type: string;
76
+ description: string;
77
+ };
78
+ readonly role: {
79
+ type: string;
80
+ description: string;
81
+ };
82
+ readonly name: {
83
+ type: string;
84
+ description: string;
85
+ };
86
+ readonly text: {
87
+ type: string;
88
+ description: string;
89
+ };
90
+ readonly x: {
91
+ type: string;
92
+ description: string;
93
+ };
94
+ readonly y: {
95
+ type: string;
96
+ description: string;
97
+ };
98
+ };
99
+ readonly required: readonly ["value"];
100
+ readonly additionalProperties: false;
101
+ };
102
+ readonly host_page_press: {
103
+ readonly type: "object";
104
+ readonly properties: {
105
+ readonly key: {
106
+ readonly type: "string";
107
+ readonly description: "Keyboard key to press.";
108
+ };
109
+ readonly ref: {
110
+ type: string[];
111
+ description: string;
112
+ };
113
+ readonly axRef: {
114
+ type: string[];
115
+ description: string;
116
+ };
117
+ readonly selector: {
118
+ type: string;
119
+ description: string;
120
+ };
121
+ readonly testId: {
122
+ type: string;
123
+ description: string;
124
+ };
125
+ readonly role: {
126
+ type: string;
127
+ description: string;
128
+ };
129
+ readonly name: {
130
+ type: string;
131
+ description: string;
132
+ };
133
+ readonly text: {
134
+ type: string;
135
+ description: string;
136
+ };
137
+ readonly x: {
138
+ type: string;
139
+ description: string;
140
+ };
141
+ readonly y: {
142
+ type: string;
143
+ description: string;
144
+ };
145
+ };
146
+ readonly required: readonly ["key"];
147
+ readonly additionalProperties: false;
148
+ };
149
+ readonly host_page_select: {
150
+ readonly type: "object";
151
+ readonly properties: {
152
+ readonly value: {
153
+ readonly type: ["string", "array"];
154
+ readonly description: "Select option value or values.";
155
+ readonly items: {
156
+ readonly type: "string";
157
+ };
158
+ };
159
+ readonly values: {
160
+ readonly type: ["string", "array"];
161
+ readonly description: "Select option values.";
162
+ readonly items: {
163
+ readonly type: "string";
164
+ };
165
+ };
166
+ readonly ref: {
167
+ type: string[];
168
+ description: string;
169
+ };
170
+ readonly axRef: {
171
+ type: string[];
172
+ description: string;
173
+ };
174
+ readonly selector: {
175
+ type: string;
176
+ description: string;
177
+ };
178
+ readonly testId: {
179
+ type: string;
180
+ description: string;
181
+ };
182
+ readonly role: {
183
+ type: string;
184
+ description: string;
185
+ };
186
+ readonly name: {
187
+ type: string;
188
+ description: string;
189
+ };
190
+ readonly text: {
191
+ type: string;
192
+ description: string;
193
+ };
194
+ readonly x: {
195
+ type: string;
196
+ description: string;
197
+ };
198
+ readonly y: {
199
+ type: string;
200
+ description: string;
201
+ };
202
+ };
203
+ readonly additionalProperties: false;
204
+ };
205
+ readonly host_page_scroll: {
206
+ readonly type: "object";
207
+ readonly properties: {
208
+ readonly deltaX: {
209
+ readonly type: "number";
210
+ readonly description: "Horizontal scroll delta.";
211
+ };
212
+ readonly deltaY: {
213
+ readonly type: "number";
214
+ readonly description: "Vertical scroll delta.";
215
+ };
216
+ readonly ref: {
217
+ type: string[];
218
+ description: string;
219
+ };
220
+ readonly axRef: {
221
+ type: string[];
222
+ description: string;
223
+ };
224
+ readonly selector: {
225
+ type: string;
226
+ description: string;
227
+ };
228
+ readonly testId: {
229
+ type: string;
230
+ description: string;
231
+ };
232
+ readonly role: {
233
+ type: string;
234
+ description: string;
235
+ };
236
+ readonly name: {
237
+ type: string;
238
+ description: string;
239
+ };
240
+ readonly text: {
241
+ type: string;
242
+ description: string;
243
+ };
244
+ readonly x: {
245
+ type: string;
246
+ description: string;
247
+ };
248
+ readonly y: {
249
+ type: string;
250
+ description: string;
251
+ };
252
+ };
253
+ readonly additionalProperties: false;
254
+ };
255
+ readonly host_page_navigate: {
256
+ readonly type: "object";
257
+ readonly properties: {
258
+ readonly url: {
259
+ readonly type: "string";
260
+ readonly description: "HTTP(S) URL to navigate to.";
261
+ };
262
+ };
263
+ readonly required: readonly ["url"];
264
+ readonly additionalProperties: false;
265
+ };
266
+ readonly host_page_hover: {
267
+ readonly type: "object";
268
+ readonly properties: {
269
+ readonly ref: {
270
+ type: string[];
271
+ description: string;
272
+ };
273
+ readonly axRef: {
274
+ type: string[];
275
+ description: string;
276
+ };
277
+ readonly selector: {
278
+ type: string;
279
+ description: string;
280
+ };
281
+ readonly testId: {
282
+ type: string;
283
+ description: string;
284
+ };
285
+ readonly role: {
286
+ type: string;
287
+ description: string;
288
+ };
289
+ readonly name: {
290
+ type: string;
291
+ description: string;
292
+ };
293
+ readonly text: {
294
+ type: string;
295
+ description: string;
296
+ };
297
+ readonly x: {
298
+ type: string;
299
+ description: string;
300
+ };
301
+ readonly y: {
302
+ type: string;
303
+ description: string;
304
+ };
305
+ };
306
+ readonly additionalProperties: false;
307
+ };
308
+ readonly host_page_focus: {
309
+ readonly type: "object";
310
+ readonly properties: {
311
+ readonly ref: {
312
+ type: string[];
313
+ description: string;
314
+ };
315
+ readonly axRef: {
316
+ type: string[];
317
+ description: string;
318
+ };
319
+ readonly selector: {
320
+ type: string;
321
+ description: string;
322
+ };
323
+ readonly testId: {
324
+ type: string;
325
+ description: string;
326
+ };
327
+ readonly role: {
328
+ type: string;
329
+ description: string;
330
+ };
331
+ readonly name: {
332
+ type: string;
333
+ description: string;
334
+ };
335
+ readonly text: {
336
+ type: string;
337
+ description: string;
338
+ };
339
+ readonly x: {
340
+ type: string;
341
+ description: string;
342
+ };
343
+ readonly y: {
344
+ type: string;
345
+ description: string;
346
+ };
347
+ };
348
+ readonly additionalProperties: false;
349
+ };
350
+ readonly host_page_pointer: {
351
+ readonly type: "object";
352
+ readonly properties: {
353
+ readonly action: {
354
+ readonly type: "string";
355
+ readonly enum: readonly ["move", "down", "up", "click"];
356
+ readonly description: "Pointer action. Defaults to click.";
357
+ };
358
+ readonly button: {
359
+ readonly type: ["string", "number"];
360
+ readonly description: "Mouse button.";
361
+ };
362
+ readonly clickCount: {
363
+ readonly type: "number";
364
+ readonly description: "Number of clicks for CDP mouse click.";
365
+ };
366
+ readonly targetText: {
367
+ readonly type: "string";
368
+ readonly description: "Required for explicit coordinate clicks. The actual hit target or near ancestor must contain this text.";
369
+ };
370
+ readonly expectedAfterClick: {
371
+ type: string;
372
+ properties: {
373
+ type: {
374
+ const: string;
375
+ description: string;
376
+ };
377
+ field: {
378
+ type: string;
379
+ description: string;
380
+ };
381
+ value: {
382
+ type: string;
383
+ description: string;
384
+ };
385
+ };
386
+ required: string[];
387
+ additionalProperties: false;
388
+ };
389
+ readonly coordinateSpace: {
390
+ type: string;
391
+ enum: string[];
392
+ description: string;
393
+ };
394
+ readonly ref: {
395
+ type: string[];
396
+ description: string;
397
+ };
398
+ readonly axRef: {
399
+ type: string[];
400
+ description: string;
401
+ };
402
+ readonly selector: {
403
+ type: string;
404
+ description: string;
405
+ };
406
+ readonly testId: {
407
+ type: string;
408
+ description: string;
409
+ };
410
+ readonly role: {
411
+ type: string;
412
+ description: string;
413
+ };
414
+ readonly name: {
415
+ type: string;
416
+ description: string;
417
+ };
418
+ readonly text: {
419
+ type: string;
420
+ description: string;
421
+ };
422
+ readonly x: {
423
+ type: string;
424
+ description: string;
425
+ };
426
+ readonly y: {
427
+ type: string;
428
+ description: string;
429
+ };
430
+ };
431
+ readonly additionalProperties: false;
432
+ };
433
+ readonly host_page_screenshot: {
434
+ readonly type: "object";
435
+ readonly properties: {
436
+ readonly format: {
437
+ readonly type: "string";
438
+ readonly enum: readonly ["jpeg", "png"];
439
+ readonly description: "Screenshot image format.";
440
+ };
441
+ readonly quality: {
442
+ readonly type: "number";
443
+ readonly description: "JPEG quality from 1 to 100.";
444
+ };
445
+ };
446
+ readonly additionalProperties: false;
447
+ };
448
+ readonly host_page_wait_for: {
449
+ readonly type: "object";
450
+ readonly properties: {
451
+ readonly state: {
452
+ readonly type: "string";
453
+ readonly enum: readonly ["attached", "visible", "hidden", "detached"];
454
+ readonly description: "Target state to wait for. Defaults to visible.";
455
+ };
456
+ readonly timeoutSeconds: {
457
+ readonly type: "number";
458
+ readonly description: "Maximum wait time in seconds.";
459
+ };
460
+ readonly ref: {
461
+ type: string[];
462
+ description: string;
463
+ };
464
+ readonly axRef: {
465
+ type: string[];
466
+ description: string;
467
+ };
468
+ readonly selector: {
469
+ type: string;
470
+ description: string;
471
+ };
472
+ readonly testId: {
473
+ type: string;
474
+ description: string;
475
+ };
476
+ readonly role: {
477
+ type: string;
478
+ description: string;
479
+ };
480
+ readonly name: {
481
+ type: string;
482
+ description: string;
483
+ };
484
+ readonly text: {
485
+ type: string;
486
+ description: string;
487
+ };
488
+ readonly x: {
489
+ type: string;
490
+ description: string;
491
+ };
492
+ readonly y: {
493
+ type: string;
494
+ description: string;
495
+ };
496
+ };
497
+ readonly additionalProperties: false;
498
+ };
499
+ };
500
+
7
501
  declare type HostPageAutomationClickEffectContext = {
8
502
  point: {
9
503
  x: number;
@@ -192,4 +686,15 @@ export declare type HostPageSnapshot = {
192
686
 
193
687
  export declare function isHostPageAutomationToolName(value: string): value is HostPageAutomationToolName;
194
688
 
689
+ export declare type JsonSchema = {
690
+ type?: string | string[];
691
+ enum?: readonly unknown[];
692
+ const?: unknown;
693
+ description?: string;
694
+ properties?: Record<string, JsonSchema>;
695
+ required?: readonly string[];
696
+ items?: JsonSchema;
697
+ additionalProperties?: boolean | JsonSchema;
698
+ };
699
+
195
700
  export { }