@reticlehq/core 3.7.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activation-entry.d.ts +9 -0
- package/dist/activation-entry.js +9 -0
- package/dist/artifacts/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- package/dist/artifacts/flow-constants.d.ts +15 -0
- package/dist/artifacts/flow-constants.js +15 -0
- package/dist/artifacts/flow-expect-flat.d.ts +8 -192
- package/dist/artifacts/flow-expect-flat.js +2 -2
- package/dist/artifacts/flow-results.d.ts +26 -0
- package/dist/artifacts/flow-types.d.ts +212 -2295
- package/dist/artifacts/flow-types.js +14 -2
- package/dist/artifacts/harness-credits.d.ts +6 -3
- package/dist/artifacts/harness-credits.js +9 -6
- package/dist/artifacts/harness-map.d.ts +8 -69
- package/dist/artifacts/harness-map.js +1 -1
- package/dist/artifacts/hud-notices.d.ts +8 -82
- package/dist/artifacts/hud-notices.js +1 -1
- package/dist/artifacts/impact.d.ts +104 -1665
- package/dist/artifacts/impact.js +38 -21
- package/dist/artifacts/journal.d.ts +15 -231
- package/dist/artifacts/journal.js +15 -2
- package/dist/artifacts/prompt-context.d.ts +7 -33
- package/dist/artifacts/prompt-context.js +15 -4
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/graph/app-graph.d.ts +137 -0
- package/dist/graph/app-graph.js +498 -0
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/hud-entry.js +1 -1
- 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 +10 -0
- package/dist/index.js +10 -0
- package/dist/onboarding.d.ts +23 -52
- package/dist/onboarding.js +20 -1
- package/dist/registry/daemon-registry.d.ts +2 -14
- package/dist/registry/daemon-registry.js +1 -1
- package/dist/registry/dev-server-registry.d.ts +2 -31
- package/dist/registry/dev-server-registry.js +1 -1
- package/dist/registry/project-registry.d.ts +4 -32
- package/dist/registry/project-registry.js +1 -1
- package/dist/schema/command-message.json +65 -68
- package/dist/schema/command-name.json +29 -33
- package/dist/schema/command-result.json +25 -30
- package/dist/schema/event-message.json +104 -101
- package/dist/schema/event-payloads.json +246 -108
- package/dist/schema/event-type.json +47 -48
- package/dist/schema/hello-message.json +150 -133
- package/dist/schema/reticle-event.json +98 -94
- package/dist/schema/reticle-message.json +338 -310
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-entry.d.ts +1 -1
- package/dist/telemetry-entry.js +1 -1
- package/dist/telemetry-feedback.d.ts +17 -91
- package/dist/telemetry-feedback.js +20 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +45 -624
- package/dist/telemetry-session.js +25 -12
- package/dist/telemetry-signals.d.ts +211 -86
- package/dist/telemetry-signals.js +100 -2
- package/dist/telemetry.d.ts +321 -1691
- package/dist/telemetry.js +72 -6
- package/dist/verdict/check-sentence.d.ts +34 -0
- package/dist/verdict/check-sentence.js +228 -0
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/consequence.d.ts +15 -0
- package/dist/verdict/consequence.js +11 -0
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/findings.d.ts +10 -0
- package/dist/verdict/findings.js +13 -0
- package/dist/verdict/instrumentation-coverage.d.ts +6 -37
- package/dist/verdict/instrumentation-coverage.js +15 -59
- package/dist/verdict/instrumentation-gap.d.ts +72 -0
- package/dist/verdict/instrumentation-gap.js +64 -0
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate-tree.d.ts +2 -0
- package/dist/verdict/predicate-tree.js +16 -0
- package/dist/verdict/predicate.d.ts +3 -2
- package/dist/verdict/predicate.js +107 -16
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +71 -0
- package/dist/verdict/run-report.js +53 -0
- package/dist/verdict/security.d.ts +48 -2
- package/dist/verdict/security.js +185 -18
- package/dist/verdict/verification-run.d.ts +124 -1623
- package/dist/verdict/verification-run.js +37 -6
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/constants/constants.d.ts +56 -141
- package/dist/wire/constants/constants.js +64 -144
- 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 +37 -1
- package/dist/wire/constants/event-types.js +35 -1
- package/dist/wire/constants/hud-controls.js +0 -2
- package/dist/wire/constants/hud-use.d.ts +4 -0
- package/dist/wire/constants/hud-use.js +4 -0
- package/dist/wire/constants/mcp-wire.d.ts +16 -0
- package/dist/wire/constants/mcp-wire.js +16 -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-env.d.ts +140 -0
- package/dist/wire/constants/reticle-env.js +140 -0
- package/dist/wire/constants/session-constants.d.ts +11 -0
- package/dist/wire/constants/session-constants.js +11 -0
- package/dist/wire/event-payloads.d.ts +173 -629
- package/dist/wire/event-payloads.js +107 -23
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +90 -713
- package/dist/wire/messages.js +19 -3
- package/dist/wire/narrow.d.ts +6 -0
- package/dist/wire/narrow.js +26 -0
- package/dist/wire/next-step.d.ts +50 -0
- package/dist/wire/next-step.js +37 -0
- package/dist/wire/platform-link.d.ts +7 -0
- package/dist/wire/platform-link.js +14 -8
- 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 +92 -0
- package/dist/wire/production/production-policy.js +133 -0
- package/dist/wire/tool-names.d.ts +2 -0
- package/dist/wire/tool-names.js +2 -0
- package/dist/wire/types.d.ts +102 -700
- package/dist/wire/types.js +5 -5
- package/dist/words/upgrade.d.ts +3 -13
- package/dist/words/upgrade.js +1 -1
- package/package.json +7 -4
package/dist/wire/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ref } from '../identity/brand.js';
|
|
2
2
|
import type { Predicate } from '../verdict/predicate.js';
|
|
3
|
-
import
|
|
3
|
+
import * as z from 'zod';
|
|
4
4
|
import { ElementState } from './constants/constants.js';
|
|
5
5
|
import { type AnnotationErrorCode, type AnnotationTarget } from '../artifacts/flow-constants.js';
|
|
6
6
|
/**
|
|
@@ -19,7 +19,7 @@ import { type AnnotationErrorCode, type AnnotationTarget } from '../artifacts/fl
|
|
|
19
19
|
* the query's own `value` residual, and the projected map answers everything else. A predicate that
|
|
20
20
|
* cannot express a value is honest; one that pretends to is a false green.
|
|
21
21
|
*/
|
|
22
|
-
export declare const AttrNamesSchema: z.ZodArray<z.
|
|
22
|
+
export declare const AttrNamesSchema: z.ZodArray<z.ZodString>;
|
|
23
23
|
/**
|
|
24
24
|
* A query describing which element(s) to find, Testing-Library style.
|
|
25
25
|
*
|
|
@@ -31,7 +31,7 @@ export declare const AttrNamesSchema: z.ZodArray<z.ZodEffects<z.ZodString, strin
|
|
|
31
31
|
* "fixes" correct code.
|
|
32
32
|
*/
|
|
33
33
|
export declare const ElementQuerySchema: z.ZodObject<{
|
|
34
|
-
by: z.ZodOptional<z.
|
|
34
|
+
by: z.ZodOptional<z.ZodEnum<{
|
|
35
35
|
readonly ROLE: "role";
|
|
36
36
|
readonly TEXT: "text";
|
|
37
37
|
readonly LABEL: "label";
|
|
@@ -48,86 +48,17 @@ export declare const ElementQuerySchema: z.ZodObject<{
|
|
|
48
48
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
49
49
|
testid: z.ZodOptional<z.ZodString>;
|
|
50
50
|
alt: z.ZodOptional<z.ZodString>;
|
|
51
|
-
/** Component display name (auto-anchor resolution). The nearest enclosing component of the target. */
|
|
52
51
|
component: z.ZodOptional<z.ZodString>;
|
|
53
|
-
|
|
54
|
-
* Attribute names to project onto each match (e.g. `['href']` to inventory links, `['src']` for
|
|
55
|
-
* images). Without this the descriptor carries only semantics, so URLs are unreachable.
|
|
56
|
-
*/
|
|
57
|
-
attrs: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
|
|
58
|
-
/** Source location of the target element (auto-anchor resolution) — the precise, granular match. */
|
|
52
|
+
attrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
53
|
source: z.ZodOptional<z.ZodObject<{
|
|
60
54
|
file: z.ZodString;
|
|
61
55
|
line: z.ZodNumber;
|
|
62
56
|
column: z.ZodOptional<z.ZodNumber>;
|
|
63
|
-
},
|
|
64
|
-
file: string;
|
|
65
|
-
line: number;
|
|
66
|
-
column?: number | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
file: string;
|
|
69
|
-
line: number;
|
|
70
|
-
column?: number | undefined;
|
|
71
|
-
}>>;
|
|
72
|
-
/** CSS selector or ref to scope the search. */
|
|
57
|
+
}, z.core.$strict>>;
|
|
73
58
|
scope: z.ZodOptional<z.ZodString>;
|
|
74
|
-
/**
|
|
75
|
-
* Return the `scope` element ITSELF rather than searching inside it. When `text` is also given,
|
|
76
|
-
* the scope root must contain that text across its full subtree.
|
|
77
|
-
*
|
|
78
|
-
* Every other path excludes the scope root by construction, so a layout container with no role,
|
|
79
|
-
* name, testid or text of its own was unreachable — and that is routinely the element carrying the
|
|
80
|
-
* handler. Reported from the field: "click the empty region of this row" is an ordinary user
|
|
81
|
-
* action (dismiss, deselect, close, marquee-select) that could not be expressed at all, and the
|
|
82
|
-
* verification was handed back to the human. Requires `scope`.
|
|
83
|
-
*/
|
|
84
59
|
self: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
-
/**
|
|
86
|
-
* Compare `text` with its case intact. A search is forgiving about case; a CHECK is not — the
|
|
87
|
-
* text predicate sends this, so "Saved Priya" can fail against a page reading "Saved priya".
|
|
88
|
-
*/
|
|
89
60
|
matchCase: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
-
},
|
|
91
|
-
text?: string | undefined;
|
|
92
|
-
testid?: string | undefined;
|
|
93
|
-
role?: string | undefined;
|
|
94
|
-
component?: string | undefined;
|
|
95
|
-
label?: string | undefined;
|
|
96
|
-
placeholder?: string | undefined;
|
|
97
|
-
alt?: string | undefined;
|
|
98
|
-
value?: string | undefined;
|
|
99
|
-
source?: {
|
|
100
|
-
file: string;
|
|
101
|
-
line: number;
|
|
102
|
-
column?: number | undefined;
|
|
103
|
-
} | undefined;
|
|
104
|
-
name?: string | undefined;
|
|
105
|
-
by?: "text" | "testid" | "role" | "component" | "label" | "placeholder" | "alt" | undefined;
|
|
106
|
-
attrs?: string[] | undefined;
|
|
107
|
-
scope?: string | undefined;
|
|
108
|
-
self?: boolean | undefined;
|
|
109
|
-
matchCase?: boolean | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
text?: string | undefined;
|
|
112
|
-
testid?: string | undefined;
|
|
113
|
-
role?: string | undefined;
|
|
114
|
-
component?: string | undefined;
|
|
115
|
-
label?: string | undefined;
|
|
116
|
-
placeholder?: string | undefined;
|
|
117
|
-
alt?: string | undefined;
|
|
118
|
-
value?: string | undefined;
|
|
119
|
-
source?: {
|
|
120
|
-
file: string;
|
|
121
|
-
line: number;
|
|
122
|
-
column?: number | undefined;
|
|
123
|
-
} | undefined;
|
|
124
|
-
name?: string | undefined;
|
|
125
|
-
by?: "text" | "testid" | "role" | "component" | "label" | "placeholder" | "alt" | undefined;
|
|
126
|
-
attrs?: string[] | undefined;
|
|
127
|
-
scope?: string | undefined;
|
|
128
|
-
self?: boolean | undefined;
|
|
129
|
-
matchCase?: boolean | undefined;
|
|
130
|
-
}>;
|
|
61
|
+
}, z.core.$strict>;
|
|
131
62
|
export type ElementQuery = z.infer<typeof ElementQuerySchema>;
|
|
132
63
|
/** Compact semantic descriptor of one element surfaced to the agent. */
|
|
133
64
|
export interface ElementDescriptor {
|
|
@@ -183,6 +114,18 @@ export interface MatchResult {
|
|
|
183
114
|
* confirmed absence (a false negative); both are the false-green shape this tool exists to prevent.
|
|
184
115
|
*/
|
|
185
116
|
scopeMissing?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Present only when a framework error dialog (Next.js, Vite) is open over the page and a match is
|
|
119
|
+
* under it: the name of that dialog. The match is in the DOM, but a user sees only the dialog, so a
|
|
120
|
+
* presence check is not a plain pass (#1768).
|
|
121
|
+
*/
|
|
122
|
+
coveredBy?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Present only when a query matched by text and a person cannot read any match: why not. The
|
|
125
|
+
* text colour is almost the colour behind it, or the composed opacity is almost zero. The text is
|
|
126
|
+
* in the DOM, but nobody can see it, so a presence check is not a plain pass (#1797).
|
|
127
|
+
*/
|
|
128
|
+
unreadable?: string;
|
|
186
129
|
/**
|
|
187
130
|
* Zero-match diagnosis, present only on a miss: what IS on the page. `reticle_query` has always
|
|
188
131
|
* returned this; MATCH (the command every PREDICATE uses) did not, so a failed assertion was a
|
|
@@ -228,9 +171,15 @@ export interface QueryEmptyHint {
|
|
|
228
171
|
* ever match it.
|
|
229
172
|
*
|
|
230
173
|
* The descriptor is the tightest container that holds the whole string; its `ref` is a locator, so
|
|
231
|
-
* the recovery is `{ scope: <ref>, self: true }` rather than another guess at the text.
|
|
174
|
+
* the recovery is `{ scope: <ref>, self: true }` rather than another guess at the text. When the
|
|
175
|
+
* container carries a testid or an id, `selector` names it instead: a selector can be written
|
|
176
|
+
* into an `act_and_wait` `until` before the action runs, which is when the recovery has to be
|
|
177
|
+
* written, while a ref exists only after a snapshot (#1147).
|
|
232
178
|
*/
|
|
233
|
-
splitText?: ElementDescriptor
|
|
179
|
+
splitText?: ElementDescriptor & {
|
|
180
|
+
/** A stable CSS selector for the container, present when it carries a testid or an id. */
|
|
181
|
+
selector?: string;
|
|
182
|
+
};
|
|
234
183
|
/**
|
|
235
184
|
* Present only when a case-exact TEXT check missed and the page shows the text in another case:
|
|
236
185
|
* what it shows. Reported as "split across children" before, with the same failing check as the
|
|
@@ -254,6 +203,13 @@ export interface QueryEmptyHint {
|
|
|
254
203
|
* (`testIdAttribute` in `.reticle.json`).
|
|
255
204
|
*/
|
|
256
205
|
testidFoundUnder?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Present only when a text/name search missed and the string IS on the page but inside an
|
|
208
|
+
* `aria-hidden="true"` subtree — drawn on screen but excluded from the accessible tree. The
|
|
209
|
+
* note is the difference between "not rendered" and "rendered but hidden from assistive
|
|
210
|
+
* technology", which have opposite fixes (#1070).
|
|
211
|
+
*/
|
|
212
|
+
ariaHiddenMatch?: boolean;
|
|
257
213
|
}
|
|
258
214
|
/** Result of the QUERY command / reticle_query tool. `hint` present ONLY on zero matches. */
|
|
259
215
|
export interface QueryResult {
|
|
@@ -273,21 +229,15 @@ export interface QueryResult {
|
|
|
273
229
|
/** One named flow advertised by the app (mirrors the browser CapabilityFlow). */
|
|
274
230
|
export declare const CapabilityFlowSchema: z.ZodObject<{
|
|
275
231
|
name: z.ZodString;
|
|
276
|
-
steps: z.ZodArray<z.ZodString
|
|
277
|
-
},
|
|
278
|
-
steps: string[];
|
|
279
|
-
name: string;
|
|
280
|
-
}, {
|
|
281
|
-
steps: string[];
|
|
282
|
-
name: string;
|
|
283
|
-
}>;
|
|
232
|
+
steps: z.ZodArray<z.ZodString>;
|
|
233
|
+
}, z.core.$strip>;
|
|
284
234
|
/**
|
|
285
235
|
* A declared risk zone — the app naming a surface (auth/payment/db/…) and the paths it covers, so a
|
|
286
236
|
* host can gate on it. Shares RiskSurface with the verification-run verdict so a declaration and a
|
|
287
237
|
* detection speak the same vocabulary. ENFORCED LATER — parsed + surfaced now.
|
|
288
238
|
*/
|
|
289
239
|
export declare const RiskZoneSchema: z.ZodObject<{
|
|
290
|
-
surface: z.
|
|
240
|
+
surface: z.ZodEnum<{
|
|
291
241
|
readonly AUTH: "auth";
|
|
292
242
|
readonly PAYMENT: "payment";
|
|
293
243
|
readonly DB: "db";
|
|
@@ -297,17 +247,9 @@ export declare const RiskZoneSchema: z.ZodObject<{
|
|
|
297
247
|
readonly DESTRUCTIVE: "destructive";
|
|
298
248
|
readonly EXTERNAL: "external";
|
|
299
249
|
}>;
|
|
300
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString
|
|
250
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
301
251
|
note: z.ZodOptional<z.ZodString>;
|
|
302
|
-
},
|
|
303
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
304
|
-
note?: string | undefined;
|
|
305
|
-
paths?: string[] | undefined;
|
|
306
|
-
}, {
|
|
307
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
308
|
-
note?: string | undefined;
|
|
309
|
-
paths?: string[] | undefined;
|
|
310
|
-
}>;
|
|
252
|
+
}, z.core.$strip>;
|
|
311
253
|
/**
|
|
312
254
|
* Optional governance metadata an app may declare about its testable surface: who owns it, safety
|
|
313
255
|
* invariants, allowed scopes, store paths/selectors to redact, and declared risk zones. All optional
|
|
@@ -316,11 +258,11 @@ export declare const RiskZoneSchema: z.ZodObject<{
|
|
|
316
258
|
*/
|
|
317
259
|
export declare const ManifestGovernanceSchema: z.ZodObject<{
|
|
318
260
|
owner: z.ZodOptional<z.ZodString>;
|
|
319
|
-
safety: z.ZodOptional<z.ZodArray<z.ZodString
|
|
320
|
-
scope: z.ZodOptional<z.ZodArray<z.ZodString
|
|
321
|
-
redact: z.ZodOptional<z.ZodArray<z.ZodString
|
|
261
|
+
safety: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
262
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
263
|
+
redact: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
322
264
|
risk: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
323
|
-
surface: z.
|
|
265
|
+
surface: z.ZodEnum<{
|
|
324
266
|
readonly AUTH: "auth";
|
|
325
267
|
readonly PAYMENT: "payment";
|
|
326
268
|
readonly DB: "db";
|
|
@@ -330,62 +272,27 @@ export declare const ManifestGovernanceSchema: z.ZodObject<{
|
|
|
330
272
|
readonly DESTRUCTIVE: "destructive";
|
|
331
273
|
readonly EXTERNAL: "external";
|
|
332
274
|
}>;
|
|
333
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString
|
|
275
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
334
276
|
note: z.ZodOptional<z.ZodString>;
|
|
335
|
-
},
|
|
336
|
-
|
|
337
|
-
note?: string | undefined;
|
|
338
|
-
paths?: string[] | undefined;
|
|
339
|
-
}, {
|
|
340
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
341
|
-
note?: string | undefined;
|
|
342
|
-
paths?: string[] | undefined;
|
|
343
|
-
}>, "many">>;
|
|
344
|
-
}, "strip", z.ZodTypeAny, {
|
|
345
|
-
risk?: {
|
|
346
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
347
|
-
note?: string | undefined;
|
|
348
|
-
paths?: string[] | undefined;
|
|
349
|
-
}[] | undefined;
|
|
350
|
-
scope?: string[] | undefined;
|
|
351
|
-
owner?: string | undefined;
|
|
352
|
-
safety?: string[] | undefined;
|
|
353
|
-
redact?: string[] | undefined;
|
|
354
|
-
}, {
|
|
355
|
-
risk?: {
|
|
356
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
357
|
-
note?: string | undefined;
|
|
358
|
-
paths?: string[] | undefined;
|
|
359
|
-
}[] | undefined;
|
|
360
|
-
scope?: string[] | undefined;
|
|
361
|
-
owner?: string | undefined;
|
|
362
|
-
safety?: string[] | undefined;
|
|
363
|
-
redact?: string[] | undefined;
|
|
364
|
-
}>;
|
|
277
|
+
}, z.core.$strip>>>;
|
|
278
|
+
}, z.core.$strip>;
|
|
365
279
|
export type ManifestGovernance = z.infer<typeof ManifestGovernanceSchema>;
|
|
366
280
|
/** The app's testable surface — persisted form of the browser Capabilities. */
|
|
367
281
|
export declare const CapabilitiesSchema: z.ZodObject<{
|
|
368
|
-
testids: z.ZodArray<z.ZodString
|
|
369
|
-
signals: z.ZodArray<z.ZodString
|
|
370
|
-
stores: z.ZodArray<z.ZodString
|
|
282
|
+
testids: z.ZodArray<z.ZodString>;
|
|
283
|
+
signals: z.ZodArray<z.ZodString>;
|
|
284
|
+
stores: z.ZodArray<z.ZodString>;
|
|
371
285
|
flows: z.ZodArray<z.ZodObject<{
|
|
372
286
|
name: z.ZodString;
|
|
373
|
-
steps: z.ZodArray<z.ZodString
|
|
374
|
-
},
|
|
375
|
-
steps: string[];
|
|
376
|
-
name: string;
|
|
377
|
-
}, {
|
|
378
|
-
steps: string[];
|
|
379
|
-
name: string;
|
|
380
|
-
}>, "many">;
|
|
381
|
-
/** Optional declared governance (owner/safety/scope/redact/risk). Additive — back-compat safe. */
|
|
287
|
+
steps: z.ZodArray<z.ZodString>;
|
|
288
|
+
}, z.core.$strip>>;
|
|
382
289
|
governance: z.ZodOptional<z.ZodObject<{
|
|
383
290
|
owner: z.ZodOptional<z.ZodString>;
|
|
384
|
-
safety: z.ZodOptional<z.ZodArray<z.ZodString
|
|
385
|
-
scope: z.ZodOptional<z.ZodArray<z.ZodString
|
|
386
|
-
redact: z.ZodOptional<z.ZodArray<z.ZodString
|
|
291
|
+
safety: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
292
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
293
|
+
redact: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
387
294
|
risk: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
388
|
-
surface: z.
|
|
295
|
+
surface: z.ZodEnum<{
|
|
389
296
|
readonly AUTH: "auth";
|
|
390
297
|
readonly PAYMENT: "payment";
|
|
391
298
|
readonly DB: "db";
|
|
@@ -395,104 +302,31 @@ export declare const CapabilitiesSchema: z.ZodObject<{
|
|
|
395
302
|
readonly DESTRUCTIVE: "destructive";
|
|
396
303
|
readonly EXTERNAL: "external";
|
|
397
304
|
}>;
|
|
398
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString
|
|
305
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
399
306
|
note: z.ZodOptional<z.ZodString>;
|
|
400
|
-
},
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
paths?: string[] | undefined;
|
|
404
|
-
}, {
|
|
405
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
406
|
-
note?: string | undefined;
|
|
407
|
-
paths?: string[] | undefined;
|
|
408
|
-
}>, "many">>;
|
|
409
|
-
}, "strip", z.ZodTypeAny, {
|
|
410
|
-
risk?: {
|
|
411
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
412
|
-
note?: string | undefined;
|
|
413
|
-
paths?: string[] | undefined;
|
|
414
|
-
}[] | undefined;
|
|
415
|
-
scope?: string[] | undefined;
|
|
416
|
-
owner?: string | undefined;
|
|
417
|
-
safety?: string[] | undefined;
|
|
418
|
-
redact?: string[] | undefined;
|
|
419
|
-
}, {
|
|
420
|
-
risk?: {
|
|
421
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
422
|
-
note?: string | undefined;
|
|
423
|
-
paths?: string[] | undefined;
|
|
424
|
-
}[] | undefined;
|
|
425
|
-
scope?: string[] | undefined;
|
|
426
|
-
owner?: string | undefined;
|
|
427
|
-
safety?: string[] | undefined;
|
|
428
|
-
redact?: string[] | undefined;
|
|
429
|
-
}>>;
|
|
430
|
-
}, "strip", z.ZodTypeAny, {
|
|
431
|
-
flows: {
|
|
432
|
-
steps: string[];
|
|
433
|
-
name: string;
|
|
434
|
-
}[];
|
|
435
|
-
testids: string[];
|
|
436
|
-
signals: string[];
|
|
437
|
-
stores: string[];
|
|
438
|
-
governance?: {
|
|
439
|
-
risk?: {
|
|
440
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
441
|
-
note?: string | undefined;
|
|
442
|
-
paths?: string[] | undefined;
|
|
443
|
-
}[] | undefined;
|
|
444
|
-
scope?: string[] | undefined;
|
|
445
|
-
owner?: string | undefined;
|
|
446
|
-
safety?: string[] | undefined;
|
|
447
|
-
redact?: string[] | undefined;
|
|
448
|
-
} | undefined;
|
|
449
|
-
}, {
|
|
450
|
-
flows: {
|
|
451
|
-
steps: string[];
|
|
452
|
-
name: string;
|
|
453
|
-
}[];
|
|
454
|
-
testids: string[];
|
|
455
|
-
signals: string[];
|
|
456
|
-
stores: string[];
|
|
457
|
-
governance?: {
|
|
458
|
-
risk?: {
|
|
459
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
460
|
-
note?: string | undefined;
|
|
461
|
-
paths?: string[] | undefined;
|
|
462
|
-
}[] | undefined;
|
|
463
|
-
scope?: string[] | undefined;
|
|
464
|
-
owner?: string | undefined;
|
|
465
|
-
safety?: string[] | undefined;
|
|
466
|
-
redact?: string[] | undefined;
|
|
467
|
-
} | undefined;
|
|
468
|
-
}>;
|
|
307
|
+
}, z.core.$strip>>>;
|
|
308
|
+
}, z.core.$strip>>;
|
|
309
|
+
}, z.core.$strip>;
|
|
469
310
|
export type CapabilitiesContract = z.infer<typeof CapabilitiesSchema>;
|
|
470
311
|
/** The on-disk contract.json envelope: versioned + timestamped capabilities. */
|
|
471
312
|
export declare const ContractFileSchema: z.ZodObject<{
|
|
472
313
|
version: z.ZodLiteral<1>;
|
|
473
314
|
generatedAt: z.ZodNumber;
|
|
474
315
|
capabilities: z.ZodObject<{
|
|
475
|
-
testids: z.ZodArray<z.ZodString
|
|
476
|
-
signals: z.ZodArray<z.ZodString
|
|
477
|
-
stores: z.ZodArray<z.ZodString
|
|
316
|
+
testids: z.ZodArray<z.ZodString>;
|
|
317
|
+
signals: z.ZodArray<z.ZodString>;
|
|
318
|
+
stores: z.ZodArray<z.ZodString>;
|
|
478
319
|
flows: z.ZodArray<z.ZodObject<{
|
|
479
320
|
name: z.ZodString;
|
|
480
|
-
steps: z.ZodArray<z.ZodString
|
|
481
|
-
},
|
|
482
|
-
steps: string[];
|
|
483
|
-
name: string;
|
|
484
|
-
}, {
|
|
485
|
-
steps: string[];
|
|
486
|
-
name: string;
|
|
487
|
-
}>, "many">;
|
|
488
|
-
/** Optional declared governance (owner/safety/scope/redact/risk). Additive — back-compat safe. */
|
|
321
|
+
steps: z.ZodArray<z.ZodString>;
|
|
322
|
+
}, z.core.$strip>>;
|
|
489
323
|
governance: z.ZodOptional<z.ZodObject<{
|
|
490
324
|
owner: z.ZodOptional<z.ZodString>;
|
|
491
|
-
safety: z.ZodOptional<z.ZodArray<z.ZodString
|
|
492
|
-
scope: z.ZodOptional<z.ZodArray<z.ZodString
|
|
493
|
-
redact: z.ZodOptional<z.ZodArray<z.ZodString
|
|
325
|
+
safety: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
326
|
+
scope: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
|
+
redact: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
494
328
|
risk: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
495
|
-
surface: z.
|
|
329
|
+
surface: z.ZodEnum<{
|
|
496
330
|
readonly AUTH: "auth";
|
|
497
331
|
readonly PAYMENT: "payment";
|
|
498
332
|
readonly DB: "db";
|
|
@@ -502,124 +336,12 @@ export declare const ContractFileSchema: z.ZodObject<{
|
|
|
502
336
|
readonly DESTRUCTIVE: "destructive";
|
|
503
337
|
readonly EXTERNAL: "external";
|
|
504
338
|
}>;
|
|
505
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString
|
|
339
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
506
340
|
note: z.ZodOptional<z.ZodString>;
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}, {
|
|
512
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
513
|
-
note?: string | undefined;
|
|
514
|
-
paths?: string[] | undefined;
|
|
515
|
-
}>, "many">>;
|
|
516
|
-
}, "strip", z.ZodTypeAny, {
|
|
517
|
-
risk?: {
|
|
518
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
519
|
-
note?: string | undefined;
|
|
520
|
-
paths?: string[] | undefined;
|
|
521
|
-
}[] | undefined;
|
|
522
|
-
scope?: string[] | undefined;
|
|
523
|
-
owner?: string | undefined;
|
|
524
|
-
safety?: string[] | undefined;
|
|
525
|
-
redact?: string[] | undefined;
|
|
526
|
-
}, {
|
|
527
|
-
risk?: {
|
|
528
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
529
|
-
note?: string | undefined;
|
|
530
|
-
paths?: string[] | undefined;
|
|
531
|
-
}[] | undefined;
|
|
532
|
-
scope?: string[] | undefined;
|
|
533
|
-
owner?: string | undefined;
|
|
534
|
-
safety?: string[] | undefined;
|
|
535
|
-
redact?: string[] | undefined;
|
|
536
|
-
}>>;
|
|
537
|
-
}, "strip", z.ZodTypeAny, {
|
|
538
|
-
flows: {
|
|
539
|
-
steps: string[];
|
|
540
|
-
name: string;
|
|
541
|
-
}[];
|
|
542
|
-
testids: string[];
|
|
543
|
-
signals: string[];
|
|
544
|
-
stores: string[];
|
|
545
|
-
governance?: {
|
|
546
|
-
risk?: {
|
|
547
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
548
|
-
note?: string | undefined;
|
|
549
|
-
paths?: string[] | undefined;
|
|
550
|
-
}[] | undefined;
|
|
551
|
-
scope?: string[] | undefined;
|
|
552
|
-
owner?: string | undefined;
|
|
553
|
-
safety?: string[] | undefined;
|
|
554
|
-
redact?: string[] | undefined;
|
|
555
|
-
} | undefined;
|
|
556
|
-
}, {
|
|
557
|
-
flows: {
|
|
558
|
-
steps: string[];
|
|
559
|
-
name: string;
|
|
560
|
-
}[];
|
|
561
|
-
testids: string[];
|
|
562
|
-
signals: string[];
|
|
563
|
-
stores: string[];
|
|
564
|
-
governance?: {
|
|
565
|
-
risk?: {
|
|
566
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
567
|
-
note?: string | undefined;
|
|
568
|
-
paths?: string[] | undefined;
|
|
569
|
-
}[] | undefined;
|
|
570
|
-
scope?: string[] | undefined;
|
|
571
|
-
owner?: string | undefined;
|
|
572
|
-
safety?: string[] | undefined;
|
|
573
|
-
redact?: string[] | undefined;
|
|
574
|
-
} | undefined;
|
|
575
|
-
}>;
|
|
576
|
-
}, "strip", z.ZodTypeAny, {
|
|
577
|
-
capabilities: {
|
|
578
|
-
flows: {
|
|
579
|
-
steps: string[];
|
|
580
|
-
name: string;
|
|
581
|
-
}[];
|
|
582
|
-
testids: string[];
|
|
583
|
-
signals: string[];
|
|
584
|
-
stores: string[];
|
|
585
|
-
governance?: {
|
|
586
|
-
risk?: {
|
|
587
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
588
|
-
note?: string | undefined;
|
|
589
|
-
paths?: string[] | undefined;
|
|
590
|
-
}[] | undefined;
|
|
591
|
-
scope?: string[] | undefined;
|
|
592
|
-
owner?: string | undefined;
|
|
593
|
-
safety?: string[] | undefined;
|
|
594
|
-
redact?: string[] | undefined;
|
|
595
|
-
} | undefined;
|
|
596
|
-
};
|
|
597
|
-
version: 1;
|
|
598
|
-
generatedAt: number;
|
|
599
|
-
}, {
|
|
600
|
-
capabilities: {
|
|
601
|
-
flows: {
|
|
602
|
-
steps: string[];
|
|
603
|
-
name: string;
|
|
604
|
-
}[];
|
|
605
|
-
testids: string[];
|
|
606
|
-
signals: string[];
|
|
607
|
-
stores: string[];
|
|
608
|
-
governance?: {
|
|
609
|
-
risk?: {
|
|
610
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
611
|
-
note?: string | undefined;
|
|
612
|
-
paths?: string[] | undefined;
|
|
613
|
-
}[] | undefined;
|
|
614
|
-
scope?: string[] | undefined;
|
|
615
|
-
owner?: string | undefined;
|
|
616
|
-
safety?: string[] | undefined;
|
|
617
|
-
redact?: string[] | undefined;
|
|
618
|
-
} | undefined;
|
|
619
|
-
};
|
|
620
|
-
version: 1;
|
|
621
|
-
generatedAt: number;
|
|
622
|
-
}>;
|
|
341
|
+
}, z.core.$strip>>>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
}, z.core.$strip>;
|
|
623
345
|
/**
|
|
624
346
|
* Evidence counts captured with a run so the agent can compare runs over time
|
|
625
347
|
* ("console errors went 0→3 since last run"). All optional: a run records only what it observed.
|
|
@@ -628,23 +350,15 @@ export declare const RunEvidenceSchema: z.ZodObject<{
|
|
|
628
350
|
consoleErrors: z.ZodOptional<z.ZodNumber>;
|
|
629
351
|
networkErrors: z.ZodOptional<z.ZodNumber>;
|
|
630
352
|
driftSteps: z.ZodOptional<z.ZodNumber>;
|
|
631
|
-
},
|
|
632
|
-
consoleErrors?: number | undefined;
|
|
633
|
-
networkErrors?: number | undefined;
|
|
634
|
-
driftSteps?: number | undefined;
|
|
635
|
-
}, {
|
|
636
|
-
consoleErrors?: number | undefined;
|
|
637
|
-
networkErrors?: number | undefined;
|
|
638
|
-
driftSteps?: number | undefined;
|
|
639
|
-
}>;
|
|
353
|
+
}, z.core.$strip>;
|
|
640
354
|
/** One persisted run outcome in .reticle/project.json. */
|
|
641
355
|
export declare const RunRecordSchema: z.ZodObject<{
|
|
642
|
-
kind: z.
|
|
356
|
+
kind: z.ZodEnum<{
|
|
643
357
|
readonly FLOW_REPLAY: "flow_replay";
|
|
644
358
|
readonly MANUAL: "manual";
|
|
645
359
|
}>;
|
|
646
360
|
name: z.ZodString;
|
|
647
|
-
status: z.
|
|
361
|
+
status: z.ZodEnum<{
|
|
648
362
|
readonly PASS: "pass";
|
|
649
363
|
readonly DRIFT: "drift";
|
|
650
364
|
readonly ERROR: "error";
|
|
@@ -656,136 +370,38 @@ export declare const RunRecordSchema: z.ZodObject<{
|
|
|
656
370
|
consoleErrors: z.ZodOptional<z.ZodNumber>;
|
|
657
371
|
networkErrors: z.ZodOptional<z.ZodNumber>;
|
|
658
372
|
driftSteps: z.ZodOptional<z.ZodNumber>;
|
|
659
|
-
},
|
|
660
|
-
consoleErrors?: number | undefined;
|
|
661
|
-
networkErrors?: number | undefined;
|
|
662
|
-
driftSteps?: number | undefined;
|
|
663
|
-
}, {
|
|
664
|
-
consoleErrors?: number | undefined;
|
|
665
|
-
networkErrors?: number | undefined;
|
|
666
|
-
driftSteps?: number | undefined;
|
|
667
|
-
}>>;
|
|
373
|
+
}, z.core.$strip>>;
|
|
668
374
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
669
|
-
},
|
|
670
|
-
kind: "flow_replay" | "manual";
|
|
671
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
672
|
-
at: number;
|
|
673
|
-
name: string;
|
|
674
|
-
durationMs?: number | undefined;
|
|
675
|
-
evidence?: {
|
|
676
|
-
consoleErrors?: number | undefined;
|
|
677
|
-
networkErrors?: number | undefined;
|
|
678
|
-
driftSteps?: number | undefined;
|
|
679
|
-
} | undefined;
|
|
680
|
-
summary?: string | undefined;
|
|
681
|
-
}, {
|
|
682
|
-
kind: "flow_replay" | "manual";
|
|
683
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
684
|
-
at: number;
|
|
685
|
-
name: string;
|
|
686
|
-
durationMs?: number | undefined;
|
|
687
|
-
evidence?: {
|
|
688
|
-
consoleErrors?: number | undefined;
|
|
689
|
-
networkErrors?: number | undefined;
|
|
690
|
-
driftSteps?: number | undefined;
|
|
691
|
-
} | undefined;
|
|
692
|
-
summary?: string | undefined;
|
|
693
|
-
}>;
|
|
375
|
+
}, z.core.$strip>;
|
|
694
376
|
export type RunRecord = z.infer<typeof RunRecordSchema>;
|
|
695
377
|
/** The optional learned map of the app (known flow/route names). */
|
|
696
378
|
export declare const ProjectLearnedSchema: z.ZodObject<{
|
|
697
|
-
flows: z.ZodOptional<z.ZodArray<z.ZodString
|
|
698
|
-
routes: z.ZodOptional<z.ZodArray<z.ZodString
|
|
699
|
-
/**
|
|
700
|
-
* The highest observability this project has ever reached — of the controls a session drove, the
|
|
701
|
-
* share Reticle could fully observe.
|
|
702
|
-
*
|
|
703
|
-
* Kept so a LATER run can be told it fell. A coverage figure with no floor under it is one that
|
|
704
|
-
* gets gamed, and the cheapest way to stop a gap firing is to stop asserting the thing that
|
|
705
|
-
* revealed it — so the number and its guard ship together or neither is worth having. Same
|
|
706
|
-
* reasoning as the assertion-tier ledger, which records what a flow asserted the last time it
|
|
707
|
-
* PASSED for exactly this reason.
|
|
708
|
-
*
|
|
709
|
-
* Optional and additive: absent means "no best yet", which is the honest state of every project
|
|
710
|
-
* that predates this field, and is why the file version does not move.
|
|
711
|
-
*/
|
|
379
|
+
flows: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
380
|
+
routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
712
381
|
bestObservability: z.ZodOptional<z.ZodObject<{
|
|
713
382
|
percent: z.ZodNumber;
|
|
714
383
|
at: z.ZodNumber;
|
|
715
|
-
},
|
|
716
|
-
|
|
717
|
-
percent: number;
|
|
718
|
-
}, {
|
|
719
|
-
at: number;
|
|
720
|
-
percent: number;
|
|
721
|
-
}>>;
|
|
722
|
-
}, "strip", z.ZodTypeAny, {
|
|
723
|
-
flows?: string[] | undefined;
|
|
724
|
-
routes?: string[] | undefined;
|
|
725
|
-
bestObservability?: {
|
|
726
|
-
at: number;
|
|
727
|
-
percent: number;
|
|
728
|
-
} | undefined;
|
|
729
|
-
}, {
|
|
730
|
-
flows?: string[] | undefined;
|
|
731
|
-
routes?: string[] | undefined;
|
|
732
|
-
bestObservability?: {
|
|
733
|
-
at: number;
|
|
734
|
-
percent: number;
|
|
735
|
-
} | undefined;
|
|
736
|
-
}>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
}, z.core.$strip>;
|
|
737
386
|
export type ProjectLearned = z.infer<typeof ProjectLearnedSchema>;
|
|
738
387
|
/** The on-disk project.json envelope: versioned learned-map + chronological runs. */
|
|
739
388
|
export declare const ProjectFileSchema: z.ZodObject<{
|
|
740
389
|
version: z.ZodLiteral<1>;
|
|
741
390
|
learned: z.ZodOptional<z.ZodObject<{
|
|
742
|
-
flows: z.ZodOptional<z.ZodArray<z.ZodString
|
|
743
|
-
routes: z.ZodOptional<z.ZodArray<z.ZodString
|
|
744
|
-
/**
|
|
745
|
-
* The highest observability this project has ever reached — of the controls a session drove, the
|
|
746
|
-
* share Reticle could fully observe.
|
|
747
|
-
*
|
|
748
|
-
* Kept so a LATER run can be told it fell. A coverage figure with no floor under it is one that
|
|
749
|
-
* gets gamed, and the cheapest way to stop a gap firing is to stop asserting the thing that
|
|
750
|
-
* revealed it — so the number and its guard ship together or neither is worth having. Same
|
|
751
|
-
* reasoning as the assertion-tier ledger, which records what a flow asserted the last time it
|
|
752
|
-
* PASSED for exactly this reason.
|
|
753
|
-
*
|
|
754
|
-
* Optional and additive: absent means "no best yet", which is the honest state of every project
|
|
755
|
-
* that predates this field, and is why the file version does not move.
|
|
756
|
-
*/
|
|
391
|
+
flows: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
392
|
+
routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
757
393
|
bestObservability: z.ZodOptional<z.ZodObject<{
|
|
758
394
|
percent: z.ZodNumber;
|
|
759
395
|
at: z.ZodNumber;
|
|
760
|
-
},
|
|
761
|
-
|
|
762
|
-
percent: number;
|
|
763
|
-
}, {
|
|
764
|
-
at: number;
|
|
765
|
-
percent: number;
|
|
766
|
-
}>>;
|
|
767
|
-
}, "strip", z.ZodTypeAny, {
|
|
768
|
-
flows?: string[] | undefined;
|
|
769
|
-
routes?: string[] | undefined;
|
|
770
|
-
bestObservability?: {
|
|
771
|
-
at: number;
|
|
772
|
-
percent: number;
|
|
773
|
-
} | undefined;
|
|
774
|
-
}, {
|
|
775
|
-
flows?: string[] | undefined;
|
|
776
|
-
routes?: string[] | undefined;
|
|
777
|
-
bestObservability?: {
|
|
778
|
-
at: number;
|
|
779
|
-
percent: number;
|
|
780
|
-
} | undefined;
|
|
781
|
-
}>>;
|
|
396
|
+
}, z.core.$strip>>;
|
|
397
|
+
}, z.core.$strip>>;
|
|
782
398
|
runs: z.ZodArray<z.ZodObject<{
|
|
783
|
-
kind: z.
|
|
399
|
+
kind: z.ZodEnum<{
|
|
784
400
|
readonly FLOW_REPLAY: "flow_replay";
|
|
785
401
|
readonly MANUAL: "manual";
|
|
786
402
|
}>;
|
|
787
403
|
name: z.ZodString;
|
|
788
|
-
status: z.
|
|
404
|
+
status: z.ZodEnum<{
|
|
789
405
|
readonly PASS: "pass";
|
|
790
406
|
readonly DRIFT: "drift";
|
|
791
407
|
readonly ERROR: "error";
|
|
@@ -797,88 +413,10 @@ export declare const ProjectFileSchema: z.ZodObject<{
|
|
|
797
413
|
consoleErrors: z.ZodOptional<z.ZodNumber>;
|
|
798
414
|
networkErrors: z.ZodOptional<z.ZodNumber>;
|
|
799
415
|
driftSteps: z.ZodOptional<z.ZodNumber>;
|
|
800
|
-
},
|
|
801
|
-
consoleErrors?: number | undefined;
|
|
802
|
-
networkErrors?: number | undefined;
|
|
803
|
-
driftSteps?: number | undefined;
|
|
804
|
-
}, {
|
|
805
|
-
consoleErrors?: number | undefined;
|
|
806
|
-
networkErrors?: number | undefined;
|
|
807
|
-
driftSteps?: number | undefined;
|
|
808
|
-
}>>;
|
|
416
|
+
}, z.core.$strip>>;
|
|
809
417
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
810
|
-
},
|
|
811
|
-
|
|
812
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
813
|
-
at: number;
|
|
814
|
-
name: string;
|
|
815
|
-
durationMs?: number | undefined;
|
|
816
|
-
evidence?: {
|
|
817
|
-
consoleErrors?: number | undefined;
|
|
818
|
-
networkErrors?: number | undefined;
|
|
819
|
-
driftSteps?: number | undefined;
|
|
820
|
-
} | undefined;
|
|
821
|
-
summary?: string | undefined;
|
|
822
|
-
}, {
|
|
823
|
-
kind: "flow_replay" | "manual";
|
|
824
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
825
|
-
at: number;
|
|
826
|
-
name: string;
|
|
827
|
-
durationMs?: number | undefined;
|
|
828
|
-
evidence?: {
|
|
829
|
-
consoleErrors?: number | undefined;
|
|
830
|
-
networkErrors?: number | undefined;
|
|
831
|
-
driftSteps?: number | undefined;
|
|
832
|
-
} | undefined;
|
|
833
|
-
summary?: string | undefined;
|
|
834
|
-
}>, "many">;
|
|
835
|
-
}, "strip", z.ZodTypeAny, {
|
|
836
|
-
runs: {
|
|
837
|
-
kind: "flow_replay" | "manual";
|
|
838
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
839
|
-
at: number;
|
|
840
|
-
name: string;
|
|
841
|
-
durationMs?: number | undefined;
|
|
842
|
-
evidence?: {
|
|
843
|
-
consoleErrors?: number | undefined;
|
|
844
|
-
networkErrors?: number | undefined;
|
|
845
|
-
driftSteps?: number | undefined;
|
|
846
|
-
} | undefined;
|
|
847
|
-
summary?: string | undefined;
|
|
848
|
-
}[];
|
|
849
|
-
version: 1;
|
|
850
|
-
learned?: {
|
|
851
|
-
flows?: string[] | undefined;
|
|
852
|
-
routes?: string[] | undefined;
|
|
853
|
-
bestObservability?: {
|
|
854
|
-
at: number;
|
|
855
|
-
percent: number;
|
|
856
|
-
} | undefined;
|
|
857
|
-
} | undefined;
|
|
858
|
-
}, {
|
|
859
|
-
runs: {
|
|
860
|
-
kind: "flow_replay" | "manual";
|
|
861
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
862
|
-
at: number;
|
|
863
|
-
name: string;
|
|
864
|
-
durationMs?: number | undefined;
|
|
865
|
-
evidence?: {
|
|
866
|
-
consoleErrors?: number | undefined;
|
|
867
|
-
networkErrors?: number | undefined;
|
|
868
|
-
driftSteps?: number | undefined;
|
|
869
|
-
} | undefined;
|
|
870
|
-
summary?: string | undefined;
|
|
871
|
-
}[];
|
|
872
|
-
version: 1;
|
|
873
|
-
learned?: {
|
|
874
|
-
flows?: string[] | undefined;
|
|
875
|
-
routes?: string[] | undefined;
|
|
876
|
-
bestObservability?: {
|
|
877
|
-
at: number;
|
|
878
|
-
percent: number;
|
|
879
|
-
} | undefined;
|
|
880
|
-
} | undefined;
|
|
881
|
-
}>;
|
|
418
|
+
}, z.core.$strip>>;
|
|
419
|
+
}, z.core.$strip>;
|
|
882
420
|
export type ProjectFile = z.infer<typeof ProjectFileSchema>;
|
|
883
421
|
/**
|
|
884
422
|
* The structured annotation REQUEST a human/agent attaches to the live
|
|
@@ -891,86 +429,30 @@ export type ProjectFile = z.infer<typeof ProjectFileSchema>;
|
|
|
891
429
|
* FUTURE; a `safeParse` of a bare string returns success:false, which the tool maps
|
|
892
430
|
* to AnnotationErrorCode.UNKNOWN_KIND. No NL parser exists or is faked here.
|
|
893
431
|
*/
|
|
894
|
-
export declare const AnnotationSchema: z.ZodDiscriminatedUnion<
|
|
432
|
+
export declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
895
433
|
kind: z.ZodLiteral<"assert-signal">;
|
|
896
434
|
name: z.ZodString;
|
|
897
435
|
dataMatches: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
898
|
-
},
|
|
899
|
-
kind: "assert-signal";
|
|
900
|
-
name: string;
|
|
901
|
-
dataMatches?: Record<string, unknown> | undefined;
|
|
902
|
-
}, {
|
|
903
|
-
kind: "assert-signal";
|
|
904
|
-
name: string;
|
|
905
|
-
dataMatches?: Record<string, unknown> | undefined;
|
|
906
|
-
}>, z.ZodObject<{
|
|
436
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
907
437
|
kind: z.ZodLiteral<"assert-visible">;
|
|
908
438
|
testid: z.ZodString;
|
|
909
|
-
},
|
|
910
|
-
kind: "assert-visible";
|
|
911
|
-
testid: string;
|
|
912
|
-
}, {
|
|
913
|
-
kind: "assert-visible";
|
|
914
|
-
testid: string;
|
|
915
|
-
}>, z.ZodObject<{
|
|
439
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
916
440
|
kind: z.ZodLiteral<"assert-state">;
|
|
917
441
|
statePath: z.ZodString;
|
|
918
442
|
store: z.ZodOptional<z.ZodString>;
|
|
919
443
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
920
|
-
},
|
|
921
|
-
kind: "assert-state";
|
|
922
|
-
statePath: string;
|
|
923
|
-
store?: string | undefined;
|
|
924
|
-
equals?: unknown;
|
|
925
|
-
}, {
|
|
926
|
-
kind: "assert-state";
|
|
927
|
-
statePath: string;
|
|
928
|
-
store?: string | undefined;
|
|
929
|
-
equals?: unknown;
|
|
930
|
-
}>, z.ZodObject<{
|
|
444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
931
445
|
kind: z.ZodLiteral<"assert-net">;
|
|
932
446
|
net: z.ZodObject<{
|
|
933
447
|
method: z.ZodOptional<z.ZodString>;
|
|
934
448
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
935
449
|
status: z.ZodOptional<z.ZodNumber>;
|
|
936
450
|
count: z.ZodOptional<z.ZodNumber>;
|
|
937
|
-
},
|
|
938
|
-
|
|
939
|
-
method?: string | undefined;
|
|
940
|
-
urlContains?: string | undefined;
|
|
941
|
-
count?: number | undefined;
|
|
942
|
-
}, {
|
|
943
|
-
status?: number | undefined;
|
|
944
|
-
method?: string | undefined;
|
|
945
|
-
urlContains?: string | undefined;
|
|
946
|
-
count?: number | undefined;
|
|
947
|
-
}>;
|
|
948
|
-
}, "strip", z.ZodTypeAny, {
|
|
949
|
-
net: {
|
|
950
|
-
status?: number | undefined;
|
|
951
|
-
method?: string | undefined;
|
|
952
|
-
urlContains?: string | undefined;
|
|
953
|
-
count?: number | undefined;
|
|
954
|
-
};
|
|
955
|
-
kind: "assert-net";
|
|
956
|
-
}, {
|
|
957
|
-
net: {
|
|
958
|
-
status?: number | undefined;
|
|
959
|
-
method?: string | undefined;
|
|
960
|
-
urlContains?: string | undefined;
|
|
961
|
-
count?: number | undefined;
|
|
962
|
-
};
|
|
963
|
-
kind: "assert-net";
|
|
964
|
-
}>, z.ZodObject<{
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
965
453
|
kind: z.ZodLiteral<"mark-dynamic">;
|
|
966
454
|
testid: z.ZodString;
|
|
967
|
-
},
|
|
968
|
-
kind: "mark-dynamic";
|
|
969
|
-
testid: string;
|
|
970
|
-
}, {
|
|
971
|
-
kind: "mark-dynamic";
|
|
972
|
-
testid: string;
|
|
973
|
-
}>, z.ZodObject<{
|
|
455
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
974
456
|
kind: z.ZodLiteral<"success-state">;
|
|
975
457
|
signal: z.ZodOptional<z.ZodString>;
|
|
976
458
|
testid: z.ZodOptional<z.ZodString>;
|
|
@@ -983,101 +465,21 @@ export declare const AnnotationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
983
465
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
984
466
|
status: z.ZodOptional<z.ZodNumber>;
|
|
985
467
|
count: z.ZodOptional<z.ZodNumber>;
|
|
986
|
-
},
|
|
987
|
-
status?: number | undefined;
|
|
988
|
-
method?: string | undefined;
|
|
989
|
-
urlContains?: string | undefined;
|
|
990
|
-
count?: number | undefined;
|
|
991
|
-
}, {
|
|
992
|
-
status?: number | undefined;
|
|
993
|
-
method?: string | undefined;
|
|
994
|
-
urlContains?: string | undefined;
|
|
995
|
-
count?: number | undefined;
|
|
996
|
-
}>>;
|
|
468
|
+
}, z.core.$strip>>;
|
|
997
469
|
console: z.ZodOptional<z.ZodObject<{
|
|
998
470
|
level: z.ZodOptional<z.ZodString>;
|
|
999
471
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
1000
|
-
},
|
|
1001
|
-
level?: string | undefined;
|
|
1002
|
-
absent?: boolean | undefined;
|
|
1003
|
-
}, {
|
|
1004
|
-
level?: string | undefined;
|
|
1005
|
-
absent?: boolean | undefined;
|
|
1006
|
-
}>>;
|
|
472
|
+
}, z.core.$strip>>;
|
|
1007
473
|
text: z.ZodOptional<z.ZodObject<{
|
|
1008
474
|
contains: z.ZodString;
|
|
1009
475
|
scope: z.ZodOptional<z.ZodString>;
|
|
1010
476
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
1011
477
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1012
|
-
},
|
|
1013
|
-
|
|
1014
|
-
visible?: boolean | undefined;
|
|
1015
|
-
scope?: string | undefined;
|
|
1016
|
-
absent?: boolean | undefined;
|
|
1017
|
-
}, {
|
|
1018
|
-
contains: string;
|
|
1019
|
-
visible?: boolean | undefined;
|
|
1020
|
-
scope?: string | undefined;
|
|
1021
|
-
absent?: boolean | undefined;
|
|
1022
|
-
}>>;
|
|
1023
|
-
}, "strip", z.ZodTypeAny, {
|
|
1024
|
-
kind: "success-state";
|
|
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
|
-
text?: {
|
|
1033
|
-
contains: string;
|
|
1034
|
-
visible?: boolean | undefined;
|
|
1035
|
-
scope?: string | undefined;
|
|
1036
|
-
absent?: boolean | undefined;
|
|
1037
|
-
} | undefined;
|
|
1038
|
-
console?: {
|
|
1039
|
-
level?: string | undefined;
|
|
1040
|
-
absent?: boolean | undefined;
|
|
1041
|
-
} | undefined;
|
|
1042
|
-
testid?: string | undefined;
|
|
1043
|
-
hold?: boolean | undefined;
|
|
1044
|
-
store?: string | undefined;
|
|
1045
|
-
statePath?: string | undefined;
|
|
1046
|
-
equals?: unknown;
|
|
1047
|
-
}, {
|
|
1048
|
-
kind: "success-state";
|
|
1049
|
-
signal?: string | undefined;
|
|
1050
|
-
net?: {
|
|
1051
|
-
status?: number | undefined;
|
|
1052
|
-
method?: string | undefined;
|
|
1053
|
-
urlContains?: string | undefined;
|
|
1054
|
-
count?: number | undefined;
|
|
1055
|
-
} | undefined;
|
|
1056
|
-
text?: {
|
|
1057
|
-
contains: string;
|
|
1058
|
-
visible?: boolean | undefined;
|
|
1059
|
-
scope?: string | undefined;
|
|
1060
|
-
absent?: boolean | undefined;
|
|
1061
|
-
} | undefined;
|
|
1062
|
-
console?: {
|
|
1063
|
-
level?: string | undefined;
|
|
1064
|
-
absent?: boolean | undefined;
|
|
1065
|
-
} | undefined;
|
|
1066
|
-
testid?: string | undefined;
|
|
1067
|
-
hold?: boolean | undefined;
|
|
1068
|
-
store?: string | undefined;
|
|
1069
|
-
statePath?: string | undefined;
|
|
1070
|
-
equals?: unknown;
|
|
1071
|
-
}>, z.ZodObject<{
|
|
478
|
+
}, z.core.$strip>>;
|
|
479
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1072
480
|
kind: z.ZodLiteral<"intent">;
|
|
1073
481
|
text: z.ZodString;
|
|
1074
|
-
},
|
|
1075
|
-
text: string;
|
|
1076
|
-
kind: "intent";
|
|
1077
|
-
}, {
|
|
1078
|
-
text: string;
|
|
1079
|
-
kind: "intent";
|
|
1080
|
-
}>]>;
|
|
482
|
+
}, z.core.$strip>], "kind">;
|
|
1081
483
|
export type Annotation = z.infer<typeof AnnotationSchema>;
|
|
1082
484
|
/**
|
|
1083
485
|
* The reticle_annotate result envelope (discriminated on `ok`, never a free
|