@reticlehq/core 3.8.0 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- package/dist/artifacts/flow-expect-flat.d.ts +8 -192
- package/dist/artifacts/flow-expect-flat.js +2 -2
- package/dist/artifacts/flow-results.d.ts +15 -0
- package/dist/artifacts/flow-types.d.ts +202 -2331
- package/dist/artifacts/flow-types.js +2 -2
- package/dist/artifacts/harness-map.d.ts +8 -69
- package/dist/artifacts/harness-map.js +1 -1
- package/dist/artifacts/hud-notices.d.ts +8 -82
- package/dist/artifacts/hud-notices.js +1 -1
- package/dist/artifacts/impact.d.ts +80 -1638
- package/dist/artifacts/impact.js +4 -4
- package/dist/artifacts/journal.d.ts +12 -247
- package/dist/artifacts/journal.js +2 -2
- package/dist/artifacts/prompt-context.d.ts +5 -43
- package/dist/artifacts/prompt-context.js +1 -1
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/onboarding.d.ts +8 -58
- package/dist/onboarding.js +1 -1
- package/dist/registry/daemon-registry.d.ts +2 -14
- package/dist/registry/daemon-registry.js +1 -1
- package/dist/registry/dev-server-registry.d.ts +2 -31
- package/dist/registry/dev-server-registry.js +1 -1
- package/dist/registry/project-registry.d.ts +4 -32
- package/dist/registry/project-registry.js +1 -1
- package/dist/schema/command-message.json +65 -68
- package/dist/schema/command-name.json +29 -33
- package/dist/schema/command-result.json +25 -30
- package/dist/schema/event-message.json +104 -103
- package/dist/schema/event-payloads.json +142 -119
- package/dist/schema/event-type.json +47 -50
- package/dist/schema/hello-message.json +150 -154
- package/dist/schema/reticle-event.json +98 -96
- package/dist/schema/reticle-message.json +338 -333
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-feedback.d.ts +11 -99
- package/dist/telemetry-feedback.js +1 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +39 -633
- package/dist/telemetry-session.js +10 -8
- package/dist/telemetry-signals.d.ts +58 -151
- package/dist/telemetry-signals.js +12 -1
- package/dist/telemetry.d.ts +137 -1814
- package/dist/telemetry.js +1 -1
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/instrumentation-coverage.d.ts +3 -3
- package/dist/verdict/instrumentation-coverage.js +1 -1
- package/dist/verdict/instrumentation-gap.d.ts +3 -10
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate.d.ts +1 -1
- package/dist/verdict/predicate.js +5 -5
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +13 -108
- package/dist/verdict/run-report.js +1 -1
- package/dist/verdict/security.d.ts +12 -0
- package/dist/verdict/security.js +94 -7
- package/dist/verdict/verification-run.d.ts +112 -1668
- package/dist/verdict/verification-run.js +4 -4
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/click-input.d.ts +15 -0
- package/dist/wire/click-input.js +42 -0
- package/dist/wire/constants/event-types.d.ts +2 -0
- package/dist/wire/constants/event-types.js +2 -0
- package/dist/wire/constants/response-body-reason.d.ts +4 -4
- package/dist/wire/constants/response-body-reason.js +4 -4
- package/dist/wire/constants/reticle-env.d.ts +2 -0
- package/dist/wire/constants/reticle-env.js +2 -0
- package/dist/wire/event-payloads.d.ts +108 -678
- package/dist/wire/event-payloads.js +24 -7
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +66 -755
- package/dist/wire/messages.js +3 -3
- package/dist/wire/next-step.d.ts +11 -51
- package/dist/wire/next-step.js +1 -1
- package/dist/wire/platform-link.js +2 -2
- package/dist/wire/production/production-policy.d.ts +37 -83
- package/dist/wire/production/production-policy.js +1 -1
- package/dist/wire/types.d.ts +75 -698
- package/dist/wire/types.js +5 -5
- package/dist/words/upgrade.d.ts +3 -13
- package/dist/words/upgrade.js +1 -1
- package/package.json +4 -5
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
|
-
scope?: string | undefined;
|
|
92
|
-
name?: string | undefined;
|
|
93
|
-
text?: string | undefined;
|
|
94
|
-
testid?: string | undefined;
|
|
95
|
-
role?: string | undefined;
|
|
96
|
-
component?: string | undefined;
|
|
97
|
-
label?: string | undefined;
|
|
98
|
-
placeholder?: string | undefined;
|
|
99
|
-
alt?: string | undefined;
|
|
100
|
-
value?: string | undefined;
|
|
101
|
-
source?: {
|
|
102
|
-
file: string;
|
|
103
|
-
line: number;
|
|
104
|
-
column?: number | undefined;
|
|
105
|
-
} | undefined;
|
|
106
|
-
by?: "text" | "testid" | "role" | "component" | "label" | "placeholder" | "alt" | undefined;
|
|
107
|
-
attrs?: string[] | undefined;
|
|
108
|
-
self?: boolean | undefined;
|
|
109
|
-
matchCase?: boolean | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
scope?: string | undefined;
|
|
112
|
-
name?: string | undefined;
|
|
113
|
-
text?: string | undefined;
|
|
114
|
-
testid?: string | undefined;
|
|
115
|
-
role?: string | undefined;
|
|
116
|
-
component?: string | undefined;
|
|
117
|
-
label?: string | undefined;
|
|
118
|
-
placeholder?: string | undefined;
|
|
119
|
-
alt?: string | undefined;
|
|
120
|
-
value?: string | undefined;
|
|
121
|
-
source?: {
|
|
122
|
-
file: string;
|
|
123
|
-
line: number;
|
|
124
|
-
column?: number | undefined;
|
|
125
|
-
} | undefined;
|
|
126
|
-
by?: "text" | "testid" | "role" | "component" | "label" | "placeholder" | "alt" | undefined;
|
|
127
|
-
attrs?: 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 {
|
|
@@ -298,21 +229,15 @@ export interface QueryResult {
|
|
|
298
229
|
/** One named flow advertised by the app (mirrors the browser CapabilityFlow). */
|
|
299
230
|
export declare const CapabilityFlowSchema: z.ZodObject<{
|
|
300
231
|
name: z.ZodString;
|
|
301
|
-
steps: z.ZodArray<z.ZodString
|
|
302
|
-
},
|
|
303
|
-
name: string;
|
|
304
|
-
steps: string[];
|
|
305
|
-
}, {
|
|
306
|
-
name: string;
|
|
307
|
-
steps: string[];
|
|
308
|
-
}>;
|
|
232
|
+
steps: z.ZodArray<z.ZodString>;
|
|
233
|
+
}, z.core.$strip>;
|
|
309
234
|
/**
|
|
310
235
|
* A declared risk zone — the app naming a surface (auth/payment/db/…) and the paths it covers, so a
|
|
311
236
|
* host can gate on it. Shares RiskSurface with the verification-run verdict so a declaration and a
|
|
312
237
|
* detection speak the same vocabulary. ENFORCED LATER — parsed + surfaced now.
|
|
313
238
|
*/
|
|
314
239
|
export declare const RiskZoneSchema: z.ZodObject<{
|
|
315
|
-
surface: z.
|
|
240
|
+
surface: z.ZodEnum<{
|
|
316
241
|
readonly AUTH: "auth";
|
|
317
242
|
readonly PAYMENT: "payment";
|
|
318
243
|
readonly DB: "db";
|
|
@@ -322,17 +247,9 @@ export declare const RiskZoneSchema: z.ZodObject<{
|
|
|
322
247
|
readonly DESTRUCTIVE: "destructive";
|
|
323
248
|
readonly EXTERNAL: "external";
|
|
324
249
|
}>;
|
|
325
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString
|
|
250
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
326
251
|
note: z.ZodOptional<z.ZodString>;
|
|
327
|
-
},
|
|
328
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
329
|
-
note?: string | undefined;
|
|
330
|
-
paths?: string[] | undefined;
|
|
331
|
-
}, {
|
|
332
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
333
|
-
note?: string | undefined;
|
|
334
|
-
paths?: string[] | undefined;
|
|
335
|
-
}>;
|
|
252
|
+
}, z.core.$strip>;
|
|
336
253
|
/**
|
|
337
254
|
* Optional governance metadata an app may declare about its testable surface: who owns it, safety
|
|
338
255
|
* invariants, allowed scopes, store paths/selectors to redact, and declared risk zones. All optional
|
|
@@ -341,11 +258,11 @@ export declare const RiskZoneSchema: z.ZodObject<{
|
|
|
341
258
|
*/
|
|
342
259
|
export declare const ManifestGovernanceSchema: z.ZodObject<{
|
|
343
260
|
owner: z.ZodOptional<z.ZodString>;
|
|
344
|
-
safety: z.ZodOptional<z.ZodArray<z.ZodString
|
|
345
|
-
scope: z.ZodOptional<z.ZodArray<z.ZodString
|
|
346
|
-
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>>;
|
|
347
264
|
risk: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
348
|
-
surface: z.
|
|
265
|
+
surface: z.ZodEnum<{
|
|
349
266
|
readonly AUTH: "auth";
|
|
350
267
|
readonly PAYMENT: "payment";
|
|
351
268
|
readonly DB: "db";
|
|
@@ -355,62 +272,27 @@ export declare const ManifestGovernanceSchema: z.ZodObject<{
|
|
|
355
272
|
readonly DESTRUCTIVE: "destructive";
|
|
356
273
|
readonly EXTERNAL: "external";
|
|
357
274
|
}>;
|
|
358
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString
|
|
275
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
359
276
|
note: z.ZodOptional<z.ZodString>;
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
note?: string | undefined;
|
|
363
|
-
paths?: string[] | undefined;
|
|
364
|
-
}, {
|
|
365
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
366
|
-
note?: string | undefined;
|
|
367
|
-
paths?: string[] | undefined;
|
|
368
|
-
}>, "many">>;
|
|
369
|
-
}, "strip", z.ZodTypeAny, {
|
|
370
|
-
scope?: string[] | undefined;
|
|
371
|
-
risk?: {
|
|
372
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
373
|
-
note?: string | undefined;
|
|
374
|
-
paths?: string[] | undefined;
|
|
375
|
-
}[] | undefined;
|
|
376
|
-
owner?: string | undefined;
|
|
377
|
-
safety?: string[] | undefined;
|
|
378
|
-
redact?: string[] | undefined;
|
|
379
|
-
}, {
|
|
380
|
-
scope?: string[] | undefined;
|
|
381
|
-
risk?: {
|
|
382
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
383
|
-
note?: string | undefined;
|
|
384
|
-
paths?: string[] | undefined;
|
|
385
|
-
}[] | undefined;
|
|
386
|
-
owner?: string | undefined;
|
|
387
|
-
safety?: string[] | undefined;
|
|
388
|
-
redact?: string[] | undefined;
|
|
389
|
-
}>;
|
|
277
|
+
}, z.core.$strip>>>;
|
|
278
|
+
}, z.core.$strip>;
|
|
390
279
|
export type ManifestGovernance = z.infer<typeof ManifestGovernanceSchema>;
|
|
391
280
|
/** The app's testable surface — persisted form of the browser Capabilities. */
|
|
392
281
|
export declare const CapabilitiesSchema: z.ZodObject<{
|
|
393
|
-
testids: z.ZodArray<z.ZodString
|
|
394
|
-
signals: z.ZodArray<z.ZodString
|
|
395
|
-
stores: z.ZodArray<z.ZodString
|
|
282
|
+
testids: z.ZodArray<z.ZodString>;
|
|
283
|
+
signals: z.ZodArray<z.ZodString>;
|
|
284
|
+
stores: z.ZodArray<z.ZodString>;
|
|
396
285
|
flows: z.ZodArray<z.ZodObject<{
|
|
397
286
|
name: z.ZodString;
|
|
398
|
-
steps: z.ZodArray<z.ZodString
|
|
399
|
-
},
|
|
400
|
-
name: string;
|
|
401
|
-
steps: string[];
|
|
402
|
-
}, {
|
|
403
|
-
name: string;
|
|
404
|
-
steps: string[];
|
|
405
|
-
}>, "many">;
|
|
406
|
-
/** Optional declared governance (owner/safety/scope/redact/risk). Additive — back-compat safe. */
|
|
287
|
+
steps: z.ZodArray<z.ZodString>;
|
|
288
|
+
}, z.core.$strip>>;
|
|
407
289
|
governance: z.ZodOptional<z.ZodObject<{
|
|
408
290
|
owner: z.ZodOptional<z.ZodString>;
|
|
409
|
-
safety: z.ZodOptional<z.ZodArray<z.ZodString
|
|
410
|
-
scope: z.ZodOptional<z.ZodArray<z.ZodString
|
|
411
|
-
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>>;
|
|
412
294
|
risk: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
413
|
-
surface: z.
|
|
295
|
+
surface: z.ZodEnum<{
|
|
414
296
|
readonly AUTH: "auth";
|
|
415
297
|
readonly PAYMENT: "payment";
|
|
416
298
|
readonly DB: "db";
|
|
@@ -420,104 +302,31 @@ export declare const CapabilitiesSchema: z.ZodObject<{
|
|
|
420
302
|
readonly DESTRUCTIVE: "destructive";
|
|
421
303
|
readonly EXTERNAL: "external";
|
|
422
304
|
}>;
|
|
423
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString
|
|
305
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
424
306
|
note: z.ZodOptional<z.ZodString>;
|
|
425
|
-
},
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
paths?: string[] | undefined;
|
|
429
|
-
}, {
|
|
430
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
431
|
-
note?: string | undefined;
|
|
432
|
-
paths?: string[] | undefined;
|
|
433
|
-
}>, "many">>;
|
|
434
|
-
}, "strip", z.ZodTypeAny, {
|
|
435
|
-
scope?: string[] | undefined;
|
|
436
|
-
risk?: {
|
|
437
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
438
|
-
note?: string | undefined;
|
|
439
|
-
paths?: string[] | undefined;
|
|
440
|
-
}[] | undefined;
|
|
441
|
-
owner?: string | undefined;
|
|
442
|
-
safety?: string[] | undefined;
|
|
443
|
-
redact?: string[] | undefined;
|
|
444
|
-
}, {
|
|
445
|
-
scope?: string[] | undefined;
|
|
446
|
-
risk?: {
|
|
447
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
448
|
-
note?: string | undefined;
|
|
449
|
-
paths?: string[] | undefined;
|
|
450
|
-
}[] | undefined;
|
|
451
|
-
owner?: string | undefined;
|
|
452
|
-
safety?: string[] | undefined;
|
|
453
|
-
redact?: string[] | undefined;
|
|
454
|
-
}>>;
|
|
455
|
-
}, "strip", z.ZodTypeAny, {
|
|
456
|
-
flows: {
|
|
457
|
-
name: string;
|
|
458
|
-
steps: string[];
|
|
459
|
-
}[];
|
|
460
|
-
testids: string[];
|
|
461
|
-
signals: string[];
|
|
462
|
-
stores: string[];
|
|
463
|
-
governance?: {
|
|
464
|
-
scope?: string[] | undefined;
|
|
465
|
-
risk?: {
|
|
466
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
467
|
-
note?: string | undefined;
|
|
468
|
-
paths?: string[] | undefined;
|
|
469
|
-
}[] | undefined;
|
|
470
|
-
owner?: string | undefined;
|
|
471
|
-
safety?: string[] | undefined;
|
|
472
|
-
redact?: string[] | undefined;
|
|
473
|
-
} | undefined;
|
|
474
|
-
}, {
|
|
475
|
-
flows: {
|
|
476
|
-
name: string;
|
|
477
|
-
steps: string[];
|
|
478
|
-
}[];
|
|
479
|
-
testids: string[];
|
|
480
|
-
signals: string[];
|
|
481
|
-
stores: string[];
|
|
482
|
-
governance?: {
|
|
483
|
-
scope?: string[] | undefined;
|
|
484
|
-
risk?: {
|
|
485
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
486
|
-
note?: string | undefined;
|
|
487
|
-
paths?: string[] | undefined;
|
|
488
|
-
}[] | undefined;
|
|
489
|
-
owner?: string | undefined;
|
|
490
|
-
safety?: string[] | undefined;
|
|
491
|
-
redact?: string[] | undefined;
|
|
492
|
-
} | undefined;
|
|
493
|
-
}>;
|
|
307
|
+
}, z.core.$strip>>>;
|
|
308
|
+
}, z.core.$strip>>;
|
|
309
|
+
}, z.core.$strip>;
|
|
494
310
|
export type CapabilitiesContract = z.infer<typeof CapabilitiesSchema>;
|
|
495
311
|
/** The on-disk contract.json envelope: versioned + timestamped capabilities. */
|
|
496
312
|
export declare const ContractFileSchema: z.ZodObject<{
|
|
497
313
|
version: z.ZodLiteral<1>;
|
|
498
314
|
generatedAt: z.ZodNumber;
|
|
499
315
|
capabilities: z.ZodObject<{
|
|
500
|
-
testids: z.ZodArray<z.ZodString
|
|
501
|
-
signals: z.ZodArray<z.ZodString
|
|
502
|
-
stores: z.ZodArray<z.ZodString
|
|
316
|
+
testids: z.ZodArray<z.ZodString>;
|
|
317
|
+
signals: z.ZodArray<z.ZodString>;
|
|
318
|
+
stores: z.ZodArray<z.ZodString>;
|
|
503
319
|
flows: z.ZodArray<z.ZodObject<{
|
|
504
320
|
name: z.ZodString;
|
|
505
|
-
steps: z.ZodArray<z.ZodString
|
|
506
|
-
},
|
|
507
|
-
name: string;
|
|
508
|
-
steps: string[];
|
|
509
|
-
}, {
|
|
510
|
-
name: string;
|
|
511
|
-
steps: string[];
|
|
512
|
-
}>, "many">;
|
|
513
|
-
/** Optional declared governance (owner/safety/scope/redact/risk). Additive — back-compat safe. */
|
|
321
|
+
steps: z.ZodArray<z.ZodString>;
|
|
322
|
+
}, z.core.$strip>>;
|
|
514
323
|
governance: z.ZodOptional<z.ZodObject<{
|
|
515
324
|
owner: z.ZodOptional<z.ZodString>;
|
|
516
|
-
safety: z.ZodOptional<z.ZodArray<z.ZodString
|
|
517
|
-
scope: z.ZodOptional<z.ZodArray<z.ZodString
|
|
518
|
-
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>>;
|
|
519
328
|
risk: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
520
|
-
surface: z.
|
|
329
|
+
surface: z.ZodEnum<{
|
|
521
330
|
readonly AUTH: "auth";
|
|
522
331
|
readonly PAYMENT: "payment";
|
|
523
332
|
readonly DB: "db";
|
|
@@ -527,124 +336,12 @@ export declare const ContractFileSchema: z.ZodObject<{
|
|
|
527
336
|
readonly DESTRUCTIVE: "destructive";
|
|
528
337
|
readonly EXTERNAL: "external";
|
|
529
338
|
}>;
|
|
530
|
-
paths: z.ZodOptional<z.ZodArray<z.ZodString
|
|
339
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
531
340
|
note: z.ZodOptional<z.ZodString>;
|
|
532
|
-
},
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
}, {
|
|
537
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
538
|
-
note?: string | undefined;
|
|
539
|
-
paths?: string[] | undefined;
|
|
540
|
-
}>, "many">>;
|
|
541
|
-
}, "strip", z.ZodTypeAny, {
|
|
542
|
-
scope?: string[] | undefined;
|
|
543
|
-
risk?: {
|
|
544
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
545
|
-
note?: string | undefined;
|
|
546
|
-
paths?: string[] | undefined;
|
|
547
|
-
}[] | undefined;
|
|
548
|
-
owner?: string | undefined;
|
|
549
|
-
safety?: string[] | undefined;
|
|
550
|
-
redact?: string[] | undefined;
|
|
551
|
-
}, {
|
|
552
|
-
scope?: string[] | undefined;
|
|
553
|
-
risk?: {
|
|
554
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
555
|
-
note?: string | undefined;
|
|
556
|
-
paths?: string[] | undefined;
|
|
557
|
-
}[] | undefined;
|
|
558
|
-
owner?: string | undefined;
|
|
559
|
-
safety?: string[] | undefined;
|
|
560
|
-
redact?: string[] | undefined;
|
|
561
|
-
}>>;
|
|
562
|
-
}, "strip", z.ZodTypeAny, {
|
|
563
|
-
flows: {
|
|
564
|
-
name: string;
|
|
565
|
-
steps: string[];
|
|
566
|
-
}[];
|
|
567
|
-
testids: string[];
|
|
568
|
-
signals: string[];
|
|
569
|
-
stores: string[];
|
|
570
|
-
governance?: {
|
|
571
|
-
scope?: string[] | undefined;
|
|
572
|
-
risk?: {
|
|
573
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
574
|
-
note?: string | undefined;
|
|
575
|
-
paths?: string[] | undefined;
|
|
576
|
-
}[] | undefined;
|
|
577
|
-
owner?: string | undefined;
|
|
578
|
-
safety?: string[] | undefined;
|
|
579
|
-
redact?: string[] | undefined;
|
|
580
|
-
} | undefined;
|
|
581
|
-
}, {
|
|
582
|
-
flows: {
|
|
583
|
-
name: string;
|
|
584
|
-
steps: string[];
|
|
585
|
-
}[];
|
|
586
|
-
testids: string[];
|
|
587
|
-
signals: string[];
|
|
588
|
-
stores: string[];
|
|
589
|
-
governance?: {
|
|
590
|
-
scope?: string[] | undefined;
|
|
591
|
-
risk?: {
|
|
592
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
593
|
-
note?: string | undefined;
|
|
594
|
-
paths?: string[] | undefined;
|
|
595
|
-
}[] | undefined;
|
|
596
|
-
owner?: string | undefined;
|
|
597
|
-
safety?: string[] | undefined;
|
|
598
|
-
redact?: string[] | undefined;
|
|
599
|
-
} | undefined;
|
|
600
|
-
}>;
|
|
601
|
-
}, "strip", z.ZodTypeAny, {
|
|
602
|
-
capabilities: {
|
|
603
|
-
flows: {
|
|
604
|
-
name: string;
|
|
605
|
-
steps: string[];
|
|
606
|
-
}[];
|
|
607
|
-
testids: string[];
|
|
608
|
-
signals: string[];
|
|
609
|
-
stores: string[];
|
|
610
|
-
governance?: {
|
|
611
|
-
scope?: string[] | undefined;
|
|
612
|
-
risk?: {
|
|
613
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
614
|
-
note?: string | undefined;
|
|
615
|
-
paths?: string[] | undefined;
|
|
616
|
-
}[] | undefined;
|
|
617
|
-
owner?: string | undefined;
|
|
618
|
-
safety?: string[] | undefined;
|
|
619
|
-
redact?: string[] | undefined;
|
|
620
|
-
} | undefined;
|
|
621
|
-
};
|
|
622
|
-
version: 1;
|
|
623
|
-
generatedAt: number;
|
|
624
|
-
}, {
|
|
625
|
-
capabilities: {
|
|
626
|
-
flows: {
|
|
627
|
-
name: string;
|
|
628
|
-
steps: string[];
|
|
629
|
-
}[];
|
|
630
|
-
testids: string[];
|
|
631
|
-
signals: string[];
|
|
632
|
-
stores: string[];
|
|
633
|
-
governance?: {
|
|
634
|
-
scope?: string[] | undefined;
|
|
635
|
-
risk?: {
|
|
636
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
637
|
-
note?: string | undefined;
|
|
638
|
-
paths?: string[] | undefined;
|
|
639
|
-
}[] | undefined;
|
|
640
|
-
owner?: string | undefined;
|
|
641
|
-
safety?: string[] | undefined;
|
|
642
|
-
redact?: string[] | undefined;
|
|
643
|
-
} | undefined;
|
|
644
|
-
};
|
|
645
|
-
version: 1;
|
|
646
|
-
generatedAt: number;
|
|
647
|
-
}>;
|
|
341
|
+
}, z.core.$strip>>>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
}, z.core.$strip>;
|
|
648
345
|
/**
|
|
649
346
|
* Evidence counts captured with a run so the agent can compare runs over time
|
|
650
347
|
* ("console errors went 0→3 since last run"). All optional: a run records only what it observed.
|
|
@@ -653,23 +350,15 @@ export declare const RunEvidenceSchema: z.ZodObject<{
|
|
|
653
350
|
consoleErrors: z.ZodOptional<z.ZodNumber>;
|
|
654
351
|
networkErrors: z.ZodOptional<z.ZodNumber>;
|
|
655
352
|
driftSteps: z.ZodOptional<z.ZodNumber>;
|
|
656
|
-
},
|
|
657
|
-
consoleErrors?: number | undefined;
|
|
658
|
-
networkErrors?: number | undefined;
|
|
659
|
-
driftSteps?: number | undefined;
|
|
660
|
-
}, {
|
|
661
|
-
consoleErrors?: number | undefined;
|
|
662
|
-
networkErrors?: number | undefined;
|
|
663
|
-
driftSteps?: number | undefined;
|
|
664
|
-
}>;
|
|
353
|
+
}, z.core.$strip>;
|
|
665
354
|
/** One persisted run outcome in .reticle/project.json. */
|
|
666
355
|
export declare const RunRecordSchema: z.ZodObject<{
|
|
667
|
-
kind: z.
|
|
356
|
+
kind: z.ZodEnum<{
|
|
668
357
|
readonly FLOW_REPLAY: "flow_replay";
|
|
669
358
|
readonly MANUAL: "manual";
|
|
670
359
|
}>;
|
|
671
360
|
name: z.ZodString;
|
|
672
|
-
status: z.
|
|
361
|
+
status: z.ZodEnum<{
|
|
673
362
|
readonly PASS: "pass";
|
|
674
363
|
readonly DRIFT: "drift";
|
|
675
364
|
readonly ERROR: "error";
|
|
@@ -681,136 +370,38 @@ export declare const RunRecordSchema: z.ZodObject<{
|
|
|
681
370
|
consoleErrors: z.ZodOptional<z.ZodNumber>;
|
|
682
371
|
networkErrors: z.ZodOptional<z.ZodNumber>;
|
|
683
372
|
driftSteps: z.ZodOptional<z.ZodNumber>;
|
|
684
|
-
},
|
|
685
|
-
consoleErrors?: number | undefined;
|
|
686
|
-
networkErrors?: number | undefined;
|
|
687
|
-
driftSteps?: number | undefined;
|
|
688
|
-
}, {
|
|
689
|
-
consoleErrors?: number | undefined;
|
|
690
|
-
networkErrors?: number | undefined;
|
|
691
|
-
driftSteps?: number | undefined;
|
|
692
|
-
}>>;
|
|
373
|
+
}, z.core.$strip>>;
|
|
693
374
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
694
|
-
},
|
|
695
|
-
name: string;
|
|
696
|
-
at: number;
|
|
697
|
-
kind: "flow_replay" | "manual";
|
|
698
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
699
|
-
durationMs?: number | undefined;
|
|
700
|
-
evidence?: {
|
|
701
|
-
consoleErrors?: number | undefined;
|
|
702
|
-
networkErrors?: number | undefined;
|
|
703
|
-
driftSteps?: number | undefined;
|
|
704
|
-
} | undefined;
|
|
705
|
-
summary?: string | undefined;
|
|
706
|
-
}, {
|
|
707
|
-
name: string;
|
|
708
|
-
at: number;
|
|
709
|
-
kind: "flow_replay" | "manual";
|
|
710
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
711
|
-
durationMs?: number | undefined;
|
|
712
|
-
evidence?: {
|
|
713
|
-
consoleErrors?: number | undefined;
|
|
714
|
-
networkErrors?: number | undefined;
|
|
715
|
-
driftSteps?: number | undefined;
|
|
716
|
-
} | undefined;
|
|
717
|
-
summary?: string | undefined;
|
|
718
|
-
}>;
|
|
375
|
+
}, z.core.$strip>;
|
|
719
376
|
export type RunRecord = z.infer<typeof RunRecordSchema>;
|
|
720
377
|
/** The optional learned map of the app (known flow/route names). */
|
|
721
378
|
export declare const ProjectLearnedSchema: z.ZodObject<{
|
|
722
|
-
flows: z.ZodOptional<z.ZodArray<z.ZodString
|
|
723
|
-
routes: z.ZodOptional<z.ZodArray<z.ZodString
|
|
724
|
-
/**
|
|
725
|
-
* The highest observability this project has ever reached — of the controls a session drove, the
|
|
726
|
-
* share Reticle could fully observe.
|
|
727
|
-
*
|
|
728
|
-
* Kept so a LATER run can be told it fell. A coverage figure with no floor under it is one that
|
|
729
|
-
* gets gamed, and the cheapest way to stop a gap firing is to stop asserting the thing that
|
|
730
|
-
* revealed it — so the number and its guard ship together or neither is worth having. Same
|
|
731
|
-
* reasoning as the assertion-tier ledger, which records what a flow asserted the last time it
|
|
732
|
-
* PASSED for exactly this reason.
|
|
733
|
-
*
|
|
734
|
-
* Optional and additive: absent means "no best yet", which is the honest state of every project
|
|
735
|
-
* that predates this field, and is why the file version does not move.
|
|
736
|
-
*/
|
|
379
|
+
flows: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
380
|
+
routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
737
381
|
bestObservability: z.ZodOptional<z.ZodObject<{
|
|
738
382
|
percent: z.ZodNumber;
|
|
739
383
|
at: z.ZodNumber;
|
|
740
|
-
},
|
|
741
|
-
|
|
742
|
-
percent: number;
|
|
743
|
-
}, {
|
|
744
|
-
at: number;
|
|
745
|
-
percent: number;
|
|
746
|
-
}>>;
|
|
747
|
-
}, "strip", z.ZodTypeAny, {
|
|
748
|
-
flows?: string[] | undefined;
|
|
749
|
-
routes?: string[] | undefined;
|
|
750
|
-
bestObservability?: {
|
|
751
|
-
at: number;
|
|
752
|
-
percent: number;
|
|
753
|
-
} | undefined;
|
|
754
|
-
}, {
|
|
755
|
-
flows?: string[] | undefined;
|
|
756
|
-
routes?: string[] | undefined;
|
|
757
|
-
bestObservability?: {
|
|
758
|
-
at: number;
|
|
759
|
-
percent: number;
|
|
760
|
-
} | undefined;
|
|
761
|
-
}>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
}, z.core.$strip>;
|
|
762
386
|
export type ProjectLearned = z.infer<typeof ProjectLearnedSchema>;
|
|
763
387
|
/** The on-disk project.json envelope: versioned learned-map + chronological runs. */
|
|
764
388
|
export declare const ProjectFileSchema: z.ZodObject<{
|
|
765
389
|
version: z.ZodLiteral<1>;
|
|
766
390
|
learned: z.ZodOptional<z.ZodObject<{
|
|
767
|
-
flows: z.ZodOptional<z.ZodArray<z.ZodString
|
|
768
|
-
routes: z.ZodOptional<z.ZodArray<z.ZodString
|
|
769
|
-
/**
|
|
770
|
-
* The highest observability this project has ever reached — of the controls a session drove, the
|
|
771
|
-
* share Reticle could fully observe.
|
|
772
|
-
*
|
|
773
|
-
* Kept so a LATER run can be told it fell. A coverage figure with no floor under it is one that
|
|
774
|
-
* gets gamed, and the cheapest way to stop a gap firing is to stop asserting the thing that
|
|
775
|
-
* revealed it — so the number and its guard ship together or neither is worth having. Same
|
|
776
|
-
* reasoning as the assertion-tier ledger, which records what a flow asserted the last time it
|
|
777
|
-
* PASSED for exactly this reason.
|
|
778
|
-
*
|
|
779
|
-
* Optional and additive: absent means "no best yet", which is the honest state of every project
|
|
780
|
-
* that predates this field, and is why the file version does not move.
|
|
781
|
-
*/
|
|
391
|
+
flows: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
392
|
+
routes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
782
393
|
bestObservability: z.ZodOptional<z.ZodObject<{
|
|
783
394
|
percent: z.ZodNumber;
|
|
784
395
|
at: z.ZodNumber;
|
|
785
|
-
},
|
|
786
|
-
|
|
787
|
-
percent: number;
|
|
788
|
-
}, {
|
|
789
|
-
at: number;
|
|
790
|
-
percent: number;
|
|
791
|
-
}>>;
|
|
792
|
-
}, "strip", z.ZodTypeAny, {
|
|
793
|
-
flows?: string[] | undefined;
|
|
794
|
-
routes?: string[] | undefined;
|
|
795
|
-
bestObservability?: {
|
|
796
|
-
at: number;
|
|
797
|
-
percent: number;
|
|
798
|
-
} | undefined;
|
|
799
|
-
}, {
|
|
800
|
-
flows?: string[] | undefined;
|
|
801
|
-
routes?: string[] | undefined;
|
|
802
|
-
bestObservability?: {
|
|
803
|
-
at: number;
|
|
804
|
-
percent: number;
|
|
805
|
-
} | undefined;
|
|
806
|
-
}>>;
|
|
396
|
+
}, z.core.$strip>>;
|
|
397
|
+
}, z.core.$strip>>;
|
|
807
398
|
runs: z.ZodArray<z.ZodObject<{
|
|
808
|
-
kind: z.
|
|
399
|
+
kind: z.ZodEnum<{
|
|
809
400
|
readonly FLOW_REPLAY: "flow_replay";
|
|
810
401
|
readonly MANUAL: "manual";
|
|
811
402
|
}>;
|
|
812
403
|
name: z.ZodString;
|
|
813
|
-
status: z.
|
|
404
|
+
status: z.ZodEnum<{
|
|
814
405
|
readonly PASS: "pass";
|
|
815
406
|
readonly DRIFT: "drift";
|
|
816
407
|
readonly ERROR: "error";
|
|
@@ -822,88 +413,10 @@ export declare const ProjectFileSchema: z.ZodObject<{
|
|
|
822
413
|
consoleErrors: z.ZodOptional<z.ZodNumber>;
|
|
823
414
|
networkErrors: z.ZodOptional<z.ZodNumber>;
|
|
824
415
|
driftSteps: z.ZodOptional<z.ZodNumber>;
|
|
825
|
-
},
|
|
826
|
-
consoleErrors?: number | undefined;
|
|
827
|
-
networkErrors?: number | undefined;
|
|
828
|
-
driftSteps?: number | undefined;
|
|
829
|
-
}, {
|
|
830
|
-
consoleErrors?: number | undefined;
|
|
831
|
-
networkErrors?: number | undefined;
|
|
832
|
-
driftSteps?: number | undefined;
|
|
833
|
-
}>>;
|
|
416
|
+
}, z.core.$strip>>;
|
|
834
417
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
835
|
-
},
|
|
836
|
-
|
|
837
|
-
at: number;
|
|
838
|
-
kind: "flow_replay" | "manual";
|
|
839
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
840
|
-
durationMs?: number | undefined;
|
|
841
|
-
evidence?: {
|
|
842
|
-
consoleErrors?: number | undefined;
|
|
843
|
-
networkErrors?: number | undefined;
|
|
844
|
-
driftSteps?: number | undefined;
|
|
845
|
-
} | undefined;
|
|
846
|
-
summary?: string | undefined;
|
|
847
|
-
}, {
|
|
848
|
-
name: string;
|
|
849
|
-
at: number;
|
|
850
|
-
kind: "flow_replay" | "manual";
|
|
851
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
852
|
-
durationMs?: number | undefined;
|
|
853
|
-
evidence?: {
|
|
854
|
-
consoleErrors?: number | undefined;
|
|
855
|
-
networkErrors?: number | undefined;
|
|
856
|
-
driftSteps?: number | undefined;
|
|
857
|
-
} | undefined;
|
|
858
|
-
summary?: string | undefined;
|
|
859
|
-
}>, "many">;
|
|
860
|
-
}, "strip", z.ZodTypeAny, {
|
|
861
|
-
runs: {
|
|
862
|
-
name: string;
|
|
863
|
-
at: number;
|
|
864
|
-
kind: "flow_replay" | "manual";
|
|
865
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
866
|
-
durationMs?: number | undefined;
|
|
867
|
-
evidence?: {
|
|
868
|
-
consoleErrors?: number | undefined;
|
|
869
|
-
networkErrors?: number | undefined;
|
|
870
|
-
driftSteps?: number | undefined;
|
|
871
|
-
} | undefined;
|
|
872
|
-
summary?: string | undefined;
|
|
873
|
-
}[];
|
|
874
|
-
version: 1;
|
|
875
|
-
learned?: {
|
|
876
|
-
flows?: string[] | undefined;
|
|
877
|
-
routes?: string[] | undefined;
|
|
878
|
-
bestObservability?: {
|
|
879
|
-
at: number;
|
|
880
|
-
percent: number;
|
|
881
|
-
} | undefined;
|
|
882
|
-
} | undefined;
|
|
883
|
-
}, {
|
|
884
|
-
runs: {
|
|
885
|
-
name: string;
|
|
886
|
-
at: number;
|
|
887
|
-
kind: "flow_replay" | "manual";
|
|
888
|
-
status: "pass" | "drift" | "error" | "fail";
|
|
889
|
-
durationMs?: number | undefined;
|
|
890
|
-
evidence?: {
|
|
891
|
-
consoleErrors?: number | undefined;
|
|
892
|
-
networkErrors?: number | undefined;
|
|
893
|
-
driftSteps?: number | undefined;
|
|
894
|
-
} | undefined;
|
|
895
|
-
summary?: string | undefined;
|
|
896
|
-
}[];
|
|
897
|
-
version: 1;
|
|
898
|
-
learned?: {
|
|
899
|
-
flows?: string[] | undefined;
|
|
900
|
-
routes?: string[] | undefined;
|
|
901
|
-
bestObservability?: {
|
|
902
|
-
at: number;
|
|
903
|
-
percent: number;
|
|
904
|
-
} | undefined;
|
|
905
|
-
} | undefined;
|
|
906
|
-
}>;
|
|
418
|
+
}, z.core.$strip>>;
|
|
419
|
+
}, z.core.$strip>;
|
|
907
420
|
export type ProjectFile = z.infer<typeof ProjectFileSchema>;
|
|
908
421
|
/**
|
|
909
422
|
* The structured annotation REQUEST a human/agent attaches to the live
|
|
@@ -916,86 +429,30 @@ export type ProjectFile = z.infer<typeof ProjectFileSchema>;
|
|
|
916
429
|
* FUTURE; a `safeParse` of a bare string returns success:false, which the tool maps
|
|
917
430
|
* to AnnotationErrorCode.UNKNOWN_KIND. No NL parser exists or is faked here.
|
|
918
431
|
*/
|
|
919
|
-
export declare const AnnotationSchema: z.ZodDiscriminatedUnion<
|
|
432
|
+
export declare const AnnotationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
920
433
|
kind: z.ZodLiteral<"assert-signal">;
|
|
921
434
|
name: z.ZodString;
|
|
922
435
|
dataMatches: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
923
|
-
},
|
|
924
|
-
name: string;
|
|
925
|
-
kind: "assert-signal";
|
|
926
|
-
dataMatches?: Record<string, unknown> | undefined;
|
|
927
|
-
}, {
|
|
928
|
-
name: string;
|
|
929
|
-
kind: "assert-signal";
|
|
930
|
-
dataMatches?: Record<string, unknown> | undefined;
|
|
931
|
-
}>, z.ZodObject<{
|
|
436
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
932
437
|
kind: z.ZodLiteral<"assert-visible">;
|
|
933
438
|
testid: z.ZodString;
|
|
934
|
-
},
|
|
935
|
-
kind: "assert-visible";
|
|
936
|
-
testid: string;
|
|
937
|
-
}, {
|
|
938
|
-
kind: "assert-visible";
|
|
939
|
-
testid: string;
|
|
940
|
-
}>, z.ZodObject<{
|
|
439
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
941
440
|
kind: z.ZodLiteral<"assert-state">;
|
|
942
441
|
statePath: z.ZodString;
|
|
943
442
|
store: z.ZodOptional<z.ZodString>;
|
|
944
443
|
equals: z.ZodOptional<z.ZodUnknown>;
|
|
945
|
-
},
|
|
946
|
-
kind: "assert-state";
|
|
947
|
-
statePath: string;
|
|
948
|
-
store?: string | undefined;
|
|
949
|
-
equals?: unknown;
|
|
950
|
-
}, {
|
|
951
|
-
kind: "assert-state";
|
|
952
|
-
statePath: string;
|
|
953
|
-
store?: string | undefined;
|
|
954
|
-
equals?: unknown;
|
|
955
|
-
}>, z.ZodObject<{
|
|
444
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
956
445
|
kind: z.ZodLiteral<"assert-net">;
|
|
957
446
|
net: z.ZodObject<{
|
|
958
447
|
method: z.ZodOptional<z.ZodString>;
|
|
959
448
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
960
449
|
status: z.ZodOptional<z.ZodNumber>;
|
|
961
450
|
count: z.ZodOptional<z.ZodNumber>;
|
|
962
|
-
},
|
|
963
|
-
|
|
964
|
-
method?: string | undefined;
|
|
965
|
-
urlContains?: string | undefined;
|
|
966
|
-
count?: number | undefined;
|
|
967
|
-
}, {
|
|
968
|
-
status?: number | undefined;
|
|
969
|
-
method?: string | undefined;
|
|
970
|
-
urlContains?: string | undefined;
|
|
971
|
-
count?: number | undefined;
|
|
972
|
-
}>;
|
|
973
|
-
}, "strip", z.ZodTypeAny, {
|
|
974
|
-
net: {
|
|
975
|
-
status?: number | undefined;
|
|
976
|
-
method?: string | undefined;
|
|
977
|
-
urlContains?: string | undefined;
|
|
978
|
-
count?: number | undefined;
|
|
979
|
-
};
|
|
980
|
-
kind: "assert-net";
|
|
981
|
-
}, {
|
|
982
|
-
net: {
|
|
983
|
-
status?: number | undefined;
|
|
984
|
-
method?: string | undefined;
|
|
985
|
-
urlContains?: string | undefined;
|
|
986
|
-
count?: number | undefined;
|
|
987
|
-
};
|
|
988
|
-
kind: "assert-net";
|
|
989
|
-
}>, z.ZodObject<{
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
990
453
|
kind: z.ZodLiteral<"mark-dynamic">;
|
|
991
454
|
testid: z.ZodString;
|
|
992
|
-
},
|
|
993
|
-
kind: "mark-dynamic";
|
|
994
|
-
testid: string;
|
|
995
|
-
}, {
|
|
996
|
-
kind: "mark-dynamic";
|
|
997
|
-
testid: string;
|
|
998
|
-
}>, z.ZodObject<{
|
|
455
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
999
456
|
kind: z.ZodLiteral<"success-state">;
|
|
1000
457
|
signal: z.ZodOptional<z.ZodString>;
|
|
1001
458
|
testid: z.ZodOptional<z.ZodString>;
|
|
@@ -1008,101 +465,21 @@ export declare const AnnotationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1008
465
|
urlContains: z.ZodOptional<z.ZodString>;
|
|
1009
466
|
status: z.ZodOptional<z.ZodNumber>;
|
|
1010
467
|
count: z.ZodOptional<z.ZodNumber>;
|
|
1011
|
-
},
|
|
1012
|
-
status?: number | undefined;
|
|
1013
|
-
method?: string | undefined;
|
|
1014
|
-
urlContains?: string | undefined;
|
|
1015
|
-
count?: number | undefined;
|
|
1016
|
-
}, {
|
|
1017
|
-
status?: number | undefined;
|
|
1018
|
-
method?: string | undefined;
|
|
1019
|
-
urlContains?: string | undefined;
|
|
1020
|
-
count?: number | undefined;
|
|
1021
|
-
}>>;
|
|
468
|
+
}, z.core.$strip>>;
|
|
1022
469
|
console: z.ZodOptional<z.ZodObject<{
|
|
1023
470
|
level: z.ZodOptional<z.ZodString>;
|
|
1024
471
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
1025
|
-
},
|
|
1026
|
-
level?: string | undefined;
|
|
1027
|
-
absent?: boolean | undefined;
|
|
1028
|
-
}, {
|
|
1029
|
-
level?: string | undefined;
|
|
1030
|
-
absent?: boolean | undefined;
|
|
1031
|
-
}>>;
|
|
472
|
+
}, z.core.$strip>>;
|
|
1032
473
|
text: z.ZodOptional<z.ZodObject<{
|
|
1033
474
|
contains: z.ZodString;
|
|
1034
475
|
scope: z.ZodOptional<z.ZodString>;
|
|
1035
476
|
absent: z.ZodOptional<z.ZodBoolean>;
|
|
1036
477
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1037
|
-
},
|
|
1038
|
-
|
|
1039
|
-
scope?: string | undefined;
|
|
1040
|
-
visible?: boolean | undefined;
|
|
1041
|
-
absent?: boolean | undefined;
|
|
1042
|
-
}, {
|
|
1043
|
-
contains: string;
|
|
1044
|
-
scope?: string | undefined;
|
|
1045
|
-
visible?: boolean | undefined;
|
|
1046
|
-
absent?: boolean | undefined;
|
|
1047
|
-
}>>;
|
|
1048
|
-
}, "strip", z.ZodTypeAny, {
|
|
1049
|
-
kind: "success-state";
|
|
1050
|
-
signal?: string | undefined;
|
|
1051
|
-
net?: {
|
|
1052
|
-
status?: number | undefined;
|
|
1053
|
-
method?: string | undefined;
|
|
1054
|
-
urlContains?: string | undefined;
|
|
1055
|
-
count?: number | undefined;
|
|
1056
|
-
} | undefined;
|
|
1057
|
-
text?: {
|
|
1058
|
-
contains: string;
|
|
1059
|
-
scope?: string | undefined;
|
|
1060
|
-
visible?: boolean | undefined;
|
|
1061
|
-
absent?: boolean | undefined;
|
|
1062
|
-
} | undefined;
|
|
1063
|
-
console?: {
|
|
1064
|
-
level?: string | undefined;
|
|
1065
|
-
absent?: boolean | undefined;
|
|
1066
|
-
} | undefined;
|
|
1067
|
-
testid?: string | undefined;
|
|
1068
|
-
hold?: boolean | undefined;
|
|
1069
|
-
store?: string | undefined;
|
|
1070
|
-
statePath?: string | undefined;
|
|
1071
|
-
equals?: unknown;
|
|
1072
|
-
}, {
|
|
1073
|
-
kind: "success-state";
|
|
1074
|
-
signal?: string | undefined;
|
|
1075
|
-
net?: {
|
|
1076
|
-
status?: number | undefined;
|
|
1077
|
-
method?: string | undefined;
|
|
1078
|
-
urlContains?: string | undefined;
|
|
1079
|
-
count?: number | undefined;
|
|
1080
|
-
} | undefined;
|
|
1081
|
-
text?: {
|
|
1082
|
-
contains: string;
|
|
1083
|
-
scope?: string | undefined;
|
|
1084
|
-
visible?: boolean | undefined;
|
|
1085
|
-
absent?: boolean | undefined;
|
|
1086
|
-
} | undefined;
|
|
1087
|
-
console?: {
|
|
1088
|
-
level?: string | undefined;
|
|
1089
|
-
absent?: boolean | undefined;
|
|
1090
|
-
} | undefined;
|
|
1091
|
-
testid?: string | undefined;
|
|
1092
|
-
hold?: boolean | undefined;
|
|
1093
|
-
store?: string | undefined;
|
|
1094
|
-
statePath?: string | undefined;
|
|
1095
|
-
equals?: unknown;
|
|
1096
|
-
}>, z.ZodObject<{
|
|
478
|
+
}, z.core.$strip>>;
|
|
479
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1097
480
|
kind: z.ZodLiteral<"intent">;
|
|
1098
481
|
text: z.ZodString;
|
|
1099
|
-
},
|
|
1100
|
-
text: string;
|
|
1101
|
-
kind: "intent";
|
|
1102
|
-
}, {
|
|
1103
|
-
text: string;
|
|
1104
|
-
kind: "intent";
|
|
1105
|
-
}>]>;
|
|
482
|
+
}, z.core.$strip>], "kind">;
|
|
1106
483
|
export type Annotation = z.infer<typeof AnnotationSchema>;
|
|
1107
484
|
/**
|
|
1108
485
|
* The reticle_annotate result envelope (discriminated on `ok`, never a free
|