@reticlehq/core 3.2.0 → 3.4.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/README.md +1 -1
- package/dist/artifacts/flow-composition.d.ts +3 -2
- package/dist/artifacts/flow-constants.d.ts +68 -2
- package/dist/artifacts/flow-constants.js +84 -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 +30 -2
- package/dist/artifacts/flow-step-tool.d.ts +2 -0
- package/dist/artifacts/flow-types.d.ts +1285 -1343
- package/dist/artifacts/flow-types.js +111 -140
- package/dist/artifacts/impact.d.ts +48 -20
- package/dist/artifacts/impact.js +11 -0
- package/dist/artifacts/journal.d.ts +34 -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 +9 -0
- package/dist/index.js +25 -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/registry/daemon-registry.d.ts +14 -4
- package/dist/registry/daemon-registry.js +20 -4
- package/dist/schema/event-message.json +3 -1
- package/dist/schema/event-payloads.json +72 -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 +5 -4
- package/dist/telemetry-session.d.ts +25 -2
- package/dist/telemetry-session.js +13 -0
- package/dist/telemetry.d.ts +130 -102
- package/dist/verdict/compare-source.d.ts +80 -0
- package/dist/verdict/compare-source.js +93 -0
- package/dist/verdict/consequence.d.ts +12 -0
- package/dist/verdict/consequence.js +15 -0
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +24 -0
- package/dist/verdict/intent.js +66 -10
- package/dist/verdict/predicate-tree.d.ts +82 -0
- package/dist/verdict/predicate-tree.js +186 -0
- package/dist/verdict/predicate.d.ts +138 -0
- package/dist/verdict/predicate.js +430 -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 +330 -83
- package/dist/verdict/verification-run.js +44 -1
- package/dist/verdict/verified-constants.d.ts +9 -0
- package/dist/verdict/verified-constants.js +9 -0
- package/dist/wire/channel.d.ts +10 -0
- package/dist/wire/channel.js +25 -0
- package/dist/wire/constants/constants.d.ts +65 -102
- package/dist/wire/constants/constants.js +79 -101
- 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 +72 -13
- package/dist/wire/event-payloads.js +26 -4
- package/dist/wire/messages.d.ts +97 -56
- package/dist/wire/messages.js +17 -0
- package/dist/wire/net.d.ts +35 -0
- package/dist/wire/net.js +41 -0
- package/dist/wire/redaction.js +17 -0
- package/dist/wire/state-select.d.ts +2 -1
- package/dist/wire/state-select.js +56 -3
- package/dist/wire/toon.d.ts +1 -1
- package/dist/wire/toon.js +30 -8
- package/dist/wire/types.d.ts +119 -94
- package/dist/wire/types.js +23 -1
- package/dist/words/no-session-reason.d.ts +7 -0
- package/dist/words/no-session-reason.js +7 -0
- package/dist/words/notices.d.ts +7 -0
- package/dist/words/notices.js +9 -2
- package/package.json +7 -2
|
@@ -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.
|
|
@@ -55,12 +55,12 @@ export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
55
55
|
role: z.ZodString;
|
|
56
56
|
name: z.ZodOptional<z.ZodString>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
role: string;
|
|
59
58
|
kind: "role";
|
|
59
|
+
role: string;
|
|
60
60
|
name?: string | undefined;
|
|
61
61
|
}, {
|
|
62
|
-
role: string;
|
|
63
62
|
kind: "role";
|
|
63
|
+
role: string;
|
|
64
64
|
name?: string | undefined;
|
|
65
65
|
}>, z.ZodObject<{
|
|
66
66
|
kind: z.ZodLiteral<"signal">;
|
|
@@ -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.
|
|
@@ -386,6 +177,10 @@ export interface FlowStep {
|
|
|
386
177
|
* `timeout_ms`, so a recorded step can carry one too.
|
|
387
178
|
*/
|
|
388
179
|
timeoutMs?: number;
|
|
180
|
+
/** The page (route pathname) this step ran on, recorded at capture. */
|
|
181
|
+
page?: string;
|
|
182
|
+
/** The page it ended on once its action settled — where it led, when that differs from `page`. */
|
|
183
|
+
endPage?: string;
|
|
389
184
|
/** sub-steps for an act_sequence, each independently anchored. */
|
|
390
185
|
steps?: FlowStep[];
|
|
391
186
|
/**
|
|
@@ -486,6 +281,8 @@ export interface FlowStepResult {
|
|
|
486
281
|
* fake session with no route events). Lets a replay result read as a page-by-page journey.
|
|
487
282
|
*/
|
|
488
283
|
page?: string;
|
|
284
|
+
/** The route the page was on once this step settled — where it led. Absent when unobservable. */
|
|
285
|
+
endPage?: string;
|
|
489
286
|
/**
|
|
490
287
|
* A compact summary of the observable CONSEQUENCE in the window right after this step ran — the
|
|
491
288
|
* "what happened" of the journey: a route change, a domain signal (e.g. a modal opening), a
|
|
@@ -781,7 +578,11 @@ export interface FlowReplayResult {
|
|
|
781
578
|
* file with neither still parses — back-compat is locked by a test).
|
|
782
579
|
*/
|
|
783
580
|
export declare const FlowFileSchema: z.ZodObject<{
|
|
784
|
-
|
|
581
|
+
/**
|
|
582
|
+
* The format this file was WRITTEN in. Both readable versions are accepted, because a v1 file is
|
|
583
|
+
* lifted rather than refused — see READABLE_FLOW_VERSIONS.
|
|
584
|
+
*/
|
|
585
|
+
version: z.ZodEffects<z.ZodNumber, number, number>;
|
|
785
586
|
name: z.ZodString;
|
|
786
587
|
/**
|
|
787
588
|
* The business goal this flow exists to verify, one line (e.g. "ship a deploy to production").
|
|
@@ -837,52 +638,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
837
638
|
* Same predicate shape as a step's `expect`, deliberately — a precondition is just a consequence
|
|
838
639
|
* somebody else's flow was responsible for.
|
|
839
640
|
*/
|
|
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
|
-
*/
|
|
641
|
+
requires: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
852
642
|
route: z.ZodOptional<z.ZodObject<{
|
|
853
643
|
pathname: z.ZodOptional<z.ZodString>;
|
|
854
644
|
contains: z.ZodOptional<z.ZodString>;
|
|
855
645
|
}, "strip", z.ZodTypeAny, {
|
|
856
|
-
pathname?: string | undefined;
|
|
857
646
|
contains?: string | undefined;
|
|
858
|
-
}, {
|
|
859
647
|
pathname?: string | undefined;
|
|
648
|
+
}, {
|
|
860
649
|
contains?: string | undefined;
|
|
650
|
+
pathname?: string | undefined;
|
|
861
651
|
}>>;
|
|
862
652
|
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
653
|
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
654
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
877
655
|
net: z.ZodOptional<z.ZodObject<{
|
|
878
656
|
method: z.ZodOptional<z.ZodString>;
|
|
879
657
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
880
658
|
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
659
|
count: z.ZodOptional<z.ZodNumber>;
|
|
887
660
|
}, "strict", z.ZodTypeAny, {
|
|
888
661
|
status?: number | undefined;
|
|
@@ -895,12 +668,6 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
895
668
|
urlContains?: string | undefined;
|
|
896
669
|
count?: number | undefined;
|
|
897
670
|
}>>;
|
|
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
671
|
console: z.ZodOptional<z.ZodObject<{
|
|
905
672
|
level: z.ZodOptional<z.ZodString>;
|
|
906
673
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -916,84 +683,83 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
916
683
|
role: z.ZodOptional<z.ZodString>;
|
|
917
684
|
name: z.ZodOptional<z.ZodString>;
|
|
918
685
|
}, "strict", z.ZodTypeAny, {
|
|
919
|
-
role?: string | undefined;
|
|
920
686
|
testid?: string | undefined;
|
|
687
|
+
role?: string | undefined;
|
|
921
688
|
name?: string | undefined;
|
|
922
689
|
}, {
|
|
923
|
-
role?: string | undefined;
|
|
924
690
|
testid?: string | undefined;
|
|
691
|
+
role?: string | undefined;
|
|
925
692
|
name?: string | undefined;
|
|
926
693
|
}>>;
|
|
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
694
|
text: z.ZodOptional<z.ZodObject<{
|
|
944
695
|
contains: z.ZodString;
|
|
945
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
946
696
|
scope: z.ZodOptional<z.ZodString>;
|
|
947
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
948
697
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
949
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
950
698
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
951
699
|
}, "strict", z.ZodTypeAny, {
|
|
952
700
|
contains: string;
|
|
953
701
|
visible?: boolean | undefined;
|
|
954
|
-
absent?: boolean | undefined;
|
|
955
702
|
scope?: string | undefined;
|
|
703
|
+
absent?: boolean | undefined;
|
|
956
704
|
}, {
|
|
957
705
|
contains: string;
|
|
958
706
|
visible?: boolean | undefined;
|
|
959
|
-
absent?: boolean | undefined;
|
|
960
707
|
scope?: string | undefined;
|
|
708
|
+
absent?: boolean | undefined;
|
|
961
709
|
}>>;
|
|
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
710
|
state: z.ZodOptional<z.ZodObject<{
|
|
969
711
|
store: z.ZodOptional<z.ZodString>;
|
|
970
712
|
path: z.ZodString;
|
|
971
713
|
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
714
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
978
715
|
}, "strict", z.ZodTypeAny, {
|
|
979
716
|
path: string;
|
|
717
|
+
hold?: boolean | undefined;
|
|
980
718
|
store?: string | undefined;
|
|
981
719
|
equals?: unknown;
|
|
982
|
-
hold?: boolean | undefined;
|
|
983
720
|
}, {
|
|
984
721
|
path: string;
|
|
722
|
+
hold?: boolean | undefined;
|
|
985
723
|
store?: string | undefined;
|
|
986
724
|
equals?: unknown;
|
|
987
|
-
hold?: boolean | undefined;
|
|
988
725
|
}>>;
|
|
989
726
|
}, "strict", z.ZodTypeAny, {
|
|
990
727
|
signal?: string | undefined;
|
|
728
|
+
net?: {
|
|
729
|
+
status?: number | undefined;
|
|
730
|
+
method?: string | undefined;
|
|
731
|
+
urlContains?: string | undefined;
|
|
732
|
+
count?: number | undefined;
|
|
733
|
+
} | undefined;
|
|
734
|
+
state?: {
|
|
735
|
+
path: string;
|
|
736
|
+
hold?: boolean | undefined;
|
|
737
|
+
store?: string | undefined;
|
|
738
|
+
equals?: unknown;
|
|
739
|
+
} | undefined;
|
|
740
|
+
element?: {
|
|
741
|
+
testid?: string | undefined;
|
|
742
|
+
role?: string | undefined;
|
|
743
|
+
name?: string | undefined;
|
|
744
|
+
} | undefined;
|
|
991
745
|
text?: {
|
|
992
746
|
contains: string;
|
|
993
747
|
visible?: boolean | undefined;
|
|
994
|
-
absent?: boolean | undefined;
|
|
995
748
|
scope?: string | undefined;
|
|
749
|
+
absent?: boolean | undefined;
|
|
750
|
+
} | undefined;
|
|
751
|
+
route?: {
|
|
752
|
+
contains?: string | undefined;
|
|
753
|
+
pathname?: string | undefined;
|
|
754
|
+
} | undefined;
|
|
755
|
+
console?: {
|
|
756
|
+
level?: string | undefined;
|
|
757
|
+
absent?: boolean | undefined;
|
|
996
758
|
} | undefined;
|
|
759
|
+
signalData?: Record<string, unknown> | undefined;
|
|
760
|
+
signalCount?: number | undefined;
|
|
761
|
+
}, {
|
|
762
|
+
signal?: string | undefined;
|
|
997
763
|
net?: {
|
|
998
764
|
status?: number | undefined;
|
|
999
765
|
method?: string | undefined;
|
|
@@ -1002,18 +768,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1002
768
|
} | undefined;
|
|
1003
769
|
state?: {
|
|
1004
770
|
path: string;
|
|
771
|
+
hold?: boolean | undefined;
|
|
1005
772
|
store?: string | undefined;
|
|
1006
773
|
equals?: unknown;
|
|
1007
|
-
hold?: boolean | undefined;
|
|
1008
774
|
} | undefined;
|
|
1009
775
|
element?: {
|
|
1010
|
-
role?: string | undefined;
|
|
1011
776
|
testid?: string | undefined;
|
|
777
|
+
role?: string | undefined;
|
|
1012
778
|
name?: string | undefined;
|
|
1013
779
|
} | undefined;
|
|
780
|
+
text?: {
|
|
781
|
+
contains: string;
|
|
782
|
+
visible?: boolean | undefined;
|
|
783
|
+
scope?: string | undefined;
|
|
784
|
+
absent?: boolean | undefined;
|
|
785
|
+
} | undefined;
|
|
1014
786
|
route?: {
|
|
1015
|
-
pathname?: string | undefined;
|
|
1016
787
|
contains?: string | undefined;
|
|
788
|
+
pathname?: string | undefined;
|
|
1017
789
|
} | undefined;
|
|
1018
790
|
console?: {
|
|
1019
791
|
level?: string | undefined;
|
|
@@ -1021,14 +793,115 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1021
793
|
} | undefined;
|
|
1022
794
|
signalData?: Record<string, unknown> | undefined;
|
|
1023
795
|
signalCount?: number | undefined;
|
|
1024
|
-
}
|
|
796
|
+
}>, {
|
|
797
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
798
|
+
query: import("../index.js").ElementQuery;
|
|
799
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
800
|
+
absent?: boolean;
|
|
801
|
+
} | {
|
|
802
|
+
kind: typeof PredicateKind.TEXT;
|
|
803
|
+
contains?: string;
|
|
804
|
+
visible?: boolean;
|
|
805
|
+
absent?: boolean;
|
|
806
|
+
scope?: string;
|
|
807
|
+
self?: boolean;
|
|
808
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
809
|
+
} | {
|
|
810
|
+
kind: typeof PredicateKind.NET;
|
|
811
|
+
method?: string;
|
|
812
|
+
urlContains?: string;
|
|
813
|
+
status?: number;
|
|
814
|
+
ok?: boolean;
|
|
815
|
+
since?: number;
|
|
816
|
+
count?: number;
|
|
817
|
+
bodyContains?: string;
|
|
818
|
+
bodyMatches?: Record<string, unknown>;
|
|
819
|
+
requestBodyContains?: string;
|
|
820
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
821
|
+
} | {
|
|
822
|
+
kind: typeof PredicateKind.ROUTE;
|
|
823
|
+
pathname?: string;
|
|
824
|
+
contains?: string;
|
|
825
|
+
since?: number;
|
|
826
|
+
} | {
|
|
827
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
828
|
+
level?: string;
|
|
829
|
+
contains?: string;
|
|
830
|
+
absent?: boolean;
|
|
831
|
+
since?: number;
|
|
832
|
+
} | {
|
|
833
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
834
|
+
name?: string;
|
|
835
|
+
target?: string;
|
|
836
|
+
completed?: boolean;
|
|
837
|
+
since?: number;
|
|
838
|
+
} | {
|
|
839
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
840
|
+
name?: string;
|
|
841
|
+
dataMatches?: Record<string, unknown>;
|
|
842
|
+
count?: number;
|
|
843
|
+
since?: number;
|
|
844
|
+
} | {
|
|
845
|
+
kind: typeof PredicateKind.STATE;
|
|
846
|
+
store?: string;
|
|
847
|
+
path: string;
|
|
848
|
+
equals?: unknown;
|
|
849
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
850
|
+
} | {
|
|
851
|
+
kind: typeof PredicateKind.SETTLED;
|
|
852
|
+
quietMs?: number;
|
|
853
|
+
} | {
|
|
854
|
+
kind: typeof PredicateKind.COMPARE;
|
|
855
|
+
left: import("../verdict/compare-source.js").CompareSource;
|
|
856
|
+
right: import("../verdict/compare-source.js").CompareSource;
|
|
857
|
+
as?: import("../verdict/compare-source.js").CompareAs;
|
|
858
|
+
tolerance?: number;
|
|
859
|
+
} | {
|
|
860
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
861
|
+
predicates: Predicate[];
|
|
862
|
+
} | {
|
|
863
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
864
|
+
predicates: Predicate[];
|
|
865
|
+
} | {
|
|
866
|
+
kind: typeof PredicateKind.NOT;
|
|
867
|
+
predicate: Predicate;
|
|
868
|
+
} | undefined, {
|
|
1025
869
|
signal?: string | undefined;
|
|
870
|
+
net?: {
|
|
871
|
+
status?: number | undefined;
|
|
872
|
+
method?: string | undefined;
|
|
873
|
+
urlContains?: string | undefined;
|
|
874
|
+
count?: number | undefined;
|
|
875
|
+
} | undefined;
|
|
876
|
+
state?: {
|
|
877
|
+
path: string;
|
|
878
|
+
hold?: boolean | undefined;
|
|
879
|
+
store?: string | undefined;
|
|
880
|
+
equals?: unknown;
|
|
881
|
+
} | undefined;
|
|
882
|
+
element?: {
|
|
883
|
+
testid?: string | undefined;
|
|
884
|
+
role?: string | undefined;
|
|
885
|
+
name?: string | undefined;
|
|
886
|
+
} | undefined;
|
|
1026
887
|
text?: {
|
|
1027
888
|
contains: string;
|
|
1028
889
|
visible?: boolean | undefined;
|
|
1029
|
-
absent?: boolean | undefined;
|
|
1030
890
|
scope?: string | undefined;
|
|
891
|
+
absent?: boolean | undefined;
|
|
892
|
+
} | undefined;
|
|
893
|
+
route?: {
|
|
894
|
+
contains?: string | undefined;
|
|
895
|
+
pathname?: string | undefined;
|
|
896
|
+
} | undefined;
|
|
897
|
+
console?: {
|
|
898
|
+
level?: string | undefined;
|
|
899
|
+
absent?: boolean | undefined;
|
|
1031
900
|
} | undefined;
|
|
901
|
+
signalData?: Record<string, unknown> | undefined;
|
|
902
|
+
signalCount?: number | undefined;
|
|
903
|
+
}>]>, "many">, Predicate[], (Predicate | {
|
|
904
|
+
signal?: string | undefined;
|
|
1032
905
|
net?: {
|
|
1033
906
|
status?: number | undefined;
|
|
1034
907
|
method?: string | undefined;
|
|
@@ -1037,18 +910,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1037
910
|
} | undefined;
|
|
1038
911
|
state?: {
|
|
1039
912
|
path: string;
|
|
913
|
+
hold?: boolean | undefined;
|
|
1040
914
|
store?: string | undefined;
|
|
1041
915
|
equals?: unknown;
|
|
1042
|
-
hold?: boolean | undefined;
|
|
1043
916
|
} | undefined;
|
|
1044
917
|
element?: {
|
|
1045
|
-
role?: string | undefined;
|
|
1046
918
|
testid?: string | undefined;
|
|
919
|
+
role?: string | undefined;
|
|
1047
920
|
name?: string | undefined;
|
|
1048
921
|
} | undefined;
|
|
922
|
+
text?: {
|
|
923
|
+
contains: string;
|
|
924
|
+
visible?: boolean | undefined;
|
|
925
|
+
scope?: string | undefined;
|
|
926
|
+
absent?: boolean | undefined;
|
|
927
|
+
} | undefined;
|
|
1049
928
|
route?: {
|
|
1050
|
-
pathname?: string | undefined;
|
|
1051
929
|
contains?: string | undefined;
|
|
930
|
+
pathname?: string | undefined;
|
|
1052
931
|
} | undefined;
|
|
1053
932
|
console?: {
|
|
1054
933
|
level?: string | undefined;
|
|
@@ -1056,53 +935,25 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1056
935
|
} | undefined;
|
|
1057
936
|
signalData?: Record<string, unknown> | undefined;
|
|
1058
937
|
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
|
-
*/
|
|
938
|
+
})[]>>;
|
|
939
|
+
ensures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
1072
940
|
route: z.ZodOptional<z.ZodObject<{
|
|
1073
941
|
pathname: z.ZodOptional<z.ZodString>;
|
|
1074
942
|
contains: z.ZodOptional<z.ZodString>;
|
|
1075
943
|
}, "strip", z.ZodTypeAny, {
|
|
1076
|
-
pathname?: string | undefined;
|
|
1077
944
|
contains?: string | undefined;
|
|
1078
|
-
}, {
|
|
1079
945
|
pathname?: string | undefined;
|
|
946
|
+
}, {
|
|
1080
947
|
contains?: string | undefined;
|
|
948
|
+
pathname?: string | undefined;
|
|
1081
949
|
}>>;
|
|
1082
950
|
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
951
|
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
952
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
1097
953
|
net: z.ZodOptional<z.ZodObject<{
|
|
1098
954
|
method: z.ZodOptional<z.ZodString>;
|
|
1099
955
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
1100
956
|
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
957
|
count: z.ZodOptional<z.ZodNumber>;
|
|
1107
958
|
}, "strict", z.ZodTypeAny, {
|
|
1108
959
|
status?: number | undefined;
|
|
@@ -1115,12 +966,6 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1115
966
|
urlContains?: string | undefined;
|
|
1116
967
|
count?: number | undefined;
|
|
1117
968
|
}>>;
|
|
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
969
|
console: z.ZodOptional<z.ZodObject<{
|
|
1125
970
|
level: z.ZodOptional<z.ZodString>;
|
|
1126
971
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1136,84 +981,83 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1136
981
|
role: z.ZodOptional<z.ZodString>;
|
|
1137
982
|
name: z.ZodOptional<z.ZodString>;
|
|
1138
983
|
}, "strict", z.ZodTypeAny, {
|
|
1139
|
-
role?: string | undefined;
|
|
1140
984
|
testid?: string | undefined;
|
|
985
|
+
role?: string | undefined;
|
|
1141
986
|
name?: string | undefined;
|
|
1142
987
|
}, {
|
|
1143
|
-
role?: string | undefined;
|
|
1144
988
|
testid?: string | undefined;
|
|
989
|
+
role?: string | undefined;
|
|
1145
990
|
name?: string | undefined;
|
|
1146
991
|
}>>;
|
|
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
992
|
text: z.ZodOptional<z.ZodObject<{
|
|
1164
993
|
contains: z.ZodString;
|
|
1165
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
1166
994
|
scope: z.ZodOptional<z.ZodString>;
|
|
1167
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
1168
995
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
1169
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
1170
996
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1171
997
|
}, "strict", z.ZodTypeAny, {
|
|
1172
998
|
contains: string;
|
|
1173
999
|
visible?: boolean | undefined;
|
|
1174
|
-
absent?: boolean | undefined;
|
|
1175
1000
|
scope?: string | undefined;
|
|
1001
|
+
absent?: boolean | undefined;
|
|
1176
1002
|
}, {
|
|
1177
1003
|
contains: string;
|
|
1178
1004
|
visible?: boolean | undefined;
|
|
1179
|
-
absent?: boolean | undefined;
|
|
1180
1005
|
scope?: string | undefined;
|
|
1006
|
+
absent?: boolean | undefined;
|
|
1181
1007
|
}>>;
|
|
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
1008
|
state: z.ZodOptional<z.ZodObject<{
|
|
1189
1009
|
store: z.ZodOptional<z.ZodString>;
|
|
1190
1010
|
path: z.ZodString;
|
|
1191
1011
|
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
1012
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
1198
1013
|
}, "strict", z.ZodTypeAny, {
|
|
1199
1014
|
path: string;
|
|
1015
|
+
hold?: boolean | undefined;
|
|
1200
1016
|
store?: string | undefined;
|
|
1201
1017
|
equals?: unknown;
|
|
1202
|
-
hold?: boolean | undefined;
|
|
1203
1018
|
}, {
|
|
1204
1019
|
path: string;
|
|
1020
|
+
hold?: boolean | undefined;
|
|
1205
1021
|
store?: string | undefined;
|
|
1206
1022
|
equals?: unknown;
|
|
1207
|
-
hold?: boolean | undefined;
|
|
1208
1023
|
}>>;
|
|
1209
1024
|
}, "strict", z.ZodTypeAny, {
|
|
1210
1025
|
signal?: string | undefined;
|
|
1026
|
+
net?: {
|
|
1027
|
+
status?: number | undefined;
|
|
1028
|
+
method?: string | undefined;
|
|
1029
|
+
urlContains?: string | undefined;
|
|
1030
|
+
count?: number | undefined;
|
|
1031
|
+
} | undefined;
|
|
1032
|
+
state?: {
|
|
1033
|
+
path: string;
|
|
1034
|
+
hold?: boolean | undefined;
|
|
1035
|
+
store?: string | undefined;
|
|
1036
|
+
equals?: unknown;
|
|
1037
|
+
} | undefined;
|
|
1038
|
+
element?: {
|
|
1039
|
+
testid?: string | undefined;
|
|
1040
|
+
role?: string | undefined;
|
|
1041
|
+
name?: string | undefined;
|
|
1042
|
+
} | undefined;
|
|
1211
1043
|
text?: {
|
|
1212
1044
|
contains: string;
|
|
1213
1045
|
visible?: boolean | undefined;
|
|
1214
|
-
absent?: boolean | undefined;
|
|
1215
1046
|
scope?: string | undefined;
|
|
1047
|
+
absent?: boolean | undefined;
|
|
1048
|
+
} | undefined;
|
|
1049
|
+
route?: {
|
|
1050
|
+
contains?: string | undefined;
|
|
1051
|
+
pathname?: string | undefined;
|
|
1052
|
+
} | undefined;
|
|
1053
|
+
console?: {
|
|
1054
|
+
level?: string | undefined;
|
|
1055
|
+
absent?: boolean | undefined;
|
|
1216
1056
|
} | undefined;
|
|
1057
|
+
signalData?: Record<string, unknown> | undefined;
|
|
1058
|
+
signalCount?: number | undefined;
|
|
1059
|
+
}, {
|
|
1060
|
+
signal?: string | undefined;
|
|
1217
1061
|
net?: {
|
|
1218
1062
|
status?: number | undefined;
|
|
1219
1063
|
method?: string | undefined;
|
|
@@ -1222,18 +1066,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1222
1066
|
} | undefined;
|
|
1223
1067
|
state?: {
|
|
1224
1068
|
path: string;
|
|
1069
|
+
hold?: boolean | undefined;
|
|
1225
1070
|
store?: string | undefined;
|
|
1226
1071
|
equals?: unknown;
|
|
1227
|
-
hold?: boolean | undefined;
|
|
1228
1072
|
} | undefined;
|
|
1229
1073
|
element?: {
|
|
1230
|
-
role?: string | undefined;
|
|
1231
1074
|
testid?: string | undefined;
|
|
1075
|
+
role?: string | undefined;
|
|
1232
1076
|
name?: string | undefined;
|
|
1233
1077
|
} | undefined;
|
|
1078
|
+
text?: {
|
|
1079
|
+
contains: string;
|
|
1080
|
+
visible?: boolean | undefined;
|
|
1081
|
+
scope?: string | undefined;
|
|
1082
|
+
absent?: boolean | undefined;
|
|
1083
|
+
} | undefined;
|
|
1234
1084
|
route?: {
|
|
1235
|
-
pathname?: string | undefined;
|
|
1236
1085
|
contains?: string | undefined;
|
|
1086
|
+
pathname?: string | undefined;
|
|
1237
1087
|
} | undefined;
|
|
1238
1088
|
console?: {
|
|
1239
1089
|
level?: string | undefined;
|
|
@@ -1241,14 +1091,115 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1241
1091
|
} | undefined;
|
|
1242
1092
|
signalData?: Record<string, unknown> | undefined;
|
|
1243
1093
|
signalCount?: number | undefined;
|
|
1244
|
-
}
|
|
1094
|
+
}>, {
|
|
1095
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
1096
|
+
query: import("../index.js").ElementQuery;
|
|
1097
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
1098
|
+
absent?: boolean;
|
|
1099
|
+
} | {
|
|
1100
|
+
kind: typeof PredicateKind.TEXT;
|
|
1101
|
+
contains?: string;
|
|
1102
|
+
visible?: boolean;
|
|
1103
|
+
absent?: boolean;
|
|
1104
|
+
scope?: string;
|
|
1105
|
+
self?: boolean;
|
|
1106
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
1107
|
+
} | {
|
|
1108
|
+
kind: typeof PredicateKind.NET;
|
|
1109
|
+
method?: string;
|
|
1110
|
+
urlContains?: string;
|
|
1111
|
+
status?: number;
|
|
1112
|
+
ok?: boolean;
|
|
1113
|
+
since?: number;
|
|
1114
|
+
count?: number;
|
|
1115
|
+
bodyContains?: string;
|
|
1116
|
+
bodyMatches?: Record<string, unknown>;
|
|
1117
|
+
requestBodyContains?: string;
|
|
1118
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
1119
|
+
} | {
|
|
1120
|
+
kind: typeof PredicateKind.ROUTE;
|
|
1121
|
+
pathname?: string;
|
|
1122
|
+
contains?: string;
|
|
1123
|
+
since?: number;
|
|
1124
|
+
} | {
|
|
1125
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
1126
|
+
level?: string;
|
|
1127
|
+
contains?: string;
|
|
1128
|
+
absent?: boolean;
|
|
1129
|
+
since?: number;
|
|
1130
|
+
} | {
|
|
1131
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
1132
|
+
name?: string;
|
|
1133
|
+
target?: string;
|
|
1134
|
+
completed?: boolean;
|
|
1135
|
+
since?: number;
|
|
1136
|
+
} | {
|
|
1137
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
1138
|
+
name?: string;
|
|
1139
|
+
dataMatches?: Record<string, unknown>;
|
|
1140
|
+
count?: number;
|
|
1141
|
+
since?: number;
|
|
1142
|
+
} | {
|
|
1143
|
+
kind: typeof PredicateKind.STATE;
|
|
1144
|
+
store?: string;
|
|
1145
|
+
path: string;
|
|
1146
|
+
equals?: unknown;
|
|
1147
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
1148
|
+
} | {
|
|
1149
|
+
kind: typeof PredicateKind.SETTLED;
|
|
1150
|
+
quietMs?: number;
|
|
1151
|
+
} | {
|
|
1152
|
+
kind: typeof PredicateKind.COMPARE;
|
|
1153
|
+
left: import("../verdict/compare-source.js").CompareSource;
|
|
1154
|
+
right: import("../verdict/compare-source.js").CompareSource;
|
|
1155
|
+
as?: import("../verdict/compare-source.js").CompareAs;
|
|
1156
|
+
tolerance?: number;
|
|
1157
|
+
} | {
|
|
1158
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
1159
|
+
predicates: Predicate[];
|
|
1160
|
+
} | {
|
|
1161
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
1162
|
+
predicates: Predicate[];
|
|
1163
|
+
} | {
|
|
1164
|
+
kind: typeof PredicateKind.NOT;
|
|
1165
|
+
predicate: Predicate;
|
|
1166
|
+
} | undefined, {
|
|
1245
1167
|
signal?: string | undefined;
|
|
1168
|
+
net?: {
|
|
1169
|
+
status?: number | undefined;
|
|
1170
|
+
method?: string | undefined;
|
|
1171
|
+
urlContains?: string | undefined;
|
|
1172
|
+
count?: number | undefined;
|
|
1173
|
+
} | undefined;
|
|
1174
|
+
state?: {
|
|
1175
|
+
path: string;
|
|
1176
|
+
hold?: boolean | undefined;
|
|
1177
|
+
store?: string | undefined;
|
|
1178
|
+
equals?: unknown;
|
|
1179
|
+
} | undefined;
|
|
1180
|
+
element?: {
|
|
1181
|
+
testid?: string | undefined;
|
|
1182
|
+
role?: string | undefined;
|
|
1183
|
+
name?: string | undefined;
|
|
1184
|
+
} | undefined;
|
|
1246
1185
|
text?: {
|
|
1247
1186
|
contains: string;
|
|
1248
1187
|
visible?: boolean | undefined;
|
|
1249
|
-
absent?: boolean | undefined;
|
|
1250
1188
|
scope?: string | undefined;
|
|
1189
|
+
absent?: boolean | undefined;
|
|
1190
|
+
} | undefined;
|
|
1191
|
+
route?: {
|
|
1192
|
+
contains?: string | undefined;
|
|
1193
|
+
pathname?: string | undefined;
|
|
1194
|
+
} | undefined;
|
|
1195
|
+
console?: {
|
|
1196
|
+
level?: string | undefined;
|
|
1197
|
+
absent?: boolean | undefined;
|
|
1251
1198
|
} | undefined;
|
|
1199
|
+
signalData?: Record<string, unknown> | undefined;
|
|
1200
|
+
signalCount?: number | undefined;
|
|
1201
|
+
}>]>, "many">, Predicate[], (Predicate | {
|
|
1202
|
+
signal?: string | undefined;
|
|
1252
1203
|
net?: {
|
|
1253
1204
|
status?: number | undefined;
|
|
1254
1205
|
method?: string | undefined;
|
|
@@ -1257,18 +1208,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1257
1208
|
} | undefined;
|
|
1258
1209
|
state?: {
|
|
1259
1210
|
path: string;
|
|
1211
|
+
hold?: boolean | undefined;
|
|
1260
1212
|
store?: string | undefined;
|
|
1261
1213
|
equals?: unknown;
|
|
1262
|
-
hold?: boolean | undefined;
|
|
1263
1214
|
} | undefined;
|
|
1264
1215
|
element?: {
|
|
1265
|
-
role?: string | undefined;
|
|
1266
1216
|
testid?: string | undefined;
|
|
1217
|
+
role?: string | undefined;
|
|
1267
1218
|
name?: string | undefined;
|
|
1268
1219
|
} | undefined;
|
|
1220
|
+
text?: {
|
|
1221
|
+
contains: string;
|
|
1222
|
+
visible?: boolean | undefined;
|
|
1223
|
+
scope?: string | undefined;
|
|
1224
|
+
absent?: boolean | undefined;
|
|
1225
|
+
} | undefined;
|
|
1269
1226
|
route?: {
|
|
1270
|
-
pathname?: string | undefined;
|
|
1271
1227
|
contains?: string | undefined;
|
|
1228
|
+
pathname?: string | undefined;
|
|
1272
1229
|
} | undefined;
|
|
1273
1230
|
console?: {
|
|
1274
1231
|
level?: string | undefined;
|
|
@@ -1276,7 +1233,22 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1276
1233
|
} | undefined;
|
|
1277
1234
|
signalData?: Record<string, unknown> | undefined;
|
|
1278
1235
|
signalCount?: number | undefined;
|
|
1279
|
-
}
|
|
1236
|
+
})[]>>;
|
|
1237
|
+
/**
|
|
1238
|
+
* Who made this flow, stamped at save: the agent that drove it (its MCP client name) and the
|
|
1239
|
+
* person signed in to the cloud key on that machine. Either is absent when it was not known —
|
|
1240
|
+
* never guessed.
|
|
1241
|
+
*/
|
|
1242
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
1243
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
1244
|
+
person: z.ZodOptional<z.ZodString>;
|
|
1245
|
+
}, "strip", z.ZodTypeAny, {
|
|
1246
|
+
agent?: string | undefined;
|
|
1247
|
+
person?: string | undefined;
|
|
1248
|
+
}, {
|
|
1249
|
+
agent?: string | undefined;
|
|
1250
|
+
person?: string | undefined;
|
|
1251
|
+
}>>;
|
|
1280
1252
|
/** From the injected clock (ms) — deterministic in tests, byte-stable on disk. */
|
|
1281
1253
|
createdAt: z.ZodNumber;
|
|
1282
1254
|
steps: z.ZodArray<z.ZodType<FlowStep, z.ZodTypeDef, FlowStep>, "many">;
|
|
@@ -1289,52 +1261,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1289
1261
|
* replays exactly as before and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
1290
1262
|
*/
|
|
1291
1263
|
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
|
-
*/
|
|
1264
|
+
success: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
1304
1265
|
route: z.ZodOptional<z.ZodObject<{
|
|
1305
1266
|
pathname: z.ZodOptional<z.ZodString>;
|
|
1306
1267
|
contains: z.ZodOptional<z.ZodString>;
|
|
1307
1268
|
}, "strip", z.ZodTypeAny, {
|
|
1308
|
-
pathname?: string | undefined;
|
|
1309
1269
|
contains?: string | undefined;
|
|
1310
|
-
}, {
|
|
1311
1270
|
pathname?: string | undefined;
|
|
1271
|
+
}, {
|
|
1312
1272
|
contains?: string | undefined;
|
|
1273
|
+
pathname?: string | undefined;
|
|
1313
1274
|
}>>;
|
|
1314
1275
|
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
1276
|
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
1277
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
1329
1278
|
net: z.ZodOptional<z.ZodObject<{
|
|
1330
1279
|
method: z.ZodOptional<z.ZodString>;
|
|
1331
1280
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
1332
1281
|
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
1282
|
count: z.ZodOptional<z.ZodNumber>;
|
|
1339
1283
|
}, "strict", z.ZodTypeAny, {
|
|
1340
1284
|
status?: number | undefined;
|
|
@@ -1347,12 +1291,6 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1347
1291
|
urlContains?: string | undefined;
|
|
1348
1292
|
count?: number | undefined;
|
|
1349
1293
|
}>>;
|
|
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
1294
|
console: z.ZodOptional<z.ZodObject<{
|
|
1357
1295
|
level: z.ZodOptional<z.ZodString>;
|
|
1358
1296
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1368,84 +1306,48 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1368
1306
|
role: z.ZodOptional<z.ZodString>;
|
|
1369
1307
|
name: z.ZodOptional<z.ZodString>;
|
|
1370
1308
|
}, "strict", z.ZodTypeAny, {
|
|
1371
|
-
role?: string | undefined;
|
|
1372
1309
|
testid?: string | undefined;
|
|
1310
|
+
role?: string | undefined;
|
|
1373
1311
|
name?: string | undefined;
|
|
1374
1312
|
}, {
|
|
1375
|
-
role?: string | undefined;
|
|
1376
1313
|
testid?: string | undefined;
|
|
1314
|
+
role?: string | undefined;
|
|
1377
1315
|
name?: string | undefined;
|
|
1378
1316
|
}>>;
|
|
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
1317
|
text: z.ZodOptional<z.ZodObject<{
|
|
1396
1318
|
contains: z.ZodString;
|
|
1397
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
1398
1319
|
scope: z.ZodOptional<z.ZodString>;
|
|
1399
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
1400
1320
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
1401
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
1402
1321
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1403
1322
|
}, "strict", z.ZodTypeAny, {
|
|
1404
1323
|
contains: string;
|
|
1405
1324
|
visible?: boolean | undefined;
|
|
1406
|
-
absent?: boolean | undefined;
|
|
1407
1325
|
scope?: string | undefined;
|
|
1326
|
+
absent?: boolean | undefined;
|
|
1408
1327
|
}, {
|
|
1409
1328
|
contains: string;
|
|
1410
1329
|
visible?: boolean | undefined;
|
|
1411
|
-
absent?: boolean | undefined;
|
|
1412
1330
|
scope?: string | undefined;
|
|
1331
|
+
absent?: boolean | undefined;
|
|
1413
1332
|
}>>;
|
|
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
1333
|
state: z.ZodOptional<z.ZodObject<{
|
|
1421
1334
|
store: z.ZodOptional<z.ZodString>;
|
|
1422
1335
|
path: z.ZodString;
|
|
1423
1336
|
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
1337
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
1430
1338
|
}, "strict", z.ZodTypeAny, {
|
|
1431
1339
|
path: string;
|
|
1340
|
+
hold?: boolean | undefined;
|
|
1432
1341
|
store?: string | undefined;
|
|
1433
1342
|
equals?: unknown;
|
|
1434
|
-
hold?: boolean | undefined;
|
|
1435
1343
|
}, {
|
|
1436
1344
|
path: string;
|
|
1345
|
+
hold?: boolean | undefined;
|
|
1437
1346
|
store?: string | undefined;
|
|
1438
1347
|
equals?: unknown;
|
|
1439
|
-
hold?: boolean | undefined;
|
|
1440
1348
|
}>>;
|
|
1441
1349
|
}, "strict", z.ZodTypeAny, {
|
|
1442
1350
|
signal?: string | undefined;
|
|
1443
|
-
text?: {
|
|
1444
|
-
contains: string;
|
|
1445
|
-
visible?: boolean | undefined;
|
|
1446
|
-
absent?: boolean | undefined;
|
|
1447
|
-
scope?: string | undefined;
|
|
1448
|
-
} | undefined;
|
|
1449
1351
|
net?: {
|
|
1450
1352
|
status?: number | undefined;
|
|
1451
1353
|
method?: string | undefined;
|
|
@@ -1454,18 +1356,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1454
1356
|
} | undefined;
|
|
1455
1357
|
state?: {
|
|
1456
1358
|
path: string;
|
|
1359
|
+
hold?: boolean | undefined;
|
|
1457
1360
|
store?: string | undefined;
|
|
1458
1361
|
equals?: unknown;
|
|
1459
|
-
hold?: boolean | undefined;
|
|
1460
1362
|
} | undefined;
|
|
1461
1363
|
element?: {
|
|
1462
|
-
role?: string | undefined;
|
|
1463
1364
|
testid?: string | undefined;
|
|
1365
|
+
role?: string | undefined;
|
|
1464
1366
|
name?: string | undefined;
|
|
1465
1367
|
} | undefined;
|
|
1368
|
+
text?: {
|
|
1369
|
+
contains: string;
|
|
1370
|
+
visible?: boolean | undefined;
|
|
1371
|
+
scope?: string | undefined;
|
|
1372
|
+
absent?: boolean | undefined;
|
|
1373
|
+
} | undefined;
|
|
1466
1374
|
route?: {
|
|
1467
|
-
pathname?: string | undefined;
|
|
1468
1375
|
contains?: string | undefined;
|
|
1376
|
+
pathname?: string | undefined;
|
|
1469
1377
|
} | undefined;
|
|
1470
1378
|
console?: {
|
|
1471
1379
|
level?: string | undefined;
|
|
@@ -1475,12 +1383,113 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1475
1383
|
signalCount?: number | undefined;
|
|
1476
1384
|
}, {
|
|
1477
1385
|
signal?: string | undefined;
|
|
1386
|
+
net?: {
|
|
1387
|
+
status?: number | undefined;
|
|
1388
|
+
method?: string | undefined;
|
|
1389
|
+
urlContains?: string | undefined;
|
|
1390
|
+
count?: number | undefined;
|
|
1391
|
+
} | undefined;
|
|
1392
|
+
state?: {
|
|
1393
|
+
path: string;
|
|
1394
|
+
hold?: boolean | undefined;
|
|
1395
|
+
store?: string | undefined;
|
|
1396
|
+
equals?: unknown;
|
|
1397
|
+
} | undefined;
|
|
1398
|
+
element?: {
|
|
1399
|
+
testid?: string | undefined;
|
|
1400
|
+
role?: string | undefined;
|
|
1401
|
+
name?: string | undefined;
|
|
1402
|
+
} | undefined;
|
|
1478
1403
|
text?: {
|
|
1479
1404
|
contains: string;
|
|
1480
1405
|
visible?: boolean | undefined;
|
|
1481
|
-
absent?: boolean | undefined;
|
|
1482
1406
|
scope?: string | undefined;
|
|
1407
|
+
absent?: boolean | undefined;
|
|
1408
|
+
} | undefined;
|
|
1409
|
+
route?: {
|
|
1410
|
+
contains?: string | undefined;
|
|
1411
|
+
pathname?: string | undefined;
|
|
1412
|
+
} | undefined;
|
|
1413
|
+
console?: {
|
|
1414
|
+
level?: string | undefined;
|
|
1415
|
+
absent?: boolean | undefined;
|
|
1483
1416
|
} | undefined;
|
|
1417
|
+
signalData?: Record<string, unknown> | undefined;
|
|
1418
|
+
signalCount?: number | undefined;
|
|
1419
|
+
}>, {
|
|
1420
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
1421
|
+
query: import("../index.js").ElementQuery;
|
|
1422
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
1423
|
+
absent?: boolean;
|
|
1424
|
+
} | {
|
|
1425
|
+
kind: typeof PredicateKind.TEXT;
|
|
1426
|
+
contains?: string;
|
|
1427
|
+
visible?: boolean;
|
|
1428
|
+
absent?: boolean;
|
|
1429
|
+
scope?: string;
|
|
1430
|
+
self?: boolean;
|
|
1431
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
1432
|
+
} | {
|
|
1433
|
+
kind: typeof PredicateKind.NET;
|
|
1434
|
+
method?: string;
|
|
1435
|
+
urlContains?: string;
|
|
1436
|
+
status?: number;
|
|
1437
|
+
ok?: boolean;
|
|
1438
|
+
since?: number;
|
|
1439
|
+
count?: number;
|
|
1440
|
+
bodyContains?: string;
|
|
1441
|
+
bodyMatches?: Record<string, unknown>;
|
|
1442
|
+
requestBodyContains?: string;
|
|
1443
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
1444
|
+
} | {
|
|
1445
|
+
kind: typeof PredicateKind.ROUTE;
|
|
1446
|
+
pathname?: string;
|
|
1447
|
+
contains?: string;
|
|
1448
|
+
since?: number;
|
|
1449
|
+
} | {
|
|
1450
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
1451
|
+
level?: string;
|
|
1452
|
+
contains?: string;
|
|
1453
|
+
absent?: boolean;
|
|
1454
|
+
since?: number;
|
|
1455
|
+
} | {
|
|
1456
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
1457
|
+
name?: string;
|
|
1458
|
+
target?: string;
|
|
1459
|
+
completed?: boolean;
|
|
1460
|
+
since?: number;
|
|
1461
|
+
} | {
|
|
1462
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
1463
|
+
name?: string;
|
|
1464
|
+
dataMatches?: Record<string, unknown>;
|
|
1465
|
+
count?: number;
|
|
1466
|
+
since?: number;
|
|
1467
|
+
} | {
|
|
1468
|
+
kind: typeof PredicateKind.STATE;
|
|
1469
|
+
store?: string;
|
|
1470
|
+
path: string;
|
|
1471
|
+
equals?: unknown;
|
|
1472
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
1473
|
+
} | {
|
|
1474
|
+
kind: typeof PredicateKind.SETTLED;
|
|
1475
|
+
quietMs?: number;
|
|
1476
|
+
} | {
|
|
1477
|
+
kind: typeof PredicateKind.COMPARE;
|
|
1478
|
+
left: import("../verdict/compare-source.js").CompareSource;
|
|
1479
|
+
right: import("../verdict/compare-source.js").CompareSource;
|
|
1480
|
+
as?: import("../verdict/compare-source.js").CompareAs;
|
|
1481
|
+
tolerance?: number;
|
|
1482
|
+
} | {
|
|
1483
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
1484
|
+
predicates: Predicate[];
|
|
1485
|
+
} | {
|
|
1486
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
1487
|
+
predicates: Predicate[];
|
|
1488
|
+
} | {
|
|
1489
|
+
kind: typeof PredicateKind.NOT;
|
|
1490
|
+
predicate: Predicate;
|
|
1491
|
+
} | undefined, {
|
|
1492
|
+
signal?: string | undefined;
|
|
1484
1493
|
net?: {
|
|
1485
1494
|
status?: number | undefined;
|
|
1486
1495
|
method?: string | undefined;
|
|
@@ -1489,18 +1498,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1489
1498
|
} | undefined;
|
|
1490
1499
|
state?: {
|
|
1491
1500
|
path: string;
|
|
1501
|
+
hold?: boolean | undefined;
|
|
1492
1502
|
store?: string | undefined;
|
|
1493
1503
|
equals?: unknown;
|
|
1494
|
-
hold?: boolean | undefined;
|
|
1495
1504
|
} | undefined;
|
|
1496
1505
|
element?: {
|
|
1497
|
-
role?: string | undefined;
|
|
1498
1506
|
testid?: string | undefined;
|
|
1507
|
+
role?: string | undefined;
|
|
1499
1508
|
name?: string | undefined;
|
|
1500
1509
|
} | undefined;
|
|
1510
|
+
text?: {
|
|
1511
|
+
contains: string;
|
|
1512
|
+
visible?: boolean | undefined;
|
|
1513
|
+
scope?: string | undefined;
|
|
1514
|
+
absent?: boolean | undefined;
|
|
1515
|
+
} | undefined;
|
|
1501
1516
|
route?: {
|
|
1502
|
-
pathname?: string | undefined;
|
|
1503
1517
|
contains?: string | undefined;
|
|
1518
|
+
pathname?: string | undefined;
|
|
1504
1519
|
} | undefined;
|
|
1505
1520
|
console?: {
|
|
1506
1521
|
level?: string | undefined;
|
|
@@ -1508,7 +1523,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1508
1523
|
} | undefined;
|
|
1509
1524
|
signalData?: Record<string, unknown> | undefined;
|
|
1510
1525
|
signalCount?: number | undefined;
|
|
1511
|
-
}>>;
|
|
1526
|
+
}>]>>;
|
|
1512
1527
|
/**
|
|
1513
1528
|
* Anchors whose CONTENT must not be asserted (e.g. LLM output). Replay asserts
|
|
1514
1529
|
* presence, not words. Compiled from a `mark-dynamic` annotation.
|
|
@@ -1550,12 +1565,12 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1550
1565
|
role: z.ZodString;
|
|
1551
1566
|
name: z.ZodOptional<z.ZodString>;
|
|
1552
1567
|
}, "strip", z.ZodTypeAny, {
|
|
1553
|
-
role: string;
|
|
1554
1568
|
kind: "role";
|
|
1569
|
+
role: string;
|
|
1555
1570
|
name?: string | undefined;
|
|
1556
1571
|
}, {
|
|
1557
|
-
role: string;
|
|
1558
1572
|
kind: "role";
|
|
1573
|
+
role: string;
|
|
1559
1574
|
name?: string | undefined;
|
|
1560
1575
|
}>, z.ZodObject<{
|
|
1561
1576
|
kind: z.ZodLiteral<"signal">;
|
|
@@ -1588,22 +1603,22 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1588
1603
|
kind: "component";
|
|
1589
1604
|
role?: string | undefined;
|
|
1590
1605
|
component?: string | undefined;
|
|
1606
|
+
name?: string | undefined;
|
|
1591
1607
|
source?: {
|
|
1592
1608
|
file: string;
|
|
1593
1609
|
line: number;
|
|
1594
1610
|
column?: number | undefined;
|
|
1595
1611
|
} | undefined;
|
|
1596
|
-
name?: string | undefined;
|
|
1597
1612
|
}, {
|
|
1598
1613
|
kind: "component";
|
|
1599
1614
|
role?: string | undefined;
|
|
1600
1615
|
component?: string | undefined;
|
|
1616
|
+
name?: string | undefined;
|
|
1601
1617
|
source?: {
|
|
1602
1618
|
file: string;
|
|
1603
1619
|
line: number;
|
|
1604
1620
|
column?: number | undefined;
|
|
1605
1621
|
} | undefined;
|
|
1606
|
-
name?: string | undefined;
|
|
1607
1622
|
}>]>, "many">>;
|
|
1608
1623
|
/**
|
|
1609
1624
|
* Free-form labels a suite selects on — `smoke`, `checkout`, `slow`.
|
|
@@ -1644,13 +1659,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1644
1659
|
cleanRuns: z.ZodOptional<z.ZodNumber>;
|
|
1645
1660
|
}, "strip", z.ZodTypeAny, {
|
|
1646
1661
|
state: "open" | "guarded";
|
|
1647
|
-
step: number;
|
|
1648
1662
|
kind: string;
|
|
1663
|
+
step: number;
|
|
1649
1664
|
cleanRuns?: number | undefined;
|
|
1650
1665
|
}, {
|
|
1651
1666
|
state: "open" | "guarded";
|
|
1652
|
-
step: number;
|
|
1653
1667
|
kind: string;
|
|
1668
|
+
step: number;
|
|
1654
1669
|
cleanRuns?: number | undefined;
|
|
1655
1670
|
}>, "many">>;
|
|
1656
1671
|
/**
|
|
@@ -1672,12 +1687,12 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1672
1687
|
/** Which of this flow's assertions the note was written against. */
|
|
1673
1688
|
assertions: z.ZodArray<z.ZodString, "many">;
|
|
1674
1689
|
}, "strip", z.ZodTypeAny, {
|
|
1675
|
-
id: string;
|
|
1676
1690
|
summary: string;
|
|
1691
|
+
id: string;
|
|
1677
1692
|
assertions: string[];
|
|
1678
1693
|
}, {
|
|
1679
|
-
id: string;
|
|
1680
1694
|
summary: string;
|
|
1695
|
+
id: string;
|
|
1681
1696
|
assertions: string[];
|
|
1682
1697
|
}>, "many">>;
|
|
1683
1698
|
/**
|
|
@@ -1694,135 +1709,40 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1694
1709
|
until: z.ZodOptional<z.ZodString>;
|
|
1695
1710
|
}, "strip", z.ZodTypeAny, {
|
|
1696
1711
|
reason: string;
|
|
1697
|
-
since: string;
|
|
1698
1712
|
owner: string;
|
|
1713
|
+
since: string;
|
|
1699
1714
|
until?: string | undefined;
|
|
1700
1715
|
}, {
|
|
1701
1716
|
reason: string;
|
|
1702
|
-
since: string;
|
|
1703
1717
|
owner: string;
|
|
1718
|
+
since: string;
|
|
1704
1719
|
until?: string | undefined;
|
|
1705
1720
|
}>>;
|
|
1706
1721
|
}, "strip", z.ZodTypeAny, {
|
|
1707
|
-
name: string;
|
|
1708
1722
|
steps: FlowStep[];
|
|
1709
|
-
|
|
1723
|
+
name: string;
|
|
1710
1724
|
createdAt: number;
|
|
1725
|
+
version: number;
|
|
1711
1726
|
intent?: string | undefined;
|
|
1712
1727
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
1728
|
+
startPath?: string | undefined;
|
|
1729
|
+
learned?: {
|
|
1730
|
+
state: "open" | "guarded";
|
|
1731
|
+
kind: string;
|
|
1732
|
+
step: number;
|
|
1733
|
+
cleanRuns?: number | undefined;
|
|
1734
|
+
}[] | undefined;
|
|
1713
1735
|
intentId?: string | undefined;
|
|
1714
1736
|
projectId?: string | undefined;
|
|
1715
|
-
startPath?: string | undefined;
|
|
1716
1737
|
fixture?: string | undefined;
|
|
1717
|
-
requires?:
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
absent?: boolean | undefined;
|
|
1723
|
-
scope?: string | undefined;
|
|
1724
|
-
} | undefined;
|
|
1725
|
-
net?: {
|
|
1726
|
-
status?: number | undefined;
|
|
1727
|
-
method?: string | undefined;
|
|
1728
|
-
urlContains?: string | undefined;
|
|
1729
|
-
count?: number | undefined;
|
|
1730
|
-
} | undefined;
|
|
1731
|
-
state?: {
|
|
1732
|
-
path: string;
|
|
1733
|
-
store?: string | undefined;
|
|
1734
|
-
equals?: unknown;
|
|
1735
|
-
hold?: boolean | undefined;
|
|
1736
|
-
} | undefined;
|
|
1737
|
-
element?: {
|
|
1738
|
-
role?: string | undefined;
|
|
1739
|
-
testid?: string | undefined;
|
|
1740
|
-
name?: string | undefined;
|
|
1741
|
-
} | undefined;
|
|
1742
|
-
route?: {
|
|
1743
|
-
pathname?: string | undefined;
|
|
1744
|
-
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
|
-
pathname?: string | undefined;
|
|
1817
|
-
contains?: string | undefined;
|
|
1818
|
-
} | undefined;
|
|
1819
|
-
console?: {
|
|
1820
|
-
level?: string | undefined;
|
|
1821
|
-
absent?: boolean | undefined;
|
|
1822
|
-
} | undefined;
|
|
1823
|
-
signalData?: Record<string, unknown> | undefined;
|
|
1824
|
-
signalCount?: number | undefined;
|
|
1738
|
+
requires?: Predicate[] | undefined;
|
|
1739
|
+
ensures?: Predicate[] | undefined;
|
|
1740
|
+
author?: {
|
|
1741
|
+
agent?: string | undefined;
|
|
1742
|
+
person?: string | undefined;
|
|
1825
1743
|
} | undefined;
|
|
1744
|
+
signalTimeoutMs?: number | undefined;
|
|
1745
|
+
success?: Predicate | undefined;
|
|
1826
1746
|
dynamic?: ({
|
|
1827
1747
|
kind: "testid";
|
|
1828
1748
|
value: string;
|
|
@@ -1832,8 +1752,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1832
1752
|
column?: number | undefined;
|
|
1833
1753
|
} | undefined;
|
|
1834
1754
|
} | {
|
|
1835
|
-
role: string;
|
|
1836
1755
|
kind: "role";
|
|
1756
|
+
role: string;
|
|
1837
1757
|
name?: string | undefined;
|
|
1838
1758
|
} | {
|
|
1839
1759
|
kind: "signal";
|
|
@@ -1842,51 +1762,45 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1842
1762
|
kind: "component";
|
|
1843
1763
|
role?: string | undefined;
|
|
1844
1764
|
component?: string | undefined;
|
|
1765
|
+
name?: string | undefined;
|
|
1845
1766
|
source?: {
|
|
1846
1767
|
file: string;
|
|
1847
1768
|
line: number;
|
|
1848
1769
|
column?: number | undefined;
|
|
1849
1770
|
} | undefined;
|
|
1850
|
-
name?: string | undefined;
|
|
1851
1771
|
})[] | undefined;
|
|
1852
1772
|
labels?: string[] | undefined;
|
|
1853
1773
|
needs?: string[] | undefined;
|
|
1854
|
-
learned?: {
|
|
1855
|
-
state: "open" | "guarded";
|
|
1856
|
-
step: number;
|
|
1857
|
-
kind: string;
|
|
1858
|
-
cleanRuns?: number | undefined;
|
|
1859
|
-
}[] | undefined;
|
|
1860
1774
|
knownBugs?: {
|
|
1861
|
-
id: string;
|
|
1862
1775
|
summary: string;
|
|
1776
|
+
id: string;
|
|
1863
1777
|
assertions: string[];
|
|
1864
1778
|
}[] | undefined;
|
|
1865
1779
|
quarantine?: {
|
|
1866
1780
|
reason: string;
|
|
1867
|
-
since: string;
|
|
1868
1781
|
owner: string;
|
|
1782
|
+
since: string;
|
|
1869
1783
|
until?: string | undefined;
|
|
1870
1784
|
} | undefined;
|
|
1871
1785
|
}, {
|
|
1872
|
-
name: string;
|
|
1873
1786
|
steps: FlowStep[];
|
|
1874
|
-
|
|
1787
|
+
name: string;
|
|
1875
1788
|
createdAt: number;
|
|
1789
|
+
version: number;
|
|
1876
1790
|
intent?: string | undefined;
|
|
1877
1791
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
1792
|
+
startPath?: string | undefined;
|
|
1793
|
+
learned?: {
|
|
1794
|
+
state: "open" | "guarded";
|
|
1795
|
+
kind: string;
|
|
1796
|
+
step: number;
|
|
1797
|
+
cleanRuns?: number | undefined;
|
|
1798
|
+
}[] | undefined;
|
|
1878
1799
|
intentId?: string | undefined;
|
|
1879
1800
|
projectId?: string | undefined;
|
|
1880
|
-
startPath?: string | undefined;
|
|
1881
1801
|
fixture?: string | undefined;
|
|
1882
|
-
requires?: {
|
|
1802
|
+
requires?: (Predicate | {
|
|
1883
1803
|
signal?: string | undefined;
|
|
1884
|
-
text?: {
|
|
1885
|
-
contains: string;
|
|
1886
|
-
visible?: boolean | undefined;
|
|
1887
|
-
absent?: boolean | undefined;
|
|
1888
|
-
scope?: string | undefined;
|
|
1889
|
-
} | undefined;
|
|
1890
1804
|
net?: {
|
|
1891
1805
|
status?: number | undefined;
|
|
1892
1806
|
method?: string | undefined;
|
|
@@ -1895,18 +1809,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1895
1809
|
} | undefined;
|
|
1896
1810
|
state?: {
|
|
1897
1811
|
path: string;
|
|
1812
|
+
hold?: boolean | undefined;
|
|
1898
1813
|
store?: string | undefined;
|
|
1899
1814
|
equals?: unknown;
|
|
1900
|
-
hold?: boolean | undefined;
|
|
1901
1815
|
} | undefined;
|
|
1902
1816
|
element?: {
|
|
1903
|
-
role?: string | undefined;
|
|
1904
1817
|
testid?: string | undefined;
|
|
1818
|
+
role?: string | undefined;
|
|
1905
1819
|
name?: string | undefined;
|
|
1906
1820
|
} | undefined;
|
|
1821
|
+
text?: {
|
|
1822
|
+
contains: string;
|
|
1823
|
+
visible?: boolean | undefined;
|
|
1824
|
+
scope?: string | undefined;
|
|
1825
|
+
absent?: boolean | undefined;
|
|
1826
|
+
} | undefined;
|
|
1907
1827
|
route?: {
|
|
1908
|
-
pathname?: string | undefined;
|
|
1909
1828
|
contains?: string | undefined;
|
|
1829
|
+
pathname?: string | undefined;
|
|
1910
1830
|
} | undefined;
|
|
1911
1831
|
console?: {
|
|
1912
1832
|
level?: string | undefined;
|
|
@@ -1914,15 +1834,9 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1914
1834
|
} | undefined;
|
|
1915
1835
|
signalData?: Record<string, unknown> | undefined;
|
|
1916
1836
|
signalCount?: number | undefined;
|
|
1917
|
-
}[] | undefined;
|
|
1918
|
-
ensures?: {
|
|
1837
|
+
})[] | undefined;
|
|
1838
|
+
ensures?: (Predicate | {
|
|
1919
1839
|
signal?: string | undefined;
|
|
1920
|
-
text?: {
|
|
1921
|
-
contains: string;
|
|
1922
|
-
visible?: boolean | undefined;
|
|
1923
|
-
absent?: boolean | undefined;
|
|
1924
|
-
scope?: string | undefined;
|
|
1925
|
-
} | undefined;
|
|
1926
1840
|
net?: {
|
|
1927
1841
|
status?: number | undefined;
|
|
1928
1842
|
method?: string | undefined;
|
|
@@ -1931,18 +1845,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1931
1845
|
} | undefined;
|
|
1932
1846
|
state?: {
|
|
1933
1847
|
path: string;
|
|
1848
|
+
hold?: boolean | undefined;
|
|
1934
1849
|
store?: string | undefined;
|
|
1935
1850
|
equals?: unknown;
|
|
1936
|
-
hold?: boolean | undefined;
|
|
1937
1851
|
} | undefined;
|
|
1938
1852
|
element?: {
|
|
1939
|
-
role?: string | undefined;
|
|
1940
1853
|
testid?: string | undefined;
|
|
1854
|
+
role?: string | undefined;
|
|
1941
1855
|
name?: string | undefined;
|
|
1942
1856
|
} | undefined;
|
|
1857
|
+
text?: {
|
|
1858
|
+
contains: string;
|
|
1859
|
+
visible?: boolean | undefined;
|
|
1860
|
+
scope?: string | undefined;
|
|
1861
|
+
absent?: boolean | undefined;
|
|
1862
|
+
} | undefined;
|
|
1943
1863
|
route?: {
|
|
1944
|
-
pathname?: string | undefined;
|
|
1945
1864
|
contains?: string | undefined;
|
|
1865
|
+
pathname?: string | undefined;
|
|
1946
1866
|
} | undefined;
|
|
1947
1867
|
console?: {
|
|
1948
1868
|
level?: string | undefined;
|
|
@@ -1950,16 +1870,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1950
1870
|
} | undefined;
|
|
1951
1871
|
signalData?: Record<string, unknown> | undefined;
|
|
1952
1872
|
signalCount?: number | undefined;
|
|
1953
|
-
}[] | undefined;
|
|
1873
|
+
})[] | undefined;
|
|
1874
|
+
author?: {
|
|
1875
|
+
agent?: string | undefined;
|
|
1876
|
+
person?: string | undefined;
|
|
1877
|
+
} | undefined;
|
|
1954
1878
|
signalTimeoutMs?: number | undefined;
|
|
1955
|
-
success?: {
|
|
1879
|
+
success?: Predicate | {
|
|
1956
1880
|
signal?: string | undefined;
|
|
1957
|
-
text?: {
|
|
1958
|
-
contains: string;
|
|
1959
|
-
visible?: boolean | undefined;
|
|
1960
|
-
absent?: boolean | undefined;
|
|
1961
|
-
scope?: string | undefined;
|
|
1962
|
-
} | undefined;
|
|
1963
1881
|
net?: {
|
|
1964
1882
|
status?: number | undefined;
|
|
1965
1883
|
method?: string | undefined;
|
|
@@ -1968,18 +1886,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1968
1886
|
} | undefined;
|
|
1969
1887
|
state?: {
|
|
1970
1888
|
path: string;
|
|
1889
|
+
hold?: boolean | undefined;
|
|
1971
1890
|
store?: string | undefined;
|
|
1972
1891
|
equals?: unknown;
|
|
1973
|
-
hold?: boolean | undefined;
|
|
1974
1892
|
} | undefined;
|
|
1975
1893
|
element?: {
|
|
1976
|
-
role?: string | undefined;
|
|
1977
1894
|
testid?: string | undefined;
|
|
1895
|
+
role?: string | undefined;
|
|
1978
1896
|
name?: string | undefined;
|
|
1979
1897
|
} | undefined;
|
|
1898
|
+
text?: {
|
|
1899
|
+
contains: string;
|
|
1900
|
+
visible?: boolean | undefined;
|
|
1901
|
+
scope?: string | undefined;
|
|
1902
|
+
absent?: boolean | undefined;
|
|
1903
|
+
} | undefined;
|
|
1980
1904
|
route?: {
|
|
1981
|
-
pathname?: string | undefined;
|
|
1982
1905
|
contains?: string | undefined;
|
|
1906
|
+
pathname?: string | undefined;
|
|
1983
1907
|
} | undefined;
|
|
1984
1908
|
console?: {
|
|
1985
1909
|
level?: string | undefined;
|
|
@@ -1997,8 +1921,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1997
1921
|
column?: number | undefined;
|
|
1998
1922
|
} | undefined;
|
|
1999
1923
|
} | {
|
|
2000
|
-
role: string;
|
|
2001
1924
|
kind: "role";
|
|
1925
|
+
role: string;
|
|
2002
1926
|
name?: string | undefined;
|
|
2003
1927
|
} | {
|
|
2004
1928
|
kind: "signal";
|
|
@@ -2007,30 +1931,24 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
2007
1931
|
kind: "component";
|
|
2008
1932
|
role?: string | undefined;
|
|
2009
1933
|
component?: string | undefined;
|
|
1934
|
+
name?: string | undefined;
|
|
2010
1935
|
source?: {
|
|
2011
1936
|
file: string;
|
|
2012
1937
|
line: number;
|
|
2013
1938
|
column?: number | undefined;
|
|
2014
1939
|
} | undefined;
|
|
2015
|
-
name?: string | undefined;
|
|
2016
1940
|
})[] | undefined;
|
|
2017
1941
|
labels?: string[] | undefined;
|
|
2018
1942
|
needs?: string[] | undefined;
|
|
2019
|
-
learned?: {
|
|
2020
|
-
state: "open" | "guarded";
|
|
2021
|
-
step: number;
|
|
2022
|
-
kind: string;
|
|
2023
|
-
cleanRuns?: number | undefined;
|
|
2024
|
-
}[] | undefined;
|
|
2025
1943
|
knownBugs?: {
|
|
2026
|
-
id: string;
|
|
2027
1944
|
summary: string;
|
|
1945
|
+
id: string;
|
|
2028
1946
|
assertions: string[];
|
|
2029
1947
|
}[] | undefined;
|
|
2030
1948
|
quarantine?: {
|
|
2031
1949
|
reason: string;
|
|
2032
|
-
since: string;
|
|
2033
1950
|
owner: string;
|
|
1951
|
+
since: string;
|
|
2034
1952
|
until?: string | undefined;
|
|
2035
1953
|
} | undefined;
|
|
2036
1954
|
}>;
|
|
@@ -2060,7 +1978,11 @@ export declare function isQuarantined(flow: Pick<FlowFile, 'status' | 'quarantin
|
|
|
2060
1978
|
export declare const RecordedFlowSchema: z.ZodObject<{
|
|
2061
1979
|
name: z.ZodString;
|
|
2062
1980
|
flow: z.ZodObject<{
|
|
2063
|
-
|
|
1981
|
+
/**
|
|
1982
|
+
* The format this file was WRITTEN in. Both readable versions are accepted, because a v1 file is
|
|
1983
|
+
* lifted rather than refused — see READABLE_FLOW_VERSIONS.
|
|
1984
|
+
*/
|
|
1985
|
+
version: z.ZodEffects<z.ZodNumber, number, number>;
|
|
2064
1986
|
name: z.ZodString;
|
|
2065
1987
|
/**
|
|
2066
1988
|
* The business goal this flow exists to verify, one line (e.g. "ship a deploy to production").
|
|
@@ -2116,52 +2038,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2116
2038
|
* Same predicate shape as a step's `expect`, deliberately — a precondition is just a consequence
|
|
2117
2039
|
* somebody else's flow was responsible for.
|
|
2118
2040
|
*/
|
|
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
|
-
*/
|
|
2041
|
+
requires: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
2131
2042
|
route: z.ZodOptional<z.ZodObject<{
|
|
2132
2043
|
pathname: z.ZodOptional<z.ZodString>;
|
|
2133
2044
|
contains: z.ZodOptional<z.ZodString>;
|
|
2134
2045
|
}, "strip", z.ZodTypeAny, {
|
|
2135
|
-
pathname?: string | undefined;
|
|
2136
2046
|
contains?: string | undefined;
|
|
2137
|
-
}, {
|
|
2138
2047
|
pathname?: string | undefined;
|
|
2048
|
+
}, {
|
|
2139
2049
|
contains?: string | undefined;
|
|
2050
|
+
pathname?: string | undefined;
|
|
2140
2051
|
}>>;
|
|
2141
2052
|
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
2053
|
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
2054
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
2156
2055
|
net: z.ZodOptional<z.ZodObject<{
|
|
2157
2056
|
method: z.ZodOptional<z.ZodString>;
|
|
2158
2057
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
2159
2058
|
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
2059
|
count: z.ZodOptional<z.ZodNumber>;
|
|
2166
2060
|
}, "strict", z.ZodTypeAny, {
|
|
2167
2061
|
status?: number | undefined;
|
|
@@ -2174,12 +2068,6 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2174
2068
|
urlContains?: string | undefined;
|
|
2175
2069
|
count?: number | undefined;
|
|
2176
2070
|
}>>;
|
|
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
2071
|
console: z.ZodOptional<z.ZodObject<{
|
|
2184
2072
|
level: z.ZodOptional<z.ZodString>;
|
|
2185
2073
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2195,84 +2083,48 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2195
2083
|
role: z.ZodOptional<z.ZodString>;
|
|
2196
2084
|
name: z.ZodOptional<z.ZodString>;
|
|
2197
2085
|
}, "strict", z.ZodTypeAny, {
|
|
2198
|
-
role?: string | undefined;
|
|
2199
2086
|
testid?: string | undefined;
|
|
2087
|
+
role?: string | undefined;
|
|
2200
2088
|
name?: string | undefined;
|
|
2201
2089
|
}, {
|
|
2202
|
-
role?: string | undefined;
|
|
2203
2090
|
testid?: string | undefined;
|
|
2091
|
+
role?: string | undefined;
|
|
2204
2092
|
name?: string | undefined;
|
|
2205
2093
|
}>>;
|
|
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
2094
|
text: z.ZodOptional<z.ZodObject<{
|
|
2223
2095
|
contains: z.ZodString;
|
|
2224
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
2225
2096
|
scope: z.ZodOptional<z.ZodString>;
|
|
2226
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
2227
2097
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
2228
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
2229
2098
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
2230
2099
|
}, "strict", z.ZodTypeAny, {
|
|
2231
2100
|
contains: string;
|
|
2232
2101
|
visible?: boolean | undefined;
|
|
2233
|
-
absent?: boolean | undefined;
|
|
2234
2102
|
scope?: string | undefined;
|
|
2103
|
+
absent?: boolean | undefined;
|
|
2235
2104
|
}, {
|
|
2236
2105
|
contains: string;
|
|
2237
2106
|
visible?: boolean | undefined;
|
|
2238
|
-
absent?: boolean | undefined;
|
|
2239
2107
|
scope?: string | undefined;
|
|
2108
|
+
absent?: boolean | undefined;
|
|
2240
2109
|
}>>;
|
|
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
2110
|
state: z.ZodOptional<z.ZodObject<{
|
|
2248
2111
|
store: z.ZodOptional<z.ZodString>;
|
|
2249
2112
|
path: z.ZodString;
|
|
2250
2113
|
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
2114
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
2257
2115
|
}, "strict", z.ZodTypeAny, {
|
|
2258
2116
|
path: string;
|
|
2117
|
+
hold?: boolean | undefined;
|
|
2259
2118
|
store?: string | undefined;
|
|
2260
2119
|
equals?: unknown;
|
|
2261
|
-
hold?: boolean | undefined;
|
|
2262
2120
|
}, {
|
|
2263
2121
|
path: string;
|
|
2122
|
+
hold?: boolean | undefined;
|
|
2264
2123
|
store?: string | undefined;
|
|
2265
2124
|
equals?: unknown;
|
|
2266
|
-
hold?: boolean | undefined;
|
|
2267
2125
|
}>>;
|
|
2268
2126
|
}, "strict", z.ZodTypeAny, {
|
|
2269
2127
|
signal?: string | undefined;
|
|
2270
|
-
text?: {
|
|
2271
|
-
contains: string;
|
|
2272
|
-
visible?: boolean | undefined;
|
|
2273
|
-
absent?: boolean | undefined;
|
|
2274
|
-
scope?: string | undefined;
|
|
2275
|
-
} | undefined;
|
|
2276
2128
|
net?: {
|
|
2277
2129
|
status?: number | undefined;
|
|
2278
2130
|
method?: string | undefined;
|
|
@@ -2281,18 +2133,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2281
2133
|
} | undefined;
|
|
2282
2134
|
state?: {
|
|
2283
2135
|
path: string;
|
|
2136
|
+
hold?: boolean | undefined;
|
|
2284
2137
|
store?: string | undefined;
|
|
2285
2138
|
equals?: unknown;
|
|
2286
|
-
hold?: boolean | undefined;
|
|
2287
2139
|
} | undefined;
|
|
2288
2140
|
element?: {
|
|
2289
|
-
role?: string | undefined;
|
|
2290
2141
|
testid?: string | undefined;
|
|
2142
|
+
role?: string | undefined;
|
|
2291
2143
|
name?: string | undefined;
|
|
2292
2144
|
} | undefined;
|
|
2145
|
+
text?: {
|
|
2146
|
+
contains: string;
|
|
2147
|
+
visible?: boolean | undefined;
|
|
2148
|
+
scope?: string | undefined;
|
|
2149
|
+
absent?: boolean | undefined;
|
|
2150
|
+
} | undefined;
|
|
2293
2151
|
route?: {
|
|
2294
|
-
pathname?: string | undefined;
|
|
2295
2152
|
contains?: string | undefined;
|
|
2153
|
+
pathname?: string | undefined;
|
|
2296
2154
|
} | undefined;
|
|
2297
2155
|
console?: {
|
|
2298
2156
|
level?: string | undefined;
|
|
@@ -2302,12 +2160,6 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2302
2160
|
signalCount?: number | undefined;
|
|
2303
2161
|
}, {
|
|
2304
2162
|
signal?: string | undefined;
|
|
2305
|
-
text?: {
|
|
2306
|
-
contains: string;
|
|
2307
|
-
visible?: boolean | undefined;
|
|
2308
|
-
absent?: boolean | undefined;
|
|
2309
|
-
scope?: string | undefined;
|
|
2310
|
-
} | undefined;
|
|
2311
2163
|
net?: {
|
|
2312
2164
|
status?: number | undefined;
|
|
2313
2165
|
method?: string | undefined;
|
|
@@ -2316,18 +2168,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2316
2168
|
} | undefined;
|
|
2317
2169
|
state?: {
|
|
2318
2170
|
path: string;
|
|
2171
|
+
hold?: boolean | undefined;
|
|
2319
2172
|
store?: string | undefined;
|
|
2320
2173
|
equals?: unknown;
|
|
2321
|
-
hold?: boolean | undefined;
|
|
2322
2174
|
} | undefined;
|
|
2323
2175
|
element?: {
|
|
2324
|
-
role?: string | undefined;
|
|
2325
2176
|
testid?: string | undefined;
|
|
2177
|
+
role?: string | undefined;
|
|
2326
2178
|
name?: string | undefined;
|
|
2327
2179
|
} | undefined;
|
|
2180
|
+
text?: {
|
|
2181
|
+
contains: string;
|
|
2182
|
+
visible?: boolean | undefined;
|
|
2183
|
+
scope?: string | undefined;
|
|
2184
|
+
absent?: boolean | undefined;
|
|
2185
|
+
} | undefined;
|
|
2328
2186
|
route?: {
|
|
2329
|
-
pathname?: string | undefined;
|
|
2330
2187
|
contains?: string | undefined;
|
|
2188
|
+
pathname?: string | undefined;
|
|
2331
2189
|
} | undefined;
|
|
2332
2190
|
console?: {
|
|
2333
2191
|
level?: string | undefined;
|
|
@@ -2335,53 +2193,167 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2335
2193
|
} | undefined;
|
|
2336
2194
|
signalData?: Record<string, unknown> | undefined;
|
|
2337
2195
|
signalCount?: number | undefined;
|
|
2338
|
-
}>,
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2196
|
+
}>, {
|
|
2197
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
2198
|
+
query: import("../index.js").ElementQuery;
|
|
2199
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
2200
|
+
absent?: boolean;
|
|
2201
|
+
} | {
|
|
2202
|
+
kind: typeof PredicateKind.TEXT;
|
|
2203
|
+
contains?: string;
|
|
2204
|
+
visible?: boolean;
|
|
2205
|
+
absent?: boolean;
|
|
2206
|
+
scope?: string;
|
|
2207
|
+
self?: boolean;
|
|
2208
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2209
|
+
} | {
|
|
2210
|
+
kind: typeof PredicateKind.NET;
|
|
2211
|
+
method?: string;
|
|
2212
|
+
urlContains?: string;
|
|
2213
|
+
status?: number;
|
|
2214
|
+
ok?: boolean;
|
|
2215
|
+
since?: number;
|
|
2216
|
+
count?: number;
|
|
2217
|
+
bodyContains?: string;
|
|
2218
|
+
bodyMatches?: Record<string, unknown>;
|
|
2219
|
+
requestBodyContains?: string;
|
|
2220
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
2221
|
+
} | {
|
|
2222
|
+
kind: typeof PredicateKind.ROUTE;
|
|
2223
|
+
pathname?: string;
|
|
2224
|
+
contains?: string;
|
|
2225
|
+
since?: number;
|
|
2226
|
+
} | {
|
|
2227
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
2228
|
+
level?: string;
|
|
2229
|
+
contains?: string;
|
|
2230
|
+
absent?: boolean;
|
|
2231
|
+
since?: number;
|
|
2232
|
+
} | {
|
|
2233
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
2234
|
+
name?: string;
|
|
2235
|
+
target?: string;
|
|
2236
|
+
completed?: boolean;
|
|
2237
|
+
since?: number;
|
|
2238
|
+
} | {
|
|
2239
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
2240
|
+
name?: string;
|
|
2241
|
+
dataMatches?: Record<string, unknown>;
|
|
2242
|
+
count?: number;
|
|
2243
|
+
since?: number;
|
|
2244
|
+
} | {
|
|
2245
|
+
kind: typeof PredicateKind.STATE;
|
|
2246
|
+
store?: string;
|
|
2247
|
+
path: string;
|
|
2248
|
+
equals?: unknown;
|
|
2249
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2250
|
+
} | {
|
|
2251
|
+
kind: typeof PredicateKind.SETTLED;
|
|
2252
|
+
quietMs?: number;
|
|
2253
|
+
} | {
|
|
2254
|
+
kind: typeof PredicateKind.COMPARE;
|
|
2255
|
+
left: import("../verdict/compare-source.js").CompareSource;
|
|
2256
|
+
right: import("../verdict/compare-source.js").CompareSource;
|
|
2257
|
+
as?: import("../verdict/compare-source.js").CompareAs;
|
|
2258
|
+
tolerance?: number;
|
|
2259
|
+
} | {
|
|
2260
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
2261
|
+
predicates: Predicate[];
|
|
2262
|
+
} | {
|
|
2263
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
2264
|
+
predicates: Predicate[];
|
|
2265
|
+
} | {
|
|
2266
|
+
kind: typeof PredicateKind.NOT;
|
|
2267
|
+
predicate: Predicate;
|
|
2268
|
+
} | undefined, {
|
|
2269
|
+
signal?: string | undefined;
|
|
2270
|
+
net?: {
|
|
2271
|
+
status?: number | undefined;
|
|
2272
|
+
method?: string | undefined;
|
|
2273
|
+
urlContains?: string | undefined;
|
|
2274
|
+
count?: number | undefined;
|
|
2275
|
+
} | undefined;
|
|
2276
|
+
state?: {
|
|
2277
|
+
path: string;
|
|
2278
|
+
hold?: boolean | undefined;
|
|
2279
|
+
store?: string | undefined;
|
|
2280
|
+
equals?: unknown;
|
|
2281
|
+
} | undefined;
|
|
2282
|
+
element?: {
|
|
2283
|
+
testid?: string | undefined;
|
|
2284
|
+
role?: string | undefined;
|
|
2285
|
+
name?: string | undefined;
|
|
2286
|
+
} | undefined;
|
|
2287
|
+
text?: {
|
|
2288
|
+
contains: string;
|
|
2289
|
+
visible?: boolean | undefined;
|
|
2290
|
+
scope?: string | undefined;
|
|
2291
|
+
absent?: boolean | undefined;
|
|
2292
|
+
} | undefined;
|
|
2293
|
+
route?: {
|
|
2294
|
+
contains?: string | undefined;
|
|
2295
|
+
pathname?: string | undefined;
|
|
2296
|
+
} | undefined;
|
|
2297
|
+
console?: {
|
|
2298
|
+
level?: string | undefined;
|
|
2299
|
+
absent?: boolean | undefined;
|
|
2300
|
+
} | undefined;
|
|
2301
|
+
signalData?: Record<string, unknown> | undefined;
|
|
2302
|
+
signalCount?: number | undefined;
|
|
2303
|
+
}>]>, "many">, Predicate[], (Predicate | {
|
|
2304
|
+
signal?: string | undefined;
|
|
2305
|
+
net?: {
|
|
2306
|
+
status?: number | undefined;
|
|
2307
|
+
method?: string | undefined;
|
|
2308
|
+
urlContains?: string | undefined;
|
|
2309
|
+
count?: number | undefined;
|
|
2310
|
+
} | undefined;
|
|
2311
|
+
state?: {
|
|
2312
|
+
path: string;
|
|
2313
|
+
hold?: boolean | undefined;
|
|
2314
|
+
store?: string | undefined;
|
|
2315
|
+
equals?: unknown;
|
|
2316
|
+
} | undefined;
|
|
2317
|
+
element?: {
|
|
2318
|
+
testid?: string | undefined;
|
|
2319
|
+
role?: string | undefined;
|
|
2320
|
+
name?: string | undefined;
|
|
2321
|
+
} | undefined;
|
|
2322
|
+
text?: {
|
|
2323
|
+
contains: string;
|
|
2324
|
+
visible?: boolean | undefined;
|
|
2325
|
+
scope?: string | undefined;
|
|
2326
|
+
absent?: boolean | undefined;
|
|
2327
|
+
} | undefined;
|
|
2328
|
+
route?: {
|
|
2329
|
+
contains?: string | undefined;
|
|
2330
|
+
pathname?: string | undefined;
|
|
2331
|
+
} | undefined;
|
|
2332
|
+
console?: {
|
|
2333
|
+
level?: string | undefined;
|
|
2334
|
+
absent?: boolean | undefined;
|
|
2335
|
+
} | undefined;
|
|
2336
|
+
signalData?: Record<string, unknown> | undefined;
|
|
2337
|
+
signalCount?: number | undefined;
|
|
2338
|
+
})[]>>;
|
|
2339
|
+
ensures: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
2340
|
+
route: z.ZodOptional<z.ZodObject<{
|
|
2341
|
+
pathname: z.ZodOptional<z.ZodString>;
|
|
2342
|
+
contains: z.ZodOptional<z.ZodString>;
|
|
2343
|
+
}, "strip", z.ZodTypeAny, {
|
|
2344
|
+
contains?: string | undefined;
|
|
2345
|
+
pathname?: string | undefined;
|
|
2346
|
+
}, {
|
|
2359
2347
|
contains?: string | undefined;
|
|
2348
|
+
pathname?: string | undefined;
|
|
2360
2349
|
}>>;
|
|
2361
2350
|
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
2351
|
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
2352
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
2376
2353
|
net: z.ZodOptional<z.ZodObject<{
|
|
2377
2354
|
method: z.ZodOptional<z.ZodString>;
|
|
2378
2355
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
2379
2356
|
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
2357
|
count: z.ZodOptional<z.ZodNumber>;
|
|
2386
2358
|
}, "strict", z.ZodTypeAny, {
|
|
2387
2359
|
status?: number | undefined;
|
|
@@ -2394,12 +2366,6 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2394
2366
|
urlContains?: string | undefined;
|
|
2395
2367
|
count?: number | undefined;
|
|
2396
2368
|
}>>;
|
|
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
2369
|
console: z.ZodOptional<z.ZodObject<{
|
|
2404
2370
|
level: z.ZodOptional<z.ZodString>;
|
|
2405
2371
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2415,84 +2381,83 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2415
2381
|
role: z.ZodOptional<z.ZodString>;
|
|
2416
2382
|
name: z.ZodOptional<z.ZodString>;
|
|
2417
2383
|
}, "strict", z.ZodTypeAny, {
|
|
2418
|
-
role?: string | undefined;
|
|
2419
2384
|
testid?: string | undefined;
|
|
2385
|
+
role?: string | undefined;
|
|
2420
2386
|
name?: string | undefined;
|
|
2421
2387
|
}, {
|
|
2422
|
-
role?: string | undefined;
|
|
2423
2388
|
testid?: string | undefined;
|
|
2389
|
+
role?: string | undefined;
|
|
2424
2390
|
name?: string | undefined;
|
|
2425
2391
|
}>>;
|
|
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
2392
|
text: z.ZodOptional<z.ZodObject<{
|
|
2443
2393
|
contains: z.ZodString;
|
|
2444
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
2445
2394
|
scope: z.ZodOptional<z.ZodString>;
|
|
2446
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
2447
2395
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
2448
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
2449
2396
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
2450
2397
|
}, "strict", z.ZodTypeAny, {
|
|
2451
2398
|
contains: string;
|
|
2452
2399
|
visible?: boolean | undefined;
|
|
2453
|
-
absent?: boolean | undefined;
|
|
2454
2400
|
scope?: string | undefined;
|
|
2401
|
+
absent?: boolean | undefined;
|
|
2455
2402
|
}, {
|
|
2456
2403
|
contains: string;
|
|
2457
2404
|
visible?: boolean | undefined;
|
|
2458
|
-
absent?: boolean | undefined;
|
|
2459
2405
|
scope?: string | undefined;
|
|
2406
|
+
absent?: boolean | undefined;
|
|
2460
2407
|
}>>;
|
|
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
2408
|
state: z.ZodOptional<z.ZodObject<{
|
|
2468
2409
|
store: z.ZodOptional<z.ZodString>;
|
|
2469
2410
|
path: z.ZodString;
|
|
2470
2411
|
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
2412
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
2477
2413
|
}, "strict", z.ZodTypeAny, {
|
|
2478
2414
|
path: string;
|
|
2415
|
+
hold?: boolean | undefined;
|
|
2479
2416
|
store?: string | undefined;
|
|
2480
2417
|
equals?: unknown;
|
|
2481
|
-
hold?: boolean | undefined;
|
|
2482
2418
|
}, {
|
|
2483
2419
|
path: string;
|
|
2420
|
+
hold?: boolean | undefined;
|
|
2484
2421
|
store?: string | undefined;
|
|
2485
2422
|
equals?: unknown;
|
|
2486
|
-
hold?: boolean | undefined;
|
|
2487
2423
|
}>>;
|
|
2488
2424
|
}, "strict", z.ZodTypeAny, {
|
|
2489
2425
|
signal?: string | undefined;
|
|
2426
|
+
net?: {
|
|
2427
|
+
status?: number | undefined;
|
|
2428
|
+
method?: string | undefined;
|
|
2429
|
+
urlContains?: string | undefined;
|
|
2430
|
+
count?: number | undefined;
|
|
2431
|
+
} | undefined;
|
|
2432
|
+
state?: {
|
|
2433
|
+
path: string;
|
|
2434
|
+
hold?: boolean | undefined;
|
|
2435
|
+
store?: string | undefined;
|
|
2436
|
+
equals?: unknown;
|
|
2437
|
+
} | undefined;
|
|
2438
|
+
element?: {
|
|
2439
|
+
testid?: string | undefined;
|
|
2440
|
+
role?: string | undefined;
|
|
2441
|
+
name?: string | undefined;
|
|
2442
|
+
} | undefined;
|
|
2490
2443
|
text?: {
|
|
2491
2444
|
contains: string;
|
|
2492
2445
|
visible?: boolean | undefined;
|
|
2493
|
-
absent?: boolean | undefined;
|
|
2494
2446
|
scope?: string | undefined;
|
|
2447
|
+
absent?: boolean | undefined;
|
|
2448
|
+
} | undefined;
|
|
2449
|
+
route?: {
|
|
2450
|
+
contains?: string | undefined;
|
|
2451
|
+
pathname?: string | undefined;
|
|
2452
|
+
} | undefined;
|
|
2453
|
+
console?: {
|
|
2454
|
+
level?: string | undefined;
|
|
2455
|
+
absent?: boolean | undefined;
|
|
2495
2456
|
} | undefined;
|
|
2457
|
+
signalData?: Record<string, unknown> | undefined;
|
|
2458
|
+
signalCount?: number | undefined;
|
|
2459
|
+
}, {
|
|
2460
|
+
signal?: string | undefined;
|
|
2496
2461
|
net?: {
|
|
2497
2462
|
status?: number | undefined;
|
|
2498
2463
|
method?: string | undefined;
|
|
@@ -2501,18 +2466,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2501
2466
|
} | undefined;
|
|
2502
2467
|
state?: {
|
|
2503
2468
|
path: string;
|
|
2469
|
+
hold?: boolean | undefined;
|
|
2504
2470
|
store?: string | undefined;
|
|
2505
2471
|
equals?: unknown;
|
|
2506
|
-
hold?: boolean | undefined;
|
|
2507
2472
|
} | undefined;
|
|
2508
2473
|
element?: {
|
|
2509
|
-
role?: string | undefined;
|
|
2510
2474
|
testid?: string | undefined;
|
|
2475
|
+
role?: string | undefined;
|
|
2511
2476
|
name?: string | undefined;
|
|
2512
2477
|
} | undefined;
|
|
2478
|
+
text?: {
|
|
2479
|
+
contains: string;
|
|
2480
|
+
visible?: boolean | undefined;
|
|
2481
|
+
scope?: string | undefined;
|
|
2482
|
+
absent?: boolean | undefined;
|
|
2483
|
+
} | undefined;
|
|
2513
2484
|
route?: {
|
|
2514
|
-
pathname?: string | undefined;
|
|
2515
2485
|
contains?: string | undefined;
|
|
2486
|
+
pathname?: string | undefined;
|
|
2516
2487
|
} | undefined;
|
|
2517
2488
|
console?: {
|
|
2518
2489
|
level?: string | undefined;
|
|
@@ -2520,14 +2491,115 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2520
2491
|
} | undefined;
|
|
2521
2492
|
signalData?: Record<string, unknown> | undefined;
|
|
2522
2493
|
signalCount?: number | undefined;
|
|
2523
|
-
}
|
|
2494
|
+
}>, {
|
|
2495
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
2496
|
+
query: import("../index.js").ElementQuery;
|
|
2497
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
2498
|
+
absent?: boolean;
|
|
2499
|
+
} | {
|
|
2500
|
+
kind: typeof PredicateKind.TEXT;
|
|
2501
|
+
contains?: string;
|
|
2502
|
+
visible?: boolean;
|
|
2503
|
+
absent?: boolean;
|
|
2504
|
+
scope?: string;
|
|
2505
|
+
self?: boolean;
|
|
2506
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2507
|
+
} | {
|
|
2508
|
+
kind: typeof PredicateKind.NET;
|
|
2509
|
+
method?: string;
|
|
2510
|
+
urlContains?: string;
|
|
2511
|
+
status?: number;
|
|
2512
|
+
ok?: boolean;
|
|
2513
|
+
since?: number;
|
|
2514
|
+
count?: number;
|
|
2515
|
+
bodyContains?: string;
|
|
2516
|
+
bodyMatches?: Record<string, unknown>;
|
|
2517
|
+
requestBodyContains?: string;
|
|
2518
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
2519
|
+
} | {
|
|
2520
|
+
kind: typeof PredicateKind.ROUTE;
|
|
2521
|
+
pathname?: string;
|
|
2522
|
+
contains?: string;
|
|
2523
|
+
since?: number;
|
|
2524
|
+
} | {
|
|
2525
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
2526
|
+
level?: string;
|
|
2527
|
+
contains?: string;
|
|
2528
|
+
absent?: boolean;
|
|
2529
|
+
since?: number;
|
|
2530
|
+
} | {
|
|
2531
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
2532
|
+
name?: string;
|
|
2533
|
+
target?: string;
|
|
2534
|
+
completed?: boolean;
|
|
2535
|
+
since?: number;
|
|
2536
|
+
} | {
|
|
2537
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
2538
|
+
name?: string;
|
|
2539
|
+
dataMatches?: Record<string, unknown>;
|
|
2540
|
+
count?: number;
|
|
2541
|
+
since?: number;
|
|
2542
|
+
} | {
|
|
2543
|
+
kind: typeof PredicateKind.STATE;
|
|
2544
|
+
store?: string;
|
|
2545
|
+
path: string;
|
|
2546
|
+
equals?: unknown;
|
|
2547
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2548
|
+
} | {
|
|
2549
|
+
kind: typeof PredicateKind.SETTLED;
|
|
2550
|
+
quietMs?: number;
|
|
2551
|
+
} | {
|
|
2552
|
+
kind: typeof PredicateKind.COMPARE;
|
|
2553
|
+
left: import("../verdict/compare-source.js").CompareSource;
|
|
2554
|
+
right: import("../verdict/compare-source.js").CompareSource;
|
|
2555
|
+
as?: import("../verdict/compare-source.js").CompareAs;
|
|
2556
|
+
tolerance?: number;
|
|
2557
|
+
} | {
|
|
2558
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
2559
|
+
predicates: Predicate[];
|
|
2560
|
+
} | {
|
|
2561
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
2562
|
+
predicates: Predicate[];
|
|
2563
|
+
} | {
|
|
2564
|
+
kind: typeof PredicateKind.NOT;
|
|
2565
|
+
predicate: Predicate;
|
|
2566
|
+
} | undefined, {
|
|
2524
2567
|
signal?: string | undefined;
|
|
2568
|
+
net?: {
|
|
2569
|
+
status?: number | undefined;
|
|
2570
|
+
method?: string | undefined;
|
|
2571
|
+
urlContains?: string | undefined;
|
|
2572
|
+
count?: number | undefined;
|
|
2573
|
+
} | undefined;
|
|
2574
|
+
state?: {
|
|
2575
|
+
path: string;
|
|
2576
|
+
hold?: boolean | undefined;
|
|
2577
|
+
store?: string | undefined;
|
|
2578
|
+
equals?: unknown;
|
|
2579
|
+
} | undefined;
|
|
2580
|
+
element?: {
|
|
2581
|
+
testid?: string | undefined;
|
|
2582
|
+
role?: string | undefined;
|
|
2583
|
+
name?: string | undefined;
|
|
2584
|
+
} | undefined;
|
|
2525
2585
|
text?: {
|
|
2526
2586
|
contains: string;
|
|
2527
2587
|
visible?: boolean | undefined;
|
|
2528
|
-
absent?: boolean | undefined;
|
|
2529
2588
|
scope?: string | undefined;
|
|
2589
|
+
absent?: boolean | undefined;
|
|
2590
|
+
} | undefined;
|
|
2591
|
+
route?: {
|
|
2592
|
+
contains?: string | undefined;
|
|
2593
|
+
pathname?: string | undefined;
|
|
2594
|
+
} | undefined;
|
|
2595
|
+
console?: {
|
|
2596
|
+
level?: string | undefined;
|
|
2597
|
+
absent?: boolean | undefined;
|
|
2530
2598
|
} | undefined;
|
|
2599
|
+
signalData?: Record<string, unknown> | undefined;
|
|
2600
|
+
signalCount?: number | undefined;
|
|
2601
|
+
}>]>, "many">, Predicate[], (Predicate | {
|
|
2602
|
+
signal?: string | undefined;
|
|
2531
2603
|
net?: {
|
|
2532
2604
|
status?: number | undefined;
|
|
2533
2605
|
method?: string | undefined;
|
|
@@ -2536,18 +2608,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2536
2608
|
} | undefined;
|
|
2537
2609
|
state?: {
|
|
2538
2610
|
path: string;
|
|
2611
|
+
hold?: boolean | undefined;
|
|
2539
2612
|
store?: string | undefined;
|
|
2540
2613
|
equals?: unknown;
|
|
2541
|
-
hold?: boolean | undefined;
|
|
2542
2614
|
} | undefined;
|
|
2543
2615
|
element?: {
|
|
2544
|
-
role?: string | undefined;
|
|
2545
2616
|
testid?: string | undefined;
|
|
2617
|
+
role?: string | undefined;
|
|
2546
2618
|
name?: string | undefined;
|
|
2547
2619
|
} | undefined;
|
|
2620
|
+
text?: {
|
|
2621
|
+
contains: string;
|
|
2622
|
+
visible?: boolean | undefined;
|
|
2623
|
+
scope?: string | undefined;
|
|
2624
|
+
absent?: boolean | undefined;
|
|
2625
|
+
} | undefined;
|
|
2548
2626
|
route?: {
|
|
2549
|
-
pathname?: string | undefined;
|
|
2550
2627
|
contains?: string | undefined;
|
|
2628
|
+
pathname?: string | undefined;
|
|
2551
2629
|
} | undefined;
|
|
2552
2630
|
console?: {
|
|
2553
2631
|
level?: string | undefined;
|
|
@@ -2555,7 +2633,22 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2555
2633
|
} | undefined;
|
|
2556
2634
|
signalData?: Record<string, unknown> | undefined;
|
|
2557
2635
|
signalCount?: number | undefined;
|
|
2558
|
-
}
|
|
2636
|
+
})[]>>;
|
|
2637
|
+
/**
|
|
2638
|
+
* Who made this flow, stamped at save: the agent that drove it (its MCP client name) and the
|
|
2639
|
+
* person signed in to the cloud key on that machine. Either is absent when it was not known —
|
|
2640
|
+
* never guessed.
|
|
2641
|
+
*/
|
|
2642
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
2643
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
2644
|
+
person: z.ZodOptional<z.ZodString>;
|
|
2645
|
+
}, "strip", z.ZodTypeAny, {
|
|
2646
|
+
agent?: string | undefined;
|
|
2647
|
+
person?: string | undefined;
|
|
2648
|
+
}, {
|
|
2649
|
+
agent?: string | undefined;
|
|
2650
|
+
person?: string | undefined;
|
|
2651
|
+
}>>;
|
|
2559
2652
|
/** From the injected clock (ms) — deterministic in tests, byte-stable on disk. */
|
|
2560
2653
|
createdAt: z.ZodNumber;
|
|
2561
2654
|
steps: z.ZodArray<z.ZodType<FlowStep, z.ZodTypeDef, FlowStep>, "many">;
|
|
@@ -2568,52 +2661,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2568
2661
|
* replays exactly as before and the on-disk version stays FLOW_FILE_VERSION 1.
|
|
2569
2662
|
*/
|
|
2570
2663
|
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
|
-
*/
|
|
2664
|
+
success: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodType<Predicate, z.ZodTypeDef, Predicate>, Predicate, Predicate>, z.ZodEffects<z.ZodObject<{
|
|
2583
2665
|
route: z.ZodOptional<z.ZodObject<{
|
|
2584
2666
|
pathname: z.ZodOptional<z.ZodString>;
|
|
2585
2667
|
contains: z.ZodOptional<z.ZodString>;
|
|
2586
2668
|
}, "strip", z.ZodTypeAny, {
|
|
2587
|
-
pathname?: string | undefined;
|
|
2588
2669
|
contains?: string | undefined;
|
|
2589
|
-
}, {
|
|
2590
2670
|
pathname?: string | undefined;
|
|
2671
|
+
}, {
|
|
2591
2672
|
contains?: string | undefined;
|
|
2673
|
+
pathname?: string | undefined;
|
|
2592
2674
|
}>>;
|
|
2593
2675
|
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
2676
|
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
2677
|
signalCount: z.ZodOptional<z.ZodNumber>;
|
|
2608
2678
|
net: z.ZodOptional<z.ZodObject<{
|
|
2609
2679
|
method: z.ZodOptional<z.ZodString>;
|
|
2610
2680
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
2611
2681
|
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
2682
|
count: z.ZodOptional<z.ZodNumber>;
|
|
2618
2683
|
}, "strict", z.ZodTypeAny, {
|
|
2619
2684
|
status?: number | undefined;
|
|
@@ -2626,12 +2691,6 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2626
2691
|
urlContains?: string | undefined;
|
|
2627
2692
|
count?: number | undefined;
|
|
2628
2693
|
}>>;
|
|
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
2694
|
console: z.ZodOptional<z.ZodObject<{
|
|
2636
2695
|
level: z.ZodOptional<z.ZodString>;
|
|
2637
2696
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2647,84 +2706,48 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2647
2706
|
role: z.ZodOptional<z.ZodString>;
|
|
2648
2707
|
name: z.ZodOptional<z.ZodString>;
|
|
2649
2708
|
}, "strict", z.ZodTypeAny, {
|
|
2650
|
-
role?: string | undefined;
|
|
2651
2709
|
testid?: string | undefined;
|
|
2710
|
+
role?: string | undefined;
|
|
2652
2711
|
name?: string | undefined;
|
|
2653
2712
|
}, {
|
|
2654
|
-
role?: string | undefined;
|
|
2655
2713
|
testid?: string | undefined;
|
|
2714
|
+
role?: string | undefined;
|
|
2656
2715
|
name?: string | undefined;
|
|
2657
2716
|
}>>;
|
|
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
2717
|
text: z.ZodOptional<z.ZodObject<{
|
|
2675
2718
|
contains: z.ZodString;
|
|
2676
|
-
/** Narrow the search to a container, exactly as the `text` predicate's `scope` does. */
|
|
2677
2719
|
scope: z.ZodOptional<z.ZodString>;
|
|
2678
|
-
/** Assert the text is GONE — the regression check for a cleared error or a dismissed toast. */
|
|
2679
2720
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
2680
|
-
/** Require the match to be visible, not merely present in the DOM. */
|
|
2681
2721
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
2682
2722
|
}, "strict", z.ZodTypeAny, {
|
|
2683
2723
|
contains: string;
|
|
2684
2724
|
visible?: boolean | undefined;
|
|
2685
|
-
absent?: boolean | undefined;
|
|
2686
2725
|
scope?: string | undefined;
|
|
2726
|
+
absent?: boolean | undefined;
|
|
2687
2727
|
}, {
|
|
2688
2728
|
contains: string;
|
|
2689
2729
|
visible?: boolean | undefined;
|
|
2690
|
-
absent?: boolean | undefined;
|
|
2691
2730
|
scope?: string | undefined;
|
|
2731
|
+
absent?: boolean | undefined;
|
|
2692
2732
|
}>>;
|
|
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
2733
|
state: z.ZodOptional<z.ZodObject<{
|
|
2700
2734
|
store: z.ZodOptional<z.ZodString>;
|
|
2701
2735
|
path: z.ZodString;
|
|
2702
2736
|
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
2737
|
hold: z.ZodOptional<z.ZodBoolean>;
|
|
2709
2738
|
}, "strict", z.ZodTypeAny, {
|
|
2710
2739
|
path: string;
|
|
2740
|
+
hold?: boolean | undefined;
|
|
2711
2741
|
store?: string | undefined;
|
|
2712
2742
|
equals?: unknown;
|
|
2713
|
-
hold?: boolean | undefined;
|
|
2714
2743
|
}, {
|
|
2715
2744
|
path: string;
|
|
2745
|
+
hold?: boolean | undefined;
|
|
2716
2746
|
store?: string | undefined;
|
|
2717
2747
|
equals?: unknown;
|
|
2718
|
-
hold?: boolean | undefined;
|
|
2719
2748
|
}>>;
|
|
2720
2749
|
}, "strict", z.ZodTypeAny, {
|
|
2721
2750
|
signal?: string | undefined;
|
|
2722
|
-
text?: {
|
|
2723
|
-
contains: string;
|
|
2724
|
-
visible?: boolean | undefined;
|
|
2725
|
-
absent?: boolean | undefined;
|
|
2726
|
-
scope?: string | undefined;
|
|
2727
|
-
} | undefined;
|
|
2728
2751
|
net?: {
|
|
2729
2752
|
status?: number | undefined;
|
|
2730
2753
|
method?: string | undefined;
|
|
@@ -2733,18 +2756,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2733
2756
|
} | undefined;
|
|
2734
2757
|
state?: {
|
|
2735
2758
|
path: string;
|
|
2759
|
+
hold?: boolean | undefined;
|
|
2736
2760
|
store?: string | undefined;
|
|
2737
2761
|
equals?: unknown;
|
|
2738
|
-
hold?: boolean | undefined;
|
|
2739
2762
|
} | undefined;
|
|
2740
2763
|
element?: {
|
|
2741
|
-
role?: string | undefined;
|
|
2742
2764
|
testid?: string | undefined;
|
|
2765
|
+
role?: string | undefined;
|
|
2743
2766
|
name?: string | undefined;
|
|
2744
2767
|
} | undefined;
|
|
2768
|
+
text?: {
|
|
2769
|
+
contains: string;
|
|
2770
|
+
visible?: boolean | undefined;
|
|
2771
|
+
scope?: string | undefined;
|
|
2772
|
+
absent?: boolean | undefined;
|
|
2773
|
+
} | undefined;
|
|
2745
2774
|
route?: {
|
|
2746
|
-
pathname?: string | undefined;
|
|
2747
2775
|
contains?: string | undefined;
|
|
2776
|
+
pathname?: string | undefined;
|
|
2748
2777
|
} | undefined;
|
|
2749
2778
|
console?: {
|
|
2750
2779
|
level?: string | undefined;
|
|
@@ -2754,12 +2783,6 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2754
2783
|
signalCount?: number | undefined;
|
|
2755
2784
|
}, {
|
|
2756
2785
|
signal?: string | undefined;
|
|
2757
|
-
text?: {
|
|
2758
|
-
contains: string;
|
|
2759
|
-
visible?: boolean | undefined;
|
|
2760
|
-
absent?: boolean | undefined;
|
|
2761
|
-
scope?: string | undefined;
|
|
2762
|
-
} | undefined;
|
|
2763
2786
|
net?: {
|
|
2764
2787
|
status?: number | undefined;
|
|
2765
2788
|
method?: string | undefined;
|
|
@@ -2768,26 +2791,139 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2768
2791
|
} | undefined;
|
|
2769
2792
|
state?: {
|
|
2770
2793
|
path: string;
|
|
2794
|
+
hold?: boolean | undefined;
|
|
2771
2795
|
store?: string | undefined;
|
|
2772
2796
|
equals?: unknown;
|
|
2773
|
-
hold?: boolean | undefined;
|
|
2774
2797
|
} | undefined;
|
|
2775
2798
|
element?: {
|
|
2776
|
-
role?: string | undefined;
|
|
2777
2799
|
testid?: string | undefined;
|
|
2800
|
+
role?: string | undefined;
|
|
2778
2801
|
name?: string | undefined;
|
|
2779
2802
|
} | undefined;
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2803
|
+
text?: {
|
|
2804
|
+
contains: string;
|
|
2805
|
+
visible?: boolean | undefined;
|
|
2806
|
+
scope?: string | undefined;
|
|
2807
|
+
absent?: boolean | undefined;
|
|
2808
|
+
} | undefined;
|
|
2809
|
+
route?: {
|
|
2810
|
+
contains?: string | undefined;
|
|
2811
|
+
pathname?: string | undefined;
|
|
2812
|
+
} | undefined;
|
|
2784
2813
|
console?: {
|
|
2785
2814
|
level?: string | undefined;
|
|
2786
2815
|
absent?: boolean | undefined;
|
|
2787
2816
|
} | undefined;
|
|
2788
2817
|
signalData?: Record<string, unknown> | undefined;
|
|
2789
2818
|
signalCount?: number | undefined;
|
|
2790
|
-
}
|
|
2819
|
+
}>, {
|
|
2820
|
+
kind: typeof PredicateKind.ELEMENT;
|
|
2821
|
+
query: import("../index.js").ElementQuery;
|
|
2822
|
+
state?: import("../wire/constants/constants.js").ElementState;
|
|
2823
|
+
absent?: boolean;
|
|
2824
|
+
} | {
|
|
2825
|
+
kind: typeof PredicateKind.TEXT;
|
|
2826
|
+
contains?: string;
|
|
2827
|
+
visible?: boolean;
|
|
2828
|
+
absent?: boolean;
|
|
2829
|
+
scope?: string;
|
|
2830
|
+
self?: boolean;
|
|
2831
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2832
|
+
} | {
|
|
2833
|
+
kind: typeof PredicateKind.NET;
|
|
2834
|
+
method?: string;
|
|
2835
|
+
urlContains?: string;
|
|
2836
|
+
status?: number;
|
|
2837
|
+
ok?: boolean;
|
|
2838
|
+
since?: number;
|
|
2839
|
+
count?: number;
|
|
2840
|
+
bodyContains?: string;
|
|
2841
|
+
bodyMatches?: Record<string, unknown>;
|
|
2842
|
+
requestBodyContains?: string;
|
|
2843
|
+
requestBodyMatches?: Record<string, unknown>;
|
|
2844
|
+
} | {
|
|
2845
|
+
kind: typeof PredicateKind.ROUTE;
|
|
2846
|
+
pathname?: string;
|
|
2847
|
+
contains?: string;
|
|
2848
|
+
since?: number;
|
|
2849
|
+
} | {
|
|
2850
|
+
kind: typeof PredicateKind.CONSOLE;
|
|
2851
|
+
level?: string;
|
|
2852
|
+
contains?: string;
|
|
2853
|
+
absent?: boolean;
|
|
2854
|
+
since?: number;
|
|
2855
|
+
} | {
|
|
2856
|
+
kind: typeof PredicateKind.ANIMATION;
|
|
2857
|
+
name?: string;
|
|
2858
|
+
target?: string;
|
|
2859
|
+
completed?: boolean;
|
|
2860
|
+
since?: number;
|
|
2861
|
+
} | {
|
|
2862
|
+
kind: typeof PredicateKind.SIGNAL;
|
|
2863
|
+
name?: string;
|
|
2864
|
+
dataMatches?: Record<string, unknown>;
|
|
2865
|
+
count?: number;
|
|
2866
|
+
since?: number;
|
|
2867
|
+
} | {
|
|
2868
|
+
kind: typeof PredicateKind.STATE;
|
|
2869
|
+
store?: string;
|
|
2870
|
+
path: string;
|
|
2871
|
+
equals?: unknown;
|
|
2872
|
+
satisfies?: import("../index.js").PropertyAssertion;
|
|
2873
|
+
} | {
|
|
2874
|
+
kind: typeof PredicateKind.SETTLED;
|
|
2875
|
+
quietMs?: number;
|
|
2876
|
+
} | {
|
|
2877
|
+
kind: typeof PredicateKind.COMPARE;
|
|
2878
|
+
left: import("../verdict/compare-source.js").CompareSource;
|
|
2879
|
+
right: import("../verdict/compare-source.js").CompareSource;
|
|
2880
|
+
as?: import("../verdict/compare-source.js").CompareAs;
|
|
2881
|
+
tolerance?: number;
|
|
2882
|
+
} | {
|
|
2883
|
+
kind: typeof PredicateKind.ALL_OF;
|
|
2884
|
+
predicates: Predicate[];
|
|
2885
|
+
} | {
|
|
2886
|
+
kind: typeof PredicateKind.ANY_OF;
|
|
2887
|
+
predicates: Predicate[];
|
|
2888
|
+
} | {
|
|
2889
|
+
kind: typeof PredicateKind.NOT;
|
|
2890
|
+
predicate: Predicate;
|
|
2891
|
+
} | undefined, {
|
|
2892
|
+
signal?: string | undefined;
|
|
2893
|
+
net?: {
|
|
2894
|
+
status?: number | undefined;
|
|
2895
|
+
method?: string | undefined;
|
|
2896
|
+
urlContains?: string | undefined;
|
|
2897
|
+
count?: number | undefined;
|
|
2898
|
+
} | undefined;
|
|
2899
|
+
state?: {
|
|
2900
|
+
path: string;
|
|
2901
|
+
hold?: boolean | undefined;
|
|
2902
|
+
store?: string | undefined;
|
|
2903
|
+
equals?: unknown;
|
|
2904
|
+
} | undefined;
|
|
2905
|
+
element?: {
|
|
2906
|
+
testid?: string | undefined;
|
|
2907
|
+
role?: string | undefined;
|
|
2908
|
+
name?: string | undefined;
|
|
2909
|
+
} | undefined;
|
|
2910
|
+
text?: {
|
|
2911
|
+
contains: string;
|
|
2912
|
+
visible?: boolean | undefined;
|
|
2913
|
+
scope?: string | undefined;
|
|
2914
|
+
absent?: boolean | undefined;
|
|
2915
|
+
} | undefined;
|
|
2916
|
+
route?: {
|
|
2917
|
+
contains?: string | undefined;
|
|
2918
|
+
pathname?: string | undefined;
|
|
2919
|
+
} | undefined;
|
|
2920
|
+
console?: {
|
|
2921
|
+
level?: string | undefined;
|
|
2922
|
+
absent?: boolean | undefined;
|
|
2923
|
+
} | undefined;
|
|
2924
|
+
signalData?: Record<string, unknown> | undefined;
|
|
2925
|
+
signalCount?: number | undefined;
|
|
2926
|
+
}>]>>;
|
|
2791
2927
|
/**
|
|
2792
2928
|
* Anchors whose CONTENT must not be asserted (e.g. LLM output). Replay asserts
|
|
2793
2929
|
* presence, not words. Compiled from a `mark-dynamic` annotation.
|
|
@@ -2829,12 +2965,12 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2829
2965
|
role: z.ZodString;
|
|
2830
2966
|
name: z.ZodOptional<z.ZodString>;
|
|
2831
2967
|
}, "strip", z.ZodTypeAny, {
|
|
2832
|
-
role: string;
|
|
2833
2968
|
kind: "role";
|
|
2969
|
+
role: string;
|
|
2834
2970
|
name?: string | undefined;
|
|
2835
2971
|
}, {
|
|
2836
|
-
role: string;
|
|
2837
2972
|
kind: "role";
|
|
2973
|
+
role: string;
|
|
2838
2974
|
name?: string | undefined;
|
|
2839
2975
|
}>, z.ZodObject<{
|
|
2840
2976
|
kind: z.ZodLiteral<"signal">;
|
|
@@ -2867,22 +3003,22 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2867
3003
|
kind: "component";
|
|
2868
3004
|
role?: string | undefined;
|
|
2869
3005
|
component?: string | undefined;
|
|
3006
|
+
name?: string | undefined;
|
|
2870
3007
|
source?: {
|
|
2871
3008
|
file: string;
|
|
2872
3009
|
line: number;
|
|
2873
3010
|
column?: number | undefined;
|
|
2874
3011
|
} | undefined;
|
|
2875
|
-
name?: string | undefined;
|
|
2876
3012
|
}, {
|
|
2877
3013
|
kind: "component";
|
|
2878
3014
|
role?: string | undefined;
|
|
2879
3015
|
component?: string | undefined;
|
|
3016
|
+
name?: string | undefined;
|
|
2880
3017
|
source?: {
|
|
2881
3018
|
file: string;
|
|
2882
3019
|
line: number;
|
|
2883
3020
|
column?: number | undefined;
|
|
2884
3021
|
} | undefined;
|
|
2885
|
-
name?: string | undefined;
|
|
2886
3022
|
}>]>, "many">>;
|
|
2887
3023
|
/**
|
|
2888
3024
|
* Free-form labels a suite selects on — `smoke`, `checkout`, `slow`.
|
|
@@ -2923,13 +3059,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2923
3059
|
cleanRuns: z.ZodOptional<z.ZodNumber>;
|
|
2924
3060
|
}, "strip", z.ZodTypeAny, {
|
|
2925
3061
|
state: "open" | "guarded";
|
|
2926
|
-
step: number;
|
|
2927
3062
|
kind: string;
|
|
3063
|
+
step: number;
|
|
2928
3064
|
cleanRuns?: number | undefined;
|
|
2929
3065
|
}, {
|
|
2930
3066
|
state: "open" | "guarded";
|
|
2931
|
-
step: number;
|
|
2932
3067
|
kind: string;
|
|
3068
|
+
step: number;
|
|
2933
3069
|
cleanRuns?: number | undefined;
|
|
2934
3070
|
}>, "many">>;
|
|
2935
3071
|
/**
|
|
@@ -2951,12 +3087,12 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2951
3087
|
/** Which of this flow's assertions the note was written against. */
|
|
2952
3088
|
assertions: z.ZodArray<z.ZodString, "many">;
|
|
2953
3089
|
}, "strip", z.ZodTypeAny, {
|
|
2954
|
-
id: string;
|
|
2955
3090
|
summary: string;
|
|
3091
|
+
id: string;
|
|
2956
3092
|
assertions: string[];
|
|
2957
3093
|
}, {
|
|
2958
|
-
id: string;
|
|
2959
3094
|
summary: string;
|
|
3095
|
+
id: string;
|
|
2960
3096
|
assertions: string[];
|
|
2961
3097
|
}>, "many">>;
|
|
2962
3098
|
/**
|
|
@@ -2973,300 +3109,40 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2973
3109
|
until: z.ZodOptional<z.ZodString>;
|
|
2974
3110
|
}, "strip", z.ZodTypeAny, {
|
|
2975
3111
|
reason: string;
|
|
2976
|
-
since: string;
|
|
2977
3112
|
owner: string;
|
|
2978
|
-
until?: string | undefined;
|
|
2979
|
-
}, {
|
|
2980
|
-
reason: string;
|
|
2981
3113
|
since: string;
|
|
2982
|
-
owner: string;
|
|
2983
3114
|
until?: string | undefined;
|
|
2984
|
-
}
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
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;
|
|
3105
|
-
dynamic?: ({
|
|
3106
|
-
kind: "testid";
|
|
3107
|
-
value: string;
|
|
3108
|
-
source?: {
|
|
3109
|
-
file: string;
|
|
3110
|
-
line: number;
|
|
3111
|
-
column?: number | undefined;
|
|
3112
|
-
} | undefined;
|
|
3113
|
-
} | {
|
|
3114
|
-
role: string;
|
|
3115
|
-
kind: "role";
|
|
3116
|
-
name?: string | undefined;
|
|
3117
|
-
} | {
|
|
3118
|
-
kind: "signal";
|
|
3119
|
-
name: string;
|
|
3120
|
-
} | {
|
|
3121
|
-
kind: "component";
|
|
3122
|
-
role?: string | undefined;
|
|
3123
|
-
component?: string | undefined;
|
|
3124
|
-
source?: {
|
|
3125
|
-
file: string;
|
|
3126
|
-
line: number;
|
|
3127
|
-
column?: number | undefined;
|
|
3128
|
-
} | undefined;
|
|
3129
|
-
name?: string | undefined;
|
|
3130
|
-
})[] | undefined;
|
|
3131
|
-
labels?: string[] | undefined;
|
|
3132
|
-
needs?: string[] | undefined;
|
|
3133
|
-
learned?: {
|
|
3134
|
-
state: "open" | "guarded";
|
|
3135
|
-
step: number;
|
|
3136
|
-
kind: string;
|
|
3137
|
-
cleanRuns?: number | undefined;
|
|
3138
|
-
}[] | undefined;
|
|
3139
|
-
knownBugs?: {
|
|
3140
|
-
id: string;
|
|
3141
|
-
summary: string;
|
|
3142
|
-
assertions: string[];
|
|
3143
|
-
}[] | undefined;
|
|
3144
|
-
quarantine?: {
|
|
3145
|
-
reason: string;
|
|
3146
|
-
since: string;
|
|
3147
|
-
owner: string;
|
|
3148
|
-
until?: string | undefined;
|
|
3149
|
-
} | undefined;
|
|
3150
|
-
}, {
|
|
3151
|
-
name: string;
|
|
3152
|
-
steps: FlowStep[];
|
|
3153
|
-
version: 1;
|
|
3154
|
-
createdAt: number;
|
|
3155
|
-
intent?: string | undefined;
|
|
3156
|
-
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3157
|
-
intentId?: string | undefined;
|
|
3158
|
-
projectId?: string | undefined;
|
|
3159
|
-
startPath?: string | undefined;
|
|
3160
|
-
fixture?: string | undefined;
|
|
3161
|
-
requires?: {
|
|
3162
|
-
signal?: string | undefined;
|
|
3163
|
-
text?: {
|
|
3164
|
-
contains: string;
|
|
3165
|
-
visible?: boolean | undefined;
|
|
3166
|
-
absent?: boolean | undefined;
|
|
3167
|
-
scope?: string | undefined;
|
|
3168
|
-
} | undefined;
|
|
3169
|
-
net?: {
|
|
3170
|
-
status?: number | undefined;
|
|
3171
|
-
method?: string | undefined;
|
|
3172
|
-
urlContains?: string | undefined;
|
|
3173
|
-
count?: number | undefined;
|
|
3174
|
-
} | undefined;
|
|
3175
|
-
state?: {
|
|
3176
|
-
path: string;
|
|
3177
|
-
store?: string | undefined;
|
|
3178
|
-
equals?: unknown;
|
|
3179
|
-
hold?: boolean | undefined;
|
|
3180
|
-
} | undefined;
|
|
3181
|
-
element?: {
|
|
3182
|
-
role?: string | undefined;
|
|
3183
|
-
testid?: string | undefined;
|
|
3184
|
-
name?: string | undefined;
|
|
3185
|
-
} | undefined;
|
|
3186
|
-
route?: {
|
|
3187
|
-
pathname?: string | undefined;
|
|
3188
|
-
contains?: string | undefined;
|
|
3189
|
-
} | undefined;
|
|
3190
|
-
console?: {
|
|
3191
|
-
level?: string | undefined;
|
|
3192
|
-
absent?: boolean | undefined;
|
|
3193
|
-
} | undefined;
|
|
3194
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3195
|
-
signalCount?: number | undefined;
|
|
3196
|
-
}[] | undefined;
|
|
3197
|
-
ensures?: {
|
|
3198
|
-
signal?: string | undefined;
|
|
3199
|
-
text?: {
|
|
3200
|
-
contains: string;
|
|
3201
|
-
visible?: boolean | undefined;
|
|
3202
|
-
absent?: boolean | undefined;
|
|
3203
|
-
scope?: string | undefined;
|
|
3204
|
-
} | undefined;
|
|
3205
|
-
net?: {
|
|
3206
|
-
status?: number | undefined;
|
|
3207
|
-
method?: string | undefined;
|
|
3208
|
-
urlContains?: string | undefined;
|
|
3209
|
-
count?: number | undefined;
|
|
3210
|
-
} | undefined;
|
|
3211
|
-
state?: {
|
|
3212
|
-
path: string;
|
|
3213
|
-
store?: string | undefined;
|
|
3214
|
-
equals?: unknown;
|
|
3215
|
-
hold?: boolean | undefined;
|
|
3216
|
-
} | undefined;
|
|
3217
|
-
element?: {
|
|
3218
|
-
role?: string | undefined;
|
|
3219
|
-
testid?: string | undefined;
|
|
3220
|
-
name?: string | undefined;
|
|
3221
|
-
} | undefined;
|
|
3222
|
-
route?: {
|
|
3223
|
-
pathname?: string | undefined;
|
|
3224
|
-
contains?: string | undefined;
|
|
3225
|
-
} | undefined;
|
|
3226
|
-
console?: {
|
|
3227
|
-
level?: string | undefined;
|
|
3228
|
-
absent?: boolean | undefined;
|
|
3229
|
-
} | undefined;
|
|
3230
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3231
|
-
signalCount?: number | undefined;
|
|
3232
|
-
}[] | undefined;
|
|
3233
|
-
signalTimeoutMs?: number | undefined;
|
|
3234
|
-
success?: {
|
|
3235
|
-
signal?: string | undefined;
|
|
3236
|
-
text?: {
|
|
3237
|
-
contains: string;
|
|
3238
|
-
visible?: boolean | undefined;
|
|
3239
|
-
absent?: boolean | undefined;
|
|
3240
|
-
scope?: string | undefined;
|
|
3241
|
-
} | undefined;
|
|
3242
|
-
net?: {
|
|
3243
|
-
status?: number | undefined;
|
|
3244
|
-
method?: string | undefined;
|
|
3245
|
-
urlContains?: string | undefined;
|
|
3246
|
-
count?: number | undefined;
|
|
3247
|
-
} | undefined;
|
|
3248
|
-
state?: {
|
|
3249
|
-
path: string;
|
|
3250
|
-
store?: string | undefined;
|
|
3251
|
-
equals?: unknown;
|
|
3252
|
-
hold?: boolean | undefined;
|
|
3253
|
-
} | undefined;
|
|
3254
|
-
element?: {
|
|
3255
|
-
role?: string | undefined;
|
|
3256
|
-
testid?: string | undefined;
|
|
3257
|
-
name?: string | undefined;
|
|
3258
|
-
} | undefined;
|
|
3259
|
-
route?: {
|
|
3260
|
-
pathname?: string | undefined;
|
|
3261
|
-
contains?: string | undefined;
|
|
3262
|
-
} | undefined;
|
|
3263
|
-
console?: {
|
|
3264
|
-
level?: string | undefined;
|
|
3265
|
-
absent?: boolean | undefined;
|
|
3266
|
-
} | undefined;
|
|
3267
|
-
signalData?: Record<string, unknown> | undefined;
|
|
3268
|
-
signalCount?: number | undefined;
|
|
3115
|
+
}, {
|
|
3116
|
+
reason: string;
|
|
3117
|
+
owner: string;
|
|
3118
|
+
since: string;
|
|
3119
|
+
until?: string | undefined;
|
|
3120
|
+
}>>;
|
|
3121
|
+
}, "strip", z.ZodTypeAny, {
|
|
3122
|
+
steps: FlowStep[];
|
|
3123
|
+
name: string;
|
|
3124
|
+
createdAt: number;
|
|
3125
|
+
version: number;
|
|
3126
|
+
intent?: string | undefined;
|
|
3127
|
+
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3128
|
+
startPath?: string | undefined;
|
|
3129
|
+
learned?: {
|
|
3130
|
+
state: "open" | "guarded";
|
|
3131
|
+
kind: string;
|
|
3132
|
+
step: number;
|
|
3133
|
+
cleanRuns?: number | undefined;
|
|
3134
|
+
}[] | undefined;
|
|
3135
|
+
intentId?: string | undefined;
|
|
3136
|
+
projectId?: string | undefined;
|
|
3137
|
+
fixture?: string | undefined;
|
|
3138
|
+
requires?: Predicate[] | undefined;
|
|
3139
|
+
ensures?: Predicate[] | undefined;
|
|
3140
|
+
author?: {
|
|
3141
|
+
agent?: string | undefined;
|
|
3142
|
+
person?: string | undefined;
|
|
3269
3143
|
} | undefined;
|
|
3144
|
+
signalTimeoutMs?: number | undefined;
|
|
3145
|
+
success?: Predicate | undefined;
|
|
3270
3146
|
dynamic?: ({
|
|
3271
3147
|
kind: "testid";
|
|
3272
3148
|
value: string;
|
|
@@ -3276,8 +3152,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3276
3152
|
column?: number | undefined;
|
|
3277
3153
|
} | undefined;
|
|
3278
3154
|
} | {
|
|
3279
|
-
role: string;
|
|
3280
3155
|
kind: "role";
|
|
3156
|
+
role: string;
|
|
3281
3157
|
name?: string | undefined;
|
|
3282
3158
|
} | {
|
|
3283
3159
|
kind: "signal";
|
|
@@ -3286,53 +3162,45 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3286
3162
|
kind: "component";
|
|
3287
3163
|
role?: string | undefined;
|
|
3288
3164
|
component?: string | undefined;
|
|
3165
|
+
name?: string | undefined;
|
|
3289
3166
|
source?: {
|
|
3290
3167
|
file: string;
|
|
3291
3168
|
line: number;
|
|
3292
3169
|
column?: number | undefined;
|
|
3293
3170
|
} | undefined;
|
|
3294
|
-
name?: string | undefined;
|
|
3295
3171
|
})[] | undefined;
|
|
3296
3172
|
labels?: string[] | undefined;
|
|
3297
3173
|
needs?: string[] | undefined;
|
|
3298
|
-
learned?: {
|
|
3299
|
-
state: "open" | "guarded";
|
|
3300
|
-
step: number;
|
|
3301
|
-
kind: string;
|
|
3302
|
-
cleanRuns?: number | undefined;
|
|
3303
|
-
}[] | undefined;
|
|
3304
3174
|
knownBugs?: {
|
|
3305
|
-
id: string;
|
|
3306
3175
|
summary: string;
|
|
3176
|
+
id: string;
|
|
3307
3177
|
assertions: string[];
|
|
3308
3178
|
}[] | undefined;
|
|
3309
3179
|
quarantine?: {
|
|
3310
3180
|
reason: string;
|
|
3311
|
-
since: string;
|
|
3312
3181
|
owner: string;
|
|
3182
|
+
since: string;
|
|
3313
3183
|
until?: string | undefined;
|
|
3314
3184
|
} | undefined;
|
|
3315
|
-
}
|
|
3316
|
-
}, "strip", z.ZodTypeAny, {
|
|
3317
|
-
flow: {
|
|
3318
|
-
name: string;
|
|
3185
|
+
}, {
|
|
3319
3186
|
steps: FlowStep[];
|
|
3320
|
-
|
|
3187
|
+
name: string;
|
|
3321
3188
|
createdAt: number;
|
|
3189
|
+
version: number;
|
|
3322
3190
|
intent?: string | undefined;
|
|
3323
3191
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3192
|
+
startPath?: string | undefined;
|
|
3193
|
+
learned?: {
|
|
3194
|
+
state: "open" | "guarded";
|
|
3195
|
+
kind: string;
|
|
3196
|
+
step: number;
|
|
3197
|
+
cleanRuns?: number | undefined;
|
|
3198
|
+
}[] | undefined;
|
|
3324
3199
|
intentId?: string | undefined;
|
|
3325
3200
|
projectId?: string | undefined;
|
|
3326
|
-
startPath?: string | undefined;
|
|
3327
3201
|
fixture?: string | undefined;
|
|
3328
|
-
requires?: {
|
|
3202
|
+
requires?: (Predicate | {
|
|
3329
3203
|
signal?: string | undefined;
|
|
3330
|
-
text?: {
|
|
3331
|
-
contains: string;
|
|
3332
|
-
visible?: boolean | undefined;
|
|
3333
|
-
absent?: boolean | undefined;
|
|
3334
|
-
scope?: string | undefined;
|
|
3335
|
-
} | undefined;
|
|
3336
3204
|
net?: {
|
|
3337
3205
|
status?: number | undefined;
|
|
3338
3206
|
method?: string | undefined;
|
|
@@ -3341,18 +3209,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3341
3209
|
} | undefined;
|
|
3342
3210
|
state?: {
|
|
3343
3211
|
path: string;
|
|
3212
|
+
hold?: boolean | undefined;
|
|
3344
3213
|
store?: string | undefined;
|
|
3345
3214
|
equals?: unknown;
|
|
3346
|
-
hold?: boolean | undefined;
|
|
3347
3215
|
} | undefined;
|
|
3348
3216
|
element?: {
|
|
3349
|
-
role?: string | undefined;
|
|
3350
3217
|
testid?: string | undefined;
|
|
3218
|
+
role?: string | undefined;
|
|
3351
3219
|
name?: string | undefined;
|
|
3352
3220
|
} | undefined;
|
|
3221
|
+
text?: {
|
|
3222
|
+
contains: string;
|
|
3223
|
+
visible?: boolean | undefined;
|
|
3224
|
+
scope?: string | undefined;
|
|
3225
|
+
absent?: boolean | undefined;
|
|
3226
|
+
} | undefined;
|
|
3353
3227
|
route?: {
|
|
3354
|
-
pathname?: string | undefined;
|
|
3355
3228
|
contains?: string | undefined;
|
|
3229
|
+
pathname?: string | undefined;
|
|
3356
3230
|
} | undefined;
|
|
3357
3231
|
console?: {
|
|
3358
3232
|
level?: string | undefined;
|
|
@@ -3360,15 +3234,9 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3360
3234
|
} | undefined;
|
|
3361
3235
|
signalData?: Record<string, unknown> | undefined;
|
|
3362
3236
|
signalCount?: number | undefined;
|
|
3363
|
-
}[] | undefined;
|
|
3364
|
-
ensures?: {
|
|
3237
|
+
})[] | undefined;
|
|
3238
|
+
ensures?: (Predicate | {
|
|
3365
3239
|
signal?: string | undefined;
|
|
3366
|
-
text?: {
|
|
3367
|
-
contains: string;
|
|
3368
|
-
visible?: boolean | undefined;
|
|
3369
|
-
absent?: boolean | undefined;
|
|
3370
|
-
scope?: string | undefined;
|
|
3371
|
-
} | undefined;
|
|
3372
3240
|
net?: {
|
|
3373
3241
|
status?: number | undefined;
|
|
3374
3242
|
method?: string | undefined;
|
|
@@ -3377,18 +3245,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3377
3245
|
} | undefined;
|
|
3378
3246
|
state?: {
|
|
3379
3247
|
path: string;
|
|
3248
|
+
hold?: boolean | undefined;
|
|
3380
3249
|
store?: string | undefined;
|
|
3381
3250
|
equals?: unknown;
|
|
3382
|
-
hold?: boolean | undefined;
|
|
3383
3251
|
} | undefined;
|
|
3384
3252
|
element?: {
|
|
3385
|
-
role?: string | undefined;
|
|
3386
3253
|
testid?: string | undefined;
|
|
3254
|
+
role?: string | undefined;
|
|
3387
3255
|
name?: string | undefined;
|
|
3388
3256
|
} | undefined;
|
|
3257
|
+
text?: {
|
|
3258
|
+
contains: string;
|
|
3259
|
+
visible?: boolean | undefined;
|
|
3260
|
+
scope?: string | undefined;
|
|
3261
|
+
absent?: boolean | undefined;
|
|
3262
|
+
} | undefined;
|
|
3389
3263
|
route?: {
|
|
3390
|
-
pathname?: string | undefined;
|
|
3391
3264
|
contains?: string | undefined;
|
|
3265
|
+
pathname?: string | undefined;
|
|
3392
3266
|
} | undefined;
|
|
3393
3267
|
console?: {
|
|
3394
3268
|
level?: string | undefined;
|
|
@@ -3396,16 +3270,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3396
3270
|
} | undefined;
|
|
3397
3271
|
signalData?: Record<string, unknown> | undefined;
|
|
3398
3272
|
signalCount?: number | undefined;
|
|
3399
|
-
}[] | undefined;
|
|
3273
|
+
})[] | undefined;
|
|
3274
|
+
author?: {
|
|
3275
|
+
agent?: string | undefined;
|
|
3276
|
+
person?: string | undefined;
|
|
3277
|
+
} | undefined;
|
|
3400
3278
|
signalTimeoutMs?: number | undefined;
|
|
3401
|
-
success?: {
|
|
3279
|
+
success?: Predicate | {
|
|
3402
3280
|
signal?: string | undefined;
|
|
3403
|
-
text?: {
|
|
3404
|
-
contains: string;
|
|
3405
|
-
visible?: boolean | undefined;
|
|
3406
|
-
absent?: boolean | undefined;
|
|
3407
|
-
scope?: string | undefined;
|
|
3408
|
-
} | undefined;
|
|
3409
3281
|
net?: {
|
|
3410
3282
|
status?: number | undefined;
|
|
3411
3283
|
method?: string | undefined;
|
|
@@ -3414,18 +3286,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3414
3286
|
} | undefined;
|
|
3415
3287
|
state?: {
|
|
3416
3288
|
path: string;
|
|
3289
|
+
hold?: boolean | undefined;
|
|
3417
3290
|
store?: string | undefined;
|
|
3418
3291
|
equals?: unknown;
|
|
3419
|
-
hold?: boolean | undefined;
|
|
3420
3292
|
} | undefined;
|
|
3421
3293
|
element?: {
|
|
3422
|
-
role?: string | undefined;
|
|
3423
3294
|
testid?: string | undefined;
|
|
3295
|
+
role?: string | undefined;
|
|
3424
3296
|
name?: string | undefined;
|
|
3425
3297
|
} | undefined;
|
|
3298
|
+
text?: {
|
|
3299
|
+
contains: string;
|
|
3300
|
+
visible?: boolean | undefined;
|
|
3301
|
+
scope?: string | undefined;
|
|
3302
|
+
absent?: boolean | undefined;
|
|
3303
|
+
} | undefined;
|
|
3426
3304
|
route?: {
|
|
3427
|
-
pathname?: string | undefined;
|
|
3428
3305
|
contains?: string | undefined;
|
|
3306
|
+
pathname?: string | undefined;
|
|
3429
3307
|
} | undefined;
|
|
3430
3308
|
console?: {
|
|
3431
3309
|
level?: string | undefined;
|
|
@@ -3443,8 +3321,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3443
3321
|
column?: number | undefined;
|
|
3444
3322
|
} | undefined;
|
|
3445
3323
|
} | {
|
|
3446
|
-
role: string;
|
|
3447
3324
|
kind: "role";
|
|
3325
|
+
role: string;
|
|
3448
3326
|
name?: string | undefined;
|
|
3449
3327
|
} | {
|
|
3450
3328
|
kind: "signal";
|
|
@@ -3453,54 +3331,114 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3453
3331
|
kind: "component";
|
|
3454
3332
|
role?: string | undefined;
|
|
3455
3333
|
component?: string | undefined;
|
|
3334
|
+
name?: string | undefined;
|
|
3456
3335
|
source?: {
|
|
3457
3336
|
file: string;
|
|
3458
3337
|
line: number;
|
|
3459
3338
|
column?: number | undefined;
|
|
3460
3339
|
} | undefined;
|
|
3461
|
-
name?: string | undefined;
|
|
3462
3340
|
})[] | undefined;
|
|
3463
3341
|
labels?: string[] | undefined;
|
|
3464
3342
|
needs?: string[] | undefined;
|
|
3343
|
+
knownBugs?: {
|
|
3344
|
+
summary: string;
|
|
3345
|
+
id: string;
|
|
3346
|
+
assertions: string[];
|
|
3347
|
+
}[] | undefined;
|
|
3348
|
+
quarantine?: {
|
|
3349
|
+
reason: string;
|
|
3350
|
+
owner: string;
|
|
3351
|
+
since: string;
|
|
3352
|
+
until?: string | undefined;
|
|
3353
|
+
} | undefined;
|
|
3354
|
+
}>;
|
|
3355
|
+
}, "strip", z.ZodTypeAny, {
|
|
3356
|
+
flow: {
|
|
3357
|
+
steps: FlowStep[];
|
|
3358
|
+
name: string;
|
|
3359
|
+
createdAt: number;
|
|
3360
|
+
version: number;
|
|
3361
|
+
intent?: string | undefined;
|
|
3362
|
+
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3363
|
+
startPath?: string | undefined;
|
|
3465
3364
|
learned?: {
|
|
3466
3365
|
state: "open" | "guarded";
|
|
3467
|
-
step: number;
|
|
3468
3366
|
kind: string;
|
|
3367
|
+
step: number;
|
|
3469
3368
|
cleanRuns?: number | undefined;
|
|
3470
3369
|
}[] | undefined;
|
|
3370
|
+
intentId?: string | undefined;
|
|
3371
|
+
projectId?: string | undefined;
|
|
3372
|
+
fixture?: string | undefined;
|
|
3373
|
+
requires?: Predicate[] | undefined;
|
|
3374
|
+
ensures?: Predicate[] | undefined;
|
|
3375
|
+
author?: {
|
|
3376
|
+
agent?: string | undefined;
|
|
3377
|
+
person?: string | undefined;
|
|
3378
|
+
} | undefined;
|
|
3379
|
+
signalTimeoutMs?: number | undefined;
|
|
3380
|
+
success?: Predicate | undefined;
|
|
3381
|
+
dynamic?: ({
|
|
3382
|
+
kind: "testid";
|
|
3383
|
+
value: string;
|
|
3384
|
+
source?: {
|
|
3385
|
+
file: string;
|
|
3386
|
+
line: number;
|
|
3387
|
+
column?: number | undefined;
|
|
3388
|
+
} | undefined;
|
|
3389
|
+
} | {
|
|
3390
|
+
kind: "role";
|
|
3391
|
+
role: string;
|
|
3392
|
+
name?: string | undefined;
|
|
3393
|
+
} | {
|
|
3394
|
+
kind: "signal";
|
|
3395
|
+
name: string;
|
|
3396
|
+
} | {
|
|
3397
|
+
kind: "component";
|
|
3398
|
+
role?: string | undefined;
|
|
3399
|
+
component?: string | undefined;
|
|
3400
|
+
name?: string | undefined;
|
|
3401
|
+
source?: {
|
|
3402
|
+
file: string;
|
|
3403
|
+
line: number;
|
|
3404
|
+
column?: number | undefined;
|
|
3405
|
+
} | undefined;
|
|
3406
|
+
})[] | undefined;
|
|
3407
|
+
labels?: string[] | undefined;
|
|
3408
|
+
needs?: string[] | undefined;
|
|
3471
3409
|
knownBugs?: {
|
|
3472
|
-
id: string;
|
|
3473
3410
|
summary: string;
|
|
3411
|
+
id: string;
|
|
3474
3412
|
assertions: string[];
|
|
3475
3413
|
}[] | undefined;
|
|
3476
3414
|
quarantine?: {
|
|
3477
3415
|
reason: string;
|
|
3478
|
-
since: string;
|
|
3479
3416
|
owner: string;
|
|
3417
|
+
since: string;
|
|
3480
3418
|
until?: string | undefined;
|
|
3481
3419
|
} | undefined;
|
|
3482
3420
|
};
|
|
3483
3421
|
name: string;
|
|
3484
3422
|
}, {
|
|
3485
3423
|
flow: {
|
|
3486
|
-
name: string;
|
|
3487
3424
|
steps: FlowStep[];
|
|
3488
|
-
|
|
3425
|
+
name: string;
|
|
3489
3426
|
createdAt: number;
|
|
3427
|
+
version: number;
|
|
3490
3428
|
intent?: string | undefined;
|
|
3491
3429
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3430
|
+
startPath?: string | undefined;
|
|
3431
|
+
learned?: {
|
|
3432
|
+
state: "open" | "guarded";
|
|
3433
|
+
kind: string;
|
|
3434
|
+
step: number;
|
|
3435
|
+
cleanRuns?: number | undefined;
|
|
3436
|
+
}[] | undefined;
|
|
3492
3437
|
intentId?: string | undefined;
|
|
3493
3438
|
projectId?: string | undefined;
|
|
3494
|
-
startPath?: string | undefined;
|
|
3495
3439
|
fixture?: string | undefined;
|
|
3496
|
-
requires?: {
|
|
3440
|
+
requires?: (Predicate | {
|
|
3497
3441
|
signal?: string | undefined;
|
|
3498
|
-
text?: {
|
|
3499
|
-
contains: string;
|
|
3500
|
-
visible?: boolean | undefined;
|
|
3501
|
-
absent?: boolean | undefined;
|
|
3502
|
-
scope?: string | undefined;
|
|
3503
|
-
} | undefined;
|
|
3504
3442
|
net?: {
|
|
3505
3443
|
status?: number | undefined;
|
|
3506
3444
|
method?: string | undefined;
|
|
@@ -3509,18 +3447,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3509
3447
|
} | undefined;
|
|
3510
3448
|
state?: {
|
|
3511
3449
|
path: string;
|
|
3450
|
+
hold?: boolean | undefined;
|
|
3512
3451
|
store?: string | undefined;
|
|
3513
3452
|
equals?: unknown;
|
|
3514
|
-
hold?: boolean | undefined;
|
|
3515
3453
|
} | undefined;
|
|
3516
3454
|
element?: {
|
|
3517
|
-
role?: string | undefined;
|
|
3518
3455
|
testid?: string | undefined;
|
|
3456
|
+
role?: string | undefined;
|
|
3519
3457
|
name?: string | undefined;
|
|
3520
3458
|
} | undefined;
|
|
3459
|
+
text?: {
|
|
3460
|
+
contains: string;
|
|
3461
|
+
visible?: boolean | undefined;
|
|
3462
|
+
scope?: string | undefined;
|
|
3463
|
+
absent?: boolean | undefined;
|
|
3464
|
+
} | undefined;
|
|
3521
3465
|
route?: {
|
|
3522
|
-
pathname?: string | undefined;
|
|
3523
3466
|
contains?: string | undefined;
|
|
3467
|
+
pathname?: string | undefined;
|
|
3524
3468
|
} | undefined;
|
|
3525
3469
|
console?: {
|
|
3526
3470
|
level?: string | undefined;
|
|
@@ -3528,15 +3472,9 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3528
3472
|
} | undefined;
|
|
3529
3473
|
signalData?: Record<string, unknown> | undefined;
|
|
3530
3474
|
signalCount?: number | undefined;
|
|
3531
|
-
}[] | undefined;
|
|
3532
|
-
ensures?: {
|
|
3475
|
+
})[] | undefined;
|
|
3476
|
+
ensures?: (Predicate | {
|
|
3533
3477
|
signal?: string | undefined;
|
|
3534
|
-
text?: {
|
|
3535
|
-
contains: string;
|
|
3536
|
-
visible?: boolean | undefined;
|
|
3537
|
-
absent?: boolean | undefined;
|
|
3538
|
-
scope?: string | undefined;
|
|
3539
|
-
} | undefined;
|
|
3540
3478
|
net?: {
|
|
3541
3479
|
status?: number | undefined;
|
|
3542
3480
|
method?: string | undefined;
|
|
@@ -3545,18 +3483,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3545
3483
|
} | undefined;
|
|
3546
3484
|
state?: {
|
|
3547
3485
|
path: string;
|
|
3486
|
+
hold?: boolean | undefined;
|
|
3548
3487
|
store?: string | undefined;
|
|
3549
3488
|
equals?: unknown;
|
|
3550
|
-
hold?: boolean | undefined;
|
|
3551
3489
|
} | undefined;
|
|
3552
3490
|
element?: {
|
|
3553
|
-
role?: string | undefined;
|
|
3554
3491
|
testid?: string | undefined;
|
|
3492
|
+
role?: string | undefined;
|
|
3555
3493
|
name?: string | undefined;
|
|
3556
3494
|
} | undefined;
|
|
3495
|
+
text?: {
|
|
3496
|
+
contains: string;
|
|
3497
|
+
visible?: boolean | undefined;
|
|
3498
|
+
scope?: string | undefined;
|
|
3499
|
+
absent?: boolean | undefined;
|
|
3500
|
+
} | undefined;
|
|
3557
3501
|
route?: {
|
|
3558
|
-
pathname?: string | undefined;
|
|
3559
3502
|
contains?: string | undefined;
|
|
3503
|
+
pathname?: string | undefined;
|
|
3560
3504
|
} | undefined;
|
|
3561
3505
|
console?: {
|
|
3562
3506
|
level?: string | undefined;
|
|
@@ -3564,16 +3508,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3564
3508
|
} | undefined;
|
|
3565
3509
|
signalData?: Record<string, unknown> | undefined;
|
|
3566
3510
|
signalCount?: number | undefined;
|
|
3567
|
-
}[] | undefined;
|
|
3511
|
+
})[] | undefined;
|
|
3512
|
+
author?: {
|
|
3513
|
+
agent?: string | undefined;
|
|
3514
|
+
person?: string | undefined;
|
|
3515
|
+
} | undefined;
|
|
3568
3516
|
signalTimeoutMs?: number | undefined;
|
|
3569
|
-
success?: {
|
|
3517
|
+
success?: Predicate | {
|
|
3570
3518
|
signal?: string | undefined;
|
|
3571
|
-
text?: {
|
|
3572
|
-
contains: string;
|
|
3573
|
-
visible?: boolean | undefined;
|
|
3574
|
-
absent?: boolean | undefined;
|
|
3575
|
-
scope?: string | undefined;
|
|
3576
|
-
} | undefined;
|
|
3577
3519
|
net?: {
|
|
3578
3520
|
status?: number | undefined;
|
|
3579
3521
|
method?: string | undefined;
|
|
@@ -3582,18 +3524,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3582
3524
|
} | undefined;
|
|
3583
3525
|
state?: {
|
|
3584
3526
|
path: string;
|
|
3527
|
+
hold?: boolean | undefined;
|
|
3585
3528
|
store?: string | undefined;
|
|
3586
3529
|
equals?: unknown;
|
|
3587
|
-
hold?: boolean | undefined;
|
|
3588
3530
|
} | undefined;
|
|
3589
3531
|
element?: {
|
|
3590
|
-
role?: string | undefined;
|
|
3591
3532
|
testid?: string | undefined;
|
|
3533
|
+
role?: string | undefined;
|
|
3592
3534
|
name?: string | undefined;
|
|
3593
3535
|
} | undefined;
|
|
3536
|
+
text?: {
|
|
3537
|
+
contains: string;
|
|
3538
|
+
visible?: boolean | undefined;
|
|
3539
|
+
scope?: string | undefined;
|
|
3540
|
+
absent?: boolean | undefined;
|
|
3541
|
+
} | undefined;
|
|
3594
3542
|
route?: {
|
|
3595
|
-
pathname?: string | undefined;
|
|
3596
3543
|
contains?: string | undefined;
|
|
3544
|
+
pathname?: string | undefined;
|
|
3597
3545
|
} | undefined;
|
|
3598
3546
|
console?: {
|
|
3599
3547
|
level?: string | undefined;
|
|
@@ -3611,8 +3559,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3611
3559
|
column?: number | undefined;
|
|
3612
3560
|
} | undefined;
|
|
3613
3561
|
} | {
|
|
3614
|
-
role: string;
|
|
3615
3562
|
kind: "role";
|
|
3563
|
+
role: string;
|
|
3616
3564
|
name?: string | undefined;
|
|
3617
3565
|
} | {
|
|
3618
3566
|
kind: "signal";
|
|
@@ -3621,30 +3569,24 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3621
3569
|
kind: "component";
|
|
3622
3570
|
role?: string | undefined;
|
|
3623
3571
|
component?: string | undefined;
|
|
3572
|
+
name?: string | undefined;
|
|
3624
3573
|
source?: {
|
|
3625
3574
|
file: string;
|
|
3626
3575
|
line: number;
|
|
3627
3576
|
column?: number | undefined;
|
|
3628
3577
|
} | undefined;
|
|
3629
|
-
name?: string | undefined;
|
|
3630
3578
|
})[] | undefined;
|
|
3631
3579
|
labels?: string[] | undefined;
|
|
3632
3580
|
needs?: string[] | undefined;
|
|
3633
|
-
learned?: {
|
|
3634
|
-
state: "open" | "guarded";
|
|
3635
|
-
step: number;
|
|
3636
|
-
kind: string;
|
|
3637
|
-
cleanRuns?: number | undefined;
|
|
3638
|
-
}[] | undefined;
|
|
3639
3581
|
knownBugs?: {
|
|
3640
|
-
id: string;
|
|
3641
3582
|
summary: string;
|
|
3583
|
+
id: string;
|
|
3642
3584
|
assertions: string[];
|
|
3643
3585
|
}[] | undefined;
|
|
3644
3586
|
quarantine?: {
|
|
3645
3587
|
reason: string;
|
|
3646
|
-
since: string;
|
|
3647
3588
|
owner: string;
|
|
3589
|
+
since: string;
|
|
3648
3590
|
until?: string | undefined;
|
|
3649
3591
|
} | undefined;
|
|
3650
3592
|
};
|
|
@@ -3716,7 +3658,7 @@ export type KnownBug = NonNullable<FlowFile['knownBugs']>[number];
|
|
|
3716
3658
|
*/
|
|
3717
3659
|
export declare function staleKnownBugs(notes: readonly KnownBug[] | undefined, currentAssertions: readonly string[]): KnownBug[];
|
|
3718
3660
|
/** True when a FlowExpect asserts at least one consequence (any of the ConsequenceKind fields set). */
|
|
3719
|
-
export declare function flowExpectHasConsequence(expect:
|
|
3661
|
+
export declare function flowExpectHasConsequence(expect: Predicate | undefined): boolean;
|
|
3720
3662
|
/**
|
|
3721
3663
|
* True when a FlowExpect checks ONLY presence — an element, rendered text or a route, no consequence.
|
|
3722
3664
|
*
|
|
@@ -3733,4 +3675,4 @@ export declare function flowExpectHasConsequence(expect: FlowExpect | undefined)
|
|
|
3733
3675
|
* a saved claim nobody made. Promoting both is a defensible change and a separate one, with the
|
|
3734
3676
|
* false-green question — can the route commit while the view does not render? — answered first.
|
|
3735
3677
|
*/
|
|
3736
|
-
export declare function flowExpectIsPresenceOnly(expect:
|
|
3678
|
+
export declare function flowExpectIsPresenceOnly(expect: Predicate | undefined): boolean;
|