@reticlehq/core 2.0.1 → 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.
Files changed (70) hide show
  1. package/LICENSE +201 -112
  2. package/NOTICE +5 -0
  3. package/dist/brand.d.ts +32 -3
  4. package/dist/brand.d.ts.map +1 -1
  5. package/dist/brand.js +9 -4
  6. package/dist/brand.js.map +1 -1
  7. package/dist/consequence.d.ts +31 -0
  8. package/dist/consequence.d.ts.map +1 -0
  9. package/dist/consequence.js +45 -0
  10. package/dist/consequence.js.map +1 -0
  11. package/dist/constants.d.ts +161 -5
  12. package/dist/constants.d.ts.map +1 -1
  13. package/dist/constants.js +156 -5
  14. package/dist/constants.js.map +1 -1
  15. package/dist/daemon-registry.d.ts +5 -5
  16. package/dist/daemon-registry.d.ts.map +1 -1
  17. package/dist/daemon-registry.js +5 -5
  18. package/dist/daemon-registry.js.map +1 -1
  19. package/dist/event-payloads.d.ts +502 -0
  20. package/dist/event-payloads.d.ts.map +1 -0
  21. package/dist/event-payloads.js +138 -0
  22. package/dist/event-payloads.js.map +1 -0
  23. package/dist/flow-constants.d.ts +2 -2
  24. package/dist/flow-constants.js +7 -7
  25. package/dist/flow-constants.js.map +1 -1
  26. package/dist/flow-types.d.ts +156 -32
  27. package/dist/flow-types.d.ts.map +1 -1
  28. package/dist/flow-types.js +23 -1
  29. package/dist/flow-types.js.map +1 -1
  30. package/dist/index.d.ts +19 -6
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +26 -11
  33. package/dist/index.js.map +1 -1
  34. package/dist/journal.d.ts +90 -0
  35. package/dist/journal.d.ts.map +1 -0
  36. package/dist/journal.js +38 -0
  37. package/dist/journal.js.map +1 -0
  38. package/dist/messages.d.ts +118 -16
  39. package/dist/messages.d.ts.map +1 -1
  40. package/dist/messages.js +15 -2
  41. package/dist/messages.js.map +1 -1
  42. package/dist/notices.d.ts +4 -4
  43. package/dist/notices.js +4 -4
  44. package/dist/redaction.d.ts +4 -0
  45. package/dist/redaction.d.ts.map +1 -0
  46. package/dist/redaction.js +33 -0
  47. package/dist/redaction.js.map +1 -0
  48. package/dist/schema/event-message.json +23 -1
  49. package/dist/schema/event-type.json +10 -1
  50. package/dist/schema/reticle-event.json +23 -1
  51. package/dist/schema/reticle-message.json +23 -1
  52. package/dist/session-constants.d.ts +2 -2
  53. package/dist/session-constants.js +2 -2
  54. package/dist/state-select.d.ts.map +1 -1
  55. package/dist/state-select.js +21 -5
  56. package/dist/state-select.js.map +1 -1
  57. package/dist/toon.d.ts +13 -12
  58. package/dist/toon.d.ts.map +1 -1
  59. package/dist/toon.js +37 -20
  60. package/dist/toon.js.map +1 -1
  61. package/dist/types.d.ts +80 -18
  62. package/dist/types.d.ts.map +1 -1
  63. package/dist/types.js +9 -3
  64. package/dist/types.js.map +1 -1
  65. package/dist/upgrade.d.ts +5 -5
  66. package/dist/upgrade.js +3 -3
  67. package/dist/verification-run.d.ts +25 -23
  68. package/dist/verification-run.d.ts.map +1 -1
  69. package/dist/verification-run.js +1 -1
  70. package/package.json +6 -2
package/dist/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { Ref } from './brand.js';
1
2
  import { z } from 'zod';
2
3
  import { type AnnotationErrorCode, type AnnotationTarget, ElementState } from './constants.js';
3
4
  import type { FlowExpect } from './flow-types.js';
@@ -22,6 +23,11 @@ export declare const ElementQuerySchema: z.ZodObject<{
22
23
  alt: z.ZodOptional<z.ZodString>;
23
24
  /** Component display name (auto-anchor resolution). The nearest enclosing component of the target. */
24
25
  component: z.ZodOptional<z.ZodString>;
26
+ /**
27
+ * Attribute names to project onto each match (e.g. `['href']` to inventory links, `['src']` for
28
+ * images). Without this the descriptor carries only semantics, so URLs are unreachable.
29
+ */
30
+ attrs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25
31
  /** Source location of the target element (auto-anchor resolution) — the precise, granular match. */
26
32
  source: z.ZodOptional<z.ZodObject<{
27
33
  file: z.ZodString;
@@ -54,6 +60,7 @@ export declare const ElementQuerySchema: z.ZodObject<{
54
60
  } | undefined;
55
61
  name?: string | undefined;
56
62
  by?: "testid" | "role" | "component" | "text" | "label" | "placeholder" | "alt" | undefined;
63
+ attrs?: string[] | undefined;
57
64
  scope?: string | undefined;
58
65
  }, {
59
66
  testid?: string | undefined;
@@ -71,23 +78,64 @@ export declare const ElementQuerySchema: z.ZodObject<{
71
78
  } | undefined;
72
79
  name?: string | undefined;
73
80
  by?: "testid" | "role" | "component" | "text" | "label" | "placeholder" | "alt" | undefined;
81
+ attrs?: string[] | undefined;
74
82
  scope?: string | undefined;
75
83
  }>;
76
84
  export type ElementQuery = z.infer<typeof ElementQuerySchema>;
77
85
  /** Compact semantic descriptor of one element surfaced to the agent. */
78
86
  export interface ElementDescriptor {
79
- ref: string;
87
+ /** Branded: minted by the browser's ref registry, so it cannot be confused with another id kind. */
88
+ ref: Ref;
80
89
  role: string;
81
90
  name: string;
82
91
  value?: string;
83
92
  states: ElementState[];
84
93
  visible: boolean;
85
94
  text?: string;
95
+ /**
96
+ * Attributes explicitly requested via `ElementQuery.attrs`. Absent attributes are omitted (so
97
+ * "missing" and "present but blank" stay distinguishable) and credential-bearing names are redacted.
98
+ */
99
+ attrs?: Record<string, string>;
100
+ /**
101
+ * Where this element is written, as `file:line` — the nearest `data-reticle-source` stamped by the
102
+ * build plugin in dev. Absent in production builds and in apps that do not use the plugin, so an
103
+ * agent must treat it as a shortcut rather than a guarantee.
104
+ *
105
+ * A compact string rather than `{file, line}` because a descriptor can repeat hundreds of times in
106
+ * one response and every consumer either opens an editor or prints it.
107
+ */
108
+ source?: string;
109
+ /**
110
+ * Chart geometry faults found inside this element — PRESENT ONLY WHEN SOMETHING IS WRONG.
111
+ *
112
+ * A chart is the one dashboard surface where the store and the screen diverge invisibly: every
113
+ * other widget renders text a comparison can read, while a chart renders coordinates that a correct
114
+ * `series` can still turn into a blank or NaN-filled path. Reported on the descriptor rather than
115
+ * behind a new tool so it costs nothing to ask for — the agent already queries the chart element,
116
+ * and a healthy chart adds zero bytes because the field is omitted.
117
+ */
118
+ chart?: ChartFault[];
119
+ }
120
+ /** One chart geometry fault. `kind` is what an agent branches on; `sample` is bounded for the wire. */
121
+ export interface ChartFault {
122
+ kind: 'non-finite-coordinates' | 'empty-geometry' | 'degenerate-geometry';
123
+ tag: string;
124
+ attr: string;
125
+ sample: string;
86
126
  }
87
127
  export interface MatchResult {
88
128
  matched: boolean;
89
129
  count: number;
90
130
  elements: ElementDescriptor[];
131
+ /**
132
+ * True when a `scope` was given but resolved to nothing (the container was unmounted or the selector
133
+ * matched no element). The search returns zero matches WITHOUT falling back to the whole page, and
134
+ * this flag says why — so "element absent" and "scope vanished" stay distinguishable. Without it, a
135
+ * scoped assertion silently widened to the body (a phantom positive) or read a gone scope as a
136
+ * confirmed absence (a false negative); both are the false-green shape this tool exists to prevent.
137
+ */
138
+ scopeMissing?: boolean;
91
139
  }
92
140
  /**
93
141
  * A semantic cluster of interactive elements in the DOM — the replacement for the raw testid list
@@ -117,7 +165,17 @@ export interface QueryEmptyHint {
117
165
  /** Result of the QUERY command / reticle_query tool. `hint` present ONLY on zero matches. */
118
166
  export interface QueryResult {
119
167
  elements: ElementDescriptor[];
168
+ /**
169
+ * How many elements MATCHED, which is not the same as how many are in `elements`.
170
+ *
171
+ * Descriptors are expensive to build and the transport caps collections, so beyond a point matches
172
+ * are counted but not described. Reporting the count separately is what keeps "how many are there?"
173
+ * an exact answer instead of a description of the cap.
174
+ */
175
+ count: number;
120
176
  hint?: QueryEmptyHint;
177
+ /** See MatchResult.scopeMissing — a provided scope resolved to nothing; the search did not widen. */
178
+ scopeMissing?: boolean;
121
179
  }
122
180
  /** One named flow advertised by the app (mirrors the browser CapabilityFlow). */
123
181
  export declare const CapabilityFlowSchema: z.ZodObject<{
@@ -318,7 +376,7 @@ export declare const CapabilitiesSchema: z.ZodObject<{
318
376
  export type CapabilitiesContract = z.infer<typeof CapabilitiesSchema>;
319
377
  /** The on-disk contract.json envelope: versioned + timestamped capabilities. */
320
378
  export declare const ContractFileSchema: z.ZodObject<{
321
- version: z.ZodNumber;
379
+ version: z.ZodLiteral<1>;
322
380
  generatedAt: z.ZodNumber;
323
381
  capabilities: z.ZodObject<{
324
382
  testids: z.ZodArray<z.ZodString, "many">;
@@ -443,7 +501,7 @@ export declare const ContractFileSchema: z.ZodObject<{
443
501
  redact?: string[] | undefined;
444
502
  } | undefined;
445
503
  };
446
- version: number;
504
+ version: 1;
447
505
  generatedAt: number;
448
506
  }, {
449
507
  capabilities: {
@@ -466,7 +524,7 @@ export declare const ContractFileSchema: z.ZodObject<{
466
524
  redact?: string[] | undefined;
467
525
  } | undefined;
468
526
  };
469
- version: number;
527
+ version: 1;
470
528
  generatedAt: number;
471
529
  }>;
472
530
  /**
@@ -517,8 +575,8 @@ export declare const RunRecordSchema: z.ZodObject<{
517
575
  durationMs: z.ZodOptional<z.ZodNumber>;
518
576
  }, "strip", z.ZodTypeAny, {
519
577
  status: "pass" | "drift" | "error" | "fail";
520
- at: number;
521
578
  kind: "flow_replay" | "manual";
579
+ at: number;
522
580
  name: string;
523
581
  durationMs?: number | undefined;
524
582
  evidence?: {
@@ -529,8 +587,8 @@ export declare const RunRecordSchema: z.ZodObject<{
529
587
  summary?: string | undefined;
530
588
  }, {
531
589
  status: "pass" | "drift" | "error" | "fail";
532
- at: number;
533
590
  kind: "flow_replay" | "manual";
591
+ at: number;
534
592
  name: string;
535
593
  durationMs?: number | undefined;
536
594
  evidence?: {
@@ -555,7 +613,7 @@ export declare const ProjectLearnedSchema: z.ZodObject<{
555
613
  export type ProjectLearned = z.infer<typeof ProjectLearnedSchema>;
556
614
  /** The on-disk project.json envelope: versioned learned-map + chronological runs. */
557
615
  export declare const ProjectFileSchema: z.ZodObject<{
558
- version: z.ZodNumber;
616
+ version: z.ZodLiteral<1>;
559
617
  learned: z.ZodOptional<z.ZodObject<{
560
618
  flows: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
561
619
  routes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -596,8 +654,8 @@ export declare const ProjectFileSchema: z.ZodObject<{
596
654
  durationMs: z.ZodOptional<z.ZodNumber>;
597
655
  }, "strip", z.ZodTypeAny, {
598
656
  status: "pass" | "drift" | "error" | "fail";
599
- at: number;
600
657
  kind: "flow_replay" | "manual";
658
+ at: number;
601
659
  name: string;
602
660
  durationMs?: number | undefined;
603
661
  evidence?: {
@@ -608,8 +666,8 @@ export declare const ProjectFileSchema: z.ZodObject<{
608
666
  summary?: string | undefined;
609
667
  }, {
610
668
  status: "pass" | "drift" | "error" | "fail";
611
- at: number;
612
669
  kind: "flow_replay" | "manual";
670
+ at: number;
613
671
  name: string;
614
672
  durationMs?: number | undefined;
615
673
  evidence?: {
@@ -622,8 +680,8 @@ export declare const ProjectFileSchema: z.ZodObject<{
622
680
  }, "strip", z.ZodTypeAny, {
623
681
  runs: {
624
682
  status: "pass" | "drift" | "error" | "fail";
625
- at: number;
626
683
  kind: "flow_replay" | "manual";
684
+ at: number;
627
685
  name: string;
628
686
  durationMs?: number | undefined;
629
687
  evidence?: {
@@ -633,7 +691,7 @@ export declare const ProjectFileSchema: z.ZodObject<{
633
691
  } | undefined;
634
692
  summary?: string | undefined;
635
693
  }[];
636
- version: number;
694
+ version: 1;
637
695
  learned?: {
638
696
  flows?: string[] | undefined;
639
697
  routes?: string[] | undefined;
@@ -641,8 +699,8 @@ export declare const ProjectFileSchema: z.ZodObject<{
641
699
  }, {
642
700
  runs: {
643
701
  status: "pass" | "drift" | "error" | "fail";
644
- at: number;
645
702
  kind: "flow_replay" | "manual";
703
+ at: number;
646
704
  name: string;
647
705
  durationMs?: number | undefined;
648
706
  evidence?: {
@@ -652,7 +710,7 @@ export declare const ProjectFileSchema: z.ZodObject<{
652
710
  } | undefined;
653
711
  summary?: string | undefined;
654
712
  }[];
655
- version: number;
713
+ version: 1;
656
714
  learned?: {
657
715
  flows?: string[] | undefined;
658
716
  routes?: string[] | undefined;
@@ -731,13 +789,13 @@ export declare const AnnotationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
731
789
  }, "strip", z.ZodTypeAny, {
732
790
  status?: number | undefined;
733
791
  method?: string | undefined;
734
- urlContains?: string | undefined;
735
792
  count?: number | undefined;
793
+ urlContains?: string | undefined;
736
794
  }, {
737
795
  status?: number | undefined;
738
796
  method?: string | undefined;
739
- urlContains?: string | undefined;
740
797
  count?: number | undefined;
798
+ urlContains?: string | undefined;
741
799
  }>>;
742
800
  console: z.ZodOptional<z.ZodObject<{
743
801
  level: z.ZodOptional<z.ZodString>;
@@ -756,8 +814,8 @@ export declare const AnnotationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
756
814
  net?: {
757
815
  status?: number | undefined;
758
816
  method?: string | undefined;
759
- urlContains?: string | undefined;
760
817
  count?: number | undefined;
818
+ urlContains?: string | undefined;
761
819
  } | undefined;
762
820
  console?: {
763
821
  level?: string | undefined;
@@ -774,8 +832,8 @@ export declare const AnnotationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObj
774
832
  net?: {
775
833
  status?: number | undefined;
776
834
  method?: string | undefined;
777
- urlContains?: string | undefined;
778
835
  count?: number | undefined;
836
+ urlContains?: string | undefined;
779
837
  } | undefined;
780
838
  console?: {
781
839
  level?: string | undefined;
@@ -815,7 +873,7 @@ export type AnnotateResult = {
815
873
  * (success-state). All optional; exactly the fields the compiled kind needs are set.
816
874
  */
817
875
  export interface AnnotatePatch {
818
- /** index of the step whose .expect is set (assert-signal / assert-visible). */
876
+ /** index of the step whose.expect is set (assert-signal / assert-visible). */
819
877
  stepIndex?: number;
820
878
  stepExpect?: FlowExpect;
821
879
  /** the testid pushed into flow.dynamic[] (mark-dynamic). */
@@ -830,4 +888,8 @@ export interface AnnotateOutcome {
830
888
  result: AnnotateResult;
831
889
  patch?: AnnotatePatch;
832
890
  }
891
+ export type ContractFile = z.infer<typeof ContractFileSchema>;
892
+ export type RunEvidence = z.infer<typeof RunEvidenceSchema>;
893
+ export type CapabilityFlow = z.infer<typeof CapabilityFlowSchema>;
894
+ export type RiskZone = z.infer<typeof RiskZoneSchema>;
833
895
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,YAAY,EAIb,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,0EAA0E;AAC1E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;IAU7B,sGAAsG;;IAEtG,oGAAoG;;;;;;;;;;;;;;IAIpG,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/C,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,wEAAwE;AACxE,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,iBAAiB,EAAE,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAA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AAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
package/dist/types.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { AnnotationKind, ElementState, QueryBy, RunKind, RunStatus, } from './constants.js';
2
+ import { AnnotationKind, CONTRACT_FILE_VERSION, ElementState, QueryBy, RunKind, RunStatus, } from './constants.js';
3
+ import { PROJECT_FILE_VERSION } from './flow-constants.js';
3
4
  import { RiskSurface } from './verification-run.js';
4
5
  /** A query describing which element(s) to find, Testing-Library style. */
5
6
  export const ElementQuerySchema = z.object({
@@ -14,6 +15,11 @@ export const ElementQuerySchema = z.object({
14
15
  alt: z.string().optional(),
15
16
  /** Component display name (auto-anchor resolution). The nearest enclosing component of the target. */
16
17
  component: z.string().optional(),
18
+ /**
19
+ * Attribute names to project onto each match (e.g. `['href']` to inventory links, `['src']` for
20
+ * images). Without this the descriptor carries only semantics, so URLs are unreachable.
21
+ */
22
+ attrs: z.array(z.string()).optional(),
17
23
  /** Source location of the target element (auto-anchor resolution) — the precise, granular match. */
18
24
  source: z
19
25
  .object({ file: z.string(), line: z.number(), column: z.number().optional() })
@@ -60,7 +66,7 @@ export const CapabilitiesSchema = z.object({
60
66
  });
61
67
  /** The on-disk contract.json envelope: versioned + timestamped capabilities. */
62
68
  export const ContractFileSchema = z.object({
63
- version: z.number(),
69
+ version: z.literal(CONTRACT_FILE_VERSION),
64
70
  generatedAt: z.number(),
65
71
  capabilities: CapabilitiesSchema,
66
72
  });
@@ -90,7 +96,7 @@ export const ProjectLearnedSchema = z.object({
90
96
  });
91
97
  /** The on-disk project.json envelope: versioned learned-map + chronological runs. */
92
98
  export const ProjectFileSchema = z.object({
93
- version: z.number(),
99
+ version: z.literal(PROJECT_FILE_VERSION),
94
100
  learned: ProjectLearnedSchema.optional(),
95
101
  runs: z.array(RunRecordSchema),
96
102
  });
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,cAAc,EAGd,YAAY,EACZ,OAAO,EACP,OAAO,EACP,SAAS,GACV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,0EAA0E;AAC1E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;IACpC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,sGAAsG;IACtG,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QA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QAAQ,EAAE;YAC7B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;SACjD,CAAC;aACD,QAAQ,EAAE;QACb,gGAAgG;QAChG,oGAAoG;QACpG,mCAAmC;QACnC,OAAO,EAAE,CAAC;aACP,MAAM,CAAC;YACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;YACnC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;SAC/B,CAAC;aACD,QAAQ,EAAE;KACd,CAAC;IACF,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC;QACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KACxB,CAAC;CACH,CAAC,CAAC"}
package/dist/upgrade.d.ts CHANGED
@@ -8,9 +8,9 @@
8
8
  * the hint is honest about the exact problem the paid tier solves.
9
9
  *
10
10
  * Design guarantees the emitter must honour (enforced server-side, named here so both ends agree):
11
- * - one hint per capability per session,
12
- * - fully silenceable via the env switch below,
13
- * - the agent's objective never includes "drive upgrades" — it reports a blocker, it does not sell.
11
+ * - one hint per capability per session,
12
+ * - fully silenceable via the env switch below,
13
+ * - the agent's objective never includes "drive upgrades" — it reports a blocker, it does not sell.
14
14
  */
15
15
  import { z } from 'zod';
16
16
  /** Env switch that silences ALL upgrade hints — respected by the server before any hint is emitted. */
@@ -56,13 +56,13 @@ export declare const UpgradeHintSchema: z.ZodObject<{
56
56
  unlockedBy: z.ZodString;
57
57
  learnMoreUrl: z.ZodString;
58
58
  }, "strip", z.ZodTypeAny, {
59
- capability: "share_proof" | "run_history" | "team_review" | "corpus_heal" | "ci_gate";
60
59
  reason: string;
60
+ capability: "share_proof" | "run_history" | "team_review" | "corpus_heal" | "ci_gate";
61
61
  unlockedBy: string;
62
62
  learnMoreUrl: string;
63
63
  }, {
64
- capability: "share_proof" | "run_history" | "team_review" | "corpus_heal" | "ci_gate";
65
64
  reason: string;
65
+ capability: "share_proof" | "run_history" | "team_review" | "corpus_heal" | "ci_gate";
66
66
  unlockedBy: string;
67
67
  learnMoreUrl: string;
68
68
  }>;
package/dist/upgrade.js CHANGED
@@ -8,9 +8,9 @@
8
8
  * the hint is honest about the exact problem the paid tier solves.
9
9
  *
10
10
  * Design guarantees the emitter must honour (enforced server-side, named here so both ends agree):
11
- * - one hint per capability per session,
12
- * - fully silenceable via the env switch below,
13
- * - the agent's objective never includes "drive upgrades" — it reports a blocker, it does not sell.
11
+ * - one hint per capability per session,
12
+ * - fully silenceable via the env switch below,
13
+ * - the agent's objective never includes "drive upgrades" — it reports a blocker, it does not sell.
14
14
  */
15
15
  import { z } from 'zod';
16
16
  /** Env switch that silences ALL upgrade hints — respected by the server before any hint is emitted. */
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Conventions match the rest of `@reticlehq/core`: enums are `as const` objects narrowed with
9
9
  * `z.nativeEnum`, timestamps are epoch-ms NUMBERS (the clock is injected — never read inside pure
10
- * logic), no `any` (opaque evidence is `z.unknown()`), and every domain string is a named constant.
10
+ * logic), no `any` (opaque evidence is `z.unknown`), and every domain string is a named constant.
11
11
  */
12
12
  import { z } from 'zod';
13
13
  /** Schema version stamped into every run file so a reader can reject/upgrade old artifacts. */
@@ -215,8 +215,8 @@ export declare const RunFlowResultSchema: z.ZodObject<{
215
215
  }, "strip", z.ZodTypeAny, {
216
216
  status: "pass" | "fail" | "healed" | "skipped";
217
217
  name: string;
218
- steps: number;
219
218
  durationMs: number;
219
+ steps: number;
220
220
  healed?: {
221
221
  from: string;
222
222
  to: string;
@@ -228,8 +228,8 @@ export declare const RunFlowResultSchema: z.ZodObject<{
228
228
  }, {
229
229
  status: "pass" | "fail" | "healed" | "skipped";
230
230
  name: string;
231
- steps: number;
232
231
  durationMs: number;
232
+ steps: number;
233
233
  healed?: {
234
234
  from: string;
235
235
  to: string;
@@ -378,12 +378,12 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
378
378
  kind: z.ZodString;
379
379
  summary: z.ZodString;
380
380
  }, "strip", z.ZodTypeAny, {
381
- at: number;
382
381
  kind: string;
382
+ at: number;
383
383
  summary: string;
384
384
  }, {
385
- at: number;
386
385
  kind: string;
386
+ at: number;
387
387
  summary: string;
388
388
  }>, "many">>;
389
389
  }, "strip", z.ZodTypeAny, {
@@ -406,8 +406,8 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
406
406
  actual?: unknown;
407
407
  }[];
408
408
  timeline: {
409
- at: number;
410
409
  kind: string;
410
+ at: number;
411
411
  summary: string;
412
412
  }[];
413
413
  }, {
@@ -430,8 +430,8 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
430
430
  actual?: unknown;
431
431
  }[] | undefined;
432
432
  timeline?: {
433
- at: number;
434
433
  kind: string;
434
+ at: number;
435
435
  summary: string;
436
436
  }[] | undefined;
437
437
  }>;
@@ -552,13 +552,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
552
552
  name: string;
553
553
  framework: "react" | "next" | "vite" | "other";
554
554
  commit?: string | undefined;
555
- env?: "ci" | "preview" | "local" | undefined;
555
+ env?: "local" | "ci" | "preview" | undefined;
556
556
  previewUrl?: string | undefined;
557
557
  }, {
558
558
  name: string;
559
559
  framework: "react" | "next" | "vite" | "other";
560
560
  commit?: string | undefined;
561
- env?: "ci" | "preview" | "local" | undefined;
561
+ env?: "local" | "ci" | "preview" | undefined;
562
562
  previewUrl?: string | undefined;
563
563
  }>;
564
564
  agent: z.ZodObject<{
@@ -651,8 +651,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
651
651
  }, "strip", z.ZodTypeAny, {
652
652
  status: "pass" | "fail" | "healed" | "skipped";
653
653
  name: string;
654
- steps: number;
655
654
  durationMs: number;
655
+ steps: number;
656
656
  healed?: {
657
657
  from: string;
658
658
  to: string;
@@ -664,8 +664,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
664
664
  }, {
665
665
  status: "pass" | "fail" | "healed" | "skipped";
666
666
  name: string;
667
- steps: number;
668
667
  durationMs: number;
668
+ steps: number;
669
669
  healed?: {
670
670
  from: string;
671
671
  to: string;
@@ -808,12 +808,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
808
808
  kind: z.ZodString;
809
809
  summary: z.ZodString;
810
810
  }, "strip", z.ZodTypeAny, {
811
- at: number;
812
811
  kind: string;
812
+ at: number;
813
813
  summary: string;
814
814
  }, {
815
- at: number;
816
815
  kind: string;
816
+ at: number;
817
817
  summary: string;
818
818
  }>, "many">>;
819
819
  }, "strip", z.ZodTypeAny, {
@@ -836,8 +836,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
836
836
  actual?: unknown;
837
837
  }[];
838
838
  timeline: {
839
- at: number;
840
839
  kind: string;
840
+ at: number;
841
841
  summary: string;
842
842
  }[];
843
843
  }, {
@@ -860,8 +860,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
860
860
  actual?: unknown;
861
861
  }[] | undefined;
862
862
  timeline?: {
863
- at: number;
864
863
  kind: string;
864
+ at: number;
865
865
  summary: string;
866
866
  }[] | undefined;
867
867
  }>;
@@ -976,8 +976,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
976
976
  flows: {
977
977
  status: "pass" | "fail" | "healed" | "skipped";
978
978
  name: string;
979
- steps: number;
980
979
  durationMs: number;
980
+ steps: number;
981
981
  healed?: {
982
982
  from: string;
983
983
  to: string;
@@ -987,8 +987,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
987
987
  evidenceRef?: string | undefined;
988
988
  failureReason?: string | undefined;
989
989
  }[];
990
- createdAt: number;
991
990
  durationMs: number;
991
+ createdAt: number;
992
992
  evidence: {
993
993
  consoleErrors: {
994
994
  message: string;
@@ -1009,8 +1009,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1009
1009
  actual?: unknown;
1010
1010
  }[];
1011
1011
  timeline: {
1012
- at: number;
1013
1012
  kind: string;
1013
+ at: number;
1014
1014
  summary: string;
1015
1015
  }[];
1016
1016
  };
@@ -1021,7 +1021,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1021
1021
  name: string;
1022
1022
  framework: "react" | "next" | "vite" | "other";
1023
1023
  commit?: string | undefined;
1024
- env?: "ci" | "preview" | "local" | undefined;
1024
+ env?: "local" | "ci" | "preview" | undefined;
1025
1025
  previewUrl?: string | undefined;
1026
1026
  };
1027
1027
  agent: {
@@ -1082,8 +1082,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1082
1082
  signedAt: number;
1083
1083
  } | undefined;
1084
1084
  }, {
1085
- createdAt: number;
1086
1085
  durationMs: number;
1086
+ createdAt: number;
1087
1087
  evidence: {
1088
1088
  consoleErrors?: {
1089
1089
  message: string;
@@ -1104,8 +1104,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1104
1104
  actual?: unknown;
1105
1105
  }[] | undefined;
1106
1106
  timeline?: {
1107
- at: number;
1108
1107
  kind: string;
1108
+ at: number;
1109
1109
  summary: string;
1110
1110
  }[] | undefined;
1111
1111
  };
@@ -1116,7 +1116,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1116
1116
  name: string;
1117
1117
  framework: "react" | "next" | "vite" | "other";
1118
1118
  commit?: string | undefined;
1119
- env?: "ci" | "preview" | "local" | undefined;
1119
+ env?: "local" | "ci" | "preview" | undefined;
1120
1120
  previewUrl?: string | undefined;
1121
1121
  };
1122
1122
  agent: {
@@ -1138,8 +1138,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1138
1138
  flows?: {
1139
1139
  status: "pass" | "fail" | "healed" | "skipped";
1140
1140
  name: string;
1141
- steps: number;
1142
1141
  durationMs: number;
1142
+ steps: number;
1143
1143
  healed?: {
1144
1144
  from: string;
1145
1145
  to: string;
@@ -1192,4 +1192,6 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1192
1192
  } | undefined;
1193
1193
  }>;
1194
1194
  export type ReticleVerificationRun = z.infer<typeof ReticleVerificationRunSchema>;
1195
+ export type VerificationEvidence = z.infer<typeof VerificationEvidenceSchema>;
1196
+ export type RunSignature = z.infer<typeof RunSignatureSchema>;
1195
1197
  //# sourceMappingURL=verification-run.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"verification-run.d.ts","sourceRoot":"","sources":["../src/verification-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,+FAA+F;AAC/F,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAElC;;;GAGG;AACH,eAAO,MAAM,WAAW,oCAA8B,CAAC;AACvD,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAChD,qGAAqG;AACrG,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,KAAG,KAAuB,CAAC;AAEhE;;;;GAIG;AACH,eAAO,MAAM,aAAa,MAAM,CAAC;AACjC,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,iGAAiG;AACjG,eAAO,MAAM,YAAY;;;CAGf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E,sGAAsG;AACtG,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E,qGAAqG;AACrG,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE/E,yGAAyG;AACzG,eAAO,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Conventions match the rest of `@reticlehq/core`: enums are `as const` objects narrowed with
9
9
  * `z.nativeEnum`, timestamps are epoch-ms NUMBERS (the clock is injected — never read inside pure
10
- * logic), no `any` (opaque evidence is `z.unknown()`), and every domain string is a named constant.
10
+ * logic), no `any` (opaque evidence is `z.unknown`), and every domain string is a named constant.
11
11
  */
12
12
  import { z } from 'zod';
13
13
  /** Schema version stamped into every run file so a reader can reject/upgrade old artifacts. */