@reticlehq/core 3.8.0 → 3.8.1
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/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- package/dist/artifacts/flow-expect-flat.d.ts +8 -192
- package/dist/artifacts/flow-expect-flat.js +2 -2
- package/dist/artifacts/flow-results.d.ts +15 -0
- package/dist/artifacts/flow-types.d.ts +202 -2331
- package/dist/artifacts/flow-types.js +2 -2
- package/dist/artifacts/harness-map.d.ts +8 -69
- package/dist/artifacts/harness-map.js +1 -1
- package/dist/artifacts/hud-notices.d.ts +8 -82
- package/dist/artifacts/hud-notices.js +1 -1
- package/dist/artifacts/impact.d.ts +80 -1638
- package/dist/artifacts/impact.js +4 -4
- package/dist/artifacts/journal.d.ts +12 -247
- package/dist/artifacts/journal.js +2 -2
- package/dist/artifacts/prompt-context.d.ts +5 -43
- package/dist/artifacts/prompt-context.js +1 -1
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/onboarding.d.ts +8 -58
- package/dist/onboarding.js +1 -1
- package/dist/registry/daemon-registry.d.ts +2 -14
- package/dist/registry/daemon-registry.js +1 -1
- package/dist/registry/dev-server-registry.d.ts +2 -31
- package/dist/registry/dev-server-registry.js +1 -1
- package/dist/registry/project-registry.d.ts +4 -32
- package/dist/registry/project-registry.js +1 -1
- package/dist/schema/command-message.json +65 -68
- package/dist/schema/command-name.json +29 -33
- package/dist/schema/command-result.json +25 -30
- package/dist/schema/event-message.json +104 -103
- package/dist/schema/event-payloads.json +142 -119
- package/dist/schema/event-type.json +47 -50
- package/dist/schema/hello-message.json +150 -154
- package/dist/schema/reticle-event.json +98 -96
- package/dist/schema/reticle-message.json +338 -333
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-feedback.d.ts +11 -99
- package/dist/telemetry-feedback.js +1 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +39 -633
- package/dist/telemetry-session.js +10 -8
- package/dist/telemetry-signals.d.ts +58 -151
- package/dist/telemetry-signals.js +12 -1
- package/dist/telemetry.d.ts +137 -1814
- package/dist/telemetry.js +1 -1
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/instrumentation-coverage.d.ts +3 -3
- package/dist/verdict/instrumentation-coverage.js +1 -1
- package/dist/verdict/instrumentation-gap.d.ts +3 -10
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate.d.ts +1 -1
- package/dist/verdict/predicate.js +5 -5
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +13 -108
- package/dist/verdict/run-report.js +1 -1
- package/dist/verdict/security.d.ts +12 -0
- package/dist/verdict/security.js +94 -7
- package/dist/verdict/verification-run.d.ts +112 -1668
- package/dist/verdict/verification-run.js +4 -4
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/constants/event-types.d.ts +2 -0
- package/dist/wire/constants/event-types.js +2 -0
- package/dist/wire/constants/response-body-reason.d.ts +4 -4
- package/dist/wire/constants/response-body-reason.js +4 -4
- package/dist/wire/constants/reticle-env.d.ts +2 -0
- package/dist/wire/constants/reticle-env.js +2 -0
- package/dist/wire/event-payloads.d.ts +108 -678
- package/dist/wire/event-payloads.js +24 -7
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +66 -755
- package/dist/wire/messages.js +3 -3
- package/dist/wire/next-step.d.ts +11 -51
- package/dist/wire/next-step.js +1 -1
- package/dist/wire/platform-link.js +2 -2
- package/dist/wire/production/production-policy.d.ts +37 -83
- package/dist/wire/production/production-policy.js +1 -1
- package/dist/wire/types.d.ts +75 -698
- package/dist/wire/types.js +5 -5
- package/dist/words/upgrade.d.ts +3 -13
- package/dist/words/upgrade.js +1 -1
- package/package.json +3 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
import { StepEffect } from './step-effect.js';
|
|
3
3
|
import { ActionType } from '../wire/constants/constants.js';
|
|
4
4
|
import { PredicateKind } from '../verdict/consequence.js';
|
|
@@ -17,7 +17,7 @@ export * from './flow-results.js';
|
|
|
17
17
|
* A semantic anchor: how a step re-finds its element/event at replay
|
|
18
18
|
* time. Never a volatile eXX ref. testid/role+name bind a DOM element; signal binds an event.
|
|
19
19
|
*/
|
|
20
|
-
export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<
|
|
20
|
+
export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21
21
|
kind: z.ZodLiteral<"testid">;
|
|
22
22
|
value: z.ZodString;
|
|
23
23
|
of: z.ZodOptional<z.ZodNumber>;
|
|
@@ -25,101 +25,29 @@ export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
25
25
|
file: z.ZodString;
|
|
26
26
|
line: z.ZodNumber;
|
|
27
27
|
column: z.ZodOptional<z.ZodNumber>;
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
line: number;
|
|
31
|
-
column?: number | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
file: string;
|
|
34
|
-
line: number;
|
|
35
|
-
column?: number | undefined;
|
|
36
|
-
}>>;
|
|
37
|
-
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
kind: "testid";
|
|
39
|
-
value: string;
|
|
40
|
-
source?: {
|
|
41
|
-
file: string;
|
|
42
|
-
line: number;
|
|
43
|
-
column?: number | undefined;
|
|
44
|
-
} | undefined;
|
|
45
|
-
of?: number | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
kind: "testid";
|
|
48
|
-
value: string;
|
|
49
|
-
source?: {
|
|
50
|
-
file: string;
|
|
51
|
-
line: number;
|
|
52
|
-
column?: number | undefined;
|
|
53
|
-
} | undefined;
|
|
54
|
-
of?: number | undefined;
|
|
55
|
-
}>, z.ZodObject<{
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
56
30
|
kind: z.ZodLiteral<"role">;
|
|
57
31
|
role: z.ZodString;
|
|
58
32
|
name: z.ZodOptional<z.ZodString>;
|
|
59
33
|
nth: z.ZodOptional<z.ZodNumber>;
|
|
60
34
|
of: z.ZodOptional<z.ZodNumber>;
|
|
61
|
-
},
|
|
62
|
-
kind: "role";
|
|
63
|
-
role: string;
|
|
64
|
-
name?: string | undefined;
|
|
65
|
-
of?: number | undefined;
|
|
66
|
-
nth?: number | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
kind: "role";
|
|
69
|
-
role: string;
|
|
70
|
-
name?: string | undefined;
|
|
71
|
-
of?: number | undefined;
|
|
72
|
-
nth?: number | undefined;
|
|
73
|
-
}>, z.ZodObject<{
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
36
|
kind: z.ZodLiteral<"signal">;
|
|
75
37
|
name: z.ZodString;
|
|
76
|
-
},
|
|
77
|
-
name: string;
|
|
78
|
-
kind: "signal";
|
|
79
|
-
}, {
|
|
80
|
-
name: string;
|
|
81
|
-
kind: "signal";
|
|
82
|
-
}>, z.ZodObject<{
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
83
39
|
kind: z.ZodLiteral<"component">;
|
|
84
40
|
component: z.ZodOptional<z.ZodString>;
|
|
85
41
|
source: z.ZodOptional<z.ZodObject<{
|
|
86
42
|
file: z.ZodString;
|
|
87
43
|
line: z.ZodNumber;
|
|
88
44
|
column: z.ZodOptional<z.ZodNumber>;
|
|
89
|
-
},
|
|
90
|
-
file: string;
|
|
91
|
-
line: number;
|
|
92
|
-
column?: number | undefined;
|
|
93
|
-
}, {
|
|
94
|
-
file: string;
|
|
95
|
-
line: number;
|
|
96
|
-
column?: number | undefined;
|
|
97
|
-
}>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
98
46
|
role: z.ZodOptional<z.ZodString>;
|
|
99
47
|
name: z.ZodOptional<z.ZodString>;
|
|
100
|
-
},
|
|
101
|
-
kind: "component";
|
|
102
|
-
name?: string | undefined;
|
|
103
|
-
role?: string | undefined;
|
|
104
|
-
component?: string | undefined;
|
|
105
|
-
source?: {
|
|
106
|
-
file: string;
|
|
107
|
-
line: number;
|
|
108
|
-
column?: number | undefined;
|
|
109
|
-
} | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
kind: "component";
|
|
112
|
-
name?: string | undefined;
|
|
113
|
-
role?: string | undefined;
|
|
114
|
-
component?: string | undefined;
|
|
115
|
-
source?: {
|
|
116
|
-
file: string;
|
|
117
|
-
line: number;
|
|
118
|
-
column?: number | undefined;
|
|
119
|
-
} | undefined;
|
|
120
|
-
}>]>;
|
|
48
|
+
}, z.core.$strip>], "kind">;
|
|
121
49
|
export type FlowAnchor = z.infer<typeof FlowAnchorSchema>;
|
|
122
|
-
export declare const FlowPredicateSchema: z.
|
|
50
|
+
export declare const FlowPredicateSchema: z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>;
|
|
123
51
|
/** One step of a flow: an anchored action (+ optional expectation). */
|
|
124
52
|
export interface FlowStep {
|
|
125
53
|
/** FlowStepTool.ACT | FlowStepTool.ACT_SEQUENCE (core, shared with ReticleTool). */
|
|
@@ -212,90 +140,20 @@ export declare const FlowStepSchema: z.ZodType<FlowStep>;
|
|
|
212
140
|
* file with neither still parses — back-compat is locked by a test).
|
|
213
141
|
*/
|
|
214
142
|
export declare const FlowFileSchema: z.ZodObject<{
|
|
215
|
-
|
|
216
|
-
* The format this file was WRITTEN in. Both readable versions are accepted, because a v1 file is
|
|
217
|
-
* lifted rather than refused — see READABLE_FLOW_VERSIONS.
|
|
218
|
-
*/
|
|
219
|
-
version: z.ZodEffects<z.ZodNumber, number, number>;
|
|
143
|
+
version: z.ZodNumber;
|
|
220
144
|
name: z.ZodString;
|
|
221
|
-
/**
|
|
222
|
-
* The business goal this flow exists to verify, one line (e.g. "ship a deploy to production").
|
|
223
|
-
* Optional + back-compat (a flow without it still parses). Set via an `intent` annotation. The
|
|
224
|
-
* point of "intent + outcome oracle": a flow that declares an intent should also assert an
|
|
225
|
-
* observable business OUTCOME (a consequence success-state), or it claims to verify a goal it
|
|
226
|
-
* cannot actually check — flow-classify flags that gap.
|
|
227
|
-
*/
|
|
228
145
|
intent: z.ZodOptional<z.ZodString>;
|
|
229
|
-
/**
|
|
230
|
-
* True when `intent` was built from the steps' expects, not declared by anybody. An auto-saved
|
|
231
|
-
* drive with no declared intent was named by its request path and read as nothing. A built
|
|
232
|
-
* sentence names it, and this flag keeps it out of the intent ledger: it describes the steps, so
|
|
233
|
-
* it can never be a goal the steps then prove.
|
|
234
|
-
*/
|
|
235
146
|
intentDerived: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
-
/**
|
|
237
|
-
* The intent-ledger row this flow discharges — the id in `.reticle/intent.json`.
|
|
238
|
-
*
|
|
239
|
-
* `intent` above is the prose a recorder captured; this is the LINK to the ledger that already
|
|
240
|
-
* models declared → bound → proved and records which verdict discharged what. Without it there
|
|
241
|
-
* would be two ways to say what a change is for, which is the defect this codebase keeps paying
|
|
242
|
-
* for: a flow's goal and an intent's statement would drift apart with nothing to reconcile them.
|
|
243
|
-
*
|
|
244
|
-
* Set at save time from the flow's own prose, or written by hand to point a flow at an intent
|
|
245
|
-
* declared earlier via `reticle_intent` — a flow can prove something somebody else declared.
|
|
246
|
-
* Optional + back-compat: a flow without it replays exactly as before, and the on-disk version
|
|
247
|
-
* stays FLOW_FILE_VERSION 1.
|
|
248
|
-
*/
|
|
249
147
|
intentId: z.ZodOptional<z.ZodString>;
|
|
250
|
-
/**
|
|
251
|
-
* The project the flow was recorded against (the connecting session's HELLO `projectId`), stamped at
|
|
252
|
-
* save time. Scopes a flow to its app so a shared daemon's HUD lists only the current project's flows
|
|
253
|
-
* instead of every project that ever saved to that daemon. Optional + back-compat: a flow with no
|
|
254
|
-
* projectId is treated as global (visible everywhere), so pre-existing files parse and still show.
|
|
255
|
-
*/
|
|
256
148
|
projectId: z.ZodOptional<z.ZodString>;
|
|
257
|
-
/**
|
|
258
|
-
* The route (pathname) the journey started on, captured at record time. Replay navigates here
|
|
259
|
-
* before step 1 so a flow whose first anchor lives on another page doesn't drift on step 1 ("a
|
|
260
|
-
* step no longer matches") just because replay began on the wrong page. Optional + back-compat: a
|
|
261
|
-
* flow without it (or recorded before this shipped) replays from the current page as before, and
|
|
262
|
-
* the on-disk version stays FLOW_FILE_VERSION 1.
|
|
263
|
-
*/
|
|
264
149
|
startPath: z.ZodOptional<z.ZodString>;
|
|
265
|
-
/**
|
|
266
|
-
* The saved flow this one was generated from, with different parameters (a fixture's customer,
|
|
267
|
-
* a seeded id). A suite that writes runtime copies of a template and deletes them after replay
|
|
268
|
-
* proved the template, and a strict pass of a copy counts toward it in the gate (#1321).
|
|
269
|
-
*/
|
|
270
150
|
template: z.ZodOptional<z.ZodString>;
|
|
271
151
|
fixture: z.ZodOptional<z.ZodString>;
|
|
272
|
-
|
|
273
|
-
* What must already be true for this flow to mean anything, and what it leaves true.
|
|
274
|
-
*
|
|
275
|
-
* These are the two halves of composition. Replaying flows back to back only works when the state
|
|
276
|
-
* one leaves is the state the next expects, and nothing said so — so a suite either got lucky or
|
|
277
|
-
* produced a failure that looked like a regression and was a missing precondition. `requires` lets
|
|
278
|
-
* a replay report THAT instead: not met is `unknown` (nothing ran, nothing proved), never a
|
|
279
|
-
* failure, which is the same honesty rule an uncovered change already follows.
|
|
280
|
-
*
|
|
281
|
-
* `ensures` is the other side, and is what makes A-then-B checkable before either runs.
|
|
282
|
-
*
|
|
283
|
-
* Both optional and both absent from every flow recorded before this shipped, where absent means
|
|
284
|
-
* what it has always meant: replay from wherever the app already is, and let the steps speak.
|
|
285
|
-
* Same predicate shape as a step's `expect`, deliberately — a precondition is just a consequence
|
|
286
|
-
* somebody else's flow was responsible for.
|
|
287
|
-
*/
|
|
288
|
-
requires: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
152
|
+
requires: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
|
|
289
153
|
route: z.ZodOptional<z.ZodObject<{
|
|
290
154
|
pathname: z.ZodOptional<z.ZodString>;
|
|
291
155
|
contains: z.ZodOptional<z.ZodString>;
|
|
292
|
-
},
|
|
293
|
-
contains?: string | undefined;
|
|
294
|
-
pathname?: string | undefined;
|
|
295
|
-
}, {
|
|
296
|
-
contains?: string | undefined;
|
|
297
|
-
pathname?: string | undefined;
|
|
298
|
-
}>>;
|
|
156
|
+
}, z.core.$strip>>;
|
|
299
157
|
signal: z.ZodOptional<z.ZodString>;
|
|
300
158
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
301
159
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -304,143 +162,29 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
304
162
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
305
163
|
status: z.ZodOptional<z.ZodNumber>;
|
|
306
164
|
count: z.ZodOptional<z.ZodNumber>;
|
|
307
|
-
},
|
|
308
|
-
status?: number | undefined;
|
|
309
|
-
method?: string | undefined;
|
|
310
|
-
urlContains?: string | undefined;
|
|
311
|
-
count?: number | undefined;
|
|
312
|
-
}, {
|
|
313
|
-
status?: number | undefined;
|
|
314
|
-
method?: string | undefined;
|
|
315
|
-
urlContains?: string | undefined;
|
|
316
|
-
count?: number | undefined;
|
|
317
|
-
}>>;
|
|
165
|
+
}, z.core.$strict>>;
|
|
318
166
|
console: z.ZodOptional<z.ZodObject<{
|
|
319
167
|
level: z.ZodOptional<z.ZodString>;
|
|
320
168
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
321
|
-
},
|
|
322
|
-
level?: string | undefined;
|
|
323
|
-
absent?: boolean | undefined;
|
|
324
|
-
}, {
|
|
325
|
-
level?: string | undefined;
|
|
326
|
-
absent?: boolean | undefined;
|
|
327
|
-
}>>;
|
|
169
|
+
}, z.core.$strict>>;
|
|
328
170
|
element: z.ZodOptional<z.ZodObject<{
|
|
329
171
|
testid: z.ZodOptional<z.ZodString>;
|
|
330
172
|
role: z.ZodOptional<z.ZodString>;
|
|
331
173
|
name: z.ZodOptional<z.ZodString>;
|
|
332
|
-
},
|
|
333
|
-
name?: string | undefined;
|
|
334
|
-
testid?: string | undefined;
|
|
335
|
-
role?: string | undefined;
|
|
336
|
-
}, {
|
|
337
|
-
name?: string | undefined;
|
|
338
|
-
testid?: string | undefined;
|
|
339
|
-
role?: string | undefined;
|
|
340
|
-
}>>;
|
|
174
|
+
}, z.core.$strict>>;
|
|
341
175
|
text: z.ZodOptional<z.ZodObject<{
|
|
342
176
|
contains: z.ZodString;
|
|
343
177
|
scope: z.ZodOptional<z.ZodString>;
|
|
344
178
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
345
179
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
346
|
-
},
|
|
347
|
-
contains: string;
|
|
348
|
-
scope?: string | undefined;
|
|
349
|
-
visible?: boolean | undefined;
|
|
350
|
-
absent?: boolean | undefined;
|
|
351
|
-
}, {
|
|
352
|
-
contains: string;
|
|
353
|
-
scope?: string | undefined;
|
|
354
|
-
visible?: boolean | undefined;
|
|
355
|
-
absent?: boolean | undefined;
|
|
356
|
-
}>>;
|
|
180
|
+
}, z.core.$strict>>;
|
|
357
181
|
state: z.ZodOptional<z.ZodObject<{
|
|
358
182
|
store: z.ZodOptional<z.ZodString>;
|
|
359
183
|
path: z.ZodString;
|
|
360
184
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
361
185
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
362
|
-
},
|
|
363
|
-
|
|
364
|
-
hold?: boolean | undefined;
|
|
365
|
-
store?: string | undefined;
|
|
366
|
-
equals?: unknown;
|
|
367
|
-
}, {
|
|
368
|
-
path: string;
|
|
369
|
-
hold?: boolean | undefined;
|
|
370
|
-
store?: string | undefined;
|
|
371
|
-
equals?: unknown;
|
|
372
|
-
}>>;
|
|
373
|
-
}, "strict", z.ZodTypeAny, {
|
|
374
|
-
signal?: string | undefined;
|
|
375
|
-
net?: {
|
|
376
|
-
status?: number | undefined;
|
|
377
|
-
method?: string | undefined;
|
|
378
|
-
urlContains?: string | undefined;
|
|
379
|
-
count?: number | undefined;
|
|
380
|
-
} | undefined;
|
|
381
|
-
state?: {
|
|
382
|
-
path: string;
|
|
383
|
-
hold?: boolean | undefined;
|
|
384
|
-
store?: string | undefined;
|
|
385
|
-
equals?: unknown;
|
|
386
|
-
} | undefined;
|
|
387
|
-
element?: {
|
|
388
|
-
name?: string | undefined;
|
|
389
|
-
testid?: string | undefined;
|
|
390
|
-
role?: string | undefined;
|
|
391
|
-
} | undefined;
|
|
392
|
-
text?: {
|
|
393
|
-
contains: string;
|
|
394
|
-
scope?: string | undefined;
|
|
395
|
-
visible?: boolean | undefined;
|
|
396
|
-
absent?: boolean | undefined;
|
|
397
|
-
} | undefined;
|
|
398
|
-
route?: {
|
|
399
|
-
contains?: string | undefined;
|
|
400
|
-
pathname?: string | undefined;
|
|
401
|
-
} | undefined;
|
|
402
|
-
console?: {
|
|
403
|
-
level?: string | undefined;
|
|
404
|
-
absent?: boolean | undefined;
|
|
405
|
-
} | undefined;
|
|
406
|
-
signalData?: Record<string, unknown> | undefined;
|
|
407
|
-
signalCount?: number | undefined;
|
|
408
|
-
}, {
|
|
409
|
-
signal?: string | undefined;
|
|
410
|
-
net?: {
|
|
411
|
-
status?: number | undefined;
|
|
412
|
-
method?: string | undefined;
|
|
413
|
-
urlContains?: string | undefined;
|
|
414
|
-
count?: number | undefined;
|
|
415
|
-
} | undefined;
|
|
416
|
-
state?: {
|
|
417
|
-
path: string;
|
|
418
|
-
hold?: boolean | undefined;
|
|
419
|
-
store?: string | undefined;
|
|
420
|
-
equals?: unknown;
|
|
421
|
-
} | undefined;
|
|
422
|
-
element?: {
|
|
423
|
-
name?: string | undefined;
|
|
424
|
-
testid?: string | undefined;
|
|
425
|
-
role?: string | undefined;
|
|
426
|
-
} | undefined;
|
|
427
|
-
text?: {
|
|
428
|
-
contains: string;
|
|
429
|
-
scope?: string | undefined;
|
|
430
|
-
visible?: boolean | undefined;
|
|
431
|
-
absent?: boolean | undefined;
|
|
432
|
-
} | undefined;
|
|
433
|
-
route?: {
|
|
434
|
-
contains?: string | undefined;
|
|
435
|
-
pathname?: string | undefined;
|
|
436
|
-
} | undefined;
|
|
437
|
-
console?: {
|
|
438
|
-
level?: string | undefined;
|
|
439
|
-
absent?: boolean | undefined;
|
|
440
|
-
} | undefined;
|
|
441
|
-
signalData?: Record<string, unknown> | undefined;
|
|
442
|
-
signalCount?: number | undefined;
|
|
443
|
-
}>, {
|
|
186
|
+
}, z.core.$strict>>;
|
|
187
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
444
188
|
kind: typeof PredicateKind.ELEMENT;
|
|
445
189
|
query: import("../index.js").ElementQuery;
|
|
446
190
|
state?: import("../wire/constants/constants.js").ElementState;
|
|
@@ -516,87 +260,46 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
516
260
|
kind: typeof PredicateKind.NOT;
|
|
517
261
|
predicate: Predicate;
|
|
518
262
|
} | undefined, {
|
|
519
|
-
signal?: string | undefined;
|
|
520
|
-
net?: {
|
|
521
|
-
status?: number | undefined;
|
|
522
|
-
method?: string | undefined;
|
|
523
|
-
urlContains?: string | undefined;
|
|
524
|
-
count?: number | undefined;
|
|
525
|
-
} | undefined;
|
|
526
|
-
state?: {
|
|
527
|
-
path: string;
|
|
528
|
-
hold?: boolean | undefined;
|
|
529
|
-
store?: string | undefined;
|
|
530
|
-
equals?: unknown;
|
|
531
|
-
} | undefined;
|
|
532
|
-
element?: {
|
|
533
|
-
name?: string | undefined;
|
|
534
|
-
testid?: string | undefined;
|
|
535
|
-
role?: string | undefined;
|
|
536
|
-
} | undefined;
|
|
537
|
-
text?: {
|
|
538
|
-
contains: string;
|
|
539
|
-
scope?: string | undefined;
|
|
540
|
-
visible?: boolean | undefined;
|
|
541
|
-
absent?: boolean | undefined;
|
|
542
|
-
} | undefined;
|
|
543
263
|
route?: {
|
|
544
|
-
contains?: string | undefined;
|
|
545
264
|
pathname?: string | undefined;
|
|
265
|
+
contains?: string | undefined;
|
|
546
266
|
} | undefined;
|
|
547
|
-
|
|
548
|
-
level?: string | undefined;
|
|
549
|
-
absent?: boolean | undefined;
|
|
550
|
-
} | undefined;
|
|
267
|
+
signal?: string | undefined;
|
|
551
268
|
signalData?: Record<string, unknown> | undefined;
|
|
552
269
|
signalCount?: number | undefined;
|
|
553
|
-
}>]>, "many">, Predicate[], (Predicate | {
|
|
554
|
-
signal?: string | undefined;
|
|
555
270
|
net?: {
|
|
556
|
-
status?: number | undefined;
|
|
557
271
|
method?: string | undefined;
|
|
558
272
|
urlContains?: string | undefined;
|
|
273
|
+
status?: number | undefined;
|
|
559
274
|
count?: number | undefined;
|
|
560
275
|
} | undefined;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
store?: string | undefined;
|
|
565
|
-
equals?: unknown;
|
|
276
|
+
console?: {
|
|
277
|
+
level?: string | undefined;
|
|
278
|
+
absent?: boolean | undefined;
|
|
566
279
|
} | undefined;
|
|
567
280
|
element?: {
|
|
568
|
-
name?: string | undefined;
|
|
569
281
|
testid?: string | undefined;
|
|
570
282
|
role?: string | undefined;
|
|
283
|
+
name?: string | undefined;
|
|
571
284
|
} | undefined;
|
|
572
285
|
text?: {
|
|
573
286
|
contains: string;
|
|
574
287
|
scope?: string | undefined;
|
|
575
|
-
visible?: boolean | undefined;
|
|
576
288
|
absent?: boolean | undefined;
|
|
289
|
+
visible?: boolean | undefined;
|
|
577
290
|
} | undefined;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
level?: string | undefined;
|
|
584
|
-
absent?: boolean | undefined;
|
|
291
|
+
state?: {
|
|
292
|
+
path: string;
|
|
293
|
+
store?: string | undefined;
|
|
294
|
+
equals?: unknown;
|
|
295
|
+
hold?: boolean | undefined;
|
|
585
296
|
} | undefined;
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
})[]>>;
|
|
589
|
-
ensures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
297
|
+
}>>]>>, z.ZodTransform<Predicate[], (Predicate | undefined)[]>>>;
|
|
298
|
+
ensures: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
|
|
590
299
|
route: z.ZodOptional<z.ZodObject<{
|
|
591
300
|
pathname: z.ZodOptional<z.ZodString>;
|
|
592
301
|
contains: z.ZodOptional<z.ZodString>;
|
|
593
|
-
},
|
|
594
|
-
contains?: string | undefined;
|
|
595
|
-
pathname?: string | undefined;
|
|
596
|
-
}, {
|
|
597
|
-
contains?: string | undefined;
|
|
598
|
-
pathname?: string | undefined;
|
|
599
|
-
}>>;
|
|
302
|
+
}, z.core.$strip>>;
|
|
600
303
|
signal: z.ZodOptional<z.ZodString>;
|
|
601
304
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
602
305
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -605,143 +308,29 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
605
308
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
606
309
|
status: z.ZodOptional<z.ZodNumber>;
|
|
607
310
|
count: z.ZodOptional<z.ZodNumber>;
|
|
608
|
-
},
|
|
609
|
-
status?: number | undefined;
|
|
610
|
-
method?: string | undefined;
|
|
611
|
-
urlContains?: string | undefined;
|
|
612
|
-
count?: number | undefined;
|
|
613
|
-
}, {
|
|
614
|
-
status?: number | undefined;
|
|
615
|
-
method?: string | undefined;
|
|
616
|
-
urlContains?: string | undefined;
|
|
617
|
-
count?: number | undefined;
|
|
618
|
-
}>>;
|
|
311
|
+
}, z.core.$strict>>;
|
|
619
312
|
console: z.ZodOptional<z.ZodObject<{
|
|
620
313
|
level: z.ZodOptional<z.ZodString>;
|
|
621
314
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
622
|
-
},
|
|
623
|
-
level?: string | undefined;
|
|
624
|
-
absent?: boolean | undefined;
|
|
625
|
-
}, {
|
|
626
|
-
level?: string | undefined;
|
|
627
|
-
absent?: boolean | undefined;
|
|
628
|
-
}>>;
|
|
315
|
+
}, z.core.$strict>>;
|
|
629
316
|
element: z.ZodOptional<z.ZodObject<{
|
|
630
317
|
testid: z.ZodOptional<z.ZodString>;
|
|
631
318
|
role: z.ZodOptional<z.ZodString>;
|
|
632
319
|
name: z.ZodOptional<z.ZodString>;
|
|
633
|
-
},
|
|
634
|
-
name?: string | undefined;
|
|
635
|
-
testid?: string | undefined;
|
|
636
|
-
role?: string | undefined;
|
|
637
|
-
}, {
|
|
638
|
-
name?: string | undefined;
|
|
639
|
-
testid?: string | undefined;
|
|
640
|
-
role?: string | undefined;
|
|
641
|
-
}>>;
|
|
320
|
+
}, z.core.$strict>>;
|
|
642
321
|
text: z.ZodOptional<z.ZodObject<{
|
|
643
322
|
contains: z.ZodString;
|
|
644
323
|
scope: z.ZodOptional<z.ZodString>;
|
|
645
324
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
646
325
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
647
|
-
},
|
|
648
|
-
contains: string;
|
|
649
|
-
scope?: string | undefined;
|
|
650
|
-
visible?: boolean | undefined;
|
|
651
|
-
absent?: boolean | undefined;
|
|
652
|
-
}, {
|
|
653
|
-
contains: string;
|
|
654
|
-
scope?: string | undefined;
|
|
655
|
-
visible?: boolean | undefined;
|
|
656
|
-
absent?: boolean | undefined;
|
|
657
|
-
}>>;
|
|
326
|
+
}, z.core.$strict>>;
|
|
658
327
|
state: z.ZodOptional<z.ZodObject<{
|
|
659
328
|
store: z.ZodOptional<z.ZodString>;
|
|
660
329
|
path: z.ZodString;
|
|
661
330
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
662
331
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
663
|
-
},
|
|
664
|
-
|
|
665
|
-
hold?: boolean | undefined;
|
|
666
|
-
store?: string | undefined;
|
|
667
|
-
equals?: unknown;
|
|
668
|
-
}, {
|
|
669
|
-
path: string;
|
|
670
|
-
hold?: boolean | undefined;
|
|
671
|
-
store?: string | undefined;
|
|
672
|
-
equals?: unknown;
|
|
673
|
-
}>>;
|
|
674
|
-
}, "strict", z.ZodTypeAny, {
|
|
675
|
-
signal?: string | undefined;
|
|
676
|
-
net?: {
|
|
677
|
-
status?: number | undefined;
|
|
678
|
-
method?: string | undefined;
|
|
679
|
-
urlContains?: string | undefined;
|
|
680
|
-
count?: number | undefined;
|
|
681
|
-
} | undefined;
|
|
682
|
-
state?: {
|
|
683
|
-
path: string;
|
|
684
|
-
hold?: boolean | undefined;
|
|
685
|
-
store?: string | undefined;
|
|
686
|
-
equals?: unknown;
|
|
687
|
-
} | undefined;
|
|
688
|
-
element?: {
|
|
689
|
-
name?: string | undefined;
|
|
690
|
-
testid?: string | undefined;
|
|
691
|
-
role?: string | undefined;
|
|
692
|
-
} | undefined;
|
|
693
|
-
text?: {
|
|
694
|
-
contains: string;
|
|
695
|
-
scope?: string | undefined;
|
|
696
|
-
visible?: boolean | undefined;
|
|
697
|
-
absent?: boolean | undefined;
|
|
698
|
-
} | undefined;
|
|
699
|
-
route?: {
|
|
700
|
-
contains?: string | undefined;
|
|
701
|
-
pathname?: string | undefined;
|
|
702
|
-
} | undefined;
|
|
703
|
-
console?: {
|
|
704
|
-
level?: string | undefined;
|
|
705
|
-
absent?: boolean | undefined;
|
|
706
|
-
} | undefined;
|
|
707
|
-
signalData?: Record<string, unknown> | undefined;
|
|
708
|
-
signalCount?: number | undefined;
|
|
709
|
-
}, {
|
|
710
|
-
signal?: string | undefined;
|
|
711
|
-
net?: {
|
|
712
|
-
status?: number | undefined;
|
|
713
|
-
method?: string | undefined;
|
|
714
|
-
urlContains?: string | undefined;
|
|
715
|
-
count?: number | undefined;
|
|
716
|
-
} | undefined;
|
|
717
|
-
state?: {
|
|
718
|
-
path: string;
|
|
719
|
-
hold?: boolean | undefined;
|
|
720
|
-
store?: string | undefined;
|
|
721
|
-
equals?: unknown;
|
|
722
|
-
} | undefined;
|
|
723
|
-
element?: {
|
|
724
|
-
name?: string | undefined;
|
|
725
|
-
testid?: string | undefined;
|
|
726
|
-
role?: string | undefined;
|
|
727
|
-
} | undefined;
|
|
728
|
-
text?: {
|
|
729
|
-
contains: string;
|
|
730
|
-
scope?: string | undefined;
|
|
731
|
-
visible?: boolean | undefined;
|
|
732
|
-
absent?: boolean | undefined;
|
|
733
|
-
} | undefined;
|
|
734
|
-
route?: {
|
|
735
|
-
contains?: string | undefined;
|
|
736
|
-
pathname?: string | undefined;
|
|
737
|
-
} | undefined;
|
|
738
|
-
console?: {
|
|
739
|
-
level?: string | undefined;
|
|
740
|
-
absent?: boolean | undefined;
|
|
741
|
-
} | undefined;
|
|
742
|
-
signalData?: Record<string, unknown> | undefined;
|
|
743
|
-
signalCount?: number | undefined;
|
|
744
|
-
}>, {
|
|
332
|
+
}, z.core.$strict>>;
|
|
333
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
745
334
|
kind: typeof PredicateKind.ELEMENT;
|
|
746
335
|
query: import("../index.js").ElementQuery;
|
|
747
336
|
state?: import("../wire/constants/constants.js").ElementState;
|
|
@@ -817,114 +406,53 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
817
406
|
kind: typeof PredicateKind.NOT;
|
|
818
407
|
predicate: Predicate;
|
|
819
408
|
} | undefined, {
|
|
820
|
-
signal?: string | undefined;
|
|
821
|
-
net?: {
|
|
822
|
-
status?: number | undefined;
|
|
823
|
-
method?: string | undefined;
|
|
824
|
-
urlContains?: string | undefined;
|
|
825
|
-
count?: number | undefined;
|
|
826
|
-
} | undefined;
|
|
827
|
-
state?: {
|
|
828
|
-
path: string;
|
|
829
|
-
hold?: boolean | undefined;
|
|
830
|
-
store?: string | undefined;
|
|
831
|
-
equals?: unknown;
|
|
832
|
-
} | undefined;
|
|
833
|
-
element?: {
|
|
834
|
-
name?: string | undefined;
|
|
835
|
-
testid?: string | undefined;
|
|
836
|
-
role?: string | undefined;
|
|
837
|
-
} | undefined;
|
|
838
|
-
text?: {
|
|
839
|
-
contains: string;
|
|
840
|
-
scope?: string | undefined;
|
|
841
|
-
visible?: boolean | undefined;
|
|
842
|
-
absent?: boolean | undefined;
|
|
843
|
-
} | undefined;
|
|
844
409
|
route?: {
|
|
845
|
-
contains?: string | undefined;
|
|
846
410
|
pathname?: string | undefined;
|
|
411
|
+
contains?: string | undefined;
|
|
847
412
|
} | undefined;
|
|
848
|
-
|
|
849
|
-
level?: string | undefined;
|
|
850
|
-
absent?: boolean | undefined;
|
|
851
|
-
} | undefined;
|
|
413
|
+
signal?: string | undefined;
|
|
852
414
|
signalData?: Record<string, unknown> | undefined;
|
|
853
415
|
signalCount?: number | undefined;
|
|
854
|
-
}>]>, "many">, Predicate[], (Predicate | {
|
|
855
|
-
signal?: string | undefined;
|
|
856
416
|
net?: {
|
|
857
|
-
status?: number | undefined;
|
|
858
417
|
method?: string | undefined;
|
|
859
418
|
urlContains?: string | undefined;
|
|
419
|
+
status?: number | undefined;
|
|
860
420
|
count?: number | undefined;
|
|
861
421
|
} | undefined;
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
store?: string | undefined;
|
|
866
|
-
equals?: unknown;
|
|
422
|
+
console?: {
|
|
423
|
+
level?: string | undefined;
|
|
424
|
+
absent?: boolean | undefined;
|
|
867
425
|
} | undefined;
|
|
868
426
|
element?: {
|
|
869
|
-
name?: string | undefined;
|
|
870
427
|
testid?: string | undefined;
|
|
871
428
|
role?: string | undefined;
|
|
429
|
+
name?: string | undefined;
|
|
872
430
|
} | undefined;
|
|
873
431
|
text?: {
|
|
874
432
|
contains: string;
|
|
875
433
|
scope?: string | undefined;
|
|
876
|
-
visible?: boolean | undefined;
|
|
877
434
|
absent?: boolean | undefined;
|
|
435
|
+
visible?: boolean | undefined;
|
|
878
436
|
} | undefined;
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
level?: string | undefined;
|
|
885
|
-
absent?: boolean | undefined;
|
|
437
|
+
state?: {
|
|
438
|
+
path: string;
|
|
439
|
+
store?: string | undefined;
|
|
440
|
+
equals?: unknown;
|
|
441
|
+
hold?: boolean | undefined;
|
|
886
442
|
} | undefined;
|
|
887
|
-
|
|
888
|
-
signalCount?: number | undefined;
|
|
889
|
-
})[]>>;
|
|
890
|
-
/**
|
|
891
|
-
* Who made this flow, stamped at save: the agent that drove it (its MCP client name) and the
|
|
892
|
-
* person signed in to the cloud key on that machine. Either is absent when it was not known —
|
|
893
|
-
* never guessed.
|
|
894
|
-
*/
|
|
443
|
+
}>>]>>, z.ZodTransform<Predicate[], (Predicate | undefined)[]>>>;
|
|
895
444
|
author: z.ZodOptional<z.ZodObject<{
|
|
896
445
|
agent: z.ZodOptional<z.ZodString>;
|
|
897
446
|
person: z.ZodOptional<z.ZodString>;
|
|
898
|
-
},
|
|
899
|
-
agent?: string | undefined;
|
|
900
|
-
person?: string | undefined;
|
|
901
|
-
}, {
|
|
902
|
-
agent?: string | undefined;
|
|
903
|
-
person?: string | undefined;
|
|
904
|
-
}>>;
|
|
905
|
-
/** From the injected clock (ms) — deterministic in tests, byte-stable on disk. */
|
|
447
|
+
}, z.core.$strip>>;
|
|
906
448
|
createdAt: z.ZodNumber;
|
|
907
|
-
steps: z.ZodArray<z.ZodType<FlowStep, z.
|
|
908
|
-
/**
|
|
909
|
-
* How long every step of this flow waits for its declared consequence, in ms. A step's own
|
|
910
|
-
* `timeoutMs` wins over it; absent both, FLOW_SIGNAL_TIMEOUT_MS applies.
|
|
911
|
-
*
|
|
912
|
-
* Flow-level because slowness is usually a property of the APP, not of one control — a remote
|
|
913
|
-
* database, a model-backed endpoint, a cold container. Optional + back-compat: a flow without it
|
|
914
|
-
* replays exactly as before and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
915
|
-
*/
|
|
449
|
+
steps: z.ZodArray<z.ZodType<FlowStep, unknown, z.core.$ZodTypeInternals<FlowStep, unknown>>>;
|
|
916
450
|
signalTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
917
|
-
success: z.ZodOptional<z.ZodUnion<[z.
|
|
451
|
+
success: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
|
|
918
452
|
route: z.ZodOptional<z.ZodObject<{
|
|
919
453
|
pathname: z.ZodOptional<z.ZodString>;
|
|
920
454
|
contains: z.ZodOptional<z.ZodString>;
|
|
921
|
-
},
|
|
922
|
-
contains?: string | undefined;
|
|
923
|
-
pathname?: string | undefined;
|
|
924
|
-
}, {
|
|
925
|
-
contains?: string | undefined;
|
|
926
|
-
pathname?: string | undefined;
|
|
927
|
-
}>>;
|
|
455
|
+
}, z.core.$strip>>;
|
|
928
456
|
signal: z.ZodOptional<z.ZodString>;
|
|
929
457
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
930
458
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -933,143 +461,29 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
933
461
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
934
462
|
status: z.ZodOptional<z.ZodNumber>;
|
|
935
463
|
count: z.ZodOptional<z.ZodNumber>;
|
|
936
|
-
},
|
|
937
|
-
status?: number | undefined;
|
|
938
|
-
method?: string | undefined;
|
|
939
|
-
urlContains?: string | undefined;
|
|
940
|
-
count?: number | undefined;
|
|
941
|
-
}, {
|
|
942
|
-
status?: number | undefined;
|
|
943
|
-
method?: string | undefined;
|
|
944
|
-
urlContains?: string | undefined;
|
|
945
|
-
count?: number | undefined;
|
|
946
|
-
}>>;
|
|
464
|
+
}, z.core.$strict>>;
|
|
947
465
|
console: z.ZodOptional<z.ZodObject<{
|
|
948
466
|
level: z.ZodOptional<z.ZodString>;
|
|
949
467
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
950
|
-
},
|
|
951
|
-
level?: string | undefined;
|
|
952
|
-
absent?: boolean | undefined;
|
|
953
|
-
}, {
|
|
954
|
-
level?: string | undefined;
|
|
955
|
-
absent?: boolean | undefined;
|
|
956
|
-
}>>;
|
|
468
|
+
}, z.core.$strict>>;
|
|
957
469
|
element: z.ZodOptional<z.ZodObject<{
|
|
958
470
|
testid: z.ZodOptional<z.ZodString>;
|
|
959
471
|
role: z.ZodOptional<z.ZodString>;
|
|
960
472
|
name: z.ZodOptional<z.ZodString>;
|
|
961
|
-
},
|
|
962
|
-
name?: string | undefined;
|
|
963
|
-
testid?: string | undefined;
|
|
964
|
-
role?: string | undefined;
|
|
965
|
-
}, {
|
|
966
|
-
name?: string | undefined;
|
|
967
|
-
testid?: string | undefined;
|
|
968
|
-
role?: string | undefined;
|
|
969
|
-
}>>;
|
|
473
|
+
}, z.core.$strict>>;
|
|
970
474
|
text: z.ZodOptional<z.ZodObject<{
|
|
971
475
|
contains: z.ZodString;
|
|
972
476
|
scope: z.ZodOptional<z.ZodString>;
|
|
973
477
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
974
478
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
975
|
-
},
|
|
976
|
-
contains: string;
|
|
977
|
-
scope?: string | undefined;
|
|
978
|
-
visible?: boolean | undefined;
|
|
979
|
-
absent?: boolean | undefined;
|
|
980
|
-
}, {
|
|
981
|
-
contains: string;
|
|
982
|
-
scope?: string | undefined;
|
|
983
|
-
visible?: boolean | undefined;
|
|
984
|
-
absent?: boolean | undefined;
|
|
985
|
-
}>>;
|
|
479
|
+
}, z.core.$strict>>;
|
|
986
480
|
state: z.ZodOptional<z.ZodObject<{
|
|
987
481
|
store: z.ZodOptional<z.ZodString>;
|
|
988
482
|
path: z.ZodString;
|
|
989
483
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
990
484
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
991
|
-
},
|
|
992
|
-
|
|
993
|
-
hold?: boolean | undefined;
|
|
994
|
-
store?: string | undefined;
|
|
995
|
-
equals?: unknown;
|
|
996
|
-
}, {
|
|
997
|
-
path: string;
|
|
998
|
-
hold?: boolean | undefined;
|
|
999
|
-
store?: string | undefined;
|
|
1000
|
-
equals?: unknown;
|
|
1001
|
-
}>>;
|
|
1002
|
-
}, "strict", z.ZodTypeAny, {
|
|
1003
|
-
signal?: string | undefined;
|
|
1004
|
-
net?: {
|
|
1005
|
-
status?: number | undefined;
|
|
1006
|
-
method?: string | undefined;
|
|
1007
|
-
urlContains?: string | undefined;
|
|
1008
|
-
count?: number | undefined;
|
|
1009
|
-
} | undefined;
|
|
1010
|
-
state?: {
|
|
1011
|
-
path: string;
|
|
1012
|
-
hold?: boolean | undefined;
|
|
1013
|
-
store?: string | undefined;
|
|
1014
|
-
equals?: unknown;
|
|
1015
|
-
} | undefined;
|
|
1016
|
-
element?: {
|
|
1017
|
-
name?: string | undefined;
|
|
1018
|
-
testid?: string | undefined;
|
|
1019
|
-
role?: string | undefined;
|
|
1020
|
-
} | undefined;
|
|
1021
|
-
text?: {
|
|
1022
|
-
contains: string;
|
|
1023
|
-
scope?: string | undefined;
|
|
1024
|
-
visible?: boolean | undefined;
|
|
1025
|
-
absent?: boolean | undefined;
|
|
1026
|
-
} | undefined;
|
|
1027
|
-
route?: {
|
|
1028
|
-
contains?: string | undefined;
|
|
1029
|
-
pathname?: string | undefined;
|
|
1030
|
-
} | undefined;
|
|
1031
|
-
console?: {
|
|
1032
|
-
level?: string | undefined;
|
|
1033
|
-
absent?: boolean | undefined;
|
|
1034
|
-
} | undefined;
|
|
1035
|
-
signalData?: Record<string, unknown> | undefined;
|
|
1036
|
-
signalCount?: number | undefined;
|
|
1037
|
-
}, {
|
|
1038
|
-
signal?: string | undefined;
|
|
1039
|
-
net?: {
|
|
1040
|
-
status?: number | undefined;
|
|
1041
|
-
method?: string | undefined;
|
|
1042
|
-
urlContains?: string | undefined;
|
|
1043
|
-
count?: number | undefined;
|
|
1044
|
-
} | undefined;
|
|
1045
|
-
state?: {
|
|
1046
|
-
path: string;
|
|
1047
|
-
hold?: boolean | undefined;
|
|
1048
|
-
store?: string | undefined;
|
|
1049
|
-
equals?: unknown;
|
|
1050
|
-
} | undefined;
|
|
1051
|
-
element?: {
|
|
1052
|
-
name?: string | undefined;
|
|
1053
|
-
testid?: string | undefined;
|
|
1054
|
-
role?: string | undefined;
|
|
1055
|
-
} | undefined;
|
|
1056
|
-
text?: {
|
|
1057
|
-
contains: string;
|
|
1058
|
-
scope?: string | undefined;
|
|
1059
|
-
visible?: boolean | undefined;
|
|
1060
|
-
absent?: boolean | undefined;
|
|
1061
|
-
} | undefined;
|
|
1062
|
-
route?: {
|
|
1063
|
-
contains?: string | undefined;
|
|
1064
|
-
pathname?: string | undefined;
|
|
1065
|
-
} | undefined;
|
|
1066
|
-
console?: {
|
|
1067
|
-
level?: string | undefined;
|
|
1068
|
-
absent?: boolean | undefined;
|
|
1069
|
-
} | undefined;
|
|
1070
|
-
signalData?: Record<string, unknown> | undefined;
|
|
1071
|
-
signalCount?: number | undefined;
|
|
1072
|
-
}>, {
|
|
485
|
+
}, z.core.$strict>>;
|
|
486
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
1073
487
|
kind: typeof PredicateKind.ELEMENT;
|
|
1074
488
|
query: import("../index.js").ElementQuery;
|
|
1075
489
|
state?: import("../wire/constants/constants.js").ElementState;
|
|
@@ -1145,46 +559,42 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1145
559
|
kind: typeof PredicateKind.NOT;
|
|
1146
560
|
predicate: Predicate;
|
|
1147
561
|
} | undefined, {
|
|
562
|
+
route?: {
|
|
563
|
+
pathname?: string | undefined;
|
|
564
|
+
contains?: string | undefined;
|
|
565
|
+
} | undefined;
|
|
1148
566
|
signal?: string | undefined;
|
|
567
|
+
signalData?: Record<string, unknown> | undefined;
|
|
568
|
+
signalCount?: number | undefined;
|
|
1149
569
|
net?: {
|
|
1150
|
-
status?: number | undefined;
|
|
1151
570
|
method?: string | undefined;
|
|
1152
571
|
urlContains?: string | undefined;
|
|
572
|
+
status?: number | undefined;
|
|
1153
573
|
count?: number | undefined;
|
|
1154
574
|
} | undefined;
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
store?: string | undefined;
|
|
1159
|
-
equals?: unknown;
|
|
575
|
+
console?: {
|
|
576
|
+
level?: string | undefined;
|
|
577
|
+
absent?: boolean | undefined;
|
|
1160
578
|
} | undefined;
|
|
1161
579
|
element?: {
|
|
1162
|
-
name?: string | undefined;
|
|
1163
580
|
testid?: string | undefined;
|
|
1164
581
|
role?: string | undefined;
|
|
582
|
+
name?: string | undefined;
|
|
1165
583
|
} | undefined;
|
|
1166
584
|
text?: {
|
|
1167
585
|
contains: string;
|
|
1168
586
|
scope?: string | undefined;
|
|
1169
|
-
visible?: boolean | undefined;
|
|
1170
587
|
absent?: boolean | undefined;
|
|
588
|
+
visible?: boolean | undefined;
|
|
1171
589
|
} | undefined;
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
level?: string | undefined;
|
|
1178
|
-
absent?: boolean | undefined;
|
|
590
|
+
state?: {
|
|
591
|
+
path: string;
|
|
592
|
+
store?: string | undefined;
|
|
593
|
+
equals?: unknown;
|
|
594
|
+
hold?: boolean | undefined;
|
|
1179
595
|
} | undefined;
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
}>]>>;
|
|
1183
|
-
/**
|
|
1184
|
-
* Anchors whose CONTENT must not be asserted (e.g. LLM output). Replay asserts
|
|
1185
|
-
* presence, not words. Compiled from a `mark-dynamic` annotation.
|
|
1186
|
-
*/
|
|
1187
|
-
dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
596
|
+
}>>]>>;
|
|
597
|
+
dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1188
598
|
kind: z.ZodLiteral<"testid">;
|
|
1189
599
|
value: z.ZodString;
|
|
1190
600
|
of: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1192,441 +602,55 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1192
602
|
file: z.ZodString;
|
|
1193
603
|
line: z.ZodNumber;
|
|
1194
604
|
column: z.ZodOptional<z.ZodNumber>;
|
|
1195
|
-
},
|
|
1196
|
-
|
|
1197
|
-
line: number;
|
|
1198
|
-
column?: number | undefined;
|
|
1199
|
-
}, {
|
|
1200
|
-
file: string;
|
|
1201
|
-
line: number;
|
|
1202
|
-
column?: number | undefined;
|
|
1203
|
-
}>>;
|
|
1204
|
-
}, "strip", z.ZodTypeAny, {
|
|
1205
|
-
kind: "testid";
|
|
1206
|
-
value: string;
|
|
1207
|
-
source?: {
|
|
1208
|
-
file: string;
|
|
1209
|
-
line: number;
|
|
1210
|
-
column?: number | undefined;
|
|
1211
|
-
} | undefined;
|
|
1212
|
-
of?: number | undefined;
|
|
1213
|
-
}, {
|
|
1214
|
-
kind: "testid";
|
|
1215
|
-
value: string;
|
|
1216
|
-
source?: {
|
|
1217
|
-
file: string;
|
|
1218
|
-
line: number;
|
|
1219
|
-
column?: number | undefined;
|
|
1220
|
-
} | undefined;
|
|
1221
|
-
of?: number | undefined;
|
|
1222
|
-
}>, z.ZodObject<{
|
|
605
|
+
}, z.core.$strip>>;
|
|
606
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1223
607
|
kind: z.ZodLiteral<"role">;
|
|
1224
608
|
role: z.ZodString;
|
|
1225
609
|
name: z.ZodOptional<z.ZodString>;
|
|
1226
610
|
nth: z.ZodOptional<z.ZodNumber>;
|
|
1227
611
|
of: z.ZodOptional<z.ZodNumber>;
|
|
1228
|
-
},
|
|
1229
|
-
kind: "role";
|
|
1230
|
-
role: string;
|
|
1231
|
-
name?: string | undefined;
|
|
1232
|
-
of?: number | undefined;
|
|
1233
|
-
nth?: number | undefined;
|
|
1234
|
-
}, {
|
|
1235
|
-
kind: "role";
|
|
1236
|
-
role: string;
|
|
1237
|
-
name?: string | undefined;
|
|
1238
|
-
of?: number | undefined;
|
|
1239
|
-
nth?: number | undefined;
|
|
1240
|
-
}>, z.ZodObject<{
|
|
612
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1241
613
|
kind: z.ZodLiteral<"signal">;
|
|
1242
614
|
name: z.ZodString;
|
|
1243
|
-
},
|
|
1244
|
-
name: string;
|
|
1245
|
-
kind: "signal";
|
|
1246
|
-
}, {
|
|
1247
|
-
name: string;
|
|
1248
|
-
kind: "signal";
|
|
1249
|
-
}>, z.ZodObject<{
|
|
615
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1250
616
|
kind: z.ZodLiteral<"component">;
|
|
1251
617
|
component: z.ZodOptional<z.ZodString>;
|
|
1252
618
|
source: z.ZodOptional<z.ZodObject<{
|
|
1253
619
|
file: z.ZodString;
|
|
1254
620
|
line: z.ZodNumber;
|
|
1255
621
|
column: z.ZodOptional<z.ZodNumber>;
|
|
1256
|
-
},
|
|
1257
|
-
file: string;
|
|
1258
|
-
line: number;
|
|
1259
|
-
column?: number | undefined;
|
|
1260
|
-
}, {
|
|
1261
|
-
file: string;
|
|
1262
|
-
line: number;
|
|
1263
|
-
column?: number | undefined;
|
|
1264
|
-
}>>;
|
|
622
|
+
}, z.core.$strip>>;
|
|
1265
623
|
role: z.ZodOptional<z.ZodString>;
|
|
1266
624
|
name: z.ZodOptional<z.ZodString>;
|
|
1267
|
-
},
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
column?: number | undefined;
|
|
1276
|
-
} | undefined;
|
|
1277
|
-
}, {
|
|
1278
|
-
kind: "component";
|
|
1279
|
-
name?: string | undefined;
|
|
1280
|
-
role?: string | undefined;
|
|
1281
|
-
component?: string | undefined;
|
|
1282
|
-
source?: {
|
|
1283
|
-
file: string;
|
|
1284
|
-
line: number;
|
|
1285
|
-
column?: number | undefined;
|
|
1286
|
-
} | undefined;
|
|
1287
|
-
}>]>, "many">>;
|
|
1288
|
-
/**
|
|
1289
|
-
* Free-form labels a suite selects on — `smoke`, `checkout`, `slow`.
|
|
1290
|
-
*
|
|
1291
|
-
* Not an enum: the useful sets are the ones a team invents for its own product, and a closed list
|
|
1292
|
-
* would mean shipping somebody's release process in the contract. Optional and back-compat, so
|
|
1293
|
-
* every flow already on disk keeps loading.
|
|
1294
|
-
*/
|
|
1295
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1296
|
-
/**
|
|
1297
|
-
* Flows that must run, and pass, before this one.
|
|
1298
|
-
*
|
|
1299
|
-
* By name, because a name is what every other caller addresses a flow by. A prerequisite that is
|
|
1300
|
-
* not in the run is reported rather than assumed satisfied: a checkout flow whose login was
|
|
1301
|
-
* filtered out by a label would otherwise fail for a reason that has nothing to do with checkout.
|
|
1302
|
-
*/
|
|
1303
|
-
needs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1304
|
-
/** Whether a suite runs this flow. Absent means active — see FlowStatus. */
|
|
1305
|
-
status: z.ZodOptional<z.ZodEnum<["active", "quarantined", "draft"]>>;
|
|
1306
|
-
/**
|
|
1307
|
-
* What this flow has learned from being run, as opposed to what a person wrote on it.
|
|
1308
|
-
*
|
|
1309
|
-
* Distinct from `knownBugs` above, and the difference is who is speaking. A known bug is a HUMAN
|
|
1310
|
-
* excusing a failing assertion with a traceable id. A learned guard is the SYSTEM remembering a
|
|
1311
|
-
* defect it observed: `open` while the defect is still happening, `guarded` once a run stopped
|
|
1312
|
-
* showing it. Only the second state asserts anything, and its return is a regression.
|
|
1313
|
-
*
|
|
1314
|
-
* The ordering is the safety property. A contradiction seen right now is not an assertion:
|
|
1315
|
-
* asserting "must not happen" while it happens makes the flow red over an accepted defect and
|
|
1316
|
-
* trains the reader to ignore it, and asserting "does happen" pins broken behaviour so the check
|
|
1317
|
-
* fires when somebody FIXES the bug. See `learnFromRun` in the engine for the rule.
|
|
1318
|
-
*/
|
|
625
|
+
}, z.core.$strip>], "kind">>>;
|
|
626
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
627
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
628
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
629
|
+
active: "active";
|
|
630
|
+
quarantined: "quarantined";
|
|
631
|
+
draft: "draft";
|
|
632
|
+
}>>;
|
|
1319
633
|
learned: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1320
634
|
kind: z.ZodString;
|
|
1321
635
|
step: z.ZodNumber;
|
|
1322
|
-
state: z.ZodEnum<
|
|
1323
|
-
|
|
636
|
+
state: z.ZodEnum<{
|
|
637
|
+
open: "open";
|
|
638
|
+
guarded: "guarded";
|
|
639
|
+
}>;
|
|
1324
640
|
cleanRuns: z.ZodOptional<z.ZodNumber>;
|
|
1325
|
-
},
|
|
1326
|
-
state: "open" | "guarded";
|
|
1327
|
-
kind: string;
|
|
1328
|
-
step: number;
|
|
1329
|
-
cleanRuns?: number | undefined;
|
|
1330
|
-
}, {
|
|
1331
|
-
state: "open" | "guarded";
|
|
1332
|
-
kind: string;
|
|
1333
|
-
step: number;
|
|
1334
|
-
cleanRuns?: number | undefined;
|
|
1335
|
-
}>, "many">>;
|
|
1336
|
-
/**
|
|
1337
|
-
* Bugs this flow is KNOWN to expose, so a red for a filed reason is not re-investigated.
|
|
1338
|
-
*
|
|
1339
|
-
* Without it, a suite red for a known cause is indistinguishable from one that just broke: either
|
|
1340
|
-
* somebody re-opens an investigation into a bug already filed, or the flow gets quarantined and
|
|
1341
|
-
* stops watching the rest of the journey it covers.
|
|
1342
|
-
*
|
|
1343
|
-
* `assertions` is what keeps the note honest. A known-bug note is a claim about code, and code
|
|
1344
|
-
* moves; a note recorded against assertions that have since changed explains away a NEW failure
|
|
1345
|
-
* with an OLD excuse, which is a false green in a different costume. `staleKnownBugs` reports any
|
|
1346
|
-
* note whose assertions no longer all exist, rather than trusting it.
|
|
1347
|
-
*/
|
|
641
|
+
}, z.core.$strip>>>;
|
|
1348
642
|
knownBugs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1349
|
-
/** Required: an unattributable excuse is worse than none. An issue key, a URL, anything traceable. */
|
|
1350
643
|
id: z.ZodString;
|
|
1351
644
|
summary: z.ZodString;
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
}, "strip", z.ZodTypeAny, {
|
|
1355
|
-
summary: string;
|
|
1356
|
-
id: string;
|
|
1357
|
-
assertions: string[];
|
|
1358
|
-
}, {
|
|
1359
|
-
summary: string;
|
|
1360
|
-
id: string;
|
|
1361
|
-
assertions: string[];
|
|
1362
|
-
}>, "many">>;
|
|
1363
|
-
/**
|
|
1364
|
-
* Why this flow is out of the suite, who owns getting it back, and since when.
|
|
1365
|
-
*
|
|
1366
|
-
* Required in full when quarantined, because a quarantine without a reason and an owner is a
|
|
1367
|
-
* silent skip wearing a label: it removes the failure from the verdict AND the reason to ever fix
|
|
1368
|
-
* it. `until` is the optional half — a date somebody has to look at it again.
|
|
1369
|
-
*/
|
|
645
|
+
assertions: z.ZodArray<z.ZodString>;
|
|
646
|
+
}, z.core.$strip>>>;
|
|
1370
647
|
quarantine: z.ZodOptional<z.ZodObject<{
|
|
1371
648
|
reason: z.ZodString;
|
|
1372
649
|
since: z.ZodString;
|
|
1373
650
|
owner: z.ZodString;
|
|
1374
651
|
until: z.ZodOptional<z.ZodString>;
|
|
1375
|
-
},
|
|
1376
|
-
|
|
1377
|
-
owner: string;
|
|
1378
|
-
since: string;
|
|
1379
|
-
until?: string | undefined;
|
|
1380
|
-
}, {
|
|
1381
|
-
reason: string;
|
|
1382
|
-
owner: string;
|
|
1383
|
-
since: string;
|
|
1384
|
-
until?: string | undefined;
|
|
1385
|
-
}>>;
|
|
1386
|
-
}, "strip", z.ZodTypeAny, {
|
|
1387
|
-
name: string;
|
|
1388
|
-
steps: FlowStep[];
|
|
1389
|
-
createdAt: number;
|
|
1390
|
-
version: number;
|
|
1391
|
-
intent?: string | undefined;
|
|
1392
|
-
status?: "active" | "quarantined" | "draft" | undefined;
|
|
1393
|
-
startPath?: string | undefined;
|
|
1394
|
-
template?: string | undefined;
|
|
1395
|
-
intentDerived?: boolean | undefined;
|
|
1396
|
-
learned?: {
|
|
1397
|
-
state: "open" | "guarded";
|
|
1398
|
-
kind: string;
|
|
1399
|
-
step: number;
|
|
1400
|
-
cleanRuns?: number | undefined;
|
|
1401
|
-
}[] | undefined;
|
|
1402
|
-
intentId?: string | undefined;
|
|
1403
|
-
projectId?: string | undefined;
|
|
1404
|
-
fixture?: string | undefined;
|
|
1405
|
-
requires?: Predicate[] | undefined;
|
|
1406
|
-
ensures?: Predicate[] | undefined;
|
|
1407
|
-
author?: {
|
|
1408
|
-
agent?: string | undefined;
|
|
1409
|
-
person?: string | undefined;
|
|
1410
|
-
} | undefined;
|
|
1411
|
-
signalTimeoutMs?: number | undefined;
|
|
1412
|
-
success?: Predicate | undefined;
|
|
1413
|
-
dynamic?: ({
|
|
1414
|
-
kind: "testid";
|
|
1415
|
-
value: string;
|
|
1416
|
-
source?: {
|
|
1417
|
-
file: string;
|
|
1418
|
-
line: number;
|
|
1419
|
-
column?: number | undefined;
|
|
1420
|
-
} | undefined;
|
|
1421
|
-
of?: number | undefined;
|
|
1422
|
-
} | {
|
|
1423
|
-
kind: "role";
|
|
1424
|
-
role: string;
|
|
1425
|
-
name?: string | undefined;
|
|
1426
|
-
of?: number | undefined;
|
|
1427
|
-
nth?: number | undefined;
|
|
1428
|
-
} | {
|
|
1429
|
-
name: string;
|
|
1430
|
-
kind: "signal";
|
|
1431
|
-
} | {
|
|
1432
|
-
kind: "component";
|
|
1433
|
-
name?: string | undefined;
|
|
1434
|
-
role?: string | undefined;
|
|
1435
|
-
component?: string | undefined;
|
|
1436
|
-
source?: {
|
|
1437
|
-
file: string;
|
|
1438
|
-
line: number;
|
|
1439
|
-
column?: number | undefined;
|
|
1440
|
-
} | undefined;
|
|
1441
|
-
})[] | undefined;
|
|
1442
|
-
labels?: string[] | undefined;
|
|
1443
|
-
needs?: string[] | undefined;
|
|
1444
|
-
knownBugs?: {
|
|
1445
|
-
summary: string;
|
|
1446
|
-
id: string;
|
|
1447
|
-
assertions: string[];
|
|
1448
|
-
}[] | undefined;
|
|
1449
|
-
quarantine?: {
|
|
1450
|
-
reason: string;
|
|
1451
|
-
owner: string;
|
|
1452
|
-
since: string;
|
|
1453
|
-
until?: string | undefined;
|
|
1454
|
-
} | undefined;
|
|
1455
|
-
}, {
|
|
1456
|
-
name: string;
|
|
1457
|
-
steps: FlowStep[];
|
|
1458
|
-
createdAt: number;
|
|
1459
|
-
version: number;
|
|
1460
|
-
intent?: string | undefined;
|
|
1461
|
-
status?: "active" | "quarantined" | "draft" | undefined;
|
|
1462
|
-
startPath?: string | undefined;
|
|
1463
|
-
template?: string | undefined;
|
|
1464
|
-
intentDerived?: boolean | undefined;
|
|
1465
|
-
learned?: {
|
|
1466
|
-
state: "open" | "guarded";
|
|
1467
|
-
kind: string;
|
|
1468
|
-
step: number;
|
|
1469
|
-
cleanRuns?: number | undefined;
|
|
1470
|
-
}[] | undefined;
|
|
1471
|
-
intentId?: string | undefined;
|
|
1472
|
-
projectId?: string | undefined;
|
|
1473
|
-
fixture?: string | undefined;
|
|
1474
|
-
requires?: (Predicate | {
|
|
1475
|
-
signal?: string | undefined;
|
|
1476
|
-
net?: {
|
|
1477
|
-
status?: number | undefined;
|
|
1478
|
-
method?: string | undefined;
|
|
1479
|
-
urlContains?: string | undefined;
|
|
1480
|
-
count?: number | undefined;
|
|
1481
|
-
} | undefined;
|
|
1482
|
-
state?: {
|
|
1483
|
-
path: string;
|
|
1484
|
-
hold?: boolean | undefined;
|
|
1485
|
-
store?: string | undefined;
|
|
1486
|
-
equals?: unknown;
|
|
1487
|
-
} | undefined;
|
|
1488
|
-
element?: {
|
|
1489
|
-
name?: string | undefined;
|
|
1490
|
-
testid?: string | undefined;
|
|
1491
|
-
role?: string | undefined;
|
|
1492
|
-
} | undefined;
|
|
1493
|
-
text?: {
|
|
1494
|
-
contains: string;
|
|
1495
|
-
scope?: string | undefined;
|
|
1496
|
-
visible?: boolean | undefined;
|
|
1497
|
-
absent?: boolean | undefined;
|
|
1498
|
-
} | undefined;
|
|
1499
|
-
route?: {
|
|
1500
|
-
contains?: string | undefined;
|
|
1501
|
-
pathname?: string | undefined;
|
|
1502
|
-
} | undefined;
|
|
1503
|
-
console?: {
|
|
1504
|
-
level?: string | undefined;
|
|
1505
|
-
absent?: boolean | undefined;
|
|
1506
|
-
} | undefined;
|
|
1507
|
-
signalData?: Record<string, unknown> | undefined;
|
|
1508
|
-
signalCount?: number | undefined;
|
|
1509
|
-
})[] | undefined;
|
|
1510
|
-
ensures?: (Predicate | {
|
|
1511
|
-
signal?: string | undefined;
|
|
1512
|
-
net?: {
|
|
1513
|
-
status?: number | undefined;
|
|
1514
|
-
method?: string | undefined;
|
|
1515
|
-
urlContains?: string | undefined;
|
|
1516
|
-
count?: number | undefined;
|
|
1517
|
-
} | undefined;
|
|
1518
|
-
state?: {
|
|
1519
|
-
path: string;
|
|
1520
|
-
hold?: boolean | undefined;
|
|
1521
|
-
store?: string | undefined;
|
|
1522
|
-
equals?: unknown;
|
|
1523
|
-
} | undefined;
|
|
1524
|
-
element?: {
|
|
1525
|
-
name?: string | undefined;
|
|
1526
|
-
testid?: string | undefined;
|
|
1527
|
-
role?: string | undefined;
|
|
1528
|
-
} | undefined;
|
|
1529
|
-
text?: {
|
|
1530
|
-
contains: string;
|
|
1531
|
-
scope?: string | undefined;
|
|
1532
|
-
visible?: boolean | undefined;
|
|
1533
|
-
absent?: boolean | undefined;
|
|
1534
|
-
} | undefined;
|
|
1535
|
-
route?: {
|
|
1536
|
-
contains?: string | undefined;
|
|
1537
|
-
pathname?: string | undefined;
|
|
1538
|
-
} | undefined;
|
|
1539
|
-
console?: {
|
|
1540
|
-
level?: string | undefined;
|
|
1541
|
-
absent?: boolean | undefined;
|
|
1542
|
-
} | undefined;
|
|
1543
|
-
signalData?: Record<string, unknown> | undefined;
|
|
1544
|
-
signalCount?: number | undefined;
|
|
1545
|
-
})[] | undefined;
|
|
1546
|
-
author?: {
|
|
1547
|
-
agent?: string | undefined;
|
|
1548
|
-
person?: string | undefined;
|
|
1549
|
-
} | undefined;
|
|
1550
|
-
signalTimeoutMs?: number | undefined;
|
|
1551
|
-
success?: Predicate | {
|
|
1552
|
-
signal?: string | undefined;
|
|
1553
|
-
net?: {
|
|
1554
|
-
status?: number | undefined;
|
|
1555
|
-
method?: string | undefined;
|
|
1556
|
-
urlContains?: string | undefined;
|
|
1557
|
-
count?: number | undefined;
|
|
1558
|
-
} | undefined;
|
|
1559
|
-
state?: {
|
|
1560
|
-
path: string;
|
|
1561
|
-
hold?: boolean | undefined;
|
|
1562
|
-
store?: string | undefined;
|
|
1563
|
-
equals?: unknown;
|
|
1564
|
-
} | undefined;
|
|
1565
|
-
element?: {
|
|
1566
|
-
name?: string | undefined;
|
|
1567
|
-
testid?: string | undefined;
|
|
1568
|
-
role?: string | undefined;
|
|
1569
|
-
} | undefined;
|
|
1570
|
-
text?: {
|
|
1571
|
-
contains: string;
|
|
1572
|
-
scope?: string | undefined;
|
|
1573
|
-
visible?: boolean | undefined;
|
|
1574
|
-
absent?: boolean | undefined;
|
|
1575
|
-
} | undefined;
|
|
1576
|
-
route?: {
|
|
1577
|
-
contains?: string | undefined;
|
|
1578
|
-
pathname?: string | undefined;
|
|
1579
|
-
} | undefined;
|
|
1580
|
-
console?: {
|
|
1581
|
-
level?: string | undefined;
|
|
1582
|
-
absent?: boolean | undefined;
|
|
1583
|
-
} | undefined;
|
|
1584
|
-
signalData?: Record<string, unknown> | undefined;
|
|
1585
|
-
signalCount?: number | undefined;
|
|
1586
|
-
} | undefined;
|
|
1587
|
-
dynamic?: ({
|
|
1588
|
-
kind: "testid";
|
|
1589
|
-
value: string;
|
|
1590
|
-
source?: {
|
|
1591
|
-
file: string;
|
|
1592
|
-
line: number;
|
|
1593
|
-
column?: number | undefined;
|
|
1594
|
-
} | undefined;
|
|
1595
|
-
of?: number | undefined;
|
|
1596
|
-
} | {
|
|
1597
|
-
kind: "role";
|
|
1598
|
-
role: string;
|
|
1599
|
-
name?: string | undefined;
|
|
1600
|
-
of?: number | undefined;
|
|
1601
|
-
nth?: number | undefined;
|
|
1602
|
-
} | {
|
|
1603
|
-
name: string;
|
|
1604
|
-
kind: "signal";
|
|
1605
|
-
} | {
|
|
1606
|
-
kind: "component";
|
|
1607
|
-
name?: string | undefined;
|
|
1608
|
-
role?: string | undefined;
|
|
1609
|
-
component?: string | undefined;
|
|
1610
|
-
source?: {
|
|
1611
|
-
file: string;
|
|
1612
|
-
line: number;
|
|
1613
|
-
column?: number | undefined;
|
|
1614
|
-
} | undefined;
|
|
1615
|
-
})[] | undefined;
|
|
1616
|
-
labels?: string[] | undefined;
|
|
1617
|
-
needs?: string[] | undefined;
|
|
1618
|
-
knownBugs?: {
|
|
1619
|
-
summary: string;
|
|
1620
|
-
id: string;
|
|
1621
|
-
assertions: string[];
|
|
1622
|
-
}[] | undefined;
|
|
1623
|
-
quarantine?: {
|
|
1624
|
-
reason: string;
|
|
1625
|
-
owner: string;
|
|
1626
|
-
since: string;
|
|
1627
|
-
until?: string | undefined;
|
|
1628
|
-
} | undefined;
|
|
1629
|
-
}>;
|
|
652
|
+
}, z.core.$strip>>;
|
|
653
|
+
}, z.core.$strip>;
|
|
1630
654
|
export type FlowFile = z.infer<typeof FlowFileSchema>;
|
|
1631
655
|
/**
|
|
1632
656
|
* Is this flow excluded from the suite's verdict?
|
|
@@ -1653,90 +677,20 @@ export declare function isQuarantined(flow: Pick<FlowFile, 'status' | 'quarantin
|
|
|
1653
677
|
export declare const RecordedFlowSchema: z.ZodObject<{
|
|
1654
678
|
name: z.ZodString;
|
|
1655
679
|
flow: z.ZodObject<{
|
|
1656
|
-
|
|
1657
|
-
* The format this file was WRITTEN in. Both readable versions are accepted, because a v1 file is
|
|
1658
|
-
* lifted rather than refused — see READABLE_FLOW_VERSIONS.
|
|
1659
|
-
*/
|
|
1660
|
-
version: z.ZodEffects<z.ZodNumber, number, number>;
|
|
680
|
+
version: z.ZodNumber;
|
|
1661
681
|
name: z.ZodString;
|
|
1662
|
-
/**
|
|
1663
|
-
* The business goal this flow exists to verify, one line (e.g. "ship a deploy to production").
|
|
1664
|
-
* Optional + back-compat (a flow without it still parses). Set via an `intent` annotation. The
|
|
1665
|
-
* point of "intent + outcome oracle": a flow that declares an intent should also assert an
|
|
1666
|
-
* observable business OUTCOME (a consequence success-state), or it claims to verify a goal it
|
|
1667
|
-
* cannot actually check — flow-classify flags that gap.
|
|
1668
|
-
*/
|
|
1669
682
|
intent: z.ZodOptional<z.ZodString>;
|
|
1670
|
-
/**
|
|
1671
|
-
* True when `intent` was built from the steps' expects, not declared by anybody. An auto-saved
|
|
1672
|
-
* drive with no declared intent was named by its request path and read as nothing. A built
|
|
1673
|
-
* sentence names it, and this flag keeps it out of the intent ledger: it describes the steps, so
|
|
1674
|
-
* it can never be a goal the steps then prove.
|
|
1675
|
-
*/
|
|
1676
683
|
intentDerived: z.ZodOptional<z.ZodBoolean>;
|
|
1677
|
-
/**
|
|
1678
|
-
* The intent-ledger row this flow discharges — the id in `.reticle/intent.json`.
|
|
1679
|
-
*
|
|
1680
|
-
* `intent` above is the prose a recorder captured; this is the LINK to the ledger that already
|
|
1681
|
-
* models declared → bound → proved and records which verdict discharged what. Without it there
|
|
1682
|
-
* would be two ways to say what a change is for, which is the defect this codebase keeps paying
|
|
1683
|
-
* for: a flow's goal and an intent's statement would drift apart with nothing to reconcile them.
|
|
1684
|
-
*
|
|
1685
|
-
* Set at save time from the flow's own prose, or written by hand to point a flow at an intent
|
|
1686
|
-
* declared earlier via `reticle_intent` — a flow can prove something somebody else declared.
|
|
1687
|
-
* Optional + back-compat: a flow without it replays exactly as before, and the on-disk version
|
|
1688
|
-
* stays FLOW_FILE_VERSION 1.
|
|
1689
|
-
*/
|
|
1690
684
|
intentId: z.ZodOptional<z.ZodString>;
|
|
1691
|
-
/**
|
|
1692
|
-
* The project the flow was recorded against (the connecting session's HELLO `projectId`), stamped at
|
|
1693
|
-
* save time. Scopes a flow to its app so a shared daemon's HUD lists only the current project's flows
|
|
1694
|
-
* instead of every project that ever saved to that daemon. Optional + back-compat: a flow with no
|
|
1695
|
-
* projectId is treated as global (visible everywhere), so pre-existing files parse and still show.
|
|
1696
|
-
*/
|
|
1697
685
|
projectId: z.ZodOptional<z.ZodString>;
|
|
1698
|
-
/**
|
|
1699
|
-
* The route (pathname) the journey started on, captured at record time. Replay navigates here
|
|
1700
|
-
* before step 1 so a flow whose first anchor lives on another page doesn't drift on step 1 ("a
|
|
1701
|
-
* step no longer matches") just because replay began on the wrong page. Optional + back-compat: a
|
|
1702
|
-
* flow without it (or recorded before this shipped) replays from the current page as before, and
|
|
1703
|
-
* the on-disk version stays FLOW_FILE_VERSION 1.
|
|
1704
|
-
*/
|
|
1705
686
|
startPath: z.ZodOptional<z.ZodString>;
|
|
1706
|
-
/**
|
|
1707
|
-
* The saved flow this one was generated from, with different parameters (a fixture's customer,
|
|
1708
|
-
* a seeded id). A suite that writes runtime copies of a template and deletes them after replay
|
|
1709
|
-
* proved the template, and a strict pass of a copy counts toward it in the gate (#1321).
|
|
1710
|
-
*/
|
|
1711
687
|
template: z.ZodOptional<z.ZodString>;
|
|
1712
688
|
fixture: z.ZodOptional<z.ZodString>;
|
|
1713
|
-
|
|
1714
|
-
* What must already be true for this flow to mean anything, and what it leaves true.
|
|
1715
|
-
*
|
|
1716
|
-
* These are the two halves of composition. Replaying flows back to back only works when the state
|
|
1717
|
-
* one leaves is the state the next expects, and nothing said so — so a suite either got lucky or
|
|
1718
|
-
* produced a failure that looked like a regression and was a missing precondition. `requires` lets
|
|
1719
|
-
* a replay report THAT instead: not met is `unknown` (nothing ran, nothing proved), never a
|
|
1720
|
-
* failure, which is the same honesty rule an uncovered change already follows.
|
|
1721
|
-
*
|
|
1722
|
-
* `ensures` is the other side, and is what makes A-then-B checkable before either runs.
|
|
1723
|
-
*
|
|
1724
|
-
* Both optional and both absent from every flow recorded before this shipped, where absent means
|
|
1725
|
-
* what it has always meant: replay from wherever the app already is, and let the steps speak.
|
|
1726
|
-
* Same predicate shape as a step's `expect`, deliberately — a precondition is just a consequence
|
|
1727
|
-
* somebody else's flow was responsible for.
|
|
1728
|
-
*/
|
|
1729
|
-
requires: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
689
|
+
requires: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
|
|
1730
690
|
route: z.ZodOptional<z.ZodObject<{
|
|
1731
691
|
pathname: z.ZodOptional<z.ZodString>;
|
|
1732
692
|
contains: z.ZodOptional<z.ZodString>;
|
|
1733
|
-
},
|
|
1734
|
-
contains?: string | undefined;
|
|
1735
|
-
pathname?: string | undefined;
|
|
1736
|
-
}, {
|
|
1737
|
-
contains?: string | undefined;
|
|
1738
|
-
pathname?: string | undefined;
|
|
1739
|
-
}>>;
|
|
693
|
+
}, z.core.$strip>>;
|
|
1740
694
|
signal: z.ZodOptional<z.ZodString>;
|
|
1741
695
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1742
696
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1745,143 +699,29 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
1745
699
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
1746
700
|
status: z.ZodOptional<z.ZodNumber>;
|
|
1747
701
|
count: z.ZodOptional<z.ZodNumber>;
|
|
1748
|
-
},
|
|
1749
|
-
status?: number | undefined;
|
|
1750
|
-
method?: string | undefined;
|
|
1751
|
-
urlContains?: string | undefined;
|
|
1752
|
-
count?: number | undefined;
|
|
1753
|
-
}, {
|
|
1754
|
-
status?: number | undefined;
|
|
1755
|
-
method?: string | undefined;
|
|
1756
|
-
urlContains?: string | undefined;
|
|
1757
|
-
count?: number | undefined;
|
|
1758
|
-
}>>;
|
|
702
|
+
}, z.core.$strict>>;
|
|
1759
703
|
console: z.ZodOptional<z.ZodObject<{
|
|
1760
704
|
level: z.ZodOptional<z.ZodString>;
|
|
1761
705
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
1762
|
-
},
|
|
1763
|
-
level?: string | undefined;
|
|
1764
|
-
absent?: boolean | undefined;
|
|
1765
|
-
}, {
|
|
1766
|
-
level?: string | undefined;
|
|
1767
|
-
absent?: boolean | undefined;
|
|
1768
|
-
}>>;
|
|
706
|
+
}, z.core.$strict>>;
|
|
1769
707
|
element: z.ZodOptional<z.ZodObject<{
|
|
1770
708
|
testid: z.ZodOptional<z.ZodString>;
|
|
1771
709
|
role: z.ZodOptional<z.ZodString>;
|
|
1772
710
|
name: z.ZodOptional<z.ZodString>;
|
|
1773
|
-
},
|
|
1774
|
-
name?: string | undefined;
|
|
1775
|
-
testid?: string | undefined;
|
|
1776
|
-
role?: string | undefined;
|
|
1777
|
-
}, {
|
|
1778
|
-
name?: string | undefined;
|
|
1779
|
-
testid?: string | undefined;
|
|
1780
|
-
role?: string | undefined;
|
|
1781
|
-
}>>;
|
|
711
|
+
}, z.core.$strict>>;
|
|
1782
712
|
text: z.ZodOptional<z.ZodObject<{
|
|
1783
713
|
contains: z.ZodString;
|
|
1784
714
|
scope: z.ZodOptional<z.ZodString>;
|
|
1785
715
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
1786
716
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1787
|
-
},
|
|
1788
|
-
contains: string;
|
|
1789
|
-
scope?: string | undefined;
|
|
1790
|
-
visible?: boolean | undefined;
|
|
1791
|
-
absent?: boolean | undefined;
|
|
1792
|
-
}, {
|
|
1793
|
-
contains: string;
|
|
1794
|
-
scope?: string | undefined;
|
|
1795
|
-
visible?: boolean | undefined;
|
|
1796
|
-
absent?: boolean | undefined;
|
|
1797
|
-
}>>;
|
|
717
|
+
}, z.core.$strict>>;
|
|
1798
718
|
state: z.ZodOptional<z.ZodObject<{
|
|
1799
719
|
store: z.ZodOptional<z.ZodString>;
|
|
1800
720
|
path: z.ZodString;
|
|
1801
721
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
1802
722
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
1803
|
-
},
|
|
1804
|
-
|
|
1805
|
-
hold?: boolean | undefined;
|
|
1806
|
-
store?: string | undefined;
|
|
1807
|
-
equals?: unknown;
|
|
1808
|
-
}, {
|
|
1809
|
-
path: string;
|
|
1810
|
-
hold?: boolean | undefined;
|
|
1811
|
-
store?: string | undefined;
|
|
1812
|
-
equals?: unknown;
|
|
1813
|
-
}>>;
|
|
1814
|
-
}, "strict", z.ZodTypeAny, {
|
|
1815
|
-
signal?: string | undefined;
|
|
1816
|
-
net?: {
|
|
1817
|
-
status?: number | undefined;
|
|
1818
|
-
method?: string | undefined;
|
|
1819
|
-
urlContains?: string | undefined;
|
|
1820
|
-
count?: number | undefined;
|
|
1821
|
-
} | undefined;
|
|
1822
|
-
state?: {
|
|
1823
|
-
path: string;
|
|
1824
|
-
hold?: boolean | undefined;
|
|
1825
|
-
store?: string | undefined;
|
|
1826
|
-
equals?: unknown;
|
|
1827
|
-
} | undefined;
|
|
1828
|
-
element?: {
|
|
1829
|
-
name?: string | undefined;
|
|
1830
|
-
testid?: string | undefined;
|
|
1831
|
-
role?: string | undefined;
|
|
1832
|
-
} | undefined;
|
|
1833
|
-
text?: {
|
|
1834
|
-
contains: string;
|
|
1835
|
-
scope?: string | undefined;
|
|
1836
|
-
visible?: boolean | undefined;
|
|
1837
|
-
absent?: boolean | undefined;
|
|
1838
|
-
} | undefined;
|
|
1839
|
-
route?: {
|
|
1840
|
-
contains?: string | undefined;
|
|
1841
|
-
pathname?: string | undefined;
|
|
1842
|
-
} | undefined;
|
|
1843
|
-
console?: {
|
|
1844
|
-
level?: string | undefined;
|
|
1845
|
-
absent?: boolean | undefined;
|
|
1846
|
-
} | undefined;
|
|
1847
|
-
signalData?: Record<string, unknown> | undefined;
|
|
1848
|
-
signalCount?: number | undefined;
|
|
1849
|
-
}, {
|
|
1850
|
-
signal?: string | undefined;
|
|
1851
|
-
net?: {
|
|
1852
|
-
status?: number | undefined;
|
|
1853
|
-
method?: string | undefined;
|
|
1854
|
-
urlContains?: string | undefined;
|
|
1855
|
-
count?: number | undefined;
|
|
1856
|
-
} | undefined;
|
|
1857
|
-
state?: {
|
|
1858
|
-
path: string;
|
|
1859
|
-
hold?: boolean | undefined;
|
|
1860
|
-
store?: string | undefined;
|
|
1861
|
-
equals?: unknown;
|
|
1862
|
-
} | undefined;
|
|
1863
|
-
element?: {
|
|
1864
|
-
name?: string | undefined;
|
|
1865
|
-
testid?: string | undefined;
|
|
1866
|
-
role?: string | undefined;
|
|
1867
|
-
} | undefined;
|
|
1868
|
-
text?: {
|
|
1869
|
-
contains: string;
|
|
1870
|
-
scope?: string | undefined;
|
|
1871
|
-
visible?: boolean | undefined;
|
|
1872
|
-
absent?: boolean | undefined;
|
|
1873
|
-
} | undefined;
|
|
1874
|
-
route?: {
|
|
1875
|
-
contains?: string | undefined;
|
|
1876
|
-
pathname?: string | undefined;
|
|
1877
|
-
} | undefined;
|
|
1878
|
-
console?: {
|
|
1879
|
-
level?: string | undefined;
|
|
1880
|
-
absent?: boolean | undefined;
|
|
1881
|
-
} | undefined;
|
|
1882
|
-
signalData?: Record<string, unknown> | undefined;
|
|
1883
|
-
signalCount?: number | undefined;
|
|
1884
|
-
}>, {
|
|
723
|
+
}, z.core.$strict>>;
|
|
724
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
1885
725
|
kind: typeof PredicateKind.ELEMENT;
|
|
1886
726
|
query: import("../index.js").ElementQuery;
|
|
1887
727
|
state?: import("../wire/constants/constants.js").ElementState;
|
|
@@ -1957,87 +797,46 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
1957
797
|
kind: typeof PredicateKind.NOT;
|
|
1958
798
|
predicate: Predicate;
|
|
1959
799
|
} | undefined, {
|
|
1960
|
-
signal?: string | undefined;
|
|
1961
|
-
net?: {
|
|
1962
|
-
status?: number | undefined;
|
|
1963
|
-
method?: string | undefined;
|
|
1964
|
-
urlContains?: string | undefined;
|
|
1965
|
-
count?: number | undefined;
|
|
1966
|
-
} | undefined;
|
|
1967
|
-
state?: {
|
|
1968
|
-
path: string;
|
|
1969
|
-
hold?: boolean | undefined;
|
|
1970
|
-
store?: string | undefined;
|
|
1971
|
-
equals?: unknown;
|
|
1972
|
-
} | undefined;
|
|
1973
|
-
element?: {
|
|
1974
|
-
name?: string | undefined;
|
|
1975
|
-
testid?: string | undefined;
|
|
1976
|
-
role?: string | undefined;
|
|
1977
|
-
} | undefined;
|
|
1978
|
-
text?: {
|
|
1979
|
-
contains: string;
|
|
1980
|
-
scope?: string | undefined;
|
|
1981
|
-
visible?: boolean | undefined;
|
|
1982
|
-
absent?: boolean | undefined;
|
|
1983
|
-
} | undefined;
|
|
1984
800
|
route?: {
|
|
1985
|
-
contains?: string | undefined;
|
|
1986
801
|
pathname?: string | undefined;
|
|
802
|
+
contains?: string | undefined;
|
|
1987
803
|
} | undefined;
|
|
1988
|
-
|
|
1989
|
-
level?: string | undefined;
|
|
1990
|
-
absent?: boolean | undefined;
|
|
1991
|
-
} | undefined;
|
|
804
|
+
signal?: string | undefined;
|
|
1992
805
|
signalData?: Record<string, unknown> | undefined;
|
|
1993
806
|
signalCount?: number | undefined;
|
|
1994
|
-
}>]>, "many">, Predicate[], (Predicate | {
|
|
1995
|
-
signal?: string | undefined;
|
|
1996
807
|
net?: {
|
|
1997
|
-
status?: number | undefined;
|
|
1998
808
|
method?: string | undefined;
|
|
1999
809
|
urlContains?: string | undefined;
|
|
810
|
+
status?: number | undefined;
|
|
2000
811
|
count?: number | undefined;
|
|
2001
812
|
} | undefined;
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
store?: string | undefined;
|
|
2006
|
-
equals?: unknown;
|
|
813
|
+
console?: {
|
|
814
|
+
level?: string | undefined;
|
|
815
|
+
absent?: boolean | undefined;
|
|
2007
816
|
} | undefined;
|
|
2008
817
|
element?: {
|
|
2009
|
-
name?: string | undefined;
|
|
2010
818
|
testid?: string | undefined;
|
|
2011
819
|
role?: string | undefined;
|
|
820
|
+
name?: string | undefined;
|
|
2012
821
|
} | undefined;
|
|
2013
822
|
text?: {
|
|
2014
823
|
contains: string;
|
|
2015
824
|
scope?: string | undefined;
|
|
2016
|
-
visible?: boolean | undefined;
|
|
2017
825
|
absent?: boolean | undefined;
|
|
826
|
+
visible?: boolean | undefined;
|
|
2018
827
|
} | undefined;
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
level?: string | undefined;
|
|
2025
|
-
absent?: boolean | undefined;
|
|
828
|
+
state?: {
|
|
829
|
+
path: string;
|
|
830
|
+
store?: string | undefined;
|
|
831
|
+
equals?: unknown;
|
|
832
|
+
hold?: boolean | undefined;
|
|
2026
833
|
} | undefined;
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
})[]>>;
|
|
2030
|
-
ensures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
834
|
+
}>>]>>, z.ZodTransform<Predicate[], (Predicate | undefined)[]>>>;
|
|
835
|
+
ensures: z.ZodOptional<z.ZodPipe<z.ZodArray<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
|
|
2031
836
|
route: z.ZodOptional<z.ZodObject<{
|
|
2032
837
|
pathname: z.ZodOptional<z.ZodString>;
|
|
2033
838
|
contains: z.ZodOptional<z.ZodString>;
|
|
2034
|
-
},
|
|
2035
|
-
contains?: string | undefined;
|
|
2036
|
-
pathname?: string | undefined;
|
|
2037
|
-
}, {
|
|
2038
|
-
contains?: string | undefined;
|
|
2039
|
-
pathname?: string | undefined;
|
|
2040
|
-
}>>;
|
|
839
|
+
}, z.core.$strip>>;
|
|
2041
840
|
signal: z.ZodOptional<z.ZodString>;
|
|
2042
841
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2043
842
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2046,143 +845,29 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2046
845
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
2047
846
|
status: z.ZodOptional<z.ZodNumber>;
|
|
2048
847
|
count: z.ZodOptional<z.ZodNumber>;
|
|
2049
|
-
},
|
|
2050
|
-
status?: number | undefined;
|
|
2051
|
-
method?: string | undefined;
|
|
2052
|
-
urlContains?: string | undefined;
|
|
2053
|
-
count?: number | undefined;
|
|
2054
|
-
}, {
|
|
2055
|
-
status?: number | undefined;
|
|
2056
|
-
method?: string | undefined;
|
|
2057
|
-
urlContains?: string | undefined;
|
|
2058
|
-
count?: number | undefined;
|
|
2059
|
-
}>>;
|
|
848
|
+
}, z.core.$strict>>;
|
|
2060
849
|
console: z.ZodOptional<z.ZodObject<{
|
|
2061
850
|
level: z.ZodOptional<z.ZodString>;
|
|
2062
851
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
2063
|
-
},
|
|
2064
|
-
level?: string | undefined;
|
|
2065
|
-
absent?: boolean | undefined;
|
|
2066
|
-
}, {
|
|
2067
|
-
level?: string | undefined;
|
|
2068
|
-
absent?: boolean | undefined;
|
|
2069
|
-
}>>;
|
|
852
|
+
}, z.core.$strict>>;
|
|
2070
853
|
element: z.ZodOptional<z.ZodObject<{
|
|
2071
854
|
testid: z.ZodOptional<z.ZodString>;
|
|
2072
855
|
role: z.ZodOptional<z.ZodString>;
|
|
2073
856
|
name: z.ZodOptional<z.ZodString>;
|
|
2074
|
-
},
|
|
2075
|
-
name?: string | undefined;
|
|
2076
|
-
testid?: string | undefined;
|
|
2077
|
-
role?: string | undefined;
|
|
2078
|
-
}, {
|
|
2079
|
-
name?: string | undefined;
|
|
2080
|
-
testid?: string | undefined;
|
|
2081
|
-
role?: string | undefined;
|
|
2082
|
-
}>>;
|
|
857
|
+
}, z.core.$strict>>;
|
|
2083
858
|
text: z.ZodOptional<z.ZodObject<{
|
|
2084
859
|
contains: z.ZodString;
|
|
2085
860
|
scope: z.ZodOptional<z.ZodString>;
|
|
2086
861
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
2087
862
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
2088
|
-
},
|
|
2089
|
-
contains: string;
|
|
2090
|
-
scope?: string | undefined;
|
|
2091
|
-
visible?: boolean | undefined;
|
|
2092
|
-
absent?: boolean | undefined;
|
|
2093
|
-
}, {
|
|
2094
|
-
contains: string;
|
|
2095
|
-
scope?: string | undefined;
|
|
2096
|
-
visible?: boolean | undefined;
|
|
2097
|
-
absent?: boolean | undefined;
|
|
2098
|
-
}>>;
|
|
863
|
+
}, z.core.$strict>>;
|
|
2099
864
|
state: z.ZodOptional<z.ZodObject<{
|
|
2100
865
|
store: z.ZodOptional<z.ZodString>;
|
|
2101
866
|
path: z.ZodString;
|
|
2102
867
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
2103
868
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
2104
|
-
},
|
|
2105
|
-
|
|
2106
|
-
hold?: boolean | undefined;
|
|
2107
|
-
store?: string | undefined;
|
|
2108
|
-
equals?: unknown;
|
|
2109
|
-
}, {
|
|
2110
|
-
path: string;
|
|
2111
|
-
hold?: boolean | undefined;
|
|
2112
|
-
store?: string | undefined;
|
|
2113
|
-
equals?: unknown;
|
|
2114
|
-
}>>;
|
|
2115
|
-
}, "strict", z.ZodTypeAny, {
|
|
2116
|
-
signal?: string | undefined;
|
|
2117
|
-
net?: {
|
|
2118
|
-
status?: number | undefined;
|
|
2119
|
-
method?: string | undefined;
|
|
2120
|
-
urlContains?: string | undefined;
|
|
2121
|
-
count?: number | undefined;
|
|
2122
|
-
} | undefined;
|
|
2123
|
-
state?: {
|
|
2124
|
-
path: string;
|
|
2125
|
-
hold?: boolean | undefined;
|
|
2126
|
-
store?: string | undefined;
|
|
2127
|
-
equals?: unknown;
|
|
2128
|
-
} | undefined;
|
|
2129
|
-
element?: {
|
|
2130
|
-
name?: string | undefined;
|
|
2131
|
-
testid?: string | undefined;
|
|
2132
|
-
role?: string | undefined;
|
|
2133
|
-
} | undefined;
|
|
2134
|
-
text?: {
|
|
2135
|
-
contains: string;
|
|
2136
|
-
scope?: string | undefined;
|
|
2137
|
-
visible?: boolean | undefined;
|
|
2138
|
-
absent?: boolean | undefined;
|
|
2139
|
-
} | undefined;
|
|
2140
|
-
route?: {
|
|
2141
|
-
contains?: string | undefined;
|
|
2142
|
-
pathname?: string | undefined;
|
|
2143
|
-
} | undefined;
|
|
2144
|
-
console?: {
|
|
2145
|
-
level?: string | undefined;
|
|
2146
|
-
absent?: boolean | undefined;
|
|
2147
|
-
} | undefined;
|
|
2148
|
-
signalData?: Record<string, unknown> | undefined;
|
|
2149
|
-
signalCount?: number | undefined;
|
|
2150
|
-
}, {
|
|
2151
|
-
signal?: string | undefined;
|
|
2152
|
-
net?: {
|
|
2153
|
-
status?: number | undefined;
|
|
2154
|
-
method?: string | undefined;
|
|
2155
|
-
urlContains?: string | undefined;
|
|
2156
|
-
count?: number | undefined;
|
|
2157
|
-
} | undefined;
|
|
2158
|
-
state?: {
|
|
2159
|
-
path: string;
|
|
2160
|
-
hold?: boolean | undefined;
|
|
2161
|
-
store?: string | undefined;
|
|
2162
|
-
equals?: unknown;
|
|
2163
|
-
} | undefined;
|
|
2164
|
-
element?: {
|
|
2165
|
-
name?: string | undefined;
|
|
2166
|
-
testid?: string | undefined;
|
|
2167
|
-
role?: string | undefined;
|
|
2168
|
-
} | undefined;
|
|
2169
|
-
text?: {
|
|
2170
|
-
contains: string;
|
|
2171
|
-
scope?: string | undefined;
|
|
2172
|
-
visible?: boolean | undefined;
|
|
2173
|
-
absent?: boolean | undefined;
|
|
2174
|
-
} | undefined;
|
|
2175
|
-
route?: {
|
|
2176
|
-
contains?: string | undefined;
|
|
2177
|
-
pathname?: string | undefined;
|
|
2178
|
-
} | undefined;
|
|
2179
|
-
console?: {
|
|
2180
|
-
level?: string | undefined;
|
|
2181
|
-
absent?: boolean | undefined;
|
|
2182
|
-
} | undefined;
|
|
2183
|
-
signalData?: Record<string, unknown> | undefined;
|
|
2184
|
-
signalCount?: number | undefined;
|
|
2185
|
-
}>, {
|
|
869
|
+
}, z.core.$strict>>;
|
|
870
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
2186
871
|
kind: typeof PredicateKind.ELEMENT;
|
|
2187
872
|
query: import("../index.js").ElementQuery;
|
|
2188
873
|
state?: import("../wire/constants/constants.js").ElementState;
|
|
@@ -2258,114 +943,53 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2258
943
|
kind: typeof PredicateKind.NOT;
|
|
2259
944
|
predicate: Predicate;
|
|
2260
945
|
} | undefined, {
|
|
2261
|
-
signal?: string | undefined;
|
|
2262
|
-
net?: {
|
|
2263
|
-
status?: number | undefined;
|
|
2264
|
-
method?: string | undefined;
|
|
2265
|
-
urlContains?: string | undefined;
|
|
2266
|
-
count?: number | undefined;
|
|
2267
|
-
} | undefined;
|
|
2268
|
-
state?: {
|
|
2269
|
-
path: string;
|
|
2270
|
-
hold?: boolean | undefined;
|
|
2271
|
-
store?: string | undefined;
|
|
2272
|
-
equals?: unknown;
|
|
2273
|
-
} | undefined;
|
|
2274
|
-
element?: {
|
|
2275
|
-
name?: string | undefined;
|
|
2276
|
-
testid?: string | undefined;
|
|
2277
|
-
role?: string | undefined;
|
|
2278
|
-
} | undefined;
|
|
2279
|
-
text?: {
|
|
2280
|
-
contains: string;
|
|
2281
|
-
scope?: string | undefined;
|
|
2282
|
-
visible?: boolean | undefined;
|
|
2283
|
-
absent?: boolean | undefined;
|
|
2284
|
-
} | undefined;
|
|
2285
946
|
route?: {
|
|
2286
|
-
contains?: string | undefined;
|
|
2287
947
|
pathname?: string | undefined;
|
|
948
|
+
contains?: string | undefined;
|
|
2288
949
|
} | undefined;
|
|
2289
|
-
|
|
2290
|
-
level?: string | undefined;
|
|
2291
|
-
absent?: boolean | undefined;
|
|
2292
|
-
} | undefined;
|
|
950
|
+
signal?: string | undefined;
|
|
2293
951
|
signalData?: Record<string, unknown> | undefined;
|
|
2294
952
|
signalCount?: number | undefined;
|
|
2295
|
-
}>]>, "many">, Predicate[], (Predicate | {
|
|
2296
|
-
signal?: string | undefined;
|
|
2297
953
|
net?: {
|
|
2298
|
-
status?: number | undefined;
|
|
2299
954
|
method?: string | undefined;
|
|
2300
955
|
urlContains?: string | undefined;
|
|
956
|
+
status?: number | undefined;
|
|
2301
957
|
count?: number | undefined;
|
|
2302
958
|
} | undefined;
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
store?: string | undefined;
|
|
2307
|
-
equals?: unknown;
|
|
959
|
+
console?: {
|
|
960
|
+
level?: string | undefined;
|
|
961
|
+
absent?: boolean | undefined;
|
|
2308
962
|
} | undefined;
|
|
2309
963
|
element?: {
|
|
2310
|
-
name?: string | undefined;
|
|
2311
964
|
testid?: string | undefined;
|
|
2312
965
|
role?: string | undefined;
|
|
966
|
+
name?: string | undefined;
|
|
2313
967
|
} | undefined;
|
|
2314
968
|
text?: {
|
|
2315
969
|
contains: string;
|
|
2316
970
|
scope?: string | undefined;
|
|
2317
|
-
visible?: boolean | undefined;
|
|
2318
971
|
absent?: boolean | undefined;
|
|
972
|
+
visible?: boolean | undefined;
|
|
2319
973
|
} | undefined;
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
level?: string | undefined;
|
|
2326
|
-
absent?: boolean | undefined;
|
|
974
|
+
state?: {
|
|
975
|
+
path: string;
|
|
976
|
+
store?: string | undefined;
|
|
977
|
+
equals?: unknown;
|
|
978
|
+
hold?: boolean | undefined;
|
|
2327
979
|
} | undefined;
|
|
2328
|
-
|
|
2329
|
-
signalCount?: number | undefined;
|
|
2330
|
-
})[]>>;
|
|
2331
|
-
/**
|
|
2332
|
-
* Who made this flow, stamped at save: the agent that drove it (its MCP client name) and the
|
|
2333
|
-
* person signed in to the cloud key on that machine. Either is absent when it was not known —
|
|
2334
|
-
* never guessed.
|
|
2335
|
-
*/
|
|
980
|
+
}>>]>>, z.ZodTransform<Predicate[], (Predicate | undefined)[]>>>;
|
|
2336
981
|
author: z.ZodOptional<z.ZodObject<{
|
|
2337
982
|
agent: z.ZodOptional<z.ZodString>;
|
|
2338
983
|
person: z.ZodOptional<z.ZodString>;
|
|
2339
|
-
},
|
|
2340
|
-
agent?: string | undefined;
|
|
2341
|
-
person?: string | undefined;
|
|
2342
|
-
}, {
|
|
2343
|
-
agent?: string | undefined;
|
|
2344
|
-
person?: string | undefined;
|
|
2345
|
-
}>>;
|
|
2346
|
-
/** From the injected clock (ms) — deterministic in tests, byte-stable on disk. */
|
|
984
|
+
}, z.core.$strip>>;
|
|
2347
985
|
createdAt: z.ZodNumber;
|
|
2348
|
-
steps: z.ZodArray<z.ZodType<FlowStep, z.
|
|
2349
|
-
/**
|
|
2350
|
-
* How long every step of this flow waits for its declared consequence, in ms. A step's own
|
|
2351
|
-
* `timeoutMs` wins over it; absent both, FLOW_SIGNAL_TIMEOUT_MS applies.
|
|
2352
|
-
*
|
|
2353
|
-
* Flow-level because slowness is usually a property of the APP, not of one control — a remote
|
|
2354
|
-
* database, a model-backed endpoint, a cold container. Optional + back-compat: a flow without it
|
|
2355
|
-
* replays exactly as before and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
2356
|
-
*/
|
|
986
|
+
steps: z.ZodArray<z.ZodType<FlowStep, unknown, z.core.$ZodTypeInternals<FlowStep, unknown>>>;
|
|
2357
987
|
signalTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2358
|
-
success: z.ZodOptional<z.ZodUnion<[z.
|
|
988
|
+
success: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<Predicate, unknown, z.core.$ZodTypeInternals<Predicate, unknown>>, z.ZodPipe<z.ZodObject<{
|
|
2359
989
|
route: z.ZodOptional<z.ZodObject<{
|
|
2360
990
|
pathname: z.ZodOptional<z.ZodString>;
|
|
2361
991
|
contains: z.ZodOptional<z.ZodString>;
|
|
2362
|
-
},
|
|
2363
|
-
contains?: string | undefined;
|
|
2364
|
-
pathname?: string | undefined;
|
|
2365
|
-
}, {
|
|
2366
|
-
contains?: string | undefined;
|
|
2367
|
-
pathname?: string | undefined;
|
|
2368
|
-
}>>;
|
|
992
|
+
}, z.core.$strip>>;
|
|
2369
993
|
signal: z.ZodOptional<z.ZodString>;
|
|
2370
994
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2371
995
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2374,143 +998,29 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2374
998
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
2375
999
|
status: z.ZodOptional<z.ZodNumber>;
|
|
2376
1000
|
count: z.ZodOptional<z.ZodNumber>;
|
|
2377
|
-
},
|
|
2378
|
-
status?: number | undefined;
|
|
2379
|
-
method?: string | undefined;
|
|
2380
|
-
urlContains?: string | undefined;
|
|
2381
|
-
count?: number | undefined;
|
|
2382
|
-
}, {
|
|
2383
|
-
status?: number | undefined;
|
|
2384
|
-
method?: string | undefined;
|
|
2385
|
-
urlContains?: string | undefined;
|
|
2386
|
-
count?: number | undefined;
|
|
2387
|
-
}>>;
|
|
1001
|
+
}, z.core.$strict>>;
|
|
2388
1002
|
console: z.ZodOptional<z.ZodObject<{
|
|
2389
1003
|
level: z.ZodOptional<z.ZodString>;
|
|
2390
1004
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
2391
|
-
},
|
|
2392
|
-
level?: string | undefined;
|
|
2393
|
-
absent?: boolean | undefined;
|
|
2394
|
-
}, {
|
|
2395
|
-
level?: string | undefined;
|
|
2396
|
-
absent?: boolean | undefined;
|
|
2397
|
-
}>>;
|
|
1005
|
+
}, z.core.$strict>>;
|
|
2398
1006
|
element: z.ZodOptional<z.ZodObject<{
|
|
2399
1007
|
testid: z.ZodOptional<z.ZodString>;
|
|
2400
1008
|
role: z.ZodOptional<z.ZodString>;
|
|
2401
1009
|
name: z.ZodOptional<z.ZodString>;
|
|
2402
|
-
},
|
|
2403
|
-
name?: string | undefined;
|
|
2404
|
-
testid?: string | undefined;
|
|
2405
|
-
role?: string | undefined;
|
|
2406
|
-
}, {
|
|
2407
|
-
name?: string | undefined;
|
|
2408
|
-
testid?: string | undefined;
|
|
2409
|
-
role?: string | undefined;
|
|
2410
|
-
}>>;
|
|
1010
|
+
}, z.core.$strict>>;
|
|
2411
1011
|
text: z.ZodOptional<z.ZodObject<{
|
|
2412
1012
|
contains: z.ZodString;
|
|
2413
1013
|
scope: z.ZodOptional<z.ZodString>;
|
|
2414
1014
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
2415
1015
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
2416
|
-
},
|
|
2417
|
-
contains: string;
|
|
2418
|
-
scope?: string | undefined;
|
|
2419
|
-
visible?: boolean | undefined;
|
|
2420
|
-
absent?: boolean | undefined;
|
|
2421
|
-
}, {
|
|
2422
|
-
contains: string;
|
|
2423
|
-
scope?: string | undefined;
|
|
2424
|
-
visible?: boolean | undefined;
|
|
2425
|
-
absent?: boolean | undefined;
|
|
2426
|
-
}>>;
|
|
1016
|
+
}, z.core.$strict>>;
|
|
2427
1017
|
state: z.ZodOptional<z.ZodObject<{
|
|
2428
1018
|
store: z.ZodOptional<z.ZodString>;
|
|
2429
1019
|
path: z.ZodString;
|
|
2430
1020
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
2431
1021
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
2432
|
-
},
|
|
2433
|
-
|
|
2434
|
-
hold?: boolean | undefined;
|
|
2435
|
-
store?: string | undefined;
|
|
2436
|
-
equals?: unknown;
|
|
2437
|
-
}, {
|
|
2438
|
-
path: string;
|
|
2439
|
-
hold?: boolean | undefined;
|
|
2440
|
-
store?: string | undefined;
|
|
2441
|
-
equals?: unknown;
|
|
2442
|
-
}>>;
|
|
2443
|
-
}, "strict", z.ZodTypeAny, {
|
|
2444
|
-
signal?: string | undefined;
|
|
2445
|
-
net?: {
|
|
2446
|
-
status?: number | undefined;
|
|
2447
|
-
method?: string | undefined;
|
|
2448
|
-
urlContains?: string | undefined;
|
|
2449
|
-
count?: number | undefined;
|
|
2450
|
-
} | undefined;
|
|
2451
|
-
state?: {
|
|
2452
|
-
path: string;
|
|
2453
|
-
hold?: boolean | undefined;
|
|
2454
|
-
store?: string | undefined;
|
|
2455
|
-
equals?: unknown;
|
|
2456
|
-
} | undefined;
|
|
2457
|
-
element?: {
|
|
2458
|
-
name?: string | undefined;
|
|
2459
|
-
testid?: string | undefined;
|
|
2460
|
-
role?: string | undefined;
|
|
2461
|
-
} | undefined;
|
|
2462
|
-
text?: {
|
|
2463
|
-
contains: string;
|
|
2464
|
-
scope?: string | undefined;
|
|
2465
|
-
visible?: boolean | undefined;
|
|
2466
|
-
absent?: boolean | undefined;
|
|
2467
|
-
} | undefined;
|
|
2468
|
-
route?: {
|
|
2469
|
-
contains?: string | undefined;
|
|
2470
|
-
pathname?: string | undefined;
|
|
2471
|
-
} | undefined;
|
|
2472
|
-
console?: {
|
|
2473
|
-
level?: string | undefined;
|
|
2474
|
-
absent?: boolean | undefined;
|
|
2475
|
-
} | undefined;
|
|
2476
|
-
signalData?: Record<string, unknown> | undefined;
|
|
2477
|
-
signalCount?: number | undefined;
|
|
2478
|
-
}, {
|
|
2479
|
-
signal?: string | undefined;
|
|
2480
|
-
net?: {
|
|
2481
|
-
status?: number | undefined;
|
|
2482
|
-
method?: string | undefined;
|
|
2483
|
-
urlContains?: string | undefined;
|
|
2484
|
-
count?: number | undefined;
|
|
2485
|
-
} | undefined;
|
|
2486
|
-
state?: {
|
|
2487
|
-
path: string;
|
|
2488
|
-
hold?: boolean | undefined;
|
|
2489
|
-
store?: string | undefined;
|
|
2490
|
-
equals?: unknown;
|
|
2491
|
-
} | undefined;
|
|
2492
|
-
element?: {
|
|
2493
|
-
name?: string | undefined;
|
|
2494
|
-
testid?: string | undefined;
|
|
2495
|
-
role?: string | undefined;
|
|
2496
|
-
} | undefined;
|
|
2497
|
-
text?: {
|
|
2498
|
-
contains: string;
|
|
2499
|
-
scope?: string | undefined;
|
|
2500
|
-
visible?: boolean | undefined;
|
|
2501
|
-
absent?: boolean | undefined;
|
|
2502
|
-
} | undefined;
|
|
2503
|
-
route?: {
|
|
2504
|
-
contains?: string | undefined;
|
|
2505
|
-
pathname?: string | undefined;
|
|
2506
|
-
} | undefined;
|
|
2507
|
-
console?: {
|
|
2508
|
-
level?: string | undefined;
|
|
2509
|
-
absent?: boolean | undefined;
|
|
2510
|
-
} | undefined;
|
|
2511
|
-
signalData?: Record<string, unknown> | undefined;
|
|
2512
|
-
signalCount?: number | undefined;
|
|
2513
|
-
}>, {
|
|
1022
|
+
}, z.core.$strict>>;
|
|
1023
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
2514
1024
|
kind: typeof PredicateKind.ELEMENT;
|
|
2515
1025
|
query: import("../index.js").ElementQuery;
|
|
2516
1026
|
state?: import("../wire/constants/constants.js").ElementState;
|
|
@@ -2586,46 +1096,42 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2586
1096
|
kind: typeof PredicateKind.NOT;
|
|
2587
1097
|
predicate: Predicate;
|
|
2588
1098
|
} | undefined, {
|
|
1099
|
+
route?: {
|
|
1100
|
+
pathname?: string | undefined;
|
|
1101
|
+
contains?: string | undefined;
|
|
1102
|
+
} | undefined;
|
|
2589
1103
|
signal?: string | undefined;
|
|
1104
|
+
signalData?: Record<string, unknown> | undefined;
|
|
1105
|
+
signalCount?: number | undefined;
|
|
2590
1106
|
net?: {
|
|
2591
|
-
status?: number | undefined;
|
|
2592
1107
|
method?: string | undefined;
|
|
2593
1108
|
urlContains?: string | undefined;
|
|
1109
|
+
status?: number | undefined;
|
|
2594
1110
|
count?: number | undefined;
|
|
2595
1111
|
} | undefined;
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
store?: string | undefined;
|
|
2600
|
-
equals?: unknown;
|
|
1112
|
+
console?: {
|
|
1113
|
+
level?: string | undefined;
|
|
1114
|
+
absent?: boolean | undefined;
|
|
2601
1115
|
} | undefined;
|
|
2602
1116
|
element?: {
|
|
2603
|
-
name?: string | undefined;
|
|
2604
1117
|
testid?: string | undefined;
|
|
2605
1118
|
role?: string | undefined;
|
|
1119
|
+
name?: string | undefined;
|
|
2606
1120
|
} | undefined;
|
|
2607
1121
|
text?: {
|
|
2608
1122
|
contains: string;
|
|
2609
1123
|
scope?: string | undefined;
|
|
2610
|
-
visible?: boolean | undefined;
|
|
2611
1124
|
absent?: boolean | undefined;
|
|
1125
|
+
visible?: boolean | undefined;
|
|
2612
1126
|
} | undefined;
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
level?: string | undefined;
|
|
2619
|
-
absent?: boolean | undefined;
|
|
1127
|
+
state?: {
|
|
1128
|
+
path: string;
|
|
1129
|
+
store?: string | undefined;
|
|
1130
|
+
equals?: unknown;
|
|
1131
|
+
hold?: boolean | undefined;
|
|
2620
1132
|
} | undefined;
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
}>]>>;
|
|
2624
|
-
/**
|
|
2625
|
-
* Anchors whose CONTENT must not be asserted (e.g. LLM output). Replay asserts
|
|
2626
|
-
* presence, not words. Compiled from a `mark-dynamic` annotation.
|
|
2627
|
-
*/
|
|
2628
|
-
dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1133
|
+
}>>]>>;
|
|
1134
|
+
dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2629
1135
|
kind: z.ZodLiteral<"testid">;
|
|
2630
1136
|
value: z.ZodString;
|
|
2631
1137
|
of: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2633,691 +1139,56 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2633
1139
|
file: z.ZodString;
|
|
2634
1140
|
line: z.ZodNumber;
|
|
2635
1141
|
column: z.ZodOptional<z.ZodNumber>;
|
|
2636
|
-
},
|
|
2637
|
-
|
|
2638
|
-
line: number;
|
|
2639
|
-
column?: number | undefined;
|
|
2640
|
-
}, {
|
|
2641
|
-
file: string;
|
|
2642
|
-
line: number;
|
|
2643
|
-
column?: number | undefined;
|
|
2644
|
-
}>>;
|
|
2645
|
-
}, "strip", z.ZodTypeAny, {
|
|
2646
|
-
kind: "testid";
|
|
2647
|
-
value: string;
|
|
2648
|
-
source?: {
|
|
2649
|
-
file: string;
|
|
2650
|
-
line: number;
|
|
2651
|
-
column?: number | undefined;
|
|
2652
|
-
} | undefined;
|
|
2653
|
-
of?: number | undefined;
|
|
2654
|
-
}, {
|
|
2655
|
-
kind: "testid";
|
|
2656
|
-
value: string;
|
|
2657
|
-
source?: {
|
|
2658
|
-
file: string;
|
|
2659
|
-
line: number;
|
|
2660
|
-
column?: number | undefined;
|
|
2661
|
-
} | undefined;
|
|
2662
|
-
of?: number | undefined;
|
|
2663
|
-
}>, z.ZodObject<{
|
|
1142
|
+
}, z.core.$strip>>;
|
|
1143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2664
1144
|
kind: z.ZodLiteral<"role">;
|
|
2665
1145
|
role: z.ZodString;
|
|
2666
1146
|
name: z.ZodOptional<z.ZodString>;
|
|
2667
1147
|
nth: z.ZodOptional<z.ZodNumber>;
|
|
2668
1148
|
of: z.ZodOptional<z.ZodNumber>;
|
|
2669
|
-
},
|
|
2670
|
-
kind: "role";
|
|
2671
|
-
role: string;
|
|
2672
|
-
name?: string | undefined;
|
|
2673
|
-
of?: number | undefined;
|
|
2674
|
-
nth?: number | undefined;
|
|
2675
|
-
}, {
|
|
2676
|
-
kind: "role";
|
|
2677
|
-
role: string;
|
|
2678
|
-
name?: string | undefined;
|
|
2679
|
-
of?: number | undefined;
|
|
2680
|
-
nth?: number | undefined;
|
|
2681
|
-
}>, z.ZodObject<{
|
|
1149
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2682
1150
|
kind: z.ZodLiteral<"signal">;
|
|
2683
1151
|
name: z.ZodString;
|
|
2684
|
-
},
|
|
2685
|
-
name: string;
|
|
2686
|
-
kind: "signal";
|
|
2687
|
-
}, {
|
|
2688
|
-
name: string;
|
|
2689
|
-
kind: "signal";
|
|
2690
|
-
}>, z.ZodObject<{
|
|
1152
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2691
1153
|
kind: z.ZodLiteral<"component">;
|
|
2692
1154
|
component: z.ZodOptional<z.ZodString>;
|
|
2693
1155
|
source: z.ZodOptional<z.ZodObject<{
|
|
2694
1156
|
file: z.ZodString;
|
|
2695
1157
|
line: z.ZodNumber;
|
|
2696
1158
|
column: z.ZodOptional<z.ZodNumber>;
|
|
2697
|
-
},
|
|
2698
|
-
file: string;
|
|
2699
|
-
line: number;
|
|
2700
|
-
column?: number | undefined;
|
|
2701
|
-
}, {
|
|
2702
|
-
file: string;
|
|
2703
|
-
line: number;
|
|
2704
|
-
column?: number | undefined;
|
|
2705
|
-
}>>;
|
|
1159
|
+
}, z.core.$strip>>;
|
|
2706
1160
|
role: z.ZodOptional<z.ZodString>;
|
|
2707
1161
|
name: z.ZodOptional<z.ZodString>;
|
|
2708
|
-
},
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
column?: number | undefined;
|
|
2717
|
-
} | undefined;
|
|
2718
|
-
}, {
|
|
2719
|
-
kind: "component";
|
|
2720
|
-
name?: string | undefined;
|
|
2721
|
-
role?: string | undefined;
|
|
2722
|
-
component?: string | undefined;
|
|
2723
|
-
source?: {
|
|
2724
|
-
file: string;
|
|
2725
|
-
line: number;
|
|
2726
|
-
column?: number | undefined;
|
|
2727
|
-
} | undefined;
|
|
2728
|
-
}>]>, "many">>;
|
|
2729
|
-
/**
|
|
2730
|
-
* Free-form labels a suite selects on — `smoke`, `checkout`, `slow`.
|
|
2731
|
-
*
|
|
2732
|
-
* Not an enum: the useful sets are the ones a team invents for its own product, and a closed list
|
|
2733
|
-
* would mean shipping somebody's release process in the contract. Optional and back-compat, so
|
|
2734
|
-
* every flow already on disk keeps loading.
|
|
2735
|
-
*/
|
|
2736
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2737
|
-
/**
|
|
2738
|
-
* Flows that must run, and pass, before this one.
|
|
2739
|
-
*
|
|
2740
|
-
* By name, because a name is what every other caller addresses a flow by. A prerequisite that is
|
|
2741
|
-
* not in the run is reported rather than assumed satisfied: a checkout flow whose login was
|
|
2742
|
-
* filtered out by a label would otherwise fail for a reason that has nothing to do with checkout.
|
|
2743
|
-
*/
|
|
2744
|
-
needs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2745
|
-
/** Whether a suite runs this flow. Absent means active — see FlowStatus. */
|
|
2746
|
-
status: z.ZodOptional<z.ZodEnum<["active", "quarantined", "draft"]>>;
|
|
2747
|
-
/**
|
|
2748
|
-
* What this flow has learned from being run, as opposed to what a person wrote on it.
|
|
2749
|
-
*
|
|
2750
|
-
* Distinct from `knownBugs` above, and the difference is who is speaking. A known bug is a HUMAN
|
|
2751
|
-
* excusing a failing assertion with a traceable id. A learned guard is the SYSTEM remembering a
|
|
2752
|
-
* defect it observed: `open` while the defect is still happening, `guarded` once a run stopped
|
|
2753
|
-
* showing it. Only the second state asserts anything, and its return is a regression.
|
|
2754
|
-
*
|
|
2755
|
-
* The ordering is the safety property. A contradiction seen right now is not an assertion:
|
|
2756
|
-
* asserting "must not happen" while it happens makes the flow red over an accepted defect and
|
|
2757
|
-
* trains the reader to ignore it, and asserting "does happen" pins broken behaviour so the check
|
|
2758
|
-
* fires when somebody FIXES the bug. See `learnFromRun` in the engine for the rule.
|
|
2759
|
-
*/
|
|
1162
|
+
}, z.core.$strip>], "kind">>>;
|
|
1163
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1164
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1165
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
1166
|
+
active: "active";
|
|
1167
|
+
quarantined: "quarantined";
|
|
1168
|
+
draft: "draft";
|
|
1169
|
+
}>>;
|
|
2760
1170
|
learned: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2761
1171
|
kind: z.ZodString;
|
|
2762
1172
|
step: z.ZodNumber;
|
|
2763
|
-
state: z.ZodEnum<
|
|
2764
|
-
|
|
1173
|
+
state: z.ZodEnum<{
|
|
1174
|
+
open: "open";
|
|
1175
|
+
guarded: "guarded";
|
|
1176
|
+
}>;
|
|
2765
1177
|
cleanRuns: z.ZodOptional<z.ZodNumber>;
|
|
2766
|
-
},
|
|
2767
|
-
state: "open" | "guarded";
|
|
2768
|
-
kind: string;
|
|
2769
|
-
step: number;
|
|
2770
|
-
cleanRuns?: number | undefined;
|
|
2771
|
-
}, {
|
|
2772
|
-
state: "open" | "guarded";
|
|
2773
|
-
kind: string;
|
|
2774
|
-
step: number;
|
|
2775
|
-
cleanRuns?: number | undefined;
|
|
2776
|
-
}>, "many">>;
|
|
2777
|
-
/**
|
|
2778
|
-
* Bugs this flow is KNOWN to expose, so a red for a filed reason is not re-investigated.
|
|
2779
|
-
*
|
|
2780
|
-
* Without it, a suite red for a known cause is indistinguishable from one that just broke: either
|
|
2781
|
-
* somebody re-opens an investigation into a bug already filed, or the flow gets quarantined and
|
|
2782
|
-
* stops watching the rest of the journey it covers.
|
|
2783
|
-
*
|
|
2784
|
-
* `assertions` is what keeps the note honest. A known-bug note is a claim about code, and code
|
|
2785
|
-
* moves; a note recorded against assertions that have since changed explains away a NEW failure
|
|
2786
|
-
* with an OLD excuse, which is a false green in a different costume. `staleKnownBugs` reports any
|
|
2787
|
-
* note whose assertions no longer all exist, rather than trusting it.
|
|
2788
|
-
*/
|
|
1178
|
+
}, z.core.$strip>>>;
|
|
2789
1179
|
knownBugs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2790
|
-
/** Required: an unattributable excuse is worse than none. An issue key, a URL, anything traceable. */
|
|
2791
1180
|
id: z.ZodString;
|
|
2792
1181
|
summary: z.ZodString;
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
}, "strip", z.ZodTypeAny, {
|
|
2796
|
-
summary: string;
|
|
2797
|
-
id: string;
|
|
2798
|
-
assertions: string[];
|
|
2799
|
-
}, {
|
|
2800
|
-
summary: string;
|
|
2801
|
-
id: string;
|
|
2802
|
-
assertions: string[];
|
|
2803
|
-
}>, "many">>;
|
|
2804
|
-
/**
|
|
2805
|
-
* Why this flow is out of the suite, who owns getting it back, and since when.
|
|
2806
|
-
*
|
|
2807
|
-
* Required in full when quarantined, because a quarantine without a reason and an owner is a
|
|
2808
|
-
* silent skip wearing a label: it removes the failure from the verdict AND the reason to ever fix
|
|
2809
|
-
* it. `until` is the optional half — a date somebody has to look at it again.
|
|
2810
|
-
*/
|
|
1182
|
+
assertions: z.ZodArray<z.ZodString>;
|
|
1183
|
+
}, z.core.$strip>>>;
|
|
2811
1184
|
quarantine: z.ZodOptional<z.ZodObject<{
|
|
2812
1185
|
reason: z.ZodString;
|
|
2813
1186
|
since: z.ZodString;
|
|
2814
1187
|
owner: z.ZodString;
|
|
2815
1188
|
until: z.ZodOptional<z.ZodString>;
|
|
2816
|
-
},
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
since: string;
|
|
2820
|
-
until?: string | undefined;
|
|
2821
|
-
}, {
|
|
2822
|
-
reason: string;
|
|
2823
|
-
owner: string;
|
|
2824
|
-
since: string;
|
|
2825
|
-
until?: string | undefined;
|
|
2826
|
-
}>>;
|
|
2827
|
-
}, "strip", z.ZodTypeAny, {
|
|
2828
|
-
name: string;
|
|
2829
|
-
steps: FlowStep[];
|
|
2830
|
-
createdAt: number;
|
|
2831
|
-
version: number;
|
|
2832
|
-
intent?: string | undefined;
|
|
2833
|
-
status?: "active" | "quarantined" | "draft" | undefined;
|
|
2834
|
-
startPath?: string | undefined;
|
|
2835
|
-
template?: string | undefined;
|
|
2836
|
-
intentDerived?: boolean | undefined;
|
|
2837
|
-
learned?: {
|
|
2838
|
-
state: "open" | "guarded";
|
|
2839
|
-
kind: string;
|
|
2840
|
-
step: number;
|
|
2841
|
-
cleanRuns?: number | undefined;
|
|
2842
|
-
}[] | undefined;
|
|
2843
|
-
intentId?: string | undefined;
|
|
2844
|
-
projectId?: string | undefined;
|
|
2845
|
-
fixture?: string | undefined;
|
|
2846
|
-
requires?: Predicate[] | undefined;
|
|
2847
|
-
ensures?: Predicate[] | undefined;
|
|
2848
|
-
author?: {
|
|
2849
|
-
agent?: string | undefined;
|
|
2850
|
-
person?: string | undefined;
|
|
2851
|
-
} | undefined;
|
|
2852
|
-
signalTimeoutMs?: number | undefined;
|
|
2853
|
-
success?: Predicate | undefined;
|
|
2854
|
-
dynamic?: ({
|
|
2855
|
-
kind: "testid";
|
|
2856
|
-
value: string;
|
|
2857
|
-
source?: {
|
|
2858
|
-
file: string;
|
|
2859
|
-
line: number;
|
|
2860
|
-
column?: number | undefined;
|
|
2861
|
-
} | undefined;
|
|
2862
|
-
of?: number | undefined;
|
|
2863
|
-
} | {
|
|
2864
|
-
kind: "role";
|
|
2865
|
-
role: string;
|
|
2866
|
-
name?: string | undefined;
|
|
2867
|
-
of?: number | undefined;
|
|
2868
|
-
nth?: number | undefined;
|
|
2869
|
-
} | {
|
|
2870
|
-
name: string;
|
|
2871
|
-
kind: "signal";
|
|
2872
|
-
} | {
|
|
2873
|
-
kind: "component";
|
|
2874
|
-
name?: string | undefined;
|
|
2875
|
-
role?: string | undefined;
|
|
2876
|
-
component?: string | undefined;
|
|
2877
|
-
source?: {
|
|
2878
|
-
file: string;
|
|
2879
|
-
line: number;
|
|
2880
|
-
column?: number | undefined;
|
|
2881
|
-
} | undefined;
|
|
2882
|
-
})[] | undefined;
|
|
2883
|
-
labels?: string[] | undefined;
|
|
2884
|
-
needs?: string[] | undefined;
|
|
2885
|
-
knownBugs?: {
|
|
2886
|
-
summary: string;
|
|
2887
|
-
id: string;
|
|
2888
|
-
assertions: string[];
|
|
2889
|
-
}[] | undefined;
|
|
2890
|
-
quarantine?: {
|
|
2891
|
-
reason: string;
|
|
2892
|
-
owner: string;
|
|
2893
|
-
since: string;
|
|
2894
|
-
until?: string | undefined;
|
|
2895
|
-
} | undefined;
|
|
2896
|
-
}, {
|
|
2897
|
-
name: string;
|
|
2898
|
-
steps: FlowStep[];
|
|
2899
|
-
createdAt: number;
|
|
2900
|
-
version: number;
|
|
2901
|
-
intent?: string | undefined;
|
|
2902
|
-
status?: "active" | "quarantined" | "draft" | undefined;
|
|
2903
|
-
startPath?: string | undefined;
|
|
2904
|
-
template?: string | undefined;
|
|
2905
|
-
intentDerived?: boolean | undefined;
|
|
2906
|
-
learned?: {
|
|
2907
|
-
state: "open" | "guarded";
|
|
2908
|
-
kind: string;
|
|
2909
|
-
step: number;
|
|
2910
|
-
cleanRuns?: number | undefined;
|
|
2911
|
-
}[] | undefined;
|
|
2912
|
-
intentId?: string | undefined;
|
|
2913
|
-
projectId?: string | undefined;
|
|
2914
|
-
fixture?: string | undefined;
|
|
2915
|
-
requires?: (Predicate | {
|
|
2916
|
-
signal?: string | undefined;
|
|
2917
|
-
net?: {
|
|
2918
|
-
status?: number | undefined;
|
|
2919
|
-
method?: string | undefined;
|
|
2920
|
-
urlContains?: string | undefined;
|
|
2921
|
-
count?: number | undefined;
|
|
2922
|
-
} | undefined;
|
|
2923
|
-
state?: {
|
|
2924
|
-
path: string;
|
|
2925
|
-
hold?: boolean | undefined;
|
|
2926
|
-
store?: string | undefined;
|
|
2927
|
-
equals?: unknown;
|
|
2928
|
-
} | undefined;
|
|
2929
|
-
element?: {
|
|
2930
|
-
name?: string | undefined;
|
|
2931
|
-
testid?: string | undefined;
|
|
2932
|
-
role?: string | undefined;
|
|
2933
|
-
} | undefined;
|
|
2934
|
-
text?: {
|
|
2935
|
-
contains: string;
|
|
2936
|
-
scope?: string | undefined;
|
|
2937
|
-
visible?: boolean | undefined;
|
|
2938
|
-
absent?: boolean | undefined;
|
|
2939
|
-
} | undefined;
|
|
2940
|
-
route?: {
|
|
2941
|
-
contains?: string | undefined;
|
|
2942
|
-
pathname?: string | undefined;
|
|
2943
|
-
} | undefined;
|
|
2944
|
-
console?: {
|
|
2945
|
-
level?: string | undefined;
|
|
2946
|
-
absent?: boolean | undefined;
|
|
2947
|
-
} | undefined;
|
|
2948
|
-
signalData?: Record<string, unknown> | undefined;
|
|
2949
|
-
signalCount?: number | undefined;
|
|
2950
|
-
})[] | undefined;
|
|
2951
|
-
ensures?: (Predicate | {
|
|
2952
|
-
signal?: string | undefined;
|
|
2953
|
-
net?: {
|
|
2954
|
-
status?: number | undefined;
|
|
2955
|
-
method?: string | undefined;
|
|
2956
|
-
urlContains?: string | undefined;
|
|
2957
|
-
count?: number | undefined;
|
|
2958
|
-
} | undefined;
|
|
2959
|
-
state?: {
|
|
2960
|
-
path: string;
|
|
2961
|
-
hold?: boolean | undefined;
|
|
2962
|
-
store?: string | undefined;
|
|
2963
|
-
equals?: unknown;
|
|
2964
|
-
} | undefined;
|
|
2965
|
-
element?: {
|
|
2966
|
-
name?: string | undefined;
|
|
2967
|
-
testid?: string | undefined;
|
|
2968
|
-
role?: string | undefined;
|
|
2969
|
-
} | undefined;
|
|
2970
|
-
text?: {
|
|
2971
|
-
contains: string;
|
|
2972
|
-
scope?: string | undefined;
|
|
2973
|
-
visible?: boolean | undefined;
|
|
2974
|
-
absent?: boolean | undefined;
|
|
2975
|
-
} | undefined;
|
|
2976
|
-
route?: {
|
|
2977
|
-
contains?: string | undefined;
|
|
2978
|
-
pathname?: string | undefined;
|
|
2979
|
-
} | undefined;
|
|
2980
|
-
console?: {
|
|
2981
|
-
level?: string | undefined;
|
|
2982
|
-
absent?: boolean | undefined;
|
|
2983
|
-
} | undefined;
|
|
2984
|
-
signalData?: Record<string, unknown> | undefined;
|
|
2985
|
-
signalCount?: number | undefined;
|
|
2986
|
-
})[] | undefined;
|
|
2987
|
-
author?: {
|
|
2988
|
-
agent?: string | undefined;
|
|
2989
|
-
person?: string | undefined;
|
|
2990
|
-
} | undefined;
|
|
2991
|
-
signalTimeoutMs?: number | undefined;
|
|
2992
|
-
success?: Predicate | {
|
|
2993
|
-
signal?: string | undefined;
|
|
2994
|
-
net?: {
|
|
2995
|
-
status?: number | undefined;
|
|
2996
|
-
method?: string | undefined;
|
|
2997
|
-
urlContains?: string | undefined;
|
|
2998
|
-
count?: number | undefined;
|
|
2999
|
-
} | undefined;
|
|
3000
|
-
state?: {
|
|
3001
|
-
path: string;
|
|
3002
|
-
hold?: boolean | undefined;
|
|
3003
|
-
store?: string | undefined;
|
|
3004
|
-
equals?: unknown;
|
|
3005
|
-
} | undefined;
|
|
3006
|
-
element?: {
|
|
3007
|
-
name?: string | undefined;
|
|
3008
|
-
testid?: string | undefined;
|
|
3009
|
-
role?: string | undefined;
|
|
3010
|
-
} | undefined;
|
|
3011
|
-
text?: {
|
|
3012
|
-
contains: string;
|
|
3013
|
-
scope?: string | undefined;
|
|
3014
|
-
visible?: boolean | undefined;
|
|
3015
|
-
absent?: boolean | undefined;
|
|
3016
|
-
} | undefined;
|
|
3017
|
-
route?: {
|
|
3018
|
-
contains?: string | undefined;
|
|
3019
|
-
pathname?: string | undefined;
|
|
3020
|
-
} | undefined;
|
|
3021
|
-
console?: {
|
|
3022
|
-
level?: string | undefined;
|
|
3023
|
-
absent?: boolean | undefined;
|
|
3024
|
-
} | undefined;
|
|
3025
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3026
|
-
signalCount?: number | undefined;
|
|
3027
|
-
} | undefined;
|
|
3028
|
-
dynamic?: ({
|
|
3029
|
-
kind: "testid";
|
|
3030
|
-
value: string;
|
|
3031
|
-
source?: {
|
|
3032
|
-
file: string;
|
|
3033
|
-
line: number;
|
|
3034
|
-
column?: number | undefined;
|
|
3035
|
-
} | undefined;
|
|
3036
|
-
of?: number | undefined;
|
|
3037
|
-
} | {
|
|
3038
|
-
kind: "role";
|
|
3039
|
-
role: string;
|
|
3040
|
-
name?: string | undefined;
|
|
3041
|
-
of?: number | undefined;
|
|
3042
|
-
nth?: number | undefined;
|
|
3043
|
-
} | {
|
|
3044
|
-
name: string;
|
|
3045
|
-
kind: "signal";
|
|
3046
|
-
} | {
|
|
3047
|
-
kind: "component";
|
|
3048
|
-
name?: string | undefined;
|
|
3049
|
-
role?: string | undefined;
|
|
3050
|
-
component?: string | undefined;
|
|
3051
|
-
source?: {
|
|
3052
|
-
file: string;
|
|
3053
|
-
line: number;
|
|
3054
|
-
column?: number | undefined;
|
|
3055
|
-
} | undefined;
|
|
3056
|
-
})[] | undefined;
|
|
3057
|
-
labels?: string[] | undefined;
|
|
3058
|
-
needs?: string[] | undefined;
|
|
3059
|
-
knownBugs?: {
|
|
3060
|
-
summary: string;
|
|
3061
|
-
id: string;
|
|
3062
|
-
assertions: string[];
|
|
3063
|
-
}[] | undefined;
|
|
3064
|
-
quarantine?: {
|
|
3065
|
-
reason: string;
|
|
3066
|
-
owner: string;
|
|
3067
|
-
since: string;
|
|
3068
|
-
until?: string | undefined;
|
|
3069
|
-
} | undefined;
|
|
3070
|
-
}>;
|
|
3071
|
-
}, "strip", z.ZodTypeAny, {
|
|
3072
|
-
name: string;
|
|
3073
|
-
flow: {
|
|
3074
|
-
name: string;
|
|
3075
|
-
steps: FlowStep[];
|
|
3076
|
-
createdAt: number;
|
|
3077
|
-
version: number;
|
|
3078
|
-
intent?: string | undefined;
|
|
3079
|
-
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3080
|
-
startPath?: string | undefined;
|
|
3081
|
-
template?: string | undefined;
|
|
3082
|
-
intentDerived?: boolean | undefined;
|
|
3083
|
-
learned?: {
|
|
3084
|
-
state: "open" | "guarded";
|
|
3085
|
-
kind: string;
|
|
3086
|
-
step: number;
|
|
3087
|
-
cleanRuns?: number | undefined;
|
|
3088
|
-
}[] | undefined;
|
|
3089
|
-
intentId?: string | undefined;
|
|
3090
|
-
projectId?: string | undefined;
|
|
3091
|
-
fixture?: string | undefined;
|
|
3092
|
-
requires?: Predicate[] | undefined;
|
|
3093
|
-
ensures?: Predicate[] | undefined;
|
|
3094
|
-
author?: {
|
|
3095
|
-
agent?: string | undefined;
|
|
3096
|
-
person?: string | undefined;
|
|
3097
|
-
} | undefined;
|
|
3098
|
-
signalTimeoutMs?: number | undefined;
|
|
3099
|
-
success?: Predicate | undefined;
|
|
3100
|
-
dynamic?: ({
|
|
3101
|
-
kind: "testid";
|
|
3102
|
-
value: string;
|
|
3103
|
-
source?: {
|
|
3104
|
-
file: string;
|
|
3105
|
-
line: number;
|
|
3106
|
-
column?: number | undefined;
|
|
3107
|
-
} | undefined;
|
|
3108
|
-
of?: number | undefined;
|
|
3109
|
-
} | {
|
|
3110
|
-
kind: "role";
|
|
3111
|
-
role: string;
|
|
3112
|
-
name?: string | undefined;
|
|
3113
|
-
of?: number | undefined;
|
|
3114
|
-
nth?: number | undefined;
|
|
3115
|
-
} | {
|
|
3116
|
-
name: string;
|
|
3117
|
-
kind: "signal";
|
|
3118
|
-
} | {
|
|
3119
|
-
kind: "component";
|
|
3120
|
-
name?: string | undefined;
|
|
3121
|
-
role?: string | undefined;
|
|
3122
|
-
component?: string | undefined;
|
|
3123
|
-
source?: {
|
|
3124
|
-
file: string;
|
|
3125
|
-
line: number;
|
|
3126
|
-
column?: number | undefined;
|
|
3127
|
-
} | undefined;
|
|
3128
|
-
})[] | undefined;
|
|
3129
|
-
labels?: string[] | undefined;
|
|
3130
|
-
needs?: string[] | undefined;
|
|
3131
|
-
knownBugs?: {
|
|
3132
|
-
summary: string;
|
|
3133
|
-
id: string;
|
|
3134
|
-
assertions: string[];
|
|
3135
|
-
}[] | undefined;
|
|
3136
|
-
quarantine?: {
|
|
3137
|
-
reason: string;
|
|
3138
|
-
owner: string;
|
|
3139
|
-
since: string;
|
|
3140
|
-
until?: string | undefined;
|
|
3141
|
-
} | undefined;
|
|
3142
|
-
};
|
|
3143
|
-
}, {
|
|
3144
|
-
name: string;
|
|
3145
|
-
flow: {
|
|
3146
|
-
name: string;
|
|
3147
|
-
steps: FlowStep[];
|
|
3148
|
-
createdAt: number;
|
|
3149
|
-
version: number;
|
|
3150
|
-
intent?: string | undefined;
|
|
3151
|
-
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3152
|
-
startPath?: string | undefined;
|
|
3153
|
-
template?: string | undefined;
|
|
3154
|
-
intentDerived?: boolean | undefined;
|
|
3155
|
-
learned?: {
|
|
3156
|
-
state: "open" | "guarded";
|
|
3157
|
-
kind: string;
|
|
3158
|
-
step: number;
|
|
3159
|
-
cleanRuns?: number | undefined;
|
|
3160
|
-
}[] | undefined;
|
|
3161
|
-
intentId?: string | undefined;
|
|
3162
|
-
projectId?: string | undefined;
|
|
3163
|
-
fixture?: string | undefined;
|
|
3164
|
-
requires?: (Predicate | {
|
|
3165
|
-
signal?: string | undefined;
|
|
3166
|
-
net?: {
|
|
3167
|
-
status?: number | undefined;
|
|
3168
|
-
method?: string | undefined;
|
|
3169
|
-
urlContains?: string | undefined;
|
|
3170
|
-
count?: number | undefined;
|
|
3171
|
-
} | undefined;
|
|
3172
|
-
state?: {
|
|
3173
|
-
path: string;
|
|
3174
|
-
hold?: boolean | undefined;
|
|
3175
|
-
store?: string | undefined;
|
|
3176
|
-
equals?: unknown;
|
|
3177
|
-
} | undefined;
|
|
3178
|
-
element?: {
|
|
3179
|
-
name?: string | undefined;
|
|
3180
|
-
testid?: string | undefined;
|
|
3181
|
-
role?: string | undefined;
|
|
3182
|
-
} | undefined;
|
|
3183
|
-
text?: {
|
|
3184
|
-
contains: string;
|
|
3185
|
-
scope?: string | undefined;
|
|
3186
|
-
visible?: boolean | undefined;
|
|
3187
|
-
absent?: boolean | undefined;
|
|
3188
|
-
} | undefined;
|
|
3189
|
-
route?: {
|
|
3190
|
-
contains?: string | undefined;
|
|
3191
|
-
pathname?: string | undefined;
|
|
3192
|
-
} | undefined;
|
|
3193
|
-
console?: {
|
|
3194
|
-
level?: string | undefined;
|
|
3195
|
-
absent?: boolean | undefined;
|
|
3196
|
-
} | undefined;
|
|
3197
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3198
|
-
signalCount?: number | undefined;
|
|
3199
|
-
})[] | undefined;
|
|
3200
|
-
ensures?: (Predicate | {
|
|
3201
|
-
signal?: string | undefined;
|
|
3202
|
-
net?: {
|
|
3203
|
-
status?: number | undefined;
|
|
3204
|
-
method?: string | undefined;
|
|
3205
|
-
urlContains?: string | undefined;
|
|
3206
|
-
count?: number | undefined;
|
|
3207
|
-
} | undefined;
|
|
3208
|
-
state?: {
|
|
3209
|
-
path: string;
|
|
3210
|
-
hold?: boolean | undefined;
|
|
3211
|
-
store?: string | undefined;
|
|
3212
|
-
equals?: unknown;
|
|
3213
|
-
} | undefined;
|
|
3214
|
-
element?: {
|
|
3215
|
-
name?: string | undefined;
|
|
3216
|
-
testid?: string | undefined;
|
|
3217
|
-
role?: string | undefined;
|
|
3218
|
-
} | undefined;
|
|
3219
|
-
text?: {
|
|
3220
|
-
contains: string;
|
|
3221
|
-
scope?: string | undefined;
|
|
3222
|
-
visible?: boolean | undefined;
|
|
3223
|
-
absent?: boolean | undefined;
|
|
3224
|
-
} | undefined;
|
|
3225
|
-
route?: {
|
|
3226
|
-
contains?: string | undefined;
|
|
3227
|
-
pathname?: string | undefined;
|
|
3228
|
-
} | undefined;
|
|
3229
|
-
console?: {
|
|
3230
|
-
level?: string | undefined;
|
|
3231
|
-
absent?: boolean | undefined;
|
|
3232
|
-
} | undefined;
|
|
3233
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3234
|
-
signalCount?: number | undefined;
|
|
3235
|
-
})[] | undefined;
|
|
3236
|
-
author?: {
|
|
3237
|
-
agent?: string | undefined;
|
|
3238
|
-
person?: string | undefined;
|
|
3239
|
-
} | undefined;
|
|
3240
|
-
signalTimeoutMs?: number | undefined;
|
|
3241
|
-
success?: Predicate | {
|
|
3242
|
-
signal?: string | undefined;
|
|
3243
|
-
net?: {
|
|
3244
|
-
status?: number | undefined;
|
|
3245
|
-
method?: string | undefined;
|
|
3246
|
-
urlContains?: string | undefined;
|
|
3247
|
-
count?: number | undefined;
|
|
3248
|
-
} | undefined;
|
|
3249
|
-
state?: {
|
|
3250
|
-
path: string;
|
|
3251
|
-
hold?: boolean | undefined;
|
|
3252
|
-
store?: string | undefined;
|
|
3253
|
-
equals?: unknown;
|
|
3254
|
-
} | undefined;
|
|
3255
|
-
element?: {
|
|
3256
|
-
name?: string | undefined;
|
|
3257
|
-
testid?: string | undefined;
|
|
3258
|
-
role?: string | undefined;
|
|
3259
|
-
} | undefined;
|
|
3260
|
-
text?: {
|
|
3261
|
-
contains: string;
|
|
3262
|
-
scope?: string | undefined;
|
|
3263
|
-
visible?: boolean | undefined;
|
|
3264
|
-
absent?: boolean | undefined;
|
|
3265
|
-
} | undefined;
|
|
3266
|
-
route?: {
|
|
3267
|
-
contains?: string | undefined;
|
|
3268
|
-
pathname?: string | undefined;
|
|
3269
|
-
} | undefined;
|
|
3270
|
-
console?: {
|
|
3271
|
-
level?: string | undefined;
|
|
3272
|
-
absent?: boolean | undefined;
|
|
3273
|
-
} | undefined;
|
|
3274
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3275
|
-
signalCount?: number | undefined;
|
|
3276
|
-
} | undefined;
|
|
3277
|
-
dynamic?: ({
|
|
3278
|
-
kind: "testid";
|
|
3279
|
-
value: string;
|
|
3280
|
-
source?: {
|
|
3281
|
-
file: string;
|
|
3282
|
-
line: number;
|
|
3283
|
-
column?: number | undefined;
|
|
3284
|
-
} | undefined;
|
|
3285
|
-
of?: number | undefined;
|
|
3286
|
-
} | {
|
|
3287
|
-
kind: "role";
|
|
3288
|
-
role: string;
|
|
3289
|
-
name?: string | undefined;
|
|
3290
|
-
of?: number | undefined;
|
|
3291
|
-
nth?: number | undefined;
|
|
3292
|
-
} | {
|
|
3293
|
-
name: string;
|
|
3294
|
-
kind: "signal";
|
|
3295
|
-
} | {
|
|
3296
|
-
kind: "component";
|
|
3297
|
-
name?: string | undefined;
|
|
3298
|
-
role?: string | undefined;
|
|
3299
|
-
component?: string | undefined;
|
|
3300
|
-
source?: {
|
|
3301
|
-
file: string;
|
|
3302
|
-
line: number;
|
|
3303
|
-
column?: number | undefined;
|
|
3304
|
-
} | undefined;
|
|
3305
|
-
})[] | undefined;
|
|
3306
|
-
labels?: string[] | undefined;
|
|
3307
|
-
needs?: string[] | undefined;
|
|
3308
|
-
knownBugs?: {
|
|
3309
|
-
summary: string;
|
|
3310
|
-
id: string;
|
|
3311
|
-
assertions: string[];
|
|
3312
|
-
}[] | undefined;
|
|
3313
|
-
quarantine?: {
|
|
3314
|
-
reason: string;
|
|
3315
|
-
owner: string;
|
|
3316
|
-
since: string;
|
|
3317
|
-
until?: string | undefined;
|
|
3318
|
-
} | undefined;
|
|
3319
|
-
};
|
|
3320
|
-
}>;
|
|
1189
|
+
}, z.core.$strip>>;
|
|
1190
|
+
}, z.core.$strip>;
|
|
1191
|
+
}, z.core.$strip>;
|
|
3321
1192
|
export type RecordedFlow = z.infer<typeof RecordedFlowSchema>;
|
|
3322
1193
|
/**
|
|
3323
1194
|
* One replayable-flow chip on the in-page HUD.
|