@reticlehq/core 2.1.0 → 2.2.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/LICENSE +201 -112
- package/NOTICE +5 -0
- package/dist/brand.d.ts +32 -3
- package/dist/brand.d.ts.map +1 -1
- package/dist/brand.js +9 -4
- package/dist/brand.js.map +1 -1
- package/dist/constants.d.ts +140 -5
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +136 -5
- package/dist/constants.js.map +1 -1
- package/dist/daemon-registry.d.ts +5 -5
- package/dist/daemon-registry.d.ts.map +1 -1
- package/dist/daemon-registry.js +5 -5
- package/dist/daemon-registry.js.map +1 -1
- package/dist/event-payloads.d.ts +502 -0
- package/dist/event-payloads.d.ts.map +1 -0
- package/dist/event-payloads.js +138 -0
- package/dist/event-payloads.js.map +1 -0
- package/dist/flow-constants.d.ts +2 -2
- package/dist/flow-constants.js +7 -7
- package/dist/flow-constants.js.map +1 -1
- package/dist/flow-types.d.ts +155 -32
- package/dist/flow-types.d.ts.map +1 -1
- package/dist/flow-types.js +23 -1
- package/dist/flow-types.js.map +1 -1
- package/dist/index.d.ts +19 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -12
- package/dist/index.js.map +1 -1
- package/dist/journal.d.ts +90 -0
- package/dist/journal.d.ts.map +1 -0
- package/dist/journal.js +38 -0
- package/dist/journal.js.map +1 -0
- package/dist/messages.d.ts +112 -16
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +15 -2
- package/dist/messages.js.map +1 -1
- package/dist/notices.d.ts +4 -4
- package/dist/notices.js +4 -4
- package/dist/redaction.d.ts +4 -0
- package/dist/redaction.d.ts.map +1 -0
- package/dist/redaction.js +33 -0
- package/dist/redaction.js.map +1 -0
- package/dist/schema/event-message.json +21 -1
- package/dist/schema/event-type.json +8 -1
- package/dist/schema/reticle-event.json +21 -1
- package/dist/schema/reticle-message.json +21 -1
- package/dist/session-constants.d.ts +2 -2
- package/dist/session-constants.js +2 -2
- package/dist/state-select.d.ts.map +1 -1
- package/dist/state-select.js +21 -5
- package/dist/state-select.js.map +1 -1
- package/dist/toon.d.ts +10 -10
- package/dist/toon.d.ts.map +1 -1
- package/dist/toon.js +34 -18
- package/dist/toon.js.map +1 -1
- package/dist/types.d.ts +70 -12
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -1
- package/dist/upgrade.d.ts +5 -5
- package/dist/upgrade.js +3 -3
- package/dist/verification-run.d.ts +23 -23
- package/dist/verification-run.js +1 -1
- package/package.json +6 -2
package/dist/flow-constants.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export const PROJECT_FILE_VERSION = 1;
|
|
11
11
|
/**
|
|
12
12
|
* Structured outcome when reading project.json fails (never thrown to the agent).
|
|
13
|
-
* Mirrors ContractReadError. NOTE: recordRun
|
|
13
|
+
* Mirrors ContractReadError. NOTE: recordRun self-heals a MALFORMED file (starts fresh) so a
|
|
14
14
|
* corrupt history never wedges the agent; only the READ path (reticle_project) surfaces MALFORMED.
|
|
15
15
|
*/
|
|
16
16
|
export const ProjectReadError = {
|
|
@@ -96,12 +96,12 @@ export const FLOW_SIGNAL_TIMEOUT_MS = 4000;
|
|
|
96
96
|
* from the plan grammar are also future — only the four requested kinds ship here.
|
|
97
97
|
*/
|
|
98
98
|
export const AnnotationKind = {
|
|
99
|
-
ASSERT_SIGNAL: 'assert-signal', // → step.expect.signal
|
|
99
|
+
ASSERT_SIGNAL: 'assert-signal', // → step.expect.signal (invariant)
|
|
100
100
|
ASSERT_VISIBLE: 'assert-visible', // → step.expect.element (invariant)
|
|
101
|
-
ASSERT_STATE: 'assert-state', // → step.expect.state
|
|
102
|
-
MARK_DYNAMIC: 'mark-dynamic', // → flow.dynamic[]
|
|
103
|
-
SUCCESS_STATE: 'success-state', // → flow.success
|
|
104
|
-
INTENT: 'intent', // → flow.intent
|
|
101
|
+
ASSERT_STATE: 'assert-state', // → step.expect.state (store-truth invariant on the last step)
|
|
102
|
+
MARK_DYNAMIC: 'mark-dynamic', // → flow.dynamic[] (don't assert words/content)
|
|
103
|
+
SUCCESS_STATE: 'success-state', // → flow.success (golden end condition)
|
|
104
|
+
INTENT: 'intent', // → flow.intent (the business goal this flow exists to verify)
|
|
105
105
|
};
|
|
106
106
|
/** Recorder lifecycle phases (drives the toolbar UI + the capture gate). */
|
|
107
107
|
export const RecorderPhase = {
|
|
@@ -146,7 +146,7 @@ export const AnnotationTarget = {
|
|
|
146
146
|
};
|
|
147
147
|
/**
|
|
148
148
|
* Structured failure codes for the annotate compiler/tool (returned, never
|
|
149
|
-
* thrown / free strings). NO_ACTIVE_RECORDING = annotate
|
|
149
|
+
* thrown / free strings). NO_ACTIVE_RECORDING = annotate with nothing recording; NO_STEP_TO_
|
|
150
150
|
* ANNOTATE = an assert-* with zero captured steps yet; UNKNOWN_KIND = kind ∉ AnnotationKind (or a
|
|
151
151
|
* free natural-language string — see AnnotationSchema's FUTURE note); MISSING_FIELD = e.g. a
|
|
152
152
|
* success-state with neither signal nor testid.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-constants.js","sourceRoot":"","sources":["../src/flow-constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,iBAAiB,EAAE,mCAAmC;IAC/D,SAAS,EAAE,mBAAmB,EAAE,4CAA4C;CACpE,CAAC;AAGX,qCAAqC;AACrC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,WAAW,EAAE,aAAa,EAAE,uCAAuC;IACnE,MAAM,EAAE,QAAQ,EAAE,6CAA6C;CACvD,CAAC;AAGX;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,KAAK,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U,EAAE,YAAY,EAAE,uDAAuD;CACzE,CAAC;AAGX;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,gBAAgB,EAAE,kBAAkB,EAAE,yCAAyC;IAC/E,YAAY,EAAE,mBAAmB,EAAE,8CAA8C;CACzE,CAAC;AAGX;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ,EAAE,8CAA8C;IAChE,KAAK,EAAE,OAAO,EAAE,8DAA8D;IAC9E,UAAU,EAAE,YAAY,EAAE,4DAA4D;IACtF,eAAe,EAAE,iBAAiB,EAAE,mBAAmB;IACvD,kBAAkB,EAAE,oBAAoB,EAAE,0GAA0G;IACpJ,KAAK,EAAE,OAAO,EAAE,mEAAmE;CAC3E,CAAC;AAGX;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;AAGX;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,mBAAmB,EAAE,uBAAuB;IAC5C,mBAAmB,EAAE,kBAAkB;IACvC,YAAY,EAAE,uBAAuB;IACrC,aAAa,EAAE,wBAAwB;CAC/B,CAAC;AAGX,6EAA6E;AAC7E,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC"}
|
package/dist/flow-types.d.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ActionType, type DriftReason, type HealStatus, type ReplayStatus } from './constants.js';
|
|
3
|
+
/**
|
|
4
|
+
* The MCP tool names that can appear as a recorded flow step's `tool`. These are the ONLY tool names
|
|
5
|
+
* that cross the wire into a persisted flow file — the browser recorder stamps them, the server replays
|
|
6
|
+
* them, and FlowStep types them — so they live in core, the wire contract. The full agent-facing tool
|
|
7
|
+
* surface stays server-side (ReticleTool); ReticleTool references THESE for the flow-persisted three, so
|
|
8
|
+
* there is one source of truth and a rename cannot silently desync the recorder from the replayer (a
|
|
9
|
+
* tool rename once killed four e2e specs — this closes the browser/server half of that drift).
|
|
10
|
+
*/
|
|
11
|
+
export declare const FlowStepTool: {
|
|
12
|
+
readonly ACT: "reticle_act";
|
|
13
|
+
readonly ACT_SEQUENCE: "reticle_act_sequence";
|
|
14
|
+
readonly ACT_AND_WAIT: "reticle_act_and_wait";
|
|
15
|
+
};
|
|
16
|
+
export type FlowStepTool = (typeof FlowStepTool)[keyof typeof FlowStepTool];
|
|
3
17
|
/**
|
|
4
18
|
* A semantic anchor: how a step re-finds its element/event at replay
|
|
5
19
|
* time. Never a volatile eXX ref. testid/role+name bind a DOM element; signal binds an event.
|
|
@@ -7,12 +21,35 @@ import { ActionType, type DriftReason, type HealStatus, type ReplayStatus } from
|
|
|
7
21
|
export declare const FlowAnchorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
8
22
|
kind: z.ZodLiteral<"testid">;
|
|
9
23
|
value: z.ZodString;
|
|
24
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
file: z.ZodString;
|
|
26
|
+
line: z.ZodNumber;
|
|
27
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
file: string;
|
|
30
|
+
line: number;
|
|
31
|
+
column?: number | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
file: string;
|
|
34
|
+
line: number;
|
|
35
|
+
column?: number | undefined;
|
|
36
|
+
}>>;
|
|
10
37
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
value: string;
|
|
12
38
|
kind: "testid";
|
|
13
|
-
}, {
|
|
14
39
|
value: string;
|
|
40
|
+
source?: {
|
|
41
|
+
file: string;
|
|
42
|
+
line: number;
|
|
43
|
+
column?: number | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
}, {
|
|
15
46
|
kind: "testid";
|
|
47
|
+
value: string;
|
|
48
|
+
source?: {
|
|
49
|
+
file: string;
|
|
50
|
+
line: number;
|
|
51
|
+
column?: number | undefined;
|
|
52
|
+
} | undefined;
|
|
16
53
|
}>, z.ZodObject<{
|
|
17
54
|
kind: z.ZodLiteral<"role">;
|
|
18
55
|
role: z.ZodString;
|
|
@@ -96,13 +133,13 @@ export declare const FlowExpectSchema: z.ZodObject<{
|
|
|
96
133
|
}, "strip", z.ZodTypeAny, {
|
|
97
134
|
status?: number | undefined;
|
|
98
135
|
method?: string | undefined;
|
|
99
|
-
urlContains?: string | undefined;
|
|
100
136
|
count?: number | undefined;
|
|
137
|
+
urlContains?: string | undefined;
|
|
101
138
|
}, {
|
|
102
139
|
status?: number | undefined;
|
|
103
140
|
method?: string | undefined;
|
|
104
|
-
urlContains?: string | undefined;
|
|
105
141
|
count?: number | undefined;
|
|
142
|
+
urlContains?: string | undefined;
|
|
106
143
|
}>>;
|
|
107
144
|
/**
|
|
108
145
|
* Console golden end-condition: assert the action logged (or, with absent:true, did NOT log) a
|
|
@@ -166,8 +203,8 @@ export declare const FlowExpectSchema: z.ZodObject<{
|
|
|
166
203
|
net?: {
|
|
167
204
|
status?: number | undefined;
|
|
168
205
|
method?: string | undefined;
|
|
169
|
-
urlContains?: string | undefined;
|
|
170
206
|
count?: number | undefined;
|
|
207
|
+
urlContains?: string | undefined;
|
|
171
208
|
} | undefined;
|
|
172
209
|
console?: {
|
|
173
210
|
level?: string | undefined;
|
|
@@ -190,8 +227,8 @@ export declare const FlowExpectSchema: z.ZodObject<{
|
|
|
190
227
|
net?: {
|
|
191
228
|
status?: number | undefined;
|
|
192
229
|
method?: string | undefined;
|
|
193
|
-
urlContains?: string | undefined;
|
|
194
230
|
count?: number | undefined;
|
|
231
|
+
urlContains?: string | undefined;
|
|
195
232
|
} | undefined;
|
|
196
233
|
console?: {
|
|
197
234
|
level?: string | undefined;
|
|
@@ -212,7 +249,7 @@ export declare const FlowExpectSchema: z.ZodObject<{
|
|
|
212
249
|
export type FlowExpect = z.infer<typeof FlowExpectSchema>;
|
|
213
250
|
/** One step of a flow: an anchored action (+ optional expectation). */
|
|
214
251
|
export interface FlowStep {
|
|
215
|
-
/**
|
|
252
|
+
/** FlowStepTool.ACT | FlowStepTool.ACT_SEQUENCE (core, shared with ReticleTool). */
|
|
216
253
|
tool: string;
|
|
217
254
|
anchor: FlowAnchor;
|
|
218
255
|
action?: ActionType;
|
|
@@ -249,7 +286,7 @@ export interface Drift {
|
|
|
249
286
|
export interface FlowStepResult {
|
|
250
287
|
/** 0-based index of this step in the flow. */
|
|
251
288
|
step: number;
|
|
252
|
-
/** The
|
|
289
|
+
/** The tool the step runs — FlowStepTool.ACT | ACT_SEQUENCE (core). */
|
|
253
290
|
tool: string;
|
|
254
291
|
/** The testid/signal value the step is bound to (the re-resolved anchor). */
|
|
255
292
|
anchor: string;
|
|
@@ -267,6 +304,11 @@ export interface FlowStepResult {
|
|
|
267
304
|
* appear; the asserted consequence (expect/success) is the authoritative pass/fail signal.
|
|
268
305
|
*/
|
|
269
306
|
consequence?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Wall-clock ms this step took (dispatch → post-settle), from the session's injected elapsed clock.
|
|
309
|
+
* Additive/optional: absent in contexts with no advancing clock. Feeds per-step run-to-run perf diffs.
|
|
310
|
+
*/
|
|
311
|
+
durationMs?: number;
|
|
270
312
|
ok: boolean;
|
|
271
313
|
error?: string;
|
|
272
314
|
note?: string;
|
|
@@ -340,6 +382,11 @@ export interface FlowReplayResult {
|
|
|
340
382
|
* optional — present only when at least one drifted step has a confident nearest match).
|
|
341
383
|
*/
|
|
342
384
|
proposals?: HealProposal[];
|
|
385
|
+
/**
|
|
386
|
+
* The push-default deviation report over this replay's route segments (ranked deviations vs the learned
|
|
387
|
+
* envelope, or a fall-back note below N=3 runs). Additive; present when segments were observed.
|
|
388
|
+
*/
|
|
389
|
+
deviation?: unknown;
|
|
343
390
|
}
|
|
344
391
|
/**
|
|
345
392
|
* The on-disk flow file: diffable, git-tracked, anchor-resolved.
|
|
@@ -397,13 +444,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
397
444
|
}, "strip", z.ZodTypeAny, {
|
|
398
445
|
status?: number | undefined;
|
|
399
446
|
method?: string | undefined;
|
|
400
|
-
urlContains?: string | undefined;
|
|
401
447
|
count?: number | undefined;
|
|
448
|
+
urlContains?: string | undefined;
|
|
402
449
|
}, {
|
|
403
450
|
status?: number | undefined;
|
|
404
451
|
method?: string | undefined;
|
|
405
|
-
urlContains?: string | undefined;
|
|
406
452
|
count?: number | undefined;
|
|
453
|
+
urlContains?: string | undefined;
|
|
407
454
|
}>>;
|
|
408
455
|
/**
|
|
409
456
|
* Console golden end-condition: assert the action logged (or, with absent:true, did NOT log) a
|
|
@@ -467,8 +514,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
467
514
|
net?: {
|
|
468
515
|
status?: number | undefined;
|
|
469
516
|
method?: string | undefined;
|
|
470
|
-
urlContains?: string | undefined;
|
|
471
517
|
count?: number | undefined;
|
|
518
|
+
urlContains?: string | undefined;
|
|
472
519
|
} | undefined;
|
|
473
520
|
console?: {
|
|
474
521
|
level?: string | undefined;
|
|
@@ -491,8 +538,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
491
538
|
net?: {
|
|
492
539
|
status?: number | undefined;
|
|
493
540
|
method?: string | undefined;
|
|
494
|
-
urlContains?: string | undefined;
|
|
495
541
|
count?: number | undefined;
|
|
542
|
+
urlContains?: string | undefined;
|
|
496
543
|
} | undefined;
|
|
497
544
|
console?: {
|
|
498
545
|
level?: string | undefined;
|
|
@@ -517,12 +564,35 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
517
564
|
dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
518
565
|
kind: z.ZodLiteral<"testid">;
|
|
519
566
|
value: z.ZodString;
|
|
567
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
568
|
+
file: z.ZodString;
|
|
569
|
+
line: z.ZodNumber;
|
|
570
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
571
|
+
}, "strip", z.ZodTypeAny, {
|
|
572
|
+
file: string;
|
|
573
|
+
line: number;
|
|
574
|
+
column?: number | undefined;
|
|
575
|
+
}, {
|
|
576
|
+
file: string;
|
|
577
|
+
line: number;
|
|
578
|
+
column?: number | undefined;
|
|
579
|
+
}>>;
|
|
520
580
|
}, "strip", z.ZodTypeAny, {
|
|
521
|
-
value: string;
|
|
522
581
|
kind: "testid";
|
|
523
|
-
}, {
|
|
524
582
|
value: string;
|
|
583
|
+
source?: {
|
|
584
|
+
file: string;
|
|
585
|
+
line: number;
|
|
586
|
+
column?: number | undefined;
|
|
587
|
+
} | undefined;
|
|
588
|
+
}, {
|
|
525
589
|
kind: "testid";
|
|
590
|
+
value: string;
|
|
591
|
+
source?: {
|
|
592
|
+
file: string;
|
|
593
|
+
line: number;
|
|
594
|
+
column?: number | undefined;
|
|
595
|
+
} | undefined;
|
|
526
596
|
}>, z.ZodObject<{
|
|
527
597
|
kind: z.ZodLiteral<"role">;
|
|
528
598
|
role: z.ZodString;
|
|
@@ -598,8 +668,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
598
668
|
net?: {
|
|
599
669
|
status?: number | undefined;
|
|
600
670
|
method?: string | undefined;
|
|
601
|
-
urlContains?: string | undefined;
|
|
602
671
|
count?: number | undefined;
|
|
672
|
+
urlContains?: string | undefined;
|
|
603
673
|
} | undefined;
|
|
604
674
|
console?: {
|
|
605
675
|
level?: string | undefined;
|
|
@@ -618,8 +688,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
618
688
|
} | undefined;
|
|
619
689
|
} | undefined;
|
|
620
690
|
dynamic?: ({
|
|
621
|
-
value: string;
|
|
622
691
|
kind: "testid";
|
|
692
|
+
value: string;
|
|
693
|
+
source?: {
|
|
694
|
+
file: string;
|
|
695
|
+
line: number;
|
|
696
|
+
column?: number | undefined;
|
|
697
|
+
} | undefined;
|
|
623
698
|
} | {
|
|
624
699
|
role: string;
|
|
625
700
|
kind: "role";
|
|
@@ -653,8 +728,8 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
653
728
|
net?: {
|
|
654
729
|
status?: number | undefined;
|
|
655
730
|
method?: string | undefined;
|
|
656
|
-
urlContains?: string | undefined;
|
|
657
731
|
count?: number | undefined;
|
|
732
|
+
urlContains?: string | undefined;
|
|
658
733
|
} | undefined;
|
|
659
734
|
console?: {
|
|
660
735
|
level?: string | undefined;
|
|
@@ -673,8 +748,13 @@ export declare const FlowFileSchema: z.ZodObject<{
|
|
|
673
748
|
} | undefined;
|
|
674
749
|
} | undefined;
|
|
675
750
|
dynamic?: ({
|
|
676
|
-
value: string;
|
|
677
751
|
kind: "testid";
|
|
752
|
+
value: string;
|
|
753
|
+
source?: {
|
|
754
|
+
file: string;
|
|
755
|
+
line: number;
|
|
756
|
+
column?: number | undefined;
|
|
757
|
+
} | undefined;
|
|
678
758
|
} | {
|
|
679
759
|
role: string;
|
|
680
760
|
kind: "role";
|
|
@@ -753,13 +833,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
753
833
|
}, "strip", z.ZodTypeAny, {
|
|
754
834
|
status?: number | undefined;
|
|
755
835
|
method?: string | undefined;
|
|
756
|
-
urlContains?: string | undefined;
|
|
757
836
|
count?: number | undefined;
|
|
837
|
+
urlContains?: string | undefined;
|
|
758
838
|
}, {
|
|
759
839
|
status?: number | undefined;
|
|
760
840
|
method?: string | undefined;
|
|
761
|
-
urlContains?: string | undefined;
|
|
762
841
|
count?: number | undefined;
|
|
842
|
+
urlContains?: string | undefined;
|
|
763
843
|
}>>;
|
|
764
844
|
/**
|
|
765
845
|
* Console golden end-condition: assert the action logged (or, with absent:true, did NOT log) a
|
|
@@ -823,8 +903,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
823
903
|
net?: {
|
|
824
904
|
status?: number | undefined;
|
|
825
905
|
method?: string | undefined;
|
|
826
|
-
urlContains?: string | undefined;
|
|
827
906
|
count?: number | undefined;
|
|
907
|
+
urlContains?: string | undefined;
|
|
828
908
|
} | undefined;
|
|
829
909
|
console?: {
|
|
830
910
|
level?: string | undefined;
|
|
@@ -847,8 +927,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
847
927
|
net?: {
|
|
848
928
|
status?: number | undefined;
|
|
849
929
|
method?: string | undefined;
|
|
850
|
-
urlContains?: string | undefined;
|
|
851
930
|
count?: number | undefined;
|
|
931
|
+
urlContains?: string | undefined;
|
|
852
932
|
} | undefined;
|
|
853
933
|
console?: {
|
|
854
934
|
level?: string | undefined;
|
|
@@ -873,12 +953,35 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
873
953
|
dynamic: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
874
954
|
kind: z.ZodLiteral<"testid">;
|
|
875
955
|
value: z.ZodString;
|
|
956
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
957
|
+
file: z.ZodString;
|
|
958
|
+
line: z.ZodNumber;
|
|
959
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
960
|
+
}, "strip", z.ZodTypeAny, {
|
|
961
|
+
file: string;
|
|
962
|
+
line: number;
|
|
963
|
+
column?: number | undefined;
|
|
964
|
+
}, {
|
|
965
|
+
file: string;
|
|
966
|
+
line: number;
|
|
967
|
+
column?: number | undefined;
|
|
968
|
+
}>>;
|
|
876
969
|
}, "strip", z.ZodTypeAny, {
|
|
877
|
-
value: string;
|
|
878
970
|
kind: "testid";
|
|
879
|
-
}, {
|
|
880
971
|
value: string;
|
|
972
|
+
source?: {
|
|
973
|
+
file: string;
|
|
974
|
+
line: number;
|
|
975
|
+
column?: number | undefined;
|
|
976
|
+
} | undefined;
|
|
977
|
+
}, {
|
|
881
978
|
kind: "testid";
|
|
979
|
+
value: string;
|
|
980
|
+
source?: {
|
|
981
|
+
file: string;
|
|
982
|
+
line: number;
|
|
983
|
+
column?: number | undefined;
|
|
984
|
+
} | undefined;
|
|
882
985
|
}>, z.ZodObject<{
|
|
883
986
|
kind: z.ZodLiteral<"role">;
|
|
884
987
|
role: z.ZodString;
|
|
@@ -954,8 +1057,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
954
1057
|
net?: {
|
|
955
1058
|
status?: number | undefined;
|
|
956
1059
|
method?: string | undefined;
|
|
957
|
-
urlContains?: string | undefined;
|
|
958
1060
|
count?: number | undefined;
|
|
1061
|
+
urlContains?: string | undefined;
|
|
959
1062
|
} | undefined;
|
|
960
1063
|
console?: {
|
|
961
1064
|
level?: string | undefined;
|
|
@@ -974,8 +1077,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
974
1077
|
} | undefined;
|
|
975
1078
|
} | undefined;
|
|
976
1079
|
dynamic?: ({
|
|
977
|
-
value: string;
|
|
978
1080
|
kind: "testid";
|
|
1081
|
+
value: string;
|
|
1082
|
+
source?: {
|
|
1083
|
+
file: string;
|
|
1084
|
+
line: number;
|
|
1085
|
+
column?: number | undefined;
|
|
1086
|
+
} | undefined;
|
|
979
1087
|
} | {
|
|
980
1088
|
role: string;
|
|
981
1089
|
kind: "role";
|
|
@@ -1009,8 +1117,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
1009
1117
|
net?: {
|
|
1010
1118
|
status?: number | undefined;
|
|
1011
1119
|
method?: string | undefined;
|
|
1012
|
-
urlContains?: string | undefined;
|
|
1013
1120
|
count?: number | undefined;
|
|
1121
|
+
urlContains?: string | undefined;
|
|
1014
1122
|
} | undefined;
|
|
1015
1123
|
console?: {
|
|
1016
1124
|
level?: string | undefined;
|
|
@@ -1029,8 +1137,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
1029
1137
|
} | undefined;
|
|
1030
1138
|
} | undefined;
|
|
1031
1139
|
dynamic?: ({
|
|
1032
|
-
value: string;
|
|
1033
1140
|
kind: "testid";
|
|
1141
|
+
value: string;
|
|
1142
|
+
source?: {
|
|
1143
|
+
file: string;
|
|
1144
|
+
line: number;
|
|
1145
|
+
column?: number | undefined;
|
|
1146
|
+
} | undefined;
|
|
1034
1147
|
} | {
|
|
1035
1148
|
role: string;
|
|
1036
1149
|
kind: "role";
|
|
@@ -1066,8 +1179,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
1066
1179
|
net?: {
|
|
1067
1180
|
status?: number | undefined;
|
|
1068
1181
|
method?: string | undefined;
|
|
1069
|
-
urlContains?: string | undefined;
|
|
1070
1182
|
count?: number | undefined;
|
|
1183
|
+
urlContains?: string | undefined;
|
|
1071
1184
|
} | undefined;
|
|
1072
1185
|
console?: {
|
|
1073
1186
|
level?: string | undefined;
|
|
@@ -1086,8 +1199,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
1086
1199
|
} | undefined;
|
|
1087
1200
|
} | undefined;
|
|
1088
1201
|
dynamic?: ({
|
|
1089
|
-
value: string;
|
|
1090
1202
|
kind: "testid";
|
|
1203
|
+
value: string;
|
|
1204
|
+
source?: {
|
|
1205
|
+
file: string;
|
|
1206
|
+
line: number;
|
|
1207
|
+
column?: number | undefined;
|
|
1208
|
+
} | undefined;
|
|
1091
1209
|
} | {
|
|
1092
1210
|
role: string;
|
|
1093
1211
|
kind: "role";
|
|
@@ -1124,8 +1242,8 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
1124
1242
|
net?: {
|
|
1125
1243
|
status?: number | undefined;
|
|
1126
1244
|
method?: string | undefined;
|
|
1127
|
-
urlContains?: string | undefined;
|
|
1128
1245
|
count?: number | undefined;
|
|
1246
|
+
urlContains?: string | undefined;
|
|
1129
1247
|
} | undefined;
|
|
1130
1248
|
console?: {
|
|
1131
1249
|
level?: string | undefined;
|
|
@@ -1144,8 +1262,13 @@ export declare const RecordedFlowSchema: z.ZodObject<{
|
|
|
1144
1262
|
} | undefined;
|
|
1145
1263
|
} | undefined;
|
|
1146
1264
|
dynamic?: ({
|
|
1147
|
-
value: string;
|
|
1148
1265
|
kind: "testid";
|
|
1266
|
+
value: string;
|
|
1267
|
+
source?: {
|
|
1268
|
+
file: string;
|
|
1269
|
+
line: number;
|
|
1270
|
+
column?: number | undefined;
|
|
1271
|
+
} | undefined;
|
|
1149
1272
|
} | {
|
|
1150
1273
|
role: string;
|
|
1151
1274
|
kind: "role";
|
package/dist/flow-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-types.d.ts","sourceRoot":"","sources":["../src/flow-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,UAAU,EAEV,KAAK,WAAW,EAEhB,KAAK,UAAU,EACf,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"flow-types.d.ts","sourceRoot":"","sources":["../src/flow-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,UAAU,EAEV,KAAK,WAAW,EAEhB,KAAK,UAAU,EACf,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AAExB;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4B3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,yFAAyF;A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,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3C;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/flow-types.js
CHANGED
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ActionType, AnchorKind, FLOW_FILE_VERSION, } from './constants.js';
|
|
3
|
+
/**
|
|
4
|
+
* The MCP tool names that can appear as a recorded flow step's `tool`. These are the ONLY tool names
|
|
5
|
+
* that cross the wire into a persisted flow file — the browser recorder stamps them, the server replays
|
|
6
|
+
* them, and FlowStep types them — so they live in core, the wire contract. The full agent-facing tool
|
|
7
|
+
* surface stays server-side (ReticleTool); ReticleTool references THESE for the flow-persisted three, so
|
|
8
|
+
* there is one source of truth and a rename cannot silently desync the recorder from the replayer (a
|
|
9
|
+
* tool rename once killed four e2e specs — this closes the browser/server half of that drift).
|
|
10
|
+
*/
|
|
11
|
+
export const FlowStepTool = {
|
|
12
|
+
ACT: 'reticle_act',
|
|
13
|
+
ACT_SEQUENCE: 'reticle_act_sequence',
|
|
14
|
+
ACT_AND_WAIT: 'reticle_act_and_wait',
|
|
15
|
+
};
|
|
3
16
|
/**
|
|
4
17
|
* A semantic anchor: how a step re-finds its element/event at replay
|
|
5
18
|
* time. Never a volatile eXX ref. testid/role+name bind a DOM element; signal binds an event.
|
|
6
19
|
*/
|
|
7
20
|
export const FlowAnchorSchema = z.discriminatedUnion('kind', [
|
|
8
|
-
|
|
21
|
+
// `source` is provenance, not part of how the step re-finds its element — the testid does that.
|
|
22
|
+
// It rides along so a failure can say which file to open; optional, so existing flow files parse
|
|
23
|
+
// unchanged and FLOW_FILE_VERSION does not move.
|
|
24
|
+
z.object({
|
|
25
|
+
kind: z.literal(AnchorKind.TESTID),
|
|
26
|
+
value: z.string().min(1),
|
|
27
|
+
source: z
|
|
28
|
+
.object({ file: z.string(), line: z.number(), column: z.number().optional() })
|
|
29
|
+
.optional(),
|
|
30
|
+
}),
|
|
9
31
|
z.object({
|
|
10
32
|
kind: z.literal(AnchorKind.ROLE),
|
|
11
33
|
role: z.string().min(1),
|
package/dist/flow-types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow-types.js","sourceRoot":"","sources":["../src/flow-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,UAAU,EACV,UAAU,EAEV,iBAAiB,GAGlB,MAAM,gBAAgB,CAAC;AAExB;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC3D,CAAC,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"flow-types.js","sourceRoot":"","sources":["../src/flow-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,UAAU,EACV,UAAU,EAEV,iBAAiB,GAGlB,MAAM,gBAAgB,CAAC;AAExB;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,GAAG,EAAE,aAAa;IAClB,YAAY,EAAE,sBAAsB;IACpC,YAAY,EAAE,sBAAsB;CAC5B,CAAC;AAGX;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC3D,gGAAgG;IAChG,iGAAiG;IACjG,iDAAiD;IACjD,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;QAClC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACxB,MAAM,EAAE,CAAC;aAC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EAAE,CAAC,QAAQ,EAAE;IAC9B,kFAAkF;IAClF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;IAC9B,OAAO,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IACpC;;;OAGG;IACH,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AAGH;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,cAAc;CACrB,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @reticlehq/core — the wire contract at the bottom of the Reticle graph (zod its only dependency).
|
|
3
|
+
*
|
|
4
|
+
* API-stability note: the exports below the divider are INTERNAL cross-package plumbing — they are
|
|
5
|
+
* re-exported so the other @reticlehq/* packages can share one implementation, NOT as a stable surface
|
|
6
|
+
* for outside consumers. They can change in a minor release. Depend on the STABLE section for anything
|
|
7
|
+
* outside this monorepo. (A dedicated `@reticlehq/core/internal` entry point is a 3.0 consideration; for
|
|
8
|
+
* now the boundary is documented here.)
|
|
9
|
+
*/
|
|
1
10
|
export * from './constants.js';
|
|
2
|
-
export * from './daemon-registry.js';
|
|
3
11
|
export * from './session-constants.js';
|
|
4
|
-
export * from './notices.js';
|
|
5
12
|
export * from './messages.js';
|
|
13
|
+
export * from './event-payloads.js';
|
|
14
|
+
export * from './flow-types.js';
|
|
15
|
+
export * from './verification-run.js';
|
|
16
|
+
export * from './types.js';
|
|
17
|
+
export * from './brand.js';
|
|
18
|
+
export * from './consequence.js';
|
|
19
|
+
export * from './notices.js';
|
|
20
|
+
export * from './journal.js';
|
|
21
|
+
export * from './daemon-registry.js';
|
|
6
22
|
export * from './security.js';
|
|
23
|
+
export * from './redaction.js';
|
|
7
24
|
export * from './state-select.js';
|
|
8
|
-
export * from './brand.js';
|
|
9
25
|
export * from './toon.js';
|
|
10
|
-
export * from './flow-types.js';
|
|
11
|
-
export * from './consequence.js';
|
|
12
|
-
export * from './types.js';
|
|
13
|
-
export * from './verification-run.js';
|
|
14
26
|
export * from './upgrade.js';
|
|
15
27
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAG7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @reticlehq/core — the wire contract at the bottom of the Reticle graph (zod its only dependency).
|
|
3
|
+
*
|
|
4
|
+
* API-stability note: the exports below the divider are INTERNAL cross-package plumbing — they are
|
|
5
|
+
* re-exported so the other @reticlehq/* packages can share one implementation, NOT as a stable surface
|
|
6
|
+
* for outside consumers. They can change in a minor release. Depend on the STABLE section for anything
|
|
7
|
+
* outside this monorepo. (A dedicated `@reticlehq/core/internal` entry point is a 3.0 consideration; for
|
|
8
|
+
* now the boundary is documented here.)
|
|
9
|
+
*/
|
|
10
|
+
// ── STABLE public surface: the wire/domain contract ──────────────────────────────────────────────
|
|
11
|
+
export * from './constants.js'; // EventType, ActionType, wire constants, TRANSPORT_LIMITS, …
|
|
3
12
|
export * from './session-constants.js';
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './brand.js';
|
|
9
|
-
export * from './toon.js';
|
|
10
|
-
export * from './flow-types.js';
|
|
11
|
-
export * from './consequence.js';
|
|
13
|
+
export * from './messages.js'; // ReticleEvent + the message schemas
|
|
14
|
+
export * from './event-payloads.js'; // per-event payload schemas + wire vocab
|
|
15
|
+
export * from './flow-types.js'; // FlowStep, FlowExpect, FlowStepTool, replay result shapes
|
|
16
|
+
export * from './verification-run.js'; // run/verdict shapes for the CI surface
|
|
12
17
|
export * from './types.js';
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
18
|
+
export * from './brand.js'; // RunId / SessionId / Ref brands + validators
|
|
19
|
+
export * from './consequence.js';
|
|
20
|
+
export * from './notices.js';
|
|
21
|
+
export * from './journal.js';
|
|
22
|
+
// ── INTERNAL cross-package plumbing (shared impl; not a stable outside API — may change in a minor) ─
|
|
23
|
+
export * from './daemon-registry.js'; // daemon discovery, used by the vite plugin + server
|
|
24
|
+
export * from './security.js'; // sanitize/serialize helpers shared by browser + server
|
|
25
|
+
export * from './redaction.js'; // isSensitiveKey / scrubKnownSecrets — the shared redaction rules
|
|
26
|
+
export * from './state-select.js'; // selectPath / capDepth — shared by browser SDK + server fallback
|
|
27
|
+
export * from './toon.js'; // TOON encoding used by the server's result encoder
|
|
28
|
+
export * from './upgrade.js'; // self-update policy shared by the CLI
|
|
15
29
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oGAAoG;AACpG,cAAc,gBAAgB,CAAC,CAAC,6DAA6D;AAC7F,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC,CAAC,qCAAqC;AACpE,cAAc,qBAAqB,CAAC,CAAC,yCAAyC;AAC9E,cAAc,iBAAiB,CAAC,CAAC,2DAA2D;AAC5F,cAAc,uBAAuB,CAAC,CAAC,wCAAwC;AAC/E,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC,CAAC,8CAA8C;AAC1E,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAE7B,uGAAuG;AACvG,cAAc,sBAAsB,CAAC,CAAC,qDAAqD;AAC3F,cAAc,eAAe,CAAC,CAAC,wDAAwD;AACvF,cAAc,gBAAgB,CAAC,CAAC,kEAAkE;AAClG,cAAc,mBAAmB,CAAC,CAAC,kEAAkE;AACrG,cAAc,WAAW,CAAC,CAAC,oDAAoD;AAC/E,cAAc,cAAc,CAAC,CAAC,uCAAuC"}
|