@reticlehq/core 3.2.0 → 3.3.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 (77) hide show
  1. package/dist/artifacts/flow-composition.d.ts +3 -2
  2. package/dist/artifacts/flow-constants.d.ts +49 -2
  3. package/dist/artifacts/flow-constants.js +49 -2
  4. package/dist/artifacts/flow-expect-flat.d.ts +260 -0
  5. package/dist/artifacts/flow-expect-flat.js +284 -0
  6. package/dist/artifacts/flow-mutation-target.d.ts +0 -1
  7. package/dist/artifacts/flow-mutation-target.js +26 -2
  8. package/dist/artifacts/flow-step-tool.d.ts +2 -0
  9. package/dist/artifacts/flow-types.d.ts +1074 -1228
  10. package/dist/artifacts/flow-types.js +96 -140
  11. package/dist/artifacts/impact.d.ts +48 -20
  12. package/dist/artifacts/impact.js +11 -0
  13. package/dist/artifacts/journal.d.ts +33 -6
  14. package/dist/artifacts/journal.js +13 -0
  15. package/dist/hooks/hook-events.d.ts +18 -18
  16. package/dist/hud-entry.d.ts +9 -0
  17. package/dist/hud-entry.js +9 -0
  18. package/dist/identity/source-constants.d.ts +11 -0
  19. package/dist/identity/source-constants.js +11 -0
  20. package/dist/index.d.ts +8 -0
  21. package/dist/index.js +24 -1
  22. package/dist/onboarding.d.ts +2 -2
  23. package/dist/realm/registry.d.ts +0 -8
  24. package/dist/realm/registry.js +1 -11
  25. package/dist/schema/event-message.json +3 -1
  26. package/dist/schema/event-payloads.json +69 -0
  27. package/dist/schema/event-type.json +3 -1
  28. package/dist/schema/reticle-event.json +3 -1
  29. package/dist/schema/reticle-message.json +3 -1
  30. package/dist/source-constants.cjs +1 -0
  31. package/dist/source-constants.d.cts +1 -0
  32. package/dist/telemetry-feedback.d.ts +6 -6
  33. package/dist/telemetry-refusal.d.ts +2 -2
  34. package/dist/telemetry-session.d.ts +25 -2
  35. package/dist/telemetry-session.js +13 -0
  36. package/dist/telemetry.d.ts +121 -94
  37. package/dist/verdict/consequence.d.ts +10 -0
  38. package/dist/verdict/consequence.js +13 -0
  39. package/dist/verdict/intent.d.ts +36 -12
  40. package/dist/verdict/intent.js +66 -10
  41. package/dist/verdict/predicate-tree.d.ts +47 -0
  42. package/dist/verdict/predicate-tree.js +146 -0
  43. package/dist/verdict/predicate.d.ts +129 -0
  44. package/dist/verdict/predicate.js +394 -0
  45. package/dist/verdict/property-assertion.d.ts +191 -0
  46. package/dist/verdict/property-assertion.js +42 -0
  47. package/dist/verdict/security.js +16 -4
  48. package/dist/verdict/verdict-attribution.d.ts +52 -0
  49. package/dist/verdict/verdict-attribution.js +87 -0
  50. package/dist/verdict/verification-run.d.ts +98 -84
  51. package/dist/verdict/verification-run.js +8 -1
  52. package/dist/verdict/verified-constants.d.ts +9 -0
  53. package/dist/verdict/verified-constants.js +9 -0
  54. package/dist/wire/constants/constants.d.ts +20 -98
  55. package/dist/wire/constants/constants.js +22 -97
  56. package/dist/wire/constants/discovery.d.ts +25 -0
  57. package/dist/wire/constants/discovery.js +25 -0
  58. package/dist/wire/constants/event-types.d.ts +122 -0
  59. package/dist/wire/constants/event-types.js +121 -0
  60. package/dist/wire/constants/hud-controls.d.ts +19 -0
  61. package/dist/wire/constants/hud-controls.js +95 -0
  62. package/dist/wire/constants/hud-use.d.ts +27 -0
  63. package/dist/wire/constants/hud-use.js +24 -0
  64. package/dist/wire/constants/session-constants.d.ts +10 -0
  65. package/dist/wire/constants/session-constants.js +10 -0
  66. package/dist/wire/event-payloads.d.ts +66 -10
  67. package/dist/wire/event-payloads.js +18 -1
  68. package/dist/wire/messages.d.ts +89 -48
  69. package/dist/wire/messages.js +17 -0
  70. package/dist/wire/net.d.ts +18 -0
  71. package/dist/wire/net.js +24 -0
  72. package/dist/wire/state-select.d.ts +2 -1
  73. package/dist/wire/state-select.js +56 -3
  74. package/dist/wire/toon.js +28 -7
  75. package/dist/wire/types.d.ts +91 -66
  76. package/dist/wire/types.js +23 -1
  77. package/package.json +5 -1
@@ -70,8 +70,8 @@ export declare const VerdictHookPayloadSchema: z.ZodObject<{
70
70
  at: string;
71
71
  tool: string;
72
72
  verified: string;
73
- projectId?: string | undefined;
74
73
  url?: string | undefined;
74
+ projectId?: string | undefined;
75
75
  sessionId?: string | undefined;
76
76
  because?: string | undefined;
77
77
  }, {
@@ -79,8 +79,8 @@ export declare const VerdictHookPayloadSchema: z.ZodObject<{
79
79
  at: string;
80
80
  tool: string;
81
81
  verified: string;
82
- projectId?: string | undefined;
83
82
  url?: string | undefined;
83
+ projectId?: string | undefined;
84
84
  sessionId?: string | undefined;
85
85
  because?: string | undefined;
86
86
  }>;
@@ -99,8 +99,8 @@ export declare const BugFoundHookPayloadSchema: z.ZodObject<{
99
99
  sessionId: z.ZodOptional<z.ZodString>;
100
100
  }, "strip", z.ZodTypeAny, {
101
101
  event: "bug_found";
102
- kind: string;
103
102
  at: string;
103
+ kind: string;
104
104
  tool: string;
105
105
  repeat: boolean;
106
106
  route?: string | undefined;
@@ -110,8 +110,8 @@ export declare const BugFoundHookPayloadSchema: z.ZodObject<{
110
110
  fingerprint?: string | undefined;
111
111
  }, {
112
112
  event: "bug_found";
113
- kind: string;
114
113
  at: string;
114
+ kind: string;
115
115
  tool: string;
116
116
  repeat: boolean;
117
117
  route?: string | undefined;
@@ -133,15 +133,15 @@ export declare const SessionHookPayloadSchema: z.ZodObject<{
133
133
  event: "session_started" | "session_ended";
134
134
  at: string;
135
135
  sessionId: string;
136
- projectId?: string | undefined;
137
136
  url?: string | undefined;
137
+ projectId?: string | undefined;
138
138
  runtime?: string | undefined;
139
139
  }, {
140
140
  event: "session_started" | "session_ended";
141
141
  at: string;
142
142
  sessionId: string;
143
- projectId?: string | undefined;
144
143
  url?: string | undefined;
144
+ projectId?: string | undefined;
145
145
  runtime?: string | undefined;
146
146
  }>;
147
147
  export type SessionHookPayload = z.infer<typeof SessionHookPayloadSchema>;
@@ -154,15 +154,15 @@ export declare const SyncHookPayloadSchema: z.ZodObject<{
154
154
  ok: z.ZodBoolean;
155
155
  error: z.ZodOptional<z.ZodString>;
156
156
  }, "strip", z.ZodTypeAny, {
157
- event: "sync_completed";
158
157
  ok: boolean;
158
+ event: "sync_completed";
159
159
  at: string;
160
160
  runsPushed: number;
161
161
  error?: string | undefined;
162
162
  projectId?: string | undefined;
163
163
  }, {
164
- event: "sync_completed";
165
164
  ok: boolean;
165
+ event: "sync_completed";
166
166
  at: string;
167
167
  runsPushed: number;
168
168
  error?: string | undefined;
@@ -185,8 +185,8 @@ export declare const HookPayloadSchema: z.ZodDiscriminatedUnion<"event", [z.ZodO
185
185
  at: string;
186
186
  tool: string;
187
187
  verified: string;
188
- projectId?: string | undefined;
189
188
  url?: string | undefined;
189
+ projectId?: string | undefined;
190
190
  sessionId?: string | undefined;
191
191
  because?: string | undefined;
192
192
  }, {
@@ -194,8 +194,8 @@ export declare const HookPayloadSchema: z.ZodDiscriminatedUnion<"event", [z.ZodO
194
194
  at: string;
195
195
  tool: string;
196
196
  verified: string;
197
- projectId?: string | undefined;
198
197
  url?: string | undefined;
198
+ projectId?: string | undefined;
199
199
  sessionId?: string | undefined;
200
200
  because?: string | undefined;
201
201
  }>, z.ZodObject<{
@@ -212,8 +212,8 @@ export declare const HookPayloadSchema: z.ZodDiscriminatedUnion<"event", [z.ZodO
212
212
  sessionId: z.ZodOptional<z.ZodString>;
213
213
  }, "strip", z.ZodTypeAny, {
214
214
  event: "bug_found";
215
- kind: string;
216
215
  at: string;
216
+ kind: string;
217
217
  tool: string;
218
218
  repeat: boolean;
219
219
  route?: string | undefined;
@@ -223,8 +223,8 @@ export declare const HookPayloadSchema: z.ZodDiscriminatedUnion<"event", [z.ZodO
223
223
  fingerprint?: string | undefined;
224
224
  }, {
225
225
  event: "bug_found";
226
- kind: string;
227
226
  at: string;
227
+ kind: string;
228
228
  tool: string;
229
229
  repeat: boolean;
230
230
  route?: string | undefined;
@@ -244,15 +244,15 @@ export declare const HookPayloadSchema: z.ZodDiscriminatedUnion<"event", [z.ZodO
244
244
  event: "session_started";
245
245
  at: string;
246
246
  sessionId: string;
247
- projectId?: string | undefined;
248
247
  url?: string | undefined;
248
+ projectId?: string | undefined;
249
249
  runtime?: string | undefined;
250
250
  }, {
251
251
  event: "session_started";
252
252
  at: string;
253
253
  sessionId: string;
254
- projectId?: string | undefined;
255
254
  url?: string | undefined;
255
+ projectId?: string | undefined;
256
256
  runtime?: string | undefined;
257
257
  }>, z.ZodObject<{
258
258
  at: z.ZodString;
@@ -266,15 +266,15 @@ export declare const HookPayloadSchema: z.ZodDiscriminatedUnion<"event", [z.ZodO
266
266
  event: "session_ended";
267
267
  at: string;
268
268
  sessionId: string;
269
- projectId?: string | undefined;
270
269
  url?: string | undefined;
270
+ projectId?: string | undefined;
271
271
  runtime?: string | undefined;
272
272
  }, {
273
273
  event: "session_ended";
274
274
  at: string;
275
275
  sessionId: string;
276
- projectId?: string | undefined;
277
276
  url?: string | undefined;
277
+ projectId?: string | undefined;
278
278
  runtime?: string | undefined;
279
279
  }>, z.ZodObject<{
280
280
  at: z.ZodString;
@@ -285,15 +285,15 @@ export declare const HookPayloadSchema: z.ZodDiscriminatedUnion<"event", [z.ZodO
285
285
  ok: z.ZodBoolean;
286
286
  error: z.ZodOptional<z.ZodString>;
287
287
  }, "strip", z.ZodTypeAny, {
288
- event: "sync_completed";
289
288
  ok: boolean;
289
+ event: "sync_completed";
290
290
  at: string;
291
291
  runsPushed: number;
292
292
  error?: string | undefined;
293
293
  projectId?: string | undefined;
294
294
  }, {
295
- event: "sync_completed";
296
295
  ok: boolean;
296
+ event: "sync_completed";
297
297
  at: string;
298
298
  runsPushed: number;
299
299
  error?: string | undefined;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * `@reticlehq/core/hud` — the HUD's control names, for the panel that renders them and the daemon
3
+ * that counts them.
4
+ *
5
+ * A subpath for the reason `./tour` is one: the SDK loads core's root entry on every page, and the
6
+ * control list re-exported from there landed in a chunk every page downloads, though only the lazily
7
+ * loaded panel ever reads it. `first-load-size` measured it.
8
+ */
9
+ export * from './wire/constants/hud-controls.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * `@reticlehq/core/hud` — the HUD's control names, for the panel that renders them and the daemon
3
+ * that counts them.
4
+ *
5
+ * A subpath for the reason `./tour` is one: the SDK loads core's root entry on every page, and the
6
+ * control list re-exported from there landed in a chunk every page downloads, though only the lazily
7
+ * loaded panel ever reads it. `first-load-size` measured it.
8
+ */
9
+ export * from './wire/constants/hud-controls.js';
@@ -30,3 +30,14 @@ export declare const RETICLE_ROOT_GLOBAL = "__RETICLE_ROOT__";
30
30
  * package's version. See `sdkVersion` on the HELLO message.
31
31
  */
32
32
  export declare const RETICLE_SDK_VERSION_GLOBAL = "__RETICLE_SDK_VERSION__";
33
+ /**
34
+ * The per-file opt-out for source stamping: a file whose FIRST non-empty line is a comment carrying
35
+ * this marker — the `//` line form, the block-comment form, or `<!-- @reticle-ignore -->` for a
36
+ * Svelte component — is not stamped at all.
37
+ *
38
+ * Whole file, first line, on purpose. The reasons to opt out are file-shaped ("this component is
39
+ * generated", "stamping this one breaks a snapshot test"), and a marker that worked from line 40
40
+ * would be a marker nobody can find. The string lives here so the Babel plugin, the Vite plugin and
41
+ * the docs cannot drift on it; the stampers own the line check (#853).
42
+ */
43
+ export declare const RETICLE_IGNORE_MARKER = "@reticle-ignore";
@@ -30,3 +30,14 @@ export const RETICLE_ROOT_GLOBAL = '__RETICLE_ROOT__';
30
30
  * package's version. See `sdkVersion` on the HELLO message.
31
31
  */
32
32
  export const RETICLE_SDK_VERSION_GLOBAL = '__RETICLE_SDK_VERSION__';
33
+ /**
34
+ * The per-file opt-out for source stamping: a file whose FIRST non-empty line is a comment carrying
35
+ * this marker — the `//` line form, the block-comment form, or `<!-- @reticle-ignore -->` for a
36
+ * Svelte component — is not stamped at all.
37
+ *
38
+ * Whole file, first line, on purpose. The reasons to opt out are file-shaped ("this component is
39
+ * generated", "stamping this one breaks a snapshot test"), and a marker that worked from line 40
40
+ * would be a marker nobody can find. The string lives here so the Babel plugin, the Vite plugin and
41
+ * the docs cannot drift on it; the stampers own the line check (#853).
42
+ */
43
+ export const RETICLE_IGNORE_MARKER = '@reticle-ignore';
package/dist/index.d.ts CHANGED
@@ -28,14 +28,18 @@ export * from './identity/source-constants.js';
28
28
  export * from './wire/event-classification.js';
29
29
  export * from './wire/global-press.js';
30
30
  export * from './verdict/verified-constants.js';
31
+ export * from './verdict/verdict-attribution.js';
31
32
  export * from './verdict/verify-progress.js';
32
33
  export * from './wire/constants/session-constants.js';
34
+ export * from './wire/constants/hud-use.js';
35
+ export * from './wire/constants/discovery.js';
33
36
  export * from './identity/document-identity.js';
34
37
  export * from './identity/edit-epoch.js';
35
38
  export * from './wire/messages.js';
36
39
  export * from './wire/event-payloads.js';
37
40
  export * from './wire/event-priority.js';
38
41
  export * from './artifacts/flow-constants.js';
42
+ export * from './artifacts/flow-step-tool.js';
39
43
  export * from './artifacts/flow-types.js';
40
44
  export * from './artifacts/step-effect.js';
41
45
  export * from './artifacts/flow-composition.js';
@@ -46,6 +50,10 @@ export * from './wire/net.js';
46
50
  export * from './verdict/findings.js';
47
51
  export * from './wire/desktop-contract.js';
48
52
  export * from './verdict/consequence.js';
53
+ export * from './verdict/property-assertion.js';
54
+ export * from './verdict/predicate.js';
55
+ export * from './verdict/predicate-tree.js';
56
+ export * from './artifacts/flow-expect-flat.js';
49
57
  export * from './identity/project-id.js';
50
58
  export * from './words/notices.js';
51
59
  export * from './artifacts/journal.js';
package/dist/index.js CHANGED
@@ -29,15 +29,31 @@ export * from './identity/source-constants.js'; // DATA_RETICLE_SOURCE_ATTR, RET
29
29
  export * from './wire/event-classification.js'; // CHURN_TYPES — shared eviction priority for buffer/queue
30
30
  export * from './wire/global-press.js'; // which press is a document key (Escape / Tab / a shortcut)
31
31
  export * from './verdict/verified-constants.js'; // Verified — the one field an agent gates on
32
+ // Its own module so a page that never needs it does not download it — see first-load-size.
33
+ export * from './verdict/verdict-attribution.js';
32
34
  export * from './verdict/verify-progress.js'; // VerifyPhase — what a run is doing while it is still doing it
33
35
  export * from './wire/constants/session-constants.js';
36
+ export * from './wire/constants/hud-use.js'; // where the HUD sits, for HUD_USED events
37
+ export * from './wire/constants/discovery.js'; // the call-the-founder invitation, one link for every surface
34
38
  export * from './identity/document-identity.js'; // which document an observation belongs to
35
39
  export * from './identity/edit-epoch.js'; // which round of source edits an observation belongs to
36
40
  export * from './wire/messages.js'; // ReticleEvent + the message schemas
37
41
  export * from './wire/event-payloads.js'; // per-event payload schemas + wire vocab
38
42
  export * from './wire/event-priority.js'; // which events survive the bridge rate cap
39
43
  export * from './artifacts/flow-constants.js'; // moved off wire/constants/constants, which had no use for them
40
- export * from './artifacts/flow-types.js'; // FlowStep, FlowExpect, FlowStepTool, replay result shapes
44
+ /*
45
+ * The leaf FIRST, and separately from the file it describes. `flow-step-tool.ts` was extracted out
46
+ * of `flow-types.ts` precisely so the browser SDK — which imports `FlowStepTool` and nothing else
47
+ * from there — would stop downloading eleven zod schemas it can never use. `flow-types.ts` then
48
+ * re-exported the two names for convenience, which put the whole module straight back on the
49
+ * barrel's path to them and quietly undid the extraction: measured at 6,222 B of every page load,
50
+ * reached through one constant.
51
+ *
52
+ * That is the same shape as the z-index that dragged the panel's stylesheet in, and as `StepEffect`
53
+ * on the line below. A leaf is only a leaf if the barrel names it directly.
54
+ */
55
+ export * from './artifacts/flow-step-tool.js'; // FlowStepTool / CROSS_STEP_ADDRESS: a leaf, named directly
56
+ export * from './artifacts/flow-types.js'; // FlowStep, FlowExpect, replay result shapes
41
57
  export * from './artifacts/step-effect.js'; // StepEffect: a leaf, so the page never downloads it
42
58
  export * from './artifacts/flow-composition.js'; // canFollow: may B replay straight after A
43
59
  export * from './verdict/verification-run.js'; // run/verdict shapes for the CI surface
@@ -47,6 +63,13 @@ export * from './wire/net.js'; // NetInitiator / ipc:// scheme — network + des
47
63
  export * from './verdict/findings.js'; // crawl anomalies + cross-channel contradictions
48
64
  export * from './wire/desktop-contract.js'; // the Electron preload/main/renderer/daemon string contract
49
65
  export * from './verdict/consequence.js';
66
+ // The predicate CONTRACT: what a caller may declare, and what a saved flow may carry. The engine
67
+ // owns the reasoning over it and re-exports both halves as one surface.
68
+ export * from './verdict/property-assertion.js';
69
+ export * from './verdict/predicate.js';
70
+ export * from './verdict/predicate-tree.js';
71
+ // The version 1 reader: a flat expect lifted to the predicate a v2 file stores directly.
72
+ export * from './artifacts/flow-expect-flat.js';
50
73
  export * from './identity/project-id.js';
51
74
  export * from './words/notices.js';
52
75
  export * from './artifacts/journal.js';
@@ -95,16 +95,16 @@ export declare const OnboardingStepSchema: z.ZodObject<{
95
95
  */
96
96
  unattended: z.ZodOptional<z.ZodBoolean>;
97
97
  }, "strip", z.ZodTypeAny, {
98
- status: "skipped" | "started" | "completed" | "failed" | "abandoned";
99
98
  step: string;
99
+ status: "skipped" | "completed" | "started" | "failed" | "abandoned";
100
100
  phase: "install" | "onboard" | "first_run";
101
101
  reason?: string | undefined;
102
102
  stack?: string | undefined;
103
103
  elapsedMs?: number | undefined;
104
104
  unattended?: boolean | undefined;
105
105
  }, {
106
- status: "skipped" | "started" | "completed" | "failed" | "abandoned";
107
106
  step: string;
107
+ status: "skipped" | "completed" | "started" | "failed" | "abandoned";
108
108
  phase: "install" | "onboard" | "first_run";
109
109
  reason?: string | undefined;
110
110
  stack?: string | undefined;
@@ -202,11 +202,3 @@ export declare function profileOfRuntime(runtime: string | undefined): PlatformP
202
202
  export declare const DETERMINISM_BY_SURFACE: Record<Surface, DeterminismProfile>;
203
203
  /** The declared profile for a surface. */
204
204
  export declare function determinismFor(surface: Surface): DeterminismProfile;
205
- /**
206
- * May a resume re-drive the steps before the one asked for?
207
- *
208
- * The one question the resume path has to ask before it silently repeats somebody's actions. Derived
209
- * through the protocol's own `resumeStrategy` rather than by reading `replayPrefix` here, so this
210
- * cannot drift from the rule the specification publishes.
211
- */
212
- export declare function mayResumeByReplayingPrefix(surface: Surface): boolean;
@@ -18,7 +18,7 @@
18
18
  * how to patch a build config, what a connect snippet looks like — those are code and live with the
19
19
  * code that runs them. This table holds facts you could write on an index card.
20
20
  */
21
- import { ResumeStrategy, resumeStrategy, Surface, } from 'open-verification';
21
+ import { Surface } from 'open-verification';
22
22
  import { AppRuntime } from '../telemetry-feedback.js';
23
23
  import { PlatformProfile } from '../wire/platform.js';
24
24
  /**
@@ -290,13 +290,3 @@ export const DETERMINISM_BY_SURFACE = {
290
290
  export function determinismFor(surface) {
291
291
  return DETERMINISM_BY_SURFACE[surface];
292
292
  }
293
- /**
294
- * May a resume re-drive the steps before the one asked for?
295
- *
296
- * The one question the resume path has to ask before it silently repeats somebody's actions. Derived
297
- * through the protocol's own `resumeStrategy` rather than by reading `replayPrefix` here, so this
298
- * cannot drift from the rule the specification publishes.
299
- */
300
- export function mayResumeByReplayingPrefix(surface) {
301
- return ResumeStrategy.REFUSE !== resumeStrategy(determinismFor(surface));
302
- }
@@ -45,6 +45,7 @@
45
45
  "dialog.opened",
46
46
  "render.commit",
47
47
  "focus.change",
48
+ "field.change",
48
49
  "flow.recorded",
49
50
  "transport.overflow",
50
51
  "truncated",
@@ -53,7 +54,8 @@
53
54
  "net.detail",
54
55
  "human.control",
55
56
  "human.mark",
56
- "download"
57
+ "download",
58
+ "hud.used"
57
59
  ]
58
60
  },
59
61
  "sessionId": {
@@ -585,6 +585,39 @@
585
585
  "additionalProperties": false,
586
586
  "$schema": "http://json-schema.org/draft-07/schema#"
587
587
  },
588
+ "field.change": {
589
+ "type": "object",
590
+ "properties": {
591
+ "field": {
592
+ "type": "string"
593
+ },
594
+ "kind": {
595
+ "type": "string",
596
+ "enum": [
597
+ "input",
598
+ "change"
599
+ ]
600
+ },
601
+ "length": {
602
+ "type": "integer",
603
+ "minimum": 0
604
+ },
605
+ "value": {
606
+ "type": "string"
607
+ },
608
+ "redacted": {
609
+ "type": "boolean",
610
+ "const": true
611
+ }
612
+ },
613
+ "required": [
614
+ "field",
615
+ "kind",
616
+ "length"
617
+ ],
618
+ "additionalProperties": false,
619
+ "$schema": "http://json-schema.org/draft-07/schema#"
620
+ },
588
621
  "flow.recorded": {
589
622
  "type": "object",
590
623
  "properties": {
@@ -790,6 +823,42 @@
790
823
  ],
791
824
  "additionalProperties": false,
792
825
  "$schema": "http://json-schema.org/draft-07/schema#"
826
+ },
827
+ "hud.used": {
828
+ "type": "object",
829
+ "properties": {
830
+ "control": {
831
+ "type": "string",
832
+ "maxLength": 48,
833
+ "pattern": "^[a-z][a-zA-Z-]*(\\.[a-zA-Z-]+)?$"
834
+ },
835
+ "toggle": {
836
+ "type": "string",
837
+ "enum": [
838
+ "on",
839
+ "off"
840
+ ]
841
+ },
842
+ "view": {
843
+ "type": "string",
844
+ "enum": [
845
+ "bubble",
846
+ "collapsed",
847
+ "expanded"
848
+ ]
849
+ },
850
+ "panel": {
851
+ "type": "string",
852
+ "enum": [
853
+ "chat",
854
+ "settings",
855
+ "report",
856
+ "none"
857
+ ]
858
+ }
859
+ },
860
+ "additionalProperties": false,
861
+ "$schema": "http://json-schema.org/draft-07/schema#"
793
862
  }
794
863
  }
795
864
  }
@@ -32,6 +32,7 @@
32
32
  "dialog.opened",
33
33
  "render.commit",
34
34
  "focus.change",
35
+ "field.change",
35
36
  "flow.recorded",
36
37
  "transport.overflow",
37
38
  "truncated",
@@ -40,7 +41,8 @@
40
41
  "net.detail",
41
42
  "human.control",
42
43
  "human.mark",
43
- "download"
44
+ "download",
45
+ "hud.used"
44
46
  ]
45
47
  }
46
48
  },
@@ -38,6 +38,7 @@
38
38
  "dialog.opened",
39
39
  "render.commit",
40
40
  "focus.change",
41
+ "field.change",
41
42
  "flow.recorded",
42
43
  "transport.overflow",
43
44
  "truncated",
@@ -46,7 +47,8 @@
46
47
  "net.detail",
47
48
  "human.control",
48
49
  "human.mark",
49
- "download"
50
+ "download",
51
+ "hud.used"
50
52
  ]
51
53
  },
52
54
  "sessionId": {
@@ -252,6 +252,7 @@
252
252
  "dialog.opened",
253
253
  "render.commit",
254
254
  "focus.change",
255
+ "field.change",
255
256
  "flow.recorded",
256
257
  "transport.overflow",
257
258
  "truncated",
@@ -260,7 +261,8 @@
260
261
  "net.detail",
261
262
  "human.control",
262
263
  "human.mark",
263
- "download"
264
+ "download",
265
+ "hud.used"
264
266
  ]
265
267
  },
266
268
  "sessionId": {
@@ -6,4 +6,5 @@
6
6
  exports.DATA_RETICLE_SOURCE_ATTR = "data-reticle-source";
7
7
  exports.RETICLE_ROOT_GLOBAL = "__RETICLE_ROOT__";
8
8
  exports.RETICLE_SDK_VERSION_GLOBAL = "__RETICLE_SDK_VERSION__";
9
+ exports.RETICLE_IGNORE_MARKER = "@reticle-ignore";
9
10
  Object.freeze(exports);
@@ -2,3 +2,4 @@
2
2
  export declare const DATA_RETICLE_SOURCE_ATTR: "data-reticle-source";
3
3
  export declare const RETICLE_ROOT_GLOBAL: "__RETICLE_ROOT__";
4
4
  export declare const RETICLE_SDK_VERSION_GLOBAL: "__RETICLE_SDK_VERSION__";
5
+ export declare const RETICLE_IGNORE_MARKER: "@reticle-ignore";
@@ -241,13 +241,13 @@ export declare const FeedbackSchema: z.ZodObject<{
241
241
  }, "strip", z.ZodTypeAny, {
242
242
  text: string;
243
243
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
244
- source: "agent" | "human";
244
+ source: "human" | "agent";
245
245
  impact?: string | undefined;
246
+ model?: string | undefined;
246
247
  trace?: string | undefined;
247
248
  rating?: number | undefined;
248
249
  need?: string | undefined;
249
250
  currentApproach?: string | undefined;
250
- model?: string | undefined;
251
251
  clientVersion?: string | undefined;
252
252
  stack?: string | undefined;
253
253
  stackMajor?: number | undefined;
@@ -255,17 +255,17 @@ export declare const FeedbackSchema: z.ZodObject<{
255
255
  engine?: "blink" | "gecko" | "webkit" | undefined;
256
256
  driver?: "cdp" | "sdk" | undefined;
257
257
  client?: string | undefined;
258
- mcpScope?: "user" | "project" | undefined;
258
+ mcpScope?: "project" | "user" | undefined;
259
259
  }, {
260
260
  text: string;
261
261
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
262
- source: "agent" | "human";
262
+ source: "human" | "agent";
263
263
  impact?: string | undefined;
264
+ model?: string | undefined;
264
265
  trace?: string | undefined;
265
266
  rating?: number | undefined;
266
267
  need?: string | undefined;
267
268
  currentApproach?: string | undefined;
268
- model?: string | undefined;
269
269
  clientVersion?: string | undefined;
270
270
  stack?: string | undefined;
271
271
  stackMajor?: number | undefined;
@@ -273,7 +273,7 @@ export declare const FeedbackSchema: z.ZodObject<{
273
273
  engine?: "blink" | "gecko" | "webkit" | undefined;
274
274
  driver?: "cdp" | "sdk" | undefined;
275
275
  client?: string | undefined;
276
- mcpScope?: "user" | "project" | undefined;
276
+ mcpScope?: "project" | "user" | undefined;
277
277
  }>;
278
278
  export type Feedback = z.infer<typeof FeedbackSchema>;
279
279
  /** What Reticle is being used for. Self-declared; never inferred. */
@@ -81,13 +81,13 @@ export declare const ToolRefusalSchema: z.ZodObject<{
81
81
  */
82
82
  retried: z.ZodBoolean;
83
83
  }, "strip", z.ZodTypeAny, {
84
- tool: string;
85
84
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
85
+ tool: string;
86
86
  retried: boolean;
87
87
  noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
88
88
  }, {
89
- tool: string;
90
89
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
90
+ tool: string;
91
91
  retried: boolean;
92
92
  noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
93
93
  }>;
@@ -480,6 +480,19 @@ export declare const SessionSummarySchema: z.ZodObject<{
480
480
  * something was and the nudge did not fire — and only the second is a defect.
481
481
  */
482
482
  updateOffered: z.ZodOptional<z.ZodString>;
483
+ /**
484
+ * How people used the in-page HUD this window. All windowed, all absent when nobody touched it.
485
+ *
486
+ * `hudControls` counts presses per control id (a toggle as `id:on` / `id:off`), `hudViewMs` and
487
+ * `hudPanelMs` time how the HUD sat (bubble / collapsed / expanded) and which panel was showing,
488
+ * and `hudJourney` is the window's presses and view changes in order, cut at 60 with
489
+ * `hudJourneyCut`. Every key is a control id from core's closed list: names, never values.
490
+ */
491
+ hudControls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
492
+ hudViewMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
493
+ hudPanelMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
494
+ hudJourney: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
495
+ hudJourneyCut: z.ZodOptional<z.ZodLiteral<true>>;
483
496
  /** Was this a clean shutdown, or a periodic flush of a still-running session? */
484
497
  final: z.ZodBoolean;
485
498
  /**
@@ -559,6 +572,11 @@ export declare const SessionSummarySchema: z.ZodObject<{
559
572
  endedWithVerdict?: boolean | undefined;
560
573
  updateNudged?: boolean | undefined;
561
574
  updateOffered?: string | undefined;
575
+ hudControls?: Record<string, number> | undefined;
576
+ hudViewMs?: Record<string, number> | undefined;
577
+ hudPanelMs?: Record<string, number> | undefined;
578
+ hudJourney?: string[] | undefined;
579
+ hudJourneyCut?: true | undefined;
562
580
  exit?: "signal" | "idle" | "unknown" | undefined;
563
581
  }, {
564
582
  durationMs: number;
@@ -624,6 +642,11 @@ export declare const SessionSummarySchema: z.ZodObject<{
624
642
  endedWithVerdict?: boolean | undefined;
625
643
  updateNudged?: boolean | undefined;
626
644
  updateOffered?: string | undefined;
645
+ hudControls?: Record<string, number> | undefined;
646
+ hudViewMs?: Record<string, number> | undefined;
647
+ hudPanelMs?: Record<string, number> | undefined;
648
+ hudJourney?: string[] | undefined;
649
+ hudJourneyCut?: true | undefined;
627
650
  exit?: "signal" | "idle" | "unknown" | undefined;
628
651
  }>;
629
652
  export type SessionSummary = z.infer<typeof SessionSummarySchema>;
@@ -818,9 +841,9 @@ export declare const ProjectProfileSchema: z.ZodObject<{
818
841
  featureDepth: number;
819
842
  stack?: string | undefined;
820
843
  stackMajor?: number | undefined;
844
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
821
845
  stackSource?: "cwd" | "workspace" | undefined;
822
846
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
823
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
824
847
  monorepo?: boolean | undefined;
825
848
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
826
849
  ageWeeks?: number | undefined;
@@ -838,9 +861,9 @@ export declare const ProjectProfileSchema: z.ZodObject<{
838
861
  featureDepth: number;
839
862
  stack?: string | undefined;
840
863
  stackMajor?: number | undefined;
864
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
841
865
  stackSource?: "cwd" | "workspace" | undefined;
842
866
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
843
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
844
867
  monorepo?: boolean | undefined;
845
868
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
846
869
  ageWeeks?: number | undefined;