@reticlehq/core 2.11.0 → 2.13.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/constants.d.ts +40 -0
- package/dist/constants.js +41 -1
- package/dist/dev-server-registry.d.ts +85 -0
- package/dist/dev-server-registry.js +120 -0
- package/dist/document-identity.d.ts +39 -0
- package/dist/document-identity.js +53 -0
- package/dist/edit-epoch.d.ts +36 -0
- package/dist/edit-epoch.js +40 -0
- package/dist/event-payloads.d.ts +24 -4
- package/dist/event-payloads.js +13 -1
- package/dist/findings.d.ts +62 -0
- package/dist/findings.js +75 -0
- package/dist/flow-types.d.ts +88 -0
- package/dist/flow-types.js +22 -0
- package/dist/impact.d.ts +176 -0
- package/dist/impact.js +36 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +9 -0
- package/dist/instrumentation-gap.d.ts +59 -1
- package/dist/instrumentation-gap.js +0 -0
- package/dist/intent.d.ts +332 -0
- package/dist/intent.js +133 -0
- package/dist/journal.d.ts +33 -0
- package/dist/journal.js +20 -0
- package/dist/messages.d.ts +84 -10
- package/dist/messages.js +20 -0
- package/dist/net.d.ts +34 -0
- package/dist/net.js +86 -0
- package/dist/no-session-reason.d.ts +35 -0
- package/dist/no-session-reason.js +34 -0
- package/dist/notices.d.ts +79 -6
- package/dist/notices.js +83 -6
- package/dist/run-context.d.ts +122 -0
- package/dist/run-context.js +118 -0
- package/dist/schema/event-message.json +10 -0
- package/dist/schema/event-type.json +1 -0
- package/dist/schema/reticle-event.json +10 -0
- package/dist/schema/reticle-message.json +10 -0
- package/dist/security.d.ts +8 -2
- package/dist/security.js +37 -3
- package/dist/session-constants.d.ts +8 -0
- package/dist/session-constants.js +8 -0
- package/dist/source-constants.cjs +9 -0
- package/dist/source-constants.d.cts +4 -0
- package/dist/telemetry-license.d.ts +12 -0
- package/dist/telemetry-license.js +12 -0
- package/dist/telemetry-refusal.d.ts +94 -0
- package/dist/telemetry-refusal.js +61 -0
- package/dist/telemetry-session.d.ts +151 -2
- package/dist/telemetry-session.js +114 -0
- package/dist/telemetry.d.ts +167 -95
- package/dist/telemetry.js +46 -44
- package/dist/types.d.ts +9 -0
- package/dist/unreachable-notice.d.ts +19 -0
- package/dist/unreachable-notice.js +26 -0
- package/dist/verified-constants.d.ts +8 -0
- package/dist/verified-constants.js +10 -0
- package/package.json +6 -2
package/dist/impact.d.ts
CHANGED
|
@@ -228,6 +228,42 @@ export declare const ImpactSavingsSchema: z.ZodObject<{
|
|
|
228
228
|
};
|
|
229
229
|
}>;
|
|
230
230
|
export type ImpactSavings = z.infer<typeof ImpactSavingsSchema>;
|
|
231
|
+
/**
|
|
232
|
+
* How many recent defects a scope remembers.
|
|
233
|
+
*
|
|
234
|
+
* Small on purpose. `counts.failed` already says HOW MANY defects there have been; this list exists
|
|
235
|
+
* so the HUD can say WHICH ONES, and a panel in the corner of somebody's app is not a triage queue.
|
|
236
|
+
* Ten is enough to recognise what is currently broken and short enough that the record stays a
|
|
237
|
+
* counters file rather than becoming a log.
|
|
238
|
+
*/
|
|
239
|
+
export declare const IMPACT_DEFECT_LIMIT = 10;
|
|
240
|
+
/**
|
|
241
|
+
* One defect, as the HUD shows it.
|
|
242
|
+
*
|
|
243
|
+
* Recorded at the moment a verdict comes back verified:"no" - so it is a thing that actually failed
|
|
244
|
+
* a declared consequence, never a heuristic read of the page afterwards.
|
|
245
|
+
*/
|
|
246
|
+
export declare const ImpactDefectSchema: z.ZodObject<{
|
|
247
|
+
/** When it was caught (epoch ms). */
|
|
248
|
+
at: z.ZodNumber;
|
|
249
|
+
/** One line naming what failed, in the words the verdict used. */
|
|
250
|
+
title: z.ZodString;
|
|
251
|
+
/** Why it failed, when the verdict said. */
|
|
252
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
253
|
+
/** `file:line` of the element that was acted on, so the reader can go straight there. */
|
|
254
|
+
source: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
|
256
|
+
at: number;
|
|
257
|
+
title: string;
|
|
258
|
+
source?: string | undefined;
|
|
259
|
+
detail?: string | undefined;
|
|
260
|
+
}, {
|
|
261
|
+
at: number;
|
|
262
|
+
title: string;
|
|
263
|
+
source?: string | undefined;
|
|
264
|
+
detail?: string | undefined;
|
|
265
|
+
}>;
|
|
266
|
+
export type ImpactDefect = z.infer<typeof ImpactDefectSchema>;
|
|
231
267
|
/** One scope of the record: this project, or everything on this machine. */
|
|
232
268
|
export declare const ImpactScopeSchema: z.ZodObject<{
|
|
233
269
|
counts: z.ZodObject<{
|
|
@@ -418,6 +454,30 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
418
454
|
}>;
|
|
419
455
|
/** When this scope first recorded anything (epoch ms). */
|
|
420
456
|
since: z.ZodNumber;
|
|
457
|
+
/**
|
|
458
|
+
* The most recent defects, newest first. Defaulted rather than required: a record written by an
|
|
459
|
+
* older build has no such field, and a counters file that fails to parse loses the whole history.
|
|
460
|
+
*/
|
|
461
|
+
defects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
462
|
+
/** When it was caught (epoch ms). */
|
|
463
|
+
at: z.ZodNumber;
|
|
464
|
+
/** One line naming what failed, in the words the verdict used. */
|
|
465
|
+
title: z.ZodString;
|
|
466
|
+
/** Why it failed, when the verdict said. */
|
|
467
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
468
|
+
/** `file:line` of the element that was acted on, so the reader can go straight there. */
|
|
469
|
+
source: z.ZodOptional<z.ZodString>;
|
|
470
|
+
}, "strip", z.ZodTypeAny, {
|
|
471
|
+
at: number;
|
|
472
|
+
title: string;
|
|
473
|
+
source?: string | undefined;
|
|
474
|
+
detail?: string | undefined;
|
|
475
|
+
}, {
|
|
476
|
+
at: number;
|
|
477
|
+
title: string;
|
|
478
|
+
source?: string | undefined;
|
|
479
|
+
detail?: string | undefined;
|
|
480
|
+
}>, "many">>;
|
|
421
481
|
}, "strip", z.ZodTypeAny, {
|
|
422
482
|
counts: {
|
|
423
483
|
sessions: number;
|
|
@@ -464,6 +524,12 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
464
524
|
};
|
|
465
525
|
};
|
|
466
526
|
since: number;
|
|
527
|
+
defects: {
|
|
528
|
+
at: number;
|
|
529
|
+
title: string;
|
|
530
|
+
source?: string | undefined;
|
|
531
|
+
detail?: string | undefined;
|
|
532
|
+
}[];
|
|
467
533
|
}, {
|
|
468
534
|
counts: {
|
|
469
535
|
sessions: number;
|
|
@@ -510,6 +576,12 @@ export declare const ImpactScopeSchema: z.ZodObject<{
|
|
|
510
576
|
};
|
|
511
577
|
};
|
|
512
578
|
since: number;
|
|
579
|
+
defects?: {
|
|
580
|
+
at: number;
|
|
581
|
+
title: string;
|
|
582
|
+
source?: string | undefined;
|
|
583
|
+
detail?: string | undefined;
|
|
584
|
+
}[] | undefined;
|
|
513
585
|
}>;
|
|
514
586
|
export type ImpactScope = z.infer<typeof ImpactScopeSchema>;
|
|
515
587
|
/** What the HUD receives: this project, and the machine-wide total. */
|
|
@@ -704,6 +776,30 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
704
776
|
}>;
|
|
705
777
|
/** When this scope first recorded anything (epoch ms). */
|
|
706
778
|
since: z.ZodNumber;
|
|
779
|
+
/**
|
|
780
|
+
* The most recent defects, newest first. Defaulted rather than required: a record written by an
|
|
781
|
+
* older build has no such field, and a counters file that fails to parse loses the whole history.
|
|
782
|
+
*/
|
|
783
|
+
defects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
784
|
+
/** When it was caught (epoch ms). */
|
|
785
|
+
at: z.ZodNumber;
|
|
786
|
+
/** One line naming what failed, in the words the verdict used. */
|
|
787
|
+
title: z.ZodString;
|
|
788
|
+
/** Why it failed, when the verdict said. */
|
|
789
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
790
|
+
/** `file:line` of the element that was acted on, so the reader can go straight there. */
|
|
791
|
+
source: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
|
793
|
+
at: number;
|
|
794
|
+
title: string;
|
|
795
|
+
source?: string | undefined;
|
|
796
|
+
detail?: string | undefined;
|
|
797
|
+
}, {
|
|
798
|
+
at: number;
|
|
799
|
+
title: string;
|
|
800
|
+
source?: string | undefined;
|
|
801
|
+
detail?: string | undefined;
|
|
802
|
+
}>, "many">>;
|
|
707
803
|
}, "strip", z.ZodTypeAny, {
|
|
708
804
|
counts: {
|
|
709
805
|
sessions: number;
|
|
@@ -750,6 +846,12 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
750
846
|
};
|
|
751
847
|
};
|
|
752
848
|
since: number;
|
|
849
|
+
defects: {
|
|
850
|
+
at: number;
|
|
851
|
+
title: string;
|
|
852
|
+
source?: string | undefined;
|
|
853
|
+
detail?: string | undefined;
|
|
854
|
+
}[];
|
|
753
855
|
}, {
|
|
754
856
|
counts: {
|
|
755
857
|
sessions: number;
|
|
@@ -796,6 +898,12 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
796
898
|
};
|
|
797
899
|
};
|
|
798
900
|
since: number;
|
|
901
|
+
defects?: {
|
|
902
|
+
at: number;
|
|
903
|
+
title: string;
|
|
904
|
+
source?: string | undefined;
|
|
905
|
+
detail?: string | undefined;
|
|
906
|
+
}[] | undefined;
|
|
799
907
|
}>;
|
|
800
908
|
global: z.ZodObject<{
|
|
801
909
|
counts: z.ZodObject<{
|
|
@@ -986,6 +1094,30 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
986
1094
|
}>;
|
|
987
1095
|
/** When this scope first recorded anything (epoch ms). */
|
|
988
1096
|
since: z.ZodNumber;
|
|
1097
|
+
/**
|
|
1098
|
+
* The most recent defects, newest first. Defaulted rather than required: a record written by an
|
|
1099
|
+
* older build has no such field, and a counters file that fails to parse loses the whole history.
|
|
1100
|
+
*/
|
|
1101
|
+
defects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1102
|
+
/** When it was caught (epoch ms). */
|
|
1103
|
+
at: z.ZodNumber;
|
|
1104
|
+
/** One line naming what failed, in the words the verdict used. */
|
|
1105
|
+
title: z.ZodString;
|
|
1106
|
+
/** Why it failed, when the verdict said. */
|
|
1107
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
/** `file:line` of the element that was acted on, so the reader can go straight there. */
|
|
1109
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1110
|
+
}, "strip", z.ZodTypeAny, {
|
|
1111
|
+
at: number;
|
|
1112
|
+
title: string;
|
|
1113
|
+
source?: string | undefined;
|
|
1114
|
+
detail?: string | undefined;
|
|
1115
|
+
}, {
|
|
1116
|
+
at: number;
|
|
1117
|
+
title: string;
|
|
1118
|
+
source?: string | undefined;
|
|
1119
|
+
detail?: string | undefined;
|
|
1120
|
+
}>, "many">>;
|
|
989
1121
|
}, "strip", z.ZodTypeAny, {
|
|
990
1122
|
counts: {
|
|
991
1123
|
sessions: number;
|
|
@@ -1032,6 +1164,12 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1032
1164
|
};
|
|
1033
1165
|
};
|
|
1034
1166
|
since: number;
|
|
1167
|
+
defects: {
|
|
1168
|
+
at: number;
|
|
1169
|
+
title: string;
|
|
1170
|
+
source?: string | undefined;
|
|
1171
|
+
detail?: string | undefined;
|
|
1172
|
+
}[];
|
|
1035
1173
|
}, {
|
|
1036
1174
|
counts: {
|
|
1037
1175
|
sessions: number;
|
|
@@ -1078,9 +1216,21 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1078
1216
|
};
|
|
1079
1217
|
};
|
|
1080
1218
|
since: number;
|
|
1219
|
+
defects?: {
|
|
1220
|
+
at: number;
|
|
1221
|
+
title: string;
|
|
1222
|
+
source?: string | undefined;
|
|
1223
|
+
detail?: string | undefined;
|
|
1224
|
+
}[] | undefined;
|
|
1081
1225
|
}>;
|
|
1082
1226
|
/** Project name, for the report's title row. */
|
|
1083
1227
|
projectName: z.ZodOptional<z.ZodString>;
|
|
1228
|
+
/**
|
|
1229
|
+
* Where the full, triageable list of these defects lives - present only when this project is
|
|
1230
|
+
* linked to a Reticle Cloud workspace. Absent is the normal case and the HUD simply shows its
|
|
1231
|
+
* short list without a link: the free tool is complete on its own.
|
|
1232
|
+
*/
|
|
1233
|
+
dashboardUrl: z.ZodOptional<z.ZodString>;
|
|
1084
1234
|
}, "strip", z.ZodTypeAny, {
|
|
1085
1235
|
project: {
|
|
1086
1236
|
counts: {
|
|
@@ -1128,6 +1278,12 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1128
1278
|
};
|
|
1129
1279
|
};
|
|
1130
1280
|
since: number;
|
|
1281
|
+
defects: {
|
|
1282
|
+
at: number;
|
|
1283
|
+
title: string;
|
|
1284
|
+
source?: string | undefined;
|
|
1285
|
+
detail?: string | undefined;
|
|
1286
|
+
}[];
|
|
1131
1287
|
};
|
|
1132
1288
|
schemaVersion: number;
|
|
1133
1289
|
global: {
|
|
@@ -1176,8 +1332,15 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1176
1332
|
};
|
|
1177
1333
|
};
|
|
1178
1334
|
since: number;
|
|
1335
|
+
defects: {
|
|
1336
|
+
at: number;
|
|
1337
|
+
title: string;
|
|
1338
|
+
source?: string | undefined;
|
|
1339
|
+
detail?: string | undefined;
|
|
1340
|
+
}[];
|
|
1179
1341
|
};
|
|
1180
1342
|
projectName?: string | undefined;
|
|
1343
|
+
dashboardUrl?: string | undefined;
|
|
1181
1344
|
}, {
|
|
1182
1345
|
project: {
|
|
1183
1346
|
counts: {
|
|
@@ -1225,6 +1388,12 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1225
1388
|
};
|
|
1226
1389
|
};
|
|
1227
1390
|
since: number;
|
|
1391
|
+
defects?: {
|
|
1392
|
+
at: number;
|
|
1393
|
+
title: string;
|
|
1394
|
+
source?: string | undefined;
|
|
1395
|
+
detail?: string | undefined;
|
|
1396
|
+
}[] | undefined;
|
|
1228
1397
|
};
|
|
1229
1398
|
schemaVersion: number;
|
|
1230
1399
|
global: {
|
|
@@ -1273,8 +1442,15 @@ export declare const ImpactSnapshotSchema: z.ZodObject<{
|
|
|
1273
1442
|
};
|
|
1274
1443
|
};
|
|
1275
1444
|
since: number;
|
|
1445
|
+
defects?: {
|
|
1446
|
+
at: number;
|
|
1447
|
+
title: string;
|
|
1448
|
+
source?: string | undefined;
|
|
1449
|
+
detail?: string | undefined;
|
|
1450
|
+
}[] | undefined;
|
|
1276
1451
|
};
|
|
1277
1452
|
projectName?: string | undefined;
|
|
1453
|
+
dashboardUrl?: string | undefined;
|
|
1278
1454
|
}>;
|
|
1279
1455
|
export type ImpactSnapshot = z.infer<typeof ImpactSnapshotSchema>;
|
|
1280
1456
|
/** Empty counters - the starting point for a fresh store and the identity for merges. */
|
package/dist/impact.js
CHANGED
|
@@ -76,6 +76,31 @@ export const ImpactSavingsSchema = z.object({
|
|
|
76
76
|
/** Minutes not spent, vs the re-prompt cycle a false green costs. */
|
|
77
77
|
minutes: ImpactEstimateSchema,
|
|
78
78
|
});
|
|
79
|
+
/**
|
|
80
|
+
* How many recent defects a scope remembers.
|
|
81
|
+
*
|
|
82
|
+
* Small on purpose. `counts.failed` already says HOW MANY defects there have been; this list exists
|
|
83
|
+
* so the HUD can say WHICH ONES, and a panel in the corner of somebody's app is not a triage queue.
|
|
84
|
+
* Ten is enough to recognise what is currently broken and short enough that the record stays a
|
|
85
|
+
* counters file rather than becoming a log.
|
|
86
|
+
*/
|
|
87
|
+
export const IMPACT_DEFECT_LIMIT = 10;
|
|
88
|
+
/**
|
|
89
|
+
* One defect, as the HUD shows it.
|
|
90
|
+
*
|
|
91
|
+
* Recorded at the moment a verdict comes back verified:"no" - so it is a thing that actually failed
|
|
92
|
+
* a declared consequence, never a heuristic read of the page afterwards.
|
|
93
|
+
*/
|
|
94
|
+
export const ImpactDefectSchema = z.object({
|
|
95
|
+
/** When it was caught (epoch ms). */
|
|
96
|
+
at: z.number().int().nonnegative(),
|
|
97
|
+
/** One line naming what failed, in the words the verdict used. */
|
|
98
|
+
title: z.string(),
|
|
99
|
+
/** Why it failed, when the verdict said. */
|
|
100
|
+
detail: z.string().optional(),
|
|
101
|
+
/** `file:line` of the element that was acted on, so the reader can go straight there. */
|
|
102
|
+
source: z.string().optional(),
|
|
103
|
+
});
|
|
79
104
|
/** One scope of the record: this project, or everything on this machine. */
|
|
80
105
|
export const ImpactScopeSchema = z.object({
|
|
81
106
|
counts: ImpactCountsSchema,
|
|
@@ -84,6 +109,11 @@ export const ImpactScopeSchema = z.object({
|
|
|
84
109
|
savings: ImpactSavingsSchema,
|
|
85
110
|
/** When this scope first recorded anything (epoch ms). */
|
|
86
111
|
since: z.number().int().nonnegative(),
|
|
112
|
+
/**
|
|
113
|
+
* The most recent defects, newest first. Defaulted rather than required: a record written by an
|
|
114
|
+
* older build has no such field, and a counters file that fails to parse loses the whole history.
|
|
115
|
+
*/
|
|
116
|
+
defects: z.array(ImpactDefectSchema).default([]),
|
|
87
117
|
});
|
|
88
118
|
/** What the HUD receives: this project, and the machine-wide total. */
|
|
89
119
|
export const ImpactSnapshotSchema = z.object({
|
|
@@ -92,6 +122,12 @@ export const ImpactSnapshotSchema = z.object({
|
|
|
92
122
|
global: ImpactScopeSchema,
|
|
93
123
|
/** Project name, for the report's title row. */
|
|
94
124
|
projectName: z.string().optional(),
|
|
125
|
+
/**
|
|
126
|
+
* Where the full, triageable list of these defects lives - present only when this project is
|
|
127
|
+
* linked to a Reticle Cloud workspace. Absent is the normal case and the HUD simply shows its
|
|
128
|
+
* short list without a link: the free tool is complete on its own.
|
|
129
|
+
*/
|
|
130
|
+
dashboardUrl: z.string().optional(),
|
|
95
131
|
});
|
|
96
132
|
/** Empty counters - the starting point for a fresh store and the identity for merges. */
|
|
97
133
|
export function emptyImpactCounts() {
|
package/dist/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export * from './source-constants.js';
|
|
|
12
12
|
export * from './event-classification.js';
|
|
13
13
|
export * from './verified-constants.js';
|
|
14
14
|
export * from './session-constants.js';
|
|
15
|
+
export * from './document-identity.js';
|
|
16
|
+
export * from './edit-epoch.js';
|
|
15
17
|
export * from './messages.js';
|
|
16
18
|
export * from './event-payloads.js';
|
|
17
19
|
export * from './event-priority.js';
|
|
@@ -28,7 +30,10 @@ export * from './notices.js';
|
|
|
28
30
|
export * from './journal.js';
|
|
29
31
|
export * from './browser-misdirect.js';
|
|
30
32
|
export * from './daemon-registry.js';
|
|
33
|
+
export * from './dev-server-registry.js';
|
|
31
34
|
export * from './project-registry.js';
|
|
35
|
+
export * from './intent.js';
|
|
36
|
+
export * from './run-context.js';
|
|
32
37
|
export * from './instrumentation-gap.js';
|
|
33
38
|
export * from './security.js';
|
|
34
39
|
export * from './redaction.js';
|
|
@@ -36,6 +41,8 @@ export * from './state-select.js';
|
|
|
36
41
|
export * from './toon.js';
|
|
37
42
|
export * from './upgrade.js';
|
|
38
43
|
export * from './telemetry.js';
|
|
44
|
+
export * from './no-session-reason.js';
|
|
45
|
+
export * from './telemetry-refusal.js';
|
|
39
46
|
export * from './telemetry-session.js';
|
|
40
47
|
export * from './telemetry-license.js';
|
|
41
48
|
export * from './telemetry-feedback.js';
|
|
@@ -43,3 +50,4 @@ export * from './impact.js';
|
|
|
43
50
|
export * from './impact-savings.js';
|
|
44
51
|
export { CONTRACT_FINGERPRINT, fnv1a, fingerprintOf } from './contract-fingerprint.js';
|
|
45
52
|
export { fingerprintFinding, type FindingIdentity } from './finding-fingerprint.js';
|
|
53
|
+
export * from './unreachable-notice.js';
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,8 @@ export * from './source-constants.js'; // DATA_RETICLE_SOURCE_ATTR, RETICLE_ROOT
|
|
|
13
13
|
export * from './event-classification.js'; // CHURN_TYPES — shared eviction priority for buffer/queue
|
|
14
14
|
export * from './verified-constants.js'; // Verified — the one field an agent gates on
|
|
15
15
|
export * from './session-constants.js';
|
|
16
|
+
export * from './document-identity.js'; // which document an observation belongs to
|
|
17
|
+
export * from './edit-epoch.js'; // which round of source edits an observation belongs to
|
|
16
18
|
export * from './messages.js'; // ReticleEvent + the message schemas
|
|
17
19
|
export * from './event-payloads.js'; // per-event payload schemas + wire vocab
|
|
18
20
|
export * from './event-priority.js'; // which events survive the bridge rate cap
|
|
@@ -32,7 +34,10 @@ export * from './journal.js';
|
|
|
32
34
|
export * from './browser-misdirect.js';
|
|
33
35
|
// ── INTERNAL cross-package plumbing (shared impl; not a stable outside API — may change in a minor) ─
|
|
34
36
|
export * from './daemon-registry.js'; // daemon discovery, used by the vite plugin + server
|
|
37
|
+
export * from './dev-server-registry.js'; // the return leg: dev servers announcing themselves
|
|
35
38
|
export * from './project-registry.js'; // projectId -> directory, so a cross-repo daemon can still resolve
|
|
39
|
+
export * from './intent.js'; // what a change was supposed to make true, captured while somebody knows
|
|
40
|
+
export * from './run-context.js'; // what a run established, folded and capped, for the agent to pull back
|
|
36
41
|
export * from './instrumentation-gap.js'; // what Reticle could not see, and the change that would let it
|
|
37
42
|
export * from './security.js'; // sanitize/serialize helpers shared by browser + server
|
|
38
43
|
export * from './redaction.js'; // isSensitiveKey / scrubKnownSecrets — the shared redaction rules
|
|
@@ -40,6 +45,9 @@ export * from './state-select.js'; // selectPath / capDepth — shared by browse
|
|
|
40
45
|
export * from './toon.js'; // TOON encoding used by the server's result encoder
|
|
41
46
|
export * from './upgrade.js'; // self-update policy shared by the CLI
|
|
42
47
|
export * from './telemetry.js';
|
|
48
|
+
// Split out of telemetry.js at the 1000-line cap; the barrel keeps the import path callers use.
|
|
49
|
+
export * from './no-session-reason.js';
|
|
50
|
+
export * from './telemetry-refusal.js';
|
|
43
51
|
export * from './telemetry-session.js'; // the session/project rollup payloads
|
|
44
52
|
export * from './telemetry-license.js'; // LicenseActivation — shared by the licence gate and telemetry
|
|
45
53
|
export * from './telemetry-feedback.js'; // the two things a PERSON writes: feedback + a self-declared identity // anonymous adoption telemetry wire contract (DAU/WAU/MAU/installs)
|
|
@@ -47,3 +55,4 @@ export * from './impact.js'; // the user's own record of what Reticle has done f
|
|
|
47
55
|
export * from './impact-savings.js'; // the savings model - one file, so every claim is derivable there
|
|
48
56
|
export { CONTRACT_FINGERPRINT, fnv1a, fingerprintOf } from './contract-fingerprint.js';
|
|
49
57
|
export { fingerprintFinding } from './finding-fingerprint.js';
|
|
58
|
+
export * from './unreachable-notice.js'; // the page's unreachable warning, as a contract the daemon parses
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
* producing findings nobody reads. The test for whether a gap belongs here is: *did this absence
|
|
21
21
|
* change the answer the agent just got?* If not, it does not fire.
|
|
22
22
|
*/
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* The kinds of absence that can weaken a verdict. Most name a capability the app did not provide;
|
|
25
|
+
* `UNDECLARED_CHANGE` names one the agent did not, and is here because it costs a verdict the same.
|
|
26
|
+
*/
|
|
24
27
|
export declare const InstrumentationGapKind: {
|
|
25
28
|
/**
|
|
26
29
|
* An element was driven and carries no source mapping, so no `file:line` can be reported for it.
|
|
@@ -43,6 +46,61 @@ export declare const InstrumentationGapKind: {
|
|
|
43
46
|
readonly NO_ROUTE_SIGNAL: "no-route-signal";
|
|
44
47
|
/** A control was driven that the declared capability contract does not mention. */
|
|
45
48
|
readonly UNDECLARED_CONTROL: "undeclared-control";
|
|
49
|
+
/**
|
|
50
|
+
* A flow cannot name a control with a stable testid, so the proposal is to add one.
|
|
51
|
+
*
|
|
52
|
+
* Honesty does not emit this on a verdict today — a missing testid is not itself a weaker
|
|
53
|
+
* channel the way a missing signal is. Oracles do, when they can locate the control. It
|
|
54
|
+
* belongs in this vocabulary so `reticle_domain` and a later honesty emit cannot disagree
|
|
55
|
+
* about the name of the same absence.
|
|
56
|
+
*/
|
|
57
|
+
readonly MISSING_TESTID: "missing-testid";
|
|
58
|
+
/**
|
|
59
|
+
* Code changed, and this verdict is the first one taken since — with nothing declaring what the
|
|
60
|
+
* change was supposed to make true.
|
|
61
|
+
*
|
|
62
|
+
* The odd one out here, and deliberately so: every other kind names something the APP did not
|
|
63
|
+
* provide, and this one names something the AGENT did not say. It belongs beside them because it
|
|
64
|
+
* has the same effect on a verdict. A change with no declared intent can only be checked against
|
|
65
|
+
* itself, so a green means "nothing visibly broke" and gets read as "the change worked" — which is
|
|
66
|
+
* the definition of a false green, and the one absence no amount of instrumentation can close.
|
|
67
|
+
*
|
|
68
|
+
* It is never derived from the diff, the file name or the test name. A guessed intent reads as the
|
|
69
|
+
* developer's own words and an agent will act on it, which is strictly worse than honest absence.
|
|
70
|
+
*/
|
|
71
|
+
readonly UNDECLARED_CHANGE: "undeclared-change";
|
|
72
|
+
/**
|
|
73
|
+
* A verdict PASSED and the ledger still holds intents nothing has proved.
|
|
74
|
+
*
|
|
75
|
+
* The mirror of `UNDECLARED_CHANGE`, and the more expensive half. That one fires when NOTHING was
|
|
76
|
+
* declared; this fires when something was and no verdict ever settled it — which reads identically
|
|
77
|
+
* to done from inside the run, because every verdict the agent drew came back green.
|
|
78
|
+
*
|
|
79
|
+
* Measured on the bench fixture: an agent fixed a form guard, drove the app, and drew SEVEN green
|
|
80
|
+
* verdicts, then reported FIXED. The form still accepted a whitespace-only service. Its closing
|
|
81
|
+
* words quoted its own patch as the evidence — seven verdicts about other things, and a conclusion
|
|
82
|
+
* read off the diff. No rule could see it: the change WAS declared, so `UNDECLARED_CHANGE` stayed
|
|
83
|
+
* silent, and each individual verdict was honestly green.
|
|
84
|
+
*
|
|
85
|
+
* A green does not settle what the run still owes, and only the ledger knows the difference. This
|
|
86
|
+
* is not a failure — the assertion held — so it downgrades nothing; it names the debt on the
|
|
87
|
+
* result the agent is already reading, at the moment it is deciding whether it is finished.
|
|
88
|
+
*/
|
|
89
|
+
readonly INTENT_UNDISCHARGED: "intent-undischarged";
|
|
90
|
+
/**
|
|
91
|
+
* A flow was saved and nothing says what it is for.
|
|
92
|
+
*
|
|
93
|
+
* The second kind here that names something the AGENT did not say rather than something the app
|
|
94
|
+
* did not provide, and it costs the same. A saved flow is a regression test that runs for months:
|
|
95
|
+
* when it eventually goes red, the report can name the step that broke and nothing else, so the
|
|
96
|
+
* reader has to reconstruct the goal from the steps before they can judge whether the failure
|
|
97
|
+
* matters. An intent turns that report into a sentence about what stopped being true.
|
|
98
|
+
*
|
|
99
|
+
* Never derived from the flow name, the step names or the assertions, for the reason
|
|
100
|
+
* `UNDECLARED_CHANGE` gives: a guessed goal reads as the author's own words and somebody will act
|
|
101
|
+
* on it. Absence stays honest.
|
|
102
|
+
*/
|
|
103
|
+
readonly NO_FLOW_INTENT: "no-flow-intent";
|
|
46
104
|
};
|
|
47
105
|
export type InstrumentationGapKind = (typeof InstrumentationGapKind)[keyof typeof InstrumentationGapKind];
|
|
48
106
|
export interface InstrumentationGap {
|
|
Binary file
|