@reticlehq/core 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activation-entry.d.ts +9 -0
- package/dist/activation-entry.js +9 -0
- package/dist/artifacts/artifacts-entry.d.ts +2 -0
- package/dist/artifacts/artifacts-entry.js +2 -0
- package/dist/artifacts/drive-script.d.ts +222 -116
- package/dist/artifacts/drive-script.js +24 -1
- package/dist/artifacts/flow-constants.d.ts +33 -0
- package/dist/artifacts/flow-constants.js +35 -0
- package/dist/artifacts/flow-expect-flat.d.ts +8 -8
- package/dist/artifacts/flow-results.d.ts +461 -0
- package/dist/artifacts/flow-results.js +1 -0
- package/dist/artifacts/flow-types.d.ts +177 -543
- package/dist/artifacts/flow-types.js +17 -2
- package/dist/artifacts/harness-credits.d.ts +42 -0
- package/dist/artifacts/harness-credits.js +72 -0
- package/dist/artifacts/harness-map.d.ts +98 -0
- package/dist/artifacts/harness-map.js +36 -0
- package/dist/artifacts/impact.d.ts +355 -149
- package/dist/artifacts/impact.js +84 -49
- package/dist/artifacts/journal.d.ts +81 -11
- package/dist/artifacts/journal.js +39 -0
- package/dist/artifacts/prompt-context.d.ts +12 -0
- package/dist/artifacts/prompt-context.js +14 -3
- package/dist/artifacts/screenshot-upload.d.ts +51 -0
- package/dist/artifacts/screenshot-upload.js +26 -0
- package/dist/graph/app-graph.d.ts +137 -0
- package/dist/graph/app-graph.js +498 -0
- package/dist/hooks/hook-events.d.ts +26 -26
- package/dist/hud-entry.d.ts +1 -0
- package/dist/hud-entry.js +2 -0
- package/dist/identity/checkout.d.ts +41 -0
- package/dist/identity/checkout.js +118 -0
- package/dist/identity/state-dir.d.ts +23 -0
- package/dist/identity/state-dir.js +43 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +15 -0
- package/dist/onboarding.d.ts +30 -1
- package/dist/onboarding.js +25 -0
- package/dist/realm/registry.js +19 -1
- package/dist/registry/dev-server-registry.d.ts +2 -2
- package/dist/schema/command-message.json +30 -0
- package/dist/schema/command-name.json +3 -1
- package/dist/schema/event-message.json +3 -1
- package/dist/schema/event-payloads.json +156 -3
- package/dist/schema/event-type.json +3 -1
- package/dist/schema/hello-message.json +21 -0
- package/dist/schema/reticle-event.json +3 -1
- package/dist/schema/reticle-message.json +54 -1
- package/dist/telemetry-bug.d.ts +169 -0
- package/dist/telemetry-bug.js +123 -0
- package/dist/telemetry-entry.d.ts +2 -1
- package/dist/telemetry-entry.js +2 -1
- package/dist/telemetry-feedback.d.ts +16 -2
- package/dist/telemetry-feedback.js +19 -0
- package/dist/telemetry-session.d.ts +91 -2
- package/dist/telemetry-session.js +65 -0
- package/dist/telemetry-signals.d.ts +557 -0
- package/dist/telemetry-signals.js +225 -0
- package/dist/telemetry.d.ts +649 -296
- package/dist/telemetry.js +110 -119
- package/dist/verdict/check-sentence.d.ts +34 -0
- package/dist/verdict/check-sentence.js +228 -0
- package/dist/verdict/consequence.d.ts +15 -0
- package/dist/verdict/consequence.js +11 -0
- package/dist/verdict/disparity.d.ts +105 -0
- package/dist/verdict/disparity.js +40 -0
- package/dist/verdict/findings.d.ts +16 -0
- package/dist/verdict/findings.js +22 -0
- package/dist/verdict/instrumentation-coverage.d.ts +84 -0
- package/dist/verdict/instrumentation-coverage.js +182 -0
- package/dist/verdict/instrumentation-gap.d.ts +79 -0
- package/dist/verdict/instrumentation-gap.js +65 -1
- package/dist/verdict/intent.d.ts +19 -5
- package/dist/verdict/intent.js +13 -1
- package/dist/verdict/predicate-tree.d.ts +17 -0
- package/dist/verdict/predicate-tree.js +37 -0
- package/dist/verdict/predicate.d.ts +16 -1
- package/dist/verdict/predicate.js +188 -13
- package/dist/verdict/property-assertion.d.ts +2 -2
- package/dist/verdict/run-report.d.ts +166 -0
- package/dist/verdict/run-report.js +53 -0
- package/dist/verdict/security.d.ts +60 -1
- package/dist/verdict/security.js +174 -12
- package/dist/verdict/verification-run.d.ts +713 -68
- package/dist/verdict/verification-run.js +113 -0
- package/dist/verdict/verify-progress.d.ts +6 -6
- package/dist/wire/constants/constants.d.ts +69 -155
- package/dist/wire/constants/constants.js +78 -159
- package/dist/wire/constants/discovery.d.ts +4 -4
- package/dist/wire/constants/discovery.js +4 -4
- package/dist/wire/constants/event-types.d.ts +35 -1
- package/dist/wire/constants/event-types.js +33 -1
- package/dist/wire/constants/hud-controls.js +15 -5
- package/dist/wire/constants/hud-use.d.ts +33 -4
- package/dist/wire/constants/hud-use.js +30 -4
- package/dist/wire/constants/mcp-wire.d.ts +26 -0
- package/dist/wire/constants/mcp-wire.js +26 -0
- package/dist/wire/constants/response-body-reason.d.ts +19 -0
- package/dist/wire/constants/response-body-reason.js +18 -0
- package/dist/wire/constants/reticle-chrome.d.ts +19 -0
- package/dist/wire/constants/reticle-chrome.js +19 -0
- package/dist/wire/constants/reticle-env.d.ts +138 -0
- package/dist/wire/constants/reticle-env.js +138 -0
- package/dist/wire/constants/session-constants.d.ts +26 -2
- package/dist/wire/constants/session-constants.js +26 -2
- package/dist/wire/desktop-contract.d.ts +8 -0
- package/dist/wire/desktop-contract.js +11 -0
- package/dist/wire/event-payloads.d.ts +202 -36
- package/dist/wire/event-payloads.js +100 -16
- package/dist/wire/messages.d.ts +193 -54
- package/dist/wire/messages.js +25 -1
- package/dist/wire/narrow.d.ts +6 -0
- package/dist/wire/narrow.js +26 -0
- package/dist/wire/next-step.d.ts +90 -0
- package/dist/wire/next-step.js +37 -0
- package/dist/wire/platform-link.d.ts +84 -0
- package/dist/wire/platform-link.js +57 -6
- package/dist/wire/production/activation-ticket.d.ts +64 -0
- package/dist/wire/production/activation-ticket.js +148 -0
- package/dist/wire/production/hello-mode.d.ts +35 -0
- package/dist/wire/production/hello-mode.js +32 -0
- package/dist/wire/production/production-policy.d.ts +138 -0
- package/dist/wire/production/production-policy.js +133 -0
- package/dist/wire/tool-names.d.ts +4 -0
- package/dist/wire/tool-names.js +4 -0
- package/dist/wire/types.d.ts +90 -52
- package/dist/wire/types.js +5 -0
- package/dist/words/notices.d.ts +1 -1
- package/dist/words/notices.js +1 -1
- package/dist/words/upgrade.js +1 -1
- package/dist/words/writing-rule.d.ts +14 -0
- package/dist/words/writing-rule.js +17 -0
- package/package.json +5 -1
package/dist/wire/types.d.ts
CHANGED
|
@@ -82,7 +82,14 @@ export declare const ElementQuerySchema: z.ZodObject<{
|
|
|
82
82
|
* verification was handed back to the human. Requires `scope`.
|
|
83
83
|
*/
|
|
84
84
|
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
|
+
matchCase: z.ZodOptional<z.ZodBoolean>;
|
|
85
90
|
}, "strict", z.ZodTypeAny, {
|
|
91
|
+
scope?: string | undefined;
|
|
92
|
+
name?: string | undefined;
|
|
86
93
|
text?: string | undefined;
|
|
87
94
|
testid?: string | undefined;
|
|
88
95
|
role?: string | undefined;
|
|
@@ -91,17 +98,18 @@ export declare const ElementQuerySchema: z.ZodObject<{
|
|
|
91
98
|
placeholder?: string | undefined;
|
|
92
99
|
alt?: string | undefined;
|
|
93
100
|
value?: string | undefined;
|
|
94
|
-
name?: string | undefined;
|
|
95
|
-
by?: "text" | "testid" | "role" | "component" | "label" | "placeholder" | "alt" | undefined;
|
|
96
|
-
attrs?: string[] | undefined;
|
|
97
101
|
source?: {
|
|
98
102
|
file: string;
|
|
99
103
|
line: number;
|
|
100
104
|
column?: number | undefined;
|
|
101
105
|
} | undefined;
|
|
102
|
-
|
|
106
|
+
by?: "text" | "testid" | "role" | "component" | "label" | "placeholder" | "alt" | undefined;
|
|
107
|
+
attrs?: string[] | undefined;
|
|
103
108
|
self?: boolean | undefined;
|
|
109
|
+
matchCase?: boolean | undefined;
|
|
104
110
|
}, {
|
|
111
|
+
scope?: string | undefined;
|
|
112
|
+
name?: string | undefined;
|
|
105
113
|
text?: string | undefined;
|
|
106
114
|
testid?: string | undefined;
|
|
107
115
|
role?: string | undefined;
|
|
@@ -110,16 +118,15 @@ export declare const ElementQuerySchema: z.ZodObject<{
|
|
|
110
118
|
placeholder?: string | undefined;
|
|
111
119
|
alt?: string | undefined;
|
|
112
120
|
value?: string | undefined;
|
|
113
|
-
name?: string | undefined;
|
|
114
|
-
by?: "text" | "testid" | "role" | "component" | "label" | "placeholder" | "alt" | undefined;
|
|
115
|
-
attrs?: string[] | undefined;
|
|
116
121
|
source?: {
|
|
117
122
|
file: string;
|
|
118
123
|
line: number;
|
|
119
124
|
column?: number | undefined;
|
|
120
125
|
} | undefined;
|
|
121
|
-
|
|
126
|
+
by?: "text" | "testid" | "role" | "component" | "label" | "placeholder" | "alt" | undefined;
|
|
127
|
+
attrs?: string[] | undefined;
|
|
122
128
|
self?: boolean | undefined;
|
|
129
|
+
matchCase?: boolean | undefined;
|
|
123
130
|
}>;
|
|
124
131
|
export type ElementQuery = z.infer<typeof ElementQuerySchema>;
|
|
125
132
|
/** Compact semantic descriptor of one element surfaced to the agent. */
|
|
@@ -176,6 +183,18 @@ export interface MatchResult {
|
|
|
176
183
|
* confirmed absence (a false negative); both are the false-green shape this tool exists to prevent.
|
|
177
184
|
*/
|
|
178
185
|
scopeMissing?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Present only when a framework error dialog (Next.js, Vite) is open over the page and a match is
|
|
188
|
+
* under it: the name of that dialog. The match is in the DOM, but a user sees only the dialog, so a
|
|
189
|
+
* presence check is not a plain pass (#1768).
|
|
190
|
+
*/
|
|
191
|
+
coveredBy?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Present only when a query matched by text and a person cannot read any match: why not. The
|
|
194
|
+
* text colour is almost the colour behind it, or the composed opacity is almost zero. The text is
|
|
195
|
+
* in the DOM, but nobody can see it, so a presence check is not a plain pass (#1797).
|
|
196
|
+
*/
|
|
197
|
+
unreadable?: string;
|
|
179
198
|
/**
|
|
180
199
|
* Zero-match diagnosis, present only on a miss: what IS on the page. `reticle_query` has always
|
|
181
200
|
* returned this; MATCH (the command every PREDICATE uses) did not, so a failed assertion was a
|
|
@@ -221,9 +240,21 @@ export interface QueryEmptyHint {
|
|
|
221
240
|
* ever match it.
|
|
222
241
|
*
|
|
223
242
|
* The descriptor is the tightest container that holds the whole string; its `ref` is a locator, so
|
|
224
|
-
* the recovery is `{ scope: <ref>, self: true }` rather than another guess at the text.
|
|
243
|
+
* the recovery is `{ scope: <ref>, self: true }` rather than another guess at the text. When the
|
|
244
|
+
* container carries a testid or an id, `selector` names it instead: a selector can be written
|
|
245
|
+
* into an `act_and_wait` `until` before the action runs, which is when the recovery has to be
|
|
246
|
+
* written, while a ref exists only after a snapshot (#1147).
|
|
247
|
+
*/
|
|
248
|
+
splitText?: ElementDescriptor & {
|
|
249
|
+
/** A stable CSS selector for the container, present when it carries a testid or an id. */
|
|
250
|
+
selector?: string;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Present only when a case-exact TEXT check missed and the page shows the text in another case:
|
|
254
|
+
* what it shows. Reported as "split across children" before, with the same failing check as the
|
|
255
|
+
* recovery; the recovery is `ignoreCase: true`.
|
|
225
256
|
*/
|
|
226
|
-
|
|
257
|
+
caseMiss?: string;
|
|
227
258
|
/**
|
|
228
259
|
* Present only when a ROLE+NAME search missed and that role DOES carry a nearly-matching name.
|
|
229
260
|
*
|
|
@@ -241,6 +272,13 @@ export interface QueryEmptyHint {
|
|
|
241
272
|
* (`testIdAttribute` in `.reticle.json`).
|
|
242
273
|
*/
|
|
243
274
|
testidFoundUnder?: string;
|
|
275
|
+
/**
|
|
276
|
+
* Present only when a text/name search missed and the string IS on the page but inside an
|
|
277
|
+
* `aria-hidden="true"` subtree — drawn on screen but excluded from the accessible tree. The
|
|
278
|
+
* note is the difference between "not rendered" and "rendered but hidden from assistive
|
|
279
|
+
* technology", which have opposite fixes (#1070).
|
|
280
|
+
*/
|
|
281
|
+
ariaHiddenMatch?: boolean;
|
|
244
282
|
}
|
|
245
283
|
/** Result of the QUERY command / reticle_query tool. `hint` present ONLY on zero matches. */
|
|
246
284
|
export interface QueryResult {
|
|
@@ -262,11 +300,11 @@ export declare const CapabilityFlowSchema: z.ZodObject<{
|
|
|
262
300
|
name: z.ZodString;
|
|
263
301
|
steps: z.ZodArray<z.ZodString, "many">;
|
|
264
302
|
}, "strip", z.ZodTypeAny, {
|
|
265
|
-
steps: string[];
|
|
266
303
|
name: string;
|
|
267
|
-
}, {
|
|
268
304
|
steps: string[];
|
|
305
|
+
}, {
|
|
269
306
|
name: string;
|
|
307
|
+
steps: string[];
|
|
270
308
|
}>;
|
|
271
309
|
/**
|
|
272
310
|
* A declared risk zone — the app naming a surface (auth/payment/db/…) and the paths it covers, so a
|
|
@@ -329,22 +367,22 @@ export declare const ManifestGovernanceSchema: z.ZodObject<{
|
|
|
329
367
|
paths?: string[] | undefined;
|
|
330
368
|
}>, "many">>;
|
|
331
369
|
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
scope?: string[] | undefined;
|
|
332
371
|
risk?: {
|
|
333
372
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
334
373
|
note?: string | undefined;
|
|
335
374
|
paths?: string[] | undefined;
|
|
336
375
|
}[] | undefined;
|
|
337
|
-
scope?: string[] | undefined;
|
|
338
376
|
owner?: string | undefined;
|
|
339
377
|
safety?: string[] | undefined;
|
|
340
378
|
redact?: string[] | undefined;
|
|
341
379
|
}, {
|
|
380
|
+
scope?: string[] | undefined;
|
|
342
381
|
risk?: {
|
|
343
382
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
344
383
|
note?: string | undefined;
|
|
345
384
|
paths?: string[] | undefined;
|
|
346
385
|
}[] | undefined;
|
|
347
|
-
scope?: string[] | undefined;
|
|
348
386
|
owner?: string | undefined;
|
|
349
387
|
safety?: string[] | undefined;
|
|
350
388
|
redact?: string[] | undefined;
|
|
@@ -359,11 +397,11 @@ export declare const CapabilitiesSchema: z.ZodObject<{
|
|
|
359
397
|
name: z.ZodString;
|
|
360
398
|
steps: z.ZodArray<z.ZodString, "many">;
|
|
361
399
|
}, "strip", z.ZodTypeAny, {
|
|
362
|
-
steps: string[];
|
|
363
400
|
name: string;
|
|
364
|
-
}, {
|
|
365
401
|
steps: string[];
|
|
402
|
+
}, {
|
|
366
403
|
name: string;
|
|
404
|
+
steps: string[];
|
|
367
405
|
}>, "many">;
|
|
368
406
|
/** Optional declared governance (owner/safety/scope/redact/risk). Additive — back-compat safe. */
|
|
369
407
|
governance: z.ZodOptional<z.ZodObject<{
|
|
@@ -394,60 +432,60 @@ export declare const CapabilitiesSchema: z.ZodObject<{
|
|
|
394
432
|
paths?: string[] | undefined;
|
|
395
433
|
}>, "many">>;
|
|
396
434
|
}, "strip", z.ZodTypeAny, {
|
|
435
|
+
scope?: string[] | undefined;
|
|
397
436
|
risk?: {
|
|
398
437
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
399
438
|
note?: string | undefined;
|
|
400
439
|
paths?: string[] | undefined;
|
|
401
440
|
}[] | undefined;
|
|
402
|
-
scope?: string[] | undefined;
|
|
403
441
|
owner?: string | undefined;
|
|
404
442
|
safety?: string[] | undefined;
|
|
405
443
|
redact?: string[] | undefined;
|
|
406
444
|
}, {
|
|
445
|
+
scope?: string[] | undefined;
|
|
407
446
|
risk?: {
|
|
408
447
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
409
448
|
note?: string | undefined;
|
|
410
449
|
paths?: string[] | undefined;
|
|
411
450
|
}[] | undefined;
|
|
412
|
-
scope?: string[] | undefined;
|
|
413
451
|
owner?: string | undefined;
|
|
414
452
|
safety?: string[] | undefined;
|
|
415
453
|
redact?: string[] | undefined;
|
|
416
454
|
}>>;
|
|
417
455
|
}, "strip", z.ZodTypeAny, {
|
|
418
456
|
flows: {
|
|
419
|
-
steps: string[];
|
|
420
457
|
name: string;
|
|
458
|
+
steps: string[];
|
|
421
459
|
}[];
|
|
422
460
|
testids: string[];
|
|
423
461
|
signals: string[];
|
|
424
462
|
stores: string[];
|
|
425
463
|
governance?: {
|
|
464
|
+
scope?: string[] | undefined;
|
|
426
465
|
risk?: {
|
|
427
466
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
428
467
|
note?: string | undefined;
|
|
429
468
|
paths?: string[] | undefined;
|
|
430
469
|
}[] | undefined;
|
|
431
|
-
scope?: string[] | undefined;
|
|
432
470
|
owner?: string | undefined;
|
|
433
471
|
safety?: string[] | undefined;
|
|
434
472
|
redact?: string[] | undefined;
|
|
435
473
|
} | undefined;
|
|
436
474
|
}, {
|
|
437
475
|
flows: {
|
|
438
|
-
steps: string[];
|
|
439
476
|
name: string;
|
|
477
|
+
steps: string[];
|
|
440
478
|
}[];
|
|
441
479
|
testids: string[];
|
|
442
480
|
signals: string[];
|
|
443
481
|
stores: string[];
|
|
444
482
|
governance?: {
|
|
483
|
+
scope?: string[] | undefined;
|
|
445
484
|
risk?: {
|
|
446
485
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
447
486
|
note?: string | undefined;
|
|
448
487
|
paths?: string[] | undefined;
|
|
449
488
|
}[] | undefined;
|
|
450
|
-
scope?: string[] | undefined;
|
|
451
489
|
owner?: string | undefined;
|
|
452
490
|
safety?: string[] | undefined;
|
|
453
491
|
redact?: string[] | undefined;
|
|
@@ -466,11 +504,11 @@ export declare const ContractFileSchema: z.ZodObject<{
|
|
|
466
504
|
name: z.ZodString;
|
|
467
505
|
steps: z.ZodArray<z.ZodString, "many">;
|
|
468
506
|
}, "strip", z.ZodTypeAny, {
|
|
469
|
-
steps: string[];
|
|
470
507
|
name: string;
|
|
471
|
-
}, {
|
|
472
508
|
steps: string[];
|
|
509
|
+
}, {
|
|
473
510
|
name: string;
|
|
511
|
+
steps: string[];
|
|
474
512
|
}>, "many">;
|
|
475
513
|
/** Optional declared governance (owner/safety/scope/redact/risk). Additive — back-compat safe. */
|
|
476
514
|
governance: z.ZodOptional<z.ZodObject<{
|
|
@@ -501,60 +539,60 @@ export declare const ContractFileSchema: z.ZodObject<{
|
|
|
501
539
|
paths?: string[] | undefined;
|
|
502
540
|
}>, "many">>;
|
|
503
541
|
}, "strip", z.ZodTypeAny, {
|
|
542
|
+
scope?: string[] | undefined;
|
|
504
543
|
risk?: {
|
|
505
544
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
506
545
|
note?: string | undefined;
|
|
507
546
|
paths?: string[] | undefined;
|
|
508
547
|
}[] | undefined;
|
|
509
|
-
scope?: string[] | undefined;
|
|
510
548
|
owner?: string | undefined;
|
|
511
549
|
safety?: string[] | undefined;
|
|
512
550
|
redact?: string[] | undefined;
|
|
513
551
|
}, {
|
|
552
|
+
scope?: string[] | undefined;
|
|
514
553
|
risk?: {
|
|
515
554
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
516
555
|
note?: string | undefined;
|
|
517
556
|
paths?: string[] | undefined;
|
|
518
557
|
}[] | undefined;
|
|
519
|
-
scope?: string[] | undefined;
|
|
520
558
|
owner?: string | undefined;
|
|
521
559
|
safety?: string[] | undefined;
|
|
522
560
|
redact?: string[] | undefined;
|
|
523
561
|
}>>;
|
|
524
562
|
}, "strip", z.ZodTypeAny, {
|
|
525
563
|
flows: {
|
|
526
|
-
steps: string[];
|
|
527
564
|
name: string;
|
|
565
|
+
steps: string[];
|
|
528
566
|
}[];
|
|
529
567
|
testids: string[];
|
|
530
568
|
signals: string[];
|
|
531
569
|
stores: string[];
|
|
532
570
|
governance?: {
|
|
571
|
+
scope?: string[] | undefined;
|
|
533
572
|
risk?: {
|
|
534
573
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
535
574
|
note?: string | undefined;
|
|
536
575
|
paths?: string[] | undefined;
|
|
537
576
|
}[] | undefined;
|
|
538
|
-
scope?: string[] | undefined;
|
|
539
577
|
owner?: string | undefined;
|
|
540
578
|
safety?: string[] | undefined;
|
|
541
579
|
redact?: string[] | undefined;
|
|
542
580
|
} | undefined;
|
|
543
581
|
}, {
|
|
544
582
|
flows: {
|
|
545
|
-
steps: string[];
|
|
546
583
|
name: string;
|
|
584
|
+
steps: string[];
|
|
547
585
|
}[];
|
|
548
586
|
testids: string[];
|
|
549
587
|
signals: string[];
|
|
550
588
|
stores: string[];
|
|
551
589
|
governance?: {
|
|
590
|
+
scope?: string[] | undefined;
|
|
552
591
|
risk?: {
|
|
553
592
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
554
593
|
note?: string | undefined;
|
|
555
594
|
paths?: string[] | undefined;
|
|
556
595
|
}[] | undefined;
|
|
557
|
-
scope?: string[] | undefined;
|
|
558
596
|
owner?: string | undefined;
|
|
559
597
|
safety?: string[] | undefined;
|
|
560
598
|
redact?: string[] | undefined;
|
|
@@ -563,19 +601,19 @@ export declare const ContractFileSchema: z.ZodObject<{
|
|
|
563
601
|
}, "strip", z.ZodTypeAny, {
|
|
564
602
|
capabilities: {
|
|
565
603
|
flows: {
|
|
566
|
-
steps: string[];
|
|
567
604
|
name: string;
|
|
605
|
+
steps: string[];
|
|
568
606
|
}[];
|
|
569
607
|
testids: string[];
|
|
570
608
|
signals: string[];
|
|
571
609
|
stores: string[];
|
|
572
610
|
governance?: {
|
|
611
|
+
scope?: string[] | undefined;
|
|
573
612
|
risk?: {
|
|
574
613
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
575
614
|
note?: string | undefined;
|
|
576
615
|
paths?: string[] | undefined;
|
|
577
616
|
}[] | undefined;
|
|
578
|
-
scope?: string[] | undefined;
|
|
579
617
|
owner?: string | undefined;
|
|
580
618
|
safety?: string[] | undefined;
|
|
581
619
|
redact?: string[] | undefined;
|
|
@@ -586,19 +624,19 @@ export declare const ContractFileSchema: z.ZodObject<{
|
|
|
586
624
|
}, {
|
|
587
625
|
capabilities: {
|
|
588
626
|
flows: {
|
|
589
|
-
steps: string[];
|
|
590
627
|
name: string;
|
|
628
|
+
steps: string[];
|
|
591
629
|
}[];
|
|
592
630
|
testids: string[];
|
|
593
631
|
signals: string[];
|
|
594
632
|
stores: string[];
|
|
595
633
|
governance?: {
|
|
634
|
+
scope?: string[] | undefined;
|
|
596
635
|
risk?: {
|
|
597
636
|
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
598
637
|
note?: string | undefined;
|
|
599
638
|
paths?: string[] | undefined;
|
|
600
639
|
}[] | undefined;
|
|
601
|
-
scope?: string[] | undefined;
|
|
602
640
|
owner?: string | undefined;
|
|
603
641
|
safety?: string[] | undefined;
|
|
604
642
|
redact?: string[] | undefined;
|
|
@@ -654,10 +692,10 @@ export declare const RunRecordSchema: z.ZodObject<{
|
|
|
654
692
|
}>>;
|
|
655
693
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
656
694
|
}, "strip", z.ZodTypeAny, {
|
|
695
|
+
name: string;
|
|
696
|
+
at: number;
|
|
657
697
|
kind: "flow_replay" | "manual";
|
|
658
698
|
status: "pass" | "drift" | "error" | "fail";
|
|
659
|
-
at: number;
|
|
660
|
-
name: string;
|
|
661
699
|
durationMs?: number | undefined;
|
|
662
700
|
evidence?: {
|
|
663
701
|
consoleErrors?: number | undefined;
|
|
@@ -666,10 +704,10 @@ export declare const RunRecordSchema: z.ZodObject<{
|
|
|
666
704
|
} | undefined;
|
|
667
705
|
summary?: string | undefined;
|
|
668
706
|
}, {
|
|
707
|
+
name: string;
|
|
708
|
+
at: number;
|
|
669
709
|
kind: "flow_replay" | "manual";
|
|
670
710
|
status: "pass" | "drift" | "error" | "fail";
|
|
671
|
-
at: number;
|
|
672
|
-
name: string;
|
|
673
711
|
durationMs?: number | undefined;
|
|
674
712
|
evidence?: {
|
|
675
713
|
consoleErrors?: number | undefined;
|
|
@@ -795,10 +833,10 @@ export declare const ProjectFileSchema: z.ZodObject<{
|
|
|
795
833
|
}>>;
|
|
796
834
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
797
835
|
}, "strip", z.ZodTypeAny, {
|
|
836
|
+
name: string;
|
|
837
|
+
at: number;
|
|
798
838
|
kind: "flow_replay" | "manual";
|
|
799
839
|
status: "pass" | "drift" | "error" | "fail";
|
|
800
|
-
at: number;
|
|
801
|
-
name: string;
|
|
802
840
|
durationMs?: number | undefined;
|
|
803
841
|
evidence?: {
|
|
804
842
|
consoleErrors?: number | undefined;
|
|
@@ -807,10 +845,10 @@ export declare const ProjectFileSchema: z.ZodObject<{
|
|
|
807
845
|
} | undefined;
|
|
808
846
|
summary?: string | undefined;
|
|
809
847
|
}, {
|
|
848
|
+
name: string;
|
|
849
|
+
at: number;
|
|
810
850
|
kind: "flow_replay" | "manual";
|
|
811
851
|
status: "pass" | "drift" | "error" | "fail";
|
|
812
|
-
at: number;
|
|
813
|
-
name: string;
|
|
814
852
|
durationMs?: number | undefined;
|
|
815
853
|
evidence?: {
|
|
816
854
|
consoleErrors?: number | undefined;
|
|
@@ -821,10 +859,10 @@ export declare const ProjectFileSchema: z.ZodObject<{
|
|
|
821
859
|
}>, "many">;
|
|
822
860
|
}, "strip", z.ZodTypeAny, {
|
|
823
861
|
runs: {
|
|
862
|
+
name: string;
|
|
863
|
+
at: number;
|
|
824
864
|
kind: "flow_replay" | "manual";
|
|
825
865
|
status: "pass" | "drift" | "error" | "fail";
|
|
826
|
-
at: number;
|
|
827
|
-
name: string;
|
|
828
866
|
durationMs?: number | undefined;
|
|
829
867
|
evidence?: {
|
|
830
868
|
consoleErrors?: number | undefined;
|
|
@@ -844,10 +882,10 @@ export declare const ProjectFileSchema: z.ZodObject<{
|
|
|
844
882
|
} | undefined;
|
|
845
883
|
}, {
|
|
846
884
|
runs: {
|
|
885
|
+
name: string;
|
|
886
|
+
at: number;
|
|
847
887
|
kind: "flow_replay" | "manual";
|
|
848
888
|
status: "pass" | "drift" | "error" | "fail";
|
|
849
|
-
at: number;
|
|
850
|
-
name: string;
|
|
851
889
|
durationMs?: number | undefined;
|
|
852
890
|
evidence?: {
|
|
853
891
|
consoleErrors?: number | undefined;
|
|
@@ -883,12 +921,12 @@ export declare const AnnotationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
883
921
|
name: z.ZodString;
|
|
884
922
|
dataMatches: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
885
923
|
}, "strip", z.ZodTypeAny, {
|
|
886
|
-
kind: "assert-signal";
|
|
887
924
|
name: string;
|
|
925
|
+
kind: "assert-signal";
|
|
888
926
|
dataMatches?: Record<string, unknown> | undefined;
|
|
889
927
|
}, {
|
|
890
|
-
kind: "assert-signal";
|
|
891
928
|
name: string;
|
|
929
|
+
kind: "assert-signal";
|
|
892
930
|
dataMatches?: Record<string, unknown> | undefined;
|
|
893
931
|
}>, z.ZodObject<{
|
|
894
932
|
kind: z.ZodLiteral<"assert-visible">;
|
|
@@ -998,13 +1036,13 @@ export declare const AnnotationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
998
1036
|
visible: z.ZodOptional<z.ZodBoolean>;
|
|
999
1037
|
}, "strip", z.ZodTypeAny, {
|
|
1000
1038
|
contains: string;
|
|
1001
|
-
visible?: boolean | undefined;
|
|
1002
1039
|
scope?: string | undefined;
|
|
1040
|
+
visible?: boolean | undefined;
|
|
1003
1041
|
absent?: boolean | undefined;
|
|
1004
1042
|
}, {
|
|
1005
1043
|
contains: string;
|
|
1006
|
-
visible?: boolean | undefined;
|
|
1007
1044
|
scope?: string | undefined;
|
|
1045
|
+
visible?: boolean | undefined;
|
|
1008
1046
|
absent?: boolean | undefined;
|
|
1009
1047
|
}>>;
|
|
1010
1048
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1018,8 +1056,8 @@ export declare const AnnotationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1018
1056
|
} | undefined;
|
|
1019
1057
|
text?: {
|
|
1020
1058
|
contains: string;
|
|
1021
|
-
visible?: boolean | undefined;
|
|
1022
1059
|
scope?: string | undefined;
|
|
1060
|
+
visible?: boolean | undefined;
|
|
1023
1061
|
absent?: boolean | undefined;
|
|
1024
1062
|
} | undefined;
|
|
1025
1063
|
console?: {
|
|
@@ -1042,8 +1080,8 @@ export declare const AnnotationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
|
|
|
1042
1080
|
} | undefined;
|
|
1043
1081
|
text?: {
|
|
1044
1082
|
contains: string;
|
|
1045
|
-
visible?: boolean | undefined;
|
|
1046
1083
|
scope?: string | undefined;
|
|
1084
|
+
visible?: boolean | undefined;
|
|
1047
1085
|
absent?: boolean | undefined;
|
|
1048
1086
|
} | undefined;
|
|
1049
1087
|
console?: {
|
package/dist/wire/types.js
CHANGED
|
@@ -71,6 +71,11 @@ export const ElementQuerySchema = z
|
|
|
71
71
|
* verification was handed back to the human. Requires `scope`.
|
|
72
72
|
*/
|
|
73
73
|
self: z.boolean().optional(),
|
|
74
|
+
/**
|
|
75
|
+
* Compare `text` with its case intact. A search is forgiving about case; a CHECK is not — the
|
|
76
|
+
* text predicate sends this, so "Saved Priya" can fail against a page reading "Saved priya".
|
|
77
|
+
*/
|
|
78
|
+
matchCase: z.boolean().optional(),
|
|
74
79
|
})
|
|
75
80
|
.strict();
|
|
76
81
|
/** One named flow advertised by the app (mirrors the browser CapabilityFlow). */
|
package/dist/words/notices.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare const BUFFER_EVICTION_WARNING = "event buffer evicted older event
|
|
|
41
41
|
* blocking and telling you nothing. It is the same tool `#unknownSessionError` already points at,
|
|
42
42
|
* so the two no-session paths now agree.
|
|
43
43
|
*/
|
|
44
|
-
export declare const NO_SESSION_CONNECTED_ERROR = "no browser session connected. Two things to check: (1) your app is running with @reticlehq/browser enabled, and (2) it points at THIS daemon's port \u2014 a mismatch between the app's reticle({ port })
|
|
44
|
+
export declare const NO_SESSION_CONNECTED_ERROR = "no browser session connected. Two things to check: (1) your app is running with @reticlehq/browser enabled, and (2) it points at THIS daemon's port \u2014 a mismatch between the port the app dials (the build plugin's reticle({ port }), or RETICLE_PORT when the dev server started) and the daemon's port is the usual cause. Call reticle_session { action: \"list\" } for the diagnosis \u2014 it names which of these it is, and what to do next \u2014 rather than retrying this call.";
|
|
45
45
|
/**
|
|
46
46
|
* Explains an unconfirmed navigation that did reconnect, but at a different URL.
|
|
47
47
|
*
|
package/dist/words/notices.js
CHANGED
|
@@ -45,7 +45,7 @@ export const BUFFER_EVICTION_WARNING = 'event buffer evicted older events (age/s
|
|
|
45
45
|
* blocking and telling you nothing. It is the same tool `#unknownSessionError` already points at,
|
|
46
46
|
* so the two no-session paths now agree.
|
|
47
47
|
*/
|
|
48
|
-
export const NO_SESSION_CONNECTED_ERROR = "no browser session connected. Two things to check: (1) your app is running with @reticlehq/browser enabled, and (2) it points at THIS daemon's port — a mismatch between the app's reticle({ port })
|
|
48
|
+
export const NO_SESSION_CONNECTED_ERROR = "no browser session connected. Two things to check: (1) your app is running with @reticlehq/browser enabled, and (2) it points at THIS daemon's port — a mismatch between the port the app dials (the build plugin's reticle({ port }), or RETICLE_PORT when the dev server started) and the daemon's port is the usual cause. Call reticle_session { action: \"list\" } for the diagnosis — it names which of these it is, and what to do next — rather than retrying this call.";
|
|
49
49
|
/**
|
|
50
50
|
* Explains an unconfirmed navigation that did reconnect, but at a different URL.
|
|
51
51
|
*
|
package/dist/words/upgrade.js
CHANGED
|
@@ -62,7 +62,7 @@ export function isCloudCapability(value) {
|
|
|
62
62
|
const COPY_BY_CAPABILITY = {
|
|
63
63
|
[CloudCapability.SHARE_PROOF]: {
|
|
64
64
|
reason: 'Sharing a verification result with a teammate needs a hosted, linkable proof page.',
|
|
65
|
-
unlockedBy: 'Link a free Reticle Cloud account (reticle
|
|
65
|
+
unlockedBy: 'Link a free Reticle Cloud account (reticle connect), then share the run.',
|
|
66
66
|
},
|
|
67
67
|
[CloudCapability.RUN_HISTORY]: {
|
|
68
68
|
reason: 'Run history beyond this session lives in the hosted dashboard; local keeps only a buffer.',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How an agent must write the text that Reticle keeps: flow names, notes, feedback, reports and plans.
|
|
3
|
+
*
|
|
4
|
+
* The standard is ASD-STE100 (Simplified Technical English), followed about 80% of the way. Other
|
|
5
|
+
* agents, other models and people who do not speak English as a first language read this text later.
|
|
6
|
+
* A short, literal sentence keeps one meaning for all of them.
|
|
7
|
+
*
|
|
8
|
+
* One source for every prompt. The open-source harness, the MCP briefing and the platform harness
|
|
9
|
+
* all import these words, so the rule cannot drift between them.
|
|
10
|
+
*/
|
|
11
|
+
/** The full rule, for a model prompt that has room for it. */
|
|
12
|
+
export declare const WRITING_RULE: string;
|
|
13
|
+
/** The same rule in one line, for the MCP briefing, which has a hard byte cap. */
|
|
14
|
+
export declare const WRITING_RULE_SHORT = "Write saved text (flows, notes, feedback) in ASD-STE100 Simplified English: short, active, literal.";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How an agent must write the text that Reticle keeps: flow names, notes, feedback, reports and plans.
|
|
3
|
+
*
|
|
4
|
+
* The standard is ASD-STE100 (Simplified Technical English), followed about 80% of the way. Other
|
|
5
|
+
* agents, other models and people who do not speak English as a first language read this text later.
|
|
6
|
+
* A short, literal sentence keeps one meaning for all of them.
|
|
7
|
+
*
|
|
8
|
+
* One source for every prompt. The open-source harness, the MCP briefing and the platform harness
|
|
9
|
+
* all import these words, so the rule cannot drift between them.
|
|
10
|
+
*/
|
|
11
|
+
/** The full rule, for a model prompt that has room for it. */
|
|
12
|
+
export const WRITING_RULE = 'Write all text that you save or report (flow names, notes, feedback, summaries, plans) in Simplified ' +
|
|
13
|
+
'Technical English (ASD-STE100): short sentences (about 20 words), one topic per sentence, active voice, ' +
|
|
14
|
+
'simple tenses, commands for instructions, and one meaning for each word. Do not use idioms or slang. ' +
|
|
15
|
+
'Keep product names, tool names and code identifiers as they are.';
|
|
16
|
+
/** The same rule in one line, for the MCP briefing, which has a hard byte cap. */
|
|
17
|
+
export const WRITING_RULE_SHORT = 'Write saved text (flows, notes, feedback) in ASD-STE100 Simplified English: short, active, literal.';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reticlehq/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "The Reticle foundation: the shared wire contract — types, zod schemas, constants, messages, and the isomorphic kernel that every Reticle package (browser SDK, server, kits, test harness) imports. Depends only on zod and open-verification.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
"./hud": {
|
|
40
40
|
"types": "./dist/hud-entry.d.ts",
|
|
41
41
|
"default": "./dist/hud-entry.js"
|
|
42
|
+
},
|
|
43
|
+
"./activation": {
|
|
44
|
+
"types": "./dist/activation-entry.d.ts",
|
|
45
|
+
"default": "./dist/activation-entry.js"
|
|
42
46
|
}
|
|
43
47
|
},
|
|
44
48
|
"dependencies": {
|