@reticlehq/core 2.5.0 → 2.7.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.
@@ -104,6 +104,26 @@ export declare const TelemetryEventKind: {
104
104
  * identical to healthy usage in every other metric.
105
105
  */
106
106
  readonly MCP_CLIENT_CONNECTED: "mcp_client_connected";
107
+ /**
108
+ * An app carrying the SDK connected to this daemon for the first time in its life.
109
+ *
110
+ * THE funnel step, and the one nothing could measure. Reticle's install has two halves — register
111
+ * the MCP server so the agent has the tools, and get the SDK into a running page so there is
112
+ * something for those tools to look at — and they are done at different times, by different
113
+ * commands, often in different directories. Almost everyone completes the first. The second is
114
+ * where the users go.
115
+ *
116
+ * Everything that existed before answered a different question. `daemon_started` and
117
+ * `mcp_client_connected` describe the agent half only. `session_appConnects` describes the app
118
+ * half but is a WINDOW counter: it resets on every flush, so a user whose app connected in one
119
+ * window reads zero in every other, and the population it under-counts is exactly the population
120
+ * being measured. A funnel built on it reported fewer instrumented users than there were users
121
+ * calling tools, which is impossible on its face and was the first sign the field was unusable.
122
+ *
123
+ * Fired ONCE per daemon run, on the first connect only — so `daemon_started` → `app_instrumented`
124
+ * is a real rate rather than an inference, and a reconnecting page cannot inflate it.
125
+ */
126
+ readonly APP_INSTRUMENTED: "app_instrumented";
107
127
  /**
108
128
  * The agent LOST its Reticle tools — the worst thing this product does to anyone, and until now
109
129
  * completely invisible in the field.
@@ -160,14 +180,24 @@ export type TelemetryActor = (typeof TelemetryActor)[keyof typeof TelemetryActor
160
180
  * What `projectId` was derived from — and therefore whether it is comparable ACROSS machines.
161
181
  *
162
182
  * This is the field that keeps "how many users share this project" from silently lying. A
163
- * cwd-derived id is unique per machine, so those rows always show exactly one user per project. Left
183
+ * path-derived id is unique per machine, so those rows always show exactly one user per project. Left
164
184
  * unlabelled they would drag the average toward 1 and hide real team adoption; labelled, the
165
185
  * analytics can restrict that question to `git_origin` rows, where it is a real measurement.
186
+ *
187
+ * The three non-origin sources are ordered by how stable they are WITHIN one machine, which is the
188
+ * property the funnel actually needs: `init` runs in the app directory and the daemon is spawned from
189
+ * wherever the agent's client happens to sit, so an id that changes with the working directory
190
+ * severs the two halves of the funnel. Only `cwd` has that defect, and it is now the last resort
191
+ * rather than the first fallback — the field showed many ids minted for a single project.
166
192
  */
167
193
  export declare const ProjectIdSource: {
168
194
  /** Hash of the shared git origin — the same on every clone, so cross-machine counting is valid. */
169
195
  readonly GIT_ORIGIN: "git_origin";
170
- /** Hash of the local directory path — unique per machine; NOT comparable across users. */
196
+ /** Hash of the repo ROOT path — machine-local, but the same for every directory inside the repo. */
197
+ readonly GIT_ROOT: "git_root";
198
+ /** Hash of the nearest package.json's directory — machine-local; used when there is no git at all. */
199
+ readonly PACKAGE_ROOT: "package_root";
200
+ /** Hash of the raw working directory — the last resort, and the only source that is NOT stable. */
171
201
  readonly CWD: "cwd";
172
202
  };
173
203
  export type ProjectIdSource = (typeof ProjectIdSource)[keyof typeof ProjectIdSource];
@@ -244,6 +274,7 @@ export declare const VerificationSchema: z.ZodObject<{
244
274
  */
245
275
  reason: z.ZodOptional<z.ZodNativeEnum<{
246
276
  readonly INCONCLUSIVE: "inconclusive";
277
+ readonly OBSERVATION_LOST: "observation_lost";
247
278
  readonly ASSERTION_FAILED: "assertion_failed";
248
279
  readonly CONTRADICTED: "contradicted";
249
280
  readonly ALREADY_TRUE: "already_true";
@@ -254,24 +285,43 @@ export declare const VerificationSchema: z.ZodObject<{
254
285
  readonly UNSETTLED: "unsettled";
255
286
  readonly PROVED: "proved";
256
287
  }>>;
288
+ /**
289
+ * WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
290
+ *
291
+ * The three causes belong to three different owners and need three different fixes, and without
292
+ * this they are one bar. The one time we had to answer it the data could not, and the answer
293
+ * turned out to be that our own eviction counter was miscounting.
294
+ *
295
+ * ONE value, not a list: `losses` can hold several and a multi-value property is not something a
296
+ * dashboard can group by, so the FIRST is sent and the order in the producers is the order of
297
+ * ownership — ours before the page's. Absent on every verdict whose capture was clean.
298
+ */
299
+ uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
300
+ readonly BUFFER_LOSS: "buffer_loss";
301
+ readonly TRANSPORT_GAP: "transport_gap";
302
+ readonly BLIND_SPOT: "blind_spot";
303
+ readonly OTHER: "other";
304
+ }>>;
257
305
  }, "strip", z.ZodTypeAny, {
258
- via: string;
259
306
  verified: string;
307
+ via: string;
260
308
  passed: boolean;
261
309
  falseGreenCaught: boolean;
262
310
  durationMs?: number | undefined;
263
- reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
264
- brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
311
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
312
+ brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
265
313
  browser?: string | undefined;
314
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
266
315
  }, {
267
- via: string;
268
316
  verified: string;
317
+ via: string;
269
318
  passed: boolean;
270
319
  falseGreenCaught: boolean;
271
320
  durationMs?: number | undefined;
272
- reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
273
- brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
321
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
322
+ brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
274
323
  browser?: string | undefined;
324
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
275
325
  }>;
276
326
  export type Verification = z.infer<typeof VerificationSchema>;
277
327
  /** Which way the installed version moved, and between which versions. */
@@ -310,6 +360,18 @@ export type VersionChange = z.infer<typeof VersionChangeSchema>;
310
360
  * give the hash a meaning, while keeping the line that matters: our code and our failure, never the
311
361
  * user's code and never their data.
312
362
  */
363
+ /**
364
+ * Whether a failed connection was aimed at a port Reticle itself uses.
365
+ *
366
+ * An enum rather than the number, because the number is the reporter's and the answer is ours: all
367
+ * anyone needs to know is whose problem it is. Refused on a Reticle port is a lifecycle problem —
368
+ * a daemon that is not up; refused anywhere else is somebody else's service.
369
+ */
370
+ export declare const CrashPort: {
371
+ readonly RETICLE: "reticle";
372
+ readonly OTHER: "other";
373
+ };
374
+ export type CrashPort = (typeof CrashPort)[keyof typeof CrashPort];
313
375
  export declare const CrashSchema: z.ZodObject<{
314
376
  /** `uncaught_exception` | `unhandled_rejection`. */
315
377
  kind: z.ZodString;
@@ -373,11 +435,40 @@ export declare const CrashSchema: z.ZodObject<{
373
435
  load1x100: number;
374
436
  cpuCount: number;
375
437
  }>>;
438
+ /**
439
+ * The failing SYSCALL — `connect`, `write`, `open`. Already inside `message`; structured here so
440
+ * it can be grouped on rather than parsed back out of prose.
441
+ */
442
+ syscall: z.ZodOptional<z.ZodString>;
443
+ /**
444
+ * The symbolic errno — `ECONNREFUSED`, `EPIPE`. The name, never the platform-specific number.
445
+ */
446
+ errno: z.ZodOptional<z.ZodString>;
447
+ /**
448
+ * Was the target the machine it was running on?
449
+ *
450
+ * One bit, and it splits two populations that currently look identical and have different owners:
451
+ * refused ON loopback is a Reticle-lifecycle problem (no daemon), refused off-box is a network
452
+ * problem that is not ours.
453
+ */
454
+ loopback: z.ZodOptional<z.ZodBoolean>;
455
+ /** Whether the port was one of ours, as an enum. The number itself is never sent. */
456
+ port: z.ZodOptional<z.ZodEnum<["reticle", "other"]>>;
457
+ /**
458
+ * The innermost frame naming NODE's own source — `node:net:1637`.
459
+ *
460
+ * Only present when the crash is a system error AND no Reticle frame survived, which is exactly
461
+ * the report that otherwise arrives with no location at all. It is a line in Node's published
462
+ * source: it says a connect failed rather than a DNS lookup, and carries nothing about the
463
+ * machine, the app, or anyone's directory layout.
464
+ */
465
+ internalFrame: z.ZodOptional<z.ZodString>;
376
466
  }, "strip", z.ZodTypeAny, {
377
467
  kind: string;
378
468
  message?: string | undefined;
379
469
  errorType?: string | undefined;
380
470
  tool?: string | undefined;
471
+ port?: "other" | "reticle" | undefined;
381
472
  fingerprint?: string | undefined;
382
473
  machine?: {
383
474
  rssMb: number;
@@ -391,11 +482,16 @@ export declare const CrashSchema: z.ZodObject<{
391
482
  breadcrumb?: string[] | undefined;
392
483
  nodeVersion?: string | undefined;
393
484
  arch?: string | undefined;
485
+ syscall?: string | undefined;
486
+ errno?: string | undefined;
487
+ loopback?: boolean | undefined;
488
+ internalFrame?: string | undefined;
394
489
  }, {
395
490
  kind: string;
396
491
  message?: string | undefined;
397
492
  errorType?: string | undefined;
398
493
  tool?: string | undefined;
494
+ port?: "other" | "reticle" | undefined;
399
495
  fingerprint?: string | undefined;
400
496
  machine?: {
401
497
  rssMb: number;
@@ -409,6 +505,10 @@ export declare const CrashSchema: z.ZodObject<{
409
505
  breadcrumb?: string[] | undefined;
410
506
  nodeVersion?: string | undefined;
411
507
  arch?: string | undefined;
508
+ syscall?: string | undefined;
509
+ errno?: string | undefined;
510
+ loopback?: boolean | undefined;
511
+ internalFrame?: string | undefined;
412
512
  }>;
413
513
  export type Crash = z.infer<typeof CrashSchema>;
414
514
  /**
@@ -519,14 +619,14 @@ export declare const BugFoundSchema: z.ZodObject<{
519
619
  source: "replay" | "contradiction" | "crawl" | "assertion";
520
620
  falseGreen: boolean;
521
621
  repeat: boolean;
522
- attribution?: "app" | "request" | "reticle" | undefined;
622
+ attribution?: "app" | "reticle" | "request" | undefined;
523
623
  tool?: string | undefined;
524
624
  }, {
525
625
  kind: string;
526
626
  source: "replay" | "contradiction" | "crawl" | "assertion";
527
627
  falseGreen: boolean;
528
628
  repeat: boolean;
529
- attribution?: "app" | "request" | "reticle" | undefined;
629
+ attribution?: "app" | "reticle" | "request" | undefined;
530
630
  tool?: string | undefined;
531
631
  }>;
532
632
  export type BugFound = z.infer<typeof BugFoundSchema>;
@@ -552,6 +652,31 @@ export declare const McpConnectionSchema: z.ZodObject<{
552
652
  client?: string | undefined;
553
653
  }>;
554
654
  export type McpConnection = z.infer<typeof McpConnectionSchema>;
655
+ /**
656
+ * `app_instrumented`: an app carrying the SDK reached this daemon for the first time.
657
+ *
658
+ * The install has two halves — the MCP server registered so the agent has the tools, and the SDK
659
+ * loaded by a running page so there is something to look at — and this is the only signal for the
660
+ * second. Deliberately carries NO stack and no framework: `project_profiled` already reports both
661
+ * for the same daemon run, and the two join on `sessionId`.
662
+ */
663
+ export declare const AppInstrumentationSchema: z.ZodObject<{
664
+ /** Whether `reticle init` had been run in this directory (a projectId is stamped). */
665
+ initialized: z.ZodBoolean;
666
+ /** Whether an MCP client was already attached when the app arrived. */
667
+ agentAttached: z.ZodBoolean;
668
+ /** How long the daemon had been up. Large values mean Reticle sat there with nothing wired. */
669
+ msToFirstApp: z.ZodNumber;
670
+ }, "strip", z.ZodTypeAny, {
671
+ msToFirstApp: number;
672
+ initialized: boolean;
673
+ agentAttached: boolean;
674
+ }, {
675
+ msToFirstApp: number;
676
+ initialized: boolean;
677
+ agentAttached: boolean;
678
+ }>;
679
+ export type AppInstrumentation = z.infer<typeof AppInstrumentationSchema>;
555
680
  /**
556
681
  * WHICH stage of an MCP outage this is. Reported at most twice per proxy process, and the two are
557
682
  * different facts: `first` says the session lost its tools at all, `budget_spent` says the proxy
@@ -612,14 +737,28 @@ export declare const McpOutageSchema: z.ZodObject<{
612
737
  }>;
613
738
  /** Consecutive reconnects tried when this was reported. `first` is near 1; a spent budget is high. */
614
739
  attempts: z.ZodNumber;
740
+ /**
741
+ * In-flight tool calls this drop actually killed — the only part an agent can FEEL.
742
+ *
743
+ * Without it every drop looks equally bad. In the field almost every outage was
744
+ * `stage: first` with `attempts: 1`** — the stream ended once and the proxy reconnected, which for
745
+ * an agent with nothing in flight is invisible. Reading that 321 as "the agent lost its tools 321
746
+ * times" overstates the problem by roughly the whole number, and buries the one drop that mattered.
747
+ *
748
+ * Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
749
+ * worth driving down.
750
+ */
751
+ pendingLost: z.ZodOptional<z.ZodNumber>;
615
752
  }, "strip", z.ZodTypeAny, {
616
753
  reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
617
754
  attempts: number;
618
755
  stage: "first" | "budget_spent";
756
+ pendingLost?: number | undefined;
619
757
  }, {
620
758
  reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
621
759
  attempts: number;
622
760
  stage: "first" | "budget_spent";
761
+ pendingLost?: number | undefined;
623
762
  }>;
624
763
  export type McpOutage = z.infer<typeof McpOutageSchema>;
625
764
  /** How `reticle init` went. The onboarding funnel, which had no instrumentation whatsoever. */
@@ -740,6 +879,26 @@ export declare const TelemetryEventSchema: z.ZodObject<{
740
879
  * identical to healthy usage in every other metric.
741
880
  */
742
881
  readonly MCP_CLIENT_CONNECTED: "mcp_client_connected";
882
+ /**
883
+ * An app carrying the SDK connected to this daemon for the first time in its life.
884
+ *
885
+ * THE funnel step, and the one nothing could measure. Reticle's install has two halves — register
886
+ * the MCP server so the agent has the tools, and get the SDK into a running page so there is
887
+ * something for those tools to look at — and they are done at different times, by different
888
+ * commands, often in different directories. Almost everyone completes the first. The second is
889
+ * where the users go.
890
+ *
891
+ * Everything that existed before answered a different question. `daemon_started` and
892
+ * `mcp_client_connected` describe the agent half only. `session_appConnects` describes the app
893
+ * half but is a WINDOW counter: it resets on every flush, so a user whose app connected in one
894
+ * window reads zero in every other, and the population it under-counts is exactly the population
895
+ * being measured. A funnel built on it reported fewer instrumented users than there were users
896
+ * calling tools, which is impossible on its face and was the first sign the field was unusable.
897
+ *
898
+ * Fired ONCE per daemon run, on the first connect only — so `daemon_started` → `app_instrumented`
899
+ * is a real rate rather than an inference, and a reconnecting page cannot inflate it.
900
+ */
901
+ readonly APP_INSTRUMENTED: "app_instrumented";
743
902
  /**
744
903
  * The agent LOST its Reticle tools — the worst thing this product does to anyone, and until now
745
904
  * completely invisible in the field.
@@ -790,7 +949,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
790
949
  projectIdSource: z.ZodOptional<z.ZodNativeEnum<{
791
950
  /** Hash of the shared git origin — the same on every clone, so cross-machine counting is valid. */
792
951
  readonly GIT_ORIGIN: "git_origin";
793
- /** Hash of the local directory path — unique per machine; NOT comparable across users. */
952
+ /** Hash of the repo ROOT path — machine-local, but the same for every directory inside the repo. */
953
+ readonly GIT_ROOT: "git_root";
954
+ /** Hash of the nearest package.json's directory — machine-local; used when there is no git at all. */
955
+ readonly PACKAGE_ROOT: "package_root";
956
+ /** Hash of the raw working directory — the last resort, and the only source that is NOT stable. */
794
957
  readonly CWD: "cwd";
795
958
  }>>;
796
959
  /** `process.platform` (darwin/linux/win32) — OS mix, low cardinality, non-identifying. */
@@ -967,6 +1130,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
967
1130
  browserCommands: z.ZodOptional<z.ZodNumber>;
968
1131
  peakConcurrentTools: z.ZodOptional<z.ZodNumber>;
969
1132
  unknownToolCalls: z.ZodOptional<z.ZodNumber>;
1133
+ unknownTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
970
1134
  noSessionErrors: z.ZodOptional<z.ZodNumber>;
971
1135
  consecutiveRepeats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
972
1136
  abandonedActions: z.ZodOptional<z.ZodNumber>;
@@ -993,7 +1157,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
993
1157
  cpuCount: number;
994
1158
  }>>;
995
1159
  clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1160
+ clientVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1161
+ surface: z.ZodOptional<z.ZodString>;
1162
+ appConnects: z.ZodOptional<z.ZodNumber>;
1163
+ msToFirstApp: z.ZodOptional<z.ZodNumber>;
1164
+ endReason: z.ZodOptional<z.ZodEnum<["never_used", "explored", "abandoned", "verified", "client_left"]>>;
1165
+ feedbackPrompted: z.ZodOptional<z.ZodNumber>;
1166
+ errorClasses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1167
+ errorsRecovered: z.ZodOptional<z.ZodNumber>;
1168
+ errorsRepeated: z.ZodOptional<z.ZodNumber>;
996
1169
  final: z.ZodBoolean;
1170
+ exit: z.ZodOptional<z.ZodEnum<["idle", "signal", "unknown"]>>;
997
1171
  }, "strip", z.ZodTypeAny, {
998
1172
  durationMs: number;
999
1173
  toolCalls: number;
@@ -1001,6 +1175,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1001
1175
  toolErrors: number;
1002
1176
  verifications: number;
1003
1177
  final: boolean;
1178
+ surface?: string | undefined;
1004
1179
  errors?: {
1005
1180
  message: string;
1006
1181
  count: number;
@@ -1031,6 +1206,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1031
1206
  browserCommands?: number | undefined;
1032
1207
  peakConcurrentTools?: number | undefined;
1033
1208
  unknownToolCalls?: number | undefined;
1209
+ unknownTools?: Record<string, number> | undefined;
1034
1210
  noSessionErrors?: number | undefined;
1035
1211
  consecutiveRepeats?: Record<string, number> | undefined;
1036
1212
  abandonedActions?: number | undefined;
@@ -1043,6 +1219,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1043
1219
  cpuCount: number;
1044
1220
  } | undefined;
1045
1221
  clients?: string[] | undefined;
1222
+ clientVersions?: Record<string, string> | undefined;
1223
+ appConnects?: number | undefined;
1224
+ msToFirstApp?: number | undefined;
1225
+ endReason?: "never_used" | "explored" | "abandoned" | "verified" | "client_left" | undefined;
1226
+ feedbackPrompted?: number | undefined;
1227
+ errorClasses?: Record<string, number> | undefined;
1228
+ errorsRecovered?: number | undefined;
1229
+ errorsRepeated?: number | undefined;
1230
+ exit?: "signal" | "idle" | "unknown" | undefined;
1046
1231
  }, {
1047
1232
  durationMs: number;
1048
1233
  toolCalls: number;
@@ -1050,6 +1235,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1050
1235
  toolErrors: number;
1051
1236
  verifications: number;
1052
1237
  final: boolean;
1238
+ surface?: string | undefined;
1053
1239
  errors?: {
1054
1240
  message: string;
1055
1241
  count: number;
@@ -1080,6 +1266,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1080
1266
  browserCommands?: number | undefined;
1081
1267
  peakConcurrentTools?: number | undefined;
1082
1268
  unknownToolCalls?: number | undefined;
1269
+ unknownTools?: Record<string, number> | undefined;
1083
1270
  noSessionErrors?: number | undefined;
1084
1271
  consecutiveRepeats?: Record<string, number> | undefined;
1085
1272
  abandonedActions?: number | undefined;
@@ -1092,10 +1279,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1092
1279
  cpuCount: number;
1093
1280
  } | undefined;
1094
1281
  clients?: string[] | undefined;
1282
+ clientVersions?: Record<string, string> | undefined;
1283
+ appConnects?: number | undefined;
1284
+ msToFirstApp?: number | undefined;
1285
+ endReason?: "never_used" | "explored" | "abandoned" | "verified" | "client_left" | undefined;
1286
+ feedbackPrompted?: number | undefined;
1287
+ errorClasses?: Record<string, number> | undefined;
1288
+ errorsRecovered?: number | undefined;
1289
+ errorsRepeated?: number | undefined;
1290
+ exit?: "signal" | "idle" | "unknown" | undefined;
1095
1291
  }>>;
1096
1292
  /** Only on `project_profiled`: the shape and depth-of-use of the project. */
1097
1293
  project: z.ZodOptional<z.ZodObject<{
1098
1294
  stack: z.ZodOptional<z.ZodString>;
1295
+ stackSource: z.ZodOptional<z.ZodEnum<["cwd", "workspace"]>>;
1099
1296
  stackMajor: z.ZodOptional<z.ZodNumber>;
1100
1297
  size: z.ZodOptional<z.ZodNativeEnum<{
1101
1298
  readonly TINY: "tiny";
@@ -1140,6 +1337,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1140
1337
  featureDepth: number;
1141
1338
  stack?: string | undefined;
1142
1339
  stackMajor?: number | undefined;
1340
+ stackSource?: "cwd" | "workspace" | undefined;
1143
1341
  size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1144
1342
  monorepo?: boolean | undefined;
1145
1343
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
@@ -1156,6 +1354,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1156
1354
  featureDepth: number;
1157
1355
  stack?: string | undefined;
1158
1356
  stackMajor?: number | undefined;
1357
+ stackSource?: "cwd" | "workspace" | undefined;
1159
1358
  size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1160
1359
  monorepo?: boolean | undefined;
1161
1360
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
@@ -1220,6 +1419,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1220
1419
  */
1221
1420
  reason: z.ZodOptional<z.ZodNativeEnum<{
1222
1421
  readonly INCONCLUSIVE: "inconclusive";
1422
+ readonly OBSERVATION_LOST: "observation_lost";
1223
1423
  readonly ASSERTION_FAILED: "assertion_failed";
1224
1424
  readonly CONTRADICTED: "contradicted";
1225
1425
  readonly ALREADY_TRUE: "already_true";
@@ -1230,24 +1430,43 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1230
1430
  readonly UNSETTLED: "unsettled";
1231
1431
  readonly PROVED: "proved";
1232
1432
  }>>;
1433
+ /**
1434
+ * WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
1435
+ *
1436
+ * The three causes belong to three different owners and need three different fixes, and without
1437
+ * this they are one bar. The one time we had to answer it the data could not, and the answer
1438
+ * turned out to be that our own eviction counter was miscounting.
1439
+ *
1440
+ * ONE value, not a list: `losses` can hold several and a multi-value property is not something a
1441
+ * dashboard can group by, so the FIRST is sent and the order in the producers is the order of
1442
+ * ownership — ours before the page's. Absent on every verdict whose capture was clean.
1443
+ */
1444
+ uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
1445
+ readonly BUFFER_LOSS: "buffer_loss";
1446
+ readonly TRANSPORT_GAP: "transport_gap";
1447
+ readonly BLIND_SPOT: "blind_spot";
1448
+ readonly OTHER: "other";
1449
+ }>>;
1233
1450
  }, "strip", z.ZodTypeAny, {
1234
- via: string;
1235
1451
  verified: string;
1452
+ via: string;
1236
1453
  passed: boolean;
1237
1454
  falseGreenCaught: boolean;
1238
1455
  durationMs?: number | undefined;
1239
- reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
1240
- brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
1456
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
1457
+ brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1241
1458
  browser?: string | undefined;
1459
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
1242
1460
  }, {
1243
- via: string;
1244
1461
  verified: string;
1462
+ via: string;
1245
1463
  passed: boolean;
1246
1464
  falseGreenCaught: boolean;
1247
1465
  durationMs?: number | undefined;
1248
- reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
1249
- brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
1466
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
1467
+ brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1250
1468
  browser?: string | undefined;
1469
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
1251
1470
  }>>;
1252
1471
  /** Only on `version_changed`. */
1253
1472
  versionChange: z.ZodOptional<z.ZodObject<{
@@ -1339,11 +1558,40 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1339
1558
  load1x100: number;
1340
1559
  cpuCount: number;
1341
1560
  }>>;
1561
+ /**
1562
+ * The failing SYSCALL — `connect`, `write`, `open`. Already inside `message`; structured here so
1563
+ * it can be grouped on rather than parsed back out of prose.
1564
+ */
1565
+ syscall: z.ZodOptional<z.ZodString>;
1566
+ /**
1567
+ * The symbolic errno — `ECONNREFUSED`, `EPIPE`. The name, never the platform-specific number.
1568
+ */
1569
+ errno: z.ZodOptional<z.ZodString>;
1570
+ /**
1571
+ * Was the target the machine it was running on?
1572
+ *
1573
+ * One bit, and it splits two populations that currently look identical and have different owners:
1574
+ * refused ON loopback is a Reticle-lifecycle problem (no daemon), refused off-box is a network
1575
+ * problem that is not ours.
1576
+ */
1577
+ loopback: z.ZodOptional<z.ZodBoolean>;
1578
+ /** Whether the port was one of ours, as an enum. The number itself is never sent. */
1579
+ port: z.ZodOptional<z.ZodEnum<["reticle", "other"]>>;
1580
+ /**
1581
+ * The innermost frame naming NODE's own source — `node:net:1637`.
1582
+ *
1583
+ * Only present when the crash is a system error AND no Reticle frame survived, which is exactly
1584
+ * the report that otherwise arrives with no location at all. It is a line in Node's published
1585
+ * source: it says a connect failed rather than a DNS lookup, and carries nothing about the
1586
+ * machine, the app, or anyone's directory layout.
1587
+ */
1588
+ internalFrame: z.ZodOptional<z.ZodString>;
1342
1589
  }, "strip", z.ZodTypeAny, {
1343
1590
  kind: string;
1344
1591
  message?: string | undefined;
1345
1592
  errorType?: string | undefined;
1346
1593
  tool?: string | undefined;
1594
+ port?: "other" | "reticle" | undefined;
1347
1595
  fingerprint?: string | undefined;
1348
1596
  machine?: {
1349
1597
  rssMb: number;
@@ -1357,11 +1605,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1357
1605
  breadcrumb?: string[] | undefined;
1358
1606
  nodeVersion?: string | undefined;
1359
1607
  arch?: string | undefined;
1608
+ syscall?: string | undefined;
1609
+ errno?: string | undefined;
1610
+ loopback?: boolean | undefined;
1611
+ internalFrame?: string | undefined;
1360
1612
  }, {
1361
1613
  kind: string;
1362
1614
  message?: string | undefined;
1363
1615
  errorType?: string | undefined;
1364
1616
  tool?: string | undefined;
1617
+ port?: "other" | "reticle" | undefined;
1365
1618
  fingerprint?: string | undefined;
1366
1619
  machine?: {
1367
1620
  rssMb: number;
@@ -1375,6 +1628,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1375
1628
  breadcrumb?: string[] | undefined;
1376
1629
  nodeVersion?: string | undefined;
1377
1630
  arch?: string | undefined;
1631
+ syscall?: string | undefined;
1632
+ errno?: string | undefined;
1633
+ loopback?: boolean | undefined;
1634
+ internalFrame?: string | undefined;
1378
1635
  }>>;
1379
1636
  /** Only on `identified` — self-declared, opt-in, and the only personal data ever sent. */
1380
1637
  identity: z.ZodOptional<z.ZodObject<{
@@ -1498,14 +1755,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1498
1755
  source: "replay" | "contradiction" | "crawl" | "assertion";
1499
1756
  falseGreen: boolean;
1500
1757
  repeat: boolean;
1501
- attribution?: "app" | "request" | "reticle" | undefined;
1758
+ attribution?: "app" | "reticle" | "request" | undefined;
1502
1759
  tool?: string | undefined;
1503
1760
  }, {
1504
1761
  kind: string;
1505
1762
  source: "replay" | "contradiction" | "crawl" | "assertion";
1506
1763
  falseGreen: boolean;
1507
1764
  repeat: boolean;
1508
- attribution?: "app" | "request" | "reticle" | undefined;
1765
+ attribution?: "app" | "reticle" | "request" | undefined;
1509
1766
  tool?: string | undefined;
1510
1767
  }>>;
1511
1768
  /** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
@@ -1530,17 +1787,48 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1530
1787
  }>;
1531
1788
  /** Consecutive reconnects tried when this was reported. `first` is near 1; a spent budget is high. */
1532
1789
  attempts: z.ZodNumber;
1790
+ /**
1791
+ * In-flight tool calls this drop actually killed — the only part an agent can FEEL.
1792
+ *
1793
+ * Without it every drop looks equally bad. In the field almost every outage was
1794
+ * `stage: first` with `attempts: 1`** — the stream ended once and the proxy reconnected, which for
1795
+ * an agent with nothing in flight is invisible. Reading that 321 as "the agent lost its tools 321
1796
+ * times" overstates the problem by roughly the whole number, and buries the one drop that mattered.
1797
+ *
1798
+ * Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
1799
+ * worth driving down.
1800
+ */
1801
+ pendingLost: z.ZodOptional<z.ZodNumber>;
1533
1802
  }, "strip", z.ZodTypeAny, {
1534
1803
  reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
1535
1804
  attempts: number;
1536
1805
  stage: "first" | "budget_spent";
1806
+ pendingLost?: number | undefined;
1537
1807
  }, {
1538
1808
  reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
1539
1809
  attempts: number;
1540
1810
  stage: "first" | "budget_spent";
1811
+ pendingLost?: number | undefined;
1812
+ }>>;
1813
+ /** Only on `app_instrumented`: the install's second half finally happening. */
1814
+ instrumentation: z.ZodOptional<z.ZodObject<{
1815
+ /** Whether `reticle init` had been run in this directory (a projectId is stamped). */
1816
+ initialized: z.ZodBoolean;
1817
+ /** Whether an MCP client was already attached when the app arrived. */
1818
+ agentAttached: z.ZodBoolean;
1819
+ /** How long the daemon had been up. Large values mean Reticle sat there with nothing wired. */
1820
+ msToFirstApp: z.ZodNumber;
1821
+ }, "strip", z.ZodTypeAny, {
1822
+ msToFirstApp: number;
1823
+ initialized: boolean;
1824
+ agentAttached: boolean;
1825
+ }, {
1826
+ msToFirstApp: number;
1827
+ initialized: boolean;
1828
+ agentAttached: boolean;
1541
1829
  }>>;
1542
1830
  }, "strip", z.ZodTypeAny, {
1543
- 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" | "mcp_connection_lost" | "init_completed" | "bug_found";
1831
+ 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" | "bug_found";
1544
1832
  version: string;
1545
1833
  ci: boolean;
1546
1834
  v: 3;
@@ -1555,7 +1843,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1555
1843
  source: "replay" | "contradiction" | "crawl" | "assertion";
1556
1844
  falseGreen: boolean;
1557
1845
  repeat: boolean;
1558
- attribution?: "app" | "request" | "reticle" | undefined;
1846
+ attribution?: "app" | "reticle" | "request" | undefined;
1559
1847
  tool?: string | undefined;
1560
1848
  } | undefined;
1561
1849
  project?: {
@@ -1570,6 +1858,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1570
1858
  featureDepth: number;
1571
1859
  stack?: string | undefined;
1572
1860
  stackMajor?: number | undefined;
1861
+ stackSource?: "cwd" | "workspace" | undefined;
1573
1862
  size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1574
1863
  monorepo?: boolean | undefined;
1575
1864
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
@@ -1582,6 +1871,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1582
1871
  toolErrors: number;
1583
1872
  verifications: number;
1584
1873
  final: boolean;
1874
+ surface?: string | undefined;
1585
1875
  errors?: {
1586
1876
  message: string;
1587
1877
  count: number;
@@ -1612,6 +1902,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1612
1902
  browserCommands?: number | undefined;
1613
1903
  peakConcurrentTools?: number | undefined;
1614
1904
  unknownToolCalls?: number | undefined;
1905
+ unknownTools?: Record<string, number> | undefined;
1615
1906
  noSessionErrors?: number | undefined;
1616
1907
  consecutiveRepeats?: Record<string, number> | undefined;
1617
1908
  abandonedActions?: number | undefined;
@@ -1624,8 +1915,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1624
1915
  cpuCount: number;
1625
1916
  } | undefined;
1626
1917
  clients?: string[] | undefined;
1918
+ clientVersions?: Record<string, string> | undefined;
1919
+ appConnects?: number | undefined;
1920
+ msToFirstApp?: number | undefined;
1921
+ endReason?: "never_used" | "explored" | "abandoned" | "verified" | "client_left" | undefined;
1922
+ feedbackPrompted?: number | undefined;
1923
+ errorClasses?: Record<string, number> | undefined;
1924
+ errorsRecovered?: number | undefined;
1925
+ errorsRepeated?: number | undefined;
1926
+ exit?: "signal" | "idle" | "unknown" | undefined;
1627
1927
  } | undefined;
1628
- projectIdSource?: "cwd" | "git_origin" | undefined;
1928
+ projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
1629
1929
  tzOffsetMin?: number | undefined;
1630
1930
  feedback?: {
1631
1931
  text: string;
@@ -1649,14 +1949,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1649
1949
  actor?: "agent" | "human" | undefined;
1650
1950
  flags?: string[] | undefined;
1651
1951
  verification?: {
1652
- via: string;
1653
1952
  verified: string;
1953
+ via: string;
1654
1954
  passed: boolean;
1655
1955
  falseGreenCaught: boolean;
1656
1956
  durationMs?: number | undefined;
1657
- reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
1658
- brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
1957
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
1958
+ brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1659
1959
  browser?: string | undefined;
1960
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
1660
1961
  } | undefined;
1661
1962
  versionChange?: {
1662
1963
  direction: string;
@@ -1669,6 +1970,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1669
1970
  message?: string | undefined;
1670
1971
  errorType?: string | undefined;
1671
1972
  tool?: string | undefined;
1973
+ port?: "other" | "reticle" | undefined;
1672
1974
  fingerprint?: string | undefined;
1673
1975
  machine?: {
1674
1976
  rssMb: number;
@@ -1682,6 +1984,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1682
1984
  breadcrumb?: string[] | undefined;
1683
1985
  nodeVersion?: string | undefined;
1684
1986
  arch?: string | undefined;
1987
+ syscall?: string | undefined;
1988
+ errno?: string | undefined;
1989
+ loopback?: boolean | undefined;
1990
+ internalFrame?: string | undefined;
1685
1991
  } | undefined;
1686
1992
  identity?: {
1687
1993
  context: "company" | "side_project" | "open_source" | "learning";
@@ -1703,9 +2009,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1703
2009
  reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
1704
2010
  attempts: number;
1705
2011
  stage: "first" | "budget_spent";
2012
+ pendingLost?: number | undefined;
2013
+ } | undefined;
2014
+ instrumentation?: {
2015
+ msToFirstApp: number;
2016
+ initialized: boolean;
2017
+ agentAttached: boolean;
1706
2018
  } | undefined;
1707
2019
  }, {
1708
- 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" | "mcp_connection_lost" | "init_completed" | "bug_found";
2020
+ 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" | "bug_found";
1709
2021
  version: string;
1710
2022
  ci: boolean;
1711
2023
  v: 3;
@@ -1720,7 +2032,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1720
2032
  source: "replay" | "contradiction" | "crawl" | "assertion";
1721
2033
  falseGreen: boolean;
1722
2034
  repeat: boolean;
1723
- attribution?: "app" | "request" | "reticle" | undefined;
2035
+ attribution?: "app" | "reticle" | "request" | undefined;
1724
2036
  tool?: string | undefined;
1725
2037
  } | undefined;
1726
2038
  project?: {
@@ -1735,6 +2047,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1735
2047
  featureDepth: number;
1736
2048
  stack?: string | undefined;
1737
2049
  stackMajor?: number | undefined;
2050
+ stackSource?: "cwd" | "workspace" | undefined;
1738
2051
  size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
1739
2052
  monorepo?: boolean | undefined;
1740
2053
  forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
@@ -1747,6 +2060,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1747
2060
  toolErrors: number;
1748
2061
  verifications: number;
1749
2062
  final: boolean;
2063
+ surface?: string | undefined;
1750
2064
  errors?: {
1751
2065
  message: string;
1752
2066
  count: number;
@@ -1777,6 +2091,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1777
2091
  browserCommands?: number | undefined;
1778
2092
  peakConcurrentTools?: number | undefined;
1779
2093
  unknownToolCalls?: number | undefined;
2094
+ unknownTools?: Record<string, number> | undefined;
1780
2095
  noSessionErrors?: number | undefined;
1781
2096
  consecutiveRepeats?: Record<string, number> | undefined;
1782
2097
  abandonedActions?: number | undefined;
@@ -1789,8 +2104,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1789
2104
  cpuCount: number;
1790
2105
  } | undefined;
1791
2106
  clients?: string[] | undefined;
2107
+ clientVersions?: Record<string, string> | undefined;
2108
+ appConnects?: number | undefined;
2109
+ msToFirstApp?: number | undefined;
2110
+ endReason?: "never_used" | "explored" | "abandoned" | "verified" | "client_left" | undefined;
2111
+ feedbackPrompted?: number | undefined;
2112
+ errorClasses?: Record<string, number> | undefined;
2113
+ errorsRecovered?: number | undefined;
2114
+ errorsRepeated?: number | undefined;
2115
+ exit?: "signal" | "idle" | "unknown" | undefined;
1792
2116
  } | undefined;
1793
- projectIdSource?: "cwd" | "git_origin" | undefined;
2117
+ projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
1794
2118
  tzOffsetMin?: number | undefined;
1795
2119
  feedback?: {
1796
2120
  text: string;
@@ -1814,14 +2138,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1814
2138
  actor?: "agent" | "human" | undefined;
1815
2139
  flags?: string[] | undefined;
1816
2140
  verification?: {
1817
- via: string;
1818
2141
  verified: string;
2142
+ via: string;
1819
2143
  passed: boolean;
1820
2144
  falseGreenCaught: boolean;
1821
2145
  durationMs?: number | undefined;
1822
- reason?: "inconclusive" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
1823
- brand?: "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | "other" | undefined;
2146
+ reason?: "inconclusive" | "observation_lost" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "outcome_pending" | "outcome_unread" | "unsettled" | "proved" | undefined;
2147
+ brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
1824
2148
  browser?: string | undefined;
2149
+ uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
1825
2150
  } | undefined;
1826
2151
  versionChange?: {
1827
2152
  direction: string;
@@ -1834,6 +2159,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1834
2159
  message?: string | undefined;
1835
2160
  errorType?: string | undefined;
1836
2161
  tool?: string | undefined;
2162
+ port?: "other" | "reticle" | undefined;
1837
2163
  fingerprint?: string | undefined;
1838
2164
  machine?: {
1839
2165
  rssMb: number;
@@ -1847,6 +2173,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1847
2173
  breadcrumb?: string[] | undefined;
1848
2174
  nodeVersion?: string | undefined;
1849
2175
  arch?: string | undefined;
2176
+ syscall?: string | undefined;
2177
+ errno?: string | undefined;
2178
+ loopback?: boolean | undefined;
2179
+ internalFrame?: string | undefined;
1850
2180
  } | undefined;
1851
2181
  identity?: {
1852
2182
  context: "company" | "side_project" | "open_source" | "learning";
@@ -1868,6 +2198,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
1868
2198
  reason: "other" | "sse_ended" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
1869
2199
  attempts: number;
1870
2200
  stage: "first" | "budget_spent";
2201
+ pendingLost?: number | undefined;
2202
+ } | undefined;
2203
+ instrumentation?: {
2204
+ msToFirstApp: number;
2205
+ initialized: boolean;
2206
+ agentAttached: boolean;
1871
2207
  } | undefined;
1872
2208
  }>;
1873
2209
  export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;