@reticlehq/core 3.2.0 → 3.4.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 (91) hide show
  1. package/README.md +1 -1
  2. package/dist/artifacts/flow-composition.d.ts +3 -2
  3. package/dist/artifacts/flow-constants.d.ts +68 -2
  4. package/dist/artifacts/flow-constants.js +84 -2
  5. package/dist/artifacts/flow-expect-flat.d.ts +260 -0
  6. package/dist/artifacts/flow-expect-flat.js +284 -0
  7. package/dist/artifacts/flow-mutation-target.d.ts +0 -1
  8. package/dist/artifacts/flow-mutation-target.js +30 -2
  9. package/dist/artifacts/flow-step-tool.d.ts +2 -0
  10. package/dist/artifacts/flow-types.d.ts +1285 -1343
  11. package/dist/artifacts/flow-types.js +111 -140
  12. package/dist/artifacts/impact.d.ts +48 -20
  13. package/dist/artifacts/impact.js +11 -0
  14. package/dist/artifacts/journal.d.ts +34 -6
  15. package/dist/artifacts/journal.js +13 -0
  16. package/dist/hooks/hook-events.d.ts +18 -18
  17. package/dist/hud-entry.d.ts +9 -0
  18. package/dist/hud-entry.js +9 -0
  19. package/dist/identity/source-constants.d.ts +11 -0
  20. package/dist/identity/source-constants.js +11 -0
  21. package/dist/index.d.ts +9 -0
  22. package/dist/index.js +25 -1
  23. package/dist/onboarding.d.ts +2 -2
  24. package/dist/realm/registry.d.ts +0 -8
  25. package/dist/realm/registry.js +1 -11
  26. package/dist/registry/daemon-registry.d.ts +14 -4
  27. package/dist/registry/daemon-registry.js +20 -4
  28. package/dist/schema/event-message.json +3 -1
  29. package/dist/schema/event-payloads.json +72 -0
  30. package/dist/schema/event-type.json +3 -1
  31. package/dist/schema/reticle-event.json +3 -1
  32. package/dist/schema/reticle-message.json +3 -1
  33. package/dist/source-constants.cjs +1 -0
  34. package/dist/source-constants.d.cts +1 -0
  35. package/dist/telemetry-feedback.d.ts +6 -6
  36. package/dist/telemetry-refusal.d.ts +5 -4
  37. package/dist/telemetry-session.d.ts +25 -2
  38. package/dist/telemetry-session.js +13 -0
  39. package/dist/telemetry.d.ts +130 -102
  40. package/dist/verdict/compare-source.d.ts +80 -0
  41. package/dist/verdict/compare-source.js +93 -0
  42. package/dist/verdict/consequence.d.ts +12 -0
  43. package/dist/verdict/consequence.js +15 -0
  44. package/dist/verdict/instrumentation-gap.js +1 -1
  45. package/dist/verdict/intent.d.ts +24 -0
  46. package/dist/verdict/intent.js +66 -10
  47. package/dist/verdict/predicate-tree.d.ts +82 -0
  48. package/dist/verdict/predicate-tree.js +186 -0
  49. package/dist/verdict/predicate.d.ts +138 -0
  50. package/dist/verdict/predicate.js +430 -0
  51. package/dist/verdict/property-assertion.d.ts +191 -0
  52. package/dist/verdict/property-assertion.js +42 -0
  53. package/dist/verdict/security.js +16 -4
  54. package/dist/verdict/verdict-attribution.d.ts +52 -0
  55. package/dist/verdict/verdict-attribution.js +87 -0
  56. package/dist/verdict/verification-run.d.ts +330 -83
  57. package/dist/verdict/verification-run.js +44 -1
  58. package/dist/verdict/verified-constants.d.ts +9 -0
  59. package/dist/verdict/verified-constants.js +9 -0
  60. package/dist/wire/channel.d.ts +10 -0
  61. package/dist/wire/channel.js +25 -0
  62. package/dist/wire/constants/constants.d.ts +65 -102
  63. package/dist/wire/constants/constants.js +79 -101
  64. package/dist/wire/constants/discovery.d.ts +25 -0
  65. package/dist/wire/constants/discovery.js +25 -0
  66. package/dist/wire/constants/event-types.d.ts +122 -0
  67. package/dist/wire/constants/event-types.js +121 -0
  68. package/dist/wire/constants/hud-controls.d.ts +19 -0
  69. package/dist/wire/constants/hud-controls.js +95 -0
  70. package/dist/wire/constants/hud-use.d.ts +27 -0
  71. package/dist/wire/constants/hud-use.js +24 -0
  72. package/dist/wire/constants/session-constants.d.ts +10 -0
  73. package/dist/wire/constants/session-constants.js +10 -0
  74. package/dist/wire/event-payloads.d.ts +72 -13
  75. package/dist/wire/event-payloads.js +26 -4
  76. package/dist/wire/messages.d.ts +97 -56
  77. package/dist/wire/messages.js +17 -0
  78. package/dist/wire/net.d.ts +35 -0
  79. package/dist/wire/net.js +41 -0
  80. package/dist/wire/redaction.js +17 -0
  81. package/dist/wire/state-select.d.ts +2 -1
  82. package/dist/wire/state-select.js +56 -3
  83. package/dist/wire/toon.d.ts +1 -1
  84. package/dist/wire/toon.js +30 -8
  85. package/dist/wire/types.d.ts +119 -94
  86. package/dist/wire/types.js +23 -1
  87. package/dist/words/no-session-reason.d.ts +7 -0
  88. package/dist/words/no-session-reason.js +7 -0
  89. package/dist/words/notices.d.ts +7 -0
  90. package/dist/words/notices.js +9 -2
  91. package/package.json +7 -2
@@ -306,6 +306,7 @@ export declare const VerificationSchema: z.ZodObject<{
306
306
  * no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
307
307
  */
308
308
  reason: z.ZodOptional<z.ZodNativeEnum<{
309
+ readonly VERSION_SKEW: "version_skew";
309
310
  readonly CAPABILITY_ABSENT: "capability-absent";
310
311
  readonly INCONCLUSIVE: "inconclusive";
311
312
  readonly OBSERVATION_LOST: "observation_lost";
@@ -354,8 +355,8 @@ export declare const VerificationSchema: z.ZodObject<{
354
355
  via: string;
355
356
  passed: boolean;
356
357
  falseGreenCaught: boolean;
357
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
358
358
  durationMs?: number | undefined;
359
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
359
360
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
360
361
  driven?: "harness" | undefined;
361
362
  browser?: string | undefined;
@@ -365,8 +366,8 @@ export declare const VerificationSchema: z.ZodObject<{
365
366
  via: string;
366
367
  passed: boolean;
367
368
  falseGreenCaught: boolean;
368
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
369
369
  durationMs?: number | undefined;
370
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
370
371
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
371
372
  driven?: "harness" | undefined;
372
373
  browser?: string | undefined;
@@ -389,14 +390,14 @@ export declare const VersionChangeSchema: z.ZodObject<{
389
390
  /** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
390
391
  direction: z.ZodString;
391
392
  }, "strip", z.ZodTypeAny, {
392
- direction: string;
393
393
  from: string;
394
394
  to: string;
395
+ direction: string;
395
396
  nudged?: boolean | undefined;
396
397
  }, {
397
- direction: string;
398
398
  from: string;
399
399
  to: string;
400
+ direction: string;
400
401
  nudged?: boolean | undefined;
401
402
  }>;
402
403
  export type VersionChange = z.infer<typeof VersionChangeSchema>;
@@ -698,7 +699,7 @@ export declare const BugFoundSchema: z.ZodObject<{
698
699
  }, "strip", z.ZodTypeAny, {
699
700
  kind: string;
700
701
  source: "replay" | "contradiction" | "crawl" | "assertion";
701
- attribution: "reticle" | "app" | "request" | "unclassified";
702
+ attribution: "reticle" | "request" | "app" | "unclassified";
702
703
  falseGreen: boolean;
703
704
  repeat: boolean;
704
705
  tool?: string | undefined;
@@ -706,7 +707,7 @@ export declare const BugFoundSchema: z.ZodObject<{
706
707
  }, {
707
708
  kind: string;
708
709
  source: "replay" | "contradiction" | "crawl" | "assertion";
709
- attribution: "reticle" | "app" | "request" | "unclassified";
710
+ attribution: "reticle" | "request" | "app" | "unclassified";
710
711
  falseGreen: boolean;
711
712
  repeat: boolean;
712
713
  tool?: string | undefined;
@@ -1292,13 +1293,13 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1292
1293
  }, "strip", z.ZodTypeAny, {
1293
1294
  text: string;
1294
1295
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
1295
- source: "agent" | "human";
1296
+ source: "human" | "agent";
1296
1297
  impact?: string | undefined;
1298
+ model?: string | undefined;
1297
1299
  trace?: string | undefined;
1298
1300
  rating?: number | undefined;
1299
1301
  need?: string | undefined;
1300
1302
  currentApproach?: string | undefined;
1301
- model?: string | undefined;
1302
1303
  clientVersion?: string | undefined;
1303
1304
  stack?: string | undefined;
1304
1305
  stackMajor?: number | undefined;
@@ -1306,17 +1307,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1306
1307
  engine?: "blink" | "gecko" | "webkit" | undefined;
1307
1308
  driver?: "cdp" | "sdk" | undefined;
1308
1309
  client?: string | undefined;
1309
- mcpScope?: "user" | "project" | undefined;
1310
+ mcpScope?: "project" | "user" | undefined;
1310
1311
  }, {
1311
1312
  text: string;
1312
1313
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
1313
- source: "agent" | "human";
1314
+ source: "human" | "agent";
1314
1315
  impact?: string | undefined;
1316
+ model?: string | undefined;
1315
1317
  trace?: string | undefined;
1316
1318
  rating?: number | undefined;
1317
1319
  need?: string | undefined;
1318
1320
  currentApproach?: string | undefined;
1319
- model?: string | undefined;
1320
1321
  clientVersion?: string | undefined;
1321
1322
  stack?: string | undefined;
1322
1323
  stackMajor?: number | undefined;
@@ -1324,7 +1325,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1324
1325
  engine?: "blink" | "gecko" | "webkit" | undefined;
1325
1326
  driver?: "cdp" | "sdk" | undefined;
1326
1327
  client?: string | undefined;
1327
- mcpScope?: "user" | "project" | undefined;
1328
+ mcpScope?: "project" | "user" | undefined;
1328
1329
  }>>;
1329
1330
  /** Human or agent. Absent on events that are neither (a crash, a version change). */
1330
1331
  actor: z.ZodOptional<z.ZodNativeEnum<{
@@ -1451,6 +1452,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1451
1452
  endedWithVerdict: z.ZodOptional<z.ZodBoolean>;
1452
1453
  updateNudged: z.ZodOptional<z.ZodBoolean>;
1453
1454
  updateOffered: z.ZodOptional<z.ZodString>;
1455
+ hudControls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1456
+ hudViewMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1457
+ hudPanelMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1458
+ hudJourney: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1459
+ hudJourneyCut: z.ZodOptional<z.ZodLiteral<true>>;
1454
1460
  final: z.ZodBoolean;
1455
1461
  exit: z.ZodOptional<z.ZodEnum<["idle", "signal", "unknown"]>>;
1456
1462
  }, "strip", z.ZodTypeAny, {
@@ -1517,6 +1523,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1517
1523
  endedWithVerdict?: boolean | undefined;
1518
1524
  updateNudged?: boolean | undefined;
1519
1525
  updateOffered?: string | undefined;
1526
+ hudControls?: Record<string, number> | undefined;
1527
+ hudViewMs?: Record<string, number> | undefined;
1528
+ hudPanelMs?: Record<string, number> | undefined;
1529
+ hudJourney?: string[] | undefined;
1530
+ hudJourneyCut?: true | undefined;
1520
1531
  exit?: "signal" | "idle" | "unknown" | undefined;
1521
1532
  }, {
1522
1533
  durationMs: number;
@@ -1582,6 +1593,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1582
1593
  endedWithVerdict?: boolean | undefined;
1583
1594
  updateNudged?: boolean | undefined;
1584
1595
  updateOffered?: string | undefined;
1596
+ hudControls?: Record<string, number> | undefined;
1597
+ hudViewMs?: Record<string, number> | undefined;
1598
+ hudPanelMs?: Record<string, number> | undefined;
1599
+ hudJourney?: string[] | undefined;
1600
+ hudJourneyCut?: true | undefined;
1585
1601
  exit?: "signal" | "idle" | "unknown" | undefined;
1586
1602
  }>>;
1587
1603
  /** Only on `project_profiled`: the shape and depth-of-use of the project. */
@@ -1641,9 +1657,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1641
1657
  featureDepth: number;
1642
1658
  stack?: string | undefined;
1643
1659
  stackMajor?: number | undefined;
1660
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1644
1661
  stackSource?: "cwd" | "workspace" | undefined;
1645
1662
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
1646
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1647
1663
  monorepo?: boolean | undefined;
1648
1664
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
1649
1665
  ageWeeks?: number | undefined;
@@ -1661,9 +1677,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1661
1677
  featureDepth: number;
1662
1678
  stack?: string | undefined;
1663
1679
  stackMajor?: number | undefined;
1680
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1664
1681
  stackSource?: "cwd" | "workspace" | undefined;
1665
1682
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
1666
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1667
1683
  monorepo?: boolean | undefined;
1668
1684
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
1669
1685
  ageWeeks?: number | undefined;
@@ -1734,6 +1750,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1734
1750
  * no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
1735
1751
  */
1736
1752
  reason: z.ZodOptional<z.ZodNativeEnum<{
1753
+ readonly VERSION_SKEW: "version_skew";
1737
1754
  readonly CAPABILITY_ABSENT: "capability-absent";
1738
1755
  readonly INCONCLUSIVE: "inconclusive";
1739
1756
  readonly OBSERVATION_LOST: "observation_lost";
@@ -1782,8 +1799,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1782
1799
  via: string;
1783
1800
  passed: boolean;
1784
1801
  falseGreenCaught: boolean;
1785
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1786
1802
  durationMs?: number | undefined;
1803
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1787
1804
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1788
1805
  driven?: "harness" | undefined;
1789
1806
  browser?: string | undefined;
@@ -1793,8 +1810,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1793
1810
  via: string;
1794
1811
  passed: boolean;
1795
1812
  falseGreenCaught: boolean;
1796
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1797
1813
  durationMs?: number | undefined;
1814
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1798
1815
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1799
1816
  driven?: "harness" | undefined;
1800
1817
  browser?: string | undefined;
@@ -1816,14 +1833,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1816
1833
  /** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
1817
1834
  direction: z.ZodString;
1818
1835
  }, "strip", z.ZodTypeAny, {
1819
- direction: string;
1820
1836
  from: string;
1821
1837
  to: string;
1838
+ direction: string;
1822
1839
  nudged?: boolean | undefined;
1823
1840
  }, {
1824
- direction: string;
1825
1841
  from: string;
1826
1842
  to: string;
1843
+ direction: string;
1827
1844
  nudged?: boolean | undefined;
1828
1845
  }>>;
1829
1846
  /** Only on `runtime_crashed`. */
@@ -2096,16 +2113,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2096
2113
  stack: z.ZodOptional<z.ZodString>;
2097
2114
  unattended: z.ZodOptional<z.ZodBoolean>;
2098
2115
  }, "strip", z.ZodTypeAny, {
2099
- status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2100
2116
  step: string;
2117
+ status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2101
2118
  phase: "install" | "onboard" | "first_run";
2102
2119
  reason?: string | undefined;
2103
2120
  stack?: string | undefined;
2104
2121
  elapsedMs?: number | undefined;
2105
2122
  unattended?: boolean | undefined;
2106
2123
  }, {
2107
- status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2108
2124
  step: string;
2125
+ status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2109
2126
  phase: "install" | "onboard" | "first_run";
2110
2127
  reason?: string | undefined;
2111
2128
  stack?: string | undefined;
@@ -2197,7 +2214,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2197
2214
  }, "strip", z.ZodTypeAny, {
2198
2215
  kind: string;
2199
2216
  source: "replay" | "contradiction" | "crawl" | "assertion";
2200
- attribution: "reticle" | "app" | "request" | "unclassified";
2217
+ attribution: "reticle" | "request" | "app" | "unclassified";
2201
2218
  falseGreen: boolean;
2202
2219
  repeat: boolean;
2203
2220
  tool?: string | undefined;
@@ -2205,7 +2222,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2205
2222
  }, {
2206
2223
  kind: string;
2207
2224
  source: "replay" | "contradiction" | "crawl" | "assertion";
2208
- attribution: "reticle" | "app" | "request" | "unclassified";
2225
+ attribution: "reticle" | "request" | "app" | "unclassified";
2209
2226
  falseGreen: boolean;
2210
2227
  repeat: boolean;
2211
2228
  tool?: string | undefined;
@@ -2226,6 +2243,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2226
2243
  readonly AUTH_REFUSED: "auth_refused";
2227
2244
  readonly LEASE_EXPIRED: "lease_expired";
2228
2245
  readonly TAB_GONE: "tab_gone";
2246
+ readonly ROUTE_SERVER_ERROR: "route_server_error";
2229
2247
  readonly APP_NOT_REOPENED: "app_not_reopened";
2230
2248
  readonly CONFIG_ELSEWHERE: "config_elsewhere";
2231
2249
  readonly NO_LISTENER_NO_CONFIG: "no_listener_no_config";
@@ -2235,15 +2253,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2235
2253
  }>>;
2236
2254
  retried: z.ZodBoolean;
2237
2255
  }, "strip", z.ZodTypeAny, {
2238
- tool: string;
2239
2256
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2257
+ tool: string;
2240
2258
  retried: boolean;
2241
- 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;
2259
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2242
2260
  }, {
2243
- tool: string;
2244
2261
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2262
+ tool: string;
2245
2263
  retried: boolean;
2246
- 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;
2264
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2247
2265
  }>>;
2248
2266
  /** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
2249
2267
  outage: z.ZodOptional<z.ZodObject<{
@@ -2386,24 +2404,32 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2386
2404
  licenseKeyPresent: z.ZodOptional<z.ZodBoolean>;
2387
2405
  }, "strip", z.ZodTypeAny, {
2388
2406
  event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "session_progress" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "onboarding_step" | "bug_found" | "tool_refused";
2389
- version: string;
2390
2407
  ci: boolean;
2408
+ version: string;
2391
2409
  v: 3;
2392
2410
  anonymousId: string;
2393
2411
  ts: number;
2394
2412
  os: string;
2395
- command?: string | undefined;
2396
- projectId?: string | undefined;
2397
- sessionId?: string | undefined;
2398
- bug?: {
2399
- kind: string;
2400
- source: "replay" | "contradiction" | "crawl" | "assertion";
2401
- attribution: "reticle" | "app" | "request" | "unclassified";
2402
- falseGreen: boolean;
2403
- repeat: boolean;
2404
- tool?: string | undefined;
2405
- fingerprint?: string | undefined;
2413
+ feedback?: {
2414
+ text: string;
2415
+ kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
2416
+ source: "human" | "agent";
2417
+ impact?: string | undefined;
2418
+ model?: string | undefined;
2419
+ trace?: string | undefined;
2420
+ rating?: number | undefined;
2421
+ need?: string | undefined;
2422
+ currentApproach?: string | undefined;
2423
+ clientVersion?: string | undefined;
2424
+ stack?: string | undefined;
2425
+ stackMajor?: number | undefined;
2426
+ runtime?: "web" | "electron" | "tauri" | undefined;
2427
+ engine?: "blink" | "gecko" | "webkit" | undefined;
2428
+ driver?: "cdp" | "sdk" | undefined;
2429
+ client?: string | undefined;
2430
+ mcpScope?: "project" | "user" | undefined;
2406
2431
  } | undefined;
2432
+ command?: string | undefined;
2407
2433
  project?: {
2408
2434
  git: "none" | "local_only" | "remote";
2409
2435
  flowCount: number;
@@ -2416,15 +2442,26 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2416
2442
  featureDepth: number;
2417
2443
  stack?: string | undefined;
2418
2444
  stackMajor?: number | undefined;
2445
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
2419
2446
  stackSource?: "cwd" | "workspace" | undefined;
2420
2447
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
2421
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
2422
2448
  monorepo?: boolean | undefined;
2423
2449
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
2424
2450
  ageWeeks?: number | undefined;
2425
2451
  initialized?: boolean | undefined;
2426
2452
  appConnectedBefore?: boolean | undefined;
2427
2453
  } | undefined;
2454
+ projectId?: string | undefined;
2455
+ sessionId?: string | undefined;
2456
+ bug?: {
2457
+ kind: string;
2458
+ source: "replay" | "contradiction" | "crawl" | "assertion";
2459
+ attribution: "reticle" | "request" | "app" | "unclassified";
2460
+ falseGreen: boolean;
2461
+ repeat: boolean;
2462
+ tool?: string | undefined;
2463
+ fingerprint?: string | undefined;
2464
+ } | undefined;
2428
2465
  session?: {
2429
2466
  durationMs: number;
2430
2467
  toolCalls: number;
@@ -2489,49 +2526,35 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2489
2526
  endedWithVerdict?: boolean | undefined;
2490
2527
  updateNudged?: boolean | undefined;
2491
2528
  updateOffered?: string | undefined;
2529
+ hudControls?: Record<string, number> | undefined;
2530
+ hudViewMs?: Record<string, number> | undefined;
2531
+ hudPanelMs?: Record<string, number> | undefined;
2532
+ hudJourney?: string[] | undefined;
2533
+ hudJourneyCut?: true | undefined;
2492
2534
  exit?: "signal" | "idle" | "unknown" | undefined;
2493
2535
  } | undefined;
2494
2536
  licenseKeyPresent?: boolean | undefined;
2495
2537
  automation?: "container" | "hosted_workspace" | "no_tty" | undefined;
2496
2538
  projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
2497
2539
  tzOffsetMin?: number | undefined;
2498
- feedback?: {
2499
- text: string;
2500
- kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
2501
- source: "agent" | "human";
2502
- impact?: string | undefined;
2503
- trace?: string | undefined;
2504
- rating?: number | undefined;
2505
- need?: string | undefined;
2506
- currentApproach?: string | undefined;
2507
- model?: string | undefined;
2508
- clientVersion?: string | undefined;
2509
- stack?: string | undefined;
2510
- stackMajor?: number | undefined;
2511
- runtime?: "web" | "electron" | "tauri" | undefined;
2512
- engine?: "blink" | "gecko" | "webkit" | undefined;
2513
- driver?: "cdp" | "sdk" | undefined;
2514
- client?: string | undefined;
2515
- mcpScope?: "user" | "project" | undefined;
2516
- } | undefined;
2517
- actor?: "agent" | "human" | undefined;
2540
+ actor?: "human" | "agent" | undefined;
2518
2541
  flags?: string[] | undefined;
2519
2542
  verification?: {
2520
2543
  verified: string;
2521
2544
  via: string;
2522
2545
  passed: boolean;
2523
2546
  falseGreenCaught: boolean;
2524
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2525
2547
  durationMs?: number | undefined;
2548
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2526
2549
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
2527
2550
  driven?: "harness" | undefined;
2528
2551
  browser?: string | undefined;
2529
2552
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
2530
2553
  } | undefined;
2531
2554
  versionChange?: {
2532
- direction: string;
2533
2555
  from: string;
2534
2556
  to: string;
2557
+ direction: string;
2535
2558
  nudged?: boolean | undefined;
2536
2559
  } | undefined;
2537
2560
  crash?: {
@@ -2577,8 +2600,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2577
2600
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
2578
2601
  } | undefined;
2579
2602
  onboarding?: {
2580
- status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2581
2603
  step: string;
2604
+ status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2582
2605
  phase: "install" | "onboard" | "first_run";
2583
2606
  reason?: string | undefined;
2584
2607
  stack?: string | undefined;
@@ -2586,10 +2609,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2586
2609
  unattended?: boolean | undefined;
2587
2610
  } | undefined;
2588
2611
  refusal?: {
2589
- tool: string;
2590
2612
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2613
+ tool: string;
2591
2614
  retried: boolean;
2592
- 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;
2615
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2593
2616
  } | undefined;
2594
2617
  outage?: {
2595
2618
  reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
@@ -2607,24 +2630,32 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2607
2630
  licenseStatus?: "active" | "missing" | "invalid" | "expired" | "eval" | undefined;
2608
2631
  }, {
2609
2632
  event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "session_progress" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "onboarding_step" | "bug_found" | "tool_refused";
2610
- version: string;
2611
2633
  ci: boolean;
2634
+ version: string;
2612
2635
  v: 3;
2613
2636
  anonymousId: string;
2614
2637
  ts: number;
2615
2638
  os: string;
2616
- command?: string | undefined;
2617
- projectId?: string | undefined;
2618
- sessionId?: string | undefined;
2619
- bug?: {
2620
- kind: string;
2621
- source: "replay" | "contradiction" | "crawl" | "assertion";
2622
- attribution: "reticle" | "app" | "request" | "unclassified";
2623
- falseGreen: boolean;
2624
- repeat: boolean;
2625
- tool?: string | undefined;
2626
- fingerprint?: string | undefined;
2639
+ feedback?: {
2640
+ text: string;
2641
+ kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
2642
+ source: "human" | "agent";
2643
+ impact?: string | undefined;
2644
+ model?: string | undefined;
2645
+ trace?: string | undefined;
2646
+ rating?: number | undefined;
2647
+ need?: string | undefined;
2648
+ currentApproach?: string | undefined;
2649
+ clientVersion?: string | undefined;
2650
+ stack?: string | undefined;
2651
+ stackMajor?: number | undefined;
2652
+ runtime?: "web" | "electron" | "tauri" | undefined;
2653
+ engine?: "blink" | "gecko" | "webkit" | undefined;
2654
+ driver?: "cdp" | "sdk" | undefined;
2655
+ client?: string | undefined;
2656
+ mcpScope?: "project" | "user" | undefined;
2627
2657
  } | undefined;
2658
+ command?: string | undefined;
2628
2659
  project?: {
2629
2660
  git: "none" | "local_only" | "remote";
2630
2661
  flowCount: number;
@@ -2637,15 +2668,26 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2637
2668
  featureDepth: number;
2638
2669
  stack?: string | undefined;
2639
2670
  stackMajor?: number | undefined;
2671
+ size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
2640
2672
  stackSource?: "cwd" | "workspace" | undefined;
2641
2673
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
2642
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
2643
2674
  monorepo?: boolean | undefined;
2644
2675
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
2645
2676
  ageWeeks?: number | undefined;
2646
2677
  initialized?: boolean | undefined;
2647
2678
  appConnectedBefore?: boolean | undefined;
2648
2679
  } | undefined;
2680
+ projectId?: string | undefined;
2681
+ sessionId?: string | undefined;
2682
+ bug?: {
2683
+ kind: string;
2684
+ source: "replay" | "contradiction" | "crawl" | "assertion";
2685
+ attribution: "reticle" | "request" | "app" | "unclassified";
2686
+ falseGreen: boolean;
2687
+ repeat: boolean;
2688
+ tool?: string | undefined;
2689
+ fingerprint?: string | undefined;
2690
+ } | undefined;
2649
2691
  session?: {
2650
2692
  durationMs: number;
2651
2693
  toolCalls: number;
@@ -2710,49 +2752,35 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2710
2752
  endedWithVerdict?: boolean | undefined;
2711
2753
  updateNudged?: boolean | undefined;
2712
2754
  updateOffered?: string | undefined;
2755
+ hudControls?: Record<string, number> | undefined;
2756
+ hudViewMs?: Record<string, number> | undefined;
2757
+ hudPanelMs?: Record<string, number> | undefined;
2758
+ hudJourney?: string[] | undefined;
2759
+ hudJourneyCut?: true | undefined;
2713
2760
  exit?: "signal" | "idle" | "unknown" | undefined;
2714
2761
  } | undefined;
2715
2762
  licenseKeyPresent?: boolean | undefined;
2716
2763
  automation?: "container" | "hosted_workspace" | "no_tty" | undefined;
2717
2764
  projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
2718
2765
  tzOffsetMin?: number | undefined;
2719
- feedback?: {
2720
- text: string;
2721
- kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
2722
- source: "agent" | "human";
2723
- impact?: string | undefined;
2724
- trace?: string | undefined;
2725
- rating?: number | undefined;
2726
- need?: string | undefined;
2727
- currentApproach?: string | undefined;
2728
- model?: string | undefined;
2729
- clientVersion?: string | undefined;
2730
- stack?: string | undefined;
2731
- stackMajor?: number | undefined;
2732
- runtime?: "web" | "electron" | "tauri" | undefined;
2733
- engine?: "blink" | "gecko" | "webkit" | undefined;
2734
- driver?: "cdp" | "sdk" | undefined;
2735
- client?: string | undefined;
2736
- mcpScope?: "user" | "project" | undefined;
2737
- } | undefined;
2738
- actor?: "agent" | "human" | undefined;
2766
+ actor?: "human" | "agent" | undefined;
2739
2767
  flags?: string[] | undefined;
2740
2768
  verification?: {
2741
2769
  verified: string;
2742
2770
  via: string;
2743
2771
  passed: boolean;
2744
2772
  falseGreenCaught: boolean;
2745
- reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2746
2773
  durationMs?: number | undefined;
2774
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2747
2775
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
2748
2776
  driven?: "harness" | undefined;
2749
2777
  browser?: string | undefined;
2750
2778
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
2751
2779
  } | undefined;
2752
2780
  versionChange?: {
2753
- direction: string;
2754
2781
  from: string;
2755
2782
  to: string;
2783
+ direction: string;
2756
2784
  nudged?: boolean | undefined;
2757
2785
  } | undefined;
2758
2786
  crash?: {
@@ -2798,8 +2826,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2798
2826
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
2799
2827
  } | undefined;
2800
2828
  onboarding?: {
2801
- status: "skipped" | "started" | "completed" | "failed" | "abandoned";
2802
2829
  step: string;
2830
+ status: "skipped" | "completed" | "started" | "failed" | "abandoned";
2803
2831
  phase: "install" | "onboard" | "first_run";
2804
2832
  reason?: string | undefined;
2805
2833
  stack?: string | undefined;
@@ -2807,10 +2835,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2807
2835
  unattended?: boolean | undefined;
2808
2836
  } | undefined;
2809
2837
  refusal?: {
2810
- tool: string;
2811
2838
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2839
+ tool: string;
2812
2840
  retried: boolean;
2813
- 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;
2841
+ noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2814
2842
  } | undefined;
2815
2843
  outage?: {
2816
2844
  reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";