@reticlehq/core 2.13.1 → 2.14.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/artifacts-entry.d.ts +20 -0
- package/dist/artifacts-entry.js +20 -0
- package/dist/consequence.d.ts +8 -1
- package/dist/consequence.js +11 -2
- package/dist/constants.d.ts +33 -0
- package/dist/constants.js +32 -0
- package/dist/dev-server-registry.d.ts +2 -2
- package/dist/event-payloads.d.ts +167 -10
- package/dist/event-payloads.js +40 -0
- package/dist/findings.d.ts +61 -0
- package/dist/findings.js +67 -0
- package/dist/flow-constants.d.ts +8 -0
- package/dist/flow-constants.js +8 -0
- package/dist/flow-types.d.ts +371 -133
- package/dist/flow-types.js +55 -3
- package/dist/global-press.d.ts +30 -0
- package/dist/global-press.js +54 -0
- package/dist/impact-savings.d.ts +7 -3
- package/dist/impact-savings.js +27 -4
- package/dist/impact.d.ts +96 -44
- package/dist/impact.js +21 -0
- package/dist/index.d.ts +16 -2
- package/dist/index.js +16 -2
- package/dist/instrumentation-gap.d.ts +15 -0
- package/dist/instrumentation-gap.js +16 -0
- package/dist/intent.d.ts +24 -24
- package/dist/journal.d.ts +7 -7
- package/dist/messages.d.ts +107 -46
- package/dist/messages.js +25 -0
- package/dist/net.d.ts +40 -0
- package/dist/net.js +40 -0
- package/dist/notices.d.ts +16 -0
- package/dist/notices.js +19 -0
- package/dist/redaction.d.ts +30 -0
- package/dist/redaction.js +127 -2
- package/dist/schema/event-message.json +1 -0
- package/dist/schema/event-type.json +1 -0
- package/dist/schema/hello-message.json +6 -0
- package/dist/schema/reticle-event.json +1 -0
- package/dist/schema/reticle-message.json +7 -0
- package/dist/telemetry-entry.d.ts +15 -0
- package/dist/telemetry-entry.js +15 -0
- package/dist/telemetry-feedback.d.ts +2 -2
- package/dist/telemetry-session.d.ts +2 -2
- package/dist/telemetry.d.ts +52 -50
- package/dist/types.d.ts +83 -44
- package/dist/types.js +20 -1
- package/dist/upgrade.d.ts +2 -2
- package/dist/verification-run.d.ts +36 -36
- package/dist/verified-constants.d.ts +11 -0
- package/dist/verified-constants.js +11 -0
- package/dist/verify-progress.d.ts +133 -0
- package/dist/verify-progress.js +78 -0
- package/package.json +9 -1
package/dist/impact.d.ts
CHANGED
|
@@ -41,8 +41,8 @@ export declare const ImpactCountsSchema: z.ZodObject<{
|
|
|
41
41
|
/** Wall-clock milliseconds spent inside tool calls. */
|
|
42
42
|
drivingMs: z.ZodNumber;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
sessions: number;
|
|
45
44
|
unknown: number;
|
|
45
|
+
sessions: number;
|
|
46
46
|
passed: number;
|
|
47
47
|
calls: number;
|
|
48
48
|
verdicts: number;
|
|
@@ -52,8 +52,8 @@ export declare const ImpactCountsSchema: z.ZodObject<{
|
|
|
52
52
|
tokensReturned: number;
|
|
53
53
|
drivingMs: number;
|
|
54
54
|
}, {
|
|
55
|
-
sessions: number;
|
|
56
55
|
unknown: number;
|
|
56
|
+
sessions: number;
|
|
57
57
|
passed: number;
|
|
58
58
|
calls: number;
|
|
59
59
|
verdicts: number;
|
|
@@ -90,8 +90,8 @@ export declare const ImpactDaySchema: z.ZodObject<{
|
|
|
90
90
|
/** Wall-clock milliseconds spent inside tool calls. */
|
|
91
91
|
drivingMs: z.ZodNumber;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
sessions: number;
|
|
94
93
|
unknown: number;
|
|
94
|
+
sessions: number;
|
|
95
95
|
passed: number;
|
|
96
96
|
calls: number;
|
|
97
97
|
verdicts: number;
|
|
@@ -101,8 +101,8 @@ export declare const ImpactDaySchema: z.ZodObject<{
|
|
|
101
101
|
tokensReturned: number;
|
|
102
102
|
drivingMs: number;
|
|
103
103
|
}, {
|
|
104
|
-
sessions: number;
|
|
105
104
|
unknown: number;
|
|
105
|
+
sessions: number;
|
|
106
106
|
passed: number;
|
|
107
107
|
calls: number;
|
|
108
108
|
verdicts: number;
|
|
@@ -115,8 +115,8 @@ export declare const ImpactDaySchema: z.ZodObject<{
|
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
date: string;
|
|
117
117
|
counts: {
|
|
118
|
-
sessions: number;
|
|
119
118
|
unknown: number;
|
|
119
|
+
sessions: number;
|
|
120
120
|
passed: number;
|
|
121
121
|
calls: number;
|
|
122
122
|
verdicts: number;
|
|
@@ -129,8 +129,8 @@ export declare const ImpactDaySchema: z.ZodObject<{
|
|
|
129
129
|
}, {
|
|
130
130
|
date: string;
|
|
131
131
|
counts: {
|
|
132
|
-
sessions: number;
|
|
133
132
|
unknown: number;
|
|
133
|
+
sessions: number;
|
|
134
134
|
passed: number;
|
|
135
135
|
calls: number;
|
|
136
136
|
verdicts: number;
|
|
@@ -288,8 +288,8 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
288
288
|
/** Wall-clock milliseconds spent inside tool calls. */
|
|
289
289
|
drivingMs: z.ZodNumber;
|
|
290
290
|
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
sessions: number;
|
|
292
291
|
unknown: number;
|
|
292
|
+
sessions: number;
|
|
293
293
|
passed: number;
|
|
294
294
|
calls: number;
|
|
295
295
|
verdicts: number;
|
|
@@ -299,8 +299,8 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
299
299
|
tokensReturned: number;
|
|
300
300
|
drivingMs: number;
|
|
301
301
|
}, {
|
|
302
|
-
sessions: number;
|
|
303
302
|
unknown: number;
|
|
303
|
+
sessions: number;
|
|
304
304
|
passed: number;
|
|
305
305
|
calls: number;
|
|
306
306
|
verdicts: number;
|
|
@@ -335,8 +335,8 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
335
335
|
/** Wall-clock milliseconds spent inside tool calls. */
|
|
336
336
|
drivingMs: z.ZodNumber;
|
|
337
337
|
}, "strip", z.ZodTypeAny, {
|
|
338
|
-
sessions: number;
|
|
339
338
|
unknown: number;
|
|
339
|
+
sessions: number;
|
|
340
340
|
passed: number;
|
|
341
341
|
calls: number;
|
|
342
342
|
verdicts: number;
|
|
@@ -346,8 +346,8 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
346
346
|
tokensReturned: number;
|
|
347
347
|
drivingMs: number;
|
|
348
348
|
}, {
|
|
349
|
-
sessions: number;
|
|
350
349
|
unknown: number;
|
|
350
|
+
sessions: number;
|
|
351
351
|
passed: number;
|
|
352
352
|
calls: number;
|
|
353
353
|
verdicts: number;
|
|
@@ -360,8 +360,8 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
360
360
|
}, "strip", z.ZodTypeAny, {
|
|
361
361
|
date: string;
|
|
362
362
|
counts: {
|
|
363
|
-
sessions: number;
|
|
364
363
|
unknown: number;
|
|
364
|
+
sessions: number;
|
|
365
365
|
passed: number;
|
|
366
366
|
calls: number;
|
|
367
367
|
verdicts: number;
|
|
@@ -374,8 +374,8 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
374
374
|
}, {
|
|
375
375
|
date: string;
|
|
376
376
|
counts: {
|
|
377
|
-
sessions: number;
|
|
378
377
|
unknown: number;
|
|
378
|
+
sessions: number;
|
|
379
379
|
passed: number;
|
|
380
380
|
calls: number;
|
|
381
381
|
verdicts: number;
|
|
@@ -480,8 +480,8 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
480
480
|
}>, "many">>;
|
|
481
481
|
}, "strip", z.ZodTypeAny, {
|
|
482
482
|
counts: {
|
|
483
|
-
sessions: number;
|
|
484
483
|
unknown: number;
|
|
484
|
+
sessions: number;
|
|
485
485
|
passed: number;
|
|
486
486
|
calls: number;
|
|
487
487
|
verdicts: number;
|
|
@@ -494,8 +494,8 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
494
494
|
days: {
|
|
495
495
|
date: string;
|
|
496
496
|
counts: {
|
|
497
|
-
sessions: number;
|
|
498
497
|
unknown: number;
|
|
498
|
+
sessions: number;
|
|
499
499
|
passed: number;
|
|
500
500
|
calls: number;
|
|
501
501
|
verdicts: number;
|
|
@@ -532,8 +532,8 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
532
532
|
}[];
|
|
533
533
|
}, {
|
|
534
534
|
counts: {
|
|
535
|
-
sessions: number;
|
|
536
535
|
unknown: number;
|
|
536
|
+
sessions: number;
|
|
537
537
|
passed: number;
|
|
538
538
|
calls: number;
|
|
539
539
|
verdicts: number;
|
|
@@ -546,8 +546,8 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
546
546
|
days: {
|
|
547
547
|
date: string;
|
|
548
548
|
counts: {
|
|
549
|
-
sessions: number;
|
|
550
549
|
unknown: number;
|
|
550
|
+
sessions: number;
|
|
551
551
|
passed: number;
|
|
552
552
|
calls: number;
|
|
553
553
|
verdicts: number;
|
|
@@ -585,6 +585,30 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
585
585
|
}>;
|
|
586
586
|
export type ImpactScope = z.infer<typeof ImpactScopeSchema>;
|
|
587
587
|
/** What the HUD receives: this project, and the machine-wide total. */
|
|
588
|
+
/**
|
|
589
|
+
* Whether this machine is signed in to a Reticle workspace, as the HUD is allowed to know it.
|
|
590
|
+
*
|
|
591
|
+
* Deliberately the smallest shape that answers the question, because it is pushed to a BROWSER: a
|
|
592
|
+
* token here would be a token in the DOM of the user's own app, readable by anything else running
|
|
593
|
+
* on it. There is no field for one and the reader is tested for never emitting one.
|
|
594
|
+
*
|
|
595
|
+
* `org` and `host` are present only when signed in. `host` matters because a self-hosted install is
|
|
596
|
+
* not app.reticle.sh, and telling that user to visit a host they do not use is worse than silence.
|
|
597
|
+
*/
|
|
598
|
+
export declare const AccountStateSchema: z.ZodObject<{
|
|
599
|
+
signedIn: z.ZodBoolean;
|
|
600
|
+
org: z.ZodOptional<z.ZodString>;
|
|
601
|
+
host: z.ZodOptional<z.ZodString>;
|
|
602
|
+
}, "strip", z.ZodTypeAny, {
|
|
603
|
+
signedIn: boolean;
|
|
604
|
+
org?: string | undefined;
|
|
605
|
+
host?: string | undefined;
|
|
606
|
+
}, {
|
|
607
|
+
signedIn: boolean;
|
|
608
|
+
org?: string | undefined;
|
|
609
|
+
host?: string | undefined;
|
|
610
|
+
}>;
|
|
611
|
+
export type AccountState = z.infer<typeof AccountStateSchema>;
|
|
588
612
|
export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
589
613
|
schemaVersion: z.ZodNumber;
|
|
590
614
|
project: z.ZodObject<{
|
|
@@ -610,8 +634,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
610
634
|
/** Wall-clock milliseconds spent inside tool calls. */
|
|
611
635
|
drivingMs: z.ZodNumber;
|
|
612
636
|
}, "strip", z.ZodTypeAny, {
|
|
613
|
-
sessions: number;
|
|
614
637
|
unknown: number;
|
|
638
|
+
sessions: number;
|
|
615
639
|
passed: number;
|
|
616
640
|
calls: number;
|
|
617
641
|
verdicts: number;
|
|
@@ -621,8 +645,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
621
645
|
tokensReturned: number;
|
|
622
646
|
drivingMs: number;
|
|
623
647
|
}, {
|
|
624
|
-
sessions: number;
|
|
625
648
|
unknown: number;
|
|
649
|
+
sessions: number;
|
|
626
650
|
passed: number;
|
|
627
651
|
calls: number;
|
|
628
652
|
verdicts: number;
|
|
@@ -657,8 +681,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
657
681
|
/** Wall-clock milliseconds spent inside tool calls. */
|
|
658
682
|
drivingMs: z.ZodNumber;
|
|
659
683
|
}, "strip", z.ZodTypeAny, {
|
|
660
|
-
sessions: number;
|
|
661
684
|
unknown: number;
|
|
685
|
+
sessions: number;
|
|
662
686
|
passed: number;
|
|
663
687
|
calls: number;
|
|
664
688
|
verdicts: number;
|
|
@@ -668,8 +692,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
668
692
|
tokensReturned: number;
|
|
669
693
|
drivingMs: number;
|
|
670
694
|
}, {
|
|
671
|
-
sessions: number;
|
|
672
695
|
unknown: number;
|
|
696
|
+
sessions: number;
|
|
673
697
|
passed: number;
|
|
674
698
|
calls: number;
|
|
675
699
|
verdicts: number;
|
|
@@ -682,8 +706,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
682
706
|
}, "strip", z.ZodTypeAny, {
|
|
683
707
|
date: string;
|
|
684
708
|
counts: {
|
|
685
|
-
sessions: number;
|
|
686
709
|
unknown: number;
|
|
710
|
+
sessions: number;
|
|
687
711
|
passed: number;
|
|
688
712
|
calls: number;
|
|
689
713
|
verdicts: number;
|
|
@@ -696,8 +720,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
696
720
|
}, {
|
|
697
721
|
date: string;
|
|
698
722
|
counts: {
|
|
699
|
-
sessions: number;
|
|
700
723
|
unknown: number;
|
|
724
|
+
sessions: number;
|
|
701
725
|
passed: number;
|
|
702
726
|
calls: number;
|
|
703
727
|
verdicts: number;
|
|
@@ -802,8 +826,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
802
826
|
}>, "many">>;
|
|
803
827
|
}, "strip", z.ZodTypeAny, {
|
|
804
828
|
counts: {
|
|
805
|
-
sessions: number;
|
|
806
829
|
unknown: number;
|
|
830
|
+
sessions: number;
|
|
807
831
|
passed: number;
|
|
808
832
|
calls: number;
|
|
809
833
|
verdicts: number;
|
|
@@ -816,8 +840,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
816
840
|
days: {
|
|
817
841
|
date: string;
|
|
818
842
|
counts: {
|
|
819
|
-
sessions: number;
|
|
820
843
|
unknown: number;
|
|
844
|
+
sessions: number;
|
|
821
845
|
passed: number;
|
|
822
846
|
calls: number;
|
|
823
847
|
verdicts: number;
|
|
@@ -854,8 +878,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
854
878
|
}[];
|
|
855
879
|
}, {
|
|
856
880
|
counts: {
|
|
857
|
-
sessions: number;
|
|
858
881
|
unknown: number;
|
|
882
|
+
sessions: number;
|
|
859
883
|
passed: number;
|
|
860
884
|
calls: number;
|
|
861
885
|
verdicts: number;
|
|
@@ -868,8 +892,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
868
892
|
days: {
|
|
869
893
|
date: string;
|
|
870
894
|
counts: {
|
|
871
|
-
sessions: number;
|
|
872
895
|
unknown: number;
|
|
896
|
+
sessions: number;
|
|
873
897
|
passed: number;
|
|
874
898
|
calls: number;
|
|
875
899
|
verdicts: number;
|
|
@@ -928,8 +952,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
928
952
|
/** Wall-clock milliseconds spent inside tool calls. */
|
|
929
953
|
drivingMs: z.ZodNumber;
|
|
930
954
|
}, "strip", z.ZodTypeAny, {
|
|
931
|
-
sessions: number;
|
|
932
955
|
unknown: number;
|
|
956
|
+
sessions: number;
|
|
933
957
|
passed: number;
|
|
934
958
|
calls: number;
|
|
935
959
|
verdicts: number;
|
|
@@ -939,8 +963,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
939
963
|
tokensReturned: number;
|
|
940
964
|
drivingMs: number;
|
|
941
965
|
}, {
|
|
942
|
-
sessions: number;
|
|
943
966
|
unknown: number;
|
|
967
|
+
sessions: number;
|
|
944
968
|
passed: number;
|
|
945
969
|
calls: number;
|
|
946
970
|
verdicts: number;
|
|
@@ -975,8 +999,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
975
999
|
/** Wall-clock milliseconds spent inside tool calls. */
|
|
976
1000
|
drivingMs: z.ZodNumber;
|
|
977
1001
|
}, "strip", z.ZodTypeAny, {
|
|
978
|
-
sessions: number;
|
|
979
1002
|
unknown: number;
|
|
1003
|
+
sessions: number;
|
|
980
1004
|
passed: number;
|
|
981
1005
|
calls: number;
|
|
982
1006
|
verdicts: number;
|
|
@@ -986,8 +1010,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
986
1010
|
tokensReturned: number;
|
|
987
1011
|
drivingMs: number;
|
|
988
1012
|
}, {
|
|
989
|
-
sessions: number;
|
|
990
1013
|
unknown: number;
|
|
1014
|
+
sessions: number;
|
|
991
1015
|
passed: number;
|
|
992
1016
|
calls: number;
|
|
993
1017
|
verdicts: number;
|
|
@@ -1000,8 +1024,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1000
1024
|
}, "strip", z.ZodTypeAny, {
|
|
1001
1025
|
date: string;
|
|
1002
1026
|
counts: {
|
|
1003
|
-
sessions: number;
|
|
1004
1027
|
unknown: number;
|
|
1028
|
+
sessions: number;
|
|
1005
1029
|
passed: number;
|
|
1006
1030
|
calls: number;
|
|
1007
1031
|
verdicts: number;
|
|
@@ -1014,8 +1038,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1014
1038
|
}, {
|
|
1015
1039
|
date: string;
|
|
1016
1040
|
counts: {
|
|
1017
|
-
sessions: number;
|
|
1018
1041
|
unknown: number;
|
|
1042
|
+
sessions: number;
|
|
1019
1043
|
passed: number;
|
|
1020
1044
|
calls: number;
|
|
1021
1045
|
verdicts: number;
|
|
@@ -1120,8 +1144,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1120
1144
|
}>, "many">>;
|
|
1121
1145
|
}, "strip", z.ZodTypeAny, {
|
|
1122
1146
|
counts: {
|
|
1123
|
-
sessions: number;
|
|
1124
1147
|
unknown: number;
|
|
1148
|
+
sessions: number;
|
|
1125
1149
|
passed: number;
|
|
1126
1150
|
calls: number;
|
|
1127
1151
|
verdicts: number;
|
|
@@ -1134,8 +1158,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1134
1158
|
days: {
|
|
1135
1159
|
date: string;
|
|
1136
1160
|
counts: {
|
|
1137
|
-
sessions: number;
|
|
1138
1161
|
unknown: number;
|
|
1162
|
+
sessions: number;
|
|
1139
1163
|
passed: number;
|
|
1140
1164
|
calls: number;
|
|
1141
1165
|
verdicts: number;
|
|
@@ -1172,8 +1196,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1172
1196
|
}[];
|
|
1173
1197
|
}, {
|
|
1174
1198
|
counts: {
|
|
1175
|
-
sessions: number;
|
|
1176
1199
|
unknown: number;
|
|
1200
|
+
sessions: number;
|
|
1177
1201
|
passed: number;
|
|
1178
1202
|
calls: number;
|
|
1179
1203
|
verdicts: number;
|
|
@@ -1186,8 +1210,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1186
1210
|
days: {
|
|
1187
1211
|
date: string;
|
|
1188
1212
|
counts: {
|
|
1189
|
-
sessions: number;
|
|
1190
1213
|
unknown: number;
|
|
1214
|
+
sessions: number;
|
|
1191
1215
|
passed: number;
|
|
1192
1216
|
calls: number;
|
|
1193
1217
|
verdicts: number;
|
|
@@ -1231,11 +1255,29 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1231
1255
|
* short list without a link: the free tool is complete on its own.
|
|
1232
1256
|
*/
|
|
1233
1257
|
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
1258
|
+
/**
|
|
1259
|
+
* Whether this machine is signed in. Absent on an SDK/daemon pair too old to send it, which the
|
|
1260
|
+
* HUD must read as "unknown", never as "signed out" — prompting a signed-in user to sign in is the
|
|
1261
|
+
* kind of nag that gets a dev-only HUD switched off for good.
|
|
1262
|
+
*/
|
|
1263
|
+
account: z.ZodOptional<z.ZodObject<{
|
|
1264
|
+
signedIn: z.ZodBoolean;
|
|
1265
|
+
org: z.ZodOptional<z.ZodString>;
|
|
1266
|
+
host: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
}, "strip", z.ZodTypeAny, {
|
|
1268
|
+
signedIn: boolean;
|
|
1269
|
+
org?: string | undefined;
|
|
1270
|
+
host?: string | undefined;
|
|
1271
|
+
}, {
|
|
1272
|
+
signedIn: boolean;
|
|
1273
|
+
org?: string | undefined;
|
|
1274
|
+
host?: string | undefined;
|
|
1275
|
+
}>>;
|
|
1234
1276
|
}, "strip", z.ZodTypeAny, {
|
|
1235
1277
|
project: {
|
|
1236
1278
|
counts: {
|
|
1237
|
-
sessions: number;
|
|
1238
1279
|
unknown: number;
|
|
1280
|
+
sessions: number;
|
|
1239
1281
|
passed: number;
|
|
1240
1282
|
calls: number;
|
|
1241
1283
|
verdicts: number;
|
|
@@ -1248,8 +1290,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1248
1290
|
days: {
|
|
1249
1291
|
date: string;
|
|
1250
1292
|
counts: {
|
|
1251
|
-
sessions: number;
|
|
1252
1293
|
unknown: number;
|
|
1294
|
+
sessions: number;
|
|
1253
1295
|
passed: number;
|
|
1254
1296
|
calls: number;
|
|
1255
1297
|
verdicts: number;
|
|
@@ -1288,8 +1330,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1288
1330
|
schemaVersion: number;
|
|
1289
1331
|
global: {
|
|
1290
1332
|
counts: {
|
|
1291
|
-
sessions: number;
|
|
1292
1333
|
unknown: number;
|
|
1334
|
+
sessions: number;
|
|
1293
1335
|
passed: number;
|
|
1294
1336
|
calls: number;
|
|
1295
1337
|
verdicts: number;
|
|
@@ -1302,8 +1344,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1302
1344
|
days: {
|
|
1303
1345
|
date: string;
|
|
1304
1346
|
counts: {
|
|
1305
|
-
sessions: number;
|
|
1306
1347
|
unknown: number;
|
|
1348
|
+
sessions: number;
|
|
1307
1349
|
passed: number;
|
|
1308
1350
|
calls: number;
|
|
1309
1351
|
verdicts: number;
|
|
@@ -1341,11 +1383,16 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1341
1383
|
};
|
|
1342
1384
|
projectName?: string | undefined;
|
|
1343
1385
|
dashboardUrl?: string | undefined;
|
|
1386
|
+
account?: {
|
|
1387
|
+
signedIn: boolean;
|
|
1388
|
+
org?: string | undefined;
|
|
1389
|
+
host?: string | undefined;
|
|
1390
|
+
} | undefined;
|
|
1344
1391
|
}, {
|
|
1345
1392
|
project: {
|
|
1346
1393
|
counts: {
|
|
1347
|
-
sessions: number;
|
|
1348
1394
|
unknown: number;
|
|
1395
|
+
sessions: number;
|
|
1349
1396
|
passed: number;
|
|
1350
1397
|
calls: number;
|
|
1351
1398
|
verdicts: number;
|
|
@@ -1358,8 +1405,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1358
1405
|
days: {
|
|
1359
1406
|
date: string;
|
|
1360
1407
|
counts: {
|
|
1361
|
-
sessions: number;
|
|
1362
1408
|
unknown: number;
|
|
1409
|
+
sessions: number;
|
|
1363
1410
|
passed: number;
|
|
1364
1411
|
calls: number;
|
|
1365
1412
|
verdicts: number;
|
|
@@ -1398,8 +1445,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1398
1445
|
schemaVersion: number;
|
|
1399
1446
|
global: {
|
|
1400
1447
|
counts: {
|
|
1401
|
-
sessions: number;
|
|
1402
1448
|
unknown: number;
|
|
1449
|
+
sessions: number;
|
|
1403
1450
|
passed: number;
|
|
1404
1451
|
calls: number;
|
|
1405
1452
|
verdicts: number;
|
|
@@ -1412,8 +1459,8 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1412
1459
|
days: {
|
|
1413
1460
|
date: string;
|
|
1414
1461
|
counts: {
|
|
1415
|
-
sessions: number;
|
|
1416
1462
|
unknown: number;
|
|
1463
|
+
sessions: number;
|
|
1417
1464
|
passed: number;
|
|
1418
1465
|
calls: number;
|
|
1419
1466
|
verdicts: number;
|
|
@@ -1451,6 +1498,11 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1451
1498
|
};
|
|
1452
1499
|
projectName?: string | undefined;
|
|
1453
1500
|
dashboardUrl?: string | undefined;
|
|
1501
|
+
account?: {
|
|
1502
|
+
signedIn: boolean;
|
|
1503
|
+
org?: string | undefined;
|
|
1504
|
+
host?: string | undefined;
|
|
1505
|
+
} | undefined;
|
|
1454
1506
|
}>;
|
|
1455
1507
|
export type ImpactSnapshot = z.infer<typeof ImpactSnapshotSchema>;
|
|
1456
1508
|
/** Empty counters - the starting point for a fresh store and the identity for merges. */
|
package/dist/impact.js
CHANGED
|
@@ -116,6 +116,21 @@ export const ImpactScopeSchema = z.object({
|
|
|
116
116
|
defects: z.array(ImpactDefectSchema).default([]),
|
|
117
117
|
});
|
|
118
118
|
/** What the HUD receives: this project, and the machine-wide total. */
|
|
119
|
+
/**
|
|
120
|
+
* Whether this machine is signed in to a Reticle workspace, as the HUD is allowed to know it.
|
|
121
|
+
*
|
|
122
|
+
* Deliberately the smallest shape that answers the question, because it is pushed to a BROWSER: a
|
|
123
|
+
* token here would be a token in the DOM of the user's own app, readable by anything else running
|
|
124
|
+
* on it. There is no field for one and the reader is tested for never emitting one.
|
|
125
|
+
*
|
|
126
|
+
* `org` and `host` are present only when signed in. `host` matters because a self-hosted install is
|
|
127
|
+
* not app.reticle.sh, and telling that user to visit a host they do not use is worse than silence.
|
|
128
|
+
*/
|
|
129
|
+
export const AccountStateSchema = z.object({
|
|
130
|
+
signedIn: z.boolean(),
|
|
131
|
+
org: z.string().optional(),
|
|
132
|
+
host: z.string().optional(),
|
|
133
|
+
});
|
|
119
134
|
export const ImpactSnapshotSchema = z.object({
|
|
120
135
|
schemaVersion: z.number().int().positive(),
|
|
121
136
|
project: ImpactScopeSchema,
|
|
@@ -128,6 +143,12 @@ export const ImpactSnapshotSchema = z.object({
|
|
|
128
143
|
* short list without a link: the free tool is complete on its own.
|
|
129
144
|
*/
|
|
130
145
|
dashboardUrl: z.string().optional(),
|
|
146
|
+
/**
|
|
147
|
+
* Whether this machine is signed in. Absent on an SDK/daemon pair too old to send it, which the
|
|
148
|
+
* HUD must read as "unknown", never as "signed out" — prompting a signed-in user to sign in is the
|
|
149
|
+
* kind of nag that gets a dev-only HUD switched off for good.
|
|
150
|
+
*/
|
|
151
|
+
account: AccountStateSchema.optional(),
|
|
131
152
|
});
|
|
132
153
|
/** Empty counters - the starting point for a fresh store and the identity for merges. */
|
|
133
154
|
export function emptyImpactCounts() {
|
package/dist/index.d.ts
CHANGED
|
@@ -4,13 +4,27 @@
|
|
|
4
4
|
* API-stability note: the exports below the divider are INTERNAL cross-package plumbing — they are
|
|
5
5
|
* re-exported so the other @reticlehq/* packages can share one implementation, NOT as a stable surface
|
|
6
6
|
* for outside consumers. They can change in a minor release. Depend on the STABLE section for anything
|
|
7
|
-
* outside this monorepo.
|
|
8
|
-
*
|
|
7
|
+
* outside this monorepo.
|
|
8
|
+
*
|
|
9
|
+
* Two of those internal groups now have their own entry points, so a Node-side importer can name the
|
|
10
|
+
* half of core it depends on instead of pulling the whole surface:
|
|
11
|
+
*
|
|
12
|
+
* - `@reticlehq/core/artifacts` — on-disk + registry formats (see ./artifacts-entry.ts)
|
|
13
|
+
* - `@reticlehq/core/telemetry` — the analytics wire (see ./telemetry-entry.ts)
|
|
14
|
+
*
|
|
15
|
+
* This root entry point still exports everything it did before — the subpaths are additive, and
|
|
16
|
+
* removing a name from here would be a breaking change to a published package. The boundary that is
|
|
17
|
+
* actually ENFORCED is the one the browser SDK must not cross: `core-boundary.test.ts` in
|
|
18
|
+
* @reticlehq/browser fails if packages/browser/src imports any artifacts-group name from
|
|
19
|
+
* '@reticlehq/core'. That test, not this comment, is what keeps the DOM side off the Node-side
|
|
20
|
+
* plumbing.
|
|
9
21
|
*/
|
|
10
22
|
export * from './constants.js';
|
|
23
|
+
export * from './global-press.js';
|
|
11
24
|
export * from './source-constants.js';
|
|
12
25
|
export * from './event-classification.js';
|
|
13
26
|
export * from './verified-constants.js';
|
|
27
|
+
export * from './verify-progress.js';
|
|
14
28
|
export * from './session-constants.js';
|
|
15
29
|
export * from './document-identity.js';
|
|
16
30
|
export * from './edit-epoch.js';
|
package/dist/index.js
CHANGED
|
@@ -4,14 +4,28 @@
|
|
|
4
4
|
* API-stability note: the exports below the divider are INTERNAL cross-package plumbing — they are
|
|
5
5
|
* re-exported so the other @reticlehq/* packages can share one implementation, NOT as a stable surface
|
|
6
6
|
* for outside consumers. They can change in a minor release. Depend on the STABLE section for anything
|
|
7
|
-
* outside this monorepo.
|
|
8
|
-
*
|
|
7
|
+
* outside this monorepo.
|
|
8
|
+
*
|
|
9
|
+
* Two of those internal groups now have their own entry points, so a Node-side importer can name the
|
|
10
|
+
* half of core it depends on instead of pulling the whole surface:
|
|
11
|
+
*
|
|
12
|
+
* - `@reticlehq/core/artifacts` — on-disk + registry formats (see ./artifacts-entry.ts)
|
|
13
|
+
* - `@reticlehq/core/telemetry` — the analytics wire (see ./telemetry-entry.ts)
|
|
14
|
+
*
|
|
15
|
+
* This root entry point still exports everything it did before — the subpaths are additive, and
|
|
16
|
+
* removing a name from here would be a breaking change to a published package. The boundary that is
|
|
17
|
+
* actually ENFORCED is the one the browser SDK must not cross: `core-boundary.test.ts` in
|
|
18
|
+
* @reticlehq/browser fails if packages/browser/src imports any artifacts-group name from
|
|
19
|
+
* '@reticlehq/core'. That test, not this comment, is what keeps the DOM side off the Node-side
|
|
20
|
+
* plumbing.
|
|
9
21
|
*/
|
|
10
22
|
// ── STABLE public surface: the wire/domain contract ──────────────────────────────────────────────
|
|
11
23
|
export * from './constants.js'; // EventType, ActionType, wire constants, TRANSPORT_LIMITS, …
|
|
24
|
+
export * from './global-press.js'; // which press is a document key (Escape / Tab / a shortcut)
|
|
12
25
|
export * from './source-constants.js'; // DATA_RETICLE_SOURCE_ATTR, RETICLE_ROOT_GLOBAL
|
|
13
26
|
export * from './event-classification.js'; // CHURN_TYPES — shared eviction priority for buffer/queue
|
|
14
27
|
export * from './verified-constants.js'; // Verified — the one field an agent gates on
|
|
28
|
+
export * from './verify-progress.js'; // VerifyPhase — what a run is doing while it is still doing it
|
|
15
29
|
export * from './session-constants.js';
|
|
16
30
|
export * from './document-identity.js'; // which document an observation belongs to
|
|
17
31
|
export * from './edit-epoch.js'; // which round of source edits an observation belongs to
|
|
@@ -101,6 +101,21 @@ export declare const InstrumentationGapKind: {
|
|
|
101
101
|
* on it. Absence stays honest.
|
|
102
102
|
*/
|
|
103
103
|
readonly NO_FLOW_INTENT: "no-flow-intent";
|
|
104
|
+
/**
|
|
105
|
+
* Source mapping is off because the PROJECT turned it off, not because nothing provides it.
|
|
106
|
+
*
|
|
107
|
+
* A separate kind from `NO_SOURCE_MAPPING` because the remedy is the opposite one. Reported from
|
|
108
|
+
* the field by a react-three-fiber app: the `data-reticle-source` stamp crashed it to a white
|
|
109
|
+
* screen — R3F host elements are three.js objects, and a dashed prop is read there as a property
|
|
110
|
+
* path — so the option was disabled, correctly, and every red verdict afterwards told the reader
|
|
111
|
+
* to add a build plugin that was already installed and whose stamp was the thing that broke.
|
|
112
|
+
*
|
|
113
|
+
* A remedy that cannot be followed costs a round trip and teaches the reader to skip the gap
|
|
114
|
+
* block, which is where the honest gaps live too. Any app built on a non-DOM reconciler has to
|
|
115
|
+
* turn the stamp off to run at all, so this is a supported configuration rather than an unusual
|
|
116
|
+
* one, and the verdict has to speak to it.
|
|
117
|
+
*/
|
|
118
|
+
readonly SOURCE_MAPPING_OFF: "source-mapping-off";
|
|
104
119
|
};
|
|
105
120
|
export type InstrumentationGapKind = (typeof InstrumentationGapKind)[keyof typeof InstrumentationGapKind];
|
|
106
121
|
export interface InstrumentationGap {
|
|
@@ -101,6 +101,21 @@ export const InstrumentationGapKind = {
|
|
|
101
101
|
* on it. Absence stays honest.
|
|
102
102
|
*/
|
|
103
103
|
NO_FLOW_INTENT: 'no-flow-intent',
|
|
104
|
+
/**
|
|
105
|
+
* Source mapping is off because the PROJECT turned it off, not because nothing provides it.
|
|
106
|
+
*
|
|
107
|
+
* A separate kind from `NO_SOURCE_MAPPING` because the remedy is the opposite one. Reported from
|
|
108
|
+
* the field by a react-three-fiber app: the `data-reticle-source` stamp crashed it to a white
|
|
109
|
+
* screen — R3F host elements are three.js objects, and a dashed prop is read there as a property
|
|
110
|
+
* path — so the option was disabled, correctly, and every red verdict afterwards told the reader
|
|
111
|
+
* to add a build plugin that was already installed and whose stamp was the thing that broke.
|
|
112
|
+
*
|
|
113
|
+
* A remedy that cannot be followed costs a round trip and teaches the reader to skip the gap
|
|
114
|
+
* block, which is where the honest gaps live too. Any app built on a non-DOM reconciler has to
|
|
115
|
+
* turn the stamp off to run at all, so this is a supported configuration rather than an unusual
|
|
116
|
+
* one, and the verdict has to speak to it.
|
|
117
|
+
*/
|
|
118
|
+
SOURCE_MAPPING_OFF: 'source-mapping-off',
|
|
104
119
|
};
|
|
105
120
|
/**
|
|
106
121
|
* The remedy for a kind, as one line an agent can act on without reading a doc.
|
|
@@ -118,6 +133,7 @@ const GAP_FIX = {
|
|
|
118
133
|
[InstrumentationGapKind.MISSING_TESTID]: 'add data-testid="..." on this control so the flow can name it after a refactor',
|
|
119
134
|
[InstrumentationGapKind.UNDECLARED_CHANGE]: 'declare it with reticle_intent { action: "declare", intents: [{ id, statement }] } — the statement is prose, in your own words: which user does what, and what should become true',
|
|
120
135
|
[InstrumentationGapKind.INTENT_UNDISCHARGED]: 'draw a verdict whose `until` asserts the intent itself, then it discharges — or call reticle_run({ tool: "reticle_context" }) to see exactly what is still owed',
|
|
136
|
+
[InstrumentationGapKind.SOURCE_MAPPING_OFF]: 'nothing to install — this build has sourceMapping turned off, so no element carries data-reticle-source. Re-enable it in the Reticle plugin options unless this app renders through a non-DOM reconciler (react-three-fiber, react-pdf, ink), where the stamp is what would break it',
|
|
121
137
|
[InstrumentationGapKind.NO_FLOW_INTENT]: 'save it again with intent: "<which user does what, and what should become true>" — prose, in your own words — or set intentId to an intent already in the ledger',
|
|
122
138
|
};
|
|
123
139
|
/** The one-line remedy for a gap kind. */
|