@reticlehq/core 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/flow-composition.d.ts +3 -2
- package/dist/artifacts/flow-constants.d.ts +49 -2
- package/dist/artifacts/flow-constants.js +49 -2
- package/dist/artifacts/flow-expect-flat.d.ts +260 -0
- package/dist/artifacts/flow-expect-flat.js +284 -0
- package/dist/artifacts/flow-mutation-target.d.ts +0 -1
- package/dist/artifacts/flow-mutation-target.js +26 -2
- package/dist/artifacts/flow-step-tool.d.ts +2 -0
- package/dist/artifacts/flow-types.d.ts +1074 -1228
- package/dist/artifacts/flow-types.js +96 -140
- package/dist/artifacts/impact.d.ts +48 -20
- package/dist/artifacts/impact.js +11 -0
- package/dist/artifacts/journal.d.ts +33 -6
- package/dist/artifacts/journal.js +13 -0
- package/dist/hooks/hook-events.d.ts +18 -18
- package/dist/hud-entry.d.ts +9 -0
- package/dist/hud-entry.js +9 -0
- package/dist/identity/source-constants.d.ts +11 -0
- package/dist/identity/source-constants.js +11 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +24 -1
- package/dist/onboarding.d.ts +2 -2
- package/dist/realm/registry.d.ts +0 -8
- package/dist/realm/registry.js +1 -11
- package/dist/schema/event-message.json +3 -1
- package/dist/schema/event-payloads.json +69 -0
- package/dist/schema/event-type.json +3 -1
- package/dist/schema/reticle-event.json +3 -1
- package/dist/schema/reticle-message.json +3 -1
- package/dist/source-constants.cjs +1 -0
- package/dist/source-constants.d.cts +1 -0
- package/dist/telemetry-feedback.d.ts +6 -6
- package/dist/telemetry-refusal.d.ts +2 -2
- package/dist/telemetry-session.d.ts +25 -2
- package/dist/telemetry-session.js +13 -0
- package/dist/telemetry.d.ts +121 -94
- package/dist/verdict/consequence.d.ts +10 -0
- package/dist/verdict/consequence.js +13 -0
- package/dist/verdict/intent.d.ts +36 -12
- package/dist/verdict/intent.js +66 -10
- package/dist/verdict/predicate-tree.d.ts +47 -0
- package/dist/verdict/predicate-tree.js +146 -0
- package/dist/verdict/predicate.d.ts +129 -0
- package/dist/verdict/predicate.js +394 -0
- package/dist/verdict/property-assertion.d.ts +191 -0
- package/dist/verdict/property-assertion.js +42 -0
- package/dist/verdict/security.js +16 -4
- package/dist/verdict/verdict-attribution.d.ts +52 -0
- package/dist/verdict/verdict-attribution.js +87 -0
- package/dist/verdict/verification-run.d.ts +98 -84
- package/dist/verdict/verification-run.js +8 -1
- package/dist/verdict/verified-constants.d.ts +9 -0
- package/dist/verdict/verified-constants.js +9 -0
- package/dist/wire/constants/constants.d.ts +20 -98
- package/dist/wire/constants/constants.js +22 -97
- package/dist/wire/constants/discovery.d.ts +25 -0
- package/dist/wire/constants/discovery.js +25 -0
- package/dist/wire/constants/event-types.d.ts +122 -0
- package/dist/wire/constants/event-types.js +121 -0
- package/dist/wire/constants/hud-controls.d.ts +19 -0
- package/dist/wire/constants/hud-controls.js +95 -0
- package/dist/wire/constants/hud-use.d.ts +27 -0
- package/dist/wire/constants/hud-use.js +24 -0
- package/dist/wire/constants/session-constants.d.ts +10 -0
- package/dist/wire/constants/session-constants.js +10 -0
- package/dist/wire/event-payloads.d.ts +66 -10
- package/dist/wire/event-payloads.js +18 -1
- package/dist/wire/messages.d.ts +89 -48
- package/dist/wire/messages.js +17 -0
- package/dist/wire/net.d.ts +18 -0
- package/dist/wire/net.js +24 -0
- package/dist/wire/state-select.d.ts +2 -1
- package/dist/wire/state-select.js +56 -3
- package/dist/wire/toon.js +28 -7
- package/dist/wire/types.d.ts +91 -66
- package/dist/wire/types.js +23 -1
- package/package.json +5 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { FlowStepTool } from './flow-step-tool.js';
|
|
3
2
|
import { StepEffect } from './step-effect.js';
|
|
4
|
-
export { CROSS_STEP_ADDRESS, FlowStepTool } from './flow-step-tool.js';
|
|
5
3
|
import { ActionType } from '../wire/constants/constants.js';
|
|
6
4
|
import type { Contradiction } from '../verdict/findings.js';
|
|
5
|
+
import { PredicateKind } from '../verdict/consequence.js';
|
|
6
|
+
import { type Predicate } from '../verdict/predicate.js';
|
|
7
|
+
export { FlowExpectSchema, type FlowExpect } from './flow-expect-flat.js';
|
|
7
8
|
import { type DriftReason, type HealStatus, type ReplayStatus, type SuiteIsolation } from './flow-constants.js';
|
|
8
9
|
/**
|
|
9
10
|
* The MCP tool names that can appear as a recorded flow step's `tool`. These are the ONLY tool names
|
|
@@ -13,7 +14,6 @@ import { type DriftReason, type HealStatus, type ReplayStatus, type SuiteIsolati
|
|
|
13
14
|
* there is one source of truth and a rename cannot silently desync the recorder from the replayer (a
|
|
14
15
|
* tool rename once killed four e2e specs — this closes the browser/server half of that drift).
|
|
15
16
|
*/
|
|
16
|
-
export type FlowStepTool = (typeof FlowStepTool)[keyof typeof FlowStepTool];
|
|
17
17
|
/**
|
|
18
18
|
* A semantic anchor: how a step re-finds its element/event at replay
|
|
19
19
|
* time. Never a volatile eXX ref. testid/role+name bind a DOM element; signal binds an event.
|
|
@@ -35,16 +35,16 @@ export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
35
35
|
column?: number | undefined;
|
|
36
36
|
}>>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
kind: "testid";
|
|
39
38
|
value: string;
|
|
39
|
+
kind: "testid";
|
|
40
40
|
source?: {
|
|
41
41
|
file: string;
|
|
42
42
|
line: number;
|
|
43
43
|
column?: number | undefined;
|
|
44
44
|
} | undefined;
|
|
45
45
|
}, {
|
|
46
|
-
kind: "testid";
|
|
47
46
|
value: string;
|
|
47
|
+
kind: "testid";
|
|
48
48
|
source?: {
|
|
49
49
|
file: string;
|
|
50
50
|
line: number;
|
|
@@ -66,11 +66,11 @@ export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
66
66
|
kind: z.ZodLiteral<"signal">;
|
|
67
67
|
name: z.ZodString;
|
|
68
68
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
kind: "signal";
|
|
70
69
|
name: string;
|
|
71
|
-
}, {
|
|
72
70
|
kind: "signal";
|
|
71
|
+
}, {
|
|
73
72
|
name: string;
|
|
73
|
+
kind: "signal";
|
|
74
74
|
}>, z.ZodObject<{
|
|
75
75
|
kind: z.ZodLiteral<"component">;
|
|
76
76
|
component: z.ZodOptional<z.ZodString>;
|
|
@@ -93,254 +93,25 @@ export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
93
93
|
kind: "component";
|
|
94
94
|
role?: string | undefined;
|
|
95
95
|
component?: string | undefined;
|
|
96
|
+
name?: string | undefined;
|
|
96
97
|
source?: {
|
|
97
98
|
file: string;
|
|
98
99
|
line: number;
|
|
99
100
|
column?: number | undefined;
|
|
100
101
|
} | undefined;
|
|
101
|
-
name?: string | undefined;
|
|
102
102
|
}, {
|
|
103
103
|
kind: "component";
|
|
104
104
|
role?: string | undefined;
|
|
105
105
|
component?: string | undefined;
|
|
106
|
+
name?: string | undefined;
|
|
106
107
|
source?: {
|
|
107
108
|
file: string;
|
|
108
109
|
line: number;
|
|
109
110
|
column?: number | undefined;
|
|
110
111
|
} | undefined;
|
|
111
|
-
name?: string | undefined;
|
|
112
112
|
}>]>;
|
|
113
113
|
export type FlowAnchor = z.infer<typeof FlowAnchorSchema>;
|
|
114
|
-
|
|
115
|
-
* A post-condition a step asserts (compiled from a structured annotation; optional).
|
|
116
|
-
*
|
|
117
|
-
* Strict, at every nesting level: an unrecognized key (a typo, or a predicate kind this schema
|
|
118
|
-
* doesn't model, e.g. `allOf`, or a typo'd `net`/`console`/`element`/`state` sub-field) must fail
|
|
119
|
-
* to parse instead of being silently dropped. A loose z.object() here would quietly discard the
|
|
120
|
-
* extra key and leave the step with a weaker (or empty) assertion than its author wrote — the
|
|
121
|
-
* flow then replays green against nothing, having proved no real regression.
|
|
122
|
-
*/
|
|
123
|
-
export declare const FlowExpectSchema: z.ZodObject<{
|
|
124
|
-
/**
|
|
125
|
-
* The route the step must have reached — the consequence of a NAVIGATION.
|
|
126
|
-
*
|
|
127
|
-
* Absent until now, and its absence was not a corner case: navigation is one of the commonest
|
|
128
|
-
* journeys there is, and every route-asserted drive saved a flow that could never go red. Found
|
|
129
|
-
* by driving a real app, where `act_and_wait { until: { kind: "route" } }` returned
|
|
130
|
-
* `verified: "yes"` and the flow saved from that same drive graded `assertion-free`.
|
|
131
|
-
*
|
|
132
|
-
* Additive and optional, so a flow file written before it still parses and FLOW_FILE_VERSION
|
|
133
|
-
* stays 1 — the same treatment `signalData` and `signalCount` had.
|
|
134
|
-
*/
|
|
135
|
-
route: z.ZodOptional<z.ZodObject<{
|
|
136
|
-
pathname: z.ZodOptional<z.ZodString>;
|
|
137
|
-
contains: z.ZodOptional<z.ZodString>;
|
|
138
|
-
}, "strip", z.ZodTypeAny, {
|
|
139
|
-
pathname?: string | undefined;
|
|
140
|
-
contains?: string | undefined;
|
|
141
|
-
}, {
|
|
142
|
-
pathname?: string | undefined;
|
|
143
|
-
contains?: string | undefined;
|
|
144
|
-
}>>;
|
|
145
|
-
signal: z.ZodOptional<z.ZodString>;
|
|
146
|
-
/**
|
|
147
|
-
* Optional payload shape an `assert-signal` annotation requires the signal
|
|
148
|
-
* to match (the predicate DSL's signal.dataMatches). Additive/optional — a flow file with a
|
|
149
|
-
* bare `signal` still parses, and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
150
|
-
*/
|
|
151
|
-
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
152
|
-
/**
|
|
153
|
-
* Exact number of times the signal must have fired — the signal-side twin of `net.count`, and the
|
|
154
|
-
* only way a saved flow can keep a cardinality the agent actually asserted. Without it a
|
|
155
|
-
* `count: 1` drive would be recorded as bare presence, which is a strictly WEAKER claim than the
|
|
156
|
-
* one made: the replayed flow then goes green on the double-fire it was recorded to catch.
|
|
157
|
-
* Additive/optional — a flow file with a bare `signal` still parses, and FLOW_FILE_VERSION stays 1.
|
|
158
|
-
*/
|
|
159
|
-
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
160
|
-
net: z.ZodOptional<z.ZodObject<{
|
|
161
|
-
method: z.ZodOptional<z.ZodString>;
|
|
162
|
-
urlContains: z.ZodOptional<z.ZodString>;
|
|
163
|
-
status: z.ZodOptional<z.ZodNumber>;
|
|
164
|
-
/**
|
|
165
|
-
* Exact number of matching requests since the action — turns presence into a cardinality
|
|
166
|
-
* assertion. Catches the double-submit / useEffect-double-fire / retry-storm regression class:
|
|
167
|
-
* the request fired (presence passes) but fired the WRONG number of times. Omit = presence (≥1).
|
|
168
|
-
*/
|
|
169
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
170
|
-
}, "strict", z.ZodTypeAny, {
|
|
171
|
-
status?: number | undefined;
|
|
172
|
-
method?: string | undefined;
|
|
173
|
-
urlContains?: string | undefined;
|
|
174
|
-
count?: number | undefined;
|
|
175
|
-
}, {
|
|
176
|
-
status?: number | undefined;
|
|
177
|
-
method?: string | undefined;
|
|
178
|
-
urlContains?: string | undefined;
|
|
179
|
-
count?: number | undefined;
|
|
180
|
-
}>>;
|
|
181
|
-
/**
|
|
182
|
-
* Console golden end-condition: assert the action logged (or, with absent:true, did NOT log) a
|
|
183
|
-
* console message at `level` (default 'error'). `absent:true` is the common case — "the action
|
|
184
|
-
* completed with a clean console" — catching the regression where an action throws a caught error
|
|
185
|
-
* / logs an uncaught rejection while the UI still renders fine (a presence check passes it).
|
|
186
|
-
*/
|
|
187
|
-
console: z.ZodOptional<z.ZodObject<{
|
|
188
|
-
level: z.ZodOptional<z.ZodString>;
|
|
189
|
-
absent: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
-
}, "strict", z.ZodTypeAny, {
|
|
191
|
-
level?: string | undefined;
|
|
192
|
-
absent?: boolean | undefined;
|
|
193
|
-
}, {
|
|
194
|
-
level?: string | undefined;
|
|
195
|
-
absent?: boolean | undefined;
|
|
196
|
-
}>>;
|
|
197
|
-
element: z.ZodOptional<z.ZodObject<{
|
|
198
|
-
testid: z.ZodOptional<z.ZodString>;
|
|
199
|
-
role: z.ZodOptional<z.ZodString>;
|
|
200
|
-
name: z.ZodOptional<z.ZodString>;
|
|
201
|
-
}, "strict", z.ZodTypeAny, {
|
|
202
|
-
role?: string | undefined;
|
|
203
|
-
testid?: string | undefined;
|
|
204
|
-
name?: string | undefined;
|
|
205
|
-
}, {
|
|
206
|
-
role?: string | undefined;
|
|
207
|
-
testid?: string | undefined;
|
|
208
|
-
name?: string | undefined;
|
|
209
|
-
}>>;
|
|
210
|
-
/**
|
|
211
|
-
* Rendered text as an end-condition, using the shapes the assert surface already accepts.
|
|
212
|
-
*
|
|
213
|
-
* The gap this closes: an app with no testids, no `reticle.signal`, no registrable store and no
|
|
214
|
-
* network call on the interaction under test -- a discount price computed and rendered, a
|
|
215
|
-
* formatted total, a derived label -- could not produce an asserted flow AT ALL. Everything the
|
|
216
|
-
* vocabulary offered needed a channel that app does not have, so the only honest outcome was
|
|
217
|
-
* `assertion-free`, which is a permanent green (#811).
|
|
218
|
-
*
|
|
219
|
-
* Derived-DOM rendering is a large share of what actually breaks in a UI, and it was the share
|
|
220
|
-
* that could not be pinned.
|
|
221
|
-
*
|
|
222
|
-
* Classified PRESENCE, not consequence, and that is not a technicality: text is read from the
|
|
223
|
-
* DOM, so a locator healed to the wrong element can still satisfy it. It earns `presence-only`,
|
|
224
|
-
* which is a real grade above `assertion-free` and honestly below `signal`/`net`/`state`.
|
|
225
|
-
*/
|
|
226
|
-
text: z.ZodOptional<z.ZodObject<{
|
|
227
|
-
contains: z.ZodString;
|
|
228
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
229
|
-
scope: z.ZodOptional<z.ZodString>;
|
|
230
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
231
|
-
absent: z.ZodOptional<z.ZodBoolean>;
|
|
232
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
233
|
-
visible: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
-
}, "strict", z.ZodTypeAny, {
|
|
235
|
-
contains: string;
|
|
236
|
-
visible?: boolean | undefined;
|
|
237
|
-
absent?: boolean | undefined;
|
|
238
|
-
scope?: string | undefined;
|
|
239
|
-
}, {
|
|
240
|
-
contains: string;
|
|
241
|
-
visible?: boolean | undefined;
|
|
242
|
-
absent?: boolean | undefined;
|
|
243
|
-
scope?: string | undefined;
|
|
244
|
-
}>>;
|
|
245
|
-
/**
|
|
246
|
-
* Assert a registered store's value — the source of truth no DOM/network read can reach. Compiles
|
|
247
|
-
* to the predicate engine's `state` predicate. Additive/optional — a flow without it still parses
|
|
248
|
-
* and the on-disk version stays FLOW_FILE_VERSION 1. `equals` accepts a literal, omitted = presence,
|
|
249
|
-
* or a `{ $gte | $contains | $length }` operator pattern.
|
|
250
|
-
*/
|
|
251
|
-
state: z.ZodOptional<z.ZodObject<{
|
|
252
|
-
store: z.ZodOptional<z.ZodString>;
|
|
253
|
-
path: z.ZodString;
|
|
254
|
-
equals: z.ZodOptional<z.ZodUnknown>;
|
|
255
|
-
/**
|
|
256
|
-
* Treat this as an INVARIANT that must still hold AFTER the action settles, rather than a
|
|
257
|
-
* condition to wait for. Set it for a blast-radius check ("this unrelated path must NOT have
|
|
258
|
-
* moved") — without it a wait-until-true read passes before an over-reaching side-effect lands.
|
|
259
|
-
*/
|
|
260
|
-
hold: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
-
}, "strict", z.ZodTypeAny, {
|
|
262
|
-
path: string;
|
|
263
|
-
store?: string | undefined;
|
|
264
|
-
equals?: unknown;
|
|
265
|
-
hold?: boolean | undefined;
|
|
266
|
-
}, {
|
|
267
|
-
path: string;
|
|
268
|
-
store?: string | undefined;
|
|
269
|
-
equals?: unknown;
|
|
270
|
-
hold?: boolean | undefined;
|
|
271
|
-
}>>;
|
|
272
|
-
}, "strict", z.ZodTypeAny, {
|
|
273
|
-
signal?: string | undefined;
|
|
274
|
-
text?: {
|
|
275
|
-
contains: string;
|
|
276
|
-
visible?: boolean | undefined;
|
|
277
|
-
absent?: boolean | undefined;
|
|
278
|
-
scope?: string | undefined;
|
|
279
|
-
} | undefined;
|
|
280
|
-
net?: {
|
|
281
|
-
status?: number | undefined;
|
|
282
|
-
method?: string | undefined;
|
|
283
|
-
urlContains?: string | undefined;
|
|
284
|
-
count?: number | undefined;
|
|
285
|
-
} | undefined;
|
|
286
|
-
state?: {
|
|
287
|
-
path: string;
|
|
288
|
-
store?: string | undefined;
|
|
289
|
-
equals?: unknown;
|
|
290
|
-
hold?: boolean | undefined;
|
|
291
|
-
} | undefined;
|
|
292
|
-
element?: {
|
|
293
|
-
role?: string | undefined;
|
|
294
|
-
testid?: string | undefined;
|
|
295
|
-
name?: string | undefined;
|
|
296
|
-
} | undefined;
|
|
297
|
-
route?: {
|
|
298
|
-
pathname?: string | undefined;
|
|
299
|
-
contains?: string | undefined;
|
|
300
|
-
} | undefined;
|
|
301
|
-
console?: {
|
|
302
|
-
level?: string | undefined;
|
|
303
|
-
absent?: boolean | undefined;
|
|
304
|
-
} | undefined;
|
|
305
|
-
signalData?: Record<string, unknown> | undefined;
|
|
306
|
-
signalCount?: number | undefined;
|
|
307
|
-
}, {
|
|
308
|
-
signal?: string | undefined;
|
|
309
|
-
text?: {
|
|
310
|
-
contains: string;
|
|
311
|
-
visible?: boolean | undefined;
|
|
312
|
-
absent?: boolean | undefined;
|
|
313
|
-
scope?: string | undefined;
|
|
314
|
-
} | undefined;
|
|
315
|
-
net?: {
|
|
316
|
-
status?: number | undefined;
|
|
317
|
-
method?: string | undefined;
|
|
318
|
-
urlContains?: string | undefined;
|
|
319
|
-
count?: number | undefined;
|
|
320
|
-
} | undefined;
|
|
321
|
-
state?: {
|
|
322
|
-
path: string;
|
|
323
|
-
store?: string | undefined;
|
|
324
|
-
equals?: unknown;
|
|
325
|
-
hold?: boolean | undefined;
|
|
326
|
-
} | undefined;
|
|
327
|
-
element?: {
|
|
328
|
-
role?: string | undefined;
|
|
329
|
-
testid?: string | undefined;
|
|
330
|
-
name?: string | undefined;
|
|
331
|
-
} | undefined;
|
|
332
|
-
route?: {
|
|
333
|
-
pathname?: string | undefined;
|
|
334
|
-
contains?: string | undefined;
|
|
335
|
-
} | undefined;
|
|
336
|
-
console?: {
|
|
337
|
-
level?: string | undefined;
|
|
338
|
-
absent?: boolean | undefined;
|
|
339
|
-
} | undefined;
|
|
340
|
-
signalData?: Record<string, unknown> | undefined;
|
|
341
|
-
signalCount?: number | undefined;
|
|
342
|
-
}>;
|
|
343
|
-
export type FlowExpect = z.infer<typeof FlowExpectSchema>;
|
|
114
|
+
export declare const FlowPredicateSchema: z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>;
|
|
344
115
|
/** One step of a flow: an anchored action (+ optional expectation). */
|
|
345
116
|
export interface FlowStep {
|
|
346
117
|
/** FlowStepTool.ACT | FlowStepTool.ACT_SEQUENCE (core, shared with ReticleTool). */
|
|
@@ -370,9 +141,29 @@ export interface FlowStep {
|
|
|
370
141
|
effect?: StepEffect;
|
|
371
142
|
action?: ActionType;
|
|
372
143
|
args?: Record<string, unknown>;
|
|
373
|
-
expect?:
|
|
144
|
+
expect?: Predicate;
|
|
374
145
|
/** true when the anchor is best-effort (no testid was resolvable at record time). NOT dropped. */
|
|
375
146
|
degraded?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* This anchor was rebound by `heal`, not chosen by whoever recorded the flow.
|
|
149
|
+
*
|
|
150
|
+
* Without it a machine-rebound locator is byte-indistinguishable from a recorded one, and three
|
|
151
|
+
* things go with that. A replay passing on a healed anchor is a weaker claim than one passing on
|
|
152
|
+
* a recorded anchor, because the rebind picked the element and the consequence only checked that
|
|
153
|
+
* SOMETHING still satisfied it. A step healed twice is a locator that is not stable, which was
|
|
154
|
+
* unknowable because the second heal overwrote the first. And a human reading the diff saw a
|
|
155
|
+
* changed testid with nothing saying who changed it.
|
|
156
|
+
*
|
|
157
|
+
* `from` is the ORIGINAL recorded anchor and survives later heals: the intermediate names were
|
|
158
|
+
* never chosen by anybody, so keeping the newest would throw away the only one a reader wants.
|
|
159
|
+
*
|
|
160
|
+
* Optional and additive — a flow without it reads exactly as before, which is every flow recorded
|
|
161
|
+
* until now, and no file version moves for it.
|
|
162
|
+
*/
|
|
163
|
+
healed?: {
|
|
164
|
+
from: string;
|
|
165
|
+
at: number;
|
|
166
|
+
};
|
|
376
167
|
/**
|
|
377
168
|
* How long THIS step's `expect` waits for its consequence, in ms. Overrides the flow's
|
|
378
169
|
* `signalTimeoutMs` and the built-in FLOW_SIGNAL_TIMEOUT_MS default.
|
|
@@ -781,7 +572,11 @@ export interface FlowReplayResult {
|
|
|
781
572
|
* file with neither still parses — back-compat is locked by a test).
|
|
782
573
|
*/
|
|
783
574
|
export declare const FlowFileSchema: z.ZodObject<{
|
|
784
|
-
|
|
575
|
+
/**
|
|
576
|
+
* The format this file was WRITTEN in. Both readable versions are accepted, because a v1 file is
|
|
577
|
+
* lifted rather than refused — see READABLE_FLOW_VERSIONS.
|
|
578
|
+
*/
|
|
579
|
+
version: z.ZodEffects<z.ZodNumber, number, number>;
|
|
785
580
|
name: z.ZodString;
|
|
786
581
|
/**
|
|
787
582
|
* The business goal this flow exists to verify, one line (e.g. "ship a deploy to production").
|
|
@@ -837,52 +632,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
837
632
|
* Same predicate shape as a step's `expect`, deliberately — a precondition is just a consequence
|
|
838
633
|
* somebody else's flow was responsible for.
|
|
839
634
|
*/
|
|
840
|
-
requires: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
841
|
-
/**
|
|
842
|
-
* The route the step must have reached — the consequence of a NAVIGATION.
|
|
843
|
-
*
|
|
844
|
-
* Absent until now, and its absence was not a corner case: navigation is one of the commonest
|
|
845
|
-
* journeys there is, and every route-asserted drive saved a flow that could never go red. Found
|
|
846
|
-
* by driving a real app, where `act_and_wait { until: { kind: "route" } }` returned
|
|
847
|
-
* `verified: "yes"` and the flow saved from that same drive graded `assertion-free`.
|
|
848
|
-
*
|
|
849
|
-
* Additive and optional, so a flow file written before it still parses and FLOW_FILE_VERSION
|
|
850
|
-
* stays 1 — the same treatment `signalData` and `signalCount` had.
|
|
851
|
-
*/
|
|
635
|
+
requires: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
852
636
|
route: z.ZodOptional<z.ZodObject<{
|
|
853
637
|
pathname: z.ZodOptional<z.ZodString>;
|
|
854
638
|
contains: z.ZodOptional<z.ZodString>;
|
|
855
639
|
}, "strip", z.ZodTypeAny, {
|
|
856
|
-
pathname?: string | undefined;
|
|
857
640
|
contains?: string | undefined;
|
|
858
|
-
}, {
|
|
859
641
|
pathname?: string | undefined;
|
|
642
|
+
}, {
|
|
860
643
|
contains?: string | undefined;
|
|
644
|
+
pathname?: string | undefined;
|
|
861
645
|
}>>;
|
|
862
646
|
signal: z.ZodOptional<z.ZodString>;
|
|
863
|
-
/**
|
|
864
|
-
* Optional payload shape an `assert-signal` annotation requires the signal
|
|
865
|
-
* to match (the predicate DSL's signal.dataMatches). Additive/optional — a flow file with a
|
|
866
|
-
* bare `signal` still parses, and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
867
|
-
*/
|
|
868
647
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
869
|
-
/**
|
|
870
|
-
* Exact number of times the signal must have fired — the signal-side twin of `net.count`, and the
|
|
871
|
-
* only way a saved flow can keep a cardinality the agent actually asserted. Without it a
|
|
872
|
-
* `count: 1` drive would be recorded as bare presence, which is a strictly WEAKER claim than the
|
|
873
|
-
* one made: the replayed flow then goes green on the double-fire it was recorded to catch.
|
|
874
|
-
* Additive/optional — a flow file with a bare `signal` still parses, and FLOW_FILE_VERSION stays 1.
|
|
875
|
-
*/
|
|
876
648
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
877
649
|
net: z.ZodOptional<z.ZodObject<{
|
|
878
650
|
method: z.ZodOptional<z.ZodString>;
|
|
879
651
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
880
652
|
status: z.ZodOptional<z.ZodNumber>;
|
|
881
|
-
/**
|
|
882
|
-
* Exact number of matching requests since the action — turns presence into a cardinality
|
|
883
|
-
* assertion. Catches the double-submit / useEffect-double-fire / retry-storm regression class:
|
|
884
|
-
* the request fired (presence passes) but fired the WRONG number of times. Omit = presence (≥1).
|
|
885
|
-
*/
|
|
886
653
|
count: z.ZodOptional<z.ZodNumber>;
|
|
887
654
|
}, "strict", z.ZodTypeAny, {
|
|
888
655
|
status?: number | undefined;
|
|
@@ -895,12 +662,6 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
895
662
|
urlContains?: string | undefined;
|
|
896
663
|
count?: number | undefined;
|
|
897
664
|
}>>;
|
|
898
|
-
/**
|
|
899
|
-
* Console golden end-condition: assert the action logged (or, with absent:true, did NOT log) a
|
|
900
|
-
* console message at `level` (default 'error'). `absent:true` is the common case — "the action
|
|
901
|
-
* completed with a clean console" — catching the regression where an action throws a caught error
|
|
902
|
-
* / logs an uncaught rejection while the UI still renders fine (a presence check passes it).
|
|
903
|
-
*/
|
|
904
665
|
console: z.ZodOptional<z.ZodObject<{
|
|
905
666
|
level: z.ZodOptional<z.ZodString>;
|
|
906
667
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -916,64 +677,34 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
916
677
|
role: z.ZodOptional<z.ZodString>;
|
|
917
678
|
name: z.ZodOptional<z.ZodString>;
|
|
918
679
|
}, "strict", z.ZodTypeAny, {
|
|
919
|
-
role?: string | undefined;
|
|
920
680
|
testid?: string | undefined;
|
|
681
|
+
role?: string | undefined;
|
|
921
682
|
name?: string | undefined;
|
|
922
683
|
}, {
|
|
923
|
-
role?: string | undefined;
|
|
924
684
|
testid?: string | undefined;
|
|
685
|
+
role?: string | undefined;
|
|
925
686
|
name?: string | undefined;
|
|
926
687
|
}>>;
|
|
927
|
-
/**
|
|
928
|
-
* Rendered text as an end-condition, using the shapes the assert surface already accepts.
|
|
929
|
-
*
|
|
930
|
-
* The gap this closes: an app with no testids, no `reticle.signal`, no registrable store and no
|
|
931
|
-
* network call on the interaction under test -- a discount price computed and rendered, a
|
|
932
|
-
* formatted total, a derived label -- could not produce an asserted flow AT ALL. Everything the
|
|
933
|
-
* vocabulary offered needed a channel that app does not have, so the only honest outcome was
|
|
934
|
-
* `assertion-free`, which is a permanent green (#811).
|
|
935
|
-
*
|
|
936
|
-
* Derived-DOM rendering is a large share of what actually breaks in a UI, and it was the share
|
|
937
|
-
* that could not be pinned.
|
|
938
|
-
*
|
|
939
|
-
* Classified PRESENCE, not consequence, and that is not a technicality: text is read from the
|
|
940
|
-
* DOM, so a locator healed to the wrong element can still satisfy it. It earns `presence-only`,
|
|
941
|
-
* which is a real grade above `assertion-free` and honestly below `signal`/`net`/`state`.
|
|
942
|
-
*/
|
|
943
688
|
text: z.ZodOptional<z.ZodObject<{
|
|
944
689
|
contains: z.ZodString;
|
|
945
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
946
690
|
scope: z.ZodOptional<z.ZodString>;
|
|
947
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
948
691
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
949
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
950
692
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
951
693
|
}, "strict", z.ZodTypeAny, {
|
|
952
694
|
contains: string;
|
|
953
695
|
visible?: boolean | undefined;
|
|
954
|
-
absent?: boolean | undefined;
|
|
955
696
|
scope?: string | undefined;
|
|
697
|
+
absent?: boolean | undefined;
|
|
956
698
|
}, {
|
|
957
699
|
contains: string;
|
|
958
700
|
visible?: boolean | undefined;
|
|
959
|
-
absent?: boolean | undefined;
|
|
960
701
|
scope?: string | undefined;
|
|
702
|
+
absent?: boolean | undefined;
|
|
961
703
|
}>>;
|
|
962
|
-
/**
|
|
963
|
-
* Assert a registered store's value — the source of truth no DOM/network read can reach. Compiles
|
|
964
|
-
* to the predicate engine's `state` predicate. Additive/optional — a flow without it still parses
|
|
965
|
-
* and the on-disk version stays FLOW_FILE_VERSION 1. `equals` accepts a literal, omitted = presence,
|
|
966
|
-
* or a `{ $gte | $contains | $length }` operator pattern.
|
|
967
|
-
*/
|
|
968
704
|
state: z.ZodOptional<z.ZodObject<{
|
|
969
705
|
store: z.ZodOptional<z.ZodString>;
|
|
970
706
|
path: z.ZodString;
|
|
971
707
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
972
|
-
/**
|
|
973
|
-
* Treat this as an INVARIANT that must still hold AFTER the action settles, rather than a
|
|
974
|
-
* condition to wait for. Set it for a blast-radius check ("this unrelated path must NOT have
|
|
975
|
-
* moved") — without it a wait-until-true read passes before an over-reaching side-effect lands.
|
|
976
|
-
*/
|
|
977
708
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
978
709
|
}, "strict", z.ZodTypeAny, {
|
|
979
710
|
path: string;
|
|
@@ -991,8 +722,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
991
722
|
text?: {
|
|
992
723
|
contains: string;
|
|
993
724
|
visible?: boolean | undefined;
|
|
994
|
-
absent?: boolean | undefined;
|
|
995
725
|
scope?: string | undefined;
|
|
726
|
+
absent?: boolean | undefined;
|
|
996
727
|
} | undefined;
|
|
997
728
|
net?: {
|
|
998
729
|
status?: number | undefined;
|
|
@@ -1007,13 +738,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1007
738
|
hold?: boolean | undefined;
|
|
1008
739
|
} | undefined;
|
|
1009
740
|
element?: {
|
|
1010
|
-
role?: string | undefined;
|
|
1011
741
|
testid?: string | undefined;
|
|
742
|
+
role?: string | undefined;
|
|
1012
743
|
name?: string | undefined;
|
|
1013
744
|
} | undefined;
|
|
1014
745
|
route?: {
|
|
1015
|
-
pathname?: string | undefined;
|
|
1016
746
|
contains?: string | undefined;
|
|
747
|
+
pathname?: string | undefined;
|
|
1017
748
|
} | undefined;
|
|
1018
749
|
console?: {
|
|
1019
750
|
level?: string | undefined;
|
|
@@ -1026,8 +757,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1026
757
|
text?: {
|
|
1027
758
|
contains: string;
|
|
1028
759
|
visible?: boolean | undefined;
|
|
1029
|
-
absent?: boolean | undefined;
|
|
1030
760
|
scope?: string | undefined;
|
|
761
|
+
absent?: boolean | undefined;
|
|
1031
762
|
} | undefined;
|
|
1032
763
|
net?: {
|
|
1033
764
|
status?: number | undefined;
|
|
@@ -1042,13 +773,149 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1042
773
|
hold?: boolean | undefined;
|
|
1043
774
|
} | undefined;
|
|
1044
775
|
element?: {
|
|
776
|
+
testid?: string | undefined;
|
|
1045
777
|
role?: string | undefined;
|
|
778
|
+
name?: string | undefined;
|
|
779
|
+
} | undefined;
|
|
780
|
+
route?: {
|
|
781
|
+
contains?: string | undefined;
|
|
782
|
+
pathname?: string | undefined;
|
|
783
|
+
} | undefined;
|
|
784
|
+
console?: {
|
|
785
|
+
level?: string | undefined;
|
|
786
|
+
absent?: boolean | undefined;
|
|
787
|
+
} | undefined;
|
|
788
|
+
signalData?: Record<string, unknown> | undefined;
|
|
789
|
+
signalCount?: number | undefined;
|
|
790
|
+
}>, {
|
|
791
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
792
|
+
query: import("../index.js").ElementQuery;
|
|
793
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
794
|
+
absent?: boolean;
|
|
795
|
+
} | {
|
|
796
|
+
kind: typeof PredicateKind.TEXT;
|
|
797
|
+
contains?: string;
|
|
798
|
+
visible?: boolean;
|
|
799
|
+
absent?: boolean;
|
|
800
|
+
scope?: string;
|
|
801
|
+
self?: boolean;
|
|
802
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
803
|
+
} | {
|
|
804
|
+
kind: typeof PredicateKind.NET;
|
|
805
|
+
method?: string;
|
|
806
|
+
urlContains?: string;
|
|
807
|
+
status?: number;
|
|
808
|
+
ok?: boolean;
|
|
809
|
+
since?: number;
|
|
810
|
+
count?: number;
|
|
811
|
+
bodyContains?: string;
|
|
812
|
+
bodyMatches?: Record<string, unknown>;
|
|
813
|
+
requestBodyContains?: string;
|
|
814
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
815
|
+
} | {
|
|
816
|
+
kind: typeof PredicateKind.ROUTE;
|
|
817
|
+
pathname?: string;
|
|
818
|
+
contains?: string;
|
|
819
|
+
since?: number;
|
|
820
|
+
} | {
|
|
821
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
822
|
+
level?: string;
|
|
823
|
+
contains?: string;
|
|
824
|
+
absent?: boolean;
|
|
825
|
+
since?: number;
|
|
826
|
+
} | {
|
|
827
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
828
|
+
name?: string;
|
|
829
|
+
target?: string;
|
|
830
|
+
completed?: boolean;
|
|
831
|
+
since?: number;
|
|
832
|
+
} | {
|
|
833
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
834
|
+
name?: string;
|
|
835
|
+
dataMatches?: Record<string, unknown>;
|
|
836
|
+
count?: number;
|
|
837
|
+
since?: number;
|
|
838
|
+
} | {
|
|
839
|
+
kind: typeof PredicateKind.STATE;
|
|
840
|
+
store?: string;
|
|
841
|
+
path: string;
|
|
842
|
+
equals?: unknown;
|
|
843
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
844
|
+
} | {
|
|
845
|
+
kind: typeof PredicateKind.SETTLED;
|
|
846
|
+
quietMs?: number;
|
|
847
|
+
} | {
|
|
848
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
849
|
+
predicates: Predicate[];
|
|
850
|
+
} | {
|
|
851
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
852
|
+
predicates: Predicate[];
|
|
853
|
+
} | {
|
|
854
|
+
kind: typeof PredicateKind.NOT;
|
|
855
|
+
predicate: Predicate;
|
|
856
|
+
} | undefined, {
|
|
857
|
+
signal?: string | undefined;
|
|
858
|
+
text?: {
|
|
859
|
+
contains: string;
|
|
860
|
+
visible?: boolean | undefined;
|
|
861
|
+
scope?: string | undefined;
|
|
862
|
+
absent?: boolean | undefined;
|
|
863
|
+
} | undefined;
|
|
864
|
+
net?: {
|
|
865
|
+
status?: number | undefined;
|
|
866
|
+
method?: string | undefined;
|
|
867
|
+
urlContains?: string | undefined;
|
|
868
|
+
count?: number | undefined;
|
|
869
|
+
} | undefined;
|
|
870
|
+
state?: {
|
|
871
|
+
path: string;
|
|
872
|
+
store?: string | undefined;
|
|
873
|
+
equals?: unknown;
|
|
874
|
+
hold?: boolean | undefined;
|
|
875
|
+
} | undefined;
|
|
876
|
+
element?: {
|
|
1046
877
|
testid?: string | undefined;
|
|
878
|
+
role?: string | undefined;
|
|
1047
879
|
name?: string | undefined;
|
|
1048
880
|
} | undefined;
|
|
1049
881
|
route?: {
|
|
882
|
+
contains?: string | undefined;
|
|
1050
883
|
pathname?: string | undefined;
|
|
884
|
+
} | undefined;
|
|
885
|
+
console?: {
|
|
886
|
+
level?: string | undefined;
|
|
887
|
+
absent?: boolean | undefined;
|
|
888
|
+
} | undefined;
|
|
889
|
+
signalData?: Record<string, unknown> | undefined;
|
|
890
|
+
signalCount?: number | undefined;
|
|
891
|
+
}>]>, "many">, Predicate[], (Predicate | {
|
|
892
|
+
signal?: string | undefined;
|
|
893
|
+
text?: {
|
|
894
|
+
contains: string;
|
|
895
|
+
visible?: boolean | undefined;
|
|
896
|
+
scope?: string | undefined;
|
|
897
|
+
absent?: boolean | undefined;
|
|
898
|
+
} | undefined;
|
|
899
|
+
net?: {
|
|
900
|
+
status?: number | undefined;
|
|
901
|
+
method?: string | undefined;
|
|
902
|
+
urlContains?: string | undefined;
|
|
903
|
+
count?: number | undefined;
|
|
904
|
+
} | undefined;
|
|
905
|
+
state?: {
|
|
906
|
+
path: string;
|
|
907
|
+
store?: string | undefined;
|
|
908
|
+
equals?: unknown;
|
|
909
|
+
hold?: boolean | undefined;
|
|
910
|
+
} | undefined;
|
|
911
|
+
element?: {
|
|
912
|
+
testid?: string | undefined;
|
|
913
|
+
role?: string | undefined;
|
|
914
|
+
name?: string | undefined;
|
|
915
|
+
} | undefined;
|
|
916
|
+
route?: {
|
|
1051
917
|
contains?: string | undefined;
|
|
918
|
+
pathname?: string | undefined;
|
|
1052
919
|
} | undefined;
|
|
1053
920
|
console?: {
|
|
1054
921
|
level?: string | undefined;
|
|
@@ -1056,53 +923,25 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1056
923
|
} | undefined;
|
|
1057
924
|
signalData?: Record<string, unknown> | undefined;
|
|
1058
925
|
signalCount?: number | undefined;
|
|
1059
|
-
}
|
|
1060
|
-
ensures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1061
|
-
/**
|
|
1062
|
-
* The route the step must have reached — the consequence of a NAVIGATION.
|
|
1063
|
-
*
|
|
1064
|
-
* Absent until now, and its absence was not a corner case: navigation is one of the commonest
|
|
1065
|
-
* journeys there is, and every route-asserted drive saved a flow that could never go red. Found
|
|
1066
|
-
* by driving a real app, where `act_and_wait { until: { kind: "route" } }` returned
|
|
1067
|
-
* `verified: "yes"` and the flow saved from that same drive graded `assertion-free`.
|
|
1068
|
-
*
|
|
1069
|
-
* Additive and optional, so a flow file written before it still parses and FLOW_FILE_VERSION
|
|
1070
|
-
* stays 1 — the same treatment `signalData` and `signalCount` had.
|
|
1071
|
-
*/
|
|
926
|
+
})[]>>;
|
|
927
|
+
ensures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
1072
928
|
route: z.ZodOptional<z.ZodObject<{
|
|
1073
929
|
pathname: z.ZodOptional<z.ZodString>;
|
|
1074
930
|
contains: z.ZodOptional<z.ZodString>;
|
|
1075
931
|
}, "strip", z.ZodTypeAny, {
|
|
1076
|
-
pathname?: string | undefined;
|
|
1077
932
|
contains?: string | undefined;
|
|
1078
|
-
}, {
|
|
1079
933
|
pathname?: string | undefined;
|
|
934
|
+
}, {
|
|
1080
935
|
contains?: string | undefined;
|
|
936
|
+
pathname?: string | undefined;
|
|
1081
937
|
}>>;
|
|
1082
938
|
signal: z.ZodOptional<z.ZodString>;
|
|
1083
|
-
/**
|
|
1084
|
-
* Optional payload shape an `assert-signal` annotation requires the signal
|
|
1085
|
-
* to match (the predicate DSL's signal.dataMatches). Additive/optional — a flow file with a
|
|
1086
|
-
* bare `signal` still parses, and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
1087
|
-
*/
|
|
1088
939
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1089
|
-
/**
|
|
1090
|
-
* Exact number of times the signal must have fired — the signal-side twin of `net.count`, and the
|
|
1091
|
-
* only way a saved flow can keep a cardinality the agent actually asserted. Without it a
|
|
1092
|
-
* `count: 1` drive would be recorded as bare presence, which is a strictly WEAKER claim than the
|
|
1093
|
-
* one made: the replayed flow then goes green on the double-fire it was recorded to catch.
|
|
1094
|
-
* Additive/optional — a flow file with a bare `signal` still parses, and FLOW_FILE_VERSION stays 1.
|
|
1095
|
-
*/
|
|
1096
940
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
1097
941
|
net: z.ZodOptional<z.ZodObject<{
|
|
1098
942
|
method: z.ZodOptional<z.ZodString>;
|
|
1099
943
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
1100
944
|
status: z.ZodOptional<z.ZodNumber>;
|
|
1101
|
-
/**
|
|
1102
|
-
* Exact number of matching requests since the action — turns presence into a cardinality
|
|
1103
|
-
* assertion. Catches the double-submit / useEffect-double-fire / retry-storm regression class:
|
|
1104
|
-
* the request fired (presence passes) but fired the WRONG number of times. Omit = presence (≥1).
|
|
1105
|
-
*/
|
|
1106
945
|
count: z.ZodOptional<z.ZodNumber>;
|
|
1107
946
|
}, "strict", z.ZodTypeAny, {
|
|
1108
947
|
status?: number | undefined;
|
|
@@ -1115,12 +954,6 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1115
954
|
urlContains?: string | undefined;
|
|
1116
955
|
count?: number | undefined;
|
|
1117
956
|
}>>;
|
|
1118
|
-
/**
|
|
1119
|
-
* Console golden end-condition: assert the action logged (or, with absent:true, did NOT log) a
|
|
1120
|
-
* console message at `level` (default 'error'). `absent:true` is the common case — "the action
|
|
1121
|
-
* completed with a clean console" — catching the regression where an action throws a caught error
|
|
1122
|
-
* / logs an uncaught rejection while the UI still renders fine (a presence check passes it).
|
|
1123
|
-
*/
|
|
1124
957
|
console: z.ZodOptional<z.ZodObject<{
|
|
1125
958
|
level: z.ZodOptional<z.ZodString>;
|
|
1126
959
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1136,64 +969,34 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1136
969
|
role: z.ZodOptional<z.ZodString>;
|
|
1137
970
|
name: z.ZodOptional<z.ZodString>;
|
|
1138
971
|
}, "strict", z.ZodTypeAny, {
|
|
1139
|
-
role?: string | undefined;
|
|
1140
972
|
testid?: string | undefined;
|
|
973
|
+
role?: string | undefined;
|
|
1141
974
|
name?: string | undefined;
|
|
1142
975
|
}, {
|
|
1143
|
-
role?: string | undefined;
|
|
1144
976
|
testid?: string | undefined;
|
|
977
|
+
role?: string | undefined;
|
|
1145
978
|
name?: string | undefined;
|
|
1146
979
|
}>>;
|
|
1147
|
-
/**
|
|
1148
|
-
* Rendered text as an end-condition, using the shapes the assert surface already accepts.
|
|
1149
|
-
*
|
|
1150
|
-
* The gap this closes: an app with no testids, no `reticle.signal`, no registrable store and no
|
|
1151
|
-
* network call on the interaction under test -- a discount price computed and rendered, a
|
|
1152
|
-
* formatted total, a derived label -- could not produce an asserted flow AT ALL. Everything the
|
|
1153
|
-
* vocabulary offered needed a channel that app does not have, so the only honest outcome was
|
|
1154
|
-
* `assertion-free`, which is a permanent green (#811).
|
|
1155
|
-
*
|
|
1156
|
-
* Derived-DOM rendering is a large share of what actually breaks in a UI, and it was the share
|
|
1157
|
-
* that could not be pinned.
|
|
1158
|
-
*
|
|
1159
|
-
* Classified PRESENCE, not consequence, and that is not a technicality: text is read from the
|
|
1160
|
-
* DOM, so a locator healed to the wrong element can still satisfy it. It earns `presence-only`,
|
|
1161
|
-
* which is a real grade above `assertion-free` and honestly below `signal`/`net`/`state`.
|
|
1162
|
-
*/
|
|
1163
980
|
text: z.ZodOptional<z.ZodObject<{
|
|
1164
981
|
contains: z.ZodString;
|
|
1165
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
1166
982
|
scope: z.ZodOptional<z.ZodString>;
|
|
1167
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
1168
983
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
1169
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
1170
984
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1171
985
|
}, "strict", z.ZodTypeAny, {
|
|
1172
986
|
contains: string;
|
|
1173
987
|
visible?: boolean | undefined;
|
|
1174
|
-
absent?: boolean | undefined;
|
|
1175
988
|
scope?: string | undefined;
|
|
989
|
+
absent?: boolean | undefined;
|
|
1176
990
|
}, {
|
|
1177
991
|
contains: string;
|
|
1178
992
|
visible?: boolean | undefined;
|
|
1179
|
-
absent?: boolean | undefined;
|
|
1180
993
|
scope?: string | undefined;
|
|
994
|
+
absent?: boolean | undefined;
|
|
1181
995
|
}>>;
|
|
1182
|
-
/**
|
|
1183
|
-
* Assert a registered store's value — the source of truth no DOM/network read can reach. Compiles
|
|
1184
|
-
* to the predicate engine's `state` predicate. Additive/optional — a flow without it still parses
|
|
1185
|
-
* and the on-disk version stays FLOW_FILE_VERSION 1. `equals` accepts a literal, omitted = presence,
|
|
1186
|
-
* or a `{ $gte | $contains | $length }` operator pattern.
|
|
1187
|
-
*/
|
|
1188
996
|
state: z.ZodOptional<z.ZodObject<{
|
|
1189
997
|
store: z.ZodOptional<z.ZodString>;
|
|
1190
998
|
path: z.ZodString;
|
|
1191
999
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
1192
|
-
/**
|
|
1193
|
-
* Treat this as an INVARIANT that must still hold AFTER the action settles, rather than a
|
|
1194
|
-
* condition to wait for. Set it for a blast-radius check ("this unrelated path must NOT have
|
|
1195
|
-
* moved") — without it a wait-until-true read passes before an over-reaching side-effect lands.
|
|
1196
|
-
*/
|
|
1197
1000
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
1198
1001
|
}, "strict", z.ZodTypeAny, {
|
|
1199
1002
|
path: string;
|
|
@@ -1211,8 +1014,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1211
1014
|
text?: {
|
|
1212
1015
|
contains: string;
|
|
1213
1016
|
visible?: boolean | undefined;
|
|
1214
|
-
absent?: boolean | undefined;
|
|
1215
1017
|
scope?: string | undefined;
|
|
1018
|
+
absent?: boolean | undefined;
|
|
1216
1019
|
} | undefined;
|
|
1217
1020
|
net?: {
|
|
1218
1021
|
status?: number | undefined;
|
|
@@ -1227,13 +1030,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1227
1030
|
hold?: boolean | undefined;
|
|
1228
1031
|
} | undefined;
|
|
1229
1032
|
element?: {
|
|
1230
|
-
role?: string | undefined;
|
|
1231
1033
|
testid?: string | undefined;
|
|
1034
|
+
role?: string | undefined;
|
|
1232
1035
|
name?: string | undefined;
|
|
1233
1036
|
} | undefined;
|
|
1234
1037
|
route?: {
|
|
1235
|
-
pathname?: string | undefined;
|
|
1236
1038
|
contains?: string | undefined;
|
|
1039
|
+
pathname?: string | undefined;
|
|
1237
1040
|
} | undefined;
|
|
1238
1041
|
console?: {
|
|
1239
1042
|
level?: string | undefined;
|
|
@@ -1246,8 +1049,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1246
1049
|
text?: {
|
|
1247
1050
|
contains: string;
|
|
1248
1051
|
visible?: boolean | undefined;
|
|
1249
|
-
absent?: boolean | undefined;
|
|
1250
1052
|
scope?: string | undefined;
|
|
1053
|
+
absent?: boolean | undefined;
|
|
1251
1054
|
} | undefined;
|
|
1252
1055
|
net?: {
|
|
1253
1056
|
status?: number | undefined;
|
|
@@ -1262,13 +1065,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1262
1065
|
hold?: boolean | undefined;
|
|
1263
1066
|
} | undefined;
|
|
1264
1067
|
element?: {
|
|
1265
|
-
role?: string | undefined;
|
|
1266
1068
|
testid?: string | undefined;
|
|
1069
|
+
role?: string | undefined;
|
|
1267
1070
|
name?: string | undefined;
|
|
1268
1071
|
} | undefined;
|
|
1269
1072
|
route?: {
|
|
1270
|
-
pathname?: string | undefined;
|
|
1271
1073
|
contains?: string | undefined;
|
|
1074
|
+
pathname?: string | undefined;
|
|
1272
1075
|
} | undefined;
|
|
1273
1076
|
console?: {
|
|
1274
1077
|
level?: string | undefined;
|
|
@@ -1276,8 +1079,144 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1276
1079
|
} | undefined;
|
|
1277
1080
|
signalData?: Record<string, unknown> | undefined;
|
|
1278
1081
|
signalCount?: number | undefined;
|
|
1279
|
-
}>,
|
|
1280
|
-
|
|
1082
|
+
}>, {
|
|
1083
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
1084
|
+
query: import("../index.js").ElementQuery;
|
|
1085
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
1086
|
+
absent?: boolean;
|
|
1087
|
+
} | {
|
|
1088
|
+
kind: typeof PredicateKind.TEXT;
|
|
1089
|
+
contains?: string;
|
|
1090
|
+
visible?: boolean;
|
|
1091
|
+
absent?: boolean;
|
|
1092
|
+
scope?: string;
|
|
1093
|
+
self?: boolean;
|
|
1094
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
1095
|
+
} | {
|
|
1096
|
+
kind: typeof PredicateKind.NET;
|
|
1097
|
+
method?: string;
|
|
1098
|
+
urlContains?: string;
|
|
1099
|
+
status?: number;
|
|
1100
|
+
ok?: boolean;
|
|
1101
|
+
since?: number;
|
|
1102
|
+
count?: number;
|
|
1103
|
+
bodyContains?: string;
|
|
1104
|
+
bodyMatches?: Record<string, unknown>;
|
|
1105
|
+
requestBodyContains?: string;
|
|
1106
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
1107
|
+
} | {
|
|
1108
|
+
kind: typeof PredicateKind.ROUTE;
|
|
1109
|
+
pathname?: string;
|
|
1110
|
+
contains?: string;
|
|
1111
|
+
since?: number;
|
|
1112
|
+
} | {
|
|
1113
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
1114
|
+
level?: string;
|
|
1115
|
+
contains?: string;
|
|
1116
|
+
absent?: boolean;
|
|
1117
|
+
since?: number;
|
|
1118
|
+
} | {
|
|
1119
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
1120
|
+
name?: string;
|
|
1121
|
+
target?: string;
|
|
1122
|
+
completed?: boolean;
|
|
1123
|
+
since?: number;
|
|
1124
|
+
} | {
|
|
1125
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
1126
|
+
name?: string;
|
|
1127
|
+
dataMatches?: Record<string, unknown>;
|
|
1128
|
+
count?: number;
|
|
1129
|
+
since?: number;
|
|
1130
|
+
} | {
|
|
1131
|
+
kind: typeof PredicateKind.STATE;
|
|
1132
|
+
store?: string;
|
|
1133
|
+
path: string;
|
|
1134
|
+
equals?: unknown;
|
|
1135
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
1136
|
+
} | {
|
|
1137
|
+
kind: typeof PredicateKind.SETTLED;
|
|
1138
|
+
quietMs?: number;
|
|
1139
|
+
} | {
|
|
1140
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
1141
|
+
predicates: Predicate[];
|
|
1142
|
+
} | {
|
|
1143
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
1144
|
+
predicates: Predicate[];
|
|
1145
|
+
} | {
|
|
1146
|
+
kind: typeof PredicateKind.NOT;
|
|
1147
|
+
predicate: Predicate;
|
|
1148
|
+
} | undefined, {
|
|
1149
|
+
signal?: string | undefined;
|
|
1150
|
+
text?: {
|
|
1151
|
+
contains: string;
|
|
1152
|
+
visible?: boolean | undefined;
|
|
1153
|
+
scope?: string | undefined;
|
|
1154
|
+
absent?: boolean | undefined;
|
|
1155
|
+
} | undefined;
|
|
1156
|
+
net?: {
|
|
1157
|
+
status?: number | undefined;
|
|
1158
|
+
method?: string | undefined;
|
|
1159
|
+
urlContains?: string | undefined;
|
|
1160
|
+
count?: number | undefined;
|
|
1161
|
+
} | undefined;
|
|
1162
|
+
state?: {
|
|
1163
|
+
path: string;
|
|
1164
|
+
store?: string | undefined;
|
|
1165
|
+
equals?: unknown;
|
|
1166
|
+
hold?: boolean | undefined;
|
|
1167
|
+
} | undefined;
|
|
1168
|
+
element?: {
|
|
1169
|
+
testid?: string | undefined;
|
|
1170
|
+
role?: string | undefined;
|
|
1171
|
+
name?: string | undefined;
|
|
1172
|
+
} | undefined;
|
|
1173
|
+
route?: {
|
|
1174
|
+
contains?: string | undefined;
|
|
1175
|
+
pathname?: string | undefined;
|
|
1176
|
+
} | undefined;
|
|
1177
|
+
console?: {
|
|
1178
|
+
level?: string | undefined;
|
|
1179
|
+
absent?: boolean | undefined;
|
|
1180
|
+
} | undefined;
|
|
1181
|
+
signalData?: Record<string, unknown> | undefined;
|
|
1182
|
+
signalCount?: number | undefined;
|
|
1183
|
+
}>]>, "many">, Predicate[], (Predicate | {
|
|
1184
|
+
signal?: string | undefined;
|
|
1185
|
+
text?: {
|
|
1186
|
+
contains: string;
|
|
1187
|
+
visible?: boolean | undefined;
|
|
1188
|
+
scope?: string | undefined;
|
|
1189
|
+
absent?: boolean | undefined;
|
|
1190
|
+
} | undefined;
|
|
1191
|
+
net?: {
|
|
1192
|
+
status?: number | undefined;
|
|
1193
|
+
method?: string | undefined;
|
|
1194
|
+
urlContains?: string | undefined;
|
|
1195
|
+
count?: number | undefined;
|
|
1196
|
+
} | undefined;
|
|
1197
|
+
state?: {
|
|
1198
|
+
path: string;
|
|
1199
|
+
store?: string | undefined;
|
|
1200
|
+
equals?: unknown;
|
|
1201
|
+
hold?: boolean | undefined;
|
|
1202
|
+
} | undefined;
|
|
1203
|
+
element?: {
|
|
1204
|
+
testid?: string | undefined;
|
|
1205
|
+
role?: string | undefined;
|
|
1206
|
+
name?: string | undefined;
|
|
1207
|
+
} | undefined;
|
|
1208
|
+
route?: {
|
|
1209
|
+
contains?: string | undefined;
|
|
1210
|
+
pathname?: string | undefined;
|
|
1211
|
+
} | undefined;
|
|
1212
|
+
console?: {
|
|
1213
|
+
level?: string | undefined;
|
|
1214
|
+
absent?: boolean | undefined;
|
|
1215
|
+
} | undefined;
|
|
1216
|
+
signalData?: Record<string, unknown> | undefined;
|
|
1217
|
+
signalCount?: number | undefined;
|
|
1218
|
+
})[]>>;
|
|
1219
|
+
/** From the injected clock (ms) — deterministic in tests, byte-stable on disk. */
|
|
1281
1220
|
createdAt: z.ZodNumber;
|
|
1282
1221
|
steps: z.ZodArray<z.ZodType<FlowStep, z.ZodTypeDef, FlowStep>, "many">;
|
|
1283
1222
|
/**
|
|
@@ -1289,52 +1228,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1289
1228
|
* replays exactly as before and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
1290
1229
|
*/
|
|
1291
1230
|
signalTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1292
|
-
success: z.ZodOptional<z.ZodObject<{
|
|
1293
|
-
/**
|
|
1294
|
-
* The route the step must have reached — the consequence of a NAVIGATION.
|
|
1295
|
-
*
|
|
1296
|
-
* Absent until now, and its absence was not a corner case: navigation is one of the commonest
|
|
1297
|
-
* journeys there is, and every route-asserted drive saved a flow that could never go red. Found
|
|
1298
|
-
* by driving a real app, where `act_and_wait { until: { kind: "route" } }` returned
|
|
1299
|
-
* `verified: "yes"` and the flow saved from that same drive graded `assertion-free`.
|
|
1300
|
-
*
|
|
1301
|
-
* Additive and optional, so a flow file written before it still parses and FLOW_FILE_VERSION
|
|
1302
|
-
* stays 1 — the same treatment `signalData` and `signalCount` had.
|
|
1303
|
-
*/
|
|
1231
|
+
success: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
1304
1232
|
route: z.ZodOptional<z.ZodObject<{
|
|
1305
1233
|
pathname: z.ZodOptional<z.ZodString>;
|
|
1306
1234
|
contains: z.ZodOptional<z.ZodString>;
|
|
1307
1235
|
}, "strip", z.ZodTypeAny, {
|
|
1308
|
-
pathname?: string | undefined;
|
|
1309
1236
|
contains?: string | undefined;
|
|
1310
|
-
}, {
|
|
1311
1237
|
pathname?: string | undefined;
|
|
1238
|
+
}, {
|
|
1312
1239
|
contains?: string | undefined;
|
|
1240
|
+
pathname?: string | undefined;
|
|
1313
1241
|
}>>;
|
|
1314
1242
|
signal: z.ZodOptional<z.ZodString>;
|
|
1315
|
-
/**
|
|
1316
|
-
* Optional payload shape an `assert-signal` annotation requires the signal
|
|
1317
|
-
* to match (the predicate DSL's signal.dataMatches). Additive/optional — a flow file with a
|
|
1318
|
-
* bare `signal` still parses, and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
1319
|
-
*/
|
|
1320
1243
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1321
|
-
/**
|
|
1322
|
-
* Exact number of times the signal must have fired — the signal-side twin of `net.count`, and the
|
|
1323
|
-
* only way a saved flow can keep a cardinality the agent actually asserted. Without it a
|
|
1324
|
-
* `count: 1` drive would be recorded as bare presence, which is a strictly WEAKER claim than the
|
|
1325
|
-
* one made: the replayed flow then goes green on the double-fire it was recorded to catch.
|
|
1326
|
-
* Additive/optional — a flow file with a bare `signal` still parses, and FLOW_FILE_VERSION stays 1.
|
|
1327
|
-
*/
|
|
1328
1244
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
1329
1245
|
net: z.ZodOptional<z.ZodObject<{
|
|
1330
1246
|
method: z.ZodOptional<z.ZodString>;
|
|
1331
1247
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
1332
1248
|
status: z.ZodOptional<z.ZodNumber>;
|
|
1333
|
-
/**
|
|
1334
|
-
* Exact number of matching requests since the action — turns presence into a cardinality
|
|
1335
|
-
* assertion. Catches the double-submit / useEffect-double-fire / retry-storm regression class:
|
|
1336
|
-
* the request fired (presence passes) but fired the WRONG number of times. Omit = presence (≥1).
|
|
1337
|
-
*/
|
|
1338
1249
|
count: z.ZodOptional<z.ZodNumber>;
|
|
1339
1250
|
}, "strict", z.ZodTypeAny, {
|
|
1340
1251
|
status?: number | undefined;
|
|
@@ -1347,12 +1258,6 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1347
1258
|
urlContains?: string | undefined;
|
|
1348
1259
|
count?: number | undefined;
|
|
1349
1260
|
}>>;
|
|
1350
|
-
/**
|
|
1351
|
-
* Console golden end-condition: assert the action logged (or, with absent:true, did NOT log) a
|
|
1352
|
-
* console message at `level` (default 'error'). `absent:true` is the common case — "the action
|
|
1353
|
-
* completed with a clean console" — catching the regression where an action throws a caught error
|
|
1354
|
-
* / logs an uncaught rejection while the UI still renders fine (a presence check passes it).
|
|
1355
|
-
*/
|
|
1356
1261
|
console: z.ZodOptional<z.ZodObject<{
|
|
1357
1262
|
level: z.ZodOptional<z.ZodString>;
|
|
1358
1263
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1368,64 +1273,34 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1368
1273
|
role: z.ZodOptional<z.ZodString>;
|
|
1369
1274
|
name: z.ZodOptional<z.ZodString>;
|
|
1370
1275
|
}, "strict", z.ZodTypeAny, {
|
|
1371
|
-
role?: string | undefined;
|
|
1372
1276
|
testid?: string | undefined;
|
|
1277
|
+
role?: string | undefined;
|
|
1373
1278
|
name?: string | undefined;
|
|
1374
1279
|
}, {
|
|
1375
|
-
role?: string | undefined;
|
|
1376
1280
|
testid?: string | undefined;
|
|
1281
|
+
role?: string | undefined;
|
|
1377
1282
|
name?: string | undefined;
|
|
1378
1283
|
}>>;
|
|
1379
|
-
/**
|
|
1380
|
-
* Rendered text as an end-condition, using the shapes the assert surface already accepts.
|
|
1381
|
-
*
|
|
1382
|
-
* The gap this closes: an app with no testids, no `reticle.signal`, no registrable store and no
|
|
1383
|
-
* network call on the interaction under test -- a discount price computed and rendered, a
|
|
1384
|
-
* formatted total, a derived label -- could not produce an asserted flow AT ALL. Everything the
|
|
1385
|
-
* vocabulary offered needed a channel that app does not have, so the only honest outcome was
|
|
1386
|
-
* `assertion-free`, which is a permanent green (#811).
|
|
1387
|
-
*
|
|
1388
|
-
* Derived-DOM rendering is a large share of what actually breaks in a UI, and it was the share
|
|
1389
|
-
* that could not be pinned.
|
|
1390
|
-
*
|
|
1391
|
-
* Classified PRESENCE, not consequence, and that is not a technicality: text is read from the
|
|
1392
|
-
* DOM, so a locator healed to the wrong element can still satisfy it. It earns `presence-only`,
|
|
1393
|
-
* which is a real grade above `assertion-free` and honestly below `signal`/`net`/`state`.
|
|
1394
|
-
*/
|
|
1395
1284
|
text: z.ZodOptional<z.ZodObject<{
|
|
1396
1285
|
contains: z.ZodString;
|
|
1397
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
1398
1286
|
scope: z.ZodOptional<z.ZodString>;
|
|
1399
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
1400
1287
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
1401
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
1402
1288
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1403
1289
|
}, "strict", z.ZodTypeAny, {
|
|
1404
1290
|
contains: string;
|
|
1405
1291
|
visible?: boolean | undefined;
|
|
1406
|
-
absent?: boolean | undefined;
|
|
1407
1292
|
scope?: string | undefined;
|
|
1293
|
+
absent?: boolean | undefined;
|
|
1408
1294
|
}, {
|
|
1409
1295
|
contains: string;
|
|
1410
1296
|
visible?: boolean | undefined;
|
|
1411
|
-
absent?: boolean | undefined;
|
|
1412
1297
|
scope?: string | undefined;
|
|
1298
|
+
absent?: boolean | undefined;
|
|
1413
1299
|
}>>;
|
|
1414
|
-
/**
|
|
1415
|
-
* Assert a registered store's value — the source of truth no DOM/network read can reach. Compiles
|
|
1416
|
-
* to the predicate engine's `state` predicate. Additive/optional — a flow without it still parses
|
|
1417
|
-
* and the on-disk version stays FLOW_FILE_VERSION 1. `equals` accepts a literal, omitted = presence,
|
|
1418
|
-
* or a `{ $gte | $contains | $length }` operator pattern.
|
|
1419
|
-
*/
|
|
1420
1300
|
state: z.ZodOptional<z.ZodObject<{
|
|
1421
1301
|
store: z.ZodOptional<z.ZodString>;
|
|
1422
1302
|
path: z.ZodString;
|
|
1423
1303
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
1424
|
-
/**
|
|
1425
|
-
* Treat this as an INVARIANT that must still hold AFTER the action settles, rather than a
|
|
1426
|
-
* condition to wait for. Set it for a blast-radius check ("this unrelated path must NOT have
|
|
1427
|
-
* moved") — without it a wait-until-true read passes before an over-reaching side-effect lands.
|
|
1428
|
-
*/
|
|
1429
1304
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
1430
1305
|
}, "strict", z.ZodTypeAny, {
|
|
1431
1306
|
path: string;
|
|
@@ -1443,8 +1318,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1443
1318
|
text?: {
|
|
1444
1319
|
contains: string;
|
|
1445
1320
|
visible?: boolean | undefined;
|
|
1446
|
-
absent?: boolean | undefined;
|
|
1447
1321
|
scope?: string | undefined;
|
|
1322
|
+
absent?: boolean | undefined;
|
|
1448
1323
|
} | undefined;
|
|
1449
1324
|
net?: {
|
|
1450
1325
|
status?: number | undefined;
|
|
@@ -1459,13 +1334,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1459
1334
|
hold?: boolean | undefined;
|
|
1460
1335
|
} | undefined;
|
|
1461
1336
|
element?: {
|
|
1462
|
-
role?: string | undefined;
|
|
1463
1337
|
testid?: string | undefined;
|
|
1338
|
+
role?: string | undefined;
|
|
1464
1339
|
name?: string | undefined;
|
|
1465
1340
|
} | undefined;
|
|
1466
1341
|
route?: {
|
|
1467
|
-
pathname?: string | undefined;
|
|
1468
1342
|
contains?: string | undefined;
|
|
1343
|
+
pathname?: string | undefined;
|
|
1469
1344
|
} | undefined;
|
|
1470
1345
|
console?: {
|
|
1471
1346
|
level?: string | undefined;
|
|
@@ -1478,8 +1353,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1478
1353
|
text?: {
|
|
1479
1354
|
contains: string;
|
|
1480
1355
|
visible?: boolean | undefined;
|
|
1481
|
-
absent?: boolean | undefined;
|
|
1482
1356
|
scope?: string | undefined;
|
|
1357
|
+
absent?: boolean | undefined;
|
|
1483
1358
|
} | undefined;
|
|
1484
1359
|
net?: {
|
|
1485
1360
|
status?: number | undefined;
|
|
@@ -1494,13 +1369,114 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1494
1369
|
hold?: boolean | undefined;
|
|
1495
1370
|
} | undefined;
|
|
1496
1371
|
element?: {
|
|
1497
|
-
role?: string | undefined;
|
|
1498
1372
|
testid?: string | undefined;
|
|
1373
|
+
role?: string | undefined;
|
|
1499
1374
|
name?: string | undefined;
|
|
1500
1375
|
} | undefined;
|
|
1501
1376
|
route?: {
|
|
1377
|
+
contains?: string | undefined;
|
|
1502
1378
|
pathname?: string | undefined;
|
|
1379
|
+
} | undefined;
|
|
1380
|
+
console?: {
|
|
1381
|
+
level?: string | undefined;
|
|
1382
|
+
absent?: boolean | undefined;
|
|
1383
|
+
} | undefined;
|
|
1384
|
+
signalData?: Record<string, unknown> | undefined;
|
|
1385
|
+
signalCount?: number | undefined;
|
|
1386
|
+
}>, {
|
|
1387
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
1388
|
+
query: import("../index.js").ElementQuery;
|
|
1389
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
1390
|
+
absent?: boolean;
|
|
1391
|
+
} | {
|
|
1392
|
+
kind: typeof PredicateKind.TEXT;
|
|
1393
|
+
contains?: string;
|
|
1394
|
+
visible?: boolean;
|
|
1395
|
+
absent?: boolean;
|
|
1396
|
+
scope?: string;
|
|
1397
|
+
self?: boolean;
|
|
1398
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
1399
|
+
} | {
|
|
1400
|
+
kind: typeof PredicateKind.NET;
|
|
1401
|
+
method?: string;
|
|
1402
|
+
urlContains?: string;
|
|
1403
|
+
status?: number;
|
|
1404
|
+
ok?: boolean;
|
|
1405
|
+
since?: number;
|
|
1406
|
+
count?: number;
|
|
1407
|
+
bodyContains?: string;
|
|
1408
|
+
bodyMatches?: Record<string, unknown>;
|
|
1409
|
+
requestBodyContains?: string;
|
|
1410
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
1411
|
+
} | {
|
|
1412
|
+
kind: typeof PredicateKind.ROUTE;
|
|
1413
|
+
pathname?: string;
|
|
1414
|
+
contains?: string;
|
|
1415
|
+
since?: number;
|
|
1416
|
+
} | {
|
|
1417
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
1418
|
+
level?: string;
|
|
1419
|
+
contains?: string;
|
|
1420
|
+
absent?: boolean;
|
|
1421
|
+
since?: number;
|
|
1422
|
+
} | {
|
|
1423
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
1424
|
+
name?: string;
|
|
1425
|
+
target?: string;
|
|
1426
|
+
completed?: boolean;
|
|
1427
|
+
since?: number;
|
|
1428
|
+
} | {
|
|
1429
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
1430
|
+
name?: string;
|
|
1431
|
+
dataMatches?: Record<string, unknown>;
|
|
1432
|
+
count?: number;
|
|
1433
|
+
since?: number;
|
|
1434
|
+
} | {
|
|
1435
|
+
kind: typeof PredicateKind.STATE;
|
|
1436
|
+
store?: string;
|
|
1437
|
+
path: string;
|
|
1438
|
+
equals?: unknown;
|
|
1439
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
1440
|
+
} | {
|
|
1441
|
+
kind: typeof PredicateKind.SETTLED;
|
|
1442
|
+
quietMs?: number;
|
|
1443
|
+
} | {
|
|
1444
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
1445
|
+
predicates: Predicate[];
|
|
1446
|
+
} | {
|
|
1447
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
1448
|
+
predicates: Predicate[];
|
|
1449
|
+
} | {
|
|
1450
|
+
kind: typeof PredicateKind.NOT;
|
|
1451
|
+
predicate: Predicate;
|
|
1452
|
+
} | undefined, {
|
|
1453
|
+
signal?: string | undefined;
|
|
1454
|
+
text?: {
|
|
1455
|
+
contains: string;
|
|
1456
|
+
visible?: boolean | undefined;
|
|
1457
|
+
scope?: string | undefined;
|
|
1458
|
+
absent?: boolean | undefined;
|
|
1459
|
+
} | undefined;
|
|
1460
|
+
net?: {
|
|
1461
|
+
status?: number | undefined;
|
|
1462
|
+
method?: string | undefined;
|
|
1463
|
+
urlContains?: string | undefined;
|
|
1464
|
+
count?: number | undefined;
|
|
1465
|
+
} | undefined;
|
|
1466
|
+
state?: {
|
|
1467
|
+
path: string;
|
|
1468
|
+
store?: string | undefined;
|
|
1469
|
+
equals?: unknown;
|
|
1470
|
+
hold?: boolean | undefined;
|
|
1471
|
+
} | undefined;
|
|
1472
|
+
element?: {
|
|
1473
|
+
testid?: string | undefined;
|
|
1474
|
+
role?: string | undefined;
|
|
1475
|
+
name?: string | undefined;
|
|
1476
|
+
} | undefined;
|
|
1477
|
+
route?: {
|
|
1503
1478
|
contains?: string | undefined;
|
|
1479
|
+
pathname?: string | undefined;
|
|
1504
1480
|
} | undefined;
|
|
1505
1481
|
console?: {
|
|
1506
1482
|
level?: string | undefined;
|
|
@@ -1508,7 +1484,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1508
1484
|
} | undefined;
|
|
1509
1485
|
signalData?: Record<string, unknown> | undefined;
|
|
1510
1486
|
signalCount?: number | undefined;
|
|
1511
|
-
}>>;
|
|
1487
|
+
}>]>>;
|
|
1512
1488
|
/**
|
|
1513
1489
|
* Anchors whose CONTENT must not be asserted (e.g. LLM output). Replay asserts
|
|
1514
1490
|
* presence, not words. Compiled from a `mark-dynamic` annotation.
|
|
@@ -1530,16 +1506,16 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1530
1506
|
column?: number | undefined;
|
|
1531
1507
|
}>>;
|
|
1532
1508
|
}, "strip", z.ZodTypeAny, {
|
|
1533
|
-
kind: "testid";
|
|
1534
1509
|
value: string;
|
|
1510
|
+
kind: "testid";
|
|
1535
1511
|
source?: {
|
|
1536
1512
|
file: string;
|
|
1537
1513
|
line: number;
|
|
1538
1514
|
column?: number | undefined;
|
|
1539
1515
|
} | undefined;
|
|
1540
1516
|
}, {
|
|
1541
|
-
kind: "testid";
|
|
1542
1517
|
value: string;
|
|
1518
|
+
kind: "testid";
|
|
1543
1519
|
source?: {
|
|
1544
1520
|
file: string;
|
|
1545
1521
|
line: number;
|
|
@@ -1561,11 +1537,11 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1561
1537
|
kind: z.ZodLiteral<"signal">;
|
|
1562
1538
|
name: z.ZodString;
|
|
1563
1539
|
}, "strip", z.ZodTypeAny, {
|
|
1564
|
-
kind: "signal";
|
|
1565
1540
|
name: string;
|
|
1566
|
-
}, {
|
|
1567
1541
|
kind: "signal";
|
|
1542
|
+
}, {
|
|
1568
1543
|
name: string;
|
|
1544
|
+
kind: "signal";
|
|
1569
1545
|
}>, z.ZodObject<{
|
|
1570
1546
|
kind: z.ZodLiteral<"component">;
|
|
1571
1547
|
component: z.ZodOptional<z.ZodString>;
|
|
@@ -1588,22 +1564,22 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1588
1564
|
kind: "component";
|
|
1589
1565
|
role?: string | undefined;
|
|
1590
1566
|
component?: string | undefined;
|
|
1567
|
+
name?: string | undefined;
|
|
1591
1568
|
source?: {
|
|
1592
1569
|
file: string;
|
|
1593
1570
|
line: number;
|
|
1594
1571
|
column?: number | undefined;
|
|
1595
1572
|
} | undefined;
|
|
1596
|
-
name?: string | undefined;
|
|
1597
1573
|
}, {
|
|
1598
1574
|
kind: "component";
|
|
1599
1575
|
role?: string | undefined;
|
|
1600
1576
|
component?: string | undefined;
|
|
1577
|
+
name?: string | undefined;
|
|
1601
1578
|
source?: {
|
|
1602
1579
|
file: string;
|
|
1603
1580
|
line: number;
|
|
1604
1581
|
column?: number | undefined;
|
|
1605
1582
|
} | undefined;
|
|
1606
|
-
name?: string | undefined;
|
|
1607
1583
|
}>]>, "many">>;
|
|
1608
1584
|
/**
|
|
1609
1585
|
* Free-form labels a suite selects on — `smoke`, `checkout`, `slow`.
|
|
@@ -1643,13 +1619,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1643
1619
|
/** Consecutive runs that did not show it. One quiet run is not a fix; see learnFromRun. */
|
|
1644
1620
|
cleanRuns: z.ZodOptional<z.ZodNumber>;
|
|
1645
1621
|
}, "strip", z.ZodTypeAny, {
|
|
1646
|
-
state: "open" | "guarded";
|
|
1647
1622
|
step: number;
|
|
1623
|
+
state: "open" | "guarded";
|
|
1648
1624
|
kind: string;
|
|
1649
1625
|
cleanRuns?: number | undefined;
|
|
1650
1626
|
}, {
|
|
1651
|
-
state: "open" | "guarded";
|
|
1652
1627
|
step: number;
|
|
1628
|
+
state: "open" | "guarded";
|
|
1653
1629
|
kind: string;
|
|
1654
1630
|
cleanRuns?: number | undefined;
|
|
1655
1631
|
}>, "many">>;
|
|
@@ -1694,33 +1670,99 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1694
1670
|
until: z.ZodOptional<z.ZodString>;
|
|
1695
1671
|
}, "strip", z.ZodTypeAny, {
|
|
1696
1672
|
reason: string;
|
|
1697
|
-
since: string;
|
|
1698
1673
|
owner: string;
|
|
1674
|
+
since: string;
|
|
1699
1675
|
until?: string | undefined;
|
|
1700
1676
|
}, {
|
|
1701
1677
|
reason: string;
|
|
1702
|
-
since: string;
|
|
1703
1678
|
owner: string;
|
|
1679
|
+
since: string;
|
|
1704
1680
|
until?: string | undefined;
|
|
1705
1681
|
}>>;
|
|
1706
1682
|
}, "strip", z.ZodTypeAny, {
|
|
1707
1683
|
name: string;
|
|
1708
1684
|
steps: FlowStep[];
|
|
1709
|
-
version: 1;
|
|
1710
1685
|
createdAt: number;
|
|
1686
|
+
version: number;
|
|
1687
|
+
intent?: string | undefined;
|
|
1688
|
+
status?: "active" | "quarantined" | "draft" | undefined;
|
|
1689
|
+
learned?: {
|
|
1690
|
+
step: number;
|
|
1691
|
+
state: "open" | "guarded";
|
|
1692
|
+
kind: string;
|
|
1693
|
+
cleanRuns?: number | undefined;
|
|
1694
|
+
}[] | undefined;
|
|
1695
|
+
intentId?: string | undefined;
|
|
1696
|
+
projectId?: string | undefined;
|
|
1697
|
+
startPath?: string | undefined;
|
|
1698
|
+
fixture?: string | undefined;
|
|
1699
|
+
requires?: Predicate[] | undefined;
|
|
1700
|
+
ensures?: Predicate[] | undefined;
|
|
1701
|
+
signalTimeoutMs?: number | undefined;
|
|
1702
|
+
success?: Predicate | undefined;
|
|
1703
|
+
dynamic?: ({
|
|
1704
|
+
value: string;
|
|
1705
|
+
kind: "testid";
|
|
1706
|
+
source?: {
|
|
1707
|
+
file: string;
|
|
1708
|
+
line: number;
|
|
1709
|
+
column?: number | undefined;
|
|
1710
|
+
} | undefined;
|
|
1711
|
+
} | {
|
|
1712
|
+
role: string;
|
|
1713
|
+
kind: "role";
|
|
1714
|
+
name?: string | undefined;
|
|
1715
|
+
} | {
|
|
1716
|
+
name: string;
|
|
1717
|
+
kind: "signal";
|
|
1718
|
+
} | {
|
|
1719
|
+
kind: "component";
|
|
1720
|
+
role?: string | undefined;
|
|
1721
|
+
component?: string | undefined;
|
|
1722
|
+
name?: string | undefined;
|
|
1723
|
+
source?: {
|
|
1724
|
+
file: string;
|
|
1725
|
+
line: number;
|
|
1726
|
+
column?: number | undefined;
|
|
1727
|
+
} | undefined;
|
|
1728
|
+
})[] | undefined;
|
|
1729
|
+
labels?: string[] | undefined;
|
|
1730
|
+
needs?: string[] | undefined;
|
|
1731
|
+
knownBugs?: {
|
|
1732
|
+
id: string;
|
|
1733
|
+
summary: string;
|
|
1734
|
+
assertions: string[];
|
|
1735
|
+
}[] | undefined;
|
|
1736
|
+
quarantine?: {
|
|
1737
|
+
reason: string;
|
|
1738
|
+
owner: string;
|
|
1739
|
+
since: string;
|
|
1740
|
+
until?: string | undefined;
|
|
1741
|
+
} | undefined;
|
|
1742
|
+
}, {
|
|
1743
|
+
name: string;
|
|
1744
|
+
steps: FlowStep[];
|
|
1745
|
+
createdAt: number;
|
|
1746
|
+
version: number;
|
|
1711
1747
|
intent?: string | undefined;
|
|
1712
1748
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
1749
|
+
learned?: {
|
|
1750
|
+
step: number;
|
|
1751
|
+
state: "open" | "guarded";
|
|
1752
|
+
kind: string;
|
|
1753
|
+
cleanRuns?: number | undefined;
|
|
1754
|
+
}[] | undefined;
|
|
1713
1755
|
intentId?: string | undefined;
|
|
1714
1756
|
projectId?: string | undefined;
|
|
1715
1757
|
startPath?: string | undefined;
|
|
1716
1758
|
fixture?: string | undefined;
|
|
1717
|
-
requires?: {
|
|
1759
|
+
requires?: (Predicate | {
|
|
1718
1760
|
signal?: string | undefined;
|
|
1719
1761
|
text?: {
|
|
1720
1762
|
contains: string;
|
|
1721
1763
|
visible?: boolean | undefined;
|
|
1722
|
-
absent?: boolean | undefined;
|
|
1723
1764
|
scope?: string | undefined;
|
|
1765
|
+
absent?: boolean | undefined;
|
|
1724
1766
|
} | undefined;
|
|
1725
1767
|
net?: {
|
|
1726
1768
|
status?: number | undefined;
|
|
@@ -1735,86 +1777,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1735
1777
|
hold?: boolean | undefined;
|
|
1736
1778
|
} | undefined;
|
|
1737
1779
|
element?: {
|
|
1738
|
-
role?: string | undefined;
|
|
1739
1780
|
testid?: string | undefined;
|
|
1781
|
+
role?: string | undefined;
|
|
1740
1782
|
name?: string | undefined;
|
|
1741
1783
|
} | undefined;
|
|
1742
1784
|
route?: {
|
|
1743
|
-
pathname?: string | undefined;
|
|
1744
1785
|
contains?: string | undefined;
|
|
1745
|
-
} | undefined;
|
|
1746
|
-
console?: {
|
|
1747
|
-
level?: string | undefined;
|
|
1748
|
-
absent?: boolean | undefined;
|
|
1749
|
-
} | undefined;
|
|
1750
|
-
signalData?: Record<string, unknown> | undefined;
|
|
1751
|
-
signalCount?: number | undefined;
|
|
1752
|
-
}[] | undefined;
|
|
1753
|
-
ensures?: {
|
|
1754
|
-
signal?: string | undefined;
|
|
1755
|
-
text?: {
|
|
1756
|
-
contains: string;
|
|
1757
|
-
visible?: boolean | undefined;
|
|
1758
|
-
absent?: boolean | undefined;
|
|
1759
|
-
scope?: string | undefined;
|
|
1760
|
-
} | undefined;
|
|
1761
|
-
net?: {
|
|
1762
|
-
status?: number | undefined;
|
|
1763
|
-
method?: string | undefined;
|
|
1764
|
-
urlContains?: string | undefined;
|
|
1765
|
-
count?: number | undefined;
|
|
1766
|
-
} | undefined;
|
|
1767
|
-
state?: {
|
|
1768
|
-
path: string;
|
|
1769
|
-
store?: string | undefined;
|
|
1770
|
-
equals?: unknown;
|
|
1771
|
-
hold?: boolean | undefined;
|
|
1772
|
-
} | undefined;
|
|
1773
|
-
element?: {
|
|
1774
|
-
role?: string | undefined;
|
|
1775
|
-
testid?: string | undefined;
|
|
1776
|
-
name?: string | undefined;
|
|
1777
|
-
} | undefined;
|
|
1778
|
-
route?: {
|
|
1779
|
-
pathname?: string | undefined;
|
|
1780
|
-
contains?: string | undefined;
|
|
1781
|
-
} | undefined;
|
|
1782
|
-
console?: {
|
|
1783
|
-
level?: string | undefined;
|
|
1784
|
-
absent?: boolean | undefined;
|
|
1785
|
-
} | undefined;
|
|
1786
|
-
signalData?: Record<string, unknown> | undefined;
|
|
1787
|
-
signalCount?: number | undefined;
|
|
1788
|
-
}[] | undefined;
|
|
1789
|
-
signalTimeoutMs?: number | undefined;
|
|
1790
|
-
success?: {
|
|
1791
|
-
signal?: string | undefined;
|
|
1792
|
-
text?: {
|
|
1793
|
-
contains: string;
|
|
1794
|
-
visible?: boolean | undefined;
|
|
1795
|
-
absent?: boolean | undefined;
|
|
1796
|
-
scope?: string | undefined;
|
|
1797
|
-
} | undefined;
|
|
1798
|
-
net?: {
|
|
1799
|
-
status?: number | undefined;
|
|
1800
|
-
method?: string | undefined;
|
|
1801
|
-
urlContains?: string | undefined;
|
|
1802
|
-
count?: number | undefined;
|
|
1803
|
-
} | undefined;
|
|
1804
|
-
state?: {
|
|
1805
|
-
path: string;
|
|
1806
|
-
store?: string | undefined;
|
|
1807
|
-
equals?: unknown;
|
|
1808
|
-
hold?: boolean | undefined;
|
|
1809
|
-
} | undefined;
|
|
1810
|
-
element?: {
|
|
1811
|
-
role?: string | undefined;
|
|
1812
|
-
testid?: string | undefined;
|
|
1813
|
-
name?: string | undefined;
|
|
1814
|
-
} | undefined;
|
|
1815
|
-
route?: {
|
|
1816
1786
|
pathname?: string | undefined;
|
|
1817
|
-
contains?: string | undefined;
|
|
1818
1787
|
} | undefined;
|
|
1819
1788
|
console?: {
|
|
1820
1789
|
level?: string | undefined;
|
|
@@ -1822,107 +1791,15 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1822
1791
|
} | undefined;
|
|
1823
1792
|
signalData?: Record<string, unknown> | undefined;
|
|
1824
1793
|
signalCount?: number | undefined;
|
|
1825
|
-
} | undefined;
|
|
1826
|
-
dynamic?: ({
|
|
1827
|
-
kind: "testid";
|
|
1828
|
-
value: string;
|
|
1829
|
-
source?: {
|
|
1830
|
-
file: string;
|
|
1831
|
-
line: number;
|
|
1832
|
-
column?: number | undefined;
|
|
1833
|
-
} | undefined;
|
|
1834
|
-
} | {
|
|
1835
|
-
role: string;
|
|
1836
|
-
kind: "role";
|
|
1837
|
-
name?: string | undefined;
|
|
1838
|
-
} | {
|
|
1839
|
-
kind: "signal";
|
|
1840
|
-
name: string;
|
|
1841
|
-
} | {
|
|
1842
|
-
kind: "component";
|
|
1843
|
-
role?: string | undefined;
|
|
1844
|
-
component?: string | undefined;
|
|
1845
|
-
source?: {
|
|
1846
|
-
file: string;
|
|
1847
|
-
line: number;
|
|
1848
|
-
column?: number | undefined;
|
|
1849
|
-
} | undefined;
|
|
1850
|
-
name?: string | undefined;
|
|
1851
1794
|
})[] | undefined;
|
|
1852
|
-
|
|
1853
|
-
needs?: string[] | undefined;
|
|
1854
|
-
learned?: {
|
|
1855
|
-
state: "open" | "guarded";
|
|
1856
|
-
step: number;
|
|
1857
|
-
kind: string;
|
|
1858
|
-
cleanRuns?: number | undefined;
|
|
1859
|
-
}[] | undefined;
|
|
1860
|
-
knownBugs?: {
|
|
1861
|
-
id: string;
|
|
1862
|
-
summary: string;
|
|
1863
|
-
assertions: string[];
|
|
1864
|
-
}[] | undefined;
|
|
1865
|
-
quarantine?: {
|
|
1866
|
-
reason: string;
|
|
1867
|
-
since: string;
|
|
1868
|
-
owner: string;
|
|
1869
|
-
until?: string | undefined;
|
|
1870
|
-
} | undefined;
|
|
1871
|
-
}, {
|
|
1872
|
-
name: string;
|
|
1873
|
-
steps: FlowStep[];
|
|
1874
|
-
version: 1;
|
|
1875
|
-
createdAt: number;
|
|
1876
|
-
intent?: string | undefined;
|
|
1877
|
-
status?: "active" | "quarantined" | "draft" | undefined;
|
|
1878
|
-
intentId?: string | undefined;
|
|
1879
|
-
projectId?: string | undefined;
|
|
1880
|
-
startPath?: string | undefined;
|
|
1881
|
-
fixture?: string | undefined;
|
|
1882
|
-
requires?: {
|
|
1795
|
+
ensures?: (Predicate | {
|
|
1883
1796
|
signal?: string | undefined;
|
|
1884
1797
|
text?: {
|
|
1885
1798
|
contains: string;
|
|
1886
1799
|
visible?: boolean | undefined;
|
|
1887
|
-
absent?: boolean | undefined;
|
|
1888
1800
|
scope?: string | undefined;
|
|
1889
|
-
} | undefined;
|
|
1890
|
-
net?: {
|
|
1891
|
-
status?: number | undefined;
|
|
1892
|
-
method?: string | undefined;
|
|
1893
|
-
urlContains?: string | undefined;
|
|
1894
|
-
count?: number | undefined;
|
|
1895
|
-
} | undefined;
|
|
1896
|
-
state?: {
|
|
1897
|
-
path: string;
|
|
1898
|
-
store?: string | undefined;
|
|
1899
|
-
equals?: unknown;
|
|
1900
|
-
hold?: boolean | undefined;
|
|
1901
|
-
} | undefined;
|
|
1902
|
-
element?: {
|
|
1903
|
-
role?: string | undefined;
|
|
1904
|
-
testid?: string | undefined;
|
|
1905
|
-
name?: string | undefined;
|
|
1906
|
-
} | undefined;
|
|
1907
|
-
route?: {
|
|
1908
|
-
pathname?: string | undefined;
|
|
1909
|
-
contains?: string | undefined;
|
|
1910
|
-
} | undefined;
|
|
1911
|
-
console?: {
|
|
1912
|
-
level?: string | undefined;
|
|
1913
1801
|
absent?: boolean | undefined;
|
|
1914
1802
|
} | undefined;
|
|
1915
|
-
signalData?: Record<string, unknown> | undefined;
|
|
1916
|
-
signalCount?: number | undefined;
|
|
1917
|
-
}[] | undefined;
|
|
1918
|
-
ensures?: {
|
|
1919
|
-
signal?: string | undefined;
|
|
1920
|
-
text?: {
|
|
1921
|
-
contains: string;
|
|
1922
|
-
visible?: boolean | undefined;
|
|
1923
|
-
absent?: boolean | undefined;
|
|
1924
|
-
scope?: string | undefined;
|
|
1925
|
-
} | undefined;
|
|
1926
1803
|
net?: {
|
|
1927
1804
|
status?: number | undefined;
|
|
1928
1805
|
method?: string | undefined;
|
|
@@ -1936,13 +1813,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1936
1813
|
hold?: boolean | undefined;
|
|
1937
1814
|
} | undefined;
|
|
1938
1815
|
element?: {
|
|
1939
|
-
role?: string | undefined;
|
|
1940
1816
|
testid?: string | undefined;
|
|
1817
|
+
role?: string | undefined;
|
|
1941
1818
|
name?: string | undefined;
|
|
1942
1819
|
} | undefined;
|
|
1943
1820
|
route?: {
|
|
1944
|
-
pathname?: string | undefined;
|
|
1945
1821
|
contains?: string | undefined;
|
|
1822
|
+
pathname?: string | undefined;
|
|
1946
1823
|
} | undefined;
|
|
1947
1824
|
console?: {
|
|
1948
1825
|
level?: string | undefined;
|
|
@@ -1950,15 +1827,15 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1950
1827
|
} | undefined;
|
|
1951
1828
|
signalData?: Record<string, unknown> | undefined;
|
|
1952
1829
|
signalCount?: number | undefined;
|
|
1953
|
-
}[] | undefined;
|
|
1830
|
+
})[] | undefined;
|
|
1954
1831
|
signalTimeoutMs?: number | undefined;
|
|
1955
|
-
success?: {
|
|
1832
|
+
success?: Predicate | {
|
|
1956
1833
|
signal?: string | undefined;
|
|
1957
1834
|
text?: {
|
|
1958
1835
|
contains: string;
|
|
1959
1836
|
visible?: boolean | undefined;
|
|
1960
|
-
absent?: boolean | undefined;
|
|
1961
1837
|
scope?: string | undefined;
|
|
1838
|
+
absent?: boolean | undefined;
|
|
1962
1839
|
} | undefined;
|
|
1963
1840
|
net?: {
|
|
1964
1841
|
status?: number | undefined;
|
|
@@ -1973,13 +1850,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1973
1850
|
hold?: boolean | undefined;
|
|
1974
1851
|
} | undefined;
|
|
1975
1852
|
element?: {
|
|
1976
|
-
role?: string | undefined;
|
|
1977
1853
|
testid?: string | undefined;
|
|
1854
|
+
role?: string | undefined;
|
|
1978
1855
|
name?: string | undefined;
|
|
1979
1856
|
} | undefined;
|
|
1980
1857
|
route?: {
|
|
1981
|
-
pathname?: string | undefined;
|
|
1982
1858
|
contains?: string | undefined;
|
|
1859
|
+
pathname?: string | undefined;
|
|
1983
1860
|
} | undefined;
|
|
1984
1861
|
console?: {
|
|
1985
1862
|
level?: string | undefined;
|
|
@@ -1989,8 +1866,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1989
1866
|
signalCount?: number | undefined;
|
|
1990
1867
|
} | undefined;
|
|
1991
1868
|
dynamic?: ({
|
|
1992
|
-
kind: "testid";
|
|
1993
1869
|
value: string;
|
|
1870
|
+
kind: "testid";
|
|
1994
1871
|
source?: {
|
|
1995
1872
|
file: string;
|
|
1996
1873
|
line: number;
|
|
@@ -2001,27 +1878,21 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
2001
1878
|
kind: "role";
|
|
2002
1879
|
name?: string | undefined;
|
|
2003
1880
|
} | {
|
|
2004
|
-
kind: "signal";
|
|
2005
1881
|
name: string;
|
|
1882
|
+
kind: "signal";
|
|
2006
1883
|
} | {
|
|
2007
1884
|
kind: "component";
|
|
2008
1885
|
role?: string | undefined;
|
|
2009
1886
|
component?: string | undefined;
|
|
1887
|
+
name?: string | undefined;
|
|
2010
1888
|
source?: {
|
|
2011
1889
|
file: string;
|
|
2012
1890
|
line: number;
|
|
2013
1891
|
column?: number | undefined;
|
|
2014
1892
|
} | undefined;
|
|
2015
|
-
name?: string | undefined;
|
|
2016
1893
|
})[] | undefined;
|
|
2017
1894
|
labels?: string[] | undefined;
|
|
2018
1895
|
needs?: string[] | undefined;
|
|
2019
|
-
learned?: {
|
|
2020
|
-
state: "open" | "guarded";
|
|
2021
|
-
step: number;
|
|
2022
|
-
kind: string;
|
|
2023
|
-
cleanRuns?: number | undefined;
|
|
2024
|
-
}[] | undefined;
|
|
2025
1896
|
knownBugs?: {
|
|
2026
1897
|
id: string;
|
|
2027
1898
|
summary: string;
|
|
@@ -2029,8 +1900,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
2029
1900
|
}[] | undefined;
|
|
2030
1901
|
quarantine?: {
|
|
2031
1902
|
reason: string;
|
|
2032
|
-
since: string;
|
|
2033
1903
|
owner: string;
|
|
1904
|
+
since: string;
|
|
2034
1905
|
until?: string | undefined;
|
|
2035
1906
|
} | undefined;
|
|
2036
1907
|
}>;
|
|
@@ -2060,7 +1931,11 @@ export declare function isQuarantined(flow: Pick<FlowFile, 'status' | 'quarantin
|
|
|
2060
1931
|
export declare const RecordedFlowSchema: z.ZodObject<{
|
|
2061
1932
|
name: z.ZodString;
|
|
2062
1933
|
flow: z.ZodObject<{
|
|
2063
|
-
|
|
1934
|
+
/**
|
|
1935
|
+
* The format this file was WRITTEN in. Both readable versions are accepted, because a v1 file is
|
|
1936
|
+
* lifted rather than refused — see READABLE_FLOW_VERSIONS.
|
|
1937
|
+
*/
|
|
1938
|
+
version: z.ZodEffects<z.ZodNumber, number, number>;
|
|
2064
1939
|
name: z.ZodString;
|
|
2065
1940
|
/**
|
|
2066
1941
|
* The business goal this flow exists to verify, one line (e.g. "ship a deploy to production").
|
|
@@ -2116,52 +1991,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2116
1991
|
* Same predicate shape as a step's `expect`, deliberately — a precondition is just a consequence
|
|
2117
1992
|
* somebody else's flow was responsible for.
|
|
2118
1993
|
*/
|
|
2119
|
-
requires: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2120
|
-
/**
|
|
2121
|
-
* The route the step must have reached — the consequence of a NAVIGATION.
|
|
2122
|
-
*
|
|
2123
|
-
* Absent until now, and its absence was not a corner case: navigation is one of the commonest
|
|
2124
|
-
* journeys there is, and every route-asserted drive saved a flow that could never go red. Found
|
|
2125
|
-
* by driving a real app, where `act_and_wait { until: { kind: "route" } }` returned
|
|
2126
|
-
* `verified: "yes"` and the flow saved from that same drive graded `assertion-free`.
|
|
2127
|
-
*
|
|
2128
|
-
* Additive and optional, so a flow file written before it still parses and FLOW_FILE_VERSION
|
|
2129
|
-
* stays 1 — the same treatment `signalData` and `signalCount` had.
|
|
2130
|
-
*/
|
|
1994
|
+
requires: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
2131
1995
|
route: z.ZodOptional<z.ZodObject<{
|
|
2132
1996
|
pathname: z.ZodOptional<z.ZodString>;
|
|
2133
1997
|
contains: z.ZodOptional<z.ZodString>;
|
|
2134
1998
|
}, "strip", z.ZodTypeAny, {
|
|
2135
|
-
pathname?: string | undefined;
|
|
2136
1999
|
contains?: string | undefined;
|
|
2137
|
-
}, {
|
|
2138
2000
|
pathname?: string | undefined;
|
|
2001
|
+
}, {
|
|
2139
2002
|
contains?: string | undefined;
|
|
2003
|
+
pathname?: string | undefined;
|
|
2140
2004
|
}>>;
|
|
2141
2005
|
signal: z.ZodOptional<z.ZodString>;
|
|
2142
|
-
/**
|
|
2143
|
-
* Optional payload shape an `assert-signal` annotation requires the signal
|
|
2144
|
-
* to match (the predicate DSL's signal.dataMatches). Additive/optional — a flow file with a
|
|
2145
|
-
* bare `signal` still parses, and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
2146
|
-
*/
|
|
2147
2006
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2148
|
-
/**
|
|
2149
|
-
* Exact number of times the signal must have fired — the signal-side twin of `net.count`, and the
|
|
2150
|
-
* only way a saved flow can keep a cardinality the agent actually asserted. Without it a
|
|
2151
|
-
* `count: 1` drive would be recorded as bare presence, which is a strictly WEAKER claim than the
|
|
2152
|
-
* one made: the replayed flow then goes green on the double-fire it was recorded to catch.
|
|
2153
|
-
* Additive/optional — a flow file with a bare `signal` still parses, and FLOW_FILE_VERSION stays 1.
|
|
2154
|
-
*/
|
|
2155
2007
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
2156
2008
|
net: z.ZodOptional<z.ZodObject<{
|
|
2157
2009
|
method: z.ZodOptional<z.ZodString>;
|
|
2158
2010
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
2159
2011
|
status: z.ZodOptional<z.ZodNumber>;
|
|
2160
|
-
/**
|
|
2161
|
-
* Exact number of matching requests since the action — turns presence into a cardinality
|
|
2162
|
-
* assertion. Catches the double-submit / useEffect-double-fire / retry-storm regression class:
|
|
2163
|
-
* the request fired (presence passes) but fired the WRONG number of times. Omit = presence (≥1).
|
|
2164
|
-
*/
|
|
2165
2012
|
count: z.ZodOptional<z.ZodNumber>;
|
|
2166
2013
|
}, "strict", z.ZodTypeAny, {
|
|
2167
2014
|
status?: number | undefined;
|
|
@@ -2174,12 +2021,6 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2174
2021
|
urlContains?: string | undefined;
|
|
2175
2022
|
count?: number | undefined;
|
|
2176
2023
|
}>>;
|
|
2177
|
-
/**
|
|
2178
|
-
* Console golden end-condition: assert the action logged (or, with absent:true, did NOT log) a
|
|
2179
|
-
* console message at `level` (default 'error'). `absent:true` is the common case — "the action
|
|
2180
|
-
* completed with a clean console" — catching the regression where an action throws a caught error
|
|
2181
|
-
* / logs an uncaught rejection while the UI still renders fine (a presence check passes it).
|
|
2182
|
-
*/
|
|
2183
2024
|
console: z.ZodOptional<z.ZodObject<{
|
|
2184
2025
|
level: z.ZodOptional<z.ZodString>;
|
|
2185
2026
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2195,64 +2036,34 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2195
2036
|
role: z.ZodOptional<z.ZodString>;
|
|
2196
2037
|
name: z.ZodOptional<z.ZodString>;
|
|
2197
2038
|
}, "strict", z.ZodTypeAny, {
|
|
2198
|
-
role?: string | undefined;
|
|
2199
2039
|
testid?: string | undefined;
|
|
2040
|
+
role?: string | undefined;
|
|
2200
2041
|
name?: string | undefined;
|
|
2201
2042
|
}, {
|
|
2202
|
-
role?: string | undefined;
|
|
2203
2043
|
testid?: string | undefined;
|
|
2044
|
+
role?: string | undefined;
|
|
2204
2045
|
name?: string | undefined;
|
|
2205
2046
|
}>>;
|
|
2206
|
-
/**
|
|
2207
|
-
* Rendered text as an end-condition, using the shapes the assert surface already accepts.
|
|
2208
|
-
*
|
|
2209
|
-
* The gap this closes: an app with no testids, no `reticle.signal`, no registrable store and no
|
|
2210
|
-
* network call on the interaction under test -- a discount price computed and rendered, a
|
|
2211
|
-
* formatted total, a derived label -- could not produce an asserted flow AT ALL. Everything the
|
|
2212
|
-
* vocabulary offered needed a channel that app does not have, so the only honest outcome was
|
|
2213
|
-
* `assertion-free`, which is a permanent green (#811).
|
|
2214
|
-
*
|
|
2215
|
-
* Derived-DOM rendering is a large share of what actually breaks in a UI, and it was the share
|
|
2216
|
-
* that could not be pinned.
|
|
2217
|
-
*
|
|
2218
|
-
* Classified PRESENCE, not consequence, and that is not a technicality: text is read from the
|
|
2219
|
-
* DOM, so a locator healed to the wrong element can still satisfy it. It earns `presence-only`,
|
|
2220
|
-
* which is a real grade above `assertion-free` and honestly below `signal`/`net`/`state`.
|
|
2221
|
-
*/
|
|
2222
2047
|
text: z.ZodOptional<z.ZodObject<{
|
|
2223
2048
|
contains: z.ZodString;
|
|
2224
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
2225
2049
|
scope: z.ZodOptional<z.ZodString>;
|
|
2226
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
2227
2050
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
2228
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
2229
2051
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
2230
2052
|
}, "strict", z.ZodTypeAny, {
|
|
2231
2053
|
contains: string;
|
|
2232
2054
|
visible?: boolean | undefined;
|
|
2233
|
-
absent?: boolean | undefined;
|
|
2234
2055
|
scope?: string | undefined;
|
|
2056
|
+
absent?: boolean | undefined;
|
|
2235
2057
|
}, {
|
|
2236
2058
|
contains: string;
|
|
2237
2059
|
visible?: boolean | undefined;
|
|
2238
|
-
absent?: boolean | undefined;
|
|
2239
2060
|
scope?: string | undefined;
|
|
2061
|
+
absent?: boolean | undefined;
|
|
2240
2062
|
}>>;
|
|
2241
|
-
/**
|
|
2242
|
-
* Assert a registered store's value — the source of truth no DOM/network read can reach. Compiles
|
|
2243
|
-
* to the predicate engine's `state` predicate. Additive/optional — a flow without it still parses
|
|
2244
|
-
* and the on-disk version stays FLOW_FILE_VERSION 1. `equals` accepts a literal, omitted = presence,
|
|
2245
|
-
* or a `{ $gte | $contains | $length }` operator pattern.
|
|
2246
|
-
*/
|
|
2247
2063
|
state: z.ZodOptional<z.ZodObject<{
|
|
2248
2064
|
store: z.ZodOptional<z.ZodString>;
|
|
2249
2065
|
path: z.ZodString;
|
|
2250
2066
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
2251
|
-
/**
|
|
2252
|
-
* Treat this as an INVARIANT that must still hold AFTER the action settles, rather than a
|
|
2253
|
-
* condition to wait for. Set it for a blast-radius check ("this unrelated path must NOT have
|
|
2254
|
-
* moved") — without it a wait-until-true read passes before an over-reaching side-effect lands.
|
|
2255
|
-
*/
|
|
2256
2067
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
2257
2068
|
}, "strict", z.ZodTypeAny, {
|
|
2258
2069
|
path: string;
|
|
@@ -2270,8 +2081,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2270
2081
|
text?: {
|
|
2271
2082
|
contains: string;
|
|
2272
2083
|
visible?: boolean | undefined;
|
|
2273
|
-
absent?: boolean | undefined;
|
|
2274
2084
|
scope?: string | undefined;
|
|
2085
|
+
absent?: boolean | undefined;
|
|
2275
2086
|
} | undefined;
|
|
2276
2087
|
net?: {
|
|
2277
2088
|
status?: number | undefined;
|
|
@@ -2286,13 +2097,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2286
2097
|
hold?: boolean | undefined;
|
|
2287
2098
|
} | undefined;
|
|
2288
2099
|
element?: {
|
|
2289
|
-
role?: string | undefined;
|
|
2290
2100
|
testid?: string | undefined;
|
|
2101
|
+
role?: string | undefined;
|
|
2291
2102
|
name?: string | undefined;
|
|
2292
2103
|
} | undefined;
|
|
2293
2104
|
route?: {
|
|
2294
|
-
pathname?: string | undefined;
|
|
2295
2105
|
contains?: string | undefined;
|
|
2106
|
+
pathname?: string | undefined;
|
|
2296
2107
|
} | undefined;
|
|
2297
2108
|
console?: {
|
|
2298
2109
|
level?: string | undefined;
|
|
@@ -2305,8 +2116,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2305
2116
|
text?: {
|
|
2306
2117
|
contains: string;
|
|
2307
2118
|
visible?: boolean | undefined;
|
|
2308
|
-
absent?: boolean | undefined;
|
|
2309
2119
|
scope?: string | undefined;
|
|
2120
|
+
absent?: boolean | undefined;
|
|
2310
2121
|
} | undefined;
|
|
2311
2122
|
net?: {
|
|
2312
2123
|
status?: number | undefined;
|
|
@@ -2321,13 +2132,149 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2321
2132
|
hold?: boolean | undefined;
|
|
2322
2133
|
} | undefined;
|
|
2323
2134
|
element?: {
|
|
2135
|
+
testid?: string | undefined;
|
|
2324
2136
|
role?: string | undefined;
|
|
2137
|
+
name?: string | undefined;
|
|
2138
|
+
} | undefined;
|
|
2139
|
+
route?: {
|
|
2140
|
+
contains?: string | undefined;
|
|
2141
|
+
pathname?: string | undefined;
|
|
2142
|
+
} | undefined;
|
|
2143
|
+
console?: {
|
|
2144
|
+
level?: string | undefined;
|
|
2145
|
+
absent?: boolean | undefined;
|
|
2146
|
+
} | undefined;
|
|
2147
|
+
signalData?: Record<string, unknown> | undefined;
|
|
2148
|
+
signalCount?: number | undefined;
|
|
2149
|
+
}>, {
|
|
2150
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
2151
|
+
query: import("../index.js").ElementQuery;
|
|
2152
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
2153
|
+
absent?: boolean;
|
|
2154
|
+
} | {
|
|
2155
|
+
kind: typeof PredicateKind.TEXT;
|
|
2156
|
+
contains?: string;
|
|
2157
|
+
visible?: boolean;
|
|
2158
|
+
absent?: boolean;
|
|
2159
|
+
scope?: string;
|
|
2160
|
+
self?: boolean;
|
|
2161
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2162
|
+
} | {
|
|
2163
|
+
kind: typeof PredicateKind.NET;
|
|
2164
|
+
method?: string;
|
|
2165
|
+
urlContains?: string;
|
|
2166
|
+
status?: number;
|
|
2167
|
+
ok?: boolean;
|
|
2168
|
+
since?: number;
|
|
2169
|
+
count?: number;
|
|
2170
|
+
bodyContains?: string;
|
|
2171
|
+
bodyMatches?: Record<string, unknown>;
|
|
2172
|
+
requestBodyContains?: string;
|
|
2173
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
2174
|
+
} | {
|
|
2175
|
+
kind: typeof PredicateKind.ROUTE;
|
|
2176
|
+
pathname?: string;
|
|
2177
|
+
contains?: string;
|
|
2178
|
+
since?: number;
|
|
2179
|
+
} | {
|
|
2180
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
2181
|
+
level?: string;
|
|
2182
|
+
contains?: string;
|
|
2183
|
+
absent?: boolean;
|
|
2184
|
+
since?: number;
|
|
2185
|
+
} | {
|
|
2186
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
2187
|
+
name?: string;
|
|
2188
|
+
target?: string;
|
|
2189
|
+
completed?: boolean;
|
|
2190
|
+
since?: number;
|
|
2191
|
+
} | {
|
|
2192
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
2193
|
+
name?: string;
|
|
2194
|
+
dataMatches?: Record<string, unknown>;
|
|
2195
|
+
count?: number;
|
|
2196
|
+
since?: number;
|
|
2197
|
+
} | {
|
|
2198
|
+
kind: typeof PredicateKind.STATE;
|
|
2199
|
+
store?: string;
|
|
2200
|
+
path: string;
|
|
2201
|
+
equals?: unknown;
|
|
2202
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2203
|
+
} | {
|
|
2204
|
+
kind: typeof PredicateKind.SETTLED;
|
|
2205
|
+
quietMs?: number;
|
|
2206
|
+
} | {
|
|
2207
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
2208
|
+
predicates: Predicate[];
|
|
2209
|
+
} | {
|
|
2210
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
2211
|
+
predicates: Predicate[];
|
|
2212
|
+
} | {
|
|
2213
|
+
kind: typeof PredicateKind.NOT;
|
|
2214
|
+
predicate: Predicate;
|
|
2215
|
+
} | undefined, {
|
|
2216
|
+
signal?: string | undefined;
|
|
2217
|
+
text?: {
|
|
2218
|
+
contains: string;
|
|
2219
|
+
visible?: boolean | undefined;
|
|
2220
|
+
scope?: string | undefined;
|
|
2221
|
+
absent?: boolean | undefined;
|
|
2222
|
+
} | undefined;
|
|
2223
|
+
net?: {
|
|
2224
|
+
status?: number | undefined;
|
|
2225
|
+
method?: string | undefined;
|
|
2226
|
+
urlContains?: string | undefined;
|
|
2227
|
+
count?: number | undefined;
|
|
2228
|
+
} | undefined;
|
|
2229
|
+
state?: {
|
|
2230
|
+
path: string;
|
|
2231
|
+
store?: string | undefined;
|
|
2232
|
+
equals?: unknown;
|
|
2233
|
+
hold?: boolean | undefined;
|
|
2234
|
+
} | undefined;
|
|
2235
|
+
element?: {
|
|
2325
2236
|
testid?: string | undefined;
|
|
2237
|
+
role?: string | undefined;
|
|
2326
2238
|
name?: string | undefined;
|
|
2327
2239
|
} | undefined;
|
|
2328
2240
|
route?: {
|
|
2241
|
+
contains?: string | undefined;
|
|
2329
2242
|
pathname?: string | undefined;
|
|
2243
|
+
} | undefined;
|
|
2244
|
+
console?: {
|
|
2245
|
+
level?: string | undefined;
|
|
2246
|
+
absent?: boolean | undefined;
|
|
2247
|
+
} | undefined;
|
|
2248
|
+
signalData?: Record<string, unknown> | undefined;
|
|
2249
|
+
signalCount?: number | undefined;
|
|
2250
|
+
}>]>, "many">, Predicate[], (Predicate | {
|
|
2251
|
+
signal?: string | undefined;
|
|
2252
|
+
text?: {
|
|
2253
|
+
contains: string;
|
|
2254
|
+
visible?: boolean | undefined;
|
|
2255
|
+
scope?: string | undefined;
|
|
2256
|
+
absent?: boolean | undefined;
|
|
2257
|
+
} | undefined;
|
|
2258
|
+
net?: {
|
|
2259
|
+
status?: number | undefined;
|
|
2260
|
+
method?: string | undefined;
|
|
2261
|
+
urlContains?: string | undefined;
|
|
2262
|
+
count?: number | undefined;
|
|
2263
|
+
} | undefined;
|
|
2264
|
+
state?: {
|
|
2265
|
+
path: string;
|
|
2266
|
+
store?: string | undefined;
|
|
2267
|
+
equals?: unknown;
|
|
2268
|
+
hold?: boolean | undefined;
|
|
2269
|
+
} | undefined;
|
|
2270
|
+
element?: {
|
|
2271
|
+
testid?: string | undefined;
|
|
2272
|
+
role?: string | undefined;
|
|
2273
|
+
name?: string | undefined;
|
|
2274
|
+
} | undefined;
|
|
2275
|
+
route?: {
|
|
2330
2276
|
contains?: string | undefined;
|
|
2277
|
+
pathname?: string | undefined;
|
|
2331
2278
|
} | undefined;
|
|
2332
2279
|
console?: {
|
|
2333
2280
|
level?: string | undefined;
|
|
@@ -2335,53 +2282,25 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2335
2282
|
} | undefined;
|
|
2336
2283
|
signalData?: Record<string, unknown> | undefined;
|
|
2337
2284
|
signalCount?: number | undefined;
|
|
2338
|
-
}
|
|
2339
|
-
ensures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2340
|
-
/**
|
|
2341
|
-
* The route the step must have reached — the consequence of a NAVIGATION.
|
|
2342
|
-
*
|
|
2343
|
-
* Absent until now, and its absence was not a corner case: navigation is one of the commonest
|
|
2344
|
-
* journeys there is, and every route-asserted drive saved a flow that could never go red. Found
|
|
2345
|
-
* by driving a real app, where `act_and_wait { until: { kind: "route" } }` returned
|
|
2346
|
-
* `verified: "yes"` and the flow saved from that same drive graded `assertion-free`.
|
|
2347
|
-
*
|
|
2348
|
-
* Additive and optional, so a flow file written before it still parses and FLOW_FILE_VERSION
|
|
2349
|
-
* stays 1 — the same treatment `signalData` and `signalCount` had.
|
|
2350
|
-
*/
|
|
2285
|
+
})[]>>;
|
|
2286
|
+
ensures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
2351
2287
|
route: z.ZodOptional<z.ZodObject<{
|
|
2352
2288
|
pathname: z.ZodOptional<z.ZodString>;
|
|
2353
2289
|
contains: z.ZodOptional<z.ZodString>;
|
|
2354
2290
|
}, "strip", z.ZodTypeAny, {
|
|
2355
|
-
pathname?: string | undefined;
|
|
2356
2291
|
contains?: string | undefined;
|
|
2357
|
-
}, {
|
|
2358
2292
|
pathname?: string | undefined;
|
|
2293
|
+
}, {
|
|
2359
2294
|
contains?: string | undefined;
|
|
2295
|
+
pathname?: string | undefined;
|
|
2360
2296
|
}>>;
|
|
2361
2297
|
signal: z.ZodOptional<z.ZodString>;
|
|
2362
|
-
/**
|
|
2363
|
-
* Optional payload shape an `assert-signal` annotation requires the signal
|
|
2364
|
-
* to match (the predicate DSL's signal.dataMatches). Additive/optional — a flow file with a
|
|
2365
|
-
* bare `signal` still parses, and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
2366
|
-
*/
|
|
2367
2298
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2368
|
-
/**
|
|
2369
|
-
* Exact number of times the signal must have fired — the signal-side twin of `net.count`, and the
|
|
2370
|
-
* only way a saved flow can keep a cardinality the agent actually asserted. Without it a
|
|
2371
|
-
* `count: 1` drive would be recorded as bare presence, which is a strictly WEAKER claim than the
|
|
2372
|
-
* one made: the replayed flow then goes green on the double-fire it was recorded to catch.
|
|
2373
|
-
* Additive/optional — a flow file with a bare `signal` still parses, and FLOW_FILE_VERSION stays 1.
|
|
2374
|
-
*/
|
|
2375
2299
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
2376
2300
|
net: z.ZodOptional<z.ZodObject<{
|
|
2377
2301
|
method: z.ZodOptional<z.ZodString>;
|
|
2378
2302
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
2379
2303
|
status: z.ZodOptional<z.ZodNumber>;
|
|
2380
|
-
/**
|
|
2381
|
-
* Exact number of matching requests since the action — turns presence into a cardinality
|
|
2382
|
-
* assertion. Catches the double-submit / useEffect-double-fire / retry-storm regression class:
|
|
2383
|
-
* the request fired (presence passes) but fired the WRONG number of times. Omit = presence (≥1).
|
|
2384
|
-
*/
|
|
2385
2304
|
count: z.ZodOptional<z.ZodNumber>;
|
|
2386
2305
|
}, "strict", z.ZodTypeAny, {
|
|
2387
2306
|
status?: number | undefined;
|
|
@@ -2394,12 +2313,6 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2394
2313
|
urlContains?: string | undefined;
|
|
2395
2314
|
count?: number | undefined;
|
|
2396
2315
|
}>>;
|
|
2397
|
-
/**
|
|
2398
|
-
* Console golden end-condition: assert the action logged (or, with absent:true, did NOT log) a
|
|
2399
|
-
* console message at `level` (default 'error'). `absent:true` is the common case — "the action
|
|
2400
|
-
* completed with a clean console" — catching the regression where an action throws a caught error
|
|
2401
|
-
* / logs an uncaught rejection while the UI still renders fine (a presence check passes it).
|
|
2402
|
-
*/
|
|
2403
2316
|
console: z.ZodOptional<z.ZodObject<{
|
|
2404
2317
|
level: z.ZodOptional<z.ZodString>;
|
|
2405
2318
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2415,64 +2328,34 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2415
2328
|
role: z.ZodOptional<z.ZodString>;
|
|
2416
2329
|
name: z.ZodOptional<z.ZodString>;
|
|
2417
2330
|
}, "strict", z.ZodTypeAny, {
|
|
2418
|
-
role?: string | undefined;
|
|
2419
2331
|
testid?: string | undefined;
|
|
2332
|
+
role?: string | undefined;
|
|
2420
2333
|
name?: string | undefined;
|
|
2421
2334
|
}, {
|
|
2422
|
-
role?: string | undefined;
|
|
2423
2335
|
testid?: string | undefined;
|
|
2336
|
+
role?: string | undefined;
|
|
2424
2337
|
name?: string | undefined;
|
|
2425
2338
|
}>>;
|
|
2426
|
-
/**
|
|
2427
|
-
* Rendered text as an end-condition, using the shapes the assert surface already accepts.
|
|
2428
|
-
*
|
|
2429
|
-
* The gap this closes: an app with no testids, no `reticle.signal`, no registrable store and no
|
|
2430
|
-
* network call on the interaction under test -- a discount price computed and rendered, a
|
|
2431
|
-
* formatted total, a derived label -- could not produce an asserted flow AT ALL. Everything the
|
|
2432
|
-
* vocabulary offered needed a channel that app does not have, so the only honest outcome was
|
|
2433
|
-
* `assertion-free`, which is a permanent green (#811).
|
|
2434
|
-
*
|
|
2435
|
-
* Derived-DOM rendering is a large share of what actually breaks in a UI, and it was the share
|
|
2436
|
-
* that could not be pinned.
|
|
2437
|
-
*
|
|
2438
|
-
* Classified PRESENCE, not consequence, and that is not a technicality: text is read from the
|
|
2439
|
-
* DOM, so a locator healed to the wrong element can still satisfy it. It earns `presence-only`,
|
|
2440
|
-
* which is a real grade above `assertion-free` and honestly below `signal`/`net`/`state`.
|
|
2441
|
-
*/
|
|
2442
2339
|
text: z.ZodOptional<z.ZodObject<{
|
|
2443
2340
|
contains: z.ZodString;
|
|
2444
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
2445
2341
|
scope: z.ZodOptional<z.ZodString>;
|
|
2446
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
2447
2342
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
2448
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
2449
2343
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
2450
2344
|
}, "strict", z.ZodTypeAny, {
|
|
2451
2345
|
contains: string;
|
|
2452
2346
|
visible?: boolean | undefined;
|
|
2453
|
-
absent?: boolean | undefined;
|
|
2454
2347
|
scope?: string | undefined;
|
|
2348
|
+
absent?: boolean | undefined;
|
|
2455
2349
|
}, {
|
|
2456
2350
|
contains: string;
|
|
2457
2351
|
visible?: boolean | undefined;
|
|
2458
|
-
absent?: boolean | undefined;
|
|
2459
2352
|
scope?: string | undefined;
|
|
2353
|
+
absent?: boolean | undefined;
|
|
2460
2354
|
}>>;
|
|
2461
|
-
/**
|
|
2462
|
-
* Assert a registered store's value — the source of truth no DOM/network read can reach. Compiles
|
|
2463
|
-
* to the predicate engine's `state` predicate. Additive/optional — a flow without it still parses
|
|
2464
|
-
* and the on-disk version stays FLOW_FILE_VERSION 1. `equals` accepts a literal, omitted = presence,
|
|
2465
|
-
* or a `{ $gte | $contains | $length }` operator pattern.
|
|
2466
|
-
*/
|
|
2467
2355
|
state: z.ZodOptional<z.ZodObject<{
|
|
2468
2356
|
store: z.ZodOptional<z.ZodString>;
|
|
2469
2357
|
path: z.ZodString;
|
|
2470
2358
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
2471
|
-
/**
|
|
2472
|
-
* Treat this as an INVARIANT that must still hold AFTER the action settles, rather than a
|
|
2473
|
-
* condition to wait for. Set it for a blast-radius check ("this unrelated path must NOT have
|
|
2474
|
-
* moved") — without it a wait-until-true read passes before an over-reaching side-effect lands.
|
|
2475
|
-
*/
|
|
2476
2359
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
2477
2360
|
}, "strict", z.ZodTypeAny, {
|
|
2478
2361
|
path: string;
|
|
@@ -2490,8 +2373,144 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2490
2373
|
text?: {
|
|
2491
2374
|
contains: string;
|
|
2492
2375
|
visible?: boolean | undefined;
|
|
2493
|
-
absent?: boolean | undefined;
|
|
2494
2376
|
scope?: string | undefined;
|
|
2377
|
+
absent?: boolean | undefined;
|
|
2378
|
+
} | undefined;
|
|
2379
|
+
net?: {
|
|
2380
|
+
status?: number | undefined;
|
|
2381
|
+
method?: string | undefined;
|
|
2382
|
+
urlContains?: string | undefined;
|
|
2383
|
+
count?: number | undefined;
|
|
2384
|
+
} | undefined;
|
|
2385
|
+
state?: {
|
|
2386
|
+
path: string;
|
|
2387
|
+
store?: string | undefined;
|
|
2388
|
+
equals?: unknown;
|
|
2389
|
+
hold?: boolean | undefined;
|
|
2390
|
+
} | undefined;
|
|
2391
|
+
element?: {
|
|
2392
|
+
testid?: string | undefined;
|
|
2393
|
+
role?: string | undefined;
|
|
2394
|
+
name?: string | undefined;
|
|
2395
|
+
} | undefined;
|
|
2396
|
+
route?: {
|
|
2397
|
+
contains?: string | undefined;
|
|
2398
|
+
pathname?: string | undefined;
|
|
2399
|
+
} | undefined;
|
|
2400
|
+
console?: {
|
|
2401
|
+
level?: string | undefined;
|
|
2402
|
+
absent?: boolean | undefined;
|
|
2403
|
+
} | undefined;
|
|
2404
|
+
signalData?: Record<string, unknown> | undefined;
|
|
2405
|
+
signalCount?: number | undefined;
|
|
2406
|
+
}, {
|
|
2407
|
+
signal?: string | undefined;
|
|
2408
|
+
text?: {
|
|
2409
|
+
contains: string;
|
|
2410
|
+
visible?: boolean | undefined;
|
|
2411
|
+
scope?: string | undefined;
|
|
2412
|
+
absent?: boolean | undefined;
|
|
2413
|
+
} | undefined;
|
|
2414
|
+
net?: {
|
|
2415
|
+
status?: number | undefined;
|
|
2416
|
+
method?: string | undefined;
|
|
2417
|
+
urlContains?: string | undefined;
|
|
2418
|
+
count?: number | undefined;
|
|
2419
|
+
} | undefined;
|
|
2420
|
+
state?: {
|
|
2421
|
+
path: string;
|
|
2422
|
+
store?: string | undefined;
|
|
2423
|
+
equals?: unknown;
|
|
2424
|
+
hold?: boolean | undefined;
|
|
2425
|
+
} | undefined;
|
|
2426
|
+
element?: {
|
|
2427
|
+
testid?: string | undefined;
|
|
2428
|
+
role?: string | undefined;
|
|
2429
|
+
name?: string | undefined;
|
|
2430
|
+
} | undefined;
|
|
2431
|
+
route?: {
|
|
2432
|
+
contains?: string | undefined;
|
|
2433
|
+
pathname?: string | undefined;
|
|
2434
|
+
} | undefined;
|
|
2435
|
+
console?: {
|
|
2436
|
+
level?: string | undefined;
|
|
2437
|
+
absent?: boolean | undefined;
|
|
2438
|
+
} | undefined;
|
|
2439
|
+
signalData?: Record<string, unknown> | undefined;
|
|
2440
|
+
signalCount?: number | undefined;
|
|
2441
|
+
}>, {
|
|
2442
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
2443
|
+
query: import("../index.js").ElementQuery;
|
|
2444
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
2445
|
+
absent?: boolean;
|
|
2446
|
+
} | {
|
|
2447
|
+
kind: typeof PredicateKind.TEXT;
|
|
2448
|
+
contains?: string;
|
|
2449
|
+
visible?: boolean;
|
|
2450
|
+
absent?: boolean;
|
|
2451
|
+
scope?: string;
|
|
2452
|
+
self?: boolean;
|
|
2453
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2454
|
+
} | {
|
|
2455
|
+
kind: typeof PredicateKind.NET;
|
|
2456
|
+
method?: string;
|
|
2457
|
+
urlContains?: string;
|
|
2458
|
+
status?: number;
|
|
2459
|
+
ok?: boolean;
|
|
2460
|
+
since?: number;
|
|
2461
|
+
count?: number;
|
|
2462
|
+
bodyContains?: string;
|
|
2463
|
+
bodyMatches?: Record<string, unknown>;
|
|
2464
|
+
requestBodyContains?: string;
|
|
2465
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
2466
|
+
} | {
|
|
2467
|
+
kind: typeof PredicateKind.ROUTE;
|
|
2468
|
+
pathname?: string;
|
|
2469
|
+
contains?: string;
|
|
2470
|
+
since?: number;
|
|
2471
|
+
} | {
|
|
2472
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
2473
|
+
level?: string;
|
|
2474
|
+
contains?: string;
|
|
2475
|
+
absent?: boolean;
|
|
2476
|
+
since?: number;
|
|
2477
|
+
} | {
|
|
2478
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
2479
|
+
name?: string;
|
|
2480
|
+
target?: string;
|
|
2481
|
+
completed?: boolean;
|
|
2482
|
+
since?: number;
|
|
2483
|
+
} | {
|
|
2484
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
2485
|
+
name?: string;
|
|
2486
|
+
dataMatches?: Record<string, unknown>;
|
|
2487
|
+
count?: number;
|
|
2488
|
+
since?: number;
|
|
2489
|
+
} | {
|
|
2490
|
+
kind: typeof PredicateKind.STATE;
|
|
2491
|
+
store?: string;
|
|
2492
|
+
path: string;
|
|
2493
|
+
equals?: unknown;
|
|
2494
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2495
|
+
} | {
|
|
2496
|
+
kind: typeof PredicateKind.SETTLED;
|
|
2497
|
+
quietMs?: number;
|
|
2498
|
+
} | {
|
|
2499
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
2500
|
+
predicates: Predicate[];
|
|
2501
|
+
} | {
|
|
2502
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
2503
|
+
predicates: Predicate[];
|
|
2504
|
+
} | {
|
|
2505
|
+
kind: typeof PredicateKind.NOT;
|
|
2506
|
+
predicate: Predicate;
|
|
2507
|
+
} | undefined, {
|
|
2508
|
+
signal?: string | undefined;
|
|
2509
|
+
text?: {
|
|
2510
|
+
contains: string;
|
|
2511
|
+
visible?: boolean | undefined;
|
|
2512
|
+
scope?: string | undefined;
|
|
2513
|
+
absent?: boolean | undefined;
|
|
2495
2514
|
} | undefined;
|
|
2496
2515
|
net?: {
|
|
2497
2516
|
status?: number | undefined;
|
|
@@ -2506,13 +2525,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2506
2525
|
hold?: boolean | undefined;
|
|
2507
2526
|
} | undefined;
|
|
2508
2527
|
element?: {
|
|
2509
|
-
role?: string | undefined;
|
|
2510
2528
|
testid?: string | undefined;
|
|
2529
|
+
role?: string | undefined;
|
|
2511
2530
|
name?: string | undefined;
|
|
2512
2531
|
} | undefined;
|
|
2513
2532
|
route?: {
|
|
2514
|
-
pathname?: string | undefined;
|
|
2515
2533
|
contains?: string | undefined;
|
|
2534
|
+
pathname?: string | undefined;
|
|
2516
2535
|
} | undefined;
|
|
2517
2536
|
console?: {
|
|
2518
2537
|
level?: string | undefined;
|
|
@@ -2520,13 +2539,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2520
2539
|
} | undefined;
|
|
2521
2540
|
signalData?: Record<string, unknown> | undefined;
|
|
2522
2541
|
signalCount?: number | undefined;
|
|
2523
|
-
}, {
|
|
2542
|
+
}>]>, "many">, Predicate[], (Predicate | {
|
|
2524
2543
|
signal?: string | undefined;
|
|
2525
2544
|
text?: {
|
|
2526
2545
|
contains: string;
|
|
2527
2546
|
visible?: boolean | undefined;
|
|
2528
|
-
absent?: boolean | undefined;
|
|
2529
2547
|
scope?: string | undefined;
|
|
2548
|
+
absent?: boolean | undefined;
|
|
2530
2549
|
} | undefined;
|
|
2531
2550
|
net?: {
|
|
2532
2551
|
status?: number | undefined;
|
|
@@ -2541,13 +2560,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2541
2560
|
hold?: boolean | undefined;
|
|
2542
2561
|
} | undefined;
|
|
2543
2562
|
element?: {
|
|
2544
|
-
role?: string | undefined;
|
|
2545
2563
|
testid?: string | undefined;
|
|
2564
|
+
role?: string | undefined;
|
|
2546
2565
|
name?: string | undefined;
|
|
2547
2566
|
} | undefined;
|
|
2548
2567
|
route?: {
|
|
2549
|
-
pathname?: string | undefined;
|
|
2550
2568
|
contains?: string | undefined;
|
|
2569
|
+
pathname?: string | undefined;
|
|
2551
2570
|
} | undefined;
|
|
2552
2571
|
console?: {
|
|
2553
2572
|
level?: string | undefined;
|
|
@@ -2555,7 +2574,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2555
2574
|
} | undefined;
|
|
2556
2575
|
signalData?: Record<string, unknown> | undefined;
|
|
2557
2576
|
signalCount?: number | undefined;
|
|
2558
|
-
}
|
|
2577
|
+
})[]>>;
|
|
2559
2578
|
/** From the injected clock (ms) — deterministic in tests, byte-stable on disk. */
|
|
2560
2579
|
createdAt: z.ZodNumber;
|
|
2561
2580
|
steps: z.ZodArray<z.ZodType<FlowStep, z.ZodTypeDef, FlowStep>, "many">;
|
|
@@ -2568,52 +2587,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2568
2587
|
* replays exactly as before and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
2569
2588
|
*/
|
|
2570
2589
|
signalTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
2571
|
-
success: z.ZodOptional<z.ZodObject<{
|
|
2572
|
-
/**
|
|
2573
|
-
* The route the step must have reached — the consequence of a NAVIGATION.
|
|
2574
|
-
*
|
|
2575
|
-
* Absent until now, and its absence was not a corner case: navigation is one of the commonest
|
|
2576
|
-
* journeys there is, and every route-asserted drive saved a flow that could never go red. Found
|
|
2577
|
-
* by driving a real app, where `act_and_wait { until: { kind: "route" } }` returned
|
|
2578
|
-
* `verified: "yes"` and the flow saved from that same drive graded `assertion-free`.
|
|
2579
|
-
*
|
|
2580
|
-
* Additive and optional, so a flow file written before it still parses and FLOW_FILE_VERSION
|
|
2581
|
-
* stays 1 — the same treatment `signalData` and `signalCount` had.
|
|
2582
|
-
*/
|
|
2590
|
+
success: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
2583
2591
|
route: z.ZodOptional<z.ZodObject<{
|
|
2584
2592
|
pathname: z.ZodOptional<z.ZodString>;
|
|
2585
2593
|
contains: z.ZodOptional<z.ZodString>;
|
|
2586
2594
|
}, "strip", z.ZodTypeAny, {
|
|
2587
|
-
pathname?: string | undefined;
|
|
2588
2595
|
contains?: string | undefined;
|
|
2589
|
-
}, {
|
|
2590
2596
|
pathname?: string | undefined;
|
|
2597
|
+
}, {
|
|
2591
2598
|
contains?: string | undefined;
|
|
2599
|
+
pathname?: string | undefined;
|
|
2592
2600
|
}>>;
|
|
2593
2601
|
signal: z.ZodOptional<z.ZodString>;
|
|
2594
|
-
/**
|
|
2595
|
-
* Optional payload shape an `assert-signal` annotation requires the signal
|
|
2596
|
-
* to match (the predicate DSL's signal.dataMatches). Additive/optional — a flow file with a
|
|
2597
|
-
* bare `signal` still parses, and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
2598
|
-
*/
|
|
2599
2602
|
signalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2600
|
-
/**
|
|
2601
|
-
* Exact number of times the signal must have fired — the signal-side twin of `net.count`, and the
|
|
2602
|
-
* only way a saved flow can keep a cardinality the agent actually asserted. Without it a
|
|
2603
|
-
* `count: 1` drive would be recorded as bare presence, which is a strictly WEAKER claim than the
|
|
2604
|
-
* one made: the replayed flow then goes green on the double-fire it was recorded to catch.
|
|
2605
|
-
* Additive/optional — a flow file with a bare `signal` still parses, and FLOW_FILE_VERSION stays 1.
|
|
2606
|
-
*/
|
|
2607
2603
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
2608
2604
|
net: z.ZodOptional<z.ZodObject<{
|
|
2609
2605
|
method: z.ZodOptional<z.ZodString>;
|
|
2610
2606
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
2611
2607
|
status: z.ZodOptional<z.ZodNumber>;
|
|
2612
|
-
/**
|
|
2613
|
-
* Exact number of matching requests since the action — turns presence into a cardinality
|
|
2614
|
-
* assertion. Catches the double-submit / useEffect-double-fire / retry-storm regression class:
|
|
2615
|
-
* the request fired (presence passes) but fired the WRONG number of times. Omit = presence (≥1).
|
|
2616
|
-
*/
|
|
2617
2608
|
count: z.ZodOptional<z.ZodNumber>;
|
|
2618
2609
|
}, "strict", z.ZodTypeAny, {
|
|
2619
2610
|
status?: number | undefined;
|
|
@@ -2626,12 +2617,6 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2626
2617
|
urlContains?: string | undefined;
|
|
2627
2618
|
count?: number | undefined;
|
|
2628
2619
|
}>>;
|
|
2629
|
-
/**
|
|
2630
|
-
* Console golden end-condition: assert the action logged (or, with absent:true, did NOT log) a
|
|
2631
|
-
* console message at `level` (default 'error'). `absent:true` is the common case — "the action
|
|
2632
|
-
* completed with a clean console" — catching the regression where an action throws a caught error
|
|
2633
|
-
* / logs an uncaught rejection while the UI still renders fine (a presence check passes it).
|
|
2634
|
-
*/
|
|
2635
2620
|
console: z.ZodOptional<z.ZodObject<{
|
|
2636
2621
|
level: z.ZodOptional<z.ZodString>;
|
|
2637
2622
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2647,64 +2632,34 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2647
2632
|
role: z.ZodOptional<z.ZodString>;
|
|
2648
2633
|
name: z.ZodOptional<z.ZodString>;
|
|
2649
2634
|
}, "strict", z.ZodTypeAny, {
|
|
2650
|
-
role?: string | undefined;
|
|
2651
2635
|
testid?: string | undefined;
|
|
2636
|
+
role?: string | undefined;
|
|
2652
2637
|
name?: string | undefined;
|
|
2653
2638
|
}, {
|
|
2654
|
-
role?: string | undefined;
|
|
2655
2639
|
testid?: string | undefined;
|
|
2640
|
+
role?: string | undefined;
|
|
2656
2641
|
name?: string | undefined;
|
|
2657
2642
|
}>>;
|
|
2658
|
-
/**
|
|
2659
|
-
* Rendered text as an end-condition, using the shapes the assert surface already accepts.
|
|
2660
|
-
*
|
|
2661
|
-
* The gap this closes: an app with no testids, no `reticle.signal`, no registrable store and no
|
|
2662
|
-
* network call on the interaction under test -- a discount price computed and rendered, a
|
|
2663
|
-
* formatted total, a derived label -- could not produce an asserted flow AT ALL. Everything the
|
|
2664
|
-
* vocabulary offered needed a channel that app does not have, so the only honest outcome was
|
|
2665
|
-
* `assertion-free`, which is a permanent green (#811).
|
|
2666
|
-
*
|
|
2667
|
-
* Derived-DOM rendering is a large share of what actually breaks in a UI, and it was the share
|
|
2668
|
-
* that could not be pinned.
|
|
2669
|
-
*
|
|
2670
|
-
* Classified PRESENCE, not consequence, and that is not a technicality: text is read from the
|
|
2671
|
-
* DOM, so a locator healed to the wrong element can still satisfy it. It earns `presence-only`,
|
|
2672
|
-
* which is a real grade above `assertion-free` and honestly below `signal`/`net`/`state`.
|
|
2673
|
-
*/
|
|
2674
2643
|
text: z.ZodOptional<z.ZodObject<{
|
|
2675
2644
|
contains: z.ZodString;
|
|
2676
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
2677
2645
|
scope: z.ZodOptional<z.ZodString>;
|
|
2678
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
2679
2646
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
2680
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
2681
2647
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
2682
2648
|
}, "strict", z.ZodTypeAny, {
|
|
2683
2649
|
contains: string;
|
|
2684
2650
|
visible?: boolean | undefined;
|
|
2685
|
-
absent?: boolean | undefined;
|
|
2686
2651
|
scope?: string | undefined;
|
|
2652
|
+
absent?: boolean | undefined;
|
|
2687
2653
|
}, {
|
|
2688
2654
|
contains: string;
|
|
2689
2655
|
visible?: boolean | undefined;
|
|
2690
|
-
absent?: boolean | undefined;
|
|
2691
2656
|
scope?: string | undefined;
|
|
2657
|
+
absent?: boolean | undefined;
|
|
2692
2658
|
}>>;
|
|
2693
|
-
/**
|
|
2694
|
-
* Assert a registered store's value — the source of truth no DOM/network read can reach. Compiles
|
|
2695
|
-
* to the predicate engine's `state` predicate. Additive/optional — a flow without it still parses
|
|
2696
|
-
* and the on-disk version stays FLOW_FILE_VERSION 1. `equals` accepts a literal, omitted = presence,
|
|
2697
|
-
* or a `{ $gte | $contains | $length }` operator pattern.
|
|
2698
|
-
*/
|
|
2699
2659
|
state: z.ZodOptional<z.ZodObject<{
|
|
2700
2660
|
store: z.ZodOptional<z.ZodString>;
|
|
2701
2661
|
path: z.ZodString;
|
|
2702
2662
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
2703
|
-
/**
|
|
2704
|
-
* Treat this as an INVARIANT that must still hold AFTER the action settles, rather than a
|
|
2705
|
-
* condition to wait for. Set it for a blast-radius check ("this unrelated path must NOT have
|
|
2706
|
-
* moved") — without it a wait-until-true read passes before an over-reaching side-effect lands.
|
|
2707
|
-
*/
|
|
2708
2663
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
2709
2664
|
}, "strict", z.ZodTypeAny, {
|
|
2710
2665
|
path: string;
|
|
@@ -2722,8 +2677,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2722
2677
|
text?: {
|
|
2723
2678
|
contains: string;
|
|
2724
2679
|
visible?: boolean | undefined;
|
|
2725
|
-
absent?: boolean | undefined;
|
|
2726
2680
|
scope?: string | undefined;
|
|
2681
|
+
absent?: boolean | undefined;
|
|
2727
2682
|
} | undefined;
|
|
2728
2683
|
net?: {
|
|
2729
2684
|
status?: number | undefined;
|
|
@@ -2738,13 +2693,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2738
2693
|
hold?: boolean | undefined;
|
|
2739
2694
|
} | undefined;
|
|
2740
2695
|
element?: {
|
|
2741
|
-
role?: string | undefined;
|
|
2742
2696
|
testid?: string | undefined;
|
|
2697
|
+
role?: string | undefined;
|
|
2743
2698
|
name?: string | undefined;
|
|
2744
2699
|
} | undefined;
|
|
2745
2700
|
route?: {
|
|
2746
|
-
pathname?: string | undefined;
|
|
2747
2701
|
contains?: string | undefined;
|
|
2702
|
+
pathname?: string | undefined;
|
|
2748
2703
|
} | undefined;
|
|
2749
2704
|
console?: {
|
|
2750
2705
|
level?: string | undefined;
|
|
@@ -2757,8 +2712,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2757
2712
|
text?: {
|
|
2758
2713
|
contains: string;
|
|
2759
2714
|
visible?: boolean | undefined;
|
|
2760
|
-
absent?: boolean | undefined;
|
|
2761
2715
|
scope?: string | undefined;
|
|
2716
|
+
absent?: boolean | undefined;
|
|
2762
2717
|
} | undefined;
|
|
2763
2718
|
net?: {
|
|
2764
2719
|
status?: number | undefined;
|
|
@@ -2773,13 +2728,114 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2773
2728
|
hold?: boolean | undefined;
|
|
2774
2729
|
} | undefined;
|
|
2775
2730
|
element?: {
|
|
2776
|
-
role?: string | undefined;
|
|
2777
2731
|
testid?: string | undefined;
|
|
2732
|
+
role?: string | undefined;
|
|
2778
2733
|
name?: string | undefined;
|
|
2779
2734
|
} | undefined;
|
|
2780
2735
|
route?: {
|
|
2736
|
+
contains?: string | undefined;
|
|
2781
2737
|
pathname?: string | undefined;
|
|
2738
|
+
} | undefined;
|
|
2739
|
+
console?: {
|
|
2740
|
+
level?: string | undefined;
|
|
2741
|
+
absent?: boolean | undefined;
|
|
2742
|
+
} | undefined;
|
|
2743
|
+
signalData?: Record<string, unknown> | undefined;
|
|
2744
|
+
signalCount?: number | undefined;
|
|
2745
|
+
}>, {
|
|
2746
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
2747
|
+
query: import("../index.js").ElementQuery;
|
|
2748
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
2749
|
+
absent?: boolean;
|
|
2750
|
+
} | {
|
|
2751
|
+
kind: typeof PredicateKind.TEXT;
|
|
2752
|
+
contains?: string;
|
|
2753
|
+
visible?: boolean;
|
|
2754
|
+
absent?: boolean;
|
|
2755
|
+
scope?: string;
|
|
2756
|
+
self?: boolean;
|
|
2757
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2758
|
+
} | {
|
|
2759
|
+
kind: typeof PredicateKind.NET;
|
|
2760
|
+
method?: string;
|
|
2761
|
+
urlContains?: string;
|
|
2762
|
+
status?: number;
|
|
2763
|
+
ok?: boolean;
|
|
2764
|
+
since?: number;
|
|
2765
|
+
count?: number;
|
|
2766
|
+
bodyContains?: string;
|
|
2767
|
+
bodyMatches?: Record<string, unknown>;
|
|
2768
|
+
requestBodyContains?: string;
|
|
2769
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
2770
|
+
} | {
|
|
2771
|
+
kind: typeof PredicateKind.ROUTE;
|
|
2772
|
+
pathname?: string;
|
|
2773
|
+
contains?: string;
|
|
2774
|
+
since?: number;
|
|
2775
|
+
} | {
|
|
2776
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
2777
|
+
level?: string;
|
|
2778
|
+
contains?: string;
|
|
2779
|
+
absent?: boolean;
|
|
2780
|
+
since?: number;
|
|
2781
|
+
} | {
|
|
2782
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
2783
|
+
name?: string;
|
|
2784
|
+
target?: string;
|
|
2785
|
+
completed?: boolean;
|
|
2786
|
+
since?: number;
|
|
2787
|
+
} | {
|
|
2788
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
2789
|
+
name?: string;
|
|
2790
|
+
dataMatches?: Record<string, unknown>;
|
|
2791
|
+
count?: number;
|
|
2792
|
+
since?: number;
|
|
2793
|
+
} | {
|
|
2794
|
+
kind: typeof PredicateKind.STATE;
|
|
2795
|
+
store?: string;
|
|
2796
|
+
path: string;
|
|
2797
|
+
equals?: unknown;
|
|
2798
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2799
|
+
} | {
|
|
2800
|
+
kind: typeof PredicateKind.SETTLED;
|
|
2801
|
+
quietMs?: number;
|
|
2802
|
+
} | {
|
|
2803
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
2804
|
+
predicates: Predicate[];
|
|
2805
|
+
} | {
|
|
2806
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
2807
|
+
predicates: Predicate[];
|
|
2808
|
+
} | {
|
|
2809
|
+
kind: typeof PredicateKind.NOT;
|
|
2810
|
+
predicate: Predicate;
|
|
2811
|
+
} | undefined, {
|
|
2812
|
+
signal?: string | undefined;
|
|
2813
|
+
text?: {
|
|
2814
|
+
contains: string;
|
|
2815
|
+
visible?: boolean | undefined;
|
|
2816
|
+
scope?: string | undefined;
|
|
2817
|
+
absent?: boolean | undefined;
|
|
2818
|
+
} | undefined;
|
|
2819
|
+
net?: {
|
|
2820
|
+
status?: number | undefined;
|
|
2821
|
+
method?: string | undefined;
|
|
2822
|
+
urlContains?: string | undefined;
|
|
2823
|
+
count?: number | undefined;
|
|
2824
|
+
} | undefined;
|
|
2825
|
+
state?: {
|
|
2826
|
+
path: string;
|
|
2827
|
+
store?: string | undefined;
|
|
2828
|
+
equals?: unknown;
|
|
2829
|
+
hold?: boolean | undefined;
|
|
2830
|
+
} | undefined;
|
|
2831
|
+
element?: {
|
|
2832
|
+
testid?: string | undefined;
|
|
2833
|
+
role?: string | undefined;
|
|
2834
|
+
name?: string | undefined;
|
|
2835
|
+
} | undefined;
|
|
2836
|
+
route?: {
|
|
2782
2837
|
contains?: string | undefined;
|
|
2838
|
+
pathname?: string | undefined;
|
|
2783
2839
|
} | undefined;
|
|
2784
2840
|
console?: {
|
|
2785
2841
|
level?: string | undefined;
|
|
@@ -2787,7 +2843,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2787
2843
|
} | undefined;
|
|
2788
2844
|
signalData?: Record<string, unknown> | undefined;
|
|
2789
2845
|
signalCount?: number | undefined;
|
|
2790
|
-
}>>;
|
|
2846
|
+
}>]>>;
|
|
2791
2847
|
/**
|
|
2792
2848
|
* Anchors whose CONTENT must not be asserted (e.g. LLM output). Replay asserts
|
|
2793
2849
|
* presence, not words. Compiled from a `mark-dynamic` annotation.
|
|
@@ -2809,16 +2865,16 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2809
2865
|
column?: number | undefined;
|
|
2810
2866
|
}>>;
|
|
2811
2867
|
}, "strip", z.ZodTypeAny, {
|
|
2812
|
-
kind: "testid";
|
|
2813
2868
|
value: string;
|
|
2869
|
+
kind: "testid";
|
|
2814
2870
|
source?: {
|
|
2815
2871
|
file: string;
|
|
2816
2872
|
line: number;
|
|
2817
2873
|
column?: number | undefined;
|
|
2818
2874
|
} | undefined;
|
|
2819
2875
|
}, {
|
|
2820
|
-
kind: "testid";
|
|
2821
2876
|
value: string;
|
|
2877
|
+
kind: "testid";
|
|
2822
2878
|
source?: {
|
|
2823
2879
|
file: string;
|
|
2824
2880
|
line: number;
|
|
@@ -2840,11 +2896,11 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2840
2896
|
kind: z.ZodLiteral<"signal">;
|
|
2841
2897
|
name: z.ZodString;
|
|
2842
2898
|
}, "strip", z.ZodTypeAny, {
|
|
2843
|
-
kind: "signal";
|
|
2844
2899
|
name: string;
|
|
2845
|
-
}, {
|
|
2846
2900
|
kind: "signal";
|
|
2901
|
+
}, {
|
|
2847
2902
|
name: string;
|
|
2903
|
+
kind: "signal";
|
|
2848
2904
|
}>, z.ZodObject<{
|
|
2849
2905
|
kind: z.ZodLiteral<"component">;
|
|
2850
2906
|
component: z.ZodOptional<z.ZodString>;
|
|
@@ -2867,22 +2923,22 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2867
2923
|
kind: "component";
|
|
2868
2924
|
role?: string | undefined;
|
|
2869
2925
|
component?: string | undefined;
|
|
2926
|
+
name?: string | undefined;
|
|
2870
2927
|
source?: {
|
|
2871
2928
|
file: string;
|
|
2872
2929
|
line: number;
|
|
2873
2930
|
column?: number | undefined;
|
|
2874
2931
|
} | undefined;
|
|
2875
|
-
name?: string | undefined;
|
|
2876
2932
|
}, {
|
|
2877
2933
|
kind: "component";
|
|
2878
2934
|
role?: string | undefined;
|
|
2879
2935
|
component?: string | undefined;
|
|
2936
|
+
name?: string | undefined;
|
|
2880
2937
|
source?: {
|
|
2881
2938
|
file: string;
|
|
2882
2939
|
line: number;
|
|
2883
2940
|
column?: number | undefined;
|
|
2884
2941
|
} | undefined;
|
|
2885
|
-
name?: string | undefined;
|
|
2886
2942
|
}>]>, "many">>;
|
|
2887
2943
|
/**
|
|
2888
2944
|
* Free-form labels a suite selects on — `smoke`, `checkout`, `slow`.
|
|
@@ -2922,13 +2978,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2922
2978
|
/** Consecutive runs that did not show it. One quiet run is not a fix; see learnFromRun. */
|
|
2923
2979
|
cleanRuns: z.ZodOptional<z.ZodNumber>;
|
|
2924
2980
|
}, "strip", z.ZodTypeAny, {
|
|
2925
|
-
state: "open" | "guarded";
|
|
2926
2981
|
step: number;
|
|
2982
|
+
state: "open" | "guarded";
|
|
2927
2983
|
kind: string;
|
|
2928
2984
|
cleanRuns?: number | undefined;
|
|
2929
2985
|
}, {
|
|
2930
|
-
state: "open" | "guarded";
|
|
2931
2986
|
step: number;
|
|
2987
|
+
state: "open" | "guarded";
|
|
2932
2988
|
kind: string;
|
|
2933
2989
|
cleanRuns?: number | undefined;
|
|
2934
2990
|
}>, "many">>;
|
|
@@ -2966,145 +3022,46 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2966
3022
|
* silent skip wearing a label: it removes the failure from the verdict AND the reason to ever fix
|
|
2967
3023
|
* it. `until` is the optional half — a date somebody has to look at it again.
|
|
2968
3024
|
*/
|
|
2969
|
-
quarantine: z.ZodOptional<z.ZodObject<{
|
|
2970
|
-
reason: z.ZodString;
|
|
2971
|
-
since: z.ZodString;
|
|
2972
|
-
owner: z.ZodString;
|
|
2973
|
-
until: z.ZodOptional<z.ZodString>;
|
|
2974
|
-
}, "strip", z.ZodTypeAny, {
|
|
2975
|
-
reason: string;
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
until?: string | undefined;
|
|
2979
|
-
}, {
|
|
2980
|
-
reason: string;
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
until?: string | undefined;
|
|
2984
|
-
}>>;
|
|
2985
|
-
}, "strip", z.ZodTypeAny, {
|
|
2986
|
-
name: string;
|
|
2987
|
-
steps: FlowStep[];
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
intent?: string | undefined;
|
|
2991
|
-
status?: "active" | "quarantined" | "draft" | undefined;
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
method?: string | undefined;
|
|
3007
|
-
urlContains?: string | undefined;
|
|
3008
|
-
count?: number | undefined;
|
|
3009
|
-
} | undefined;
|
|
3010
|
-
state?: {
|
|
3011
|
-
path: string;
|
|
3012
|
-
store?: string | undefined;
|
|
3013
|
-
equals?: unknown;
|
|
3014
|
-
hold?: boolean | undefined;
|
|
3015
|
-
} | undefined;
|
|
3016
|
-
element?: {
|
|
3017
|
-
role?: string | undefined;
|
|
3018
|
-
testid?: string | undefined;
|
|
3019
|
-
name?: string | undefined;
|
|
3020
|
-
} | undefined;
|
|
3021
|
-
route?: {
|
|
3022
|
-
pathname?: string | undefined;
|
|
3023
|
-
contains?: string | undefined;
|
|
3024
|
-
} | undefined;
|
|
3025
|
-
console?: {
|
|
3026
|
-
level?: string | undefined;
|
|
3027
|
-
absent?: boolean | undefined;
|
|
3028
|
-
} | undefined;
|
|
3029
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3030
|
-
signalCount?: number | undefined;
|
|
3031
|
-
}[] | undefined;
|
|
3032
|
-
ensures?: {
|
|
3033
|
-
signal?: string | undefined;
|
|
3034
|
-
text?: {
|
|
3035
|
-
contains: string;
|
|
3036
|
-
visible?: boolean | undefined;
|
|
3037
|
-
absent?: boolean | undefined;
|
|
3038
|
-
scope?: string | undefined;
|
|
3039
|
-
} | undefined;
|
|
3040
|
-
net?: {
|
|
3041
|
-
status?: number | undefined;
|
|
3042
|
-
method?: string | undefined;
|
|
3043
|
-
urlContains?: string | undefined;
|
|
3044
|
-
count?: number | undefined;
|
|
3045
|
-
} | undefined;
|
|
3046
|
-
state?: {
|
|
3047
|
-
path: string;
|
|
3048
|
-
store?: string | undefined;
|
|
3049
|
-
equals?: unknown;
|
|
3050
|
-
hold?: boolean | undefined;
|
|
3051
|
-
} | undefined;
|
|
3052
|
-
element?: {
|
|
3053
|
-
role?: string | undefined;
|
|
3054
|
-
testid?: string | undefined;
|
|
3055
|
-
name?: string | undefined;
|
|
3056
|
-
} | undefined;
|
|
3057
|
-
route?: {
|
|
3058
|
-
pathname?: string | undefined;
|
|
3059
|
-
contains?: string | undefined;
|
|
3060
|
-
} | undefined;
|
|
3061
|
-
console?: {
|
|
3062
|
-
level?: string | undefined;
|
|
3063
|
-
absent?: boolean | undefined;
|
|
3064
|
-
} | undefined;
|
|
3065
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3066
|
-
signalCount?: number | undefined;
|
|
3067
|
-
}[] | undefined;
|
|
3068
|
-
signalTimeoutMs?: number | undefined;
|
|
3069
|
-
success?: {
|
|
3070
|
-
signal?: string | undefined;
|
|
3071
|
-
text?: {
|
|
3072
|
-
contains: string;
|
|
3073
|
-
visible?: boolean | undefined;
|
|
3074
|
-
absent?: boolean | undefined;
|
|
3075
|
-
scope?: string | undefined;
|
|
3076
|
-
} | undefined;
|
|
3077
|
-
net?: {
|
|
3078
|
-
status?: number | undefined;
|
|
3079
|
-
method?: string | undefined;
|
|
3080
|
-
urlContains?: string | undefined;
|
|
3081
|
-
count?: number | undefined;
|
|
3082
|
-
} | undefined;
|
|
3083
|
-
state?: {
|
|
3084
|
-
path: string;
|
|
3085
|
-
store?: string | undefined;
|
|
3086
|
-
equals?: unknown;
|
|
3087
|
-
hold?: boolean | undefined;
|
|
3088
|
-
} | undefined;
|
|
3089
|
-
element?: {
|
|
3090
|
-
role?: string | undefined;
|
|
3091
|
-
testid?: string | undefined;
|
|
3092
|
-
name?: string | undefined;
|
|
3093
|
-
} | undefined;
|
|
3094
|
-
route?: {
|
|
3095
|
-
pathname?: string | undefined;
|
|
3096
|
-
contains?: string | undefined;
|
|
3097
|
-
} | undefined;
|
|
3098
|
-
console?: {
|
|
3099
|
-
level?: string | undefined;
|
|
3100
|
-
absent?: boolean | undefined;
|
|
3101
|
-
} | undefined;
|
|
3102
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3103
|
-
signalCount?: number | undefined;
|
|
3104
|
-
} | undefined;
|
|
3025
|
+
quarantine: z.ZodOptional<z.ZodObject<{
|
|
3026
|
+
reason: z.ZodString;
|
|
3027
|
+
since: z.ZodString;
|
|
3028
|
+
owner: z.ZodString;
|
|
3029
|
+
until: z.ZodOptional<z.ZodString>;
|
|
3030
|
+
}, "strip", z.ZodTypeAny, {
|
|
3031
|
+
reason: string;
|
|
3032
|
+
owner: string;
|
|
3033
|
+
since: string;
|
|
3034
|
+
until?: string | undefined;
|
|
3035
|
+
}, {
|
|
3036
|
+
reason: string;
|
|
3037
|
+
owner: string;
|
|
3038
|
+
since: string;
|
|
3039
|
+
until?: string | undefined;
|
|
3040
|
+
}>>;
|
|
3041
|
+
}, "strip", z.ZodTypeAny, {
|
|
3042
|
+
name: string;
|
|
3043
|
+
steps: FlowStep[];
|
|
3044
|
+
createdAt: number;
|
|
3045
|
+
version: number;
|
|
3046
|
+
intent?: string | undefined;
|
|
3047
|
+
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3048
|
+
learned?: {
|
|
3049
|
+
step: number;
|
|
3050
|
+
state: "open" | "guarded";
|
|
3051
|
+
kind: string;
|
|
3052
|
+
cleanRuns?: number | undefined;
|
|
3053
|
+
}[] | undefined;
|
|
3054
|
+
intentId?: string | undefined;
|
|
3055
|
+
projectId?: string | undefined;
|
|
3056
|
+
startPath?: string | undefined;
|
|
3057
|
+
fixture?: string | undefined;
|
|
3058
|
+
requires?: Predicate[] | undefined;
|
|
3059
|
+
ensures?: Predicate[] | undefined;
|
|
3060
|
+
signalTimeoutMs?: number | undefined;
|
|
3061
|
+
success?: Predicate | undefined;
|
|
3105
3062
|
dynamic?: ({
|
|
3106
|
-
kind: "testid";
|
|
3107
3063
|
value: string;
|
|
3064
|
+
kind: "testid";
|
|
3108
3065
|
source?: {
|
|
3109
3066
|
file: string;
|
|
3110
3067
|
line: number;
|
|
@@ -3115,27 +3072,21 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3115
3072
|
kind: "role";
|
|
3116
3073
|
name?: string | undefined;
|
|
3117
3074
|
} | {
|
|
3118
|
-
kind: "signal";
|
|
3119
3075
|
name: string;
|
|
3076
|
+
kind: "signal";
|
|
3120
3077
|
} | {
|
|
3121
3078
|
kind: "component";
|
|
3122
3079
|
role?: string | undefined;
|
|
3123
3080
|
component?: string | undefined;
|
|
3081
|
+
name?: string | undefined;
|
|
3124
3082
|
source?: {
|
|
3125
3083
|
file: string;
|
|
3126
3084
|
line: number;
|
|
3127
3085
|
column?: number | undefined;
|
|
3128
3086
|
} | undefined;
|
|
3129
|
-
name?: string | undefined;
|
|
3130
3087
|
})[] | undefined;
|
|
3131
3088
|
labels?: string[] | undefined;
|
|
3132
3089
|
needs?: string[] | undefined;
|
|
3133
|
-
learned?: {
|
|
3134
|
-
state: "open" | "guarded";
|
|
3135
|
-
step: number;
|
|
3136
|
-
kind: string;
|
|
3137
|
-
cleanRuns?: number | undefined;
|
|
3138
|
-
}[] | undefined;
|
|
3139
3090
|
knownBugs?: {
|
|
3140
3091
|
id: string;
|
|
3141
3092
|
summary: string;
|
|
@@ -3143,28 +3094,34 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3143
3094
|
}[] | undefined;
|
|
3144
3095
|
quarantine?: {
|
|
3145
3096
|
reason: string;
|
|
3146
|
-
since: string;
|
|
3147
3097
|
owner: string;
|
|
3098
|
+
since: string;
|
|
3148
3099
|
until?: string | undefined;
|
|
3149
3100
|
} | undefined;
|
|
3150
3101
|
}, {
|
|
3151
3102
|
name: string;
|
|
3152
3103
|
steps: FlowStep[];
|
|
3153
|
-
version: 1;
|
|
3154
3104
|
createdAt: number;
|
|
3105
|
+
version: number;
|
|
3155
3106
|
intent?: string | undefined;
|
|
3156
3107
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3108
|
+
learned?: {
|
|
3109
|
+
step: number;
|
|
3110
|
+
state: "open" | "guarded";
|
|
3111
|
+
kind: string;
|
|
3112
|
+
cleanRuns?: number | undefined;
|
|
3113
|
+
}[] | undefined;
|
|
3157
3114
|
intentId?: string | undefined;
|
|
3158
3115
|
projectId?: string | undefined;
|
|
3159
3116
|
startPath?: string | undefined;
|
|
3160
3117
|
fixture?: string | undefined;
|
|
3161
|
-
requires?: {
|
|
3118
|
+
requires?: (Predicate | {
|
|
3162
3119
|
signal?: string | undefined;
|
|
3163
3120
|
text?: {
|
|
3164
3121
|
contains: string;
|
|
3165
3122
|
visible?: boolean | undefined;
|
|
3166
|
-
absent?: boolean | undefined;
|
|
3167
3123
|
scope?: string | undefined;
|
|
3124
|
+
absent?: boolean | undefined;
|
|
3168
3125
|
} | undefined;
|
|
3169
3126
|
net?: {
|
|
3170
3127
|
status?: number | undefined;
|
|
@@ -3179,13 +3136,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3179
3136
|
hold?: boolean | undefined;
|
|
3180
3137
|
} | undefined;
|
|
3181
3138
|
element?: {
|
|
3182
|
-
role?: string | undefined;
|
|
3183
3139
|
testid?: string | undefined;
|
|
3140
|
+
role?: string | undefined;
|
|
3184
3141
|
name?: string | undefined;
|
|
3185
3142
|
} | undefined;
|
|
3186
3143
|
route?: {
|
|
3187
|
-
pathname?: string | undefined;
|
|
3188
3144
|
contains?: string | undefined;
|
|
3145
|
+
pathname?: string | undefined;
|
|
3189
3146
|
} | undefined;
|
|
3190
3147
|
console?: {
|
|
3191
3148
|
level?: string | undefined;
|
|
@@ -3193,14 +3150,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3193
3150
|
} | undefined;
|
|
3194
3151
|
signalData?: Record<string, unknown> | undefined;
|
|
3195
3152
|
signalCount?: number | undefined;
|
|
3196
|
-
}[] | undefined;
|
|
3197
|
-
ensures?: {
|
|
3153
|
+
})[] | undefined;
|
|
3154
|
+
ensures?: (Predicate | {
|
|
3198
3155
|
signal?: string | undefined;
|
|
3199
3156
|
text?: {
|
|
3200
3157
|
contains: string;
|
|
3201
3158
|
visible?: boolean | undefined;
|
|
3202
|
-
absent?: boolean | undefined;
|
|
3203
3159
|
scope?: string | undefined;
|
|
3160
|
+
absent?: boolean | undefined;
|
|
3204
3161
|
} | undefined;
|
|
3205
3162
|
net?: {
|
|
3206
3163
|
status?: number | undefined;
|
|
@@ -3215,13 +3172,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3215
3172
|
hold?: boolean | undefined;
|
|
3216
3173
|
} | undefined;
|
|
3217
3174
|
element?: {
|
|
3218
|
-
role?: string | undefined;
|
|
3219
3175
|
testid?: string | undefined;
|
|
3176
|
+
role?: string | undefined;
|
|
3220
3177
|
name?: string | undefined;
|
|
3221
3178
|
} | undefined;
|
|
3222
3179
|
route?: {
|
|
3223
|
-
pathname?: string | undefined;
|
|
3224
3180
|
contains?: string | undefined;
|
|
3181
|
+
pathname?: string | undefined;
|
|
3225
3182
|
} | undefined;
|
|
3226
3183
|
console?: {
|
|
3227
3184
|
level?: string | undefined;
|
|
@@ -3229,15 +3186,15 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3229
3186
|
} | undefined;
|
|
3230
3187
|
signalData?: Record<string, unknown> | undefined;
|
|
3231
3188
|
signalCount?: number | undefined;
|
|
3232
|
-
}[] | undefined;
|
|
3189
|
+
})[] | undefined;
|
|
3233
3190
|
signalTimeoutMs?: number | undefined;
|
|
3234
|
-
success?: {
|
|
3191
|
+
success?: Predicate | {
|
|
3235
3192
|
signal?: string | undefined;
|
|
3236
3193
|
text?: {
|
|
3237
3194
|
contains: string;
|
|
3238
3195
|
visible?: boolean | undefined;
|
|
3239
|
-
absent?: boolean | undefined;
|
|
3240
3196
|
scope?: string | undefined;
|
|
3197
|
+
absent?: boolean | undefined;
|
|
3241
3198
|
} | undefined;
|
|
3242
3199
|
net?: {
|
|
3243
3200
|
status?: number | undefined;
|
|
@@ -3252,13 +3209,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3252
3209
|
hold?: boolean | undefined;
|
|
3253
3210
|
} | undefined;
|
|
3254
3211
|
element?: {
|
|
3255
|
-
role?: string | undefined;
|
|
3256
3212
|
testid?: string | undefined;
|
|
3213
|
+
role?: string | undefined;
|
|
3257
3214
|
name?: string | undefined;
|
|
3258
3215
|
} | undefined;
|
|
3259
3216
|
route?: {
|
|
3260
|
-
pathname?: string | undefined;
|
|
3261
3217
|
contains?: string | undefined;
|
|
3218
|
+
pathname?: string | undefined;
|
|
3262
3219
|
} | undefined;
|
|
3263
3220
|
console?: {
|
|
3264
3221
|
level?: string | undefined;
|
|
@@ -3268,8 +3225,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3268
3225
|
signalCount?: number | undefined;
|
|
3269
3226
|
} | undefined;
|
|
3270
3227
|
dynamic?: ({
|
|
3271
|
-
kind: "testid";
|
|
3272
3228
|
value: string;
|
|
3229
|
+
kind: "testid";
|
|
3273
3230
|
source?: {
|
|
3274
3231
|
file: string;
|
|
3275
3232
|
line: number;
|
|
@@ -3280,27 +3237,21 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3280
3237
|
kind: "role";
|
|
3281
3238
|
name?: string | undefined;
|
|
3282
3239
|
} | {
|
|
3283
|
-
kind: "signal";
|
|
3284
3240
|
name: string;
|
|
3241
|
+
kind: "signal";
|
|
3285
3242
|
} | {
|
|
3286
3243
|
kind: "component";
|
|
3287
3244
|
role?: string | undefined;
|
|
3288
3245
|
component?: string | undefined;
|
|
3246
|
+
name?: string | undefined;
|
|
3289
3247
|
source?: {
|
|
3290
3248
|
file: string;
|
|
3291
3249
|
line: number;
|
|
3292
3250
|
column?: number | undefined;
|
|
3293
3251
|
} | undefined;
|
|
3294
|
-
name?: string | undefined;
|
|
3295
3252
|
})[] | undefined;
|
|
3296
3253
|
labels?: string[] | undefined;
|
|
3297
3254
|
needs?: string[] | undefined;
|
|
3298
|
-
learned?: {
|
|
3299
|
-
state: "open" | "guarded";
|
|
3300
|
-
step: number;
|
|
3301
|
-
kind: string;
|
|
3302
|
-
cleanRuns?: number | undefined;
|
|
3303
|
-
}[] | undefined;
|
|
3304
3255
|
knownBugs?: {
|
|
3305
3256
|
id: string;
|
|
3306
3257
|
summary: string;
|
|
@@ -3308,8 +3259,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3308
3259
|
}[] | undefined;
|
|
3309
3260
|
quarantine?: {
|
|
3310
3261
|
reason: string;
|
|
3311
|
-
since: string;
|
|
3312
3262
|
owner: string;
|
|
3263
|
+
since: string;
|
|
3313
3264
|
until?: string | undefined;
|
|
3314
3265
|
} | undefined;
|
|
3315
3266
|
}>;
|
|
@@ -3317,126 +3268,27 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3317
3268
|
flow: {
|
|
3318
3269
|
name: string;
|
|
3319
3270
|
steps: FlowStep[];
|
|
3320
|
-
version: 1;
|
|
3321
3271
|
createdAt: number;
|
|
3272
|
+
version: number;
|
|
3322
3273
|
intent?: string | undefined;
|
|
3323
3274
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3275
|
+
learned?: {
|
|
3276
|
+
step: number;
|
|
3277
|
+
state: "open" | "guarded";
|
|
3278
|
+
kind: string;
|
|
3279
|
+
cleanRuns?: number | undefined;
|
|
3280
|
+
}[] | undefined;
|
|
3324
3281
|
intentId?: string | undefined;
|
|
3325
3282
|
projectId?: string | undefined;
|
|
3326
3283
|
startPath?: string | undefined;
|
|
3327
3284
|
fixture?: string | undefined;
|
|
3328
|
-
requires?:
|
|
3329
|
-
|
|
3330
|
-
text?: {
|
|
3331
|
-
contains: string;
|
|
3332
|
-
visible?: boolean | undefined;
|
|
3333
|
-
absent?: boolean | undefined;
|
|
3334
|
-
scope?: string | undefined;
|
|
3335
|
-
} | undefined;
|
|
3336
|
-
net?: {
|
|
3337
|
-
status?: number | undefined;
|
|
3338
|
-
method?: string | undefined;
|
|
3339
|
-
urlContains?: string | undefined;
|
|
3340
|
-
count?: number | undefined;
|
|
3341
|
-
} | undefined;
|
|
3342
|
-
state?: {
|
|
3343
|
-
path: string;
|
|
3344
|
-
store?: string | undefined;
|
|
3345
|
-
equals?: unknown;
|
|
3346
|
-
hold?: boolean | undefined;
|
|
3347
|
-
} | undefined;
|
|
3348
|
-
element?: {
|
|
3349
|
-
role?: string | undefined;
|
|
3350
|
-
testid?: string | undefined;
|
|
3351
|
-
name?: string | undefined;
|
|
3352
|
-
} | undefined;
|
|
3353
|
-
route?: {
|
|
3354
|
-
pathname?: string | undefined;
|
|
3355
|
-
contains?: string | undefined;
|
|
3356
|
-
} | undefined;
|
|
3357
|
-
console?: {
|
|
3358
|
-
level?: string | undefined;
|
|
3359
|
-
absent?: boolean | undefined;
|
|
3360
|
-
} | undefined;
|
|
3361
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3362
|
-
signalCount?: number | undefined;
|
|
3363
|
-
}[] | undefined;
|
|
3364
|
-
ensures?: {
|
|
3365
|
-
signal?: string | undefined;
|
|
3366
|
-
text?: {
|
|
3367
|
-
contains: string;
|
|
3368
|
-
visible?: boolean | undefined;
|
|
3369
|
-
absent?: boolean | undefined;
|
|
3370
|
-
scope?: string | undefined;
|
|
3371
|
-
} | undefined;
|
|
3372
|
-
net?: {
|
|
3373
|
-
status?: number | undefined;
|
|
3374
|
-
method?: string | undefined;
|
|
3375
|
-
urlContains?: string | undefined;
|
|
3376
|
-
count?: number | undefined;
|
|
3377
|
-
} | undefined;
|
|
3378
|
-
state?: {
|
|
3379
|
-
path: string;
|
|
3380
|
-
store?: string | undefined;
|
|
3381
|
-
equals?: unknown;
|
|
3382
|
-
hold?: boolean | undefined;
|
|
3383
|
-
} | undefined;
|
|
3384
|
-
element?: {
|
|
3385
|
-
role?: string | undefined;
|
|
3386
|
-
testid?: string | undefined;
|
|
3387
|
-
name?: string | undefined;
|
|
3388
|
-
} | undefined;
|
|
3389
|
-
route?: {
|
|
3390
|
-
pathname?: string | undefined;
|
|
3391
|
-
contains?: string | undefined;
|
|
3392
|
-
} | undefined;
|
|
3393
|
-
console?: {
|
|
3394
|
-
level?: string | undefined;
|
|
3395
|
-
absent?: boolean | undefined;
|
|
3396
|
-
} | undefined;
|
|
3397
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3398
|
-
signalCount?: number | undefined;
|
|
3399
|
-
}[] | undefined;
|
|
3285
|
+
requires?: Predicate[] | undefined;
|
|
3286
|
+
ensures?: Predicate[] | undefined;
|
|
3400
3287
|
signalTimeoutMs?: number | undefined;
|
|
3401
|
-
success?:
|
|
3402
|
-
signal?: string | undefined;
|
|
3403
|
-
text?: {
|
|
3404
|
-
contains: string;
|
|
3405
|
-
visible?: boolean | undefined;
|
|
3406
|
-
absent?: boolean | undefined;
|
|
3407
|
-
scope?: string | undefined;
|
|
3408
|
-
} | undefined;
|
|
3409
|
-
net?: {
|
|
3410
|
-
status?: number | undefined;
|
|
3411
|
-
method?: string | undefined;
|
|
3412
|
-
urlContains?: string | undefined;
|
|
3413
|
-
count?: number | undefined;
|
|
3414
|
-
} | undefined;
|
|
3415
|
-
state?: {
|
|
3416
|
-
path: string;
|
|
3417
|
-
store?: string | undefined;
|
|
3418
|
-
equals?: unknown;
|
|
3419
|
-
hold?: boolean | undefined;
|
|
3420
|
-
} | undefined;
|
|
3421
|
-
element?: {
|
|
3422
|
-
role?: string | undefined;
|
|
3423
|
-
testid?: string | undefined;
|
|
3424
|
-
name?: string | undefined;
|
|
3425
|
-
} | undefined;
|
|
3426
|
-
route?: {
|
|
3427
|
-
pathname?: string | undefined;
|
|
3428
|
-
contains?: string | undefined;
|
|
3429
|
-
} | undefined;
|
|
3430
|
-
console?: {
|
|
3431
|
-
level?: string | undefined;
|
|
3432
|
-
absent?: boolean | undefined;
|
|
3433
|
-
} | undefined;
|
|
3434
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3435
|
-
signalCount?: number | undefined;
|
|
3436
|
-
} | undefined;
|
|
3288
|
+
success?: Predicate | undefined;
|
|
3437
3289
|
dynamic?: ({
|
|
3438
|
-
kind: "testid";
|
|
3439
3290
|
value: string;
|
|
3291
|
+
kind: "testid";
|
|
3440
3292
|
source?: {
|
|
3441
3293
|
file: string;
|
|
3442
3294
|
line: number;
|
|
@@ -3447,27 +3299,21 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3447
3299
|
kind: "role";
|
|
3448
3300
|
name?: string | undefined;
|
|
3449
3301
|
} | {
|
|
3450
|
-
kind: "signal";
|
|
3451
3302
|
name: string;
|
|
3303
|
+
kind: "signal";
|
|
3452
3304
|
} | {
|
|
3453
3305
|
kind: "component";
|
|
3454
3306
|
role?: string | undefined;
|
|
3455
3307
|
component?: string | undefined;
|
|
3308
|
+
name?: string | undefined;
|
|
3456
3309
|
source?: {
|
|
3457
3310
|
file: string;
|
|
3458
3311
|
line: number;
|
|
3459
3312
|
column?: number | undefined;
|
|
3460
3313
|
} | undefined;
|
|
3461
|
-
name?: string | undefined;
|
|
3462
3314
|
})[] | undefined;
|
|
3463
3315
|
labels?: string[] | undefined;
|
|
3464
3316
|
needs?: string[] | undefined;
|
|
3465
|
-
learned?: {
|
|
3466
|
-
state: "open" | "guarded";
|
|
3467
|
-
step: number;
|
|
3468
|
-
kind: string;
|
|
3469
|
-
cleanRuns?: number | undefined;
|
|
3470
|
-
}[] | undefined;
|
|
3471
3317
|
knownBugs?: {
|
|
3472
3318
|
id: string;
|
|
3473
3319
|
summary: string;
|
|
@@ -3475,8 +3321,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3475
3321
|
}[] | undefined;
|
|
3476
3322
|
quarantine?: {
|
|
3477
3323
|
reason: string;
|
|
3478
|
-
since: string;
|
|
3479
3324
|
owner: string;
|
|
3325
|
+
since: string;
|
|
3480
3326
|
until?: string | undefined;
|
|
3481
3327
|
} | undefined;
|
|
3482
3328
|
};
|
|
@@ -3485,21 +3331,27 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3485
3331
|
flow: {
|
|
3486
3332
|
name: string;
|
|
3487
3333
|
steps: FlowStep[];
|
|
3488
|
-
version: 1;
|
|
3489
3334
|
createdAt: number;
|
|
3335
|
+
version: number;
|
|
3490
3336
|
intent?: string | undefined;
|
|
3491
3337
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3338
|
+
learned?: {
|
|
3339
|
+
step: number;
|
|
3340
|
+
state: "open" | "guarded";
|
|
3341
|
+
kind: string;
|
|
3342
|
+
cleanRuns?: number | undefined;
|
|
3343
|
+
}[] | undefined;
|
|
3492
3344
|
intentId?: string | undefined;
|
|
3493
3345
|
projectId?: string | undefined;
|
|
3494
3346
|
startPath?: string | undefined;
|
|
3495
3347
|
fixture?: string | undefined;
|
|
3496
|
-
requires?: {
|
|
3348
|
+
requires?: (Predicate | {
|
|
3497
3349
|
signal?: string | undefined;
|
|
3498
3350
|
text?: {
|
|
3499
3351
|
contains: string;
|
|
3500
3352
|
visible?: boolean | undefined;
|
|
3501
|
-
absent?: boolean | undefined;
|
|
3502
3353
|
scope?: string | undefined;
|
|
3354
|
+
absent?: boolean | undefined;
|
|
3503
3355
|
} | undefined;
|
|
3504
3356
|
net?: {
|
|
3505
3357
|
status?: number | undefined;
|
|
@@ -3514,13 +3366,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3514
3366
|
hold?: boolean | undefined;
|
|
3515
3367
|
} | undefined;
|
|
3516
3368
|
element?: {
|
|
3517
|
-
role?: string | undefined;
|
|
3518
3369
|
testid?: string | undefined;
|
|
3370
|
+
role?: string | undefined;
|
|
3519
3371
|
name?: string | undefined;
|
|
3520
3372
|
} | undefined;
|
|
3521
3373
|
route?: {
|
|
3522
|
-
pathname?: string | undefined;
|
|
3523
3374
|
contains?: string | undefined;
|
|
3375
|
+
pathname?: string | undefined;
|
|
3524
3376
|
} | undefined;
|
|
3525
3377
|
console?: {
|
|
3526
3378
|
level?: string | undefined;
|
|
@@ -3528,14 +3380,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3528
3380
|
} | undefined;
|
|
3529
3381
|
signalData?: Record<string, unknown> | undefined;
|
|
3530
3382
|
signalCount?: number | undefined;
|
|
3531
|
-
}[] | undefined;
|
|
3532
|
-
ensures?: {
|
|
3383
|
+
})[] | undefined;
|
|
3384
|
+
ensures?: (Predicate | {
|
|
3533
3385
|
signal?: string | undefined;
|
|
3534
3386
|
text?: {
|
|
3535
3387
|
contains: string;
|
|
3536
3388
|
visible?: boolean | undefined;
|
|
3537
|
-
absent?: boolean | undefined;
|
|
3538
3389
|
scope?: string | undefined;
|
|
3390
|
+
absent?: boolean | undefined;
|
|
3539
3391
|
} | undefined;
|
|
3540
3392
|
net?: {
|
|
3541
3393
|
status?: number | undefined;
|
|
@@ -3550,13 +3402,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3550
3402
|
hold?: boolean | undefined;
|
|
3551
3403
|
} | undefined;
|
|
3552
3404
|
element?: {
|
|
3553
|
-
role?: string | undefined;
|
|
3554
3405
|
testid?: string | undefined;
|
|
3406
|
+
role?: string | undefined;
|
|
3555
3407
|
name?: string | undefined;
|
|
3556
3408
|
} | undefined;
|
|
3557
3409
|
route?: {
|
|
3558
|
-
pathname?: string | undefined;
|
|
3559
3410
|
contains?: string | undefined;
|
|
3411
|
+
pathname?: string | undefined;
|
|
3560
3412
|
} | undefined;
|
|
3561
3413
|
console?: {
|
|
3562
3414
|
level?: string | undefined;
|
|
@@ -3564,15 +3416,15 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3564
3416
|
} | undefined;
|
|
3565
3417
|
signalData?: Record<string, unknown> | undefined;
|
|
3566
3418
|
signalCount?: number | undefined;
|
|
3567
|
-
}[] | undefined;
|
|
3419
|
+
})[] | undefined;
|
|
3568
3420
|
signalTimeoutMs?: number | undefined;
|
|
3569
|
-
success?: {
|
|
3421
|
+
success?: Predicate | {
|
|
3570
3422
|
signal?: string | undefined;
|
|
3571
3423
|
text?: {
|
|
3572
3424
|
contains: string;
|
|
3573
3425
|
visible?: boolean | undefined;
|
|
3574
|
-
absent?: boolean | undefined;
|
|
3575
3426
|
scope?: string | undefined;
|
|
3427
|
+
absent?: boolean | undefined;
|
|
3576
3428
|
} | undefined;
|
|
3577
3429
|
net?: {
|
|
3578
3430
|
status?: number | undefined;
|
|
@@ -3587,13 +3439,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3587
3439
|
hold?: boolean | undefined;
|
|
3588
3440
|
} | undefined;
|
|
3589
3441
|
element?: {
|
|
3590
|
-
role?: string | undefined;
|
|
3591
3442
|
testid?: string | undefined;
|
|
3443
|
+
role?: string | undefined;
|
|
3592
3444
|
name?: string | undefined;
|
|
3593
3445
|
} | undefined;
|
|
3594
3446
|
route?: {
|
|
3595
|
-
pathname?: string | undefined;
|
|
3596
3447
|
contains?: string | undefined;
|
|
3448
|
+
pathname?: string | undefined;
|
|
3597
3449
|
} | undefined;
|
|
3598
3450
|
console?: {
|
|
3599
3451
|
level?: string | undefined;
|
|
@@ -3603,8 +3455,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3603
3455
|
signalCount?: number | undefined;
|
|
3604
3456
|
} | undefined;
|
|
3605
3457
|
dynamic?: ({
|
|
3606
|
-
kind: "testid";
|
|
3607
3458
|
value: string;
|
|
3459
|
+
kind: "testid";
|
|
3608
3460
|
source?: {
|
|
3609
3461
|
file: string;
|
|
3610
3462
|
line: number;
|
|
@@ -3615,27 +3467,21 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3615
3467
|
kind: "role";
|
|
3616
3468
|
name?: string | undefined;
|
|
3617
3469
|
} | {
|
|
3618
|
-
kind: "signal";
|
|
3619
3470
|
name: string;
|
|
3471
|
+
kind: "signal";
|
|
3620
3472
|
} | {
|
|
3621
3473
|
kind: "component";
|
|
3622
3474
|
role?: string | undefined;
|
|
3623
3475
|
component?: string | undefined;
|
|
3476
|
+
name?: string | undefined;
|
|
3624
3477
|
source?: {
|
|
3625
3478
|
file: string;
|
|
3626
3479
|
line: number;
|
|
3627
3480
|
column?: number | undefined;
|
|
3628
3481
|
} | undefined;
|
|
3629
|
-
name?: string | undefined;
|
|
3630
3482
|
})[] | undefined;
|
|
3631
3483
|
labels?: string[] | undefined;
|
|
3632
3484
|
needs?: string[] | undefined;
|
|
3633
|
-
learned?: {
|
|
3634
|
-
state: "open" | "guarded";
|
|
3635
|
-
step: number;
|
|
3636
|
-
kind: string;
|
|
3637
|
-
cleanRuns?: number | undefined;
|
|
3638
|
-
}[] | undefined;
|
|
3639
3485
|
knownBugs?: {
|
|
3640
3486
|
id: string;
|
|
3641
3487
|
summary: string;
|
|
@@ -3643,8 +3489,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3643
3489
|
}[] | undefined;
|
|
3644
3490
|
quarantine?: {
|
|
3645
3491
|
reason: string;
|
|
3646
|
-
since: string;
|
|
3647
3492
|
owner: string;
|
|
3493
|
+
since: string;
|
|
3648
3494
|
until?: string | undefined;
|
|
3649
3495
|
} | undefined;
|
|
3650
3496
|
};
|
|
@@ -3716,7 +3562,7 @@ export type KnownBug = NonNullable<FlowFile['knownBugs']>[number];
|
|
|
3716
3562
|
*/
|
|
3717
3563
|
export declare function staleKnownBugs(notes: readonly KnownBug[] | undefined, currentAssertions: readonly string[]): KnownBug[];
|
|
3718
3564
|
/** True when a FlowExpect asserts at least one consequence (any of the ConsequenceKind fields set). */
|
|
3719
|
-
export declare function flowExpectHasConsequence(expect:
|
|
3565
|
+
export declare function flowExpectHasConsequence(expect: Predicate | undefined): boolean;
|
|
3720
3566
|
/**
|
|
3721
3567
|
* True when a FlowExpect checks ONLY presence — an element, rendered text or a route, no consequence.
|
|
3722
3568
|
*
|
|
@@ -3733,4 +3579,4 @@ export declare function flowExpectHasConsequence(expect: FlowExpect | undefined)
|
|
|
3733
3579
|
* a saved claim nobody made. Promoting both is a defensible change and a separate one, with the
|
|
3734
3580
|
* false-green question — can the route commit while the view does not render? — answered first.
|
|
3735
3581
|
*/
|
|
3736
|
-
export declare function flowExpectIsPresenceOnly(expect:
|
|
3582
|
+
export declare function flowExpectIsPresenceOnly(expect: Predicate | undefined): boolean;
|