@reticlehq/core 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/artifacts-entry.d.ts +2 -0
- package/dist/artifacts/artifacts-entry.js +2 -0
- package/dist/artifacts/drive-script.d.ts +158 -52
- package/dist/artifacts/drive-script.js +24 -1
- package/dist/artifacts/flow-constants.d.ts +18 -0
- package/dist/artifacts/flow-constants.js +20 -0
- package/dist/artifacts/flow-results.d.ts +450 -0
- package/dist/artifacts/flow-results.js +1 -0
- package/dist/artifacts/flow-types.d.ts +25 -437
- package/dist/artifacts/flow-types.js +5 -2
- package/dist/artifacts/harness-credits.d.ts +39 -0
- package/dist/artifacts/harness-credits.js +69 -0
- package/dist/artifacts/harness-map.d.ts +98 -0
- package/dist/artifacts/harness-map.js +36 -0
- package/dist/artifacts/impact.d.ts +354 -145
- package/dist/artifacts/impact.js +66 -48
- package/dist/artifacts/journal.d.ts +56 -5
- package/dist/artifacts/journal.js +26 -0
- package/dist/artifacts/screenshot-upload.d.ts +51 -0
- package/dist/artifacts/screenshot-upload.js +26 -0
- package/dist/hooks/hook-events.d.ts +4 -4
- package/dist/hud-entry.d.ts +1 -0
- package/dist/hud-entry.js +2 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/onboarding.d.ts +8 -0
- package/dist/onboarding.js +6 -0
- package/dist/realm/registry.js +19 -1
- package/dist/schema/command-message.json +30 -0
- package/dist/schema/command-name.json +3 -1
- package/dist/schema/event-payloads.json +40 -2
- package/dist/schema/reticle-message.json +30 -0
- package/dist/telemetry-bug.d.ts +169 -0
- package/dist/telemetry-bug.js +123 -0
- package/dist/telemetry-entry.d.ts +1 -0
- package/dist/telemetry-entry.js +1 -0
- package/dist/telemetry-feedback.d.ts +2 -2
- package/dist/telemetry-refusal.d.ts +2 -2
- package/dist/telemetry-session.d.ts +74 -0
- package/dist/telemetry-session.js +54 -0
- package/dist/telemetry-signals.d.ts +339 -0
- package/dist/telemetry-signals.js +138 -0
- package/dist/telemetry.d.ts +300 -254
- package/dist/telemetry.js +40 -115
- package/dist/verdict/disparity.d.ts +105 -0
- package/dist/verdict/disparity.js +40 -0
- package/dist/verdict/findings.d.ts +6 -0
- package/dist/verdict/findings.js +9 -0
- package/dist/verdict/instrumentation-coverage.d.ts +115 -0
- package/dist/verdict/instrumentation-coverage.js +226 -0
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +19 -5
- package/dist/verdict/intent.js +13 -1
- package/dist/verdict/predicate-tree.d.ts +15 -0
- package/dist/verdict/predicate-tree.js +21 -0
- package/dist/verdict/predicate.d.ts +14 -0
- package/dist/verdict/predicate.js +87 -3
- package/dist/verdict/security.d.ts +25 -0
- package/dist/verdict/security.js +82 -0
- package/dist/verdict/verification-run.d.ts +620 -32
- package/dist/verdict/verification-run.js +82 -0
- package/dist/wire/constants/constants.d.ts +15 -16
- package/dist/wire/constants/constants.js +16 -17
- package/dist/wire/constants/hud-controls.js +17 -5
- package/dist/wire/constants/hud-use.d.ts +29 -4
- package/dist/wire/constants/hud-use.js +26 -4
- package/dist/wire/constants/mcp-wire.d.ts +10 -0
- package/dist/wire/constants/mcp-wire.js +10 -0
- package/dist/wire/constants/reticle-chrome.d.ts +19 -0
- package/dist/wire/constants/reticle-chrome.js +19 -0
- package/dist/wire/constants/session-constants.d.ts +15 -2
- package/dist/wire/constants/session-constants.js +15 -2
- package/dist/wire/desktop-contract.d.ts +8 -0
- package/dist/wire/desktop-contract.js +11 -0
- package/dist/wire/event-payloads.d.ts +56 -4
- package/dist/wire/event-payloads.js +17 -0
- package/dist/wire/messages.d.ts +105 -32
- package/dist/wire/messages.js +9 -1
- package/dist/wire/platform-link.d.ts +77 -0
- package/dist/wire/platform-link.js +45 -0
- package/dist/wire/tool-names.d.ts +2 -0
- package/dist/wire/tool-names.js +2 -0
- package/dist/wire/types.d.ts +19 -6
- package/dist/wire/types.js +5 -0
- package/dist/words/notices.d.ts +1 -1
- package/dist/words/notices.js +1 -1
- package/dist/words/upgrade.js +1 -1
- package/dist/words/writing-rule.d.ts +14 -0
- package/dist/words/writing-rule.js +17 -0
- package/package.json +1 -1
|
@@ -22,10 +22,22 @@ export declare const ScriptStepKind: {
|
|
|
22
22
|
readonly CHECKPOINT: "checkpoint";
|
|
23
23
|
readonly BRANCH: "branch";
|
|
24
24
|
};
|
|
25
|
+
/** How a journey of a plan was answered: its saved flows replayed (no model), or the model drove it. */
|
|
26
|
+
export declare const JourneyBy: {
|
|
27
|
+
readonly REPLAY: "replay";
|
|
28
|
+
readonly MODEL: "model";
|
|
29
|
+
};
|
|
30
|
+
export type JourneyBy = (typeof JourneyBy)[keyof typeof JourneyBy];
|
|
25
31
|
export declare const ScriptSource: {
|
|
26
32
|
readonly LOCAL: "local";
|
|
27
33
|
readonly PLATFORM: "platform";
|
|
28
34
|
};
|
|
35
|
+
/** How the journey a condition names must have ended for the conditional one to run. */
|
|
36
|
+
export declare const JourneyOutcome: {
|
|
37
|
+
readonly PASSED: "passed";
|
|
38
|
+
readonly FAILED: "failed";
|
|
39
|
+
};
|
|
40
|
+
export type JourneyOutcome = (typeof JourneyOutcome)[keyof typeof JourneyOutcome];
|
|
29
41
|
declare const LeafStep: z.ZodUnion<[z.ZodObject<{
|
|
30
42
|
kind: z.ZodLiteral<"replay">;
|
|
31
43
|
flow: z.ZodString;
|
|
@@ -55,36 +67,36 @@ declare const LeafStep: z.ZodUnion<[z.ZodObject<{
|
|
|
55
67
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
56
68
|
}, "strip", z.ZodTypeAny, {
|
|
57
69
|
kind: "act";
|
|
70
|
+
goal?: string | undefined;
|
|
58
71
|
target?: Record<string, unknown> | undefined;
|
|
59
72
|
action?: string | undefined;
|
|
60
73
|
args?: Record<string, unknown> | undefined;
|
|
61
74
|
until?: import("../index.js").Predicate | undefined;
|
|
62
75
|
maxSteps?: number | undefined;
|
|
63
|
-
goal?: string | undefined;
|
|
64
76
|
}, {
|
|
65
77
|
kind: "act";
|
|
78
|
+
goal?: string | undefined;
|
|
66
79
|
target?: Record<string, unknown> | undefined;
|
|
67
80
|
action?: string | undefined;
|
|
68
81
|
args?: Record<string, unknown> | undefined;
|
|
69
82
|
until?: import("../index.js").Predicate | undefined;
|
|
70
83
|
maxSteps?: number | undefined;
|
|
71
|
-
goal?: string | undefined;
|
|
72
84
|
}>, {
|
|
73
85
|
kind: "act";
|
|
86
|
+
goal?: string | undefined;
|
|
74
87
|
target?: Record<string, unknown> | undefined;
|
|
75
88
|
action?: string | undefined;
|
|
76
89
|
args?: Record<string, unknown> | undefined;
|
|
77
90
|
until?: import("../index.js").Predicate | undefined;
|
|
78
91
|
maxSteps?: number | undefined;
|
|
79
|
-
goal?: string | undefined;
|
|
80
92
|
}, {
|
|
81
93
|
kind: "act";
|
|
94
|
+
goal?: string | undefined;
|
|
82
95
|
target?: Record<string, unknown> | undefined;
|
|
83
96
|
action?: string | undefined;
|
|
84
97
|
args?: Record<string, unknown> | undefined;
|
|
85
98
|
until?: import("../index.js").Predicate | undefined;
|
|
86
99
|
maxSteps?: number | undefined;
|
|
87
|
-
goal?: string | undefined;
|
|
88
100
|
}>, z.ZodObject<{
|
|
89
101
|
kind: z.ZodLiteral<"assert">;
|
|
90
102
|
predicate: z.ZodType<import("../index.js").Predicate, z.ZodTypeDef, import("../index.js").Predicate>;
|
|
@@ -124,36 +136,36 @@ export declare const ScriptStepSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
124
136
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
125
137
|
}, "strip", z.ZodTypeAny, {
|
|
126
138
|
kind: "act";
|
|
139
|
+
goal?: string | undefined;
|
|
127
140
|
target?: Record<string, unknown> | undefined;
|
|
128
141
|
action?: string | undefined;
|
|
129
142
|
args?: Record<string, unknown> | undefined;
|
|
130
143
|
until?: import("../index.js").Predicate | undefined;
|
|
131
144
|
maxSteps?: number | undefined;
|
|
132
|
-
goal?: string | undefined;
|
|
133
145
|
}, {
|
|
134
146
|
kind: "act";
|
|
147
|
+
goal?: string | undefined;
|
|
135
148
|
target?: Record<string, unknown> | undefined;
|
|
136
149
|
action?: string | undefined;
|
|
137
150
|
args?: Record<string, unknown> | undefined;
|
|
138
151
|
until?: import("../index.js").Predicate | undefined;
|
|
139
152
|
maxSteps?: number | undefined;
|
|
140
|
-
goal?: string | undefined;
|
|
141
153
|
}>, {
|
|
142
154
|
kind: "act";
|
|
155
|
+
goal?: string | undefined;
|
|
143
156
|
target?: Record<string, unknown> | undefined;
|
|
144
157
|
action?: string | undefined;
|
|
145
158
|
args?: Record<string, unknown> | undefined;
|
|
146
159
|
until?: import("../index.js").Predicate | undefined;
|
|
147
160
|
maxSteps?: number | undefined;
|
|
148
|
-
goal?: string | undefined;
|
|
149
161
|
}, {
|
|
150
162
|
kind: "act";
|
|
163
|
+
goal?: string | undefined;
|
|
151
164
|
target?: Record<string, unknown> | undefined;
|
|
152
165
|
action?: string | undefined;
|
|
153
166
|
args?: Record<string, unknown> | undefined;
|
|
154
167
|
until?: import("../index.js").Predicate | undefined;
|
|
155
168
|
maxSteps?: number | undefined;
|
|
156
|
-
goal?: string | undefined;
|
|
157
169
|
}>, z.ZodObject<{
|
|
158
170
|
kind: z.ZodLiteral<"assert">;
|
|
159
171
|
predicate: z.ZodType<import("../index.js").Predicate, z.ZodTypeDef, import("../index.js").Predicate>;
|
|
@@ -228,36 +240,36 @@ export declare const ScriptStepSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
228
240
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
229
241
|
}, "strip", z.ZodTypeAny, {
|
|
230
242
|
kind: "act";
|
|
243
|
+
goal?: string | undefined;
|
|
231
244
|
target?: Record<string, unknown> | undefined;
|
|
232
245
|
action?: string | undefined;
|
|
233
246
|
args?: Record<string, unknown> | undefined;
|
|
234
247
|
until?: import("../index.js").Predicate | undefined;
|
|
235
248
|
maxSteps?: number | undefined;
|
|
236
|
-
goal?: string | undefined;
|
|
237
249
|
}, {
|
|
238
250
|
kind: "act";
|
|
251
|
+
goal?: string | undefined;
|
|
239
252
|
target?: Record<string, unknown> | undefined;
|
|
240
253
|
action?: string | undefined;
|
|
241
254
|
args?: Record<string, unknown> | undefined;
|
|
242
255
|
until?: import("../index.js").Predicate | undefined;
|
|
243
256
|
maxSteps?: number | undefined;
|
|
244
|
-
goal?: string | undefined;
|
|
245
257
|
}>, {
|
|
246
258
|
kind: "act";
|
|
259
|
+
goal?: string | undefined;
|
|
247
260
|
target?: Record<string, unknown> | undefined;
|
|
248
261
|
action?: string | undefined;
|
|
249
262
|
args?: Record<string, unknown> | undefined;
|
|
250
263
|
until?: import("../index.js").Predicate | undefined;
|
|
251
264
|
maxSteps?: number | undefined;
|
|
252
|
-
goal?: string | undefined;
|
|
253
265
|
}, {
|
|
254
266
|
kind: "act";
|
|
267
|
+
goal?: string | undefined;
|
|
255
268
|
target?: Record<string, unknown> | undefined;
|
|
256
269
|
action?: string | undefined;
|
|
257
270
|
args?: Record<string, unknown> | undefined;
|
|
258
271
|
until?: import("../index.js").Predicate | undefined;
|
|
259
272
|
maxSteps?: number | undefined;
|
|
260
|
-
goal?: string | undefined;
|
|
261
273
|
}>, z.ZodObject<{
|
|
262
274
|
kind: z.ZodLiteral<"assert">;
|
|
263
275
|
predicate: z.ZodType<import("../index.js").Predicate, z.ZodTypeDef, import("../index.js").Predicate>;
|
|
@@ -277,12 +289,12 @@ export declare const ScriptStepSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
277
289
|
to?: number | undefined;
|
|
278
290
|
} | {
|
|
279
291
|
kind: "act";
|
|
292
|
+
goal?: string | undefined;
|
|
280
293
|
target?: Record<string, unknown> | undefined;
|
|
281
294
|
action?: string | undefined;
|
|
282
295
|
args?: Record<string, unknown> | undefined;
|
|
283
296
|
until?: import("../index.js").Predicate | undefined;
|
|
284
297
|
maxSteps?: number | undefined;
|
|
285
|
-
goal?: string | undefined;
|
|
286
298
|
} | {
|
|
287
299
|
kind: "assert";
|
|
288
300
|
predicate: import("../index.js").Predicate;
|
|
@@ -297,12 +309,12 @@ export declare const ScriptStepSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
297
309
|
to?: number | undefined;
|
|
298
310
|
} | {
|
|
299
311
|
kind: "act";
|
|
312
|
+
goal?: string | undefined;
|
|
300
313
|
target?: Record<string, unknown> | undefined;
|
|
301
314
|
action?: string | undefined;
|
|
302
315
|
args?: Record<string, unknown> | undefined;
|
|
303
316
|
until?: import("../index.js").Predicate | undefined;
|
|
304
317
|
maxSteps?: number | undefined;
|
|
305
|
-
goal?: string | undefined;
|
|
306
318
|
} | {
|
|
307
319
|
kind: "assert";
|
|
308
320
|
predicate: import("../index.js").Predicate;
|
|
@@ -321,12 +333,12 @@ export declare const ScriptStepSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
321
333
|
to?: number | undefined;
|
|
322
334
|
} | {
|
|
323
335
|
kind: "act";
|
|
336
|
+
goal?: string | undefined;
|
|
324
337
|
target?: Record<string, unknown> | undefined;
|
|
325
338
|
action?: string | undefined;
|
|
326
339
|
args?: Record<string, unknown> | undefined;
|
|
327
340
|
until?: import("../index.js").Predicate | undefined;
|
|
328
341
|
maxSteps?: number | undefined;
|
|
329
|
-
goal?: string | undefined;
|
|
330
342
|
} | {
|
|
331
343
|
kind: "assert";
|
|
332
344
|
predicate: import("../index.js").Predicate;
|
|
@@ -345,12 +357,12 @@ export declare const ScriptStepSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
|
345
357
|
to?: number | undefined;
|
|
346
358
|
} | {
|
|
347
359
|
kind: "act";
|
|
360
|
+
goal?: string | undefined;
|
|
348
361
|
target?: Record<string, unknown> | undefined;
|
|
349
362
|
action?: string | undefined;
|
|
350
363
|
args?: Record<string, unknown> | undefined;
|
|
351
364
|
until?: import("../index.js").Predicate | undefined;
|
|
352
365
|
maxSteps?: number | undefined;
|
|
353
|
-
goal?: string | undefined;
|
|
354
366
|
} | {
|
|
355
367
|
kind: "assert";
|
|
356
368
|
predicate: import("../index.js").Predicate;
|
|
@@ -363,6 +375,20 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
363
375
|
title: z.ZodString;
|
|
364
376
|
persona: z.ZodOptional<z.ZodString>;
|
|
365
377
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
378
|
+
/**
|
|
379
|
+
* Run only when an earlier journey ended this way, else it is not taken: "if sign-in failed, the
|
|
380
|
+
* error says why". Unlike `dependsOn` it is not blocked by a failure; a failure can be the point.
|
|
381
|
+
*/
|
|
382
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
383
|
+
journey: z.ZodString;
|
|
384
|
+
is: z.ZodEnum<["passed", "failed"]>;
|
|
385
|
+
}, "strip", z.ZodTypeAny, {
|
|
386
|
+
is: "passed" | "failed";
|
|
387
|
+
journey: string;
|
|
388
|
+
}, {
|
|
389
|
+
is: "passed" | "failed";
|
|
390
|
+
journey: string;
|
|
391
|
+
}>>;
|
|
366
392
|
steps: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
367
393
|
kind: z.ZodLiteral<"replay">;
|
|
368
394
|
flow: z.ZodString;
|
|
@@ -392,36 +418,36 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
392
418
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
393
419
|
}, "strip", z.ZodTypeAny, {
|
|
394
420
|
kind: "act";
|
|
421
|
+
goal?: string | undefined;
|
|
395
422
|
target?: Record<string, unknown> | undefined;
|
|
396
423
|
action?: string | undefined;
|
|
397
424
|
args?: Record<string, unknown> | undefined;
|
|
398
425
|
until?: import("../index.js").Predicate | undefined;
|
|
399
426
|
maxSteps?: number | undefined;
|
|
400
|
-
goal?: string | undefined;
|
|
401
427
|
}, {
|
|
402
428
|
kind: "act";
|
|
429
|
+
goal?: string | undefined;
|
|
403
430
|
target?: Record<string, unknown> | undefined;
|
|
404
431
|
action?: string | undefined;
|
|
405
432
|
args?: Record<string, unknown> | undefined;
|
|
406
433
|
until?: import("../index.js").Predicate | undefined;
|
|
407
434
|
maxSteps?: number | undefined;
|
|
408
|
-
goal?: string | undefined;
|
|
409
435
|
}>, {
|
|
410
436
|
kind: "act";
|
|
437
|
+
goal?: string | undefined;
|
|
411
438
|
target?: Record<string, unknown> | undefined;
|
|
412
439
|
action?: string | undefined;
|
|
413
440
|
args?: Record<string, unknown> | undefined;
|
|
414
441
|
until?: import("../index.js").Predicate | undefined;
|
|
415
442
|
maxSteps?: number | undefined;
|
|
416
|
-
goal?: string | undefined;
|
|
417
443
|
}, {
|
|
418
444
|
kind: "act";
|
|
445
|
+
goal?: string | undefined;
|
|
419
446
|
target?: Record<string, unknown> | undefined;
|
|
420
447
|
action?: string | undefined;
|
|
421
448
|
args?: Record<string, unknown> | undefined;
|
|
422
449
|
until?: import("../index.js").Predicate | undefined;
|
|
423
450
|
maxSteps?: number | undefined;
|
|
424
|
-
goal?: string | undefined;
|
|
425
451
|
}>, z.ZodObject<{
|
|
426
452
|
kind: z.ZodLiteral<"assert">;
|
|
427
453
|
predicate: z.ZodType<import("../index.js").Predicate, z.ZodTypeDef, import("../index.js").Predicate>;
|
|
@@ -496,36 +522,36 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
496
522
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
497
523
|
}, "strip", z.ZodTypeAny, {
|
|
498
524
|
kind: "act";
|
|
525
|
+
goal?: string | undefined;
|
|
499
526
|
target?: Record<string, unknown> | undefined;
|
|
500
527
|
action?: string | undefined;
|
|
501
528
|
args?: Record<string, unknown> | undefined;
|
|
502
529
|
until?: import("../index.js").Predicate | undefined;
|
|
503
530
|
maxSteps?: number | undefined;
|
|
504
|
-
goal?: string | undefined;
|
|
505
531
|
}, {
|
|
506
532
|
kind: "act";
|
|
533
|
+
goal?: string | undefined;
|
|
507
534
|
target?: Record<string, unknown> | undefined;
|
|
508
535
|
action?: string | undefined;
|
|
509
536
|
args?: Record<string, unknown> | undefined;
|
|
510
537
|
until?: import("../index.js").Predicate | undefined;
|
|
511
538
|
maxSteps?: number | undefined;
|
|
512
|
-
goal?: string | undefined;
|
|
513
539
|
}>, {
|
|
514
540
|
kind: "act";
|
|
541
|
+
goal?: string | undefined;
|
|
515
542
|
target?: Record<string, unknown> | undefined;
|
|
516
543
|
action?: string | undefined;
|
|
517
544
|
args?: Record<string, unknown> | undefined;
|
|
518
545
|
until?: import("../index.js").Predicate | undefined;
|
|
519
546
|
maxSteps?: number | undefined;
|
|
520
|
-
goal?: string | undefined;
|
|
521
547
|
}, {
|
|
522
548
|
kind: "act";
|
|
549
|
+
goal?: string | undefined;
|
|
523
550
|
target?: Record<string, unknown> | undefined;
|
|
524
551
|
action?: string | undefined;
|
|
525
552
|
args?: Record<string, unknown> | undefined;
|
|
526
553
|
until?: import("../index.js").Predicate | undefined;
|
|
527
554
|
maxSteps?: number | undefined;
|
|
528
|
-
goal?: string | undefined;
|
|
529
555
|
}>, z.ZodObject<{
|
|
530
556
|
kind: z.ZodLiteral<"assert">;
|
|
531
557
|
predicate: z.ZodType<import("../index.js").Predicate, z.ZodTypeDef, import("../index.js").Predicate>;
|
|
@@ -545,12 +571,12 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
545
571
|
to?: number | undefined;
|
|
546
572
|
} | {
|
|
547
573
|
kind: "act";
|
|
574
|
+
goal?: string | undefined;
|
|
548
575
|
target?: Record<string, unknown> | undefined;
|
|
549
576
|
action?: string | undefined;
|
|
550
577
|
args?: Record<string, unknown> | undefined;
|
|
551
578
|
until?: import("../index.js").Predicate | undefined;
|
|
552
579
|
maxSteps?: number | undefined;
|
|
553
|
-
goal?: string | undefined;
|
|
554
580
|
} | {
|
|
555
581
|
kind: "assert";
|
|
556
582
|
predicate: import("../index.js").Predicate;
|
|
@@ -565,12 +591,12 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
565
591
|
to?: number | undefined;
|
|
566
592
|
} | {
|
|
567
593
|
kind: "act";
|
|
594
|
+
goal?: string | undefined;
|
|
568
595
|
target?: Record<string, unknown> | undefined;
|
|
569
596
|
action?: string | undefined;
|
|
570
597
|
args?: Record<string, unknown> | undefined;
|
|
571
598
|
until?: import("../index.js").Predicate | undefined;
|
|
572
599
|
maxSteps?: number | undefined;
|
|
573
|
-
goal?: string | undefined;
|
|
574
600
|
} | {
|
|
575
601
|
kind: "assert";
|
|
576
602
|
predicate: import("../index.js").Predicate;
|
|
@@ -589,12 +615,12 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
589
615
|
to?: number | undefined;
|
|
590
616
|
} | {
|
|
591
617
|
kind: "act";
|
|
618
|
+
goal?: string | undefined;
|
|
592
619
|
target?: Record<string, unknown> | undefined;
|
|
593
620
|
action?: string | undefined;
|
|
594
621
|
args?: Record<string, unknown> | undefined;
|
|
595
622
|
until?: import("../index.js").Predicate | undefined;
|
|
596
623
|
maxSteps?: number | undefined;
|
|
597
|
-
goal?: string | undefined;
|
|
598
624
|
} | {
|
|
599
625
|
kind: "assert";
|
|
600
626
|
predicate: import("../index.js").Predicate;
|
|
@@ -613,12 +639,12 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
613
639
|
to?: number | undefined;
|
|
614
640
|
} | {
|
|
615
641
|
kind: "act";
|
|
642
|
+
goal?: string | undefined;
|
|
616
643
|
target?: Record<string, unknown> | undefined;
|
|
617
644
|
action?: string | undefined;
|
|
618
645
|
args?: Record<string, unknown> | undefined;
|
|
619
646
|
until?: import("../index.js").Predicate | undefined;
|
|
620
647
|
maxSteps?: number | undefined;
|
|
621
|
-
goal?: string | undefined;
|
|
622
648
|
} | {
|
|
623
649
|
kind: "assert";
|
|
624
650
|
predicate: import("../index.js").Predicate;
|
|
@@ -626,6 +652,18 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
626
652
|
when?: import("../index.js").Predicate | undefined;
|
|
627
653
|
}[];
|
|
628
654
|
}>]>, "many">;
|
|
655
|
+
/**
|
|
656
|
+
* Replay first: when every replay in `steps` decides nothing (neither held nor failed), the model
|
|
657
|
+
* drives this goal instead. A replay that failed is a regression and is never re-driven. An older
|
|
658
|
+
* platform omits it.
|
|
659
|
+
*/
|
|
660
|
+
fallback: z.ZodOptional<z.ZodObject<{
|
|
661
|
+
goal: z.ZodString;
|
|
662
|
+
}, "strip", z.ZodTypeAny, {
|
|
663
|
+
goal: string;
|
|
664
|
+
}, {
|
|
665
|
+
goal: string;
|
|
666
|
+
}>>;
|
|
629
667
|
}, "strip", z.ZodTypeAny, {
|
|
630
668
|
steps: ({
|
|
631
669
|
kind: "replay";
|
|
@@ -634,12 +672,12 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
634
672
|
to?: number | undefined;
|
|
635
673
|
} | {
|
|
636
674
|
kind: "act";
|
|
675
|
+
goal?: string | undefined;
|
|
637
676
|
target?: Record<string, unknown> | undefined;
|
|
638
677
|
action?: string | undefined;
|
|
639
678
|
args?: Record<string, unknown> | undefined;
|
|
640
679
|
until?: import("../index.js").Predicate | undefined;
|
|
641
680
|
maxSteps?: number | undefined;
|
|
642
|
-
goal?: string | undefined;
|
|
643
681
|
} | {
|
|
644
682
|
kind: "assert";
|
|
645
683
|
predicate: import("../index.js").Predicate;
|
|
@@ -662,12 +700,12 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
662
700
|
to?: number | undefined;
|
|
663
701
|
} | {
|
|
664
702
|
kind: "act";
|
|
703
|
+
goal?: string | undefined;
|
|
665
704
|
target?: Record<string, unknown> | undefined;
|
|
666
705
|
action?: string | undefined;
|
|
667
706
|
args?: Record<string, unknown> | undefined;
|
|
668
707
|
until?: import("../index.js").Predicate | undefined;
|
|
669
708
|
maxSteps?: number | undefined;
|
|
670
|
-
goal?: string | undefined;
|
|
671
709
|
} | {
|
|
672
710
|
kind: "assert";
|
|
673
711
|
predicate: import("../index.js").Predicate;
|
|
@@ -679,6 +717,13 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
679
717
|
title: string;
|
|
680
718
|
dependsOn: string[];
|
|
681
719
|
persona?: string | undefined;
|
|
720
|
+
when?: {
|
|
721
|
+
is: "passed" | "failed";
|
|
722
|
+
journey: string;
|
|
723
|
+
} | undefined;
|
|
724
|
+
fallback?: {
|
|
725
|
+
goal: string;
|
|
726
|
+
} | undefined;
|
|
682
727
|
}, {
|
|
683
728
|
steps: ({
|
|
684
729
|
kind: "replay";
|
|
@@ -687,12 +732,12 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
687
732
|
to?: number | undefined;
|
|
688
733
|
} | {
|
|
689
734
|
kind: "act";
|
|
735
|
+
goal?: string | undefined;
|
|
690
736
|
target?: Record<string, unknown> | undefined;
|
|
691
737
|
action?: string | undefined;
|
|
692
738
|
args?: Record<string, unknown> | undefined;
|
|
693
739
|
until?: import("../index.js").Predicate | undefined;
|
|
694
740
|
maxSteps?: number | undefined;
|
|
695
|
-
goal?: string | undefined;
|
|
696
741
|
} | {
|
|
697
742
|
kind: "assert";
|
|
698
743
|
predicate: import("../index.js").Predicate;
|
|
@@ -715,12 +760,12 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
715
760
|
to?: number | undefined;
|
|
716
761
|
} | {
|
|
717
762
|
kind: "act";
|
|
763
|
+
goal?: string | undefined;
|
|
718
764
|
target?: Record<string, unknown> | undefined;
|
|
719
765
|
action?: string | undefined;
|
|
720
766
|
args?: Record<string, unknown> | undefined;
|
|
721
767
|
until?: import("../index.js").Predicate | undefined;
|
|
722
768
|
maxSteps?: number | undefined;
|
|
723
|
-
goal?: string | undefined;
|
|
724
769
|
} | {
|
|
725
770
|
kind: "assert";
|
|
726
771
|
predicate: import("../index.js").Predicate;
|
|
@@ -731,7 +776,14 @@ export declare const JourneySchema: z.ZodObject<{
|
|
|
731
776
|
id: string;
|
|
732
777
|
title: string;
|
|
733
778
|
persona?: string | undefined;
|
|
779
|
+
when?: {
|
|
780
|
+
is: "passed" | "failed";
|
|
781
|
+
journey: string;
|
|
782
|
+
} | undefined;
|
|
734
783
|
dependsOn?: string[] | undefined;
|
|
784
|
+
fallback?: {
|
|
785
|
+
goal: string;
|
|
786
|
+
} | undefined;
|
|
735
787
|
}>;
|
|
736
788
|
export declare const LaneSchema: z.ZodObject<{
|
|
737
789
|
id: z.ZodString;
|
|
@@ -762,6 +814,20 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
762
814
|
title: z.ZodString;
|
|
763
815
|
persona: z.ZodOptional<z.ZodString>;
|
|
764
816
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
817
|
+
/**
|
|
818
|
+
* Run only when an earlier journey ended this way, else it is not taken: "if sign-in failed, the
|
|
819
|
+
* error says why". Unlike `dependsOn` it is not blocked by a failure; a failure can be the point.
|
|
820
|
+
*/
|
|
821
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
822
|
+
journey: z.ZodString;
|
|
823
|
+
is: z.ZodEnum<["passed", "failed"]>;
|
|
824
|
+
}, "strip", z.ZodTypeAny, {
|
|
825
|
+
is: "passed" | "failed";
|
|
826
|
+
journey: string;
|
|
827
|
+
}, {
|
|
828
|
+
is: "passed" | "failed";
|
|
829
|
+
journey: string;
|
|
830
|
+
}>>;
|
|
765
831
|
steps: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
766
832
|
kind: z.ZodLiteral<"replay">;
|
|
767
833
|
flow: z.ZodString;
|
|
@@ -791,36 +857,36 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
791
857
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
792
858
|
}, "strip", z.ZodTypeAny, {
|
|
793
859
|
kind: "act";
|
|
860
|
+
goal?: string | undefined;
|
|
794
861
|
target?: Record<string, unknown> | undefined;
|
|
795
862
|
action?: string | undefined;
|
|
796
863
|
args?: Record<string, unknown> | undefined;
|
|
797
864
|
until?: import("../index.js").Predicate | undefined;
|
|
798
865
|
maxSteps?: number | undefined;
|
|
799
|
-
goal?: string | undefined;
|
|
800
866
|
}, {
|
|
801
867
|
kind: "act";
|
|
868
|
+
goal?: string | undefined;
|
|
802
869
|
target?: Record<string, unknown> | undefined;
|
|
803
870
|
action?: string | undefined;
|
|
804
871
|
args?: Record<string, unknown> | undefined;
|
|
805
872
|
until?: import("../index.js").Predicate | undefined;
|
|
806
873
|
maxSteps?: number | undefined;
|
|
807
|
-
goal?: string | undefined;
|
|
808
874
|
}>, {
|
|
809
875
|
kind: "act";
|
|
876
|
+
goal?: string | undefined;
|
|
810
877
|
target?: Record<string, unknown> | undefined;
|
|
811
878
|
action?: string | undefined;
|
|
812
879
|
args?: Record<string, unknown> | undefined;
|
|
813
880
|
until?: import("../index.js").Predicate | undefined;
|
|
814
881
|
maxSteps?: number | undefined;
|
|
815
|
-
goal?: string | undefined;
|
|
816
882
|
}, {
|
|
817
883
|
kind: "act";
|
|
884
|
+
goal?: string | undefined;
|
|
818
885
|
target?: Record<string, unknown> | undefined;
|
|
819
886
|
action?: string | undefined;
|
|
820
887
|
args?: Record<string, unknown> | undefined;
|
|
821
888
|
until?: import("../index.js").Predicate | undefined;
|
|
822
889
|
maxSteps?: number | undefined;
|
|
823
|
-
goal?: string | undefined;
|
|
824
890
|
}>, z.ZodObject<{
|
|
825
891
|
kind: z.ZodLiteral<"assert">;
|
|
826
892
|
predicate: z.ZodType<import("../index.js").Predicate, z.ZodTypeDef, import("../index.js").Predicate>;
|
|
@@ -895,36 +961,36 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
895
961
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
896
962
|
}, "strip", z.ZodTypeAny, {
|
|
897
963
|
kind: "act";
|
|
964
|
+
goal?: string | undefined;
|
|
898
965
|
target?: Record<string, unknown> | undefined;
|
|
899
966
|
action?: string | undefined;
|
|
900
967
|
args?: Record<string, unknown> | undefined;
|
|
901
968
|
until?: import("../index.js").Predicate | undefined;
|
|
902
969
|
maxSteps?: number | undefined;
|
|
903
|
-
goal?: string | undefined;
|
|
904
970
|
}, {
|
|
905
971
|
kind: "act";
|
|
972
|
+
goal?: string | undefined;
|
|
906
973
|
target?: Record<string, unknown> | undefined;
|
|
907
974
|
action?: string | undefined;
|
|
908
975
|
args?: Record<string, unknown> | undefined;
|
|
909
976
|
until?: import("../index.js").Predicate | undefined;
|
|
910
977
|
maxSteps?: number | undefined;
|
|
911
|
-
goal?: string | undefined;
|
|
912
978
|
}>, {
|
|
913
979
|
kind: "act";
|
|
980
|
+
goal?: string | undefined;
|
|
914
981
|
target?: Record<string, unknown> | undefined;
|
|
915
982
|
action?: string | undefined;
|
|
916
983
|
args?: Record<string, unknown> | undefined;
|
|
917
984
|
until?: import("../index.js").Predicate | undefined;
|
|
918
985
|
maxSteps?: number | undefined;
|
|
919
|
-
goal?: string | undefined;
|
|
920
986
|
}, {
|
|
921
987
|
kind: "act";
|
|
988
|
+
goal?: string | undefined;
|
|
922
989
|
target?: Record<string, unknown> | undefined;
|
|
923
990
|
action?: string | undefined;
|
|
924
991
|
args?: Record<string, unknown> | undefined;
|
|
925
992
|
until?: import("../index.js").Predicate | undefined;
|
|
926
993
|
maxSteps?: number | undefined;
|
|
927
|
-
goal?: string | undefined;
|
|
928
994
|
}>, z.ZodObject<{
|
|
929
995
|
kind: z.ZodLiteral<"assert">;
|
|
930
996
|
predicate: z.ZodType<import("../index.js").Predicate, z.ZodTypeDef, import("../index.js").Predicate>;
|
|
@@ -944,12 +1010,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
944
1010
|
to?: number | undefined;
|
|
945
1011
|
} | {
|
|
946
1012
|
kind: "act";
|
|
1013
|
+
goal?: string | undefined;
|
|
947
1014
|
target?: Record<string, unknown> | undefined;
|
|
948
1015
|
action?: string | undefined;
|
|
949
1016
|
args?: Record<string, unknown> | undefined;
|
|
950
1017
|
until?: import("../index.js").Predicate | undefined;
|
|
951
1018
|
maxSteps?: number | undefined;
|
|
952
|
-
goal?: string | undefined;
|
|
953
1019
|
} | {
|
|
954
1020
|
kind: "assert";
|
|
955
1021
|
predicate: import("../index.js").Predicate;
|
|
@@ -964,12 +1030,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
964
1030
|
to?: number | undefined;
|
|
965
1031
|
} | {
|
|
966
1032
|
kind: "act";
|
|
1033
|
+
goal?: string | undefined;
|
|
967
1034
|
target?: Record<string, unknown> | undefined;
|
|
968
1035
|
action?: string | undefined;
|
|
969
1036
|
args?: Record<string, unknown> | undefined;
|
|
970
1037
|
until?: import("../index.js").Predicate | undefined;
|
|
971
1038
|
maxSteps?: number | undefined;
|
|
972
|
-
goal?: string | undefined;
|
|
973
1039
|
} | {
|
|
974
1040
|
kind: "assert";
|
|
975
1041
|
predicate: import("../index.js").Predicate;
|
|
@@ -988,12 +1054,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
988
1054
|
to?: number | undefined;
|
|
989
1055
|
} | {
|
|
990
1056
|
kind: "act";
|
|
1057
|
+
goal?: string | undefined;
|
|
991
1058
|
target?: Record<string, unknown> | undefined;
|
|
992
1059
|
action?: string | undefined;
|
|
993
1060
|
args?: Record<string, unknown> | undefined;
|
|
994
1061
|
until?: import("../index.js").Predicate | undefined;
|
|
995
1062
|
maxSteps?: number | undefined;
|
|
996
|
-
goal?: string | undefined;
|
|
997
1063
|
} | {
|
|
998
1064
|
kind: "assert";
|
|
999
1065
|
predicate: import("../index.js").Predicate;
|
|
@@ -1012,12 +1078,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1012
1078
|
to?: number | undefined;
|
|
1013
1079
|
} | {
|
|
1014
1080
|
kind: "act";
|
|
1081
|
+
goal?: string | undefined;
|
|
1015
1082
|
target?: Record<string, unknown> | undefined;
|
|
1016
1083
|
action?: string | undefined;
|
|
1017
1084
|
args?: Record<string, unknown> | undefined;
|
|
1018
1085
|
until?: import("../index.js").Predicate | undefined;
|
|
1019
1086
|
maxSteps?: number | undefined;
|
|
1020
|
-
goal?: string | undefined;
|
|
1021
1087
|
} | {
|
|
1022
1088
|
kind: "assert";
|
|
1023
1089
|
predicate: import("../index.js").Predicate;
|
|
@@ -1025,6 +1091,18 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1025
1091
|
when?: import("../index.js").Predicate | undefined;
|
|
1026
1092
|
}[];
|
|
1027
1093
|
}>]>, "many">;
|
|
1094
|
+
/**
|
|
1095
|
+
* Replay first: when every replay in `steps` decides nothing (neither held nor failed), the model
|
|
1096
|
+
* drives this goal instead. A replay that failed is a regression and is never re-driven. An older
|
|
1097
|
+
* platform omits it.
|
|
1098
|
+
*/
|
|
1099
|
+
fallback: z.ZodOptional<z.ZodObject<{
|
|
1100
|
+
goal: z.ZodString;
|
|
1101
|
+
}, "strip", z.ZodTypeAny, {
|
|
1102
|
+
goal: string;
|
|
1103
|
+
}, {
|
|
1104
|
+
goal: string;
|
|
1105
|
+
}>>;
|
|
1028
1106
|
}, "strip", z.ZodTypeAny, {
|
|
1029
1107
|
steps: ({
|
|
1030
1108
|
kind: "replay";
|
|
@@ -1033,12 +1111,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1033
1111
|
to?: number | undefined;
|
|
1034
1112
|
} | {
|
|
1035
1113
|
kind: "act";
|
|
1114
|
+
goal?: string | undefined;
|
|
1036
1115
|
target?: Record<string, unknown> | undefined;
|
|
1037
1116
|
action?: string | undefined;
|
|
1038
1117
|
args?: Record<string, unknown> | undefined;
|
|
1039
1118
|
until?: import("../index.js").Predicate | undefined;
|
|
1040
1119
|
maxSteps?: number | undefined;
|
|
1041
|
-
goal?: string | undefined;
|
|
1042
1120
|
} | {
|
|
1043
1121
|
kind: "assert";
|
|
1044
1122
|
predicate: import("../index.js").Predicate;
|
|
@@ -1061,12 +1139,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1061
1139
|
to?: number | undefined;
|
|
1062
1140
|
} | {
|
|
1063
1141
|
kind: "act";
|
|
1142
|
+
goal?: string | undefined;
|
|
1064
1143
|
target?: Record<string, unknown> | undefined;
|
|
1065
1144
|
action?: string | undefined;
|
|
1066
1145
|
args?: Record<string, unknown> | undefined;
|
|
1067
1146
|
until?: import("../index.js").Predicate | undefined;
|
|
1068
1147
|
maxSteps?: number | undefined;
|
|
1069
|
-
goal?: string | undefined;
|
|
1070
1148
|
} | {
|
|
1071
1149
|
kind: "assert";
|
|
1072
1150
|
predicate: import("../index.js").Predicate;
|
|
@@ -1078,6 +1156,13 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1078
1156
|
title: string;
|
|
1079
1157
|
dependsOn: string[];
|
|
1080
1158
|
persona?: string | undefined;
|
|
1159
|
+
when?: {
|
|
1160
|
+
is: "passed" | "failed";
|
|
1161
|
+
journey: string;
|
|
1162
|
+
} | undefined;
|
|
1163
|
+
fallback?: {
|
|
1164
|
+
goal: string;
|
|
1165
|
+
} | undefined;
|
|
1081
1166
|
}, {
|
|
1082
1167
|
steps: ({
|
|
1083
1168
|
kind: "replay";
|
|
@@ -1086,12 +1171,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1086
1171
|
to?: number | undefined;
|
|
1087
1172
|
} | {
|
|
1088
1173
|
kind: "act";
|
|
1174
|
+
goal?: string | undefined;
|
|
1089
1175
|
target?: Record<string, unknown> | undefined;
|
|
1090
1176
|
action?: string | undefined;
|
|
1091
1177
|
args?: Record<string, unknown> | undefined;
|
|
1092
1178
|
until?: import("../index.js").Predicate | undefined;
|
|
1093
1179
|
maxSteps?: number | undefined;
|
|
1094
|
-
goal?: string | undefined;
|
|
1095
1180
|
} | {
|
|
1096
1181
|
kind: "assert";
|
|
1097
1182
|
predicate: import("../index.js").Predicate;
|
|
@@ -1114,12 +1199,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1114
1199
|
to?: number | undefined;
|
|
1115
1200
|
} | {
|
|
1116
1201
|
kind: "act";
|
|
1202
|
+
goal?: string | undefined;
|
|
1117
1203
|
target?: Record<string, unknown> | undefined;
|
|
1118
1204
|
action?: string | undefined;
|
|
1119
1205
|
args?: Record<string, unknown> | undefined;
|
|
1120
1206
|
until?: import("../index.js").Predicate | undefined;
|
|
1121
1207
|
maxSteps?: number | undefined;
|
|
1122
|
-
goal?: string | undefined;
|
|
1123
1208
|
} | {
|
|
1124
1209
|
kind: "assert";
|
|
1125
1210
|
predicate: import("../index.js").Predicate;
|
|
@@ -1130,7 +1215,14 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1130
1215
|
id: string;
|
|
1131
1216
|
title: string;
|
|
1132
1217
|
persona?: string | undefined;
|
|
1218
|
+
when?: {
|
|
1219
|
+
is: "passed" | "failed";
|
|
1220
|
+
journey: string;
|
|
1221
|
+
} | undefined;
|
|
1133
1222
|
dependsOn?: string[] | undefined;
|
|
1223
|
+
fallback?: {
|
|
1224
|
+
goal: string;
|
|
1225
|
+
} | undefined;
|
|
1134
1226
|
}>, "many">;
|
|
1135
1227
|
lanes: z.ZodArray<z.ZodObject<{
|
|
1136
1228
|
id: z.ZodString;
|
|
@@ -1156,12 +1248,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1156
1248
|
to?: number | undefined;
|
|
1157
1249
|
} | {
|
|
1158
1250
|
kind: "act";
|
|
1251
|
+
goal?: string | undefined;
|
|
1159
1252
|
target?: Record<string, unknown> | undefined;
|
|
1160
1253
|
action?: string | undefined;
|
|
1161
1254
|
args?: Record<string, unknown> | undefined;
|
|
1162
1255
|
until?: import("../index.js").Predicate | undefined;
|
|
1163
1256
|
maxSteps?: number | undefined;
|
|
1164
|
-
goal?: string | undefined;
|
|
1165
1257
|
} | {
|
|
1166
1258
|
kind: "assert";
|
|
1167
1259
|
predicate: import("../index.js").Predicate;
|
|
@@ -1184,12 +1276,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1184
1276
|
to?: number | undefined;
|
|
1185
1277
|
} | {
|
|
1186
1278
|
kind: "act";
|
|
1279
|
+
goal?: string | undefined;
|
|
1187
1280
|
target?: Record<string, unknown> | undefined;
|
|
1188
1281
|
action?: string | undefined;
|
|
1189
1282
|
args?: Record<string, unknown> | undefined;
|
|
1190
1283
|
until?: import("../index.js").Predicate | undefined;
|
|
1191
1284
|
maxSteps?: number | undefined;
|
|
1192
|
-
goal?: string | undefined;
|
|
1193
1285
|
} | {
|
|
1194
1286
|
kind: "assert";
|
|
1195
1287
|
predicate: import("../index.js").Predicate;
|
|
@@ -1201,6 +1293,13 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1201
1293
|
title: string;
|
|
1202
1294
|
dependsOn: string[];
|
|
1203
1295
|
persona?: string | undefined;
|
|
1296
|
+
when?: {
|
|
1297
|
+
is: "passed" | "failed";
|
|
1298
|
+
journey: string;
|
|
1299
|
+
} | undefined;
|
|
1300
|
+
fallback?: {
|
|
1301
|
+
goal: string;
|
|
1302
|
+
} | undefined;
|
|
1204
1303
|
}[];
|
|
1205
1304
|
personas: {
|
|
1206
1305
|
name: string;
|
|
@@ -1222,12 +1321,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1222
1321
|
to?: number | undefined;
|
|
1223
1322
|
} | {
|
|
1224
1323
|
kind: "act";
|
|
1324
|
+
goal?: string | undefined;
|
|
1225
1325
|
target?: Record<string, unknown> | undefined;
|
|
1226
1326
|
action?: string | undefined;
|
|
1227
1327
|
args?: Record<string, unknown> | undefined;
|
|
1228
1328
|
until?: import("../index.js").Predicate | undefined;
|
|
1229
1329
|
maxSteps?: number | undefined;
|
|
1230
|
-
goal?: string | undefined;
|
|
1231
1330
|
} | {
|
|
1232
1331
|
kind: "assert";
|
|
1233
1332
|
predicate: import("../index.js").Predicate;
|
|
@@ -1250,12 +1349,12 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1250
1349
|
to?: number | undefined;
|
|
1251
1350
|
} | {
|
|
1252
1351
|
kind: "act";
|
|
1352
|
+
goal?: string | undefined;
|
|
1253
1353
|
target?: Record<string, unknown> | undefined;
|
|
1254
1354
|
action?: string | undefined;
|
|
1255
1355
|
args?: Record<string, unknown> | undefined;
|
|
1256
1356
|
until?: import("../index.js").Predicate | undefined;
|
|
1257
1357
|
maxSteps?: number | undefined;
|
|
1258
|
-
goal?: string | undefined;
|
|
1259
1358
|
} | {
|
|
1260
1359
|
kind: "assert";
|
|
1261
1360
|
predicate: import("../index.js").Predicate;
|
|
@@ -1266,7 +1365,14 @@ export declare const DriveScriptSchema: z.ZodObject<{
|
|
|
1266
1365
|
id: string;
|
|
1267
1366
|
title: string;
|
|
1268
1367
|
persona?: string | undefined;
|
|
1368
|
+
when?: {
|
|
1369
|
+
is: "passed" | "failed";
|
|
1370
|
+
journey: string;
|
|
1371
|
+
} | undefined;
|
|
1269
1372
|
dependsOn?: string[] | undefined;
|
|
1373
|
+
fallback?: {
|
|
1374
|
+
goal: string;
|
|
1375
|
+
} | undefined;
|
|
1270
1376
|
}[];
|
|
1271
1377
|
lanes: {
|
|
1272
1378
|
id: string;
|