@reticlehq/core 3.1.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.
- package/dist/artifacts/flow-composition.d.ts +3 -2
- package/dist/artifacts/flow-constants.d.ts +59 -2
- package/dist/artifacts/flow-constants.js +63 -3
- package/dist/artifacts/flow-expect-flat.d.ts +260 -0
- package/dist/artifacts/flow-expect-flat.js +284 -0
- package/dist/artifacts/flow-mutation-target.d.ts +0 -1
- package/dist/artifacts/flow-mutation-target.js +26 -2
- package/dist/artifacts/flow-step-tool.d.ts +2 -0
- package/dist/artifacts/flow-types.d.ts +1071 -1225
- package/dist/artifacts/flow-types.js +96 -140
- package/dist/artifacts/impact.d.ts +200 -20
- package/dist/artifacts/impact.js +72 -0
- package/dist/artifacts/journal.d.ts +85 -6
- package/dist/artifacts/journal.js +51 -1
- package/dist/hooks/hook-events.d.ts +18 -18
- package/dist/hud-entry.d.ts +9 -0
- package/dist/hud-entry.js +9 -0
- package/dist/identity/brand.d.ts +46 -0
- package/dist/identity/brand.js +7 -0
- package/dist/identity/source-constants.d.ts +11 -0
- package/dist/identity/source-constants.js +11 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +26 -2
- package/dist/onboarding.d.ts +2 -2
- package/dist/realm/registry.d.ts +0 -8
- package/dist/realm/registry.js +1 -11
- package/dist/schema/event-message.json +3 -1
- package/dist/schema/event-payloads.json +74 -1
- package/dist/schema/event-type.json +3 -1
- package/dist/schema/reticle-event.json +3 -1
- package/dist/schema/reticle-message.json +3 -1
- package/dist/source-constants.cjs +1 -0
- package/dist/source-constants.d.cts +1 -0
- package/dist/telemetry-feedback.d.ts +6 -6
- package/dist/telemetry-refusal.d.ts +2 -2
- package/dist/telemetry-session.d.ts +25 -2
- package/dist/telemetry-session.js +13 -0
- package/dist/telemetry.d.ts +184 -102
- package/dist/telemetry.js +29 -1
- package/dist/verdict/consequence.d.ts +10 -0
- package/dist/verdict/consequence.js +13 -0
- package/dist/verdict/intent.d.ts +36 -12
- package/dist/verdict/intent.js +66 -10
- package/dist/verdict/predicate-tree.d.ts +47 -0
- package/dist/verdict/predicate-tree.js +146 -0
- package/dist/verdict/predicate.d.ts +129 -0
- package/dist/verdict/predicate.js +394 -0
- package/dist/verdict/property-assertion.d.ts +191 -0
- package/dist/verdict/property-assertion.js +42 -0
- package/dist/verdict/security.js +16 -4
- package/dist/verdict/verdict-attribution.d.ts +52 -0
- package/dist/verdict/verdict-attribution.js +87 -0
- package/dist/verdict/verification-run.d.ts +98 -84
- package/dist/verdict/verification-run.js +8 -1
- package/dist/verdict/verified-constants.d.ts +18 -0
- package/dist/verdict/verified-constants.js +18 -0
- package/dist/wire/constants/constants.d.ts +108 -98
- package/dist/wire/constants/constants.js +116 -97
- package/dist/wire/constants/discovery.d.ts +25 -0
- package/dist/wire/constants/discovery.js +25 -0
- package/dist/wire/constants/event-types.d.ts +122 -0
- package/dist/wire/constants/event-types.js +121 -0
- package/dist/wire/constants/hud-controls.d.ts +19 -0
- package/dist/wire/constants/hud-controls.js +95 -0
- package/dist/wire/constants/hud-use.d.ts +27 -0
- package/dist/wire/constants/hud-use.js +24 -0
- package/dist/wire/constants/session-constants.d.ts +24 -0
- package/dist/wire/constants/session-constants.js +24 -0
- package/dist/wire/event-payloads.d.ts +70 -10
- package/dist/wire/event-payloads.js +20 -1
- package/dist/wire/messages.d.ts +90 -48
- package/dist/wire/messages.js +17 -0
- package/dist/wire/net.d.ts +42 -0
- package/dist/wire/net.js +48 -0
- package/dist/wire/snapshot-tree.d.ts +33 -0
- package/dist/wire/snapshot-tree.js +43 -0
- package/dist/wire/state-select.d.ts +2 -1
- package/dist/wire/state-select.js +56 -3
- package/dist/wire/toon.js +28 -7
- package/dist/wire/types.d.ts +91 -66
- package/dist/wire/types.js +23 -1
- package/package.json +5 -1
package/dist/onboarding.d.ts
CHANGED
|
@@ -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;
|
package/dist/realm/registry.d.ts
CHANGED
|
@@ -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;
|
package/dist/realm/registry.js
CHANGED
|
@@ -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 {
|
|
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": {
|
|
@@ -91,6 +91,9 @@
|
|
|
91
91
|
},
|
|
92
92
|
"urlRaw": {
|
|
93
93
|
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"requestShape": {
|
|
96
|
+
"type": "string"
|
|
94
97
|
}
|
|
95
98
|
},
|
|
96
99
|
"required": [
|
|
@@ -582,6 +585,39 @@
|
|
|
582
585
|
"additionalProperties": false,
|
|
583
586
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
584
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
|
+
},
|
|
585
621
|
"flow.recorded": {
|
|
586
622
|
"type": "object",
|
|
587
623
|
"properties": {
|
|
@@ -718,7 +754,8 @@
|
|
|
718
754
|
"end",
|
|
719
755
|
"message",
|
|
720
756
|
"replay",
|
|
721
|
-
"sync"
|
|
757
|
+
"sync",
|
|
758
|
+
"harness"
|
|
722
759
|
]
|
|
723
760
|
},
|
|
724
761
|
"text": {
|
|
@@ -786,6 +823,42 @@
|
|
|
786
823
|
],
|
|
787
824
|
"additionalProperties": false,
|
|
788
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#"
|
|
789
862
|
}
|
|
790
863
|
}
|
|
791
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": {
|
|
@@ -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: "
|
|
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?: "
|
|
258
|
+
mcpScope?: "project" | "user" | undefined;
|
|
259
259
|
}, {
|
|
260
260
|
text: string;
|
|
261
261
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
262
|
-
source: "
|
|
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?: "
|
|
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;
|
|
@@ -349,6 +349,19 @@ export const SessionSummarySchema = z.object({
|
|
|
349
349
|
* something was and the nudge did not fire — and only the second is a defect.
|
|
350
350
|
*/
|
|
351
351
|
updateOffered: z.string().max(32).optional(),
|
|
352
|
+
/**
|
|
353
|
+
* How people used the in-page HUD this window. All windowed, all absent when nobody touched it.
|
|
354
|
+
*
|
|
355
|
+
* `hudControls` counts presses per control id (a toggle as `id:on` / `id:off`), `hudViewMs` and
|
|
356
|
+
* `hudPanelMs` time how the HUD sat (bubble / collapsed / expanded) and which panel was showing,
|
|
357
|
+
* and `hudJourney` is the window's presses and view changes in order, cut at 60 with
|
|
358
|
+
* `hudJourneyCut`. Every key is a control id from core's closed list: names, never values.
|
|
359
|
+
*/
|
|
360
|
+
hudControls: z.record(z.number()).optional(),
|
|
361
|
+
hudViewMs: z.record(z.number()).optional(),
|
|
362
|
+
hudPanelMs: z.record(z.number()).optional(),
|
|
363
|
+
hudJourney: z.array(z.string().max(64)).max(60).optional(),
|
|
364
|
+
hudJourneyCut: z.literal(true).optional(),
|
|
352
365
|
/** Was this a clean shutdown, or a periodic flush of a still-running session? */
|
|
353
366
|
final: z.boolean(),
|
|
354
367
|
/**
|