@ripplo/testing 0.0.6 → 0.0.8

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.
@@ -0,0 +1,718 @@
1
+ import { Codec } from '@ripplo/spec';
2
+ import { z } from 'zod';
3
+ import { CompileResult } from './compiler.js';
4
+ import './builder-DTWMrbuv.js';
5
+ import './step-DLfkKI3V.js';
6
+
7
+ declare const LOCKFILE_RELATIVE_PATH = ".ripplo/ripplo.lock";
8
+ declare const lockfileBodySchema: z.ZodObject<{
9
+ graph: z.ZodObject<{
10
+ edges: z.ZodArray<z.ZodObject<{
11
+ from: z.ZodString;
12
+ requiresKeys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13
+ to: z.ZodString;
14
+ workflow: z.ZodString;
15
+ }, z.core.$strip>>;
16
+ preconditions: z.ZodRecord<z.ZodString, z.ZodObject<{
17
+ depends: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ description: z.ZodString;
19
+ returns: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
+ }, z.core.$strip>>;
21
+ states: z.ZodRecord<z.ZodString, z.ZodObject<{
22
+ preconditions: z.ZodArray<z.ZodString>;
23
+ route: z.ZodString;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
26
+ tests: z.ZodArray<z.ZodObject<{
27
+ description: z.ZodString;
28
+ expectedOutcome: z.ZodString;
29
+ implemented: z.ZodBoolean;
30
+ name: z.ZodString;
31
+ slug: z.ZodString;
32
+ spec: z.ZodObject<{
33
+ entryNode: z.ZodString;
34
+ nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
35
+ type: z.ZodLiteral<"goto">;
36
+ url: z.ZodDiscriminatedUnion<[z.ZodObject<{
37
+ type: z.ZodLiteral<"static">;
38
+ value: z.ZodString;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ name: z.ZodString;
41
+ type: z.ZodLiteral<"variable">;
42
+ }, z.core.$strip>], "type">;
43
+ comment: z.ZodOptional<z.ZodString>;
44
+ id: z.ZodString;
45
+ label: z.ZodOptional<z.ZodString>;
46
+ next: z.ZodOptional<z.ZodString>;
47
+ timeout: z.ZodOptional<z.ZodNumber>;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
50
+ by: z.ZodLiteral<"testId">;
51
+ value: z.ZodString;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ by: z.ZodLiteral<"role">;
54
+ name: z.ZodOptional<z.ZodString>;
55
+ role: z.ZodString;
56
+ }, z.core.$strip>], "by">;
57
+ type: z.ZodLiteral<"click">;
58
+ comment: z.ZodOptional<z.ZodString>;
59
+ id: z.ZodString;
60
+ label: z.ZodOptional<z.ZodString>;
61
+ next: z.ZodOptional<z.ZodString>;
62
+ timeout: z.ZodOptional<z.ZodNumber>;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
65
+ by: z.ZodLiteral<"testId">;
66
+ value: z.ZodString;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ by: z.ZodLiteral<"role">;
69
+ name: z.ZodOptional<z.ZodString>;
70
+ role: z.ZodString;
71
+ }, z.core.$strip>], "by">;
72
+ type: z.ZodLiteral<"fill">;
73
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
74
+ type: z.ZodLiteral<"static">;
75
+ value: z.ZodString;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ name: z.ZodString;
78
+ type: z.ZodLiteral<"variable">;
79
+ }, z.core.$strip>], "type">;
80
+ comment: z.ZodOptional<z.ZodString>;
81
+ id: z.ZodString;
82
+ label: z.ZodOptional<z.ZodString>;
83
+ next: z.ZodOptional<z.ZodString>;
84
+ timeout: z.ZodOptional<z.ZodNumber>;
85
+ }, z.core.$strip>, z.ZodObject<{
86
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
87
+ by: z.ZodLiteral<"testId">;
88
+ value: z.ZodString;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ by: z.ZodLiteral<"role">;
91
+ name: z.ZodOptional<z.ZodString>;
92
+ role: z.ZodString;
93
+ }, z.core.$strip>], "by">;
94
+ type: z.ZodLiteral<"select">;
95
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
96
+ type: z.ZodLiteral<"static">;
97
+ value: z.ZodString;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ name: z.ZodString;
100
+ type: z.ZodLiteral<"variable">;
101
+ }, z.core.$strip>], "type">;
102
+ comment: z.ZodOptional<z.ZodString>;
103
+ id: z.ZodString;
104
+ label: z.ZodOptional<z.ZodString>;
105
+ next: z.ZodOptional<z.ZodString>;
106
+ timeout: z.ZodOptional<z.ZodNumber>;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
109
+ by: z.ZodLiteral<"testId">;
110
+ value: z.ZodString;
111
+ }, z.core.$strip>, z.ZodObject<{
112
+ by: z.ZodLiteral<"role">;
113
+ name: z.ZodOptional<z.ZodString>;
114
+ role: z.ZodString;
115
+ }, z.core.$strip>], "by">;
116
+ type: z.ZodLiteral<"hover">;
117
+ comment: z.ZodOptional<z.ZodString>;
118
+ id: z.ZodString;
119
+ label: z.ZodOptional<z.ZodString>;
120
+ next: z.ZodOptional<z.ZodString>;
121
+ timeout: z.ZodOptional<z.ZodNumber>;
122
+ }, z.core.$strip>, z.ZodObject<{
123
+ key: z.ZodString;
124
+ locator: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
125
+ by: z.ZodLiteral<"testId">;
126
+ value: z.ZodString;
127
+ }, z.core.$strip>, z.ZodObject<{
128
+ by: z.ZodLiteral<"role">;
129
+ name: z.ZodOptional<z.ZodString>;
130
+ role: z.ZodString;
131
+ }, z.core.$strip>], "by">>;
132
+ type: z.ZodLiteral<"press">;
133
+ comment: z.ZodOptional<z.ZodString>;
134
+ id: z.ZodString;
135
+ label: z.ZodOptional<z.ZodString>;
136
+ next: z.ZodOptional<z.ZodString>;
137
+ timeout: z.ZodOptional<z.ZodNumber>;
138
+ }, z.core.$strip>, z.ZodObject<{
139
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
140
+ by: z.ZodLiteral<"testId">;
141
+ value: z.ZodString;
142
+ }, z.core.$strip>, z.ZodObject<{
143
+ by: z.ZodLiteral<"role">;
144
+ name: z.ZodOptional<z.ZodString>;
145
+ role: z.ZodString;
146
+ }, z.core.$strip>], "by">;
147
+ type: z.ZodLiteral<"check">;
148
+ comment: z.ZodOptional<z.ZodString>;
149
+ id: z.ZodString;
150
+ label: z.ZodOptional<z.ZodString>;
151
+ next: z.ZodOptional<z.ZodString>;
152
+ timeout: z.ZodOptional<z.ZodNumber>;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
155
+ by: z.ZodLiteral<"testId">;
156
+ value: z.ZodString;
157
+ }, z.core.$strip>, z.ZodObject<{
158
+ by: z.ZodLiteral<"role">;
159
+ name: z.ZodOptional<z.ZodString>;
160
+ role: z.ZodString;
161
+ }, z.core.$strip>], "by">;
162
+ type: z.ZodLiteral<"uncheck">;
163
+ comment: z.ZodOptional<z.ZodString>;
164
+ id: z.ZodString;
165
+ label: z.ZodOptional<z.ZodString>;
166
+ next: z.ZodOptional<z.ZodString>;
167
+ timeout: z.ZodOptional<z.ZodNumber>;
168
+ }, z.core.$strip>, z.ZodObject<{
169
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
170
+ by: z.ZodLiteral<"testId">;
171
+ value: z.ZodString;
172
+ }, z.core.$strip>, z.ZodObject<{
173
+ by: z.ZodLiteral<"role">;
174
+ name: z.ZodOptional<z.ZodString>;
175
+ role: z.ZodString;
176
+ }, z.core.$strip>], "by">;
177
+ type: z.ZodLiteral<"assertVisible">;
178
+ comment: z.ZodOptional<z.ZodString>;
179
+ id: z.ZodString;
180
+ label: z.ZodOptional<z.ZodString>;
181
+ next: z.ZodOptional<z.ZodString>;
182
+ timeout: z.ZodOptional<z.ZodNumber>;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
185
+ by: z.ZodLiteral<"testId">;
186
+ value: z.ZodString;
187
+ }, z.core.$strip>, z.ZodObject<{
188
+ by: z.ZodLiteral<"role">;
189
+ name: z.ZodOptional<z.ZodString>;
190
+ role: z.ZodString;
191
+ }, z.core.$strip>], "by">;
192
+ type: z.ZodLiteral<"assertNotVisible">;
193
+ comment: z.ZodOptional<z.ZodString>;
194
+ id: z.ZodString;
195
+ label: z.ZodOptional<z.ZodString>;
196
+ next: z.ZodOptional<z.ZodString>;
197
+ timeout: z.ZodOptional<z.ZodNumber>;
198
+ }, z.core.$strip>, z.ZodObject<{
199
+ expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
200
+ type: z.ZodLiteral<"static">;
201
+ value: z.ZodString;
202
+ }, z.core.$strip>, z.ZodObject<{
203
+ name: z.ZodString;
204
+ type: z.ZodLiteral<"variable">;
205
+ }, z.core.$strip>], "type">;
206
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
207
+ by: z.ZodLiteral<"testId">;
208
+ value: z.ZodString;
209
+ }, z.core.$strip>, z.ZodObject<{
210
+ by: z.ZodLiteral<"role">;
211
+ name: z.ZodOptional<z.ZodString>;
212
+ role: z.ZodString;
213
+ }, z.core.$strip>], "by">;
214
+ operator: z.ZodEnum<{
215
+ equals: "equals";
216
+ notEquals: "notEquals";
217
+ contains: "contains";
218
+ startsWith: "startsWith";
219
+ endsWith: "endsWith";
220
+ matches: "matches";
221
+ }>;
222
+ type: z.ZodLiteral<"assertText">;
223
+ comment: z.ZodOptional<z.ZodString>;
224
+ id: z.ZodString;
225
+ label: z.ZodOptional<z.ZodString>;
226
+ next: z.ZodOptional<z.ZodString>;
227
+ timeout: z.ZodOptional<z.ZodNumber>;
228
+ }, z.core.$strip>, z.ZodObject<{
229
+ expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
230
+ type: z.ZodLiteral<"static">;
231
+ value: z.ZodString;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ name: z.ZodString;
234
+ type: z.ZodLiteral<"variable">;
235
+ }, z.core.$strip>], "type">;
236
+ operator: z.ZodEnum<{
237
+ equals: "equals";
238
+ notEquals: "notEquals";
239
+ contains: "contains";
240
+ startsWith: "startsWith";
241
+ endsWith: "endsWith";
242
+ matches: "matches";
243
+ }>;
244
+ type: z.ZodLiteral<"assertUrl">;
245
+ comment: z.ZodOptional<z.ZodString>;
246
+ id: z.ZodString;
247
+ label: z.ZodOptional<z.ZodString>;
248
+ next: z.ZodOptional<z.ZodString>;
249
+ timeout: z.ZodOptional<z.ZodNumber>;
250
+ }, z.core.$strip>, z.ZodObject<{
251
+ expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
252
+ type: z.ZodLiteral<"static">;
253
+ value: z.ZodNumber;
254
+ }, z.core.$strip>, z.ZodObject<{
255
+ name: z.ZodString;
256
+ type: z.ZodLiteral<"variable">;
257
+ }, z.core.$strip>], "type">;
258
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
259
+ by: z.ZodLiteral<"testId">;
260
+ value: z.ZodString;
261
+ }, z.core.$strip>, z.ZodObject<{
262
+ by: z.ZodLiteral<"role">;
263
+ name: z.ZodOptional<z.ZodString>;
264
+ role: z.ZodString;
265
+ }, z.core.$strip>], "by">;
266
+ operator: z.ZodEnum<{
267
+ equals: "equals";
268
+ notEquals: "notEquals";
269
+ greaterThan: "greaterThan";
270
+ greaterThanOrEqual: "greaterThanOrEqual";
271
+ lessThan: "lessThan";
272
+ lessThanOrEqual: "lessThanOrEqual";
273
+ }>;
274
+ type: z.ZodLiteral<"assertCount">;
275
+ comment: z.ZodOptional<z.ZodString>;
276
+ id: z.ZodString;
277
+ label: z.ZodOptional<z.ZodString>;
278
+ next: z.ZodOptional<z.ZodString>;
279
+ timeout: z.ZodOptional<z.ZodNumber>;
280
+ }, z.core.$strip>, z.ZodObject<{
281
+ expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
282
+ type: z.ZodLiteral<"static">;
283
+ value: z.ZodString;
284
+ }, z.core.$strip>, z.ZodObject<{
285
+ name: z.ZodString;
286
+ type: z.ZodLiteral<"variable">;
287
+ }, z.core.$strip>], "type">;
288
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
289
+ by: z.ZodLiteral<"testId">;
290
+ value: z.ZodString;
291
+ }, z.core.$strip>, z.ZodObject<{
292
+ by: z.ZodLiteral<"role">;
293
+ name: z.ZodOptional<z.ZodString>;
294
+ role: z.ZodString;
295
+ }, z.core.$strip>], "by">;
296
+ operator: z.ZodEnum<{
297
+ equals: "equals";
298
+ notEquals: "notEquals";
299
+ contains: "contains";
300
+ startsWith: "startsWith";
301
+ endsWith: "endsWith";
302
+ matches: "matches";
303
+ }>;
304
+ type: z.ZodLiteral<"assertValue">;
305
+ comment: z.ZodOptional<z.ZodString>;
306
+ id: z.ZodString;
307
+ label: z.ZodOptional<z.ZodString>;
308
+ next: z.ZodOptional<z.ZodString>;
309
+ timeout: z.ZodOptional<z.ZodNumber>;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ attribute: z.ZodString;
312
+ expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
313
+ type: z.ZodLiteral<"static">;
314
+ value: z.ZodString;
315
+ }, z.core.$strip>, z.ZodObject<{
316
+ name: z.ZodString;
317
+ type: z.ZodLiteral<"variable">;
318
+ }, z.core.$strip>], "type">;
319
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
320
+ by: z.ZodLiteral<"testId">;
321
+ value: z.ZodString;
322
+ }, z.core.$strip>, z.ZodObject<{
323
+ by: z.ZodLiteral<"role">;
324
+ name: z.ZodOptional<z.ZodString>;
325
+ role: z.ZodString;
326
+ }, z.core.$strip>], "by">;
327
+ operator: z.ZodEnum<{
328
+ equals: "equals";
329
+ notEquals: "notEquals";
330
+ contains: "contains";
331
+ startsWith: "startsWith";
332
+ endsWith: "endsWith";
333
+ matches: "matches";
334
+ }>;
335
+ type: z.ZodLiteral<"assertAttribute">;
336
+ comment: z.ZodOptional<z.ZodString>;
337
+ id: z.ZodString;
338
+ label: z.ZodOptional<z.ZodString>;
339
+ next: z.ZodOptional<z.ZodString>;
340
+ timeout: z.ZodOptional<z.ZodNumber>;
341
+ }, z.core.$strip>, z.ZodObject<{
342
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
343
+ by: z.ZodLiteral<"testId">;
344
+ value: z.ZodString;
345
+ }, z.core.$strip>, z.ZodObject<{
346
+ by: z.ZodLiteral<"role">;
347
+ name: z.ZodOptional<z.ZodString>;
348
+ role: z.ZodString;
349
+ }, z.core.$strip>], "by">;
350
+ type: z.ZodLiteral<"assertEnabled">;
351
+ comment: z.ZodOptional<z.ZodString>;
352
+ id: z.ZodString;
353
+ label: z.ZodOptional<z.ZodString>;
354
+ next: z.ZodOptional<z.ZodString>;
355
+ timeout: z.ZodOptional<z.ZodNumber>;
356
+ }, z.core.$strip>, z.ZodObject<{
357
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
358
+ by: z.ZodLiteral<"testId">;
359
+ value: z.ZodString;
360
+ }, z.core.$strip>, z.ZodObject<{
361
+ by: z.ZodLiteral<"role">;
362
+ name: z.ZodOptional<z.ZodString>;
363
+ role: z.ZodString;
364
+ }, z.core.$strip>], "by">;
365
+ type: z.ZodLiteral<"assertDisabled">;
366
+ comment: z.ZodOptional<z.ZodString>;
367
+ id: z.ZodString;
368
+ label: z.ZodOptional<z.ZodString>;
369
+ next: z.ZodOptional<z.ZodString>;
370
+ timeout: z.ZodOptional<z.ZodNumber>;
371
+ }, z.core.$strip>, z.ZodObject<{
372
+ height: z.ZodNumber;
373
+ type: z.ZodLiteral<"setViewport">;
374
+ width: z.ZodNumber;
375
+ comment: z.ZodOptional<z.ZodString>;
376
+ id: z.ZodString;
377
+ label: z.ZodOptional<z.ZodString>;
378
+ next: z.ZodOptional<z.ZodString>;
379
+ timeout: z.ZodOptional<z.ZodNumber>;
380
+ }, z.core.$strip>, z.ZodObject<{
381
+ message: z.ZodString;
382
+ type: z.ZodLiteral<"fail">;
383
+ comment: z.ZodOptional<z.ZodString>;
384
+ id: z.ZodString;
385
+ label: z.ZodOptional<z.ZodString>;
386
+ next: z.ZodOptional<z.ZodString>;
387
+ timeout: z.ZodOptional<z.ZodNumber>;
388
+ }, z.core.$strip>, z.ZodObject<{
389
+ type: z.ZodLiteral<"setVariable">;
390
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
391
+ type: z.ZodLiteral<"static">;
392
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
393
+ }, z.core.$strip>, z.ZodObject<{
394
+ name: z.ZodString;
395
+ type: z.ZodLiteral<"variable">;
396
+ }, z.core.$strip>], "type">;
397
+ variable: z.ZodString;
398
+ comment: z.ZodOptional<z.ZodString>;
399
+ id: z.ZodString;
400
+ label: z.ZodOptional<z.ZodString>;
401
+ next: z.ZodOptional<z.ZodString>;
402
+ timeout: z.ZodOptional<z.ZodNumber>;
403
+ }, z.core.$strip>, z.ZodObject<{
404
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
405
+ by: z.ZodLiteral<"testId">;
406
+ value: z.ZodString;
407
+ }, z.core.$strip>, z.ZodObject<{
408
+ by: z.ZodLiteral<"role">;
409
+ name: z.ZodOptional<z.ZodString>;
410
+ role: z.ZodString;
411
+ }, z.core.$strip>], "by">;
412
+ type: z.ZodLiteral<"extractText">;
413
+ variable: z.ZodString;
414
+ comment: z.ZodOptional<z.ZodString>;
415
+ id: z.ZodString;
416
+ label: z.ZodOptional<z.ZodString>;
417
+ next: z.ZodOptional<z.ZodString>;
418
+ timeout: z.ZodOptional<z.ZodNumber>;
419
+ }, z.core.$strip>, z.ZodObject<{
420
+ files: z.ZodArray<z.ZodString>;
421
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
422
+ by: z.ZodLiteral<"testId">;
423
+ value: z.ZodString;
424
+ }, z.core.$strip>, z.ZodObject<{
425
+ by: z.ZodLiteral<"role">;
426
+ name: z.ZodOptional<z.ZodString>;
427
+ role: z.ZodString;
428
+ }, z.core.$strip>], "by">;
429
+ type: z.ZodLiteral<"upload">;
430
+ comment: z.ZodOptional<z.ZodString>;
431
+ id: z.ZodString;
432
+ label: z.ZodOptional<z.ZodString>;
433
+ next: z.ZodOptional<z.ZodString>;
434
+ timeout: z.ZodOptional<z.ZodNumber>;
435
+ }, z.core.$strip>, z.ZodObject<{
436
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
437
+ by: z.ZodLiteral<"testId">;
438
+ value: z.ZodString;
439
+ }, z.core.$strip>, z.ZodObject<{
440
+ by: z.ZodLiteral<"role">;
441
+ name: z.ZodOptional<z.ZodString>;
442
+ role: z.ZodString;
443
+ }, z.core.$strip>], "by">;
444
+ type: z.ZodLiteral<"dblclick">;
445
+ comment: z.ZodOptional<z.ZodString>;
446
+ id: z.ZodString;
447
+ label: z.ZodOptional<z.ZodString>;
448
+ next: z.ZodOptional<z.ZodString>;
449
+ timeout: z.ZodOptional<z.ZodNumber>;
450
+ }, z.core.$strip>, z.ZodObject<{
451
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
452
+ by: z.ZodLiteral<"testId">;
453
+ value: z.ZodString;
454
+ }, z.core.$strip>, z.ZodObject<{
455
+ by: z.ZodLiteral<"role">;
456
+ name: z.ZodOptional<z.ZodString>;
457
+ role: z.ZodString;
458
+ }, z.core.$strip>], "by">;
459
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
460
+ by: z.ZodLiteral<"testId">;
461
+ value: z.ZodString;
462
+ }, z.core.$strip>, z.ZodObject<{
463
+ by: z.ZodLiteral<"role">;
464
+ name: z.ZodOptional<z.ZodString>;
465
+ role: z.ZodString;
466
+ }, z.core.$strip>], "by">;
467
+ type: z.ZodLiteral<"drag">;
468
+ comment: z.ZodOptional<z.ZodString>;
469
+ id: z.ZodString;
470
+ label: z.ZodOptional<z.ZodString>;
471
+ next: z.ZodOptional<z.ZodString>;
472
+ timeout: z.ZodOptional<z.ZodNumber>;
473
+ }, z.core.$strip>, z.ZodObject<{
474
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
475
+ by: z.ZodLiteral<"testId">;
476
+ value: z.ZodString;
477
+ }, z.core.$strip>, z.ZodObject<{
478
+ by: z.ZodLiteral<"role">;
479
+ name: z.ZodOptional<z.ZodString>;
480
+ role: z.ZodString;
481
+ }, z.core.$strip>], "by">;
482
+ type: z.ZodLiteral<"scrollIntoView">;
483
+ comment: z.ZodOptional<z.ZodString>;
484
+ id: z.ZodString;
485
+ label: z.ZodOptional<z.ZodString>;
486
+ next: z.ZodOptional<z.ZodString>;
487
+ timeout: z.ZodOptional<z.ZodNumber>;
488
+ }, z.core.$strip>, z.ZodObject<{
489
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
490
+ by: z.ZodLiteral<"testId">;
491
+ value: z.ZodString;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ by: z.ZodLiteral<"role">;
494
+ name: z.ZodOptional<z.ZodString>;
495
+ role: z.ZodString;
496
+ }, z.core.$strip>], "by">;
497
+ type: z.ZodLiteral<"type">;
498
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
499
+ type: z.ZodLiteral<"static">;
500
+ value: z.ZodString;
501
+ }, z.core.$strip>, z.ZodObject<{
502
+ name: z.ZodString;
503
+ type: z.ZodLiteral<"variable">;
504
+ }, z.core.$strip>], "type">;
505
+ comment: z.ZodOptional<z.ZodString>;
506
+ id: z.ZodString;
507
+ label: z.ZodOptional<z.ZodString>;
508
+ next: z.ZodOptional<z.ZodString>;
509
+ timeout: z.ZodOptional<z.ZodNumber>;
510
+ }, z.core.$strip>, z.ZodObject<{
511
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
512
+ by: z.ZodLiteral<"testId">;
513
+ value: z.ZodString;
514
+ }, z.core.$strip>, z.ZodObject<{
515
+ by: z.ZodLiteral<"role">;
516
+ name: z.ZodOptional<z.ZodString>;
517
+ role: z.ZodString;
518
+ }, z.core.$strip>], "by">;
519
+ type: z.ZodLiteral<"focus">;
520
+ comment: z.ZodOptional<z.ZodString>;
521
+ id: z.ZodString;
522
+ label: z.ZodOptional<z.ZodString>;
523
+ next: z.ZodOptional<z.ZodString>;
524
+ timeout: z.ZodOptional<z.ZodNumber>;
525
+ }, z.core.$strip>, z.ZodObject<{
526
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
527
+ by: z.ZodLiteral<"testId">;
528
+ value: z.ZodString;
529
+ }, z.core.$strip>, z.ZodObject<{
530
+ by: z.ZodLiteral<"role">;
531
+ name: z.ZodOptional<z.ZodString>;
532
+ role: z.ZodString;
533
+ }, z.core.$strip>], "by">;
534
+ type: z.ZodLiteral<"clear">;
535
+ comment: z.ZodOptional<z.ZodString>;
536
+ id: z.ZodString;
537
+ label: z.ZodOptional<z.ZodString>;
538
+ next: z.ZodOptional<z.ZodString>;
539
+ timeout: z.ZodOptional<z.ZodNumber>;
540
+ }, z.core.$strip>, z.ZodObject<{
541
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
542
+ by: z.ZodLiteral<"testId">;
543
+ value: z.ZodString;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ by: z.ZodLiteral<"role">;
546
+ name: z.ZodOptional<z.ZodString>;
547
+ role: z.ZodString;
548
+ }, z.core.$strip>], "by">;
549
+ type: z.ZodLiteral<"rightClick">;
550
+ comment: z.ZodOptional<z.ZodString>;
551
+ id: z.ZodString;
552
+ label: z.ZodOptional<z.ZodString>;
553
+ next: z.ZodOptional<z.ZodString>;
554
+ timeout: z.ZodOptional<z.ZodNumber>;
555
+ }, z.core.$strip>, z.ZodObject<{
556
+ action: z.ZodEnum<{
557
+ accept: "accept";
558
+ dismiss: "dismiss";
559
+ }>;
560
+ promptText: z.ZodOptional<z.ZodString>;
561
+ type: z.ZodLiteral<"handleDialog">;
562
+ comment: z.ZodOptional<z.ZodString>;
563
+ id: z.ZodString;
564
+ label: z.ZodOptional<z.ZodString>;
565
+ next: z.ZodOptional<z.ZodString>;
566
+ timeout: z.ZodOptional<z.ZodNumber>;
567
+ }, z.core.$strip>, z.ZodObject<{
568
+ action: z.ZodEnum<{
569
+ read: "read";
570
+ write: "write";
571
+ }>;
572
+ type: z.ZodLiteral<"clipboard">;
573
+ value: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
574
+ type: z.ZodLiteral<"static">;
575
+ value: z.ZodString;
576
+ }, z.core.$strip>, z.ZodObject<{
577
+ name: z.ZodString;
578
+ type: z.ZodLiteral<"variable">;
579
+ }, z.core.$strip>], "type">>;
580
+ variable: z.ZodOptional<z.ZodString>;
581
+ comment: z.ZodOptional<z.ZodString>;
582
+ id: z.ZodString;
583
+ label: z.ZodOptional<z.ZodString>;
584
+ next: z.ZodOptional<z.ZodString>;
585
+ timeout: z.ZodOptional<z.ZodNumber>;
586
+ }, z.core.$strip>, z.ZodObject<{
587
+ permission: z.ZodString;
588
+ state: z.ZodEnum<{
589
+ granted: "granted";
590
+ prompt: "prompt";
591
+ }>;
592
+ type: z.ZodLiteral<"setPermission">;
593
+ comment: z.ZodOptional<z.ZodString>;
594
+ id: z.ZodString;
595
+ label: z.ZodOptional<z.ZodString>;
596
+ next: z.ZodOptional<z.ZodString>;
597
+ timeout: z.ZodOptional<z.ZodNumber>;
598
+ }, z.core.$strip>, z.ZodObject<{
599
+ expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
600
+ type: z.ZodLiteral<"static">;
601
+ value: z.ZodString;
602
+ }, z.core.$strip>, z.ZodObject<{
603
+ name: z.ZodString;
604
+ type: z.ZodLiteral<"variable">;
605
+ }, z.core.$strip>], "type">;
606
+ operator: z.ZodEnum<{
607
+ equals: "equals";
608
+ notEquals: "notEquals";
609
+ contains: "contains";
610
+ startsWith: "startsWith";
611
+ endsWith: "endsWith";
612
+ matches: "matches";
613
+ }>;
614
+ type: z.ZodLiteral<"assertTitle">;
615
+ comment: z.ZodOptional<z.ZodString>;
616
+ id: z.ZodString;
617
+ label: z.ZodOptional<z.ZodString>;
618
+ next: z.ZodOptional<z.ZodString>;
619
+ timeout: z.ZodOptional<z.ZodNumber>;
620
+ }, z.core.$strip>, z.ZodObject<{
621
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
622
+ by: z.ZodLiteral<"testId">;
623
+ value: z.ZodString;
624
+ }, z.core.$strip>, z.ZodObject<{
625
+ by: z.ZodLiteral<"role">;
626
+ name: z.ZodOptional<z.ZodString>;
627
+ role: z.ZodString;
628
+ }, z.core.$strip>], "by">;
629
+ type: z.ZodLiteral<"assertChecked">;
630
+ comment: z.ZodOptional<z.ZodString>;
631
+ id: z.ZodString;
632
+ label: z.ZodOptional<z.ZodString>;
633
+ next: z.ZodOptional<z.ZodString>;
634
+ timeout: z.ZodOptional<z.ZodNumber>;
635
+ }, z.core.$strip>, z.ZodObject<{
636
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
637
+ by: z.ZodLiteral<"testId">;
638
+ value: z.ZodString;
639
+ }, z.core.$strip>, z.ZodObject<{
640
+ by: z.ZodLiteral<"role">;
641
+ name: z.ZodOptional<z.ZodString>;
642
+ role: z.ZodString;
643
+ }, z.core.$strip>], "by">;
644
+ type: z.ZodLiteral<"assertNotChecked">;
645
+ comment: z.ZodOptional<z.ZodString>;
646
+ id: z.ZodString;
647
+ label: z.ZodOptional<z.ZodString>;
648
+ next: z.ZodOptional<z.ZodString>;
649
+ timeout: z.ZodOptional<z.ZodNumber>;
650
+ }, z.core.$strip>, z.ZodObject<{
651
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
652
+ by: z.ZodLiteral<"testId">;
653
+ value: z.ZodString;
654
+ }, z.core.$strip>, z.ZodObject<{
655
+ by: z.ZodLiteral<"role">;
656
+ name: z.ZodOptional<z.ZodString>;
657
+ role: z.ZodString;
658
+ }, z.core.$strip>], "by">;
659
+ type: z.ZodLiteral<"assertFocused">;
660
+ comment: z.ZodOptional<z.ZodString>;
661
+ id: z.ZodString;
662
+ label: z.ZodOptional<z.ZodString>;
663
+ next: z.ZodOptional<z.ZodString>;
664
+ timeout: z.ZodOptional<z.ZodNumber>;
665
+ }, z.core.$strip>, z.ZodObject<{
666
+ locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
667
+ by: z.ZodLiteral<"testId">;
668
+ value: z.ZodString;
669
+ }, z.core.$strip>, z.ZodObject<{
670
+ by: z.ZodLiteral<"role">;
671
+ name: z.ZodOptional<z.ZodString>;
672
+ role: z.ZodString;
673
+ }, z.core.$strip>], "by">;
674
+ type: z.ZodLiteral<"assertNotFocused">;
675
+ comment: z.ZodOptional<z.ZodString>;
676
+ id: z.ZodString;
677
+ label: z.ZodOptional<z.ZodString>;
678
+ next: z.ZodOptional<z.ZodString>;
679
+ timeout: z.ZodOptional<z.ZodNumber>;
680
+ }, z.core.$strip>], "type">>;
681
+ variableNamespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
682
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
683
+ default: z.ZodOptional<z.ZodString>;
684
+ type: z.ZodLiteral<"string">;
685
+ }, z.core.$strip>, z.ZodObject<{
686
+ default: z.ZodOptional<z.ZodNumber>;
687
+ type: z.ZodLiteral<"number">;
688
+ }, z.core.$strip>, z.ZodObject<{
689
+ default: z.ZodOptional<z.ZodBoolean>;
690
+ type: z.ZodLiteral<"boolean">;
691
+ }, z.core.$strip>, z.ZodObject<{
692
+ key: z.ZodString;
693
+ type: z.ZodLiteral<"env">;
694
+ }, z.core.$strip>], "type">>>;
695
+ }, z.core.$strip>;
696
+ }, z.core.$strip>>;
697
+ }, z.core.$strip>;
698
+ type Lockfile = z.infer<typeof lockfileBodySchema>;
699
+ declare const lockfileCodec: Codec<Lockfile>;
700
+ declare function compileResultToLockfile(result: CompileResult): Lockfile;
701
+ declare function serializeLockfile(lockfile: Lockfile): string;
702
+ interface ReadLockfileParams {
703
+ readonly cwd: string;
704
+ }
705
+ declare function readLockfile({ cwd }: ReadLockfileParams): Promise<Lockfile | null>;
706
+ interface WriteLockfileParams {
707
+ readonly cwd: string;
708
+ readonly result: CompileResult;
709
+ }
710
+ declare function writeLockfile({ cwd, result }: WriteLockfileParams): Promise<void>;
711
+ type LockfileComparison = "match" | "missing" | "stale";
712
+ interface CompareLockfileParams {
713
+ readonly compiled: CompileResult;
714
+ readonly existing: Lockfile | null;
715
+ }
716
+ declare function compareCompileToLockfile({ compiled, existing, }: CompareLockfileParams): LockfileComparison;
717
+
718
+ export { type CompareLockfileParams, LOCKFILE_RELATIVE_PATH, type Lockfile, type LockfileComparison, type ReadLockfileParams, type WriteLockfileParams, compareCompileToLockfile, compileResultToLockfile, lockfileCodec, readLockfile, serializeLockfile, writeLockfile };