@reticlehq/core 3.7.0 → 3.8.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 (108) hide show
  1. package/dist/activation-entry.d.ts +9 -0
  2. package/dist/activation-entry.js +9 -0
  3. package/dist/artifacts/drive-script.d.ts +64 -64
  4. package/dist/artifacts/flow-constants.d.ts +15 -0
  5. package/dist/artifacts/flow-constants.js +15 -0
  6. package/dist/artifacts/flow-expect-flat.d.ts +8 -8
  7. package/dist/artifacts/flow-results.d.ts +11 -0
  8. package/dist/artifacts/flow-types.d.ts +164 -118
  9. package/dist/artifacts/flow-types.js +12 -0
  10. package/dist/artifacts/harness-credits.d.ts +6 -3
  11. package/dist/artifacts/harness-credits.js +9 -6
  12. package/dist/artifacts/harness-map.d.ts +6 -6
  13. package/dist/artifacts/impact.d.ts +77 -80
  14. package/dist/artifacts/impact.js +34 -17
  15. package/dist/artifacts/journal.d.ts +25 -6
  16. package/dist/artifacts/journal.js +13 -0
  17. package/dist/artifacts/prompt-context.d.ts +12 -0
  18. package/dist/artifacts/prompt-context.js +14 -3
  19. package/dist/graph/app-graph.d.ts +137 -0
  20. package/dist/graph/app-graph.js +498 -0
  21. package/dist/hooks/hook-events.d.ts +22 -22
  22. package/dist/hud-entry.js +1 -1
  23. package/dist/identity/checkout.d.ts +41 -0
  24. package/dist/identity/checkout.js +118 -0
  25. package/dist/identity/state-dir.d.ts +23 -0
  26. package/dist/identity/state-dir.js +43 -0
  27. package/dist/index.d.ts +10 -0
  28. package/dist/index.js +10 -0
  29. package/dist/onboarding.d.ts +22 -1
  30. package/dist/onboarding.js +19 -0
  31. package/dist/registry/dev-server-registry.d.ts +2 -2
  32. package/dist/schema/event-message.json +3 -1
  33. package/dist/schema/event-payloads.json +116 -1
  34. package/dist/schema/event-type.json +3 -1
  35. package/dist/schema/hello-message.json +21 -0
  36. package/dist/schema/reticle-event.json +3 -1
  37. package/dist/schema/reticle-message.json +24 -1
  38. package/dist/telemetry-bug.d.ts +6 -6
  39. package/dist/telemetry-entry.d.ts +1 -1
  40. package/dist/telemetry-entry.js +1 -1
  41. package/dist/telemetry-feedback.d.ts +14 -0
  42. package/dist/telemetry-feedback.js +19 -0
  43. package/dist/telemetry-refusal.d.ts +2 -2
  44. package/dist/telemetry-session.d.ts +23 -8
  45. package/dist/telemetry-session.js +15 -4
  46. package/dist/telemetry-signals.d.ts +227 -9
  47. package/dist/telemetry-signals.js +88 -1
  48. package/dist/telemetry.d.ts +379 -72
  49. package/dist/telemetry.js +71 -5
  50. package/dist/verdict/check-sentence.d.ts +34 -0
  51. package/dist/verdict/check-sentence.js +228 -0
  52. package/dist/verdict/consequence.d.ts +15 -0
  53. package/dist/verdict/consequence.js +11 -0
  54. package/dist/verdict/findings.d.ts +10 -0
  55. package/dist/verdict/findings.js +13 -0
  56. package/dist/verdict/instrumentation-coverage.d.ts +3 -34
  57. package/dist/verdict/instrumentation-coverage.js +14 -58
  58. package/dist/verdict/instrumentation-gap.d.ts +79 -0
  59. package/dist/verdict/instrumentation-gap.js +64 -0
  60. package/dist/verdict/predicate-tree.d.ts +2 -0
  61. package/dist/verdict/predicate-tree.js +16 -0
  62. package/dist/verdict/predicate.d.ts +2 -1
  63. package/dist/verdict/predicate.js +103 -12
  64. package/dist/verdict/property-assertion.d.ts +2 -2
  65. package/dist/verdict/run-report.d.ts +166 -0
  66. package/dist/verdict/run-report.js +53 -0
  67. package/dist/verdict/security.d.ts +36 -2
  68. package/dist/verdict/security.js +94 -14
  69. package/dist/verdict/verification-run.d.ts +95 -38
  70. package/dist/verdict/verification-run.js +33 -2
  71. package/dist/verdict/verify-progress.d.ts +6 -6
  72. package/dist/wire/constants/constants.d.ts +56 -141
  73. package/dist/wire/constants/constants.js +64 -144
  74. package/dist/wire/constants/discovery.d.ts +4 -4
  75. package/dist/wire/constants/discovery.js +4 -4
  76. package/dist/wire/constants/event-types.d.ts +35 -1
  77. package/dist/wire/constants/event-types.js +33 -1
  78. package/dist/wire/constants/hud-controls.js +0 -2
  79. package/dist/wire/constants/hud-use.d.ts +4 -0
  80. package/dist/wire/constants/hud-use.js +4 -0
  81. package/dist/wire/constants/mcp-wire.d.ts +16 -0
  82. package/dist/wire/constants/mcp-wire.js +16 -0
  83. package/dist/wire/constants/response-body-reason.d.ts +19 -0
  84. package/dist/wire/constants/response-body-reason.js +18 -0
  85. package/dist/wire/constants/reticle-env.d.ts +138 -0
  86. package/dist/wire/constants/reticle-env.js +138 -0
  87. package/dist/wire/constants/session-constants.d.ts +11 -0
  88. package/dist/wire/constants/session-constants.js +11 -0
  89. package/dist/wire/event-payloads.d.ts +150 -36
  90. package/dist/wire/event-payloads.js +83 -16
  91. package/dist/wire/messages.d.ts +102 -36
  92. package/dist/wire/messages.js +16 -0
  93. package/dist/wire/narrow.d.ts +6 -0
  94. package/dist/wire/narrow.js +26 -0
  95. package/dist/wire/next-step.d.ts +90 -0
  96. package/dist/wire/next-step.js +37 -0
  97. package/dist/wire/platform-link.d.ts +7 -0
  98. package/dist/wire/platform-link.js +12 -6
  99. package/dist/wire/production/activation-ticket.d.ts +64 -0
  100. package/dist/wire/production/activation-ticket.js +148 -0
  101. package/dist/wire/production/hello-mode.d.ts +35 -0
  102. package/dist/wire/production/hello-mode.js +32 -0
  103. package/dist/wire/production/production-policy.d.ts +138 -0
  104. package/dist/wire/production/production-policy.js +133 -0
  105. package/dist/wire/tool-names.d.ts +2 -0
  106. package/dist/wire/tool-names.js +2 -0
  107. package/dist/wire/types.d.ts +73 -48
  108. package/package.json +5 -1
@@ -15,12 +15,12 @@
15
15
  * `z.nativeEnum`, timestamps are epoch-ms NUMBERS, no `any`.
16
16
  */
17
17
  import { z } from 'zod';
18
- import { OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep } from './onboarding.js';
18
+ import { NextStepOffered, OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep } from './onboarding.js';
19
19
  /**
20
20
  * The setup funnel's vocabulary. It is defined in `onboarding.ts`, which is its own subject, and
21
21
  * re-exported here so every `@reticlehq/core/telemetry` import reaches it.
22
22
  */
23
- export { OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep, };
23
+ export { NextStepOffered, OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep, };
24
24
  export * from './telemetry-bug.js';
25
25
  /** Bump when the event shape changes so the analytics side can segment old senders. */
26
26
  export declare const TELEMETRY_EVENT_VERSION = 3;
@@ -64,7 +64,7 @@ export declare const TelemetryEventKind: {
64
64
  * tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
65
65
  * an exit's name therefore describes active sessions at one end and abandoned ones at the other.
66
66
  *
67
- * Count sessions with DAEMON_STOPPED. Sum work with both.
67
+ * Count daemon runs with DAEMON_STARTED, clean exits with DAEMON_STOPPED. Sum work with both.
68
68
  */
69
69
  readonly SESSION_PROGRESS: "session_progress";
70
70
  /**
@@ -78,7 +78,10 @@ export declare const TelemetryEventKind: {
78
78
  * between a retention problem and an activation problem. Once per daemon start, so it is cheap.
79
79
  */
80
80
  readonly PROJECT_PROFILED: "project_profiled";
81
- /** `reticle update` or `reticle rollback` moved the installed version. Carries from → to. */
81
+ /**
82
+ * A start found a version that differs from the last start on this machine, or `reticle update` /
83
+ * `reticle rollback` moved it. Carries from → to.
84
+ */
82
85
  readonly VERSION_CHANGED: "version_changed";
83
86
  /** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
84
87
  readonly RUNTIME_CRASHED: "runtime_crashed";
@@ -141,6 +144,17 @@ export declare const TelemetryEventKind: {
141
144
  * that decides whether this is fixed.
142
145
  */
143
146
  readonly MCP_CONNECTION_LOST: "mcp_connection_lost";
147
+ /**
148
+ * The MCP proxy process ended. The agent lost its tools until the client starts a new one.
149
+ *
150
+ * `mcp_connection_lost` cannot see this: the stream to the daemon can be healthy when the proxy
151
+ * leaves. Sent even when the proxy has no other counts to report. See `ProxyExitSchema`.
152
+ */
153
+ readonly MCP_PROXY_EXITED: "mcp_proxy_exited";
154
+ /** A daemon start found the pidfile of a daemon that died without a clean stop. */
155
+ readonly DAEMON_DIED_UNCLEAN: "daemon_died_unclean";
156
+ /** The proxy found the daemon port held by a stranger or by another project, and did not use it. */
157
+ readonly WAKE_REFUSED: "wake_refused";
144
158
  /**
145
159
  * `reticle init` finished. The onboarding funnel had no instrumentation at all, so a setup that
146
160
  * failed on a missing dependency was indistinguishable from a user who never tried.
@@ -361,14 +375,17 @@ export declare const VerificationSchema: z.ZodObject<{
361
375
  /** A model inside the daemon drove this, on the user's behalf. */
362
376
  readonly HARNESS: "harness";
363
377
  }>>;
378
+ /** The page SDK version from its HELLO: our own release number, or `other`. Absent if unsaid. */
379
+ sdkVersion: z.ZodOptional<z.ZodString>;
364
380
  }, "strip", z.ZodTypeAny, {
365
381
  verified: string;
366
382
  passed: boolean;
367
383
  via: string;
368
384
  falseGreenCaught: boolean;
385
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
369
386
  browser?: string | undefined;
370
387
  durationMs?: number | undefined;
371
- reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
388
+ sdkVersion?: string | undefined;
372
389
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
373
390
  driven?: "harness" | undefined;
374
391
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
@@ -377,9 +394,10 @@ export declare const VerificationSchema: z.ZodObject<{
377
394
  passed: boolean;
378
395
  via: string;
379
396
  falseGreenCaught: boolean;
397
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
380
398
  browser?: string | undefined;
381
399
  durationMs?: number | undefined;
382
- reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
400
+ sdkVersion?: string | undefined;
383
401
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
384
402
  driven?: "harness" | undefined;
385
403
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
@@ -599,14 +617,18 @@ export declare const McpConnectionSchema: z.ZodObject<{
599
617
  * OPTIONAL because an older sender has none. Absent means not measured, never `false`.
600
618
  */
601
619
  appConnected: z.ZodOptional<z.ZodBoolean>;
620
+ /** The id of the proxy process that attached. Its outages carry the same id. */
621
+ proxyId: z.ZodOptional<z.ZodString>;
602
622
  }, "strip", z.ZodTypeAny, {
603
623
  reconnect: boolean;
604
624
  daemonAgeMs: number;
625
+ proxyId?: string | undefined;
605
626
  client?: string | undefined;
606
627
  appConnected?: boolean | undefined;
607
628
  }, {
608
629
  reconnect: boolean;
609
630
  daemonAgeMs: number;
631
+ proxyId?: string | undefined;
610
632
  client?: string | undefined;
611
633
  appConnected?: boolean | undefined;
612
634
  }>;
@@ -685,6 +707,11 @@ export declare const OutageReason: {
685
707
  readonly SSE_CLOSED: "sse_closed";
686
708
  /** A reconnect attempt could not reach the daemon at all. */
687
709
  readonly CONNECT_ERROR: "connect_error";
710
+ /**
711
+ * A stream that was already serving was reset. The request saw the error before the response
712
+ * closed, so this used to read as `connect_error`, which says the daemon was never reached.
713
+ */
714
+ readonly SSE_RESET: "sse_reset";
688
715
  /** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
689
716
  readonly OTHER: "other";
690
717
  };
@@ -733,6 +760,11 @@ export declare const McpOutageSchema: z.ZodObject<{
733
760
  readonly SSE_CLOSED: "sse_closed";
734
761
  /** A reconnect attempt could not reach the daemon at all. */
735
762
  readonly CONNECT_ERROR: "connect_error";
763
+ /**
764
+ * A stream that was already serving was reset. The request saw the error before the response
765
+ * closed, so this used to read as `connect_error`, which says the daemon was never reached.
766
+ */
767
+ readonly SSE_RESET: "sse_reset";
736
768
  /** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
737
769
  readonly OTHER: "other";
738
770
  }>;
@@ -750,16 +782,34 @@ export declare const McpOutageSchema: z.ZodObject<{
750
782
  * worth driving down.
751
783
  */
752
784
  pendingLost: z.ZodOptional<z.ZodNumber>;
785
+ /** The socket error code behind the drop, when the drop came with one. */
786
+ errCode: z.ZodOptional<z.ZodNativeEnum<{
787
+ readonly ECONNRESET: "ECONNRESET";
788
+ readonly ECONNREFUSED: "ECONNREFUSED";
789
+ readonly EPIPE: "EPIPE";
790
+ readonly ETIMEDOUT: "ETIMEDOUT";
791
+ readonly OTHER: "other";
792
+ }>>;
793
+ /** The stream got a response before it failed: a live stream dropped, not a refused connect. */
794
+ responded: z.ZodOptional<z.ZodBoolean>;
795
+ /** The proxy process. It joins `mcp_client_connected`, which carries the daemon's `sessionId`. */
796
+ proxyId: z.ZodOptional<z.ZodString>;
753
797
  }, "strip", z.ZodTypeAny, {
754
- reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
798
+ reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
755
799
  attempts: number;
756
800
  stage: "first" | "budget_spent" | "recovered";
801
+ proxyId?: string | undefined;
757
802
  pendingLost?: number | undefined;
803
+ errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
804
+ responded?: boolean | undefined;
758
805
  }, {
759
- reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
806
+ reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
760
807
  attempts: number;
761
808
  stage: "first" | "budget_spent" | "recovered";
809
+ proxyId?: string | undefined;
762
810
  pendingLost?: number | undefined;
811
+ errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
812
+ responded?: boolean | undefined;
763
813
  }>;
764
814
  export type McpOutage = z.infer<typeof McpOutageSchema>;
765
815
  /**
@@ -795,6 +845,8 @@ export declare const InstallSource: {
795
845
  readonly DOCS_SITE: "docs_site";
796
846
  /** The repository README's install snippet. */
797
847
  readonly README: "readme";
848
+ /** reticle.sh/blog, whose posts' install snippets carry the marker. */
849
+ readonly BLOG: "blog";
798
850
  /** Somebody typed the command with no channel in front of it. Only ever self-declared. */
799
851
  readonly CLI_DIRECT: "cli_direct";
800
852
  /** No marker, or one this list does not name. The honest answer, and expected to dominate. */
@@ -853,6 +905,38 @@ export declare const InitConfirmation: {
853
905
  readonly NO_PAGE: "no_page";
854
906
  };
855
907
  export type InitConfirmation = (typeof InitConfirmation)[keyof typeof InitConfirmation];
908
+ /**
909
+ * The step a failed runtime `init` stopped at. It refines `reason` and never replaces it.
910
+ *
911
+ * `dev_server` and `app_connection` each covered several stops with different fixes: no dev script,
912
+ * a busy port, a launcher that exited, a build that never served, a page without the SDK, a page
913
+ * that never dialled. The event could not tell them apart, so no fix could be aimed at the common one.
914
+ */
915
+ export declare const InitStop: {
916
+ /** The project names no dev, start or serve script, and no `--url` was given. */
917
+ readonly NO_DEV_COMMAND: "no_dev_command";
918
+ /** Something answers on one loopback address and not the other, on the dev port. */
919
+ readonly SPLIT_LOOPBACK: "split_loopback";
920
+ /** The dev server said that its port is in use. */
921
+ readonly PORT_BUSY: "port_busy";
922
+ /** The dev server exited and nothing serves. */
923
+ readonly DEV_SERVER_EXITED: "dev_server_exited";
924
+ /** The dev server printed no URL and bound no port in the budget. */
925
+ readonly NO_URL: "no_url";
926
+ /** The dev server announced a URL that did not become ready in the budget. */
927
+ readonly NOT_READY: "not_ready";
928
+ /** Nothing answered the app URL when the connect wait ended. */
929
+ readonly PAGE_NOT_SERVED: "page_not_served";
930
+ /** The app URL refused the TLS handshake. */
931
+ readonly PAGE_TLS_REFUSED: "page_tls_refused";
932
+ /** The page answered, and its HTML does not load the SDK. */
933
+ readonly SDK_MISSING: "sdk_missing";
934
+ /** The page answered and no session dialled the daemon. */
935
+ readonly NO_SESSION: "no_session";
936
+ /** A desktop app never dialled the daemon. */
937
+ readonly DESKTOP_NO_SESSION: "desktop_no_session";
938
+ };
939
+ export type InitStop = (typeof InitStop)[keyof typeof InitStop];
856
940
  /** How `reticle init` went. The onboarding funnel, which had no instrumentation whatsoever. */
857
941
  export declare const InitOutcomeSchema: z.ZodObject<{
858
942
  ok: z.ZodBoolean;
@@ -892,18 +976,45 @@ export declare const InitOutcomeSchema: z.ZodObject<{
892
976
  */
893
977
  readonly NO_PAGE: "no_page";
894
978
  }>>;
979
+ /** Only with `reason` `dev_server` or `app_connection`: the step it stopped at. */
980
+ stop: z.ZodOptional<z.ZodNativeEnum<{
981
+ /** The project names no dev, start or serve script, and no `--url` was given. */
982
+ readonly NO_DEV_COMMAND: "no_dev_command";
983
+ /** Something answers on one loopback address and not the other, on the dev port. */
984
+ readonly SPLIT_LOOPBACK: "split_loopback";
985
+ /** The dev server said that its port is in use. */
986
+ readonly PORT_BUSY: "port_busy";
987
+ /** The dev server exited and nothing serves. */
988
+ readonly DEV_SERVER_EXITED: "dev_server_exited";
989
+ /** The dev server printed no URL and bound no port in the budget. */
990
+ readonly NO_URL: "no_url";
991
+ /** The dev server announced a URL that did not become ready in the budget. */
992
+ readonly NOT_READY: "not_ready";
993
+ /** Nothing answered the app URL when the connect wait ended. */
994
+ readonly PAGE_NOT_SERVED: "page_not_served";
995
+ /** The app URL refused the TLS handshake. */
996
+ readonly PAGE_TLS_REFUSED: "page_tls_refused";
997
+ /** The page answered, and its HTML does not load the SDK. */
998
+ readonly SDK_MISSING: "sdk_missing";
999
+ /** The page answered and no session dialled the daemon. */
1000
+ readonly NO_SESSION: "no_session";
1001
+ /** A desktop app never dialled the daemon. */
1002
+ readonly DESKTOP_NO_SESSION: "desktop_no_session";
1003
+ }>>;
895
1004
  }, "strip", z.ZodTypeAny, {
896
1005
  ok: boolean;
897
1006
  reason?: string | undefined;
898
1007
  stack?: string | undefined;
899
1008
  mcpRegistered?: boolean | undefined;
900
1009
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
1010
+ stop?: "no_session" | "not_ready" | "no_dev_command" | "split_loopback" | "port_busy" | "dev_server_exited" | "no_url" | "page_not_served" | "page_tls_refused" | "sdk_missing" | "desktop_no_session" | undefined;
901
1011
  }, {
902
1012
  ok: boolean;
903
1013
  reason?: string | undefined;
904
1014
  stack?: string | undefined;
905
1015
  mcpRegistered?: boolean | undefined;
906
1016
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
1017
+ stop?: "no_session" | "not_ready" | "no_dev_command" | "split_loopback" | "port_busy" | "dev_server_exited" | "no_url" | "page_not_served" | "page_tls_refused" | "sdk_missing" | "desktop_no_session" | undefined;
907
1018
  }>;
908
1019
  export type InitOutcome = z.infer<typeof InitOutcomeSchema>;
909
1020
  /**
@@ -911,6 +1022,47 @@ export type InitOutcome = z.infer<typeof InitOutcomeSchema>;
911
1022
  * identifiers; everything else is a low-cardinality dimension for slicing the adoption metrics.
912
1023
  */
913
1024
  export declare const TelemetryEventSchema: z.ZodObject<{
1025
+ proxyExit: z.ZodOptional<z.ZodObject<{
1026
+ reason: z.ZodNativeEnum<{
1027
+ readonly STDIN_END: "stdin_end";
1028
+ readonly IDLE: "idle";
1029
+ readonly CLIENT_GONE_STORM: "client_gone_storm";
1030
+ readonly WAKE_FAILED: "wake_failed";
1031
+ }>;
1032
+ uptimeMs: z.ZodNumber;
1033
+ drops: z.ZodNumber;
1034
+ toolCalls: z.ZodNumber;
1035
+ proxyId: z.ZodOptional<z.ZodString>;
1036
+ }, "strip", z.ZodTypeAny, {
1037
+ reason: "idle" | "stdin_end" | "client_gone_storm" | "wake_failed";
1038
+ toolCalls: number;
1039
+ uptimeMs: number;
1040
+ drops: number;
1041
+ proxyId?: string | undefined;
1042
+ }, {
1043
+ reason: "idle" | "stdin_end" | "client_gone_storm" | "wake_failed";
1044
+ toolCalls: number;
1045
+ uptimeMs: number;
1046
+ drops: number;
1047
+ proxyId?: string | undefined;
1048
+ }>>;
1049
+ daemonDeath: z.ZodOptional<z.ZodObject<{
1050
+ ageMs: z.ZodNumber;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ ageMs: number;
1053
+ }, {
1054
+ ageMs: number;
1055
+ }>>;
1056
+ wakeRefusal: z.ZodOptional<z.ZodObject<{
1057
+ presence: z.ZodNativeEnum<{
1058
+ readonly FOREIGN: "foreign";
1059
+ readonly OTHER_PROJECT: "other_project";
1060
+ }>;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ presence: "foreign" | "other_project";
1063
+ }, {
1064
+ presence: "foreign" | "other_project";
1065
+ }>>;
914
1066
  accountState: z.ZodOptional<z.ZodNativeEnum<{
915
1067
  readonly SIGNED_OUT: "signed_out";
916
1068
  readonly SIGNED_IN: "signed_in";
@@ -977,9 +1129,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
977
1129
  readonly LINK: "link";
978
1130
  }>;
979
1131
  }, "strip", z.ZodTypeAny, {
980
- via: "hud" | "link" | "connect";
1132
+ via: "link" | "hud" | "connect";
981
1133
  }, {
982
- via: "hud" | "link" | "connect";
1134
+ via: "link" | "hud" | "connect";
983
1135
  }>>;
984
1136
  harness: z.ZodOptional<z.ZodObject<{
985
1137
  phase: z.ZodNativeEnum<{
@@ -1015,20 +1167,33 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1015
1167
  readonly FOUR_NINE: "4-9";
1016
1168
  readonly TEN_PLUS: "10+";
1017
1169
  }>>;
1170
+ reason: z.ZodOptional<z.ZodNativeEnum<{
1171
+ readonly NOT_LINKED: "not_linked";
1172
+ readonly PLATFORM_UNREACHABLE: "platform_unreachable";
1173
+ readonly HARNESS_OFF: "harness_off";
1174
+ readonly NO_CREDITS: "no_credits";
1175
+ readonly NOT_ENTITLED: "not_entitled";
1176
+ readonly COVERAGE_GATE: "coverage_gate";
1177
+ readonly VERSION_SKEW: "version_skew";
1178
+ readonly BROKEN: "broken";
1179
+ readonly OTHER: "other";
1180
+ }>>;
1018
1181
  }, "strip", z.ZodTypeAny, {
1019
1182
  source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
1020
1183
  phase: "completed" | "started";
1021
1184
  hosted: boolean;
1185
+ reason?: "version_skew" | "other" | "not_linked" | "platform_unreachable" | "harness_off" | "no_credits" | "not_entitled" | "coverage_gate" | "broken" | undefined;
1186
+ replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
1022
1187
  outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
1023
1188
  journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
1024
- replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
1025
1189
  }, {
1026
1190
  source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
1027
1191
  phase: "completed" | "started";
1028
1192
  hosted: boolean;
1193
+ reason?: "version_skew" | "other" | "not_linked" | "platform_unreachable" | "harness_off" | "no_credits" | "not_entitled" | "coverage_gate" | "broken" | undefined;
1194
+ replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
1029
1195
  outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
1030
1196
  journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
1031
- replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
1032
1197
  }>>;
1033
1198
  v: z.ZodLiteral<3>;
1034
1199
  /** Random UUID persisted at `~/.reticle/telemetry-id`. Distinct-count of this = users (DAU/WAU/MAU). */
@@ -1078,7 +1243,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1078
1243
  * tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
1079
1244
  * an exit's name therefore describes active sessions at one end and abandoned ones at the other.
1080
1245
  *
1081
- * Count sessions with DAEMON_STOPPED. Sum work with both.
1246
+ * Count daemon runs with DAEMON_STARTED, clean exits with DAEMON_STOPPED. Sum work with both.
1082
1247
  */
1083
1248
  readonly SESSION_PROGRESS: "session_progress";
1084
1249
  /**
@@ -1092,7 +1257,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1092
1257
  * between a retention problem and an activation problem. Once per daemon start, so it is cheap.
1093
1258
  */
1094
1259
  readonly PROJECT_PROFILED: "project_profiled";
1095
- /** `reticle update` or `reticle rollback` moved the installed version. Carries from → to. */
1260
+ /**
1261
+ * A start found a version that differs from the last start on this machine, or `reticle update` /
1262
+ * `reticle rollback` moved it. Carries from → to.
1263
+ */
1096
1264
  readonly VERSION_CHANGED: "version_changed";
1097
1265
  /** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
1098
1266
  readonly RUNTIME_CRASHED: "runtime_crashed";
@@ -1155,6 +1323,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1155
1323
  * that decides whether this is fixed.
1156
1324
  */
1157
1325
  readonly MCP_CONNECTION_LOST: "mcp_connection_lost";
1326
+ /**
1327
+ * The MCP proxy process ended. The agent lost its tools until the client starts a new one.
1328
+ *
1329
+ * `mcp_connection_lost` cannot see this: the stream to the daemon can be healthy when the proxy
1330
+ * leaves. Sent even when the proxy has no other counts to report. See `ProxyExitSchema`.
1331
+ */
1332
+ readonly MCP_PROXY_EXITED: "mcp_proxy_exited";
1333
+ /** A daemon start found the pidfile of a daemon that died without a clean stop. */
1334
+ readonly DAEMON_DIED_UNCLEAN: "daemon_died_unclean";
1335
+ /** The proxy found the daemon port held by a stranger or by another project, and did not use it. */
1336
+ readonly WAKE_REFUSED: "wake_refused";
1158
1337
  /**
1159
1338
  * `reticle init` finished. The onboarding funnel had no instrumentation at all, so a setup that
1160
1339
  * failed on a missing dependency was indistinguishable from a user who never tried.
@@ -1300,6 +1479,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1300
1479
  readonly USER: "user";
1301
1480
  readonly PROJECT: "project";
1302
1481
  }>>;
1482
+ contact: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1303
1483
  }, "strip", z.ZodTypeAny, {
1304
1484
  text: string;
1305
1485
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
@@ -1318,6 +1498,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1318
1498
  driver?: "cdp" | "sdk" | undefined;
1319
1499
  client?: string | undefined;
1320
1500
  mcpScope?: "project" | "user" | undefined;
1501
+ contact?: string | undefined;
1321
1502
  }, {
1322
1503
  text: string;
1323
1504
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
@@ -1336,6 +1517,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1336
1517
  driver?: "cdp" | "sdk" | undefined;
1337
1518
  client?: string | undefined;
1338
1519
  mcpScope?: "project" | "user" | undefined;
1520
+ contact?: string | undefined;
1339
1521
  }>>;
1340
1522
  /** Human or agent. Absent on events that are neither (a crash, a version change). */
1341
1523
  actor: z.ZodOptional<z.ZodNativeEnum<{
@@ -1454,6 +1636,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1454
1636
  surface: z.ZodOptional<z.ZodString>;
1455
1637
  appConnects: z.ZodOptional<z.ZodNumber>;
1456
1638
  msToFirstApp: z.ZodOptional<z.ZodNumber>;
1639
+ sdkVersion: z.ZodOptional<z.ZodString>;
1640
+ toolCallsBeforeApp: z.ZodOptional<z.ZodNumber>;
1457
1641
  endReason: z.ZodOptional<z.ZodEnum<["never_used", "explored", "abandoned", "verified", "client_left"]>>;
1458
1642
  feedbackPrompted: z.ZodOptional<z.ZodNumber>;
1459
1643
  errorClasses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
@@ -1494,6 +1678,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1494
1678
  verifications: number;
1495
1679
  final: boolean;
1496
1680
  surface?: string | undefined;
1681
+ sdkVersion?: string | undefined;
1497
1682
  errors?: {
1498
1683
  message: string;
1499
1684
  count: number;
@@ -1542,6 +1727,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1542
1727
  clientVersions?: Record<string, string> | undefined;
1543
1728
  appConnects?: number | undefined;
1544
1729
  msToFirstApp?: number | undefined;
1730
+ toolCallsBeforeApp?: number | undefined;
1545
1731
  endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
1546
1732
  feedbackPrompted?: number | undefined;
1547
1733
  errorClasses?: Record<string, number> | undefined;
@@ -1570,6 +1756,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1570
1756
  verifications: number;
1571
1757
  final: boolean;
1572
1758
  surface?: string | undefined;
1759
+ sdkVersion?: string | undefined;
1573
1760
  errors?: {
1574
1761
  message: string;
1575
1762
  count: number;
@@ -1618,6 +1805,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1618
1805
  clientVersions?: Record<string, string> | undefined;
1619
1806
  appConnects?: number | undefined;
1620
1807
  msToFirstApp?: number | undefined;
1808
+ toolCallsBeforeApp?: number | undefined;
1621
1809
  endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
1622
1810
  feedbackPrompted?: number | undefined;
1623
1811
  errorClasses?: Record<string, number> | undefined;
@@ -1696,7 +1884,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1696
1884
  featureDepth: number;
1697
1885
  stack?: string | undefined;
1698
1886
  stackMajor?: number | undefined;
1699
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1887
+ size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
1700
1888
  stackSource?: "cwd" | "workspace" | undefined;
1701
1889
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
1702
1890
  monorepo?: boolean | undefined;
@@ -1716,7 +1904,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1716
1904
  featureDepth: number;
1717
1905
  stack?: string | undefined;
1718
1906
  stackMajor?: number | undefined;
1719
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1907
+ size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
1720
1908
  stackSource?: "cwd" | "workspace" | undefined;
1721
1909
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
1722
1910
  monorepo?: boolean | undefined;
@@ -1834,14 +2022,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1834
2022
  /** A model inside the daemon drove this, on the user's behalf. */
1835
2023
  readonly HARNESS: "harness";
1836
2024
  }>>;
2025
+ /** The page SDK version from its HELLO: our own release number, or `other`. Absent if unsaid. */
2026
+ sdkVersion: z.ZodOptional<z.ZodString>;
1837
2027
  }, "strip", z.ZodTypeAny, {
1838
2028
  verified: string;
1839
2029
  passed: boolean;
1840
2030
  via: string;
1841
2031
  falseGreenCaught: boolean;
2032
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1842
2033
  browser?: string | undefined;
1843
2034
  durationMs?: number | undefined;
1844
- reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2035
+ sdkVersion?: string | undefined;
1845
2036
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1846
2037
  driven?: "harness" | undefined;
1847
2038
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
@@ -1850,9 +2041,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1850
2041
  passed: boolean;
1851
2042
  via: string;
1852
2043
  falseGreenCaught: boolean;
2044
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
1853
2045
  browser?: string | undefined;
1854
2046
  durationMs?: number | undefined;
1855
- reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2047
+ sdkVersion?: string | undefined;
1856
2048
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1857
2049
  driven?: "harness" | undefined;
1858
2050
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
@@ -2070,14 +2262,18 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2070
2262
  * OPTIONAL because an older sender has none. Absent means not measured, never `false`.
2071
2263
  */
2072
2264
  appConnected: z.ZodOptional<z.ZodBoolean>;
2265
+ /** The id of the proxy process that attached. Its outages carry the same id. */
2266
+ proxyId: z.ZodOptional<z.ZodString>;
2073
2267
  }, "strip", z.ZodTypeAny, {
2074
2268
  reconnect: boolean;
2075
2269
  daemonAgeMs: number;
2270
+ proxyId?: string | undefined;
2076
2271
  client?: string | undefined;
2077
2272
  appConnected?: boolean | undefined;
2078
2273
  }, {
2079
2274
  reconnect: boolean;
2080
2275
  daemonAgeMs: number;
2276
+ proxyId?: string | undefined;
2081
2277
  client?: string | undefined;
2082
2278
  appConnected?: boolean | undefined;
2083
2279
  }>>;
@@ -2120,18 +2316,45 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2120
2316
  */
2121
2317
  readonly NO_PAGE: "no_page";
2122
2318
  }>>;
2319
+ /** Only with `reason` `dev_server` or `app_connection`: the step it stopped at. */
2320
+ stop: z.ZodOptional<z.ZodNativeEnum<{
2321
+ /** The project names no dev, start or serve script, and no `--url` was given. */
2322
+ readonly NO_DEV_COMMAND: "no_dev_command";
2323
+ /** Something answers on one loopback address and not the other, on the dev port. */
2324
+ readonly SPLIT_LOOPBACK: "split_loopback";
2325
+ /** The dev server said that its port is in use. */
2326
+ readonly PORT_BUSY: "port_busy";
2327
+ /** The dev server exited and nothing serves. */
2328
+ readonly DEV_SERVER_EXITED: "dev_server_exited";
2329
+ /** The dev server printed no URL and bound no port in the budget. */
2330
+ readonly NO_URL: "no_url";
2331
+ /** The dev server announced a URL that did not become ready in the budget. */
2332
+ readonly NOT_READY: "not_ready";
2333
+ /** Nothing answered the app URL when the connect wait ended. */
2334
+ readonly PAGE_NOT_SERVED: "page_not_served";
2335
+ /** The app URL refused the TLS handshake. */
2336
+ readonly PAGE_TLS_REFUSED: "page_tls_refused";
2337
+ /** The page answered, and its HTML does not load the SDK. */
2338
+ readonly SDK_MISSING: "sdk_missing";
2339
+ /** The page answered and no session dialled the daemon. */
2340
+ readonly NO_SESSION: "no_session";
2341
+ /** A desktop app never dialled the daemon. */
2342
+ readonly DESKTOP_NO_SESSION: "desktop_no_session";
2343
+ }>>;
2123
2344
  }, "strip", z.ZodTypeAny, {
2124
2345
  ok: boolean;
2125
2346
  reason?: string | undefined;
2126
2347
  stack?: string | undefined;
2127
2348
  mcpRegistered?: boolean | undefined;
2128
2349
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
2350
+ stop?: "no_session" | "not_ready" | "no_dev_command" | "split_loopback" | "port_busy" | "dev_server_exited" | "no_url" | "page_not_served" | "page_tls_refused" | "sdk_missing" | "desktop_no_session" | undefined;
2129
2351
  }, {
2130
2352
  ok: boolean;
2131
2353
  reason?: string | undefined;
2132
2354
  stack?: string | undefined;
2133
2355
  mcpRegistered?: boolean | undefined;
2134
2356
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
2357
+ stop?: "no_session" | "not_ready" | "no_dev_command" | "split_loopback" | "port_busy" | "dev_server_exited" | "no_url" | "page_not_served" | "page_tls_refused" | "sdk_missing" | "desktop_no_session" | undefined;
2135
2358
  }>>;
2136
2359
  /** Only on `onboarding_step`: one step of install / onboard / first run. */
2137
2360
  onboarding: z.ZodOptional<z.ZodObject<{
@@ -2153,6 +2376,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2153
2376
  stack: z.ZodOptional<z.ZodString>;
2154
2377
  unattended: z.ZodOptional<z.ZodBoolean>;
2155
2378
  firstEver: z.ZodOptional<z.ZodBoolean>;
2379
+ offered: z.ZodOptional<z.ZodNativeEnum<{
2380
+ readonly LEASE: "lease";
2381
+ readonly INIT_CONSENT: "init_consent";
2382
+ }>>;
2383
+ nextFollowed: z.ZodOptional<z.ZodBoolean>;
2156
2384
  }, "strip", z.ZodTypeAny, {
2157
2385
  step: string;
2158
2386
  status: "skipped" | "completed" | "failed" | "started" | "abandoned";
@@ -2162,6 +2390,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2162
2390
  elapsedMs?: number | undefined;
2163
2391
  unattended?: boolean | undefined;
2164
2392
  firstEver?: boolean | undefined;
2393
+ offered?: "lease" | "init_consent" | undefined;
2394
+ nextFollowed?: boolean | undefined;
2165
2395
  }, {
2166
2396
  step: string;
2167
2397
  status: "skipped" | "completed" | "failed" | "started" | "abandoned";
@@ -2171,6 +2401,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2171
2401
  elapsedMs?: number | undefined;
2172
2402
  unattended?: boolean | undefined;
2173
2403
  firstEver?: boolean | undefined;
2404
+ offered?: "lease" | "init_consent" | undefined;
2405
+ nextFollowed?: boolean | undefined;
2174
2406
  }>>;
2175
2407
  /** Only on `bug_found`. */
2176
2408
  bug: z.ZodOptional<z.ZodObject<{
@@ -2193,20 +2425,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2193
2425
  fingerprint: z.ZodOptional<z.ZodString>;
2194
2426
  occurrence: z.ZodOptional<z.ZodNumber>;
2195
2427
  }, "strip", z.ZodTypeAny, {
2428
+ repeat: boolean;
2196
2429
  kind: string;
2197
- source: "replay" | "contradiction" | "crawl" | "assertion";
2198
- attribution: "reticle" | "request" | "app" | "unclassified";
2430
+ source: "replay" | "assertion" | "contradiction" | "crawl";
2431
+ attribution: "app" | "reticle" | "request" | "unclassified";
2199
2432
  falseGreen: boolean;
2200
- repeat: boolean;
2201
2433
  tool?: string | undefined;
2202
2434
  fingerprint?: string | undefined;
2203
2435
  occurrence?: number | undefined;
2204
2436
  }, {
2437
+ repeat: boolean;
2205
2438
  kind: string;
2206
- source: "replay" | "contradiction" | "crawl" | "assertion";
2207
- attribution: "reticle" | "request" | "app" | "unclassified";
2439
+ source: "replay" | "assertion" | "contradiction" | "crawl";
2440
+ attribution: "app" | "reticle" | "request" | "unclassified";
2208
2441
  falseGreen: boolean;
2209
- repeat: boolean;
2210
2442
  tool?: string | undefined;
2211
2443
  fingerprint?: string | undefined;
2212
2444
  occurrence?: number | undefined;
@@ -2237,13 +2469,13 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2237
2469
  }>>;
2238
2470
  retried: z.ZodBoolean;
2239
2471
  }, "strip", z.ZodTypeAny, {
2240
- tool: string;
2241
2472
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2473
+ tool: string;
2242
2474
  retried: boolean;
2243
2475
  noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "navigated_away" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2244
2476
  }, {
2245
- tool: string;
2246
2477
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2478
+ tool: string;
2247
2479
  retried: boolean;
2248
2480
  noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "navigated_away" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2249
2481
  }>>;
@@ -2283,6 +2515,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2283
2515
  readonly SSE_CLOSED: "sse_closed";
2284
2516
  /** A reconnect attempt could not reach the daemon at all. */
2285
2517
  readonly CONNECT_ERROR: "connect_error";
2518
+ /**
2519
+ * A stream that was already serving was reset. The request saw the error before the response
2520
+ * closed, so this used to read as `connect_error`, which says the daemon was never reached.
2521
+ */
2522
+ readonly SSE_RESET: "sse_reset";
2286
2523
  /** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
2287
2524
  readonly OTHER: "other";
2288
2525
  }>;
@@ -2300,16 +2537,34 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2300
2537
  * worth driving down.
2301
2538
  */
2302
2539
  pendingLost: z.ZodOptional<z.ZodNumber>;
2540
+ /** The socket error code behind the drop, when the drop came with one. */
2541
+ errCode: z.ZodOptional<z.ZodNativeEnum<{
2542
+ readonly ECONNRESET: "ECONNRESET";
2543
+ readonly ECONNREFUSED: "ECONNREFUSED";
2544
+ readonly EPIPE: "EPIPE";
2545
+ readonly ETIMEDOUT: "ETIMEDOUT";
2546
+ readonly OTHER: "other";
2547
+ }>>;
2548
+ /** The stream got a response before it failed: a live stream dropped, not a refused connect. */
2549
+ responded: z.ZodOptional<z.ZodBoolean>;
2550
+ /** The proxy process. It joins `mcp_client_connected`, which carries the daemon's `sessionId`. */
2551
+ proxyId: z.ZodOptional<z.ZodString>;
2303
2552
  }, "strip", z.ZodTypeAny, {
2304
- reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
2553
+ reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
2305
2554
  attempts: number;
2306
2555
  stage: "first" | "budget_spent" | "recovered";
2556
+ proxyId?: string | undefined;
2307
2557
  pendingLost?: number | undefined;
2558
+ errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
2559
+ responded?: boolean | undefined;
2308
2560
  }, {
2309
- reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
2561
+ reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
2310
2562
  attempts: number;
2311
2563
  stage: "first" | "budget_spent" | "recovered";
2564
+ proxyId?: string | undefined;
2312
2565
  pendingLost?: number | undefined;
2566
+ errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
2567
+ responded?: boolean | undefined;
2313
2568
  }>>;
2314
2569
  /** Only on `app_instrumented`: the install's second half finally happening. */
2315
2570
  instrumentation: z.ZodOptional<z.ZodObject<{
@@ -2351,6 +2606,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2351
2606
  readonly DOCS_SITE: "docs_site";
2352
2607
  /** The repository README's install snippet. */
2353
2608
  readonly README: "readme";
2609
+ /** reticle.sh/blog, whose posts' install snippets carry the marker. */
2610
+ readonly BLOG: "blog";
2354
2611
  /** Somebody typed the command with no channel in front of it. Only ever self-declared. */
2355
2612
  readonly CLI_DIRECT: "cli_direct";
2356
2613
  /** No marker, or one this list does not name. The honest answer, and expected to dominate. */
@@ -2393,13 +2650,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2393
2650
  */
2394
2651
  licenseKeyPresent: z.ZodOptional<z.ZodBoolean>;
2395
2652
  }, "strip", z.ZodTypeAny, {
2396
- 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" | "hud_viewed" | "hud_signin_prompted" | "platform_linked" | "harness_run";
2653
+ v: 3;
2654
+ 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" | "mcp_proxy_exited" | "daemon_died_unclean" | "wake_refused" | "init_completed" | "onboarding_step" | "bug_found" | "tool_refused" | "hud_viewed" | "hud_signin_prompted" | "platform_linked" | "harness_run";
2397
2655
  ci: boolean;
2398
2656
  version: string;
2399
- v: 3;
2400
2657
  anonymousId: string;
2401
2658
  ts: number;
2402
2659
  os: string;
2660
+ link?: {
2661
+ via: "link" | "hud" | "connect";
2662
+ } | undefined;
2403
2663
  feedback?: {
2404
2664
  text: string;
2405
2665
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
@@ -2418,15 +2678,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2418
2678
  driver?: "cdp" | "sdk" | undefined;
2419
2679
  client?: string | undefined;
2420
2680
  mcpScope?: "project" | "user" | undefined;
2681
+ contact?: string | undefined;
2421
2682
  } | undefined;
2422
2683
  command?: string | undefined;
2423
2684
  harness?: {
2424
2685
  source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
2425
2686
  phase: "completed" | "started";
2426
2687
  hosted: boolean;
2688
+ reason?: "version_skew" | "other" | "not_linked" | "platform_unreachable" | "harness_off" | "no_credits" | "not_entitled" | "coverage_gate" | "broken" | undefined;
2689
+ replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
2427
2690
  outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
2428
2691
  journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
2429
- replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
2430
2692
  } | undefined;
2431
2693
  project?: {
2432
2694
  git: "none" | "local_only" | "remote";
@@ -2440,7 +2702,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2440
2702
  featureDepth: number;
2441
2703
  stack?: string | undefined;
2442
2704
  stackMajor?: number | undefined;
2443
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
2705
+ size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
2444
2706
  stackSource?: "cwd" | "workspace" | undefined;
2445
2707
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
2446
2708
  monorepo?: boolean | undefined;
@@ -2450,18 +2712,25 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2450
2712
  appConnectedBefore?: boolean | undefined;
2451
2713
  } | undefined;
2452
2714
  projectId?: string | undefined;
2715
+ sessionId?: string | undefined;
2716
+ instrumentation?: {
2717
+ msToFirstApp: number;
2718
+ initialized: boolean;
2719
+ agentAttached: boolean;
2720
+ firstEver?: boolean | undefined;
2721
+ } | undefined;
2453
2722
  hud?: {
2454
2723
  surface?: "harness" | "rail" | "header" | undefined;
2455
2724
  view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
2456
2725
  tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
2457
2726
  } | undefined;
2458
- sessionId?: string | undefined;
2727
+ workspaceId?: string | undefined;
2459
2728
  bug?: {
2729
+ repeat: boolean;
2460
2730
  kind: string;
2461
- source: "replay" | "contradiction" | "crawl" | "assertion";
2462
- attribution: "reticle" | "request" | "app" | "unclassified";
2731
+ source: "replay" | "assertion" | "contradiction" | "crawl";
2732
+ attribution: "app" | "reticle" | "request" | "unclassified";
2463
2733
  falseGreen: boolean;
2464
- repeat: boolean;
2465
2734
  tool?: string | undefined;
2466
2735
  fingerprint?: string | undefined;
2467
2736
  occurrence?: number | undefined;
@@ -2475,6 +2744,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2475
2744
  verifications: number;
2476
2745
  final: boolean;
2477
2746
  surface?: string | undefined;
2747
+ sdkVersion?: string | undefined;
2478
2748
  errors?: {
2479
2749
  message: string;
2480
2750
  count: number;
@@ -2523,6 +2793,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2523
2793
  clientVersions?: Record<string, string> | undefined;
2524
2794
  appConnects?: number | undefined;
2525
2795
  msToFirstApp?: number | undefined;
2796
+ toolCallsBeforeApp?: number | undefined;
2526
2797
  endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
2527
2798
  feedbackPrompted?: number | undefined;
2528
2799
  errorClasses?: Record<string, number> | undefined;
@@ -2544,9 +2815,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2544
2815
  harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
2545
2816
  exit?: "signal" | "idle" | "unknown" | undefined;
2546
2817
  } | undefined;
2547
- link?: {
2548
- via: "hud" | "link" | "connect";
2549
- } | undefined;
2550
2818
  licenseKeyPresent?: boolean | undefined;
2551
2819
  linked?: boolean | undefined;
2552
2820
  automation?: "container" | "hosted_workspace" | "ci_runner" | "agent_sandbox" | undefined;
@@ -2561,9 +2829,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2561
2829
  passed: boolean;
2562
2830
  via: string;
2563
2831
  falseGreenCaught: boolean;
2832
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2564
2833
  browser?: string | undefined;
2565
2834
  durationMs?: number | undefined;
2566
- reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2835
+ sdkVersion?: string | undefined;
2567
2836
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
2568
2837
  driven?: "harness" | undefined;
2569
2838
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
@@ -2606,6 +2875,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2606
2875
  connection?: {
2607
2876
  reconnect: boolean;
2608
2877
  daemonAgeMs: number;
2878
+ proxyId?: string | undefined;
2609
2879
  client?: string | undefined;
2610
2880
  appConnected?: boolean | undefined;
2611
2881
  } | undefined;
@@ -2615,6 +2885,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2615
2885
  stack?: string | undefined;
2616
2886
  mcpRegistered?: boolean | undefined;
2617
2887
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
2888
+ stop?: "no_session" | "not_ready" | "no_dev_command" | "split_loopback" | "port_busy" | "dev_server_exited" | "no_url" | "page_not_served" | "page_tls_refused" | "sdk_missing" | "desktop_no_session" | undefined;
2618
2889
  } | undefined;
2619
2890
  onboarding?: {
2620
2891
  step: string;
@@ -2625,39 +2896,53 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2625
2896
  elapsedMs?: number | undefined;
2626
2897
  unattended?: boolean | undefined;
2627
2898
  firstEver?: boolean | undefined;
2899
+ offered?: "lease" | "init_consent" | undefined;
2900
+ nextFollowed?: boolean | undefined;
2628
2901
  } | undefined;
2629
2902
  refusal?: {
2630
- tool: string;
2631
2903
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
2904
+ tool: string;
2632
2905
  retried: boolean;
2633
2906
  noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "navigated_away" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2634
2907
  } | undefined;
2635
2908
  outage?: {
2636
- reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
2909
+ reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
2637
2910
  attempts: number;
2638
2911
  stage: "first" | "budget_spent" | "recovered";
2912
+ proxyId?: string | undefined;
2639
2913
  pendingLost?: number | undefined;
2914
+ errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
2915
+ responded?: boolean | undefined;
2640
2916
  } | undefined;
2641
- instrumentation?: {
2642
- msToFirstApp: number;
2643
- initialized: boolean;
2644
- agentAttached: boolean;
2645
- firstEver?: boolean | undefined;
2646
- } | undefined;
2647
- installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "cli_direct" | undefined;
2917
+ installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "blog" | "cli_direct" | undefined;
2648
2918
  licenseId?: string | undefined;
2649
2919
  licenseStatus?: "active" | "invalid" | "missing" | "expired" | "eval" | undefined;
2920
+ proxyExit?: {
2921
+ reason: "idle" | "stdin_end" | "client_gone_storm" | "wake_failed";
2922
+ toolCalls: number;
2923
+ uptimeMs: number;
2924
+ drops: number;
2925
+ proxyId?: string | undefined;
2926
+ } | undefined;
2927
+ daemonDeath?: {
2928
+ ageMs: number;
2929
+ } | undefined;
2930
+ wakeRefusal?: {
2931
+ presence: "foreign" | "other_project";
2932
+ } | undefined;
2650
2933
  accountState?: "signed_out" | "signed_in" | "linked" | undefined;
2651
- workspaceId?: string | undefined;
2652
2934
  launch?: "other" | "project" | "npx" | "global" | undefined;
2653
2935
  }, {
2654
- 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" | "hud_viewed" | "hud_signin_prompted" | "platform_linked" | "harness_run";
2936
+ v: 3;
2937
+ 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" | "mcp_proxy_exited" | "daemon_died_unclean" | "wake_refused" | "init_completed" | "onboarding_step" | "bug_found" | "tool_refused" | "hud_viewed" | "hud_signin_prompted" | "platform_linked" | "harness_run";
2655
2938
  ci: boolean;
2656
2939
  version: string;
2657
- v: 3;
2658
2940
  anonymousId: string;
2659
2941
  ts: number;
2660
2942
  os: string;
2943
+ link?: {
2944
+ via: "link" | "hud" | "connect";
2945
+ } | undefined;
2661
2946
  feedback?: {
2662
2947
  text: string;
2663
2948
  kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
@@ -2676,15 +2961,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2676
2961
  driver?: "cdp" | "sdk" | undefined;
2677
2962
  client?: string | undefined;
2678
2963
  mcpScope?: "project" | "user" | undefined;
2964
+ contact?: string | undefined;
2679
2965
  } | undefined;
2680
2966
  command?: string | undefined;
2681
2967
  harness?: {
2682
2968
  source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
2683
2969
  phase: "completed" | "started";
2684
2970
  hosted: boolean;
2971
+ reason?: "version_skew" | "other" | "not_linked" | "platform_unreachable" | "harness_off" | "no_credits" | "not_entitled" | "coverage_gate" | "broken" | undefined;
2972
+ replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
2685
2973
  outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
2686
2974
  journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
2687
- replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
2688
2975
  } | undefined;
2689
2976
  project?: {
2690
2977
  git: "none" | "local_only" | "remote";
@@ -2698,7 +2985,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2698
2985
  featureDepth: number;
2699
2986
  stack?: string | undefined;
2700
2987
  stackMajor?: number | undefined;
2701
- size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
2988
+ size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
2702
2989
  stackSource?: "cwd" | "workspace" | undefined;
2703
2990
  stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
2704
2991
  monorepo?: boolean | undefined;
@@ -2708,18 +2995,25 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2708
2995
  appConnectedBefore?: boolean | undefined;
2709
2996
  } | undefined;
2710
2997
  projectId?: string | undefined;
2998
+ sessionId?: string | undefined;
2999
+ instrumentation?: {
3000
+ msToFirstApp: number;
3001
+ initialized: boolean;
3002
+ agentAttached: boolean;
3003
+ firstEver?: boolean | undefined;
3004
+ } | undefined;
2711
3005
  hud?: {
2712
3006
  surface?: "harness" | "rail" | "header" | undefined;
2713
3007
  view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
2714
3008
  tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
2715
3009
  } | undefined;
2716
- sessionId?: string | undefined;
3010
+ workspaceId?: string | undefined;
2717
3011
  bug?: {
3012
+ repeat: boolean;
2718
3013
  kind: string;
2719
- source: "replay" | "contradiction" | "crawl" | "assertion";
2720
- attribution: "reticle" | "request" | "app" | "unclassified";
3014
+ source: "replay" | "assertion" | "contradiction" | "crawl";
3015
+ attribution: "app" | "reticle" | "request" | "unclassified";
2721
3016
  falseGreen: boolean;
2722
- repeat: boolean;
2723
3017
  tool?: string | undefined;
2724
3018
  fingerprint?: string | undefined;
2725
3019
  occurrence?: number | undefined;
@@ -2733,6 +3027,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2733
3027
  verifications: number;
2734
3028
  final: boolean;
2735
3029
  surface?: string | undefined;
3030
+ sdkVersion?: string | undefined;
2736
3031
  errors?: {
2737
3032
  message: string;
2738
3033
  count: number;
@@ -2781,6 +3076,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2781
3076
  clientVersions?: Record<string, string> | undefined;
2782
3077
  appConnects?: number | undefined;
2783
3078
  msToFirstApp?: number | undefined;
3079
+ toolCallsBeforeApp?: number | undefined;
2784
3080
  endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
2785
3081
  feedbackPrompted?: number | undefined;
2786
3082
  errorClasses?: Record<string, number> | undefined;
@@ -2802,9 +3098,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2802
3098
  harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
2803
3099
  exit?: "signal" | "idle" | "unknown" | undefined;
2804
3100
  } | undefined;
2805
- link?: {
2806
- via: "hud" | "link" | "connect";
2807
- } | undefined;
2808
3101
  licenseKeyPresent?: boolean | undefined;
2809
3102
  linked?: boolean | undefined;
2810
3103
  automation?: "container" | "hosted_workspace" | "ci_runner" | "agent_sandbox" | undefined;
@@ -2819,9 +3112,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2819
3112
  passed: boolean;
2820
3113
  via: string;
2821
3114
  falseGreenCaught: boolean;
3115
+ reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
2822
3116
  browser?: string | undefined;
2823
3117
  durationMs?: number | undefined;
2824
- reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
3118
+ sdkVersion?: string | undefined;
2825
3119
  brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
2826
3120
  driven?: "harness" | undefined;
2827
3121
  uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
@@ -2864,6 +3158,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2864
3158
  connection?: {
2865
3159
  reconnect: boolean;
2866
3160
  daemonAgeMs: number;
3161
+ proxyId?: string | undefined;
2867
3162
  client?: string | undefined;
2868
3163
  appConnected?: boolean | undefined;
2869
3164
  } | undefined;
@@ -2873,6 +3168,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2873
3168
  stack?: string | undefined;
2874
3169
  mcpRegistered?: boolean | undefined;
2875
3170
  confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
3171
+ stop?: "no_session" | "not_ready" | "no_dev_command" | "split_loopback" | "port_busy" | "dev_server_exited" | "no_url" | "page_not_served" | "page_tls_refused" | "sdk_missing" | "desktop_no_session" | undefined;
2876
3172
  } | undefined;
2877
3173
  onboarding?: {
2878
3174
  step: string;
@@ -2883,30 +3179,41 @@ export declare const TelemetryEventSchema: z.ZodObject<{
2883
3179
  elapsedMs?: number | undefined;
2884
3180
  unattended?: boolean | undefined;
2885
3181
  firstEver?: boolean | undefined;
3182
+ offered?: "lease" | "init_consent" | undefined;
3183
+ nextFollowed?: boolean | undefined;
2886
3184
  } | undefined;
2887
3185
  refusal?: {
2888
- tool: string;
2889
3186
  reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
3187
+ tool: string;
2890
3188
  retried: boolean;
2891
3189
  noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "navigated_away" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
2892
3190
  } | undefined;
2893
3191
  outage?: {
2894
- reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
3192
+ reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
2895
3193
  attempts: number;
2896
3194
  stage: "first" | "budget_spent" | "recovered";
3195
+ proxyId?: string | undefined;
2897
3196
  pendingLost?: number | undefined;
3197
+ errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
3198
+ responded?: boolean | undefined;
2898
3199
  } | undefined;
2899
- instrumentation?: {
2900
- msToFirstApp: number;
2901
- initialized: boolean;
2902
- agentAttached: boolean;
2903
- firstEver?: boolean | undefined;
2904
- } | undefined;
2905
- installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "cli_direct" | undefined;
3200
+ installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "blog" | "cli_direct" | undefined;
2906
3201
  licenseId?: string | undefined;
2907
3202
  licenseStatus?: "active" | "invalid" | "missing" | "expired" | "eval" | undefined;
3203
+ proxyExit?: {
3204
+ reason: "idle" | "stdin_end" | "client_gone_storm" | "wake_failed";
3205
+ toolCalls: number;
3206
+ uptimeMs: number;
3207
+ drops: number;
3208
+ proxyId?: string | undefined;
3209
+ } | undefined;
3210
+ daemonDeath?: {
3211
+ ageMs: number;
3212
+ } | undefined;
3213
+ wakeRefusal?: {
3214
+ presence: "foreign" | "other_project";
3215
+ } | undefined;
2908
3216
  accountState?: "signed_out" | "signed_in" | "linked" | undefined;
2909
- workspaceId?: string | undefined;
2910
3217
  launch?: "other" | "project" | "npx" | "global" | undefined;
2911
3218
  }>;
2912
3219
  export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;