@reticlehq/core 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activation-entry.d.ts +9 -0
- package/dist/activation-entry.js +9 -0
- package/dist/artifacts/artifacts-entry.d.ts +2 -0
- package/dist/artifacts/artifacts-entry.js +2 -0
- package/dist/artifacts/drive-script.d.ts +222 -116
- package/dist/artifacts/drive-script.js +24 -1
- package/dist/artifacts/flow-constants.d.ts +33 -0
- package/dist/artifacts/flow-constants.js +35 -0
- package/dist/artifacts/flow-expect-flat.d.ts +8 -8
- package/dist/artifacts/flow-results.d.ts +461 -0
- package/dist/artifacts/flow-results.js +1 -0
- package/dist/artifacts/flow-types.d.ts +177 -543
- package/dist/artifacts/flow-types.js +17 -2
- package/dist/artifacts/harness-credits.d.ts +42 -0
- package/dist/artifacts/harness-credits.js +72 -0
- package/dist/artifacts/harness-map.d.ts +98 -0
- package/dist/artifacts/harness-map.js +36 -0
- package/dist/artifacts/impact.d.ts +355 -149
- package/dist/artifacts/impact.js +84 -49
- package/dist/artifacts/journal.d.ts +81 -11
- package/dist/artifacts/journal.js +39 -0
- package/dist/artifacts/prompt-context.d.ts +12 -0
- package/dist/artifacts/prompt-context.js +14 -3
- package/dist/artifacts/screenshot-upload.d.ts +51 -0
- package/dist/artifacts/screenshot-upload.js +26 -0
- package/dist/graph/app-graph.d.ts +137 -0
- package/dist/graph/app-graph.js +498 -0
- package/dist/hooks/hook-events.d.ts +26 -26
- package/dist/hud-entry.d.ts +1 -0
- package/dist/hud-entry.js +2 -0
- package/dist/identity/checkout.d.ts +41 -0
- package/dist/identity/checkout.js +118 -0
- package/dist/identity/state-dir.d.ts +23 -0
- package/dist/identity/state-dir.js +43 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +15 -0
- package/dist/onboarding.d.ts +30 -1
- package/dist/onboarding.js +25 -0
- package/dist/realm/registry.js +19 -1
- package/dist/registry/dev-server-registry.d.ts +2 -2
- package/dist/schema/command-message.json +30 -0
- package/dist/schema/command-name.json +3 -1
- package/dist/schema/event-message.json +3 -1
- package/dist/schema/event-payloads.json +156 -3
- package/dist/schema/event-type.json +3 -1
- package/dist/schema/hello-message.json +21 -0
- package/dist/schema/reticle-event.json +3 -1
- package/dist/schema/reticle-message.json +54 -1
- package/dist/telemetry-bug.d.ts +169 -0
- package/dist/telemetry-bug.js +123 -0
- package/dist/telemetry-entry.d.ts +2 -1
- package/dist/telemetry-entry.js +2 -1
- package/dist/telemetry-feedback.d.ts +16 -2
- package/dist/telemetry-feedback.js +19 -0
- package/dist/telemetry-session.d.ts +91 -2
- package/dist/telemetry-session.js +65 -0
- package/dist/telemetry-signals.d.ts +557 -0
- package/dist/telemetry-signals.js +225 -0
- package/dist/telemetry.d.ts +649 -296
- package/dist/telemetry.js +110 -119
- package/dist/verdict/check-sentence.d.ts +34 -0
- package/dist/verdict/check-sentence.js +228 -0
- package/dist/verdict/consequence.d.ts +15 -0
- package/dist/verdict/consequence.js +11 -0
- package/dist/verdict/disparity.d.ts +105 -0
- package/dist/verdict/disparity.js +40 -0
- package/dist/verdict/findings.d.ts +16 -0
- package/dist/verdict/findings.js +22 -0
- package/dist/verdict/instrumentation-coverage.d.ts +84 -0
- package/dist/verdict/instrumentation-coverage.js +182 -0
- package/dist/verdict/instrumentation-gap.d.ts +79 -0
- package/dist/verdict/instrumentation-gap.js +65 -1
- package/dist/verdict/intent.d.ts +19 -5
- package/dist/verdict/intent.js +13 -1
- package/dist/verdict/predicate-tree.d.ts +17 -0
- package/dist/verdict/predicate-tree.js +37 -0
- package/dist/verdict/predicate.d.ts +16 -1
- package/dist/verdict/predicate.js +188 -13
- package/dist/verdict/property-assertion.d.ts +2 -2
- package/dist/verdict/run-report.d.ts +166 -0
- package/dist/verdict/run-report.js +53 -0
- package/dist/verdict/security.d.ts +60 -1
- package/dist/verdict/security.js +174 -12
- package/dist/verdict/verification-run.d.ts +713 -68
- package/dist/verdict/verification-run.js +113 -0
- package/dist/verdict/verify-progress.d.ts +6 -6
- package/dist/wire/constants/constants.d.ts +69 -155
- package/dist/wire/constants/constants.js +78 -159
- package/dist/wire/constants/discovery.d.ts +4 -4
- package/dist/wire/constants/discovery.js +4 -4
- package/dist/wire/constants/event-types.d.ts +35 -1
- package/dist/wire/constants/event-types.js +33 -1
- package/dist/wire/constants/hud-controls.js +15 -5
- package/dist/wire/constants/hud-use.d.ts +33 -4
- package/dist/wire/constants/hud-use.js +30 -4
- package/dist/wire/constants/mcp-wire.d.ts +26 -0
- package/dist/wire/constants/mcp-wire.js +26 -0
- package/dist/wire/constants/response-body-reason.d.ts +19 -0
- package/dist/wire/constants/response-body-reason.js +18 -0
- package/dist/wire/constants/reticle-chrome.d.ts +19 -0
- package/dist/wire/constants/reticle-chrome.js +19 -0
- package/dist/wire/constants/reticle-env.d.ts +138 -0
- package/dist/wire/constants/reticle-env.js +138 -0
- package/dist/wire/constants/session-constants.d.ts +26 -2
- package/dist/wire/constants/session-constants.js +26 -2
- package/dist/wire/desktop-contract.d.ts +8 -0
- package/dist/wire/desktop-contract.js +11 -0
- package/dist/wire/event-payloads.d.ts +202 -36
- package/dist/wire/event-payloads.js +100 -16
- package/dist/wire/messages.d.ts +193 -54
- package/dist/wire/messages.js +25 -1
- package/dist/wire/narrow.d.ts +6 -0
- package/dist/wire/narrow.js +26 -0
- package/dist/wire/next-step.d.ts +90 -0
- package/dist/wire/next-step.js +37 -0
- package/dist/wire/platform-link.d.ts +84 -0
- package/dist/wire/platform-link.js +57 -6
- package/dist/wire/production/activation-ticket.d.ts +64 -0
- package/dist/wire/production/activation-ticket.js +148 -0
- package/dist/wire/production/hello-mode.d.ts +35 -0
- package/dist/wire/production/hello-mode.js +32 -0
- package/dist/wire/production/production-policy.d.ts +138 -0
- package/dist/wire/production/production-policy.js +133 -0
- package/dist/wire/tool-names.d.ts +4 -0
- package/dist/wire/tool-names.js +4 -0
- package/dist/wire/types.d.ts +90 -52
- package/dist/wire/types.js +5 -0
- package/dist/words/notices.d.ts +1 -1
- package/dist/words/notices.js +1 -1
- package/dist/words/upgrade.js +1 -1
- package/dist/words/writing-rule.d.ts +14 -0
- package/dist/words/writing-rule.js +17 -0
- package/package.json +5 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { StepEffect } from './step-effect.js';
|
|
3
3
|
import { ActionType } from '../wire/constants/constants.js';
|
|
4
|
-
import type { Contradiction } from '../verdict/findings.js';
|
|
5
4
|
import { PredicateKind } from '../verdict/consequence.js';
|
|
6
5
|
import { type Predicate } from '../verdict/predicate.js';
|
|
7
6
|
export { FlowExpectSchema, type FlowExpect } from './flow-expect-flat.js';
|
|
8
|
-
|
|
7
|
+
export * from './flow-results.js';
|
|
9
8
|
/**
|
|
10
9
|
* The MCP tool names that can appear as a recorded flow step's `tool`. These are the ONLY tool names
|
|
11
10
|
* that cross the wire into a persisted flow file — the browser recorder stamps them, the server replays
|
|
@@ -21,6 +20,7 @@ import { type DriftReason, type HealStatus, type ReplayStatus, type SuiteIsolati
|
|
|
21
20
|
export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
22
21
|
kind: z.ZodLiteral<"testid">;
|
|
23
22
|
value: z.ZodString;
|
|
23
|
+
of: z.ZodOptional<z.ZodNumber>;
|
|
24
24
|
source: z.ZodOptional<z.ZodObject<{
|
|
25
25
|
file: z.ZodString;
|
|
26
26
|
line: z.ZodNumber;
|
|
@@ -42,6 +42,7 @@ export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
42
42
|
line: number;
|
|
43
43
|
column?: number | undefined;
|
|
44
44
|
} | undefined;
|
|
45
|
+
of?: number | undefined;
|
|
45
46
|
}, {
|
|
46
47
|
kind: "testid";
|
|
47
48
|
value: string;
|
|
@@ -50,6 +51,7 @@ export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
50
51
|
line: number;
|
|
51
52
|
column?: number | undefined;
|
|
52
53
|
} | undefined;
|
|
54
|
+
of?: number | undefined;
|
|
53
55
|
}>, z.ZodObject<{
|
|
54
56
|
kind: z.ZodLiteral<"role">;
|
|
55
57
|
role: z.ZodString;
|
|
@@ -72,11 +74,11 @@ export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
72
74
|
kind: z.ZodLiteral<"signal">;
|
|
73
75
|
name: z.ZodString;
|
|
74
76
|
}, "strip", z.ZodTypeAny, {
|
|
75
|
-
kind: "signal";
|
|
76
77
|
name: string;
|
|
77
|
-
}, {
|
|
78
78
|
kind: "signal";
|
|
79
|
+
}, {
|
|
79
80
|
name: string;
|
|
81
|
+
kind: "signal";
|
|
80
82
|
}>, z.ZodObject<{
|
|
81
83
|
kind: z.ZodLiteral<"component">;
|
|
82
84
|
component: z.ZodOptional<z.ZodString>;
|
|
@@ -97,9 +99,9 @@ export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
97
99
|
name: z.ZodOptional<z.ZodString>;
|
|
98
100
|
}, "strip", z.ZodTypeAny, {
|
|
99
101
|
kind: "component";
|
|
102
|
+
name?: string | undefined;
|
|
100
103
|
role?: string | undefined;
|
|
101
104
|
component?: string | undefined;
|
|
102
|
-
name?: string | undefined;
|
|
103
105
|
source?: {
|
|
104
106
|
file: string;
|
|
105
107
|
line: number;
|
|
@@ -107,9 +109,9 @@ export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
107
109
|
} | undefined;
|
|
108
110
|
}, {
|
|
109
111
|
kind: "component";
|
|
112
|
+
name?: string | undefined;
|
|
110
113
|
role?: string | undefined;
|
|
111
114
|
component?: string | undefined;
|
|
112
|
-
name?: string | undefined;
|
|
113
115
|
source?: {
|
|
114
116
|
file: string;
|
|
115
117
|
line: number;
|
|
@@ -145,6 +147,11 @@ export interface FlowStep {
|
|
|
145
147
|
id?: string;
|
|
146
148
|
/** What this step does to the subject; absent means unknown. See StepEffect. */
|
|
147
149
|
effect?: StepEffect;
|
|
150
|
+
/**
|
|
151
|
+
* This step sent a write request (POST, PUT, PATCH, DELETE) when it was recorded, so a replay
|
|
152
|
+
* sends it again and changes real data. A certify run skips such a flow unless told otherwise.
|
|
153
|
+
*/
|
|
154
|
+
writes?: boolean;
|
|
148
155
|
action?: ActionType;
|
|
149
156
|
args?: Record<string, unknown>;
|
|
150
157
|
expect?: Predicate;
|
|
@@ -199,395 +206,6 @@ export interface FlowStep {
|
|
|
199
206
|
invoke?: string;
|
|
200
207
|
}
|
|
201
208
|
export declare const FlowStepSchema: z.ZodType<FlowStep>;
|
|
202
|
-
/**
|
|
203
|
-
* A legible-drift record returned when an anchor misses at replay.
|
|
204
|
-
* The "whose fault is it" payload: what was expected, why it's gone, and the closest surviving
|
|
205
|
-
* anchor (a concrete fix suggestion). Never a bare "command failed".
|
|
206
|
-
*/
|
|
207
|
-
export interface Drift {
|
|
208
|
-
/** Named reason kind (testid not found / signal not observed). */
|
|
209
|
-
reasonKind: DriftReason;
|
|
210
|
-
/** Human sentence, e.g. `testid "chat-send" not found`. */
|
|
211
|
-
reason: string;
|
|
212
|
-
/** The missed anchor value (the testid string, or the signal name). */
|
|
213
|
-
anchor: string;
|
|
214
|
-
/** Closest present testid via the live near-miss; null only when the page has no testids (or signal drift). */
|
|
215
|
-
nearest: string | null;
|
|
216
|
-
/**
|
|
217
|
-
* True when two or more present testids tie at the minimum edit distance, so `nearest` is an
|
|
218
|
-
* arbitrary pick. An ambiguous drift is NEVER auto-healed (a wrong rebind ships a bug green) —
|
|
219
|
-
* it is surfaced for a human/agent to choose. Absent ⇒ unambiguous.
|
|
220
|
-
*/
|
|
221
|
-
ambiguous?: boolean;
|
|
222
|
-
}
|
|
223
|
-
/** The per-step result of re-resolving + running one anchored step. */
|
|
224
|
-
/**
|
|
225
|
-
* Counts of what an app did inside one window, and the width of that window.
|
|
226
|
-
*
|
|
227
|
-
* Defined HERE because it is part of the artifact contract, and consumed by the engine that computes
|
|
228
|
-
* it: core is the bottom of the graph and everything depends on it, so one shape lives in one place
|
|
229
|
-
* rather than being declared twice and drifting.
|
|
230
|
-
*/
|
|
231
|
-
export interface ReactionSummary {
|
|
232
|
-
total: number;
|
|
233
|
-
network: number;
|
|
234
|
-
domAdded: number;
|
|
235
|
-
domRemoved: number;
|
|
236
|
-
domChanged: number;
|
|
237
|
-
routeChanges: number;
|
|
238
|
-
consoleErrors: number;
|
|
239
|
-
animations: number;
|
|
240
|
-
signals: number;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* The digest's counts: `total` always, every other counter only when it is NON-ZERO.
|
|
244
|
-
*
|
|
245
|
-
* This shape is sparse and the full `ReactionSummary` above is not, on purpose. The digest ships on
|
|
246
|
-
* every step of every replay and on every `act_and_wait`; the full report does not. Across a
|
|
247
|
-
* four-step replay 25 of 36 counters are typically zero — every step spelling out `"network":0,
|
|
248
|
-
* "domAdded":0,"routeChanges":0,…` whether or not anything moved.
|
|
249
|
-
*
|
|
250
|
-
* Omitting a zero is a ROUTE cut and never an evidence cut: an absent counter IS zero, so the reader
|
|
251
|
-
* answers the same question from the same facts. Read one as `summary.network ?? 0`.
|
|
252
|
-
*
|
|
253
|
-
* `total` is unconditional because "the window was empty" is itself evidence, and a summary with no
|
|
254
|
-
* keys could not be told apart from one that was never computed.
|
|
255
|
-
*/
|
|
256
|
-
export type ReactionSummaryDigest = {
|
|
257
|
-
total: number;
|
|
258
|
-
} & Partial<Omit<ReactionSummary, 'total'>>;
|
|
259
|
-
/** The lean reaction report: the window and the counts, without the per-event timeline. */
|
|
260
|
-
export interface ReactionDigest {
|
|
261
|
-
window_ms: number;
|
|
262
|
-
summary: ReactionSummaryDigest;
|
|
263
|
-
}
|
|
264
|
-
export interface FlowStepResult {
|
|
265
|
-
/** 0-based index of this step in the flow. */
|
|
266
|
-
step: number;
|
|
267
|
-
/**
|
|
268
|
-
* The tool the step runs — FlowStepTool.ACT | ACT_SEQUENCE | the synthetic success oracle.
|
|
269
|
-
*
|
|
270
|
-
* OMITTED when it is `ACT`, which 137/137 steps in this repo's corpus are. Read it as
|
|
271
|
-
* `tool ?? FlowStepTool.ACT`. Every reader only ever asks "is this the success oracle?", and a
|
|
272
|
-
* missing field is correctly falsy against that — so the coercion fails in the safe direction.
|
|
273
|
-
*/
|
|
274
|
-
tool?: string;
|
|
275
|
-
/** The testid/signal value the step is bound to (the re-resolved anchor). */
|
|
276
|
-
anchor: string;
|
|
277
|
-
/**
|
|
278
|
-
* Where this step lives, rendered, when the flow is a COMPOSITE — `signin#0 (invoked from full#1)`.
|
|
279
|
-
*
|
|
280
|
-
* Absent for a flat flow, where `step` is already the whole answer and an address on every row
|
|
281
|
-
* would be noise on every replay of every flow.
|
|
282
|
-
*/
|
|
283
|
-
at?: string;
|
|
284
|
-
/**
|
|
285
|
-
* The route (pathname) the page was on when this step ran — the "which page" of the journey.
|
|
286
|
-
* Additive/optional: present when a route is observable, absent in route-less contexts (e.g. a
|
|
287
|
-
* fake session with no route events). Lets a replay result read as a page-by-page journey.
|
|
288
|
-
*/
|
|
289
|
-
page?: string;
|
|
290
|
-
/** The route the page was on once this step settled — where it led. Absent when unobservable. */
|
|
291
|
-
endPage?: string;
|
|
292
|
-
/**
|
|
293
|
-
* A compact summary of the observable CONSEQUENCE in the window right after this step ran — the
|
|
294
|
-
* "what happened" of the journey: a route change, a domain signal (e.g. a modal opening), a
|
|
295
|
-
* network call, or console errors. Additive/optional and intentionally terse (token-cheap). It
|
|
296
|
-
* captures what had landed by the time the action settled, so a very-late async effect may not
|
|
297
|
-
* appear; the asserted consequence (expect/success) is the authoritative pass/fail signal.
|
|
298
|
-
*/
|
|
299
|
-
consequence?: string;
|
|
300
|
-
/**
|
|
301
|
-
* Wall-clock ms this step took (dispatch → post-settle), from the session's injected elapsed clock.
|
|
302
|
-
* Additive/optional: absent in contexts with no advancing clock. Feeds per-step run-to-run perf diffs.
|
|
303
|
-
*/
|
|
304
|
-
durationMs?: number;
|
|
305
|
-
/**
|
|
306
|
-
* The event-stream span this step's evidence lives in — its drill address.
|
|
307
|
-
*
|
|
308
|
-
* `reticle_observe` already accepts `{ since, until }` and returns "the span between action A and
|
|
309
|
-
* B", so a step that carries its own window is a step somebody can ask about afterwards without
|
|
310
|
-
* re-driving anything. Without it the evidence is captured and has no address, which is why a
|
|
311
|
-
* deterministic run could say a step passed and nothing more.
|
|
312
|
-
*
|
|
313
|
-
* Bounded on BOTH ends deliberately. A `since` alone returns everything from that point to now, so
|
|
314
|
-
* on a long flow step two's window would include steps three through twenty-five — and an agent
|
|
315
|
-
* reading it would attribute the whole tail to one click.
|
|
316
|
-
*
|
|
317
|
-
* Additive/optional, and omitted rather than zero-width where no clock advanced: a `{since: 0,
|
|
318
|
-
* until: 0}` would read as "this step caused nothing" instead of "nothing here measures time".
|
|
319
|
-
*/
|
|
320
|
-
window?: {
|
|
321
|
-
since: number;
|
|
322
|
-
until: number;
|
|
323
|
-
};
|
|
324
|
-
/**
|
|
325
|
-
* What the app DID in that window, as counts.
|
|
326
|
-
*
|
|
327
|
-
* `consequence` beside it is a sentence — readable, and not scannable. Twenty-five sentences is
|
|
328
|
-
* prose somebody has to read; twenty-five of these is a surface they can skim for the one row that
|
|
329
|
-
* is unlike the others, which is the whole difference between a step ledger and a wall of text.
|
|
330
|
-
*
|
|
331
|
-
* The counts, not the events. The per-event timeline is the expensive half and it is one
|
|
332
|
-
* `reticle_observe { since, until }` away using this step's own `window`, so the cheap form is
|
|
333
|
-
* what travels and the full form is addressable rather than sent.
|
|
334
|
-
*/
|
|
335
|
-
digest?: ReactionDigest;
|
|
336
|
-
/**
|
|
337
|
-
* Channels that DISAGREE about what this step did — reported even when the step passed.
|
|
338
|
-
*
|
|
339
|
-
* That is the entire point. A step whose anchor resolved, whose action fired and whose declared
|
|
340
|
-
* consequence held, while a request in the same window failed, is the false green this product
|
|
341
|
-
* exists to catch. The detectors run independently of the assertion, so a green step with an entry
|
|
342
|
-
* here is a finding, not a contradiction in terms.
|
|
343
|
-
*
|
|
344
|
-
* Omitted when the channels agree, never an empty array: a field that is always present teaches a
|
|
345
|
-
* reader to skim past it, and the whole value here is that its presence is the signal.
|
|
346
|
-
*/
|
|
347
|
-
contradictions?: Contradiction[];
|
|
348
|
-
/**
|
|
349
|
-
* The console errors and uncaught exceptions this step's window saw, the first few only; `digest`
|
|
350
|
-
* still counts every one. A run artifact's `evidence.consoleErrors` is built from these, so it
|
|
351
|
-
* reports what replay observed instead of claiming a clean console. Omitted when there were none.
|
|
352
|
-
*/
|
|
353
|
-
consoleErrors?: {
|
|
354
|
-
level: string;
|
|
355
|
-
message: string;
|
|
356
|
-
at: number;
|
|
357
|
-
}[];
|
|
358
|
-
ok: boolean;
|
|
359
|
-
error?: string;
|
|
360
|
-
note?: string;
|
|
361
|
-
/** Present iff this step stopped on an anchor miss. */
|
|
362
|
-
drift?: Drift;
|
|
363
|
-
/**
|
|
364
|
-
* A confidence-scored nearest-match rebind for this drifted step (additive,
|
|
365
|
-
* optional). Set only for a confident testid drift.
|
|
366
|
-
*/
|
|
367
|
-
proposal?: HealProposal;
|
|
368
|
-
}
|
|
369
|
-
/**
|
|
370
|
-
* The autonomy decision envelope — the feedback a human used to give, made machine-actionable. From
|
|
371
|
-
* a replay result it states the verdict, what changed, WHERE in the source to look (file:line, from a
|
|
372
|
-
* component anchor), a suggested fix, and the single next action — so a coding agent decides its next
|
|
373
|
-
* move without a human in the loop. Terse by design (token-cheap).
|
|
374
|
-
*/
|
|
375
|
-
export interface ReplayDecision {
|
|
376
|
-
/** pass = intent held; drift = a locator/anchor missed; fail = an action or the success oracle failed. */
|
|
377
|
-
verdict: 'pass' | 'drift' | 'fail';
|
|
378
|
-
/** One-line human/agent summary of the outcome. */
|
|
379
|
-
summary: string;
|
|
380
|
-
/** What regressed (the drift reason or failure), when not a pass. */
|
|
381
|
-
whatChanged?: string;
|
|
382
|
-
/** Where to look — `file:line` from the failing step's source anchor, or the page route. */
|
|
383
|
-
whereInSource?: string;
|
|
384
|
-
/** A concrete fix hint (e.g. rebind to the nearest surviving anchor). */
|
|
385
|
-
suggestedFix?: string;
|
|
386
|
-
/** The single next action the agent should take. */
|
|
387
|
-
nextAction: string;
|
|
388
|
-
}
|
|
389
|
-
/**
|
|
390
|
-
* One flow's line in a suite verdict — pass counts as a name; a failure carries the actionable
|
|
391
|
-
* decision fields so the agent can fix it without re-querying.
|
|
392
|
-
*/
|
|
393
|
-
export interface SuiteFlowResult {
|
|
394
|
-
flow: string;
|
|
395
|
-
/**
|
|
396
|
-
* The flow never ran: its file failed to load, or its leased context never came up. Nothing was
|
|
397
|
-
* learned about the app, so this row is not a regression — it is Reticle reporting its own failure
|
|
398
|
-
* in the same array as the app's. Measured: one sweep emitted 8 `flow-regression` bug_found events
|
|
399
|
-
* off rows like these, from a suite where no flow ever executed.
|
|
400
|
-
*/
|
|
401
|
-
couldNotRun?: boolean;
|
|
402
|
-
verdict: 'pass' | 'drift' | 'fail';
|
|
403
|
-
whatChanged?: string;
|
|
404
|
-
whereInSource?: string;
|
|
405
|
-
nextAction?: string;
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* The consolidated verdict of replaying EVERY known flow — the autonomous loop's "did I break
|
|
409
|
-
* anything, and what do I fix" answer in one deterministic call. Passing flows are counted; only
|
|
410
|
-
* failures carry detail (token-cheap). `status` is fail if any flow drifted or errored.
|
|
411
|
-
*/
|
|
412
|
-
export interface SuiteVerdict {
|
|
413
|
-
/**
|
|
414
|
-
* `unverifiable` means the suite contained flows that CANNOT FAIL, so "pass" would be a lie.
|
|
415
|
-
*
|
|
416
|
-
* A recorded flow with no steps, or one that asserts no observable consequence, replays green no
|
|
417
|
-
* matter what the app does. Reporting `pass` for it is a false green in the exact feature sold as
|
|
418
|
-
* the regression suite — measured: a flow saved as `{steps: [], intent: "..."}`, which `flow_save`
|
|
419
|
-
* had ALREADY graded assertion-free with a warning, came back "all 1 flow pass".
|
|
420
|
-
*/
|
|
421
|
-
status: 'pass' | 'fail' | 'unverifiable';
|
|
422
|
-
total: number;
|
|
423
|
-
passed: number;
|
|
424
|
-
failed: number;
|
|
425
|
-
summary: string;
|
|
426
|
-
/** Only the failing flows, with their decision (verdict, what changed, where, next action). */
|
|
427
|
-
failures: SuiteFlowResult[];
|
|
428
|
-
/**
|
|
429
|
-
* How the flows were kept apart — see `SuiteIsolation`.
|
|
430
|
-
*
|
|
431
|
-
* Absent when the caller did not say. Present, it is the difference between two counts that can
|
|
432
|
-
* be compared and two that cannot: a shared-session pass may be inherited from an earlier flow.
|
|
433
|
-
*/
|
|
434
|
-
isolation?: SuiteIsolation;
|
|
435
|
-
/**
|
|
436
|
-
* Flows that replayed without error but assert nothing, so their green means nothing. Counted
|
|
437
|
-
* apart from `passed` — a number that includes them is not a count of anything verified.
|
|
438
|
-
*/
|
|
439
|
-
unverifiable?: {
|
|
440
|
-
flow: string;
|
|
441
|
-
reason: string;
|
|
442
|
-
}[];
|
|
443
|
-
/**
|
|
444
|
-
* Flows that have both passed AND failed on UNCHANGED code — intermittent, not regressions.
|
|
445
|
-
*
|
|
446
|
-
* A flake and a regression demand opposite responses: one is chased, the other is quarantined. The
|
|
447
|
-
* ledger that answers this already existed and was written only by the CLI, so an agent replaying a
|
|
448
|
-
* suite a hundred times could never learn which of its failures were noise. Omitted entirely when
|
|
449
|
-
* the ledger has not seen enough runs to say.
|
|
450
|
-
*/
|
|
451
|
-
flaky?: string[];
|
|
452
|
-
/**
|
|
453
|
-
* How much of what the suite DROVE it actually proved.
|
|
454
|
-
*
|
|
455
|
-
* `unverifiable` above catches a flow that asserts nothing at all. It cannot catch the commoner
|
|
456
|
-
* shape: a flow of twelve steps where three declare a consequence and nine do not. That flow
|
|
457
|
-
* passes, counts in `passed`, and nine of its steps would have replayed green whether or not the
|
|
458
|
-
* feature worked.
|
|
459
|
-
*
|
|
460
|
-
* So the count travels. Sixty-three steps driven and forty-seven declared is not "75% verified" —
|
|
461
|
-
* it is verified for forty-seven and silent about sixteen, and only a number carrying both lets a
|
|
462
|
-
* reader tell those apart. Omitted when no flow file was available to count, because an invented
|
|
463
|
-
* zero would read as "nothing was declared" rather than "nothing was counted".
|
|
464
|
-
*/
|
|
465
|
-
coverage?: {
|
|
466
|
-
steps: number;
|
|
467
|
-
declared: number;
|
|
468
|
-
};
|
|
469
|
-
/**
|
|
470
|
-
* Known routes this run never opened.
|
|
471
|
-
*
|
|
472
|
-
* `coverage` above counts what the suite DROVE. Neither it nor anything else here notices a route
|
|
473
|
-
* no flow goes near — so a selection replaying two of eleven flows reports "all 2 flows pass",
|
|
474
|
-
* which is true and says nothing about the nine routes that were not looked at.
|
|
475
|
-
*
|
|
476
|
-
* Known means seen before, not enumerated from the app: every flow the project holds contributes
|
|
477
|
-
* the route it starts on. Omitted when the caller knows of no routes, because "0 unreached" from
|
|
478
|
-
* an empty ledger reads as a clean sweep rather than as an unanswered question.
|
|
479
|
-
*/
|
|
480
|
-
unreached?: string[];
|
|
481
|
-
/**
|
|
482
|
-
* Every channel disagreement the suite saw, including on flows that PASSED.
|
|
483
|
-
*
|
|
484
|
-
* The step-level rule already says a contradiction is reported regardless of `ok`, for the reason
|
|
485
|
-
* that a step whose action fired and whose consequence held, while a request in the same window
|
|
486
|
-
* failed, is the false green this product exists to catch. The suite verdict returned only its
|
|
487
|
-
* failures, so on a green run every one of those was computed, attached to a step, and discarded
|
|
488
|
-
* at exactly the moment somebody would have read it — a nightly run of a hundred steps reporting
|
|
489
|
-
* "all 12 flows pass".
|
|
490
|
-
*
|
|
491
|
-
* Carrying them also means a green suite is not reported as `pass`: see `status`.
|
|
492
|
-
*/
|
|
493
|
-
contradictions?: SuiteContradiction[];
|
|
494
|
-
}
|
|
495
|
-
/** A step-level contradiction, addressed back to the flow and step that produced it. */
|
|
496
|
-
export interface SuiteContradiction extends Contradiction {
|
|
497
|
-
flow: string;
|
|
498
|
-
/** Index within the flow, so the reader can drill straight to the step's own window. */
|
|
499
|
-
step: number;
|
|
500
|
-
}
|
|
501
|
-
/** The reticle_flow_replay envelope. */
|
|
502
|
-
export interface FlowReplayResult {
|
|
503
|
-
name: string;
|
|
504
|
-
status: ReplayStatus;
|
|
505
|
-
/**
|
|
506
|
-
* Contradictions that span steps — found by re-running the detectors over the WHOLE replay, minus
|
|
507
|
-
* everything a step already reported.
|
|
508
|
-
*
|
|
509
|
-
* A step's window closes when the step ends, so a request fired at step 2 and still unanswered at
|
|
510
|
-
* step 5 sits outside every per-step window. It is exactly the shape a long journey produces and
|
|
511
|
-
* exactly the shape a per-step view cannot see.
|
|
512
|
-
*
|
|
513
|
-
* Omitted when the whole-span pass adds nothing over the steps.
|
|
514
|
-
*/
|
|
515
|
-
crossStep?: Contradiction[];
|
|
516
|
-
/**
|
|
517
|
-
* What this flow knows after this run — every defect it has seen, and whether it is still open.
|
|
518
|
-
*
|
|
519
|
-
* Written back to the flow file so the next replay starts from it. This is how a flow gets
|
|
520
|
-
* stricter without anybody writing a new assertion: a defect observed, then observed GONE, becomes
|
|
521
|
-
* something the app can never quietly reacquire.
|
|
522
|
-
*/
|
|
523
|
-
learned?: {
|
|
524
|
-
kind: string;
|
|
525
|
-
step: number;
|
|
526
|
-
state: 'open' | 'guarded';
|
|
527
|
-
cleanRuns?: number | undefined;
|
|
528
|
-
}[];
|
|
529
|
-
/** Defects this run saw disappear. The app got better here. */
|
|
530
|
-
promoted?: string[];
|
|
531
|
-
/** Guarded defects that came back. The app got worse here, and only this flow would have known. */
|
|
532
|
-
regressed?: string[];
|
|
533
|
-
steps: FlowStepResult[];
|
|
534
|
-
/** The machine-actionable decision derived from this replay (autonomy layer). */
|
|
535
|
-
decision?: ReplayDecision;
|
|
536
|
-
/** Set when status === 'error' (load failure or resolved action failure). */
|
|
537
|
-
error?: {
|
|
538
|
-
code: string;
|
|
539
|
-
message: string;
|
|
540
|
-
};
|
|
541
|
-
/**
|
|
542
|
-
* Set when the replay STOPPED before the end of the flow.
|
|
543
|
-
*
|
|
544
|
-
* Replay breaks on the first failing step, so a flow that halted returns fewer step results than
|
|
545
|
-
* it has steps — and nothing said so. A caller reading a two-step flow's one result saw a step
|
|
546
|
-
* that was simply absent, which was reported as replay "silently skipping" an action. It does not
|
|
547
|
-
* skip; it stops, and now it says where and how much it never reached. Omitted entirely when every
|
|
548
|
-
* step ran, so a clean pass carries no extra bytes.
|
|
549
|
-
*/
|
|
550
|
-
halted?: {
|
|
551
|
-
atStep: number;
|
|
552
|
-
notAttempted: number;
|
|
553
|
-
};
|
|
554
|
-
/**
|
|
555
|
-
* Set on an `ok` replay whose flow cannot fail: it asserts no observable consequence, or has no
|
|
556
|
-
* steps at all. The replay genuinely completed, so the status stays `ok` — but a bare `ok` read
|
|
557
|
-
* as proof the feature works is exactly the false confidence `flow-risk.ts` argues against, and
|
|
558
|
-
* `reticle_flow_verify` already refuses to count these as passes. This carries the same reason,
|
|
559
|
-
* from the same function, to the single-flow caller who would otherwise never see it.
|
|
560
|
-
*/
|
|
561
|
-
unverifiable?: {
|
|
562
|
-
reason: string;
|
|
563
|
-
};
|
|
564
|
-
/**
|
|
565
|
-
* The confident rebind proposals aggregated across drifted steps (additive,
|
|
566
|
-
* optional — present only when at least one drifted step has a confident nearest match).
|
|
567
|
-
*/
|
|
568
|
-
proposals?: HealProposal[];
|
|
569
|
-
/**
|
|
570
|
-
* The push-default deviation report over this replay's route segments (ranked deviations vs the learned
|
|
571
|
-
* envelope, or a fall-back note below N=3 runs). Additive; present when segments were observed.
|
|
572
|
-
*/
|
|
573
|
-
deviation?: unknown;
|
|
574
|
-
/**
|
|
575
|
-
* What the project already knows about this flow, fetched from shared memory on the agent's
|
|
576
|
-
* behalf.
|
|
577
|
-
*
|
|
578
|
-
* Present only when the project is linked, memory sync is on, and the team has actually captured
|
|
579
|
-
* something about this flow. Shared memory an agent has to remember to consult is never consulted,
|
|
580
|
-
* so the verification asks on the agent's behalf — the difference between memory the platform
|
|
581
|
-
* stores and memory the platform uses.
|
|
582
|
-
*
|
|
583
|
-
* Deliberately additive and deliberately small: a verdict whose own result has been pushed below
|
|
584
|
-
* a wall of statements is a worse verdict.
|
|
585
|
-
*/
|
|
586
|
-
knows?: {
|
|
587
|
-
statement: string;
|
|
588
|
-
status: string;
|
|
589
|
-
}[];
|
|
590
|
-
}
|
|
591
209
|
/**
|
|
592
210
|
* The on-disk flow file: diffable, git-tracked, anchor-resolved.
|
|
593
211
|
* The optional `dynamic` field (both `dynamic` + `success` are optional, so a
|
|
@@ -608,6 +226,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
608
226
|
* cannot actually check — flow-classify flags that gap.
|
|
609
227
|
*/
|
|
610
228
|
intent: z.ZodOptional<z.ZodString>;
|
|
229
|
+
/**
|
|
230
|
+
* True when `intent` was built from the steps' expects, not declared by anybody. An auto-saved
|
|
231
|
+
* drive with no declared intent was named by its request path and read as nothing. A built
|
|
232
|
+
* sentence names it, and this flag keeps it out of the intent ledger: it describes the steps, so
|
|
233
|
+
* it can never be a goal the steps then prove.
|
|
234
|
+
*/
|
|
235
|
+
intentDerived: z.ZodOptional<z.ZodBoolean>;
|
|
611
236
|
/**
|
|
612
237
|
* The intent-ledger row this flow discharges — the id in `.reticle/intent.json`.
|
|
613
238
|
*
|
|
@@ -705,13 +330,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
705
330
|
role: z.ZodOptional<z.ZodString>;
|
|
706
331
|
name: z.ZodOptional<z.ZodString>;
|
|
707
332
|
}, "strict", z.ZodTypeAny, {
|
|
333
|
+
name?: string | undefined;
|
|
708
334
|
testid?: string | undefined;
|
|
709
335
|
role?: string | undefined;
|
|
710
|
-
name?: string | undefined;
|
|
711
336
|
}, {
|
|
337
|
+
name?: string | undefined;
|
|
712
338
|
testid?: string | undefined;
|
|
713
339
|
role?: string | undefined;
|
|
714
|
-
name?: string | undefined;
|
|
715
340
|
}>>;
|
|
716
341
|
text: z.ZodOptional<z.ZodObject<{
|
|
717
342
|
contains: z.ZodString;
|
|
@@ -720,13 +345,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
720
345
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
721
346
|
}, "strict", z.ZodTypeAny, {
|
|
722
347
|
contains: string;
|
|
723
|
-
visible?: boolean | undefined;
|
|
724
348
|
scope?: string | undefined;
|
|
349
|
+
visible?: boolean | undefined;
|
|
725
350
|
absent?: boolean | undefined;
|
|
726
351
|
}, {
|
|
727
352
|
contains: string;
|
|
728
|
-
visible?: boolean | undefined;
|
|
729
353
|
scope?: string | undefined;
|
|
354
|
+
visible?: boolean | undefined;
|
|
730
355
|
absent?: boolean | undefined;
|
|
731
356
|
}>>;
|
|
732
357
|
state: z.ZodOptional<z.ZodObject<{
|
|
@@ -760,14 +385,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
760
385
|
equals?: unknown;
|
|
761
386
|
} | undefined;
|
|
762
387
|
element?: {
|
|
388
|
+
name?: string | undefined;
|
|
763
389
|
testid?: string | undefined;
|
|
764
390
|
role?: string | undefined;
|
|
765
|
-
name?: string | undefined;
|
|
766
391
|
} | undefined;
|
|
767
392
|
text?: {
|
|
768
393
|
contains: string;
|
|
769
|
-
visible?: boolean | undefined;
|
|
770
394
|
scope?: string | undefined;
|
|
395
|
+
visible?: boolean | undefined;
|
|
771
396
|
absent?: boolean | undefined;
|
|
772
397
|
} | undefined;
|
|
773
398
|
route?: {
|
|
@@ -795,14 +420,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
795
420
|
equals?: unknown;
|
|
796
421
|
} | undefined;
|
|
797
422
|
element?: {
|
|
423
|
+
name?: string | undefined;
|
|
798
424
|
testid?: string | undefined;
|
|
799
425
|
role?: string | undefined;
|
|
800
|
-
name?: string | undefined;
|
|
801
426
|
} | undefined;
|
|
802
427
|
text?: {
|
|
803
428
|
contains: string;
|
|
804
|
-
visible?: boolean | undefined;
|
|
805
429
|
scope?: string | undefined;
|
|
430
|
+
visible?: boolean | undefined;
|
|
806
431
|
absent?: boolean | undefined;
|
|
807
432
|
} | undefined;
|
|
808
433
|
route?: {
|
|
@@ -828,6 +453,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
828
453
|
scope?: string;
|
|
829
454
|
self?: boolean;
|
|
830
455
|
satisfies?: import("../index.js").PropertyAssertion;
|
|
456
|
+
ignoreCase?: boolean;
|
|
831
457
|
} | {
|
|
832
458
|
kind: typeof PredicateKind.NET;
|
|
833
459
|
method?: string;
|
|
@@ -840,6 +466,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
840
466
|
bodyMatches?: Record<string, unknown>;
|
|
841
467
|
requestBodyContains?: string;
|
|
842
468
|
requestBodyMatches?: Record<string, unknown>;
|
|
469
|
+
repeatable?: boolean;
|
|
843
470
|
} | {
|
|
844
471
|
kind: typeof PredicateKind.ROUTE;
|
|
845
472
|
pathname?: string;
|
|
@@ -872,6 +499,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
872
499
|
} | {
|
|
873
500
|
kind: typeof PredicateKind.SETTLED;
|
|
874
501
|
quietMs?: number;
|
|
502
|
+
channel?: import("../verdict/consequence.js").SettledChannel;
|
|
875
503
|
} | {
|
|
876
504
|
kind: typeof PredicateKind.COMPARE;
|
|
877
505
|
left: import("../verdict/compare-source.js").CompareSource;
|
|
@@ -902,14 +530,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
902
530
|
equals?: unknown;
|
|
903
531
|
} | undefined;
|
|
904
532
|
element?: {
|
|
533
|
+
name?: string | undefined;
|
|
905
534
|
testid?: string | undefined;
|
|
906
535
|
role?: string | undefined;
|
|
907
|
-
name?: string | undefined;
|
|
908
536
|
} | undefined;
|
|
909
537
|
text?: {
|
|
910
538
|
contains: string;
|
|
911
|
-
visible?: boolean | undefined;
|
|
912
539
|
scope?: string | undefined;
|
|
540
|
+
visible?: boolean | undefined;
|
|
913
541
|
absent?: boolean | undefined;
|
|
914
542
|
} | undefined;
|
|
915
543
|
route?: {
|
|
@@ -937,14 +565,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
937
565
|
equals?: unknown;
|
|
938
566
|
} | undefined;
|
|
939
567
|
element?: {
|
|
568
|
+
name?: string | undefined;
|
|
940
569
|
testid?: string | undefined;
|
|
941
570
|
role?: string | undefined;
|
|
942
|
-
name?: string | undefined;
|
|
943
571
|
} | undefined;
|
|
944
572
|
text?: {
|
|
945
573
|
contains: string;
|
|
946
|
-
visible?: boolean | undefined;
|
|
947
574
|
scope?: string | undefined;
|
|
575
|
+
visible?: boolean | undefined;
|
|
948
576
|
absent?: boolean | undefined;
|
|
949
577
|
} | undefined;
|
|
950
578
|
route?: {
|
|
@@ -1003,13 +631,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1003
631
|
role: z.ZodOptional<z.ZodString>;
|
|
1004
632
|
name: z.ZodOptional<z.ZodString>;
|
|
1005
633
|
}, "strict", z.ZodTypeAny, {
|
|
634
|
+
name?: string | undefined;
|
|
1006
635
|
testid?: string | undefined;
|
|
1007
636
|
role?: string | undefined;
|
|
1008
|
-
name?: string | undefined;
|
|
1009
637
|
}, {
|
|
638
|
+
name?: string | undefined;
|
|
1010
639
|
testid?: string | undefined;
|
|
1011
640
|
role?: string | undefined;
|
|
1012
|
-
name?: string | undefined;
|
|
1013
641
|
}>>;
|
|
1014
642
|
text: z.ZodOptional<z.ZodObject<{
|
|
1015
643
|
contains: z.ZodString;
|
|
@@ -1018,13 +646,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1018
646
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1019
647
|
}, "strict", z.ZodTypeAny, {
|
|
1020
648
|
contains: string;
|
|
1021
|
-
visible?: boolean | undefined;
|
|
1022
649
|
scope?: string | undefined;
|
|
650
|
+
visible?: boolean | undefined;
|
|
1023
651
|
absent?: boolean | undefined;
|
|
1024
652
|
}, {
|
|
1025
653
|
contains: string;
|
|
1026
|
-
visible?: boolean | undefined;
|
|
1027
654
|
scope?: string | undefined;
|
|
655
|
+
visible?: boolean | undefined;
|
|
1028
656
|
absent?: boolean | undefined;
|
|
1029
657
|
}>>;
|
|
1030
658
|
state: z.ZodOptional<z.ZodObject<{
|
|
@@ -1058,14 +686,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1058
686
|
equals?: unknown;
|
|
1059
687
|
} | undefined;
|
|
1060
688
|
element?: {
|
|
689
|
+
name?: string | undefined;
|
|
1061
690
|
testid?: string | undefined;
|
|
1062
691
|
role?: string | undefined;
|
|
1063
|
-
name?: string | undefined;
|
|
1064
692
|
} | undefined;
|
|
1065
693
|
text?: {
|
|
1066
694
|
contains: string;
|
|
1067
|
-
visible?: boolean | undefined;
|
|
1068
695
|
scope?: string | undefined;
|
|
696
|
+
visible?: boolean | undefined;
|
|
1069
697
|
absent?: boolean | undefined;
|
|
1070
698
|
} | undefined;
|
|
1071
699
|
route?: {
|
|
@@ -1093,14 +721,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1093
721
|
equals?: unknown;
|
|
1094
722
|
} | undefined;
|
|
1095
723
|
element?: {
|
|
724
|
+
name?: string | undefined;
|
|
1096
725
|
testid?: string | undefined;
|
|
1097
726
|
role?: string | undefined;
|
|
1098
|
-
name?: string | undefined;
|
|
1099
727
|
} | undefined;
|
|
1100
728
|
text?: {
|
|
1101
729
|
contains: string;
|
|
1102
|
-
visible?: boolean | undefined;
|
|
1103
730
|
scope?: string | undefined;
|
|
731
|
+
visible?: boolean | undefined;
|
|
1104
732
|
absent?: boolean | undefined;
|
|
1105
733
|
} | undefined;
|
|
1106
734
|
route?: {
|
|
@@ -1126,6 +754,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1126
754
|
scope?: string;
|
|
1127
755
|
self?: boolean;
|
|
1128
756
|
satisfies?: import("../index.js").PropertyAssertion;
|
|
757
|
+
ignoreCase?: boolean;
|
|
1129
758
|
} | {
|
|
1130
759
|
kind: typeof PredicateKind.NET;
|
|
1131
760
|
method?: string;
|
|
@@ -1138,6 +767,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1138
767
|
bodyMatches?: Record<string, unknown>;
|
|
1139
768
|
requestBodyContains?: string;
|
|
1140
769
|
requestBodyMatches?: Record<string, unknown>;
|
|
770
|
+
repeatable?: boolean;
|
|
1141
771
|
} | {
|
|
1142
772
|
kind: typeof PredicateKind.ROUTE;
|
|
1143
773
|
pathname?: string;
|
|
@@ -1170,6 +800,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1170
800
|
} | {
|
|
1171
801
|
kind: typeof PredicateKind.SETTLED;
|
|
1172
802
|
quietMs?: number;
|
|
803
|
+
channel?: import("../verdict/consequence.js").SettledChannel;
|
|
1173
804
|
} | {
|
|
1174
805
|
kind: typeof PredicateKind.COMPARE;
|
|
1175
806
|
left: import("../verdict/compare-source.js").CompareSource;
|
|
@@ -1200,14 +831,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1200
831
|
equals?: unknown;
|
|
1201
832
|
} | undefined;
|
|
1202
833
|
element?: {
|
|
834
|
+
name?: string | undefined;
|
|
1203
835
|
testid?: string | undefined;
|
|
1204
836
|
role?: string | undefined;
|
|
1205
|
-
name?: string | undefined;
|
|
1206
837
|
} | undefined;
|
|
1207
838
|
text?: {
|
|
1208
839
|
contains: string;
|
|
1209
|
-
visible?: boolean | undefined;
|
|
1210
840
|
scope?: string | undefined;
|
|
841
|
+
visible?: boolean | undefined;
|
|
1211
842
|
absent?: boolean | undefined;
|
|
1212
843
|
} | undefined;
|
|
1213
844
|
route?: {
|
|
@@ -1235,14 +866,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1235
866
|
equals?: unknown;
|
|
1236
867
|
} | undefined;
|
|
1237
868
|
element?: {
|
|
869
|
+
name?: string | undefined;
|
|
1238
870
|
testid?: string | undefined;
|
|
1239
871
|
role?: string | undefined;
|
|
1240
|
-
name?: string | undefined;
|
|
1241
872
|
} | undefined;
|
|
1242
873
|
text?: {
|
|
1243
874
|
contains: string;
|
|
1244
|
-
visible?: boolean | undefined;
|
|
1245
875
|
scope?: string | undefined;
|
|
876
|
+
visible?: boolean | undefined;
|
|
1246
877
|
absent?: boolean | undefined;
|
|
1247
878
|
} | undefined;
|
|
1248
879
|
route?: {
|
|
@@ -1328,13 +959,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1328
959
|
role: z.ZodOptional<z.ZodString>;
|
|
1329
960
|
name: z.ZodOptional<z.ZodString>;
|
|
1330
961
|
}, "strict", z.ZodTypeAny, {
|
|
962
|
+
name?: string | undefined;
|
|
1331
963
|
testid?: string | undefined;
|
|
1332
964
|
role?: string | undefined;
|
|
1333
|
-
name?: string | undefined;
|
|
1334
965
|
}, {
|
|
966
|
+
name?: string | undefined;
|
|
1335
967
|
testid?: string | undefined;
|
|
1336
968
|
role?: string | undefined;
|
|
1337
|
-
name?: string | undefined;
|
|
1338
969
|
}>>;
|
|
1339
970
|
text: z.ZodOptional<z.ZodObject<{
|
|
1340
971
|
contains: z.ZodString;
|
|
@@ -1343,13 +974,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1343
974
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1344
975
|
}, "strict", z.ZodTypeAny, {
|
|
1345
976
|
contains: string;
|
|
1346
|
-
visible?: boolean | undefined;
|
|
1347
977
|
scope?: string | undefined;
|
|
978
|
+
visible?: boolean | undefined;
|
|
1348
979
|
absent?: boolean | undefined;
|
|
1349
980
|
}, {
|
|
1350
981
|
contains: string;
|
|
1351
|
-
visible?: boolean | undefined;
|
|
1352
982
|
scope?: string | undefined;
|
|
983
|
+
visible?: boolean | undefined;
|
|
1353
984
|
absent?: boolean | undefined;
|
|
1354
985
|
}>>;
|
|
1355
986
|
state: z.ZodOptional<z.ZodObject<{
|
|
@@ -1383,14 +1014,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1383
1014
|
equals?: unknown;
|
|
1384
1015
|
} | undefined;
|
|
1385
1016
|
element?: {
|
|
1017
|
+
name?: string | undefined;
|
|
1386
1018
|
testid?: string | undefined;
|
|
1387
1019
|
role?: string | undefined;
|
|
1388
|
-
name?: string | undefined;
|
|
1389
1020
|
} | undefined;
|
|
1390
1021
|
text?: {
|
|
1391
1022
|
contains: string;
|
|
1392
|
-
visible?: boolean | undefined;
|
|
1393
1023
|
scope?: string | undefined;
|
|
1024
|
+
visible?: boolean | undefined;
|
|
1394
1025
|
absent?: boolean | undefined;
|
|
1395
1026
|
} | undefined;
|
|
1396
1027
|
route?: {
|
|
@@ -1418,14 +1049,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1418
1049
|
equals?: unknown;
|
|
1419
1050
|
} | undefined;
|
|
1420
1051
|
element?: {
|
|
1052
|
+
name?: string | undefined;
|
|
1421
1053
|
testid?: string | undefined;
|
|
1422
1054
|
role?: string | undefined;
|
|
1423
|
-
name?: string | undefined;
|
|
1424
1055
|
} | undefined;
|
|
1425
1056
|
text?: {
|
|
1426
1057
|
contains: string;
|
|
1427
|
-
visible?: boolean | undefined;
|
|
1428
1058
|
scope?: string | undefined;
|
|
1059
|
+
visible?: boolean | undefined;
|
|
1429
1060
|
absent?: boolean | undefined;
|
|
1430
1061
|
} | undefined;
|
|
1431
1062
|
route?: {
|
|
@@ -1451,6 +1082,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1451
1082
|
scope?: string;
|
|
1452
1083
|
self?: boolean;
|
|
1453
1084
|
satisfies?: import("../index.js").PropertyAssertion;
|
|
1085
|
+
ignoreCase?: boolean;
|
|
1454
1086
|
} | {
|
|
1455
1087
|
kind: typeof PredicateKind.NET;
|
|
1456
1088
|
method?: string;
|
|
@@ -1463,6 +1095,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1463
1095
|
bodyMatches?: Record<string, unknown>;
|
|
1464
1096
|
requestBodyContains?: string;
|
|
1465
1097
|
requestBodyMatches?: Record<string, unknown>;
|
|
1098
|
+
repeatable?: boolean;
|
|
1466
1099
|
} | {
|
|
1467
1100
|
kind: typeof PredicateKind.ROUTE;
|
|
1468
1101
|
pathname?: string;
|
|
@@ -1495,6 +1128,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1495
1128
|
} | {
|
|
1496
1129
|
kind: typeof PredicateKind.SETTLED;
|
|
1497
1130
|
quietMs?: number;
|
|
1131
|
+
channel?: import("../verdict/consequence.js").SettledChannel;
|
|
1498
1132
|
} | {
|
|
1499
1133
|
kind: typeof PredicateKind.COMPARE;
|
|
1500
1134
|
left: import("../verdict/compare-source.js").CompareSource;
|
|
@@ -1525,14 +1159,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1525
1159
|
equals?: unknown;
|
|
1526
1160
|
} | undefined;
|
|
1527
1161
|
element?: {
|
|
1162
|
+
name?: string | undefined;
|
|
1528
1163
|
testid?: string | undefined;
|
|
1529
1164
|
role?: string | undefined;
|
|
1530
|
-
name?: string | undefined;
|
|
1531
1165
|
} | undefined;
|
|
1532
1166
|
text?: {
|
|
1533
1167
|
contains: string;
|
|
1534
|
-
visible?: boolean | undefined;
|
|
1535
1168
|
scope?: string | undefined;
|
|
1169
|
+
visible?: boolean | undefined;
|
|
1536
1170
|
absent?: boolean | undefined;
|
|
1537
1171
|
} | undefined;
|
|
1538
1172
|
route?: {
|
|
@@ -1553,6 +1187,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1553
1187
|
dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1554
1188
|
kind: z.ZodLiteral<"testid">;
|
|
1555
1189
|
value: z.ZodString;
|
|
1190
|
+
of: z.ZodOptional<z.ZodNumber>;
|
|
1556
1191
|
source: z.ZodOptional<z.ZodObject<{
|
|
1557
1192
|
file: z.ZodString;
|
|
1558
1193
|
line: z.ZodNumber;
|
|
@@ -1574,6 +1209,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1574
1209
|
line: number;
|
|
1575
1210
|
column?: number | undefined;
|
|
1576
1211
|
} | undefined;
|
|
1212
|
+
of?: number | undefined;
|
|
1577
1213
|
}, {
|
|
1578
1214
|
kind: "testid";
|
|
1579
1215
|
value: string;
|
|
@@ -1582,6 +1218,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1582
1218
|
line: number;
|
|
1583
1219
|
column?: number | undefined;
|
|
1584
1220
|
} | undefined;
|
|
1221
|
+
of?: number | undefined;
|
|
1585
1222
|
}>, z.ZodObject<{
|
|
1586
1223
|
kind: z.ZodLiteral<"role">;
|
|
1587
1224
|
role: z.ZodString;
|
|
@@ -1604,11 +1241,11 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1604
1241
|
kind: z.ZodLiteral<"signal">;
|
|
1605
1242
|
name: z.ZodString;
|
|
1606
1243
|
}, "strip", z.ZodTypeAny, {
|
|
1607
|
-
kind: "signal";
|
|
1608
1244
|
name: string;
|
|
1609
|
-
}, {
|
|
1610
1245
|
kind: "signal";
|
|
1246
|
+
}, {
|
|
1611
1247
|
name: string;
|
|
1248
|
+
kind: "signal";
|
|
1612
1249
|
}>, z.ZodObject<{
|
|
1613
1250
|
kind: z.ZodLiteral<"component">;
|
|
1614
1251
|
component: z.ZodOptional<z.ZodString>;
|
|
@@ -1629,9 +1266,9 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1629
1266
|
name: z.ZodOptional<z.ZodString>;
|
|
1630
1267
|
}, "strip", z.ZodTypeAny, {
|
|
1631
1268
|
kind: "component";
|
|
1269
|
+
name?: string | undefined;
|
|
1632
1270
|
role?: string | undefined;
|
|
1633
1271
|
component?: string | undefined;
|
|
1634
|
-
name?: string | undefined;
|
|
1635
1272
|
source?: {
|
|
1636
1273
|
file: string;
|
|
1637
1274
|
line: number;
|
|
@@ -1639,9 +1276,9 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1639
1276
|
} | undefined;
|
|
1640
1277
|
}, {
|
|
1641
1278
|
kind: "component";
|
|
1279
|
+
name?: string | undefined;
|
|
1642
1280
|
role?: string | undefined;
|
|
1643
1281
|
component?: string | undefined;
|
|
1644
|
-
name?: string | undefined;
|
|
1645
1282
|
source?: {
|
|
1646
1283
|
file: string;
|
|
1647
1284
|
line: number;
|
|
@@ -1747,14 +1384,15 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1747
1384
|
until?: string | undefined;
|
|
1748
1385
|
}>>;
|
|
1749
1386
|
}, "strip", z.ZodTypeAny, {
|
|
1750
|
-
steps: FlowStep[];
|
|
1751
1387
|
name: string;
|
|
1388
|
+
steps: FlowStep[];
|
|
1752
1389
|
createdAt: number;
|
|
1753
1390
|
version: number;
|
|
1754
1391
|
intent?: string | undefined;
|
|
1755
1392
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
1756
1393
|
startPath?: string | undefined;
|
|
1757
1394
|
template?: string | undefined;
|
|
1395
|
+
intentDerived?: boolean | undefined;
|
|
1758
1396
|
learned?: {
|
|
1759
1397
|
state: "open" | "guarded";
|
|
1760
1398
|
kind: string;
|
|
@@ -1780,6 +1418,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1780
1418
|
line: number;
|
|
1781
1419
|
column?: number | undefined;
|
|
1782
1420
|
} | undefined;
|
|
1421
|
+
of?: number | undefined;
|
|
1783
1422
|
} | {
|
|
1784
1423
|
kind: "role";
|
|
1785
1424
|
role: string;
|
|
@@ -1787,13 +1426,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1787
1426
|
of?: number | undefined;
|
|
1788
1427
|
nth?: number | undefined;
|
|
1789
1428
|
} | {
|
|
1790
|
-
kind: "signal";
|
|
1791
1429
|
name: string;
|
|
1430
|
+
kind: "signal";
|
|
1792
1431
|
} | {
|
|
1793
1432
|
kind: "component";
|
|
1433
|
+
name?: string | undefined;
|
|
1794
1434
|
role?: string | undefined;
|
|
1795
1435
|
component?: string | undefined;
|
|
1796
|
-
name?: string | undefined;
|
|
1797
1436
|
source?: {
|
|
1798
1437
|
file: string;
|
|
1799
1438
|
line: number;
|
|
@@ -1814,14 +1453,15 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1814
1453
|
until?: string | undefined;
|
|
1815
1454
|
} | undefined;
|
|
1816
1455
|
}, {
|
|
1817
|
-
steps: FlowStep[];
|
|
1818
1456
|
name: string;
|
|
1457
|
+
steps: FlowStep[];
|
|
1819
1458
|
createdAt: number;
|
|
1820
1459
|
version: number;
|
|
1821
1460
|
intent?: string | undefined;
|
|
1822
1461
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
1823
1462
|
startPath?: string | undefined;
|
|
1824
1463
|
template?: string | undefined;
|
|
1464
|
+
intentDerived?: boolean | undefined;
|
|
1825
1465
|
learned?: {
|
|
1826
1466
|
state: "open" | "guarded";
|
|
1827
1467
|
kind: string;
|
|
@@ -1846,14 +1486,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1846
1486
|
equals?: unknown;
|
|
1847
1487
|
} | undefined;
|
|
1848
1488
|
element?: {
|
|
1489
|
+
name?: string | undefined;
|
|
1849
1490
|
testid?: string | undefined;
|
|
1850
1491
|
role?: string | undefined;
|
|
1851
|
-
name?: string | undefined;
|
|
1852
1492
|
} | undefined;
|
|
1853
1493
|
text?: {
|
|
1854
1494
|
contains: string;
|
|
1855
|
-
visible?: boolean | undefined;
|
|
1856
1495
|
scope?: string | undefined;
|
|
1496
|
+
visible?: boolean | undefined;
|
|
1857
1497
|
absent?: boolean | undefined;
|
|
1858
1498
|
} | undefined;
|
|
1859
1499
|
route?: {
|
|
@@ -1882,14 +1522,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1882
1522
|
equals?: unknown;
|
|
1883
1523
|
} | undefined;
|
|
1884
1524
|
element?: {
|
|
1525
|
+
name?: string | undefined;
|
|
1885
1526
|
testid?: string | undefined;
|
|
1886
1527
|
role?: string | undefined;
|
|
1887
|
-
name?: string | undefined;
|
|
1888
1528
|
} | undefined;
|
|
1889
1529
|
text?: {
|
|
1890
1530
|
contains: string;
|
|
1891
|
-
visible?: boolean | undefined;
|
|
1892
1531
|
scope?: string | undefined;
|
|
1532
|
+
visible?: boolean | undefined;
|
|
1893
1533
|
absent?: boolean | undefined;
|
|
1894
1534
|
} | undefined;
|
|
1895
1535
|
route?: {
|
|
@@ -1923,14 +1563,14 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1923
1563
|
equals?: unknown;
|
|
1924
1564
|
} | undefined;
|
|
1925
1565
|
element?: {
|
|
1566
|
+
name?: string | undefined;
|
|
1926
1567
|
testid?: string | undefined;
|
|
1927
1568
|
role?: string | undefined;
|
|
1928
|
-
name?: string | undefined;
|
|
1929
1569
|
} | undefined;
|
|
1930
1570
|
text?: {
|
|
1931
1571
|
contains: string;
|
|
1932
|
-
visible?: boolean | undefined;
|
|
1933
1572
|
scope?: string | undefined;
|
|
1573
|
+
visible?: boolean | undefined;
|
|
1934
1574
|
absent?: boolean | undefined;
|
|
1935
1575
|
} | undefined;
|
|
1936
1576
|
route?: {
|
|
@@ -1952,6 +1592,7 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1952
1592
|
line: number;
|
|
1953
1593
|
column?: number | undefined;
|
|
1954
1594
|
} | undefined;
|
|
1595
|
+
of?: number | undefined;
|
|
1955
1596
|
} | {
|
|
1956
1597
|
kind: "role";
|
|
1957
1598
|
role: string;
|
|
@@ -1959,13 +1600,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
1959
1600
|
of?: number | undefined;
|
|
1960
1601
|
nth?: number | undefined;
|
|
1961
1602
|
} | {
|
|
1962
|
-
kind: "signal";
|
|
1963
1603
|
name: string;
|
|
1604
|
+
kind: "signal";
|
|
1964
1605
|
} | {
|
|
1965
1606
|
kind: "component";
|
|
1607
|
+
name?: string | undefined;
|
|
1966
1608
|
role?: string | undefined;
|
|
1967
1609
|
component?: string | undefined;
|
|
1968
|
-
name?: string | undefined;
|
|
1969
1610
|
source?: {
|
|
1970
1611
|
file: string;
|
|
1971
1612
|
line: number;
|
|
@@ -2026,6 +1667,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2026
1667
|
* cannot actually check — flow-classify flags that gap.
|
|
2027
1668
|
*/
|
|
2028
1669
|
intent: z.ZodOptional<z.ZodString>;
|
|
1670
|
+
/**
|
|
1671
|
+
* True when `intent` was built from the steps' expects, not declared by anybody. An auto-saved
|
|
1672
|
+
* drive with no declared intent was named by its request path and read as nothing. A built
|
|
1673
|
+
* sentence names it, and this flag keeps it out of the intent ledger: it describes the steps, so
|
|
1674
|
+
* it can never be a goal the steps then prove.
|
|
1675
|
+
*/
|
|
1676
|
+
intentDerived: z.ZodOptional<z.ZodBoolean>;
|
|
2029
1677
|
/**
|
|
2030
1678
|
* The intent-ledger row this flow discharges — the id in `.reticle/intent.json`.
|
|
2031
1679
|
*
|
|
@@ -2123,13 +1771,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2123
1771
|
role: z.ZodOptional<z.ZodString>;
|
|
2124
1772
|
name: z.ZodOptional<z.ZodString>;
|
|
2125
1773
|
}, "strict", z.ZodTypeAny, {
|
|
1774
|
+
name?: string | undefined;
|
|
2126
1775
|
testid?: string | undefined;
|
|
2127
1776
|
role?: string | undefined;
|
|
2128
|
-
name?: string | undefined;
|
|
2129
1777
|
}, {
|
|
1778
|
+
name?: string | undefined;
|
|
2130
1779
|
testid?: string | undefined;
|
|
2131
1780
|
role?: string | undefined;
|
|
2132
|
-
name?: string | undefined;
|
|
2133
1781
|
}>>;
|
|
2134
1782
|
text: z.ZodOptional<z.ZodObject<{
|
|
2135
1783
|
contains: z.ZodString;
|
|
@@ -2138,13 +1786,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2138
1786
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
2139
1787
|
}, "strict", z.ZodTypeAny, {
|
|
2140
1788
|
contains: string;
|
|
2141
|
-
visible?: boolean | undefined;
|
|
2142
1789
|
scope?: string | undefined;
|
|
1790
|
+
visible?: boolean | undefined;
|
|
2143
1791
|
absent?: boolean | undefined;
|
|
2144
1792
|
}, {
|
|
2145
1793
|
contains: string;
|
|
2146
|
-
visible?: boolean | undefined;
|
|
2147
1794
|
scope?: string | undefined;
|
|
1795
|
+
visible?: boolean | undefined;
|
|
2148
1796
|
absent?: boolean | undefined;
|
|
2149
1797
|
}>>;
|
|
2150
1798
|
state: z.ZodOptional<z.ZodObject<{
|
|
@@ -2178,14 +1826,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2178
1826
|
equals?: unknown;
|
|
2179
1827
|
} | undefined;
|
|
2180
1828
|
element?: {
|
|
1829
|
+
name?: string | undefined;
|
|
2181
1830
|
testid?: string | undefined;
|
|
2182
1831
|
role?: string | undefined;
|
|
2183
|
-
name?: string | undefined;
|
|
2184
1832
|
} | undefined;
|
|
2185
1833
|
text?: {
|
|
2186
1834
|
contains: string;
|
|
2187
|
-
visible?: boolean | undefined;
|
|
2188
1835
|
scope?: string | undefined;
|
|
1836
|
+
visible?: boolean | undefined;
|
|
2189
1837
|
absent?: boolean | undefined;
|
|
2190
1838
|
} | undefined;
|
|
2191
1839
|
route?: {
|
|
@@ -2213,14 +1861,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2213
1861
|
equals?: unknown;
|
|
2214
1862
|
} | undefined;
|
|
2215
1863
|
element?: {
|
|
1864
|
+
name?: string | undefined;
|
|
2216
1865
|
testid?: string | undefined;
|
|
2217
1866
|
role?: string | undefined;
|
|
2218
|
-
name?: string | undefined;
|
|
2219
1867
|
} | undefined;
|
|
2220
1868
|
text?: {
|
|
2221
1869
|
contains: string;
|
|
2222
|
-
visible?: boolean | undefined;
|
|
2223
1870
|
scope?: string | undefined;
|
|
1871
|
+
visible?: boolean | undefined;
|
|
2224
1872
|
absent?: boolean | undefined;
|
|
2225
1873
|
} | undefined;
|
|
2226
1874
|
route?: {
|
|
@@ -2246,6 +1894,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2246
1894
|
scope?: string;
|
|
2247
1895
|
self?: boolean;
|
|
2248
1896
|
satisfies?: import("../index.js").PropertyAssertion;
|
|
1897
|
+
ignoreCase?: boolean;
|
|
2249
1898
|
} | {
|
|
2250
1899
|
kind: typeof PredicateKind.NET;
|
|
2251
1900
|
method?: string;
|
|
@@ -2258,6 +1907,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2258
1907
|
bodyMatches?: Record<string, unknown>;
|
|
2259
1908
|
requestBodyContains?: string;
|
|
2260
1909
|
requestBodyMatches?: Record<string, unknown>;
|
|
1910
|
+
repeatable?: boolean;
|
|
2261
1911
|
} | {
|
|
2262
1912
|
kind: typeof PredicateKind.ROUTE;
|
|
2263
1913
|
pathname?: string;
|
|
@@ -2290,6 +1940,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2290
1940
|
} | {
|
|
2291
1941
|
kind: typeof PredicateKind.SETTLED;
|
|
2292
1942
|
quietMs?: number;
|
|
1943
|
+
channel?: import("../verdict/consequence.js").SettledChannel;
|
|
2293
1944
|
} | {
|
|
2294
1945
|
kind: typeof PredicateKind.COMPARE;
|
|
2295
1946
|
left: import("../verdict/compare-source.js").CompareSource;
|
|
@@ -2320,14 +1971,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2320
1971
|
equals?: unknown;
|
|
2321
1972
|
} | undefined;
|
|
2322
1973
|
element?: {
|
|
1974
|
+
name?: string | undefined;
|
|
2323
1975
|
testid?: string | undefined;
|
|
2324
1976
|
role?: string | undefined;
|
|
2325
|
-
name?: string | undefined;
|
|
2326
1977
|
} | undefined;
|
|
2327
1978
|
text?: {
|
|
2328
1979
|
contains: string;
|
|
2329
|
-
visible?: boolean | undefined;
|
|
2330
1980
|
scope?: string | undefined;
|
|
1981
|
+
visible?: boolean | undefined;
|
|
2331
1982
|
absent?: boolean | undefined;
|
|
2332
1983
|
} | undefined;
|
|
2333
1984
|
route?: {
|
|
@@ -2355,14 +2006,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2355
2006
|
equals?: unknown;
|
|
2356
2007
|
} | undefined;
|
|
2357
2008
|
element?: {
|
|
2009
|
+
name?: string | undefined;
|
|
2358
2010
|
testid?: string | undefined;
|
|
2359
2011
|
role?: string | undefined;
|
|
2360
|
-
name?: string | undefined;
|
|
2361
2012
|
} | undefined;
|
|
2362
2013
|
text?: {
|
|
2363
2014
|
contains: string;
|
|
2364
|
-
visible?: boolean | undefined;
|
|
2365
2015
|
scope?: string | undefined;
|
|
2016
|
+
visible?: boolean | undefined;
|
|
2366
2017
|
absent?: boolean | undefined;
|
|
2367
2018
|
} | undefined;
|
|
2368
2019
|
route?: {
|
|
@@ -2421,13 +2072,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2421
2072
|
role: z.ZodOptional<z.ZodString>;
|
|
2422
2073
|
name: z.ZodOptional<z.ZodString>;
|
|
2423
2074
|
}, "strict", z.ZodTypeAny, {
|
|
2075
|
+
name?: string | undefined;
|
|
2424
2076
|
testid?: string | undefined;
|
|
2425
2077
|
role?: string | undefined;
|
|
2426
|
-
name?: string | undefined;
|
|
2427
2078
|
}, {
|
|
2079
|
+
name?: string | undefined;
|
|
2428
2080
|
testid?: string | undefined;
|
|
2429
2081
|
role?: string | undefined;
|
|
2430
|
-
name?: string | undefined;
|
|
2431
2082
|
}>>;
|
|
2432
2083
|
text: z.ZodOptional<z.ZodObject<{
|
|
2433
2084
|
contains: z.ZodString;
|
|
@@ -2436,13 +2087,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2436
2087
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
2437
2088
|
}, "strict", z.ZodTypeAny, {
|
|
2438
2089
|
contains: string;
|
|
2439
|
-
visible?: boolean | undefined;
|
|
2440
2090
|
scope?: string | undefined;
|
|
2091
|
+
visible?: boolean | undefined;
|
|
2441
2092
|
absent?: boolean | undefined;
|
|
2442
2093
|
}, {
|
|
2443
2094
|
contains: string;
|
|
2444
|
-
visible?: boolean | undefined;
|
|
2445
2095
|
scope?: string | undefined;
|
|
2096
|
+
visible?: boolean | undefined;
|
|
2446
2097
|
absent?: boolean | undefined;
|
|
2447
2098
|
}>>;
|
|
2448
2099
|
state: z.ZodOptional<z.ZodObject<{
|
|
@@ -2476,14 +2127,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2476
2127
|
equals?: unknown;
|
|
2477
2128
|
} | undefined;
|
|
2478
2129
|
element?: {
|
|
2130
|
+
name?: string | undefined;
|
|
2479
2131
|
testid?: string | undefined;
|
|
2480
2132
|
role?: string | undefined;
|
|
2481
|
-
name?: string | undefined;
|
|
2482
2133
|
} | undefined;
|
|
2483
2134
|
text?: {
|
|
2484
2135
|
contains: string;
|
|
2485
|
-
visible?: boolean | undefined;
|
|
2486
2136
|
scope?: string | undefined;
|
|
2137
|
+
visible?: boolean | undefined;
|
|
2487
2138
|
absent?: boolean | undefined;
|
|
2488
2139
|
} | undefined;
|
|
2489
2140
|
route?: {
|
|
@@ -2511,14 +2162,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2511
2162
|
equals?: unknown;
|
|
2512
2163
|
} | undefined;
|
|
2513
2164
|
element?: {
|
|
2165
|
+
name?: string | undefined;
|
|
2514
2166
|
testid?: string | undefined;
|
|
2515
2167
|
role?: string | undefined;
|
|
2516
|
-
name?: string | undefined;
|
|
2517
2168
|
} | undefined;
|
|
2518
2169
|
text?: {
|
|
2519
2170
|
contains: string;
|
|
2520
|
-
visible?: boolean | undefined;
|
|
2521
2171
|
scope?: string | undefined;
|
|
2172
|
+
visible?: boolean | undefined;
|
|
2522
2173
|
absent?: boolean | undefined;
|
|
2523
2174
|
} | undefined;
|
|
2524
2175
|
route?: {
|
|
@@ -2544,6 +2195,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2544
2195
|
scope?: string;
|
|
2545
2196
|
self?: boolean;
|
|
2546
2197
|
satisfies?: import("../index.js").PropertyAssertion;
|
|
2198
|
+
ignoreCase?: boolean;
|
|
2547
2199
|
} | {
|
|
2548
2200
|
kind: typeof PredicateKind.NET;
|
|
2549
2201
|
method?: string;
|
|
@@ -2556,6 +2208,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2556
2208
|
bodyMatches?: Record<string, unknown>;
|
|
2557
2209
|
requestBodyContains?: string;
|
|
2558
2210
|
requestBodyMatches?: Record<string, unknown>;
|
|
2211
|
+
repeatable?: boolean;
|
|
2559
2212
|
} | {
|
|
2560
2213
|
kind: typeof PredicateKind.ROUTE;
|
|
2561
2214
|
pathname?: string;
|
|
@@ -2588,6 +2241,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2588
2241
|
} | {
|
|
2589
2242
|
kind: typeof PredicateKind.SETTLED;
|
|
2590
2243
|
quietMs?: number;
|
|
2244
|
+
channel?: import("../verdict/consequence.js").SettledChannel;
|
|
2591
2245
|
} | {
|
|
2592
2246
|
kind: typeof PredicateKind.COMPARE;
|
|
2593
2247
|
left: import("../verdict/compare-source.js").CompareSource;
|
|
@@ -2618,14 +2272,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2618
2272
|
equals?: unknown;
|
|
2619
2273
|
} | undefined;
|
|
2620
2274
|
element?: {
|
|
2275
|
+
name?: string | undefined;
|
|
2621
2276
|
testid?: string | undefined;
|
|
2622
2277
|
role?: string | undefined;
|
|
2623
|
-
name?: string | undefined;
|
|
2624
2278
|
} | undefined;
|
|
2625
2279
|
text?: {
|
|
2626
2280
|
contains: string;
|
|
2627
|
-
visible?: boolean | undefined;
|
|
2628
2281
|
scope?: string | undefined;
|
|
2282
|
+
visible?: boolean | undefined;
|
|
2629
2283
|
absent?: boolean | undefined;
|
|
2630
2284
|
} | undefined;
|
|
2631
2285
|
route?: {
|
|
@@ -2653,14 +2307,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2653
2307
|
equals?: unknown;
|
|
2654
2308
|
} | undefined;
|
|
2655
2309
|
element?: {
|
|
2310
|
+
name?: string | undefined;
|
|
2656
2311
|
testid?: string | undefined;
|
|
2657
2312
|
role?: string | undefined;
|
|
2658
|
-
name?: string | undefined;
|
|
2659
2313
|
} | undefined;
|
|
2660
2314
|
text?: {
|
|
2661
2315
|
contains: string;
|
|
2662
|
-
visible?: boolean | undefined;
|
|
2663
2316
|
scope?: string | undefined;
|
|
2317
|
+
visible?: boolean | undefined;
|
|
2664
2318
|
absent?: boolean | undefined;
|
|
2665
2319
|
} | undefined;
|
|
2666
2320
|
route?: {
|
|
@@ -2746,13 +2400,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2746
2400
|
role: z.ZodOptional<z.ZodString>;
|
|
2747
2401
|
name: z.ZodOptional<z.ZodString>;
|
|
2748
2402
|
}, "strict", z.ZodTypeAny, {
|
|
2403
|
+
name?: string | undefined;
|
|
2749
2404
|
testid?: string | undefined;
|
|
2750
2405
|
role?: string | undefined;
|
|
2751
|
-
name?: string | undefined;
|
|
2752
2406
|
}, {
|
|
2407
|
+
name?: string | undefined;
|
|
2753
2408
|
testid?: string | undefined;
|
|
2754
2409
|
role?: string | undefined;
|
|
2755
|
-
name?: string | undefined;
|
|
2756
2410
|
}>>;
|
|
2757
2411
|
text: z.ZodOptional<z.ZodObject<{
|
|
2758
2412
|
contains: z.ZodString;
|
|
@@ -2761,13 +2415,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2761
2415
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
2762
2416
|
}, "strict", z.ZodTypeAny, {
|
|
2763
2417
|
contains: string;
|
|
2764
|
-
visible?: boolean | undefined;
|
|
2765
2418
|
scope?: string | undefined;
|
|
2419
|
+
visible?: boolean | undefined;
|
|
2766
2420
|
absent?: boolean | undefined;
|
|
2767
2421
|
}, {
|
|
2768
2422
|
contains: string;
|
|
2769
|
-
visible?: boolean | undefined;
|
|
2770
2423
|
scope?: string | undefined;
|
|
2424
|
+
visible?: boolean | undefined;
|
|
2771
2425
|
absent?: boolean | undefined;
|
|
2772
2426
|
}>>;
|
|
2773
2427
|
state: z.ZodOptional<z.ZodObject<{
|
|
@@ -2801,14 +2455,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2801
2455
|
equals?: unknown;
|
|
2802
2456
|
} | undefined;
|
|
2803
2457
|
element?: {
|
|
2458
|
+
name?: string | undefined;
|
|
2804
2459
|
testid?: string | undefined;
|
|
2805
2460
|
role?: string | undefined;
|
|
2806
|
-
name?: string | undefined;
|
|
2807
2461
|
} | undefined;
|
|
2808
2462
|
text?: {
|
|
2809
2463
|
contains: string;
|
|
2810
|
-
visible?: boolean | undefined;
|
|
2811
2464
|
scope?: string | undefined;
|
|
2465
|
+
visible?: boolean | undefined;
|
|
2812
2466
|
absent?: boolean | undefined;
|
|
2813
2467
|
} | undefined;
|
|
2814
2468
|
route?: {
|
|
@@ -2836,14 +2490,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2836
2490
|
equals?: unknown;
|
|
2837
2491
|
} | undefined;
|
|
2838
2492
|
element?: {
|
|
2493
|
+
name?: string | undefined;
|
|
2839
2494
|
testid?: string | undefined;
|
|
2840
2495
|
role?: string | undefined;
|
|
2841
|
-
name?: string | undefined;
|
|
2842
2496
|
} | undefined;
|
|
2843
2497
|
text?: {
|
|
2844
2498
|
contains: string;
|
|
2845
|
-
visible?: boolean | undefined;
|
|
2846
2499
|
scope?: string | undefined;
|
|
2500
|
+
visible?: boolean | undefined;
|
|
2847
2501
|
absent?: boolean | undefined;
|
|
2848
2502
|
} | undefined;
|
|
2849
2503
|
route?: {
|
|
@@ -2869,6 +2523,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2869
2523
|
scope?: string;
|
|
2870
2524
|
self?: boolean;
|
|
2871
2525
|
satisfies?: import("../index.js").PropertyAssertion;
|
|
2526
|
+
ignoreCase?: boolean;
|
|
2872
2527
|
} | {
|
|
2873
2528
|
kind: typeof PredicateKind.NET;
|
|
2874
2529
|
method?: string;
|
|
@@ -2881,6 +2536,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2881
2536
|
bodyMatches?: Record<string, unknown>;
|
|
2882
2537
|
requestBodyContains?: string;
|
|
2883
2538
|
requestBodyMatches?: Record<string, unknown>;
|
|
2539
|
+
repeatable?: boolean;
|
|
2884
2540
|
} | {
|
|
2885
2541
|
kind: typeof PredicateKind.ROUTE;
|
|
2886
2542
|
pathname?: string;
|
|
@@ -2913,6 +2569,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2913
2569
|
} | {
|
|
2914
2570
|
kind: typeof PredicateKind.SETTLED;
|
|
2915
2571
|
quietMs?: number;
|
|
2572
|
+
channel?: import("../verdict/consequence.js").SettledChannel;
|
|
2916
2573
|
} | {
|
|
2917
2574
|
kind: typeof PredicateKind.COMPARE;
|
|
2918
2575
|
left: import("../verdict/compare-source.js").CompareSource;
|
|
@@ -2943,14 +2600,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2943
2600
|
equals?: unknown;
|
|
2944
2601
|
} | undefined;
|
|
2945
2602
|
element?: {
|
|
2603
|
+
name?: string | undefined;
|
|
2946
2604
|
testid?: string | undefined;
|
|
2947
2605
|
role?: string | undefined;
|
|
2948
|
-
name?: string | undefined;
|
|
2949
2606
|
} | undefined;
|
|
2950
2607
|
text?: {
|
|
2951
2608
|
contains: string;
|
|
2952
|
-
visible?: boolean | undefined;
|
|
2953
2609
|
scope?: string | undefined;
|
|
2610
|
+
visible?: boolean | undefined;
|
|
2954
2611
|
absent?: boolean | undefined;
|
|
2955
2612
|
} | undefined;
|
|
2956
2613
|
route?: {
|
|
@@ -2971,6 +2628,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2971
2628
|
dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2972
2629
|
kind: z.ZodLiteral<"testid">;
|
|
2973
2630
|
value: z.ZodString;
|
|
2631
|
+
of: z.ZodOptional<z.ZodNumber>;
|
|
2974
2632
|
source: z.ZodOptional<z.ZodObject<{
|
|
2975
2633
|
file: z.ZodString;
|
|
2976
2634
|
line: z.ZodNumber;
|
|
@@ -2992,6 +2650,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
2992
2650
|
line: number;
|
|
2993
2651
|
column?: number | undefined;
|
|
2994
2652
|
} | undefined;
|
|
2653
|
+
of?: number | undefined;
|
|
2995
2654
|
}, {
|
|
2996
2655
|
kind: "testid";
|
|
2997
2656
|
value: string;
|
|
@@ -3000,6 +2659,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3000
2659
|
line: number;
|
|
3001
2660
|
column?: number | undefined;
|
|
3002
2661
|
} | undefined;
|
|
2662
|
+
of?: number | undefined;
|
|
3003
2663
|
}>, z.ZodObject<{
|
|
3004
2664
|
kind: z.ZodLiteral<"role">;
|
|
3005
2665
|
role: z.ZodString;
|
|
@@ -3022,11 +2682,11 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3022
2682
|
kind: z.ZodLiteral<"signal">;
|
|
3023
2683
|
name: z.ZodString;
|
|
3024
2684
|
}, "strip", z.ZodTypeAny, {
|
|
3025
|
-
kind: "signal";
|
|
3026
2685
|
name: string;
|
|
3027
|
-
}, {
|
|
3028
2686
|
kind: "signal";
|
|
2687
|
+
}, {
|
|
3029
2688
|
name: string;
|
|
2689
|
+
kind: "signal";
|
|
3030
2690
|
}>, z.ZodObject<{
|
|
3031
2691
|
kind: z.ZodLiteral<"component">;
|
|
3032
2692
|
component: z.ZodOptional<z.ZodString>;
|
|
@@ -3047,9 +2707,9 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3047
2707
|
name: z.ZodOptional<z.ZodString>;
|
|
3048
2708
|
}, "strip", z.ZodTypeAny, {
|
|
3049
2709
|
kind: "component";
|
|
2710
|
+
name?: string | undefined;
|
|
3050
2711
|
role?: string | undefined;
|
|
3051
2712
|
component?: string | undefined;
|
|
3052
|
-
name?: string | undefined;
|
|
3053
2713
|
source?: {
|
|
3054
2714
|
file: string;
|
|
3055
2715
|
line: number;
|
|
@@ -3057,9 +2717,9 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3057
2717
|
} | undefined;
|
|
3058
2718
|
}, {
|
|
3059
2719
|
kind: "component";
|
|
2720
|
+
name?: string | undefined;
|
|
3060
2721
|
role?: string | undefined;
|
|
3061
2722
|
component?: string | undefined;
|
|
3062
|
-
name?: string | undefined;
|
|
3063
2723
|
source?: {
|
|
3064
2724
|
file: string;
|
|
3065
2725
|
line: number;
|
|
@@ -3165,14 +2825,15 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3165
2825
|
until?: string | undefined;
|
|
3166
2826
|
}>>;
|
|
3167
2827
|
}, "strip", z.ZodTypeAny, {
|
|
3168
|
-
steps: FlowStep[];
|
|
3169
2828
|
name: string;
|
|
2829
|
+
steps: FlowStep[];
|
|
3170
2830
|
createdAt: number;
|
|
3171
2831
|
version: number;
|
|
3172
2832
|
intent?: string | undefined;
|
|
3173
2833
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3174
2834
|
startPath?: string | undefined;
|
|
3175
2835
|
template?: string | undefined;
|
|
2836
|
+
intentDerived?: boolean | undefined;
|
|
3176
2837
|
learned?: {
|
|
3177
2838
|
state: "open" | "guarded";
|
|
3178
2839
|
kind: string;
|
|
@@ -3198,6 +2859,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3198
2859
|
line: number;
|
|
3199
2860
|
column?: number | undefined;
|
|
3200
2861
|
} | undefined;
|
|
2862
|
+
of?: number | undefined;
|
|
3201
2863
|
} | {
|
|
3202
2864
|
kind: "role";
|
|
3203
2865
|
role: string;
|
|
@@ -3205,13 +2867,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3205
2867
|
of?: number | undefined;
|
|
3206
2868
|
nth?: number | undefined;
|
|
3207
2869
|
} | {
|
|
3208
|
-
kind: "signal";
|
|
3209
2870
|
name: string;
|
|
2871
|
+
kind: "signal";
|
|
3210
2872
|
} | {
|
|
3211
2873
|
kind: "component";
|
|
2874
|
+
name?: string | undefined;
|
|
3212
2875
|
role?: string | undefined;
|
|
3213
2876
|
component?: string | undefined;
|
|
3214
|
-
name?: string | undefined;
|
|
3215
2877
|
source?: {
|
|
3216
2878
|
file: string;
|
|
3217
2879
|
line: number;
|
|
@@ -3232,14 +2894,15 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3232
2894
|
until?: string | undefined;
|
|
3233
2895
|
} | undefined;
|
|
3234
2896
|
}, {
|
|
3235
|
-
steps: FlowStep[];
|
|
3236
2897
|
name: string;
|
|
2898
|
+
steps: FlowStep[];
|
|
3237
2899
|
createdAt: number;
|
|
3238
2900
|
version: number;
|
|
3239
2901
|
intent?: string | undefined;
|
|
3240
2902
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3241
2903
|
startPath?: string | undefined;
|
|
3242
2904
|
template?: string | undefined;
|
|
2905
|
+
intentDerived?: boolean | undefined;
|
|
3243
2906
|
learned?: {
|
|
3244
2907
|
state: "open" | "guarded";
|
|
3245
2908
|
kind: string;
|
|
@@ -3264,14 +2927,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3264
2927
|
equals?: unknown;
|
|
3265
2928
|
} | undefined;
|
|
3266
2929
|
element?: {
|
|
2930
|
+
name?: string | undefined;
|
|
3267
2931
|
testid?: string | undefined;
|
|
3268
2932
|
role?: string | undefined;
|
|
3269
|
-
name?: string | undefined;
|
|
3270
2933
|
} | undefined;
|
|
3271
2934
|
text?: {
|
|
3272
2935
|
contains: string;
|
|
3273
|
-
visible?: boolean | undefined;
|
|
3274
2936
|
scope?: string | undefined;
|
|
2937
|
+
visible?: boolean | undefined;
|
|
3275
2938
|
absent?: boolean | undefined;
|
|
3276
2939
|
} | undefined;
|
|
3277
2940
|
route?: {
|
|
@@ -3300,14 +2963,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3300
2963
|
equals?: unknown;
|
|
3301
2964
|
} | undefined;
|
|
3302
2965
|
element?: {
|
|
2966
|
+
name?: string | undefined;
|
|
3303
2967
|
testid?: string | undefined;
|
|
3304
2968
|
role?: string | undefined;
|
|
3305
|
-
name?: string | undefined;
|
|
3306
2969
|
} | undefined;
|
|
3307
2970
|
text?: {
|
|
3308
2971
|
contains: string;
|
|
3309
|
-
visible?: boolean | undefined;
|
|
3310
2972
|
scope?: string | undefined;
|
|
2973
|
+
visible?: boolean | undefined;
|
|
3311
2974
|
absent?: boolean | undefined;
|
|
3312
2975
|
} | undefined;
|
|
3313
2976
|
route?: {
|
|
@@ -3341,14 +3004,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3341
3004
|
equals?: unknown;
|
|
3342
3005
|
} | undefined;
|
|
3343
3006
|
element?: {
|
|
3007
|
+
name?: string | undefined;
|
|
3344
3008
|
testid?: string | undefined;
|
|
3345
3009
|
role?: string | undefined;
|
|
3346
|
-
name?: string | undefined;
|
|
3347
3010
|
} | undefined;
|
|
3348
3011
|
text?: {
|
|
3349
3012
|
contains: string;
|
|
3350
|
-
visible?: boolean | undefined;
|
|
3351
3013
|
scope?: string | undefined;
|
|
3014
|
+
visible?: boolean | undefined;
|
|
3352
3015
|
absent?: boolean | undefined;
|
|
3353
3016
|
} | undefined;
|
|
3354
3017
|
route?: {
|
|
@@ -3370,6 +3033,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3370
3033
|
line: number;
|
|
3371
3034
|
column?: number | undefined;
|
|
3372
3035
|
} | undefined;
|
|
3036
|
+
of?: number | undefined;
|
|
3373
3037
|
} | {
|
|
3374
3038
|
kind: "role";
|
|
3375
3039
|
role: string;
|
|
@@ -3377,13 +3041,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3377
3041
|
of?: number | undefined;
|
|
3378
3042
|
nth?: number | undefined;
|
|
3379
3043
|
} | {
|
|
3380
|
-
kind: "signal";
|
|
3381
3044
|
name: string;
|
|
3045
|
+
kind: "signal";
|
|
3382
3046
|
} | {
|
|
3383
3047
|
kind: "component";
|
|
3048
|
+
name?: string | undefined;
|
|
3384
3049
|
role?: string | undefined;
|
|
3385
3050
|
component?: string | undefined;
|
|
3386
|
-
name?: string | undefined;
|
|
3387
3051
|
source?: {
|
|
3388
3052
|
file: string;
|
|
3389
3053
|
line: number;
|
|
@@ -3405,15 +3069,17 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3405
3069
|
} | undefined;
|
|
3406
3070
|
}>;
|
|
3407
3071
|
}, "strip", z.ZodTypeAny, {
|
|
3072
|
+
name: string;
|
|
3408
3073
|
flow: {
|
|
3409
|
-
steps: FlowStep[];
|
|
3410
3074
|
name: string;
|
|
3075
|
+
steps: FlowStep[];
|
|
3411
3076
|
createdAt: number;
|
|
3412
3077
|
version: number;
|
|
3413
3078
|
intent?: string | undefined;
|
|
3414
3079
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3415
3080
|
startPath?: string | undefined;
|
|
3416
3081
|
template?: string | undefined;
|
|
3082
|
+
intentDerived?: boolean | undefined;
|
|
3417
3083
|
learned?: {
|
|
3418
3084
|
state: "open" | "guarded";
|
|
3419
3085
|
kind: string;
|
|
@@ -3439,6 +3105,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3439
3105
|
line: number;
|
|
3440
3106
|
column?: number | undefined;
|
|
3441
3107
|
} | undefined;
|
|
3108
|
+
of?: number | undefined;
|
|
3442
3109
|
} | {
|
|
3443
3110
|
kind: "role";
|
|
3444
3111
|
role: string;
|
|
@@ -3446,13 +3113,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3446
3113
|
of?: number | undefined;
|
|
3447
3114
|
nth?: number | undefined;
|
|
3448
3115
|
} | {
|
|
3449
|
-
kind: "signal";
|
|
3450
3116
|
name: string;
|
|
3117
|
+
kind: "signal";
|
|
3451
3118
|
} | {
|
|
3452
3119
|
kind: "component";
|
|
3120
|
+
name?: string | undefined;
|
|
3453
3121
|
role?: string | undefined;
|
|
3454
3122
|
component?: string | undefined;
|
|
3455
|
-
name?: string | undefined;
|
|
3456
3123
|
source?: {
|
|
3457
3124
|
file: string;
|
|
3458
3125
|
line: number;
|
|
@@ -3473,17 +3140,18 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3473
3140
|
until?: string | undefined;
|
|
3474
3141
|
} | undefined;
|
|
3475
3142
|
};
|
|
3476
|
-
name: string;
|
|
3477
3143
|
}, {
|
|
3144
|
+
name: string;
|
|
3478
3145
|
flow: {
|
|
3479
|
-
steps: FlowStep[];
|
|
3480
3146
|
name: string;
|
|
3147
|
+
steps: FlowStep[];
|
|
3481
3148
|
createdAt: number;
|
|
3482
3149
|
version: number;
|
|
3483
3150
|
intent?: string | undefined;
|
|
3484
3151
|
status?: "active" | "quarantined" | "draft" | undefined;
|
|
3485
3152
|
startPath?: string | undefined;
|
|
3486
3153
|
template?: string | undefined;
|
|
3154
|
+
intentDerived?: boolean | undefined;
|
|
3487
3155
|
learned?: {
|
|
3488
3156
|
state: "open" | "guarded";
|
|
3489
3157
|
kind: string;
|
|
@@ -3508,14 +3176,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3508
3176
|
equals?: unknown;
|
|
3509
3177
|
} | undefined;
|
|
3510
3178
|
element?: {
|
|
3179
|
+
name?: string | undefined;
|
|
3511
3180
|
testid?: string | undefined;
|
|
3512
3181
|
role?: string | undefined;
|
|
3513
|
-
name?: string | undefined;
|
|
3514
3182
|
} | undefined;
|
|
3515
3183
|
text?: {
|
|
3516
3184
|
contains: string;
|
|
3517
|
-
visible?: boolean | undefined;
|
|
3518
3185
|
scope?: string | undefined;
|
|
3186
|
+
visible?: boolean | undefined;
|
|
3519
3187
|
absent?: boolean | undefined;
|
|
3520
3188
|
} | undefined;
|
|
3521
3189
|
route?: {
|
|
@@ -3544,14 +3212,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3544
3212
|
equals?: unknown;
|
|
3545
3213
|
} | undefined;
|
|
3546
3214
|
element?: {
|
|
3215
|
+
name?: string | undefined;
|
|
3547
3216
|
testid?: string | undefined;
|
|
3548
3217
|
role?: string | undefined;
|
|
3549
|
-
name?: string | undefined;
|
|
3550
3218
|
} | undefined;
|
|
3551
3219
|
text?: {
|
|
3552
3220
|
contains: string;
|
|
3553
|
-
visible?: boolean | undefined;
|
|
3554
3221
|
scope?: string | undefined;
|
|
3222
|
+
visible?: boolean | undefined;
|
|
3555
3223
|
absent?: boolean | undefined;
|
|
3556
3224
|
} | undefined;
|
|
3557
3225
|
route?: {
|
|
@@ -3585,14 +3253,14 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3585
3253
|
equals?: unknown;
|
|
3586
3254
|
} | undefined;
|
|
3587
3255
|
element?: {
|
|
3256
|
+
name?: string | undefined;
|
|
3588
3257
|
testid?: string | undefined;
|
|
3589
3258
|
role?: string | undefined;
|
|
3590
|
-
name?: string | undefined;
|
|
3591
3259
|
} | undefined;
|
|
3592
3260
|
text?: {
|
|
3593
3261
|
contains: string;
|
|
3594
|
-
visible?: boolean | undefined;
|
|
3595
3262
|
scope?: string | undefined;
|
|
3263
|
+
visible?: boolean | undefined;
|
|
3596
3264
|
absent?: boolean | undefined;
|
|
3597
3265
|
} | undefined;
|
|
3598
3266
|
route?: {
|
|
@@ -3614,6 +3282,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3614
3282
|
line: number;
|
|
3615
3283
|
column?: number | undefined;
|
|
3616
3284
|
} | undefined;
|
|
3285
|
+
of?: number | undefined;
|
|
3617
3286
|
} | {
|
|
3618
3287
|
kind: "role";
|
|
3619
3288
|
role: string;
|
|
@@ -3621,13 +3290,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3621
3290
|
of?: number | undefined;
|
|
3622
3291
|
nth?: number | undefined;
|
|
3623
3292
|
} | {
|
|
3624
|
-
kind: "signal";
|
|
3625
3293
|
name: string;
|
|
3294
|
+
kind: "signal";
|
|
3626
3295
|
} | {
|
|
3627
3296
|
kind: "component";
|
|
3297
|
+
name?: string | undefined;
|
|
3628
3298
|
role?: string | undefined;
|
|
3629
3299
|
component?: string | undefined;
|
|
3630
|
-
name?: string | undefined;
|
|
3631
3300
|
source?: {
|
|
3632
3301
|
file: string;
|
|
3633
3302
|
line: number;
|
|
@@ -3648,42 +3317,7 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
3648
3317
|
until?: string | undefined;
|
|
3649
3318
|
} | undefined;
|
|
3650
3319
|
};
|
|
3651
|
-
name: string;
|
|
3652
3320
|
}>;
|
|
3653
|
-
/** A concrete, confidence-scored rebind proposed for one drifted step. */
|
|
3654
|
-
export interface HealProposal {
|
|
3655
|
-
/** 0-based step index in the flow. */
|
|
3656
|
-
step: number;
|
|
3657
|
-
/** Old (missing) testid anchor value. */
|
|
3658
|
-
from: string;
|
|
3659
|
-
/** Proposed nearest present testid. */
|
|
3660
|
-
to: string;
|
|
3661
|
-
/** Normalized (0,1]; >= HEAL_CONFIDENCE_MIN to be applicable. */
|
|
3662
|
-
confidence: number;
|
|
3663
|
-
}
|
|
3664
|
-
/** One applied rebind (a HealProposal that was written to disk). */
|
|
3665
|
-
export interface HealChange {
|
|
3666
|
-
step: number;
|
|
3667
|
-
from: string;
|
|
3668
|
-
to: string;
|
|
3669
|
-
}
|
|
3670
|
-
/** The reticle_flow_heal envelope. */
|
|
3671
|
-
export interface FlowHealResult {
|
|
3672
|
-
name: string;
|
|
3673
|
-
status: HealStatus;
|
|
3674
|
-
/** Whether the file was rewritten (true only when status === 'healed'). */
|
|
3675
|
-
applied: boolean;
|
|
3676
|
-
/** Confident, applicable rebinds. With apply:false these are the dry-run diff. */
|
|
3677
|
-
proposals: HealProposal[];
|
|
3678
|
-
/** Anchors actually written (empty unless applied). */
|
|
3679
|
-
changed: HealChange[];
|
|
3680
|
-
/** Human one-liner for the agent (e.g. "nothing to heal", floor explanation). */
|
|
3681
|
-
message: string;
|
|
3682
|
-
error?: {
|
|
3683
|
-
code: string;
|
|
3684
|
-
message: string;
|
|
3685
|
-
};
|
|
3686
|
-
}
|
|
3687
3321
|
export type RecordedFlow = z.infer<typeof RecordedFlowSchema>;
|
|
3688
3322
|
/**
|
|
3689
3323
|
* One replayable-flow chip on the in-page HUD.
|