@reticlehq/core 3.8.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- package/dist/artifacts/flow-expect-flat.d.ts +8 -192
- package/dist/artifacts/flow-expect-flat.js +2 -2
- package/dist/artifacts/flow-results.d.ts +15 -0
- package/dist/artifacts/flow-types.d.ts +202 -2331
- package/dist/artifacts/flow-types.js +2 -2
- package/dist/artifacts/harness-map.d.ts +8 -69
- package/dist/artifacts/harness-map.js +1 -1
- package/dist/artifacts/hud-notices.d.ts +8 -82
- package/dist/artifacts/hud-notices.js +1 -1
- package/dist/artifacts/impact.d.ts +80 -1638
- package/dist/artifacts/impact.js +4 -4
- package/dist/artifacts/journal.d.ts +12 -247
- package/dist/artifacts/journal.js +2 -2
- package/dist/artifacts/prompt-context.d.ts +5 -43
- package/dist/artifacts/prompt-context.js +1 -1
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/onboarding.d.ts +8 -58
- package/dist/onboarding.js +1 -1
- package/dist/registry/daemon-registry.d.ts +2 -14
- package/dist/registry/daemon-registry.js +1 -1
- package/dist/registry/dev-server-registry.d.ts +2 -31
- package/dist/registry/dev-server-registry.js +1 -1
- package/dist/registry/project-registry.d.ts +4 -32
- package/dist/registry/project-registry.js +1 -1
- package/dist/schema/command-message.json +65 -68
- package/dist/schema/command-name.json +29 -33
- package/dist/schema/command-result.json +25 -30
- package/dist/schema/event-message.json +104 -103
- package/dist/schema/event-payloads.json +142 -119
- package/dist/schema/event-type.json +47 -50
- package/dist/schema/hello-message.json +150 -154
- package/dist/schema/reticle-event.json +98 -96
- package/dist/schema/reticle-message.json +338 -333
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-feedback.d.ts +11 -99
- package/dist/telemetry-feedback.js +1 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +39 -633
- package/dist/telemetry-session.js +10 -8
- package/dist/telemetry-signals.d.ts +58 -151
- package/dist/telemetry-signals.js +12 -1
- package/dist/telemetry.d.ts +137 -1814
- package/dist/telemetry.js +1 -1
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/instrumentation-coverage.d.ts +3 -3
- package/dist/verdict/instrumentation-coverage.js +1 -1
- package/dist/verdict/instrumentation-gap.d.ts +3 -10
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate.d.ts +1 -1
- package/dist/verdict/predicate.js +5 -5
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +13 -108
- package/dist/verdict/run-report.js +1 -1
- package/dist/verdict/security.d.ts +12 -0
- package/dist/verdict/security.js +94 -7
- package/dist/verdict/verification-run.d.ts +112 -1668
- package/dist/verdict/verification-run.js +4 -4
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/constants/event-types.d.ts +2 -0
- package/dist/wire/constants/event-types.js +2 -0
- package/dist/wire/constants/response-body-reason.d.ts +4 -4
- package/dist/wire/constants/response-body-reason.js +4 -4
- package/dist/wire/constants/reticle-env.d.ts +2 -0
- package/dist/wire/constants/reticle-env.js +2 -0
- package/dist/wire/event-payloads.d.ts +108 -678
- package/dist/wire/event-payloads.js +24 -7
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +66 -755
- package/dist/wire/messages.js +3 -3
- package/dist/wire/next-step.d.ts +11 -51
- package/dist/wire/next-step.js +1 -1
- package/dist/wire/platform-link.js +2 -2
- package/dist/wire/production/production-policy.d.ts +37 -83
- package/dist/wire/production/production-policy.js +1 -1
- package/dist/wire/types.d.ts +75 -698
- package/dist/wire/types.js +5 -5
- package/dist/words/upgrade.d.ts +3 -13
- package/dist/words/upgrade.js +1 -1
- package/package.json +3 -4
package/dist/telemetry.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* the tool's behaviour). Same conventions as the rest of core: enums are `as const` narrowed with
|
|
15
15
|
* `z.nativeEnum`, timestamps are epoch-ms NUMBERS, no `any`.
|
|
16
16
|
*/
|
|
17
|
-
import
|
|
17
|
+
import * as z from 'zod';
|
|
18
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
|
|
@@ -268,46 +268,13 @@ export declare const VerificationDriver: {
|
|
|
268
268
|
export type VerificationDriver = (typeof VerificationDriver)[keyof typeof VerificationDriver];
|
|
269
269
|
/** The outcome of one verification. `verified` is Reticle's own honesty grade, not merely pass/fail. */
|
|
270
270
|
export declare const VerificationSchema: z.ZodObject<{
|
|
271
|
-
/** Which tool produced the verdict (`reticle_assert`, `reticle_flow_verify`, …). */
|
|
272
271
|
via: z.ZodString;
|
|
273
|
-
/**
|
|
274
|
-
* `yes` | `no` | `unknown` | `no-fault` — the honest verdict, from `Verified`.
|
|
275
|
-
*
|
|
276
|
-
* FOUR values, not three. This comment said three for long enough that a dashboard written from it
|
|
277
|
-
* silently drops the bucket that is most actionable: `no-fault` means the window was clean and
|
|
278
|
-
* nothing was declared to prove, which is a teachable agent behaviour rather than a Reticle or an
|
|
279
|
-
* app problem, and `unknown` means the evidence could not decide.
|
|
280
|
-
*/
|
|
281
272
|
verified: z.ZodString;
|
|
282
|
-
/** Did the underlying assertion pass? Distinct from `verified` on purpose. */
|
|
283
273
|
passed: z.ZodBoolean;
|
|
284
|
-
/**
|
|
285
|
-
* TRUE when the assertion passed but Reticle refused to call it verified — a caught false green.
|
|
286
|
-
*/
|
|
287
274
|
falseGreenCaught: z.ZodBoolean;
|
|
288
275
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
289
|
-
/**
|
|
290
|
-
* `headless` | `headed` | `attached` — how the browser under verification got there.
|
|
291
|
-
*
|
|
292
|
-
* Without it, "verifications run" is one undifferentiated number covering three different
|
|
293
|
-
* products: unattended CI, a human watching an agent work, and the SDK in somebody's own dev
|
|
294
|
-
* server. They have different costs, different failure modes and different value, and only the
|
|
295
|
-
* last one is what most installs actually do.
|
|
296
|
-
*/
|
|
297
276
|
browser: z.ZodOptional<z.ZodString>;
|
|
298
|
-
|
|
299
|
-
* WHICH browser it was — `chrome` | `edge` | `arc` | `dia` | `brave` | `opera` | `firefox` |
|
|
300
|
-
* `safari` | `other`, from `BrowserBrand`.
|
|
301
|
-
*
|
|
302
|
-
* `browser` above says who drove it, and its most common value by far is `attached`: the SDK
|
|
303
|
-
* connected from a browser Reticle never launched. That leaves the actual browser unknown, and
|
|
304
|
-
* the engine cannot fill the gap — Chrome, Edge, Arc, Dia and Brave are one `blink`.
|
|
305
|
-
*
|
|
306
|
-
* OPTIONAL and absent rather than `"unknown"` when the page did not say: a desktop webview has no
|
|
307
|
-
* brand, and an older SDK does not report one. A guessed value would be indistinguishable from a
|
|
308
|
-
* measured one on a dashboard.
|
|
309
|
-
*/
|
|
310
|
-
brand: z.ZodOptional<z.ZodNativeEnum<{
|
|
277
|
+
brand: z.ZodOptional<z.ZodEnum<{
|
|
311
278
|
readonly CHROME: "chrome";
|
|
312
279
|
readonly EDGE: "edge";
|
|
313
280
|
readonly ARC: "arc";
|
|
@@ -318,18 +285,7 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
318
285
|
readonly SAFARI: "safari";
|
|
319
286
|
readonly OTHER: "other";
|
|
320
287
|
}>>;
|
|
321
|
-
|
|
322
|
-
* WHICH clause of the honesty rule decided this — see `VerifiedReason`.
|
|
323
|
-
*
|
|
324
|
-
* `verified` alone cannot answer the question the product is judged on. `unknown` + `passed:false`
|
|
325
|
-
* was measured covering "Reticle caught a real bug", "the agent wrote a bad predicate" and
|
|
326
|
-
* "Reticle itself could not see", which need opposite responses and arrive as one value; `no`
|
|
327
|
-
* collapses "channels disagree" into "the agent's predicate failed" the same way.
|
|
328
|
-
*
|
|
329
|
-
* OPTIONAL because not every verdict comes from `decideVerified` — a suite reports pass/fail with
|
|
330
|
-
* no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
|
|
331
|
-
*/
|
|
332
|
-
reason: z.ZodOptional<z.ZodNativeEnum<{
|
|
288
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
333
289
|
readonly VERSION_SKEW: "version_skew";
|
|
334
290
|
readonly CAPABILITY_ABSENT: "capability-absent";
|
|
335
291
|
readonly INCONCLUSIVE: "inconclusive";
|
|
@@ -349,86 +305,27 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
349
305
|
readonly PROVED: "proved";
|
|
350
306
|
readonly ABSENCE_BLIND_SPOT: "absence_blind_spot";
|
|
351
307
|
}>>;
|
|
352
|
-
|
|
353
|
-
* WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
|
|
354
|
-
*
|
|
355
|
-
* The three causes belong to three different owners and need three different fixes, and without
|
|
356
|
-
* this they are one bar — and the cause has turned out to be Reticle's own eviction counter
|
|
357
|
-
* miscounting, which no aggregate could have shown.
|
|
358
|
-
*
|
|
359
|
-
* ONE value, not a list: `losses` can hold several and a multi-value property is not something a
|
|
360
|
-
* dashboard can group by, so the FIRST is sent and the order in the producers is the order of
|
|
361
|
-
* ownership — Reticle's before the page's. Absent on every verdict whose capture was clean.
|
|
362
|
-
*/
|
|
363
|
-
uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
|
|
308
|
+
uncleanLoss: z.ZodOptional<z.ZodEnum<{
|
|
364
309
|
readonly BUFFER_LOSS: "buffer_loss";
|
|
365
310
|
readonly TRANSPORT_GAP: "transport_gap";
|
|
366
311
|
readonly BLIND_SPOT: "blind_spot";
|
|
367
312
|
readonly JOURNAL_LOSS: "journal_loss";
|
|
368
313
|
readonly OTHER: "other";
|
|
369
314
|
}>>;
|
|
370
|
-
|
|
371
|
-
* Set when one of our OWN drives produced this verdict rather than the user's agent — see
|
|
372
|
-
* `VerificationDriver`. Absent is the ordinary case and means the agent called the tool itself.
|
|
373
|
-
*/
|
|
374
|
-
driven: z.ZodOptional<z.ZodNativeEnum<{
|
|
315
|
+
driven: z.ZodOptional<z.ZodEnum<{
|
|
375
316
|
/** A model inside the daemon drove this, on the user's behalf. */
|
|
376
317
|
readonly HARNESS: "harness";
|
|
377
318
|
}>>;
|
|
378
|
-
/** The page SDK version from its HELLO: our own release number, or `other`. Absent if unsaid. */
|
|
379
319
|
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
380
|
-
},
|
|
381
|
-
verified: string;
|
|
382
|
-
passed: boolean;
|
|
383
|
-
via: string;
|
|
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;
|
|
386
|
-
browser?: string | undefined;
|
|
387
|
-
durationMs?: number | undefined;
|
|
388
|
-
sdkVersion?: string | undefined;
|
|
389
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
390
|
-
driven?: "harness" | undefined;
|
|
391
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
392
|
-
}, {
|
|
393
|
-
verified: string;
|
|
394
|
-
passed: boolean;
|
|
395
|
-
via: string;
|
|
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;
|
|
398
|
-
browser?: string | undefined;
|
|
399
|
-
durationMs?: number | undefined;
|
|
400
|
-
sdkVersion?: string | undefined;
|
|
401
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
402
|
-
driven?: "harness" | undefined;
|
|
403
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
404
|
-
}>;
|
|
320
|
+
}, z.core.$strip>;
|
|
405
321
|
export type Verification = z.infer<typeof VerificationSchema>;
|
|
406
322
|
/** Which way the installed version moved, and between which versions. */
|
|
407
323
|
export declare const VersionChangeSchema: z.ZodObject<{
|
|
408
324
|
from: z.ZodString;
|
|
409
325
|
to: z.ZodString;
|
|
410
|
-
/**
|
|
411
|
-
* True when an agent had been told about exactly this version recently — so the nudge plausibly
|
|
412
|
-
* caused the update.
|
|
413
|
-
*
|
|
414
|
-
* Without it, `version_changed` says a version moved and never why, which leaves "the nudge never
|
|
415
|
-
* fired" and "the nudge fired and nobody acted" indistinguishable. Those need opposite responses,
|
|
416
|
-
* and the whole adoption story rests on knowing which one is happening.
|
|
417
|
-
*/
|
|
418
326
|
nudged: z.ZodOptional<z.ZodBoolean>;
|
|
419
|
-
/** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
|
|
420
327
|
direction: z.ZodString;
|
|
421
|
-
},
|
|
422
|
-
from: string;
|
|
423
|
-
to: string;
|
|
424
|
-
direction: string;
|
|
425
|
-
nudged?: boolean | undefined;
|
|
426
|
-
}, {
|
|
427
|
-
from: string;
|
|
428
|
-
to: string;
|
|
429
|
-
direction: string;
|
|
430
|
-
nudged?: boolean | undefined;
|
|
431
|
-
}>;
|
|
328
|
+
}, z.core.$strip>;
|
|
432
329
|
export type VersionChange = z.infer<typeof VersionChangeSchema>;
|
|
433
330
|
/**
|
|
434
331
|
* A crash, with enough detail to actually diagnose it.
|
|
@@ -450,46 +347,15 @@ export declare const CrashPort: {
|
|
|
450
347
|
};
|
|
451
348
|
export type CrashPort = (typeof CrashPort)[keyof typeof CrashPort];
|
|
452
349
|
export declare const CrashSchema: z.ZodObject<{
|
|
453
|
-
/** `uncaught_exception` | `unhandled_rejection`. */
|
|
454
350
|
kind: z.ZodString;
|
|
455
|
-
/** The error's constructor name (`TypeError`) — coarse, safe, and enough to triage. */
|
|
456
351
|
errorType: z.ZodOptional<z.ZodString>;
|
|
457
|
-
/** Hash of the type + Reticle's own frames. Groups the same crash across every machine. */
|
|
458
352
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
459
|
-
/**
|
|
460
|
-
* The message with every VARIABLE part removed — quoted strings, URLs, paths, ids, numbers all
|
|
461
|
-
* replaced by `*`. `no baseline named *` says exactly what broke; the flow name that made it
|
|
462
|
-
* specific to one user never leaves. This is what turns the fingerprint from an opaque key into a
|
|
463
|
-
* readable defect.
|
|
464
|
-
*/
|
|
465
353
|
message: z.ZodOptional<z.ZodString>;
|
|
466
|
-
|
|
467
|
-
* The RETICLE-OWNED stack frames, innermost first, as `function@file:line`.
|
|
468
|
-
*
|
|
469
|
-
* This is Reticle's own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
|
|
470
|
-
* npm tarball — so there is no privacy question in sending it, and it is the single most useful
|
|
471
|
-
* thing for a root-cause analysis: the file, the line, and the function. Frames belonging to the
|
|
472
|
-
* user's application or to node internals are dropped entirely before this is built.
|
|
473
|
-
*/
|
|
474
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
475
|
-
/** The MCP tool in flight when it happened, when there was one. The trigger point. */
|
|
354
|
+
frames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
476
355
|
tool: z.ZodOptional<z.ZodString>;
|
|
477
|
-
|
|
478
|
-
* The tool calls immediately before the failure, oldest first — the agent's approach run.
|
|
479
|
-
*
|
|
480
|
-
* Answers "what was it trying to do", which a single frame cannot: `snapshot → act → act →
|
|
481
|
-
* assert` is a verification loop, `lease_acquire → navigate → crash` is a startup problem. Tool
|
|
482
|
-
* NAMES only, from a fixed vocabulary; no arguments, so nothing the agent typed is in here.
|
|
483
|
-
*/
|
|
484
|
-
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
485
|
-
/** Node major/minor — crashes cluster hard by runtime version. */
|
|
356
|
+
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
486
357
|
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
487
|
-
/** `arm64` / `x64`. A surprising number of native-module failures are architecture-specific. */
|
|
488
358
|
arch: z.ZodOptional<z.ZodString>;
|
|
489
|
-
/**
|
|
490
|
-
* The machine at the moment of the crash. "Out of memory" and a Reticle defect look identical in a
|
|
491
|
-
* stack trace and are completely different problems; this is what tells them apart.
|
|
492
|
-
*/
|
|
493
359
|
machine: z.ZodOptional<z.ZodObject<{
|
|
494
360
|
rssMb: z.ZodNumber;
|
|
495
361
|
heapUsedMb: z.ZodNumber;
|
|
@@ -497,141 +363,25 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
497
363
|
totalMemMb: z.ZodNumber;
|
|
498
364
|
load1x100: z.ZodNumber;
|
|
499
365
|
cpuCount: z.ZodNumber;
|
|
500
|
-
},
|
|
501
|
-
rssMb: number;
|
|
502
|
-
heapUsedMb: number;
|
|
503
|
-
freeMemMb: number;
|
|
504
|
-
totalMemMb: number;
|
|
505
|
-
load1x100: number;
|
|
506
|
-
cpuCount: number;
|
|
507
|
-
}, {
|
|
508
|
-
rssMb: number;
|
|
509
|
-
heapUsedMb: number;
|
|
510
|
-
freeMemMb: number;
|
|
511
|
-
totalMemMb: number;
|
|
512
|
-
load1x100: number;
|
|
513
|
-
cpuCount: number;
|
|
514
|
-
}>>;
|
|
515
|
-
/**
|
|
516
|
-
* The failing SYSCALL — `connect`, `write`, `open`. Already inside `message`; structured here so
|
|
517
|
-
* it can be grouped on rather than parsed back out of prose.
|
|
518
|
-
*/
|
|
366
|
+
}, z.core.$strip>>;
|
|
519
367
|
syscall: z.ZodOptional<z.ZodString>;
|
|
520
|
-
/**
|
|
521
|
-
* The symbolic errno — `ECONNREFUSED`, `EPIPE`. The name, never the platform-specific number.
|
|
522
|
-
*/
|
|
523
368
|
errno: z.ZodOptional<z.ZodString>;
|
|
524
|
-
/**
|
|
525
|
-
* Was the target the machine it was running on?
|
|
526
|
-
*
|
|
527
|
-
* One bit, and it splits two populations that currently look identical and have different owners:
|
|
528
|
-
* refused ON loopback is a Reticle-lifecycle problem (no daemon), refused off-box is a network
|
|
529
|
-
* problem that is not ours.
|
|
530
|
-
*/
|
|
531
369
|
loopback: z.ZodOptional<z.ZodBoolean>;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
*
|
|
537
|
-
* Only present when the crash is a system error AND no Reticle frame survived, which is exactly
|
|
538
|
-
* the report that otherwise arrives with no location at all. It is a line in Node's published
|
|
539
|
-
* source: it says a connect failed rather than a DNS lookup, and carries nothing about the
|
|
540
|
-
* machine, the app, or anyone's directory layout.
|
|
541
|
-
*/
|
|
370
|
+
port: z.ZodOptional<z.ZodEnum<{
|
|
371
|
+
reticle: "reticle";
|
|
372
|
+
other: "other";
|
|
373
|
+
}>>;
|
|
542
374
|
internalFrame: z.ZodOptional<z.ZodString>;
|
|
543
|
-
},
|
|
544
|
-
kind: string;
|
|
545
|
-
message?: string | undefined;
|
|
546
|
-
tool?: string | undefined;
|
|
547
|
-
frames?: string[] | undefined;
|
|
548
|
-
errorType?: string | undefined;
|
|
549
|
-
port?: "reticle" | "other" | undefined;
|
|
550
|
-
fingerprint?: string | undefined;
|
|
551
|
-
machine?: {
|
|
552
|
-
rssMb: number;
|
|
553
|
-
heapUsedMb: number;
|
|
554
|
-
freeMemMb: number;
|
|
555
|
-
totalMemMb: number;
|
|
556
|
-
load1x100: number;
|
|
557
|
-
cpuCount: number;
|
|
558
|
-
} | undefined;
|
|
559
|
-
breadcrumb?: string[] | undefined;
|
|
560
|
-
nodeVersion?: string | undefined;
|
|
561
|
-
arch?: string | undefined;
|
|
562
|
-
syscall?: string | undefined;
|
|
563
|
-
errno?: string | undefined;
|
|
564
|
-
loopback?: boolean | undefined;
|
|
565
|
-
internalFrame?: string | undefined;
|
|
566
|
-
}, {
|
|
567
|
-
kind: string;
|
|
568
|
-
message?: string | undefined;
|
|
569
|
-
tool?: string | undefined;
|
|
570
|
-
frames?: string[] | undefined;
|
|
571
|
-
errorType?: string | undefined;
|
|
572
|
-
port?: "reticle" | "other" | undefined;
|
|
573
|
-
fingerprint?: string | undefined;
|
|
574
|
-
machine?: {
|
|
575
|
-
rssMb: number;
|
|
576
|
-
heapUsedMb: number;
|
|
577
|
-
freeMemMb: number;
|
|
578
|
-
totalMemMb: number;
|
|
579
|
-
load1x100: number;
|
|
580
|
-
cpuCount: number;
|
|
581
|
-
} | undefined;
|
|
582
|
-
breadcrumb?: string[] | undefined;
|
|
583
|
-
nodeVersion?: string | undefined;
|
|
584
|
-
arch?: string | undefined;
|
|
585
|
-
syscall?: string | undefined;
|
|
586
|
-
errno?: string | undefined;
|
|
587
|
-
loopback?: boolean | undefined;
|
|
588
|
-
internalFrame?: string | undefined;
|
|
589
|
-
}>;
|
|
375
|
+
}, z.core.$strip>;
|
|
590
376
|
export type Crash = z.infer<typeof CrashSchema>;
|
|
591
377
|
/** An MCP client attaching. Separates "installed and running" from "someone is actually using it". */
|
|
592
378
|
export declare const McpConnectionSchema: z.ZodObject<{
|
|
593
|
-
/** False the first time a client attaches to this daemon; true for every attach after. */
|
|
594
379
|
reconnect: z.ZodBoolean;
|
|
595
|
-
/**
|
|
596
|
-
* How long the daemon had been up first. A large value on the FIRST connect is the interesting
|
|
597
|
-
* case — it means Reticle was started and then sat unused, which is an onboarding failure nobody
|
|
598
|
-
* would otherwise report.
|
|
599
|
-
*/
|
|
600
380
|
daemonAgeMs: z.ZodNumber;
|
|
601
|
-
/** Which client, from its own handshake (`claude-code`, `cursor`). */
|
|
602
381
|
client: z.ZodOptional<z.ZodString>;
|
|
603
|
-
/**
|
|
604
|
-
* Was an app carrying the SDK already attached to this daemon when the agent arrived.
|
|
605
|
-
*
|
|
606
|
-
* The mirror of `AppInstrumentation.agentAttached`, and the closest available read on WHAT THE
|
|
607
|
-
* AGENT SAW. A client that attaches and never calls a tool is otherwise reachable only by
|
|
608
|
-
* subtraction: `tool_refused` cannot describe it, because an agent that reads the server
|
|
609
|
-
* instructions, learns nothing is wired and stops has refused nothing. It made no call at all.
|
|
610
|
-
*
|
|
611
|
-
* `false` means the handshake happened against a daemon with no app to look at, which is the state
|
|
612
|
-
* the first-move instructions describe and the state in which no tool could have answered
|
|
613
|
-
* anything. Split the never-drove population on this and the two halves need opposite fixes: one
|
|
614
|
-
* is an install that never finished, the other is an agent that had everything it needed and did
|
|
615
|
-
* not use it.
|
|
616
|
-
*
|
|
617
|
-
* OPTIONAL because an older sender has none. Absent means not measured, never `false`.
|
|
618
|
-
*/
|
|
619
382
|
appConnected: z.ZodOptional<z.ZodBoolean>;
|
|
620
|
-
/** The id of the proxy process that attached. Its outages carry the same id. */
|
|
621
383
|
proxyId: z.ZodOptional<z.ZodString>;
|
|
622
|
-
},
|
|
623
|
-
reconnect: boolean;
|
|
624
|
-
daemonAgeMs: number;
|
|
625
|
-
proxyId?: string | undefined;
|
|
626
|
-
client?: string | undefined;
|
|
627
|
-
appConnected?: boolean | undefined;
|
|
628
|
-
}, {
|
|
629
|
-
reconnect: boolean;
|
|
630
|
-
daemonAgeMs: number;
|
|
631
|
-
proxyId?: string | undefined;
|
|
632
|
-
client?: string | undefined;
|
|
633
|
-
appConnected?: boolean | undefined;
|
|
634
|
-
}>;
|
|
384
|
+
}, z.core.$strip>;
|
|
635
385
|
export type McpConnection = z.infer<typeof McpConnectionSchema>;
|
|
636
386
|
/**
|
|
637
387
|
* `app_instrumented`: an app carrying the SDK reached this daemon for the first time.
|
|
@@ -642,25 +392,11 @@ export type McpConnection = z.infer<typeof McpConnectionSchema>;
|
|
|
642
392
|
* for the same daemon run, and the two join on `sessionId`.
|
|
643
393
|
*/
|
|
644
394
|
export declare const AppInstrumentationSchema: z.ZodObject<{
|
|
645
|
-
/** Whether `reticle init` had been run in this directory (a projectId is stamped). */
|
|
646
395
|
initialized: z.ZodBoolean;
|
|
647
|
-
/** Whether an MCP client was already attached when the app arrived. */
|
|
648
396
|
agentAttached: z.ZodBoolean;
|
|
649
|
-
/** How long the daemon had been up. Large values mean Reticle sat there with nothing wired. */
|
|
650
397
|
msToFirstApp: z.ZodNumber;
|
|
651
|
-
/** The first app ever on this machine + project, not just this run. Absent otherwise. */
|
|
652
398
|
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
653
|
-
},
|
|
654
|
-
msToFirstApp: number;
|
|
655
|
-
initialized: boolean;
|
|
656
|
-
agentAttached: boolean;
|
|
657
|
-
firstEver?: boolean | undefined;
|
|
658
|
-
}, {
|
|
659
|
-
msToFirstApp: number;
|
|
660
|
-
initialized: boolean;
|
|
661
|
-
agentAttached: boolean;
|
|
662
|
-
firstEver?: boolean | undefined;
|
|
663
|
-
}>;
|
|
399
|
+
}, z.core.$strip>;
|
|
664
400
|
export type AppInstrumentation = z.infer<typeof AppInstrumentationSchema>;
|
|
665
401
|
/**
|
|
666
402
|
* WHICH stage of an MCP outage this is. Reported at most twice per proxy process, and the two are
|
|
@@ -726,7 +462,7 @@ export type OutageReason = (typeof OutageReason)[keyof typeof OutageReason];
|
|
|
726
462
|
* a bare count with no cause and no recovery signal. This is the schema half of the fix.
|
|
727
463
|
*/
|
|
728
464
|
export declare const McpOutageSchema: z.ZodObject<{
|
|
729
|
-
stage: z.
|
|
465
|
+
stage: z.ZodEnum<{
|
|
730
466
|
readonly FIRST: "first";
|
|
731
467
|
readonly BUDGET_SPENT: "budget_spent";
|
|
732
468
|
/**
|
|
@@ -740,7 +476,7 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
740
476
|
*/
|
|
741
477
|
readonly RECOVERED: "recovered";
|
|
742
478
|
}>;
|
|
743
|
-
reason: z.
|
|
479
|
+
reason: z.ZodEnum<{
|
|
744
480
|
/** The SSE stream ended cleanly and nothing said why. */
|
|
745
481
|
readonly SSE_ENDED: "sse_ended";
|
|
746
482
|
/**
|
|
@@ -768,49 +504,18 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
768
504
|
/** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
|
|
769
505
|
readonly OTHER: "other";
|
|
770
506
|
}>;
|
|
771
|
-
/** Consecutive reconnects tried when this was reported. `first` is near 1; a spent budget is high. */
|
|
772
507
|
attempts: z.ZodNumber;
|
|
773
|
-
/**
|
|
774
|
-
* In-flight tool calls this drop actually killed — the only part an agent can FEEL.
|
|
775
|
-
*
|
|
776
|
-
* Without it every drop looks equally bad. The common outage is `stage: first` with `attempts: 1`
|
|
777
|
-
* — the stream ended once and the proxy reconnected, which for an agent with nothing in flight is
|
|
778
|
-
* invisible. Counting those as "the agent lost its tools" overstates the problem by roughly the
|
|
779
|
-
* whole total, and buries the one drop that mattered.
|
|
780
|
-
*
|
|
781
|
-
* Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
|
|
782
|
-
* worth driving down.
|
|
783
|
-
*/
|
|
784
508
|
pendingLost: z.ZodOptional<z.ZodNumber>;
|
|
785
|
-
|
|
786
|
-
errCode: z.ZodOptional<z.ZodNativeEnum<{
|
|
509
|
+
errCode: z.ZodOptional<z.ZodEnum<{
|
|
787
510
|
readonly ECONNRESET: "ECONNRESET";
|
|
788
511
|
readonly ECONNREFUSED: "ECONNREFUSED";
|
|
789
512
|
readonly EPIPE: "EPIPE";
|
|
790
513
|
readonly ETIMEDOUT: "ETIMEDOUT";
|
|
791
514
|
readonly OTHER: "other";
|
|
792
515
|
}>>;
|
|
793
|
-
/** The stream got a response before it failed: a live stream dropped, not a refused connect. */
|
|
794
516
|
responded: z.ZodOptional<z.ZodBoolean>;
|
|
795
|
-
/** The proxy process. It joins `mcp_client_connected`, which carries the daemon's `sessionId`. */
|
|
796
517
|
proxyId: z.ZodOptional<z.ZodString>;
|
|
797
|
-
},
|
|
798
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
799
|
-
attempts: number;
|
|
800
|
-
stage: "first" | "budget_spent" | "recovered";
|
|
801
|
-
proxyId?: string | undefined;
|
|
802
|
-
pendingLost?: number | undefined;
|
|
803
|
-
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
804
|
-
responded?: boolean | undefined;
|
|
805
|
-
}, {
|
|
806
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
807
|
-
attempts: number;
|
|
808
|
-
stage: "first" | "budget_spent" | "recovered";
|
|
809
|
-
proxyId?: string | undefined;
|
|
810
|
-
pendingLost?: number | undefined;
|
|
811
|
-
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
812
|
-
responded?: boolean | undefined;
|
|
813
|
-
}>;
|
|
518
|
+
}, z.core.$strip>;
|
|
814
519
|
export type McpOutage = z.infer<typeof McpOutageSchema>;
|
|
815
520
|
/**
|
|
816
521
|
* WHICH published route brought this install in.
|
|
@@ -940,20 +645,10 @@ export type InitStop = (typeof InitStop)[keyof typeof InitStop];
|
|
|
940
645
|
/** How `reticle init` went. The onboarding funnel, which had no instrumentation whatsoever. */
|
|
941
646
|
export declare const InitOutcomeSchema: z.ZodObject<{
|
|
942
647
|
ok: z.ZodBoolean;
|
|
943
|
-
/** Classified cause when it failed — our vocabulary, never a raw error or a path. */
|
|
944
648
|
reason: z.ZodOptional<z.ZodString>;
|
|
945
|
-
/** The framework it detected, so we can see which stacks fail to set up. */
|
|
946
649
|
stack: z.ZodOptional<z.ZodString>;
|
|
947
|
-
/** Whether the MCP registration step succeeded — the step most likely to fail silently. */
|
|
948
650
|
mcpRegistered: z.ZodOptional<z.ZodBoolean>;
|
|
949
|
-
|
|
950
|
-
* What `init` saw when it waited for an app to connect.
|
|
951
|
-
*
|
|
952
|
-
* Default init reports CONNECTED after runtime success. Runtime failures carry a classified
|
|
953
|
-
* reason without guessing the watcher's daemon/page classification. Files-only init watches
|
|
954
|
-
* only in an interactive terminal. Absence alone is not evidence of a failed connection.
|
|
955
|
-
*/
|
|
956
|
-
confirmation: z.ZodOptional<z.ZodNativeEnum<{
|
|
651
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
957
652
|
/** An app carrying the SDK reached the daemon while `init` watched. This is what installed means. */
|
|
958
653
|
readonly CONNECTED: "connected";
|
|
959
654
|
/** Nothing was listening on the bridge port, so no session could arrive. Not a failed install. */
|
|
@@ -976,8 +671,7 @@ export declare const InitOutcomeSchema: z.ZodObject<{
|
|
|
976
671
|
*/
|
|
977
672
|
readonly NO_PAGE: "no_page";
|
|
978
673
|
}>>;
|
|
979
|
-
|
|
980
|
-
stop: z.ZodOptional<z.ZodNativeEnum<{
|
|
674
|
+
stop: z.ZodOptional<z.ZodEnum<{
|
|
981
675
|
/** The project names no dev, start or serve script, and no `--url` was given. */
|
|
982
676
|
readonly NO_DEV_COMMAND: "no_dev_command";
|
|
983
677
|
/** Something answers on one loopback address and not the other, on the dev port. */
|
|
@@ -1001,21 +695,7 @@ export declare const InitOutcomeSchema: z.ZodObject<{
|
|
|
1001
695
|
/** A desktop app never dialled the daemon. */
|
|
1002
696
|
readonly DESKTOP_NO_SESSION: "desktop_no_session";
|
|
1003
697
|
}>>;
|
|
1004
|
-
},
|
|
1005
|
-
ok: boolean;
|
|
1006
|
-
reason?: string | undefined;
|
|
1007
|
-
stack?: string | undefined;
|
|
1008
|
-
mcpRegistered?: boolean | undefined;
|
|
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;
|
|
1011
|
-
}, {
|
|
1012
|
-
ok: boolean;
|
|
1013
|
-
reason?: string | undefined;
|
|
1014
|
-
stack?: string | undefined;
|
|
1015
|
-
mcpRegistered?: boolean | undefined;
|
|
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;
|
|
1018
|
-
}>;
|
|
698
|
+
}, z.core.$strip>;
|
|
1019
699
|
export type InitOutcome = z.infer<typeof InitOutcomeSchema>;
|
|
1020
700
|
/**
|
|
1021
701
|
* One anonymous telemetry event. `anonymousId` and the optional hashed `projectId` are the only
|
|
@@ -1023,7 +703,7 @@ export type InitOutcome = z.infer<typeof InitOutcomeSchema>;
|
|
|
1023
703
|
*/
|
|
1024
704
|
export declare const TelemetryEventSchema: z.ZodObject<{
|
|
1025
705
|
proxyExit: z.ZodOptional<z.ZodObject<{
|
|
1026
|
-
reason: z.
|
|
706
|
+
reason: z.ZodEnum<{
|
|
1027
707
|
readonly STDIN_END: "stdin_end";
|
|
1028
708
|
readonly IDLE: "idle";
|
|
1029
709
|
readonly CLIENT_GONE_STORM: "client_gone_storm";
|
|
@@ -1033,44 +713,29 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1033
713
|
drops: z.ZodNumber;
|
|
1034
714
|
toolCalls: z.ZodNumber;
|
|
1035
715
|
proxyId: z.ZodOptional<z.ZodString>;
|
|
1036
|
-
},
|
|
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
|
-
}>>;
|
|
716
|
+
}, z.core.$strip>>;
|
|
1049
717
|
daemonDeath: z.ZodOptional<z.ZodObject<{
|
|
1050
718
|
ageMs: z.ZodNumber;
|
|
1051
|
-
},
|
|
1052
|
-
ageMs: number;
|
|
1053
|
-
}, {
|
|
1054
|
-
ageMs: number;
|
|
1055
|
-
}>>;
|
|
719
|
+
}, z.core.$strip>>;
|
|
1056
720
|
wakeRefusal: z.ZodOptional<z.ZodObject<{
|
|
1057
|
-
presence: z.
|
|
721
|
+
presence: z.ZodEnum<{
|
|
1058
722
|
readonly FOREIGN: "foreign";
|
|
1059
723
|
readonly OTHER_PROJECT: "other_project";
|
|
1060
724
|
}>;
|
|
1061
|
-
},
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
725
|
+
}, z.core.$strip>>;
|
|
726
|
+
spawnMethod: z.ZodOptional<z.ZodEnum<{
|
|
727
|
+
readonly DETACHED: "detached";
|
|
728
|
+
readonly WMI: "wmi";
|
|
729
|
+
readonly WMI_FALLBACK: "wmi_fallback";
|
|
1065
730
|
}>>;
|
|
1066
|
-
accountState: z.ZodOptional<z.
|
|
731
|
+
accountState: z.ZodOptional<z.ZodEnum<{
|
|
1067
732
|
readonly SIGNED_OUT: "signed_out";
|
|
1068
733
|
readonly SIGNED_IN: "signed_in";
|
|
1069
734
|
readonly LINKED: "linked";
|
|
1070
735
|
}>>;
|
|
1071
736
|
linked: z.ZodOptional<z.ZodBoolean>;
|
|
1072
737
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1073
|
-
client: z.ZodOptional<z.
|
|
738
|
+
client: z.ZodOptional<z.ZodEnum<{
|
|
1074
739
|
readonly CLAUDE_CODE: "claude_code";
|
|
1075
740
|
readonly CLAUDE_DESKTOP: "claude_desktop";
|
|
1076
741
|
readonly CODEX: "codex";
|
|
@@ -1084,14 +749,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1084
749
|
readonly VSCODE: "vscode";
|
|
1085
750
|
readonly OTHER: "other";
|
|
1086
751
|
}>>;
|
|
1087
|
-
launch: z.ZodOptional<z.
|
|
752
|
+
launch: z.ZodOptional<z.ZodEnum<{
|
|
1088
753
|
readonly NPX: "npx";
|
|
1089
754
|
readonly GLOBAL: "global";
|
|
1090
755
|
readonly PROJECT: "project";
|
|
1091
756
|
readonly OTHER: "other";
|
|
1092
757
|
}>>;
|
|
1093
758
|
hud: z.ZodOptional<z.ZodObject<{
|
|
1094
|
-
view: z.ZodOptional<z.
|
|
759
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
1095
760
|
readonly CHAT: "chat";
|
|
1096
761
|
readonly FLOWS: "flows";
|
|
1097
762
|
readonly NOTES: "notes";
|
|
@@ -1101,44 +766,32 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1101
766
|
readonly ACCOUNT: "account";
|
|
1102
767
|
readonly NONE: "none";
|
|
1103
768
|
}>>;
|
|
1104
|
-
surface: z.ZodOptional<z.
|
|
769
|
+
surface: z.ZodOptional<z.ZodEnum<{
|
|
1105
770
|
readonly RAIL: "rail";
|
|
1106
771
|
readonly HARNESS: "harness";
|
|
1107
772
|
readonly HEADER: "header";
|
|
1108
773
|
}>>;
|
|
1109
|
-
tabs: z.ZodOptional<z.
|
|
774
|
+
tabs: z.ZodOptional<z.ZodEnum<{
|
|
1110
775
|
readonly ZERO: "0";
|
|
1111
776
|
readonly ONE: "1";
|
|
1112
777
|
readonly TWO_THREE: "2-3";
|
|
1113
778
|
readonly FOUR_NINE: "4-9";
|
|
1114
779
|
readonly TEN_PLUS: "10+";
|
|
1115
780
|
}>>;
|
|
1116
|
-
},
|
|
1117
|
-
surface?: "harness" | "rail" | "header" | undefined;
|
|
1118
|
-
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
1119
|
-
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
1120
|
-
}, {
|
|
1121
|
-
surface?: "harness" | "rail" | "header" | undefined;
|
|
1122
|
-
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
1123
|
-
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
1124
|
-
}>>;
|
|
781
|
+
}, z.core.$strip>>;
|
|
1125
782
|
link: z.ZodOptional<z.ZodObject<{
|
|
1126
|
-
via: z.
|
|
783
|
+
via: z.ZodEnum<{
|
|
1127
784
|
readonly CONNECT: "connect";
|
|
1128
785
|
readonly HUD: "hud";
|
|
1129
786
|
readonly LINK: "link";
|
|
1130
787
|
}>;
|
|
1131
|
-
},
|
|
1132
|
-
via: "link" | "hud" | "connect";
|
|
1133
|
-
}, {
|
|
1134
|
-
via: "link" | "hud" | "connect";
|
|
1135
|
-
}>>;
|
|
788
|
+
}, z.core.$strip>>;
|
|
1136
789
|
harness: z.ZodOptional<z.ZodObject<{
|
|
1137
|
-
phase: z.
|
|
790
|
+
phase: z.ZodEnum<{
|
|
1138
791
|
readonly STARTED: "started";
|
|
1139
792
|
readonly COMPLETED: "completed";
|
|
1140
793
|
}>;
|
|
1141
|
-
source: z.
|
|
794
|
+
source: z.ZodEnum<{
|
|
1142
795
|
readonly AGENT: "agent";
|
|
1143
796
|
readonly HUD: "hud";
|
|
1144
797
|
readonly DASHBOARD: "dashboard";
|
|
@@ -1146,28 +799,28 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1146
799
|
readonly PLAN: "plan";
|
|
1147
800
|
}>;
|
|
1148
801
|
hosted: z.ZodBoolean;
|
|
1149
|
-
outcome: z.ZodOptional<z.
|
|
802
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
1150
803
|
readonly PROVED: "proved";
|
|
1151
804
|
readonly NOT_PROVED: "not_proved";
|
|
1152
805
|
readonly FAILED: "failed";
|
|
1153
806
|
readonly BLOCKED: "blocked";
|
|
1154
807
|
readonly STOPPED: "stopped";
|
|
1155
808
|
}>>;
|
|
1156
|
-
journeys: z.ZodOptional<z.
|
|
809
|
+
journeys: z.ZodOptional<z.ZodEnum<{
|
|
1157
810
|
readonly ZERO: "0";
|
|
1158
811
|
readonly ONE: "1";
|
|
1159
812
|
readonly TWO_THREE: "2-3";
|
|
1160
813
|
readonly FOUR_NINE: "4-9";
|
|
1161
814
|
readonly TEN_PLUS: "10+";
|
|
1162
815
|
}>>;
|
|
1163
|
-
replayed: z.ZodOptional<z.
|
|
816
|
+
replayed: z.ZodOptional<z.ZodEnum<{
|
|
1164
817
|
readonly ZERO: "0";
|
|
1165
818
|
readonly ONE: "1";
|
|
1166
819
|
readonly TWO_THREE: "2-3";
|
|
1167
820
|
readonly FOUR_NINE: "4-9";
|
|
1168
821
|
readonly TEN_PLUS: "10+";
|
|
1169
822
|
}>>;
|
|
1170
|
-
reason: z.ZodOptional<z.
|
|
823
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1171
824
|
readonly NOT_LINKED: "not_linked";
|
|
1172
825
|
readonly PLATFORM_UNREACHABLE: "platform_unreachable";
|
|
1173
826
|
readonly HARNESS_OFF: "harness_off";
|
|
@@ -1178,44 +831,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1178
831
|
readonly BROKEN: "broken";
|
|
1179
832
|
readonly OTHER: "other";
|
|
1180
833
|
}>>;
|
|
1181
|
-
},
|
|
1182
|
-
source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
|
|
1183
|
-
phase: "completed" | "started";
|
|
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;
|
|
1187
|
-
outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
|
|
1188
|
-
journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
1189
|
-
}, {
|
|
1190
|
-
source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
|
|
1191
|
-
phase: "completed" | "started";
|
|
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;
|
|
1195
|
-
outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
|
|
1196
|
-
journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
1197
|
-
}>>;
|
|
834
|
+
}, z.core.$strip>>;
|
|
1198
835
|
v: z.ZodLiteral<3>;
|
|
1199
|
-
/** Random UUID persisted at `~/.reticle/telemetry-id`. Distinct-count of this = users (DAU/WAU/MAU). */
|
|
1200
836
|
anonymousId: z.ZodString;
|
|
1201
|
-
/** One-way hash of the git remote (or cwd) — counts DISTINCT PROJECTS without revealing any of them. */
|
|
1202
837
|
projectId: z.ZodOptional<z.ZodString>;
|
|
1203
|
-
/**
|
|
1204
|
-
* One daemon run. Ties `daemon_started` → every verification → a crash → `daemon_stopped` into a
|
|
1205
|
-
* single story.
|
|
1206
|
-
*
|
|
1207
|
-
* Without it, events could only be grouped by machine and approximate time — so "what was happening
|
|
1208
|
-
* when this crashed?" was unanswerable, three concurrent daemons on one machine (which the product
|
|
1209
|
-
* explicitly supports) interleaved into one undifferentiated stream, and no per-session funnel could
|
|
1210
|
-
* be built at all. It cannot be backfilled, which is why it is worth adding before the data matters.
|
|
1211
|
-
*/
|
|
1212
|
-
/**
|
|
1213
|
-
* The daemon run this happened inside. ABSENT on one-shot CLI events — see isSessionScoped: a
|
|
1214
|
-
* per-process id on `reticle status` is not a session, it is a number that inflates every session
|
|
1215
|
-
* count and joins to nothing.
|
|
1216
|
-
*/
|
|
1217
838
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1218
|
-
event: z.
|
|
839
|
+
event: z.ZodEnum<{
|
|
1219
840
|
/** First-ever run on this machine — powers install count + the new-user curve. */
|
|
1220
841
|
readonly RETICLE_INSTALLED: "reticle_installed";
|
|
1221
842
|
/**
|
|
@@ -1373,22 +994,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1373
994
|
/** A Harness run started, or ended: one of each per run. */
|
|
1374
995
|
readonly HARNESS_RUN: "harness_run";
|
|
1375
996
|
}>;
|
|
1376
|
-
/** Client epoch-ms when the event happened (the server also stamps its own receive time). */
|
|
1377
997
|
ts: z.ZodNumber;
|
|
1378
|
-
/** Reticle version emitting the event — lets us see adoption of new releases + version spread. */
|
|
1379
998
|
version: z.ZodString;
|
|
1380
|
-
/** Runs inside CI? Separates real human DAU from pipeline traffic (both matter, differently). */
|
|
1381
999
|
ci: z.ZodBoolean;
|
|
1382
|
-
|
|
1383
|
-
* ADVISORY hint that this run looks automated, when something beyond `CI` suggests it.
|
|
1384
|
-
*
|
|
1385
|
-
* `ci` reads one environment variable, which is right for a GitHub Actions runner and blind to a
|
|
1386
|
-
* cloud agent sandbox, which lands in the data with `ci: false`. This is the
|
|
1387
|
-
* second angle, and it is NEVER a filter: people work in containers, in Codespaces, and over ssh
|
|
1388
|
-
* with no terminal. Never exclude a row because this is set; absent means nothing looked
|
|
1389
|
-
* automated, not that a human was present. See automation-hint.ts for the rejected signals.
|
|
1390
|
-
*/
|
|
1391
|
-
automation: z.ZodOptional<z.ZodNativeEnum<{
|
|
1000
|
+
automation: z.ZodOptional<z.ZodEnum<{
|
|
1392
1001
|
/** A container runtime marker is present at the filesystem root. */
|
|
1393
1002
|
readonly CONTAINER: "container";
|
|
1394
1003
|
/** A hosted dev environment declared itself (Codespaces, Gitpod, Cloud Shell, dev container). */
|
|
@@ -1401,12 +1010,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1401
1010
|
/** A hosted coding-agent sandbox declared itself (a remote agent session, not a laptop). */
|
|
1402
1011
|
readonly AGENT_SANDBOX: "agent_sandbox";
|
|
1403
1012
|
}>>;
|
|
1404
|
-
|
|
1405
|
-
* What `projectId` was derived from. On EVERY event, not just the profile, because the core
|
|
1406
|
-
* counting questions ("users per project", "projects per user") run over all events and need to
|
|
1407
|
-
* know which rows are comparable across machines without joining to another event first.
|
|
1408
|
-
*/
|
|
1409
|
-
projectIdSource: z.ZodOptional<z.ZodNativeEnum<{
|
|
1013
|
+
projectIdSource: z.ZodOptional<z.ZodEnum<{
|
|
1410
1014
|
/** Hash of the shared git origin — the same on every clone, so cross-machine counting is valid. */
|
|
1411
1015
|
readonly GIT_ORIGIN: "git_origin";
|
|
1412
1016
|
/** Hash of the repo ROOT path — machine-local, but the same for every directory inside the repo. */
|
|
@@ -1416,33 +1020,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1416
1020
|
/** Hash of the raw working directory — the last resort, and the only source that is NOT stable. */
|
|
1417
1021
|
readonly CWD: "cwd";
|
|
1418
1022
|
}>>;
|
|
1419
|
-
/** `process.platform` (darwin/linux/win32) — OS mix, low cardinality, non-identifying. */
|
|
1420
1023
|
os: z.ZodString;
|
|
1421
|
-
/**
|
|
1422
|
-
* Minutes this machine's local time is offset from UTC.
|
|
1423
|
-
*
|
|
1424
|
-
* "When do they work" was answerable only through ingest-side GeoIP, which may be off and is a
|
|
1425
|
-
* coarser thing than a working day. One integer, no location, identifies nobody — and it turns
|
|
1426
|
-
* every time-of-day tile from "which continent" into "9am or 11pm".
|
|
1427
|
-
*/
|
|
1428
1024
|
tzOffsetMin: z.ZodOptional<z.ZodNumber>;
|
|
1429
|
-
/**
|
|
1430
|
-
* The Reticle team's own run (`RETICLE_INTERNAL=1`, or `~/.reticle/telemetry-internal` present):
|
|
1431
|
-
* dogfooding and release sweeps. Absent for everyone else. Filter it OUT of any user count.
|
|
1432
|
-
*/
|
|
1433
1025
|
internal: z.ZodOptional<z.ZodBoolean>;
|
|
1434
|
-
/**
|
|
1435
|
-
* `anonymousId` could not be persisted (read-only home, sandbox), so it is new in every process
|
|
1436
|
-
* and a distinct count over it counts processes, not people. Absent when the id persisted.
|
|
1437
|
-
*/
|
|
1438
1026
|
idEphemeral: z.ZodOptional<z.ZodBoolean>;
|
|
1439
|
-
/** Only on `feedback`: the author-submitted report + its environment context. Never sent otherwise. */
|
|
1440
1027
|
feedback: z.ZodOptional<z.ZodObject<{
|
|
1441
|
-
source: z.
|
|
1028
|
+
source: z.ZodEnum<{
|
|
1442
1029
|
readonly AGENT: "agent";
|
|
1443
1030
|
readonly HUMAN: "human";
|
|
1444
1031
|
}>;
|
|
1445
|
-
kind: z.
|
|
1032
|
+
kind: z.ZodEnum<{
|
|
1446
1033
|
readonly BUG: "bug";
|
|
1447
1034
|
readonly GAP: "gap";
|
|
1448
1035
|
readonly AMBIGUITY: "ambiguity";
|
|
@@ -1460,79 +1047,33 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1460
1047
|
clientVersion: z.ZodOptional<z.ZodString>;
|
|
1461
1048
|
stack: z.ZodOptional<z.ZodString>;
|
|
1462
1049
|
stackMajor: z.ZodOptional<z.ZodNumber>;
|
|
1463
|
-
runtime: z.ZodOptional<z.
|
|
1050
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1464
1051
|
readonly WEB: "web";
|
|
1465
1052
|
readonly ELECTRON: "electron";
|
|
1466
1053
|
readonly TAURI: "tauri";
|
|
1467
1054
|
}>>;
|
|
1468
|
-
engine: z.ZodOptional<z.
|
|
1055
|
+
engine: z.ZodOptional<z.ZodEnum<{
|
|
1469
1056
|
readonly BLINK: "blink";
|
|
1470
1057
|
readonly GECKO: "gecko";
|
|
1471
1058
|
readonly WEBKIT: "webkit";
|
|
1472
1059
|
}>>;
|
|
1473
|
-
driver: z.ZodOptional<z.
|
|
1060
|
+
driver: z.ZodOptional<z.ZodEnum<{
|
|
1474
1061
|
readonly CDP: "cdp";
|
|
1475
1062
|
readonly SDK: "sdk";
|
|
1476
1063
|
}>>;
|
|
1477
1064
|
client: z.ZodOptional<z.ZodString>;
|
|
1478
|
-
mcpScope: z.ZodOptional<z.
|
|
1065
|
+
mcpScope: z.ZodOptional<z.ZodEnum<{
|
|
1479
1066
|
readonly USER: "user";
|
|
1480
1067
|
readonly PROJECT: "project";
|
|
1481
1068
|
}>>;
|
|
1482
|
-
contact: z.ZodOptional<z.
|
|
1483
|
-
},
|
|
1484
|
-
|
|
1485
|
-
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1486
|
-
source: "agent" | "human";
|
|
1487
|
-
impact?: string | undefined;
|
|
1488
|
-
model?: string | undefined;
|
|
1489
|
-
trace?: string | undefined;
|
|
1490
|
-
rating?: number | undefined;
|
|
1491
|
-
need?: string | undefined;
|
|
1492
|
-
currentApproach?: string | undefined;
|
|
1493
|
-
clientVersion?: string | undefined;
|
|
1494
|
-
stack?: string | undefined;
|
|
1495
|
-
stackMajor?: number | undefined;
|
|
1496
|
-
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
1497
|
-
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
1498
|
-
driver?: "cdp" | "sdk" | undefined;
|
|
1499
|
-
client?: string | undefined;
|
|
1500
|
-
mcpScope?: "project" | "user" | undefined;
|
|
1501
|
-
contact?: string | undefined;
|
|
1502
|
-
}, {
|
|
1503
|
-
text: string;
|
|
1504
|
-
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1505
|
-
source: "agent" | "human";
|
|
1506
|
-
impact?: string | undefined;
|
|
1507
|
-
model?: string | undefined;
|
|
1508
|
-
trace?: string | undefined;
|
|
1509
|
-
rating?: number | undefined;
|
|
1510
|
-
need?: string | undefined;
|
|
1511
|
-
currentApproach?: string | undefined;
|
|
1512
|
-
clientVersion?: string | undefined;
|
|
1513
|
-
stack?: string | undefined;
|
|
1514
|
-
stackMajor?: number | undefined;
|
|
1515
|
-
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
1516
|
-
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
1517
|
-
driver?: "cdp" | "sdk" | undefined;
|
|
1518
|
-
client?: string | undefined;
|
|
1519
|
-
mcpScope?: "project" | "user" | undefined;
|
|
1520
|
-
contact?: string | undefined;
|
|
1521
|
-
}>>;
|
|
1522
|
-
/** Human or agent. Absent on events that are neither (a crash, a version change). */
|
|
1523
|
-
actor: z.ZodOptional<z.ZodNativeEnum<{
|
|
1069
|
+
contact: z.ZodOptional<z.ZodString>;
|
|
1070
|
+
}, z.core.$strip>>;
|
|
1071
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
1524
1072
|
readonly HUMAN: "human";
|
|
1525
1073
|
readonly AGENT: "agent";
|
|
1526
1074
|
}>>;
|
|
1527
|
-
/** Only on `cli_command_run`: which subcommand. */
|
|
1528
1075
|
command: z.ZodOptional<z.ZodString>;
|
|
1529
|
-
|
|
1530
|
-
* Only on `cli_command_run`: which flags were PRESENT, by name. Never their values — a flag value
|
|
1531
|
-
* is a port, a URL, a file path, or in `--http-token`'s case a secret. Names alone answer the
|
|
1532
|
-
* question ("does anyone use `--storage-state`?") with none of that risk.
|
|
1533
|
-
*/
|
|
1534
|
-
flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1535
|
-
/** Only on `daemon_stopped`: the whole session rolled into one event. */
|
|
1076
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1536
1077
|
session: z.ZodOptional<z.ZodObject<{
|
|
1537
1078
|
durationMs: z.ZodNumber;
|
|
1538
1079
|
toolCalls: z.ZodNumber;
|
|
@@ -1543,34 +1084,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1543
1084
|
count: z.ZodNumber;
|
|
1544
1085
|
message: z.ZodString;
|
|
1545
1086
|
tool: z.ZodOptional<z.ZodString>;
|
|
1546
|
-
},
|
|
1547
|
-
message: string;
|
|
1548
|
-
count: number;
|
|
1549
|
-
fingerprint: string;
|
|
1550
|
-
tool?: string | undefined;
|
|
1551
|
-
}, {
|
|
1552
|
-
message: string;
|
|
1553
|
-
count: number;
|
|
1554
|
-
fingerprint: string;
|
|
1555
|
-
tool?: string | undefined;
|
|
1556
|
-
}>, "many">>;
|
|
1087
|
+
}, z.core.$strip>>>;
|
|
1557
1088
|
sdkFailures: z.ZodOptional<z.ZodNumber>;
|
|
1558
1089
|
sdkErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1559
1090
|
fingerprint: z.ZodString;
|
|
1560
1091
|
count: z.ZodNumber;
|
|
1561
1092
|
message: z.ZodString;
|
|
1562
1093
|
tool: z.ZodOptional<z.ZodString>;
|
|
1563
|
-
},
|
|
1564
|
-
message: string;
|
|
1565
|
-
count: number;
|
|
1566
|
-
fingerprint: string;
|
|
1567
|
-
tool?: string | undefined;
|
|
1568
|
-
}, {
|
|
1569
|
-
message: string;
|
|
1570
|
-
count: number;
|
|
1571
|
-
fingerprint: string;
|
|
1572
|
-
tool?: string | undefined;
|
|
1573
|
-
}>, "many">>;
|
|
1094
|
+
}, z.core.$strip>>>;
|
|
1574
1095
|
verifications: z.ZodNumber;
|
|
1575
1096
|
bugsFound: z.ZodOptional<z.ZodNumber>;
|
|
1576
1097
|
bugKinds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
@@ -1579,25 +1100,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1579
1100
|
attempts: z.ZodNumber;
|
|
1580
1101
|
successes: z.ZodNumber;
|
|
1581
1102
|
failures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1582
|
-
},
|
|
1583
|
-
attempts: number;
|
|
1584
|
-
successes: number;
|
|
1585
|
-
failures?: Record<string, number> | undefined;
|
|
1586
|
-
}, {
|
|
1587
|
-
attempts: number;
|
|
1588
|
-
successes: number;
|
|
1589
|
-
failures?: Record<string, number> | undefined;
|
|
1590
|
-
}>>>;
|
|
1103
|
+
}, z.core.$strip>>>;
|
|
1591
1104
|
toolTiming: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1592
1105
|
totalMs: z.ZodNumber;
|
|
1593
1106
|
maxMs: z.ZodNumber;
|
|
1594
|
-
},
|
|
1595
|
-
totalMs: number;
|
|
1596
|
-
maxMs: number;
|
|
1597
|
-
}, {
|
|
1598
|
-
totalMs: number;
|
|
1599
|
-
maxMs: number;
|
|
1600
|
-
}>>>;
|
|
1107
|
+
}, z.core.$strip>>>;
|
|
1601
1108
|
busyMs: z.ZodOptional<z.ZodNumber>;
|
|
1602
1109
|
browserMs: z.ZodOptional<z.ZodNumber>;
|
|
1603
1110
|
browserCommands: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1616,29 +1123,21 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1616
1123
|
totalMemMb: z.ZodNumber;
|
|
1617
1124
|
load1x100: z.ZodNumber;
|
|
1618
1125
|
cpuCount: z.ZodNumber;
|
|
1619
|
-
},
|
|
1620
|
-
|
|
1621
|
-
heapUsedMb: number;
|
|
1622
|
-
freeMemMb: number;
|
|
1623
|
-
totalMemMb: number;
|
|
1624
|
-
load1x100: number;
|
|
1625
|
-
cpuCount: number;
|
|
1626
|
-
}, {
|
|
1627
|
-
rssMb: number;
|
|
1628
|
-
heapUsedMb: number;
|
|
1629
|
-
freeMemMb: number;
|
|
1630
|
-
totalMemMb: number;
|
|
1631
|
-
load1x100: number;
|
|
1632
|
-
cpuCount: number;
|
|
1633
|
-
}>>;
|
|
1634
|
-
clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1126
|
+
}, z.core.$strip>>;
|
|
1127
|
+
clients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1635
1128
|
clientVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1636
1129
|
surface: z.ZodOptional<z.ZodString>;
|
|
1637
1130
|
appConnects: z.ZodOptional<z.ZodNumber>;
|
|
1638
1131
|
msToFirstApp: z.ZodOptional<z.ZodNumber>;
|
|
1639
1132
|
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
1640
1133
|
toolCallsBeforeApp: z.ZodOptional<z.ZodNumber>;
|
|
1641
|
-
endReason: z.ZodOptional<z.ZodEnum<
|
|
1134
|
+
endReason: z.ZodOptional<z.ZodEnum<{
|
|
1135
|
+
verified: "verified";
|
|
1136
|
+
abandoned: "abandoned";
|
|
1137
|
+
never_used: "never_used";
|
|
1138
|
+
explored: "explored";
|
|
1139
|
+
client_left: "client_left";
|
|
1140
|
+
}>>;
|
|
1642
1141
|
feedbackPrompted: z.ZodOptional<z.ZodNumber>;
|
|
1643
1142
|
errorClasses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1644
1143
|
errorsRecovered: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1653,185 +1152,35 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1653
1152
|
hudViewMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1654
1153
|
hudPanelMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1655
1154
|
hudSlides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1656
|
-
hudJourney: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1155
|
+
hudJourney: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1657
1156
|
hudJourneyCut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1658
|
-
nudgesShown: z.ZodOptional<z.ZodRecord<z.
|
|
1157
|
+
nudgesShown: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1659
1158
|
readonly CONNECT: "connect";
|
|
1660
1159
|
readonly CLOSE_GAPS: "close_gaps";
|
|
1661
1160
|
readonly SWITCH_ON: "switch_on";
|
|
1662
1161
|
readonly EXPLORE: "explore";
|
|
1663
|
-
}
|
|
1664
|
-
harnessRefusedCoverage: z.ZodOptional<z.ZodRecord<z.
|
|
1162
|
+
}> & z.core.$partial, z.ZodNumber>>;
|
|
1163
|
+
harnessRefusedCoverage: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1665
1164
|
readonly B0: "0-19";
|
|
1666
1165
|
readonly B20: "20-39";
|
|
1667
1166
|
readonly B40: "40-59";
|
|
1668
1167
|
readonly B60: "60-79";
|
|
1669
1168
|
readonly B80: "80-100";
|
|
1670
|
-
}
|
|
1169
|
+
}> & z.core.$partial, z.ZodNumber>>;
|
|
1671
1170
|
final: z.ZodBoolean;
|
|
1672
|
-
exit: z.ZodOptional<z.ZodEnum<
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
verifications: number;
|
|
1679
|
-
final: boolean;
|
|
1680
|
-
surface?: string | undefined;
|
|
1681
|
-
sdkVersion?: string | undefined;
|
|
1682
|
-
errors?: {
|
|
1683
|
-
message: string;
|
|
1684
|
-
count: number;
|
|
1685
|
-
fingerprint: string;
|
|
1686
|
-
tool?: string | undefined;
|
|
1687
|
-
}[] | undefined;
|
|
1688
|
-
sdkFailures?: number | undefined;
|
|
1689
|
-
sdkErrors?: {
|
|
1690
|
-
message: string;
|
|
1691
|
-
count: number;
|
|
1692
|
-
fingerprint: string;
|
|
1693
|
-
tool?: string | undefined;
|
|
1694
|
-
}[] | undefined;
|
|
1695
|
-
bugsFound?: number | undefined;
|
|
1696
|
-
bugKinds?: Record<string, number> | undefined;
|
|
1697
|
-
toolParams?: Record<string, Record<string, number>> | undefined;
|
|
1698
|
-
connections?: Record<string, {
|
|
1699
|
-
attempts: number;
|
|
1700
|
-
successes: number;
|
|
1701
|
-
failures?: Record<string, number> | undefined;
|
|
1702
|
-
}> | undefined;
|
|
1703
|
-
toolTiming?: Record<string, {
|
|
1704
|
-
totalMs: number;
|
|
1705
|
-
maxMs: number;
|
|
1706
|
-
}> | undefined;
|
|
1707
|
-
busyMs?: number | undefined;
|
|
1708
|
-
browserMs?: number | undefined;
|
|
1709
|
-
browserCommands?: number | undefined;
|
|
1710
|
-
peakConcurrentTools?: number | undefined;
|
|
1711
|
-
unknownToolCalls?: number | undefined;
|
|
1712
|
-
unknownTools?: Record<string, number> | undefined;
|
|
1713
|
-
noSessionErrors?: number | undefined;
|
|
1714
|
-
postSocketFailures?: number | undefined;
|
|
1715
|
-
postRetriesSaved?: number | undefined;
|
|
1716
|
-
consecutiveRepeats?: Record<string, number> | undefined;
|
|
1717
|
-
abandonedActions?: number | undefined;
|
|
1718
|
-
machine?: {
|
|
1719
|
-
rssMb: number;
|
|
1720
|
-
heapUsedMb: number;
|
|
1721
|
-
freeMemMb: number;
|
|
1722
|
-
totalMemMb: number;
|
|
1723
|
-
load1x100: number;
|
|
1724
|
-
cpuCount: number;
|
|
1725
|
-
} | undefined;
|
|
1726
|
-
clients?: string[] | undefined;
|
|
1727
|
-
clientVersions?: Record<string, string> | undefined;
|
|
1728
|
-
appConnects?: number | undefined;
|
|
1729
|
-
msToFirstApp?: number | undefined;
|
|
1730
|
-
toolCallsBeforeApp?: number | undefined;
|
|
1731
|
-
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
1732
|
-
feedbackPrompted?: number | undefined;
|
|
1733
|
-
errorClasses?: Record<string, number> | undefined;
|
|
1734
|
-
errorsRecovered?: number | undefined;
|
|
1735
|
-
errorsRepeated?: number | undefined;
|
|
1736
|
-
endedWithVerdict?: boolean | undefined;
|
|
1737
|
-
lifetimeToolCalls?: number | undefined;
|
|
1738
|
-
lifetimeVerifications?: number | undefined;
|
|
1739
|
-
lifetimeBugsFound?: number | undefined;
|
|
1740
|
-
updateNudged?: boolean | undefined;
|
|
1741
|
-
updateOffered?: string | undefined;
|
|
1742
|
-
hudControls?: Record<string, number> | undefined;
|
|
1743
|
-
hudViewMs?: Record<string, number> | undefined;
|
|
1744
|
-
hudPanelMs?: Record<string, number> | undefined;
|
|
1745
|
-
hudSlides?: Record<string, number> | undefined;
|
|
1746
|
-
hudJourney?: string[] | undefined;
|
|
1747
|
-
hudJourneyCut?: true | undefined;
|
|
1748
|
-
nudgesShown?: Partial<Record<"connect" | "close_gaps" | "switch_on" | "explore", number>> | undefined;
|
|
1749
|
-
harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
|
|
1750
|
-
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1751
|
-
}, {
|
|
1752
|
-
durationMs: number;
|
|
1753
|
-
toolCalls: number;
|
|
1754
|
-
toolCounts: Record<string, number>;
|
|
1755
|
-
toolErrors: number;
|
|
1756
|
-
verifications: number;
|
|
1757
|
-
final: boolean;
|
|
1758
|
-
surface?: string | undefined;
|
|
1759
|
-
sdkVersion?: string | undefined;
|
|
1760
|
-
errors?: {
|
|
1761
|
-
message: string;
|
|
1762
|
-
count: number;
|
|
1763
|
-
fingerprint: string;
|
|
1764
|
-
tool?: string | undefined;
|
|
1765
|
-
}[] | undefined;
|
|
1766
|
-
sdkFailures?: number | undefined;
|
|
1767
|
-
sdkErrors?: {
|
|
1768
|
-
message: string;
|
|
1769
|
-
count: number;
|
|
1770
|
-
fingerprint: string;
|
|
1771
|
-
tool?: string | undefined;
|
|
1772
|
-
}[] | undefined;
|
|
1773
|
-
bugsFound?: number | undefined;
|
|
1774
|
-
bugKinds?: Record<string, number> | undefined;
|
|
1775
|
-
toolParams?: Record<string, Record<string, number>> | undefined;
|
|
1776
|
-
connections?: Record<string, {
|
|
1777
|
-
attempts: number;
|
|
1778
|
-
successes: number;
|
|
1779
|
-
failures?: Record<string, number> | undefined;
|
|
1780
|
-
}> | undefined;
|
|
1781
|
-
toolTiming?: Record<string, {
|
|
1782
|
-
totalMs: number;
|
|
1783
|
-
maxMs: number;
|
|
1784
|
-
}> | undefined;
|
|
1785
|
-
busyMs?: number | undefined;
|
|
1786
|
-
browserMs?: number | undefined;
|
|
1787
|
-
browserCommands?: number | undefined;
|
|
1788
|
-
peakConcurrentTools?: number | undefined;
|
|
1789
|
-
unknownToolCalls?: number | undefined;
|
|
1790
|
-
unknownTools?: Record<string, number> | undefined;
|
|
1791
|
-
noSessionErrors?: number | undefined;
|
|
1792
|
-
postSocketFailures?: number | undefined;
|
|
1793
|
-
postRetriesSaved?: number | undefined;
|
|
1794
|
-
consecutiveRepeats?: Record<string, number> | undefined;
|
|
1795
|
-
abandonedActions?: number | undefined;
|
|
1796
|
-
machine?: {
|
|
1797
|
-
rssMb: number;
|
|
1798
|
-
heapUsedMb: number;
|
|
1799
|
-
freeMemMb: number;
|
|
1800
|
-
totalMemMb: number;
|
|
1801
|
-
load1x100: number;
|
|
1802
|
-
cpuCount: number;
|
|
1803
|
-
} | undefined;
|
|
1804
|
-
clients?: string[] | undefined;
|
|
1805
|
-
clientVersions?: Record<string, string> | undefined;
|
|
1806
|
-
appConnects?: number | undefined;
|
|
1807
|
-
msToFirstApp?: number | undefined;
|
|
1808
|
-
toolCallsBeforeApp?: number | undefined;
|
|
1809
|
-
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
1810
|
-
feedbackPrompted?: number | undefined;
|
|
1811
|
-
errorClasses?: Record<string, number> | undefined;
|
|
1812
|
-
errorsRecovered?: number | undefined;
|
|
1813
|
-
errorsRepeated?: number | undefined;
|
|
1814
|
-
endedWithVerdict?: boolean | undefined;
|
|
1815
|
-
lifetimeToolCalls?: number | undefined;
|
|
1816
|
-
lifetimeVerifications?: number | undefined;
|
|
1817
|
-
lifetimeBugsFound?: number | undefined;
|
|
1818
|
-
updateNudged?: boolean | undefined;
|
|
1819
|
-
updateOffered?: string | undefined;
|
|
1820
|
-
hudControls?: Record<string, number> | undefined;
|
|
1821
|
-
hudViewMs?: Record<string, number> | undefined;
|
|
1822
|
-
hudPanelMs?: Record<string, number> | undefined;
|
|
1823
|
-
hudSlides?: Record<string, number> | undefined;
|
|
1824
|
-
hudJourney?: string[] | undefined;
|
|
1825
|
-
hudJourneyCut?: true | undefined;
|
|
1826
|
-
nudgesShown?: Partial<Record<"connect" | "close_gaps" | "switch_on" | "explore", number>> | undefined;
|
|
1827
|
-
harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
|
|
1828
|
-
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1829
|
-
}>>;
|
|
1830
|
-
/** Only on `project_profiled`: the shape and depth-of-use of the project. */
|
|
1171
|
+
exit: z.ZodOptional<z.ZodEnum<{
|
|
1172
|
+
signal: "signal";
|
|
1173
|
+
idle: "idle";
|
|
1174
|
+
unknown: "unknown";
|
|
1175
|
+
}>>;
|
|
1176
|
+
}, z.core.$strip>>;
|
|
1831
1177
|
project: z.ZodOptional<z.ZodObject<{
|
|
1832
1178
|
stack: z.ZodOptional<z.ZodString>;
|
|
1833
|
-
stackSource: z.ZodOptional<z.ZodEnum<
|
|
1834
|
-
|
|
1179
|
+
stackSource: z.ZodOptional<z.ZodEnum<{
|
|
1180
|
+
cwd: "cwd";
|
|
1181
|
+
workspace: "workspace";
|
|
1182
|
+
}>>;
|
|
1183
|
+
stackUnknownReason: z.ZodOptional<z.ZodEnum<{
|
|
1835
1184
|
readonly NO_APP_FOUND: "no_app_found";
|
|
1836
1185
|
readonly MANIFEST_UNRECOGNISED: "manifest_unrecognised";
|
|
1837
1186
|
readonly WORKSPACE_APPS_UNRECOGNISED: "workspace_apps_unrecognised";
|
|
@@ -1839,7 +1188,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1839
1188
|
readonly DISCOVERY_FAILED: "discovery_failed";
|
|
1840
1189
|
}>>;
|
|
1841
1190
|
stackMajor: z.ZodOptional<z.ZodNumber>;
|
|
1842
|
-
size: z.ZodOptional<z.
|
|
1191
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
1843
1192
|
readonly TINY: "tiny";
|
|
1844
1193
|
readonly SMALL: "small";
|
|
1845
1194
|
readonly MEDIUM: "medium";
|
|
@@ -1847,12 +1196,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1847
1196
|
readonly HUGE: "huge";
|
|
1848
1197
|
}>>;
|
|
1849
1198
|
monorepo: z.ZodOptional<z.ZodBoolean>;
|
|
1850
|
-
git: z.
|
|
1199
|
+
git: z.ZodEnum<{
|
|
1851
1200
|
readonly NONE: "none";
|
|
1852
1201
|
readonly LOCAL_ONLY: "local_only";
|
|
1853
1202
|
readonly REMOTE: "remote";
|
|
1854
1203
|
}>;
|
|
1855
|
-
forge: z.ZodOptional<z.
|
|
1204
|
+
forge: z.ZodOptional<z.ZodEnum<{
|
|
1856
1205
|
readonly GITHUB: "github";
|
|
1857
1206
|
readonly GITLAB: "gitlab";
|
|
1858
1207
|
readonly BITBUCKET: "bitbucket";
|
|
@@ -1870,91 +1219,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1870
1219
|
initialized: z.ZodOptional<z.ZodBoolean>;
|
|
1871
1220
|
appConnectedBefore: z.ZodOptional<z.ZodBoolean>;
|
|
1872
1221
|
capsuleCount: z.ZodNumber;
|
|
1873
|
-
featuresUsed: z.ZodArray<z.ZodString
|
|
1222
|
+
featuresUsed: z.ZodArray<z.ZodString>;
|
|
1874
1223
|
featureDepth: z.ZodNumber;
|
|
1875
|
-
},
|
|
1876
|
-
git: "none" | "local_only" | "remote";
|
|
1877
|
-
flowCount: number;
|
|
1878
|
-
baselineCount: number;
|
|
1879
|
-
visualBaselineCount: number;
|
|
1880
|
-
runCount: number;
|
|
1881
|
-
hasContract: boolean;
|
|
1882
|
-
capsuleCount: number;
|
|
1883
|
-
featuresUsed: string[];
|
|
1884
|
-
featureDepth: number;
|
|
1885
|
-
stack?: string | undefined;
|
|
1886
|
-
stackMajor?: number | undefined;
|
|
1887
|
-
size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
|
|
1888
|
-
stackSource?: "cwd" | "workspace" | undefined;
|
|
1889
|
-
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
1890
|
-
monorepo?: boolean | undefined;
|
|
1891
|
-
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
1892
|
-
ageWeeks?: number | undefined;
|
|
1893
|
-
initialized?: boolean | undefined;
|
|
1894
|
-
appConnectedBefore?: boolean | undefined;
|
|
1895
|
-
}, {
|
|
1896
|
-
git: "none" | "local_only" | "remote";
|
|
1897
|
-
flowCount: number;
|
|
1898
|
-
baselineCount: number;
|
|
1899
|
-
visualBaselineCount: number;
|
|
1900
|
-
runCount: number;
|
|
1901
|
-
hasContract: boolean;
|
|
1902
|
-
capsuleCount: number;
|
|
1903
|
-
featuresUsed: string[];
|
|
1904
|
-
featureDepth: number;
|
|
1905
|
-
stack?: string | undefined;
|
|
1906
|
-
stackMajor?: number | undefined;
|
|
1907
|
-
size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
|
|
1908
|
-
stackSource?: "cwd" | "workspace" | undefined;
|
|
1909
|
-
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
1910
|
-
monorepo?: boolean | undefined;
|
|
1911
|
-
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
1912
|
-
ageWeeks?: number | undefined;
|
|
1913
|
-
initialized?: boolean | undefined;
|
|
1914
|
-
appConnectedBefore?: boolean | undefined;
|
|
1915
|
-
}>>;
|
|
1916
|
-
/** Only on `verification_completed`. */
|
|
1224
|
+
}, z.core.$strip>>;
|
|
1917
1225
|
verification: z.ZodOptional<z.ZodObject<{
|
|
1918
|
-
/** Which tool produced the verdict (`reticle_assert`, `reticle_flow_verify`, …). */
|
|
1919
1226
|
via: z.ZodString;
|
|
1920
|
-
/**
|
|
1921
|
-
* `yes` | `no` | `unknown` | `no-fault` — the honest verdict, from `Verified`.
|
|
1922
|
-
*
|
|
1923
|
-
* FOUR values, not three. This comment said three for long enough that a dashboard written from it
|
|
1924
|
-
* silently drops the bucket that is most actionable: `no-fault` means the window was clean and
|
|
1925
|
-
* nothing was declared to prove, which is a teachable agent behaviour rather than a Reticle or an
|
|
1926
|
-
* app problem, and `unknown` means the evidence could not decide.
|
|
1927
|
-
*/
|
|
1928
1227
|
verified: z.ZodString;
|
|
1929
|
-
/** Did the underlying assertion pass? Distinct from `verified` on purpose. */
|
|
1930
1228
|
passed: z.ZodBoolean;
|
|
1931
|
-
/**
|
|
1932
|
-
* TRUE when the assertion passed but Reticle refused to call it verified — a caught false green.
|
|
1933
|
-
*/
|
|
1934
1229
|
falseGreenCaught: z.ZodBoolean;
|
|
1935
1230
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1936
|
-
/**
|
|
1937
|
-
* `headless` | `headed` | `attached` — how the browser under verification got there.
|
|
1938
|
-
*
|
|
1939
|
-
* Without it, "verifications run" is one undifferentiated number covering three different
|
|
1940
|
-
* products: unattended CI, a human watching an agent work, and the SDK in somebody's own dev
|
|
1941
|
-
* server. They have different costs, different failure modes and different value, and only the
|
|
1942
|
-
* last one is what most installs actually do.
|
|
1943
|
-
*/
|
|
1944
1231
|
browser: z.ZodOptional<z.ZodString>;
|
|
1945
|
-
|
|
1946
|
-
* WHICH browser it was — `chrome` | `edge` | `arc` | `dia` | `brave` | `opera` | `firefox` |
|
|
1947
|
-
* `safari` | `other`, from `BrowserBrand`.
|
|
1948
|
-
*
|
|
1949
|
-
* `browser` above says who drove it, and its most common value by far is `attached`: the SDK
|
|
1950
|
-
* connected from a browser Reticle never launched. That leaves the actual browser unknown, and
|
|
1951
|
-
* the engine cannot fill the gap — Chrome, Edge, Arc, Dia and Brave are one `blink`.
|
|
1952
|
-
*
|
|
1953
|
-
* OPTIONAL and absent rather than `"unknown"` when the page did not say: a desktop webview has no
|
|
1954
|
-
* brand, and an older SDK does not report one. A guessed value would be indistinguishable from a
|
|
1955
|
-
* measured one on a dashboard.
|
|
1956
|
-
*/
|
|
1957
|
-
brand: z.ZodOptional<z.ZodNativeEnum<{
|
|
1232
|
+
brand: z.ZodOptional<z.ZodEnum<{
|
|
1958
1233
|
readonly CHROME: "chrome";
|
|
1959
1234
|
readonly EDGE: "edge";
|
|
1960
1235
|
readonly ARC: "arc";
|
|
@@ -1965,18 +1240,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1965
1240
|
readonly SAFARI: "safari";
|
|
1966
1241
|
readonly OTHER: "other";
|
|
1967
1242
|
}>>;
|
|
1968
|
-
|
|
1969
|
-
* WHICH clause of the honesty rule decided this — see `VerifiedReason`.
|
|
1970
|
-
*
|
|
1971
|
-
* `verified` alone cannot answer the question the product is judged on. `unknown` + `passed:false`
|
|
1972
|
-
* was measured covering "Reticle caught a real bug", "the agent wrote a bad predicate" and
|
|
1973
|
-
* "Reticle itself could not see", which need opposite responses and arrive as one value; `no`
|
|
1974
|
-
* collapses "channels disagree" into "the agent's predicate failed" the same way.
|
|
1975
|
-
*
|
|
1976
|
-
* OPTIONAL because not every verdict comes from `decideVerified` — a suite reports pass/fail with
|
|
1977
|
-
* no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
|
|
1978
|
-
*/
|
|
1979
|
-
reason: z.ZodOptional<z.ZodNativeEnum<{
|
|
1243
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1980
1244
|
readonly VERSION_SKEW: "version_skew";
|
|
1981
1245
|
readonly CAPABILITY_ABSENT: "capability-absent";
|
|
1982
1246
|
readonly INCONCLUSIVE: "inconclusive";
|
|
@@ -1996,127 +1260,35 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1996
1260
|
readonly PROVED: "proved";
|
|
1997
1261
|
readonly ABSENCE_BLIND_SPOT: "absence_blind_spot";
|
|
1998
1262
|
}>>;
|
|
1999
|
-
|
|
2000
|
-
* WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
|
|
2001
|
-
*
|
|
2002
|
-
* The three causes belong to three different owners and need three different fixes, and without
|
|
2003
|
-
* this they are one bar — and the cause has turned out to be Reticle's own eviction counter
|
|
2004
|
-
* miscounting, which no aggregate could have shown.
|
|
2005
|
-
*
|
|
2006
|
-
* ONE value, not a list: `losses` can hold several and a multi-value property is not something a
|
|
2007
|
-
* dashboard can group by, so the FIRST is sent and the order in the producers is the order of
|
|
2008
|
-
* ownership — Reticle's before the page's. Absent on every verdict whose capture was clean.
|
|
2009
|
-
*/
|
|
2010
|
-
uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
|
|
1263
|
+
uncleanLoss: z.ZodOptional<z.ZodEnum<{
|
|
2011
1264
|
readonly BUFFER_LOSS: "buffer_loss";
|
|
2012
1265
|
readonly TRANSPORT_GAP: "transport_gap";
|
|
2013
1266
|
readonly BLIND_SPOT: "blind_spot";
|
|
2014
1267
|
readonly JOURNAL_LOSS: "journal_loss";
|
|
2015
1268
|
readonly OTHER: "other";
|
|
2016
1269
|
}>>;
|
|
2017
|
-
|
|
2018
|
-
* Set when one of our OWN drives produced this verdict rather than the user's agent — see
|
|
2019
|
-
* `VerificationDriver`. Absent is the ordinary case and means the agent called the tool itself.
|
|
2020
|
-
*/
|
|
2021
|
-
driven: z.ZodOptional<z.ZodNativeEnum<{
|
|
1270
|
+
driven: z.ZodOptional<z.ZodEnum<{
|
|
2022
1271
|
/** A model inside the daemon drove this, on the user's behalf. */
|
|
2023
1272
|
readonly HARNESS: "harness";
|
|
2024
1273
|
}>>;
|
|
2025
|
-
/** The page SDK version from its HELLO: our own release number, or `other`. Absent if unsaid. */
|
|
2026
1274
|
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
2027
|
-
},
|
|
2028
|
-
verified: string;
|
|
2029
|
-
passed: boolean;
|
|
2030
|
-
via: string;
|
|
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;
|
|
2033
|
-
browser?: string | undefined;
|
|
2034
|
-
durationMs?: number | undefined;
|
|
2035
|
-
sdkVersion?: string | undefined;
|
|
2036
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2037
|
-
driven?: "harness" | undefined;
|
|
2038
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
2039
|
-
}, {
|
|
2040
|
-
verified: string;
|
|
2041
|
-
passed: boolean;
|
|
2042
|
-
via: string;
|
|
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;
|
|
2045
|
-
browser?: string | undefined;
|
|
2046
|
-
durationMs?: number | undefined;
|
|
2047
|
-
sdkVersion?: string | undefined;
|
|
2048
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2049
|
-
driven?: "harness" | undefined;
|
|
2050
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
2051
|
-
}>>;
|
|
2052
|
-
/** Only on `version_changed`. */
|
|
1275
|
+
}, z.core.$strip>>;
|
|
2053
1276
|
versionChange: z.ZodOptional<z.ZodObject<{
|
|
2054
1277
|
from: z.ZodString;
|
|
2055
1278
|
to: z.ZodString;
|
|
2056
|
-
/**
|
|
2057
|
-
* True when an agent had been told about exactly this version recently — so the nudge plausibly
|
|
2058
|
-
* caused the update.
|
|
2059
|
-
*
|
|
2060
|
-
* Without it, `version_changed` says a version moved and never why, which leaves "the nudge never
|
|
2061
|
-
* fired" and "the nudge fired and nobody acted" indistinguishable. Those need opposite responses,
|
|
2062
|
-
* and the whole adoption story rests on knowing which one is happening.
|
|
2063
|
-
*/
|
|
2064
1279
|
nudged: z.ZodOptional<z.ZodBoolean>;
|
|
2065
|
-
/** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
|
|
2066
1280
|
direction: z.ZodString;
|
|
2067
|
-
},
|
|
2068
|
-
from: string;
|
|
2069
|
-
to: string;
|
|
2070
|
-
direction: string;
|
|
2071
|
-
nudged?: boolean | undefined;
|
|
2072
|
-
}, {
|
|
2073
|
-
from: string;
|
|
2074
|
-
to: string;
|
|
2075
|
-
direction: string;
|
|
2076
|
-
nudged?: boolean | undefined;
|
|
2077
|
-
}>>;
|
|
2078
|
-
/** Only on `runtime_crashed`. */
|
|
1281
|
+
}, z.core.$strip>>;
|
|
2079
1282
|
crash: z.ZodOptional<z.ZodObject<{
|
|
2080
|
-
/** `uncaught_exception` | `unhandled_rejection`. */
|
|
2081
1283
|
kind: z.ZodString;
|
|
2082
|
-
/** The error's constructor name (`TypeError`) — coarse, safe, and enough to triage. */
|
|
2083
1284
|
errorType: z.ZodOptional<z.ZodString>;
|
|
2084
|
-
/** Hash of the type + Reticle's own frames. Groups the same crash across every machine. */
|
|
2085
1285
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
2086
|
-
/**
|
|
2087
|
-
* The message with every VARIABLE part removed — quoted strings, URLs, paths, ids, numbers all
|
|
2088
|
-
* replaced by `*`. `no baseline named *` says exactly what broke; the flow name that made it
|
|
2089
|
-
* specific to one user never leaves. This is what turns the fingerprint from an opaque key into a
|
|
2090
|
-
* readable defect.
|
|
2091
|
-
*/
|
|
2092
1286
|
message: z.ZodOptional<z.ZodString>;
|
|
2093
|
-
|
|
2094
|
-
* The RETICLE-OWNED stack frames, innermost first, as `function@file:line`.
|
|
2095
|
-
*
|
|
2096
|
-
* This is Reticle's own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
|
|
2097
|
-
* npm tarball — so there is no privacy question in sending it, and it is the single most useful
|
|
2098
|
-
* thing for a root-cause analysis: the file, the line, and the function. Frames belonging to the
|
|
2099
|
-
* user's application or to node internals are dropped entirely before this is built.
|
|
2100
|
-
*/
|
|
2101
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2102
|
-
/** The MCP tool in flight when it happened, when there was one. The trigger point. */
|
|
1287
|
+
frames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2103
1288
|
tool: z.ZodOptional<z.ZodString>;
|
|
2104
|
-
|
|
2105
|
-
* The tool calls immediately before the failure, oldest first — the agent's approach run.
|
|
2106
|
-
*
|
|
2107
|
-
* Answers "what was it trying to do", which a single frame cannot: `snapshot → act → act →
|
|
2108
|
-
* assert` is a verification loop, `lease_acquire → navigate → crash` is a startup problem. Tool
|
|
2109
|
-
* NAMES only, from a fixed vocabulary; no arguments, so nothing the agent typed is in here.
|
|
2110
|
-
*/
|
|
2111
|
-
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2112
|
-
/** Node major/minor — crashes cluster hard by runtime version. */
|
|
1289
|
+
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2113
1290
|
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
2114
|
-
/** `arm64` / `x64`. A surprising number of native-module failures are architecture-specific. */
|
|
2115
1291
|
arch: z.ZodOptional<z.ZodString>;
|
|
2116
|
-
/**
|
|
2117
|
-
* The machine at the moment of the crash. "Out of memory" and a Reticle defect look identical in a
|
|
2118
|
-
* stack trace and are completely different problems; this is what tells them apart.
|
|
2119
|
-
*/
|
|
2120
1292
|
machine: z.ZodOptional<z.ZodObject<{
|
|
2121
1293
|
rssMb: z.ZodNumber;
|
|
2122
1294
|
heapUsedMb: z.ZodNumber;
|
|
@@ -2124,99 +1296,18 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2124
1296
|
totalMemMb: z.ZodNumber;
|
|
2125
1297
|
load1x100: z.ZodNumber;
|
|
2126
1298
|
cpuCount: z.ZodNumber;
|
|
2127
|
-
},
|
|
2128
|
-
rssMb: number;
|
|
2129
|
-
heapUsedMb: number;
|
|
2130
|
-
freeMemMb: number;
|
|
2131
|
-
totalMemMb: number;
|
|
2132
|
-
load1x100: number;
|
|
2133
|
-
cpuCount: number;
|
|
2134
|
-
}, {
|
|
2135
|
-
rssMb: number;
|
|
2136
|
-
heapUsedMb: number;
|
|
2137
|
-
freeMemMb: number;
|
|
2138
|
-
totalMemMb: number;
|
|
2139
|
-
load1x100: number;
|
|
2140
|
-
cpuCount: number;
|
|
2141
|
-
}>>;
|
|
2142
|
-
/**
|
|
2143
|
-
* The failing SYSCALL — `connect`, `write`, `open`. Already inside `message`; structured here so
|
|
2144
|
-
* it can be grouped on rather than parsed back out of prose.
|
|
2145
|
-
*/
|
|
1299
|
+
}, z.core.$strip>>;
|
|
2146
1300
|
syscall: z.ZodOptional<z.ZodString>;
|
|
2147
|
-
/**
|
|
2148
|
-
* The symbolic errno — `ECONNREFUSED`, `EPIPE`. The name, never the platform-specific number.
|
|
2149
|
-
*/
|
|
2150
1301
|
errno: z.ZodOptional<z.ZodString>;
|
|
2151
|
-
/**
|
|
2152
|
-
* Was the target the machine it was running on?
|
|
2153
|
-
*
|
|
2154
|
-
* One bit, and it splits two populations that currently look identical and have different owners:
|
|
2155
|
-
* refused ON loopback is a Reticle-lifecycle problem (no daemon), refused off-box is a network
|
|
2156
|
-
* problem that is not ours.
|
|
2157
|
-
*/
|
|
2158
1302
|
loopback: z.ZodOptional<z.ZodBoolean>;
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
*
|
|
2164
|
-
* Only present when the crash is a system error AND no Reticle frame survived, which is exactly
|
|
2165
|
-
* the report that otherwise arrives with no location at all. It is a line in Node's published
|
|
2166
|
-
* source: it says a connect failed rather than a DNS lookup, and carries nothing about the
|
|
2167
|
-
* machine, the app, or anyone's directory layout.
|
|
2168
|
-
*/
|
|
1303
|
+
port: z.ZodOptional<z.ZodEnum<{
|
|
1304
|
+
reticle: "reticle";
|
|
1305
|
+
other: "other";
|
|
1306
|
+
}>>;
|
|
2169
1307
|
internalFrame: z.ZodOptional<z.ZodString>;
|
|
2170
|
-
},
|
|
2171
|
-
kind: string;
|
|
2172
|
-
message?: string | undefined;
|
|
2173
|
-
tool?: string | undefined;
|
|
2174
|
-
frames?: string[] | undefined;
|
|
2175
|
-
errorType?: string | undefined;
|
|
2176
|
-
port?: "reticle" | "other" | undefined;
|
|
2177
|
-
fingerprint?: string | undefined;
|
|
2178
|
-
machine?: {
|
|
2179
|
-
rssMb: number;
|
|
2180
|
-
heapUsedMb: number;
|
|
2181
|
-
freeMemMb: number;
|
|
2182
|
-
totalMemMb: number;
|
|
2183
|
-
load1x100: number;
|
|
2184
|
-
cpuCount: number;
|
|
2185
|
-
} | undefined;
|
|
2186
|
-
breadcrumb?: string[] | undefined;
|
|
2187
|
-
nodeVersion?: string | undefined;
|
|
2188
|
-
arch?: string | undefined;
|
|
2189
|
-
syscall?: string | undefined;
|
|
2190
|
-
errno?: string | undefined;
|
|
2191
|
-
loopback?: boolean | undefined;
|
|
2192
|
-
internalFrame?: string | undefined;
|
|
2193
|
-
}, {
|
|
2194
|
-
kind: string;
|
|
2195
|
-
message?: string | undefined;
|
|
2196
|
-
tool?: string | undefined;
|
|
2197
|
-
frames?: string[] | undefined;
|
|
2198
|
-
errorType?: string | undefined;
|
|
2199
|
-
port?: "reticle" | "other" | undefined;
|
|
2200
|
-
fingerprint?: string | undefined;
|
|
2201
|
-
machine?: {
|
|
2202
|
-
rssMb: number;
|
|
2203
|
-
heapUsedMb: number;
|
|
2204
|
-
freeMemMb: number;
|
|
2205
|
-
totalMemMb: number;
|
|
2206
|
-
load1x100: number;
|
|
2207
|
-
cpuCount: number;
|
|
2208
|
-
} | undefined;
|
|
2209
|
-
breadcrumb?: string[] | undefined;
|
|
2210
|
-
nodeVersion?: string | undefined;
|
|
2211
|
-
arch?: string | undefined;
|
|
2212
|
-
syscall?: string | undefined;
|
|
2213
|
-
errno?: string | undefined;
|
|
2214
|
-
loopback?: boolean | undefined;
|
|
2215
|
-
internalFrame?: string | undefined;
|
|
2216
|
-
}>>;
|
|
2217
|
-
/** Only on `identified` — self-declared, opt-in, and the only personal data ever sent. */
|
|
1308
|
+
}, z.core.$strip>>;
|
|
2218
1309
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2219
|
-
context: z.
|
|
1310
|
+
context: z.ZodEnum<{
|
|
2220
1311
|
readonly COMPANY: "company";
|
|
2221
1312
|
readonly SIDE_PROJECT: "side_project";
|
|
2222
1313
|
readonly OPEN_SOURCE: "open_source";
|
|
@@ -2224,76 +1315,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2224
1315
|
}>;
|
|
2225
1316
|
company: z.ZodOptional<z.ZodString>;
|
|
2226
1317
|
email: z.ZodOptional<z.ZodString>;
|
|
2227
|
-
},
|
|
2228
|
-
context: "company" | "side_project" | "open_source" | "learning";
|
|
2229
|
-
company?: string | undefined;
|
|
2230
|
-
email?: string | undefined;
|
|
2231
|
-
}, {
|
|
2232
|
-
context: "company" | "side_project" | "open_source" | "learning";
|
|
2233
|
-
company?: string | undefined;
|
|
2234
|
-
email?: string | undefined;
|
|
2235
|
-
}>>;
|
|
2236
|
-
/** Only on `mcp_client_connected`. */
|
|
1318
|
+
}, z.core.$strip>>;
|
|
2237
1319
|
connection: z.ZodOptional<z.ZodObject<{
|
|
2238
|
-
/** False the first time a client attaches to this daemon; true for every attach after. */
|
|
2239
1320
|
reconnect: z.ZodBoolean;
|
|
2240
|
-
/**
|
|
2241
|
-
* How long the daemon had been up first. A large value on the FIRST connect is the interesting
|
|
2242
|
-
* case — it means Reticle was started and then sat unused, which is an onboarding failure nobody
|
|
2243
|
-
* would otherwise report.
|
|
2244
|
-
*/
|
|
2245
1321
|
daemonAgeMs: z.ZodNumber;
|
|
2246
|
-
/** Which client, from its own handshake (`claude-code`, `cursor`). */
|
|
2247
1322
|
client: z.ZodOptional<z.ZodString>;
|
|
2248
|
-
/**
|
|
2249
|
-
* Was an app carrying the SDK already attached to this daemon when the agent arrived.
|
|
2250
|
-
*
|
|
2251
|
-
* The mirror of `AppInstrumentation.agentAttached`, and the closest available read on WHAT THE
|
|
2252
|
-
* AGENT SAW. A client that attaches and never calls a tool is otherwise reachable only by
|
|
2253
|
-
* subtraction: `tool_refused` cannot describe it, because an agent that reads the server
|
|
2254
|
-
* instructions, learns nothing is wired and stops has refused nothing. It made no call at all.
|
|
2255
|
-
*
|
|
2256
|
-
* `false` means the handshake happened against a daemon with no app to look at, which is the state
|
|
2257
|
-
* the first-move instructions describe and the state in which no tool could have answered
|
|
2258
|
-
* anything. Split the never-drove population on this and the two halves need opposite fixes: one
|
|
2259
|
-
* is an install that never finished, the other is an agent that had everything it needed and did
|
|
2260
|
-
* not use it.
|
|
2261
|
-
*
|
|
2262
|
-
* OPTIONAL because an older sender has none. Absent means not measured, never `false`.
|
|
2263
|
-
*/
|
|
2264
1323
|
appConnected: z.ZodOptional<z.ZodBoolean>;
|
|
2265
|
-
/** The id of the proxy process that attached. Its outages carry the same id. */
|
|
2266
1324
|
proxyId: z.ZodOptional<z.ZodString>;
|
|
2267
|
-
},
|
|
2268
|
-
reconnect: boolean;
|
|
2269
|
-
daemonAgeMs: number;
|
|
2270
|
-
proxyId?: string | undefined;
|
|
2271
|
-
client?: string | undefined;
|
|
2272
|
-
appConnected?: boolean | undefined;
|
|
2273
|
-
}, {
|
|
2274
|
-
reconnect: boolean;
|
|
2275
|
-
daemonAgeMs: number;
|
|
2276
|
-
proxyId?: string | undefined;
|
|
2277
|
-
client?: string | undefined;
|
|
2278
|
-
appConnected?: boolean | undefined;
|
|
2279
|
-
}>>;
|
|
2280
|
-
/** Only on `init_completed`. */
|
|
1325
|
+
}, z.core.$strip>>;
|
|
2281
1326
|
init: z.ZodOptional<z.ZodObject<{
|
|
2282
1327
|
ok: z.ZodBoolean;
|
|
2283
|
-
/** Classified cause when it failed — our vocabulary, never a raw error or a path. */
|
|
2284
1328
|
reason: z.ZodOptional<z.ZodString>;
|
|
2285
|
-
/** The framework it detected, so we can see which stacks fail to set up. */
|
|
2286
1329
|
stack: z.ZodOptional<z.ZodString>;
|
|
2287
|
-
/** Whether the MCP registration step succeeded — the step most likely to fail silently. */
|
|
2288
1330
|
mcpRegistered: z.ZodOptional<z.ZodBoolean>;
|
|
2289
|
-
|
|
2290
|
-
* What `init` saw when it waited for an app to connect.
|
|
2291
|
-
*
|
|
2292
|
-
* Default init reports CONNECTED after runtime success. Runtime failures carry a classified
|
|
2293
|
-
* reason without guessing the watcher's daemon/page classification. Files-only init watches
|
|
2294
|
-
* only in an interactive terminal. Absence alone is not evidence of a failed connection.
|
|
2295
|
-
*/
|
|
2296
|
-
confirmation: z.ZodOptional<z.ZodNativeEnum<{
|
|
1331
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
2297
1332
|
/** An app carrying the SDK reached the daemon while `init` watched. This is what installed means. */
|
|
2298
1333
|
readonly CONNECTED: "connected";
|
|
2299
1334
|
/** Nothing was listening on the bridge port, so no session could arrive. Not a failed install. */
|
|
@@ -2316,8 +1351,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2316
1351
|
*/
|
|
2317
1352
|
readonly NO_PAGE: "no_page";
|
|
2318
1353
|
}>>;
|
|
2319
|
-
|
|
2320
|
-
stop: z.ZodOptional<z.ZodNativeEnum<{
|
|
1354
|
+
stop: z.ZodOptional<z.ZodEnum<{
|
|
2321
1355
|
/** The project names no dev, start or serve script, and no `--url` was given. */
|
|
2322
1356
|
readonly NO_DEV_COMMAND: "no_dev_command";
|
|
2323
1357
|
/** Something answers on one loopback address and not the other, on the dev port. */
|
|
@@ -2341,30 +1375,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2341
1375
|
/** A desktop app never dialled the daemon. */
|
|
2342
1376
|
readonly DESKTOP_NO_SESSION: "desktop_no_session";
|
|
2343
1377
|
}>>;
|
|
2344
|
-
},
|
|
2345
|
-
ok: boolean;
|
|
2346
|
-
reason?: string | undefined;
|
|
2347
|
-
stack?: string | undefined;
|
|
2348
|
-
mcpRegistered?: boolean | undefined;
|
|
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;
|
|
2351
|
-
}, {
|
|
2352
|
-
ok: boolean;
|
|
2353
|
-
reason?: string | undefined;
|
|
2354
|
-
stack?: string | undefined;
|
|
2355
|
-
mcpRegistered?: boolean | undefined;
|
|
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;
|
|
2358
|
-
}>>;
|
|
2359
|
-
/** Only on `onboarding_step`: one step of install / onboard / first run. */
|
|
1378
|
+
}, z.core.$strip>>;
|
|
2360
1379
|
onboarding: z.ZodOptional<z.ZodObject<{
|
|
2361
|
-
phase: z.
|
|
1380
|
+
phase: z.ZodEnum<{
|
|
2362
1381
|
readonly INSTALL: "install";
|
|
2363
1382
|
readonly ONBOARD: "onboard";
|
|
2364
1383
|
readonly FIRST_RUN: "first_run";
|
|
2365
1384
|
}>;
|
|
2366
|
-
step: z.ZodEnum<
|
|
2367
|
-
|
|
1385
|
+
step: z.ZodEnum<{
|
|
1386
|
+
[x: string]: string;
|
|
1387
|
+
}>;
|
|
1388
|
+
status: z.ZodEnum<{
|
|
2368
1389
|
readonly STARTED: "started";
|
|
2369
1390
|
readonly COMPLETED: "completed";
|
|
2370
1391
|
readonly FAILED: "failed";
|
|
@@ -2376,37 +1397,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2376
1397
|
stack: z.ZodOptional<z.ZodString>;
|
|
2377
1398
|
unattended: z.ZodOptional<z.ZodBoolean>;
|
|
2378
1399
|
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
2379
|
-
offered: z.ZodOptional<z.
|
|
1400
|
+
offered: z.ZodOptional<z.ZodEnum<{
|
|
2380
1401
|
readonly LEASE: "lease";
|
|
2381
1402
|
readonly INIT_CONSENT: "init_consent";
|
|
2382
1403
|
}>>;
|
|
2383
1404
|
nextFollowed: z.ZodOptional<z.ZodBoolean>;
|
|
2384
|
-
},
|
|
2385
|
-
step: string;
|
|
2386
|
-
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
2387
|
-
phase: "install" | "onboard" | "first_run";
|
|
2388
|
-
reason?: string | undefined;
|
|
2389
|
-
stack?: string | undefined;
|
|
2390
|
-
elapsedMs?: number | undefined;
|
|
2391
|
-
unattended?: boolean | undefined;
|
|
2392
|
-
firstEver?: boolean | undefined;
|
|
2393
|
-
offered?: "lease" | "init_consent" | undefined;
|
|
2394
|
-
nextFollowed?: boolean | undefined;
|
|
2395
|
-
}, {
|
|
2396
|
-
step: string;
|
|
2397
|
-
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
2398
|
-
phase: "install" | "onboard" | "first_run";
|
|
2399
|
-
reason?: string | undefined;
|
|
2400
|
-
stack?: string | undefined;
|
|
2401
|
-
elapsedMs?: number | undefined;
|
|
2402
|
-
unattended?: boolean | undefined;
|
|
2403
|
-
firstEver?: boolean | undefined;
|
|
2404
|
-
offered?: "lease" | "init_consent" | undefined;
|
|
2405
|
-
nextFollowed?: boolean | undefined;
|
|
2406
|
-
}>>;
|
|
2407
|
-
/** Only on `bug_found`. */
|
|
1405
|
+
}, z.core.$strip>>;
|
|
2408
1406
|
bug: z.ZodOptional<z.ZodObject<{
|
|
2409
|
-
source: z.
|
|
1407
|
+
source: z.ZodEnum<{
|
|
2410
1408
|
readonly CONTRADICTION: "contradiction";
|
|
2411
1409
|
readonly CRAWL: "crawl";
|
|
2412
1410
|
readonly REPLAY: "replay";
|
|
@@ -2416,7 +1414,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2416
1414
|
falseGreen: z.ZodBoolean;
|
|
2417
1415
|
tool: z.ZodOptional<z.ZodString>;
|
|
2418
1416
|
repeat: z.ZodBoolean;
|
|
2419
|
-
attribution: z.
|
|
1417
|
+
attribution: z.ZodEnum<{
|
|
2420
1418
|
readonly APP: "app";
|
|
2421
1419
|
readonly REQUEST: "request";
|
|
2422
1420
|
readonly RETICLE: "reticle";
|
|
@@ -2424,29 +1422,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2424
1422
|
}>;
|
|
2425
1423
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
2426
1424
|
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
2427
|
-
},
|
|
2428
|
-
repeat: boolean;
|
|
2429
|
-
kind: string;
|
|
2430
|
-
source: "replay" | "assertion" | "contradiction" | "crawl";
|
|
2431
|
-
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
2432
|
-
falseGreen: boolean;
|
|
2433
|
-
tool?: string | undefined;
|
|
2434
|
-
fingerprint?: string | undefined;
|
|
2435
|
-
occurrence?: number | undefined;
|
|
2436
|
-
}, {
|
|
2437
|
-
repeat: boolean;
|
|
2438
|
-
kind: string;
|
|
2439
|
-
source: "replay" | "assertion" | "contradiction" | "crawl";
|
|
2440
|
-
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
2441
|
-
falseGreen: boolean;
|
|
2442
|
-
tool?: string | undefined;
|
|
2443
|
-
fingerprint?: string | undefined;
|
|
2444
|
-
occurrence?: number | undefined;
|
|
2445
|
-
}>>;
|
|
2446
|
-
/** Only on `tool_refused`: which tool, why, and whether the agent tried the same thing again. */
|
|
1425
|
+
}, z.core.$strip>>;
|
|
2447
1426
|
refusal: z.ZodOptional<z.ZodObject<{
|
|
2448
1427
|
tool: z.ZodString;
|
|
2449
|
-
reason: z.
|
|
1428
|
+
reason: z.ZodEnum<{
|
|
2450
1429
|
readonly NO_SESSION: "no_session";
|
|
2451
1430
|
readonly NO_MATCH: "no_match";
|
|
2452
1431
|
readonly UNSUPPORTED: "unsupported";
|
|
@@ -2454,7 +1433,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2454
1433
|
readonly NOT_READY: "not_ready";
|
|
2455
1434
|
readonly OTHER: "other";
|
|
2456
1435
|
}>;
|
|
2457
|
-
noSessionReason: z.ZodOptional<z.
|
|
1436
|
+
noSessionReason: z.ZodOptional<z.ZodEnum<{
|
|
2458
1437
|
readonly AUTH_REFUSED: "auth_refused";
|
|
2459
1438
|
readonly LEASE_EXPIRED: "lease_expired";
|
|
2460
1439
|
readonly TAB_GONE: "tab_gone";
|
|
@@ -2468,20 +1447,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2468
1447
|
readonly SDK_NOT_REACHING_DAEMON: "sdk_not_reaching_daemon";
|
|
2469
1448
|
}>>;
|
|
2470
1449
|
retried: z.ZodBoolean;
|
|
2471
|
-
},
|
|
2472
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2473
|
-
tool: string;
|
|
2474
|
-
retried: boolean;
|
|
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;
|
|
2476
|
-
}, {
|
|
2477
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2478
|
-
tool: string;
|
|
2479
|
-
retried: boolean;
|
|
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;
|
|
2481
|
-
}>>;
|
|
2482
|
-
/** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
|
|
1450
|
+
}, z.core.$strip>>;
|
|
2483
1451
|
outage: z.ZodOptional<z.ZodObject<{
|
|
2484
|
-
stage: z.
|
|
1452
|
+
stage: z.ZodEnum<{
|
|
2485
1453
|
readonly FIRST: "first";
|
|
2486
1454
|
readonly BUDGET_SPENT: "budget_spent";
|
|
2487
1455
|
/**
|
|
@@ -2495,7 +1463,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2495
1463
|
*/
|
|
2496
1464
|
readonly RECOVERED: "recovered";
|
|
2497
1465
|
}>;
|
|
2498
|
-
reason: z.
|
|
1466
|
+
reason: z.ZodEnum<{
|
|
2499
1467
|
/** The SSE stream ended cleanly and nothing said why. */
|
|
2500
1468
|
readonly SSE_ENDED: "sse_ended";
|
|
2501
1469
|
/**
|
|
@@ -2523,77 +1491,25 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2523
1491
|
/** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
|
|
2524
1492
|
readonly OTHER: "other";
|
|
2525
1493
|
}>;
|
|
2526
|
-
/** Consecutive reconnects tried when this was reported. `first` is near 1; a spent budget is high. */
|
|
2527
1494
|
attempts: z.ZodNumber;
|
|
2528
|
-
/**
|
|
2529
|
-
* In-flight tool calls this drop actually killed — the only part an agent can FEEL.
|
|
2530
|
-
*
|
|
2531
|
-
* Without it every drop looks equally bad. The common outage is `stage: first` with `attempts: 1`
|
|
2532
|
-
* — the stream ended once and the proxy reconnected, which for an agent with nothing in flight is
|
|
2533
|
-
* invisible. Counting those as "the agent lost its tools" overstates the problem by roughly the
|
|
2534
|
-
* whole total, and buries the one drop that mattered.
|
|
2535
|
-
*
|
|
2536
|
-
* Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
|
|
2537
|
-
* worth driving down.
|
|
2538
|
-
*/
|
|
2539
1495
|
pendingLost: z.ZodOptional<z.ZodNumber>;
|
|
2540
|
-
|
|
2541
|
-
errCode: z.ZodOptional<z.ZodNativeEnum<{
|
|
1496
|
+
errCode: z.ZodOptional<z.ZodEnum<{
|
|
2542
1497
|
readonly ECONNRESET: "ECONNRESET";
|
|
2543
1498
|
readonly ECONNREFUSED: "ECONNREFUSED";
|
|
2544
1499
|
readonly EPIPE: "EPIPE";
|
|
2545
1500
|
readonly ETIMEDOUT: "ETIMEDOUT";
|
|
2546
1501
|
readonly OTHER: "other";
|
|
2547
1502
|
}>>;
|
|
2548
|
-
/** The stream got a response before it failed: a live stream dropped, not a refused connect. */
|
|
2549
1503
|
responded: z.ZodOptional<z.ZodBoolean>;
|
|
2550
|
-
/** The proxy process. It joins `mcp_client_connected`, which carries the daemon's `sessionId`. */
|
|
2551
1504
|
proxyId: z.ZodOptional<z.ZodString>;
|
|
2552
|
-
},
|
|
2553
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
2554
|
-
attempts: number;
|
|
2555
|
-
stage: "first" | "budget_spent" | "recovered";
|
|
2556
|
-
proxyId?: string | undefined;
|
|
2557
|
-
pendingLost?: number | undefined;
|
|
2558
|
-
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
2559
|
-
responded?: boolean | undefined;
|
|
2560
|
-
}, {
|
|
2561
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
2562
|
-
attempts: number;
|
|
2563
|
-
stage: "first" | "budget_spent" | "recovered";
|
|
2564
|
-
proxyId?: string | undefined;
|
|
2565
|
-
pendingLost?: number | undefined;
|
|
2566
|
-
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
2567
|
-
responded?: boolean | undefined;
|
|
2568
|
-
}>>;
|
|
2569
|
-
/** Only on `app_instrumented`: the install's second half finally happening. */
|
|
1505
|
+
}, z.core.$strip>>;
|
|
2570
1506
|
instrumentation: z.ZodOptional<z.ZodObject<{
|
|
2571
|
-
/** Whether `reticle init` had been run in this directory (a projectId is stamped). */
|
|
2572
1507
|
initialized: z.ZodBoolean;
|
|
2573
|
-
/** Whether an MCP client was already attached when the app arrived. */
|
|
2574
1508
|
agentAttached: z.ZodBoolean;
|
|
2575
|
-
/** How long the daemon had been up. Large values mean Reticle sat there with nothing wired. */
|
|
2576
1509
|
msToFirstApp: z.ZodNumber;
|
|
2577
|
-
/** The first app ever on this machine + project, not just this run. Absent otherwise. */
|
|
2578
1510
|
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
2579
|
-
},
|
|
2580
|
-
|
|
2581
|
-
initialized: boolean;
|
|
2582
|
-
agentAttached: boolean;
|
|
2583
|
-
firstEver?: boolean | undefined;
|
|
2584
|
-
}, {
|
|
2585
|
-
msToFirstApp: number;
|
|
2586
|
-
initialized: boolean;
|
|
2587
|
-
agentAttached: boolean;
|
|
2588
|
-
firstEver?: boolean | undefined;
|
|
2589
|
-
}>>;
|
|
2590
|
-
/**
|
|
2591
|
-
* Only on `reticle_installed` / `init_completed`: which published route brought this install in.
|
|
2592
|
-
*
|
|
2593
|
-
* A scalar rather than a block because it belongs to two different events that have no payload in
|
|
2594
|
-
* common, and because there is exactly one fact to carry. Absent on every other kind.
|
|
2595
|
-
*/
|
|
2596
|
-
installSource: z.ZodOptional<z.ZodNativeEnum<{
|
|
1511
|
+
}, z.core.$strip>>;
|
|
1512
|
+
installSource: z.ZodOptional<z.ZodEnum<{
|
|
2597
1513
|
/** The canonical SKILL.md paste URL — the marker is in the command SKILL.md tells the agent to run. */
|
|
2598
1514
|
readonly SKILL_FILE: "skill_file";
|
|
2599
1515
|
/** The `npx skills add` package, which ships its own copy of the skill carrying its own marker. */
|
|
@@ -2613,607 +1529,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2613
1529
|
/** No marker, or one this list does not name. The honest answer, and expected to dominate. */
|
|
2614
1530
|
readonly UNKNOWN: "unknown";
|
|
2615
1531
|
}>>;
|
|
2616
|
-
/**
|
|
2617
|
-
* Enterprise activation, on EVERY event. Two scalars rather than a block, for the same reason
|
|
2618
|
-
* `installSource` is one: they describe the install, not any single event, and they have to be
|
|
2619
|
-
* present on the events that show whether a licensed customer got anywhere.
|
|
2620
|
-
*
|
|
2621
|
-
* `licenseId` is the signed license id — an opaque uuid that resolves to a company only against the
|
|
2622
|
-
* issuance ledger held locally, so the analytics backend never learns a customer list. The
|
|
2623
|
-
* organisation NAME is deliberately absent: it is free text somebody typed at signing time, and
|
|
2624
|
-
* rule 3 is names-never-values.
|
|
2625
|
-
*
|
|
2626
|
-
* `licenseId` is present only when activation is `active`; `licenseStatus` rides whenever an issuer
|
|
2627
|
-
* key is baked, including the failure states, which is what makes a lapse distinguishable from a
|
|
2628
|
-
* churn. The PLAN is deliberately not here: the issuance ledger already holds it against this same
|
|
2629
|
-
* id, so it would be a per-event cost for something the join that resolves the id resolves anyway.
|
|
2630
|
-
*/
|
|
2631
1532
|
licenseId: z.ZodOptional<z.ZodString>;
|
|
2632
|
-
|
|
2633
|
-
licenseStatus: z.ZodOptional<z.ZodNativeEnum<{
|
|
1533
|
+
licenseStatus: z.ZodOptional<z.ZodEnum<{
|
|
2634
1534
|
readonly ACTIVE: "active";
|
|
2635
1535
|
readonly MISSING: "missing";
|
|
2636
1536
|
readonly INVALID: "invalid";
|
|
2637
1537
|
readonly EXPIRED: "expired";
|
|
2638
1538
|
readonly EVAL: "eval";
|
|
2639
1539
|
}>>;
|
|
2640
|
-
/**
|
|
2641
|
-
* A key was PLACED in the environment, whatever this build concluded about it.
|
|
2642
|
-
*
|
|
2643
|
-
* Rides even when `licenseStatus` is absent, and that combination is the entire reason it exists:
|
|
2644
|
-
* a build with no issuer key baked reports no status at all, so a customer who pasted a real
|
|
2645
|
-
* enterprise key into one produced no licence signal whatsoever and looked identical to someone
|
|
2646
|
-
* who has never held a key. `licenseKeyPresent: true` with no `licenseStatus` is precisely the
|
|
2647
|
-
* "their key is not taking effect" case, and it was previously unobservable.
|
|
2648
|
-
*
|
|
2649
|
-
* A boolean, never the key. The key is a credential and does not leave the machine.
|
|
2650
|
-
*/
|
|
2651
1540
|
licenseKeyPresent: z.ZodOptional<z.ZodBoolean>;
|
|
2652
|
-
},
|
|
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";
|
|
2655
|
-
ci: boolean;
|
|
2656
|
-
version: string;
|
|
2657
|
-
anonymousId: string;
|
|
2658
|
-
ts: number;
|
|
2659
|
-
os: string;
|
|
2660
|
-
link?: {
|
|
2661
|
-
via: "link" | "hud" | "connect";
|
|
2662
|
-
} | undefined;
|
|
2663
|
-
feedback?: {
|
|
2664
|
-
text: string;
|
|
2665
|
-
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2666
|
-
source: "agent" | "human";
|
|
2667
|
-
impact?: string | undefined;
|
|
2668
|
-
model?: string | undefined;
|
|
2669
|
-
trace?: string | undefined;
|
|
2670
|
-
rating?: number | undefined;
|
|
2671
|
-
need?: string | undefined;
|
|
2672
|
-
currentApproach?: string | undefined;
|
|
2673
|
-
clientVersion?: string | undefined;
|
|
2674
|
-
stack?: string | undefined;
|
|
2675
|
-
stackMajor?: number | undefined;
|
|
2676
|
-
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
2677
|
-
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
2678
|
-
driver?: "cdp" | "sdk" | undefined;
|
|
2679
|
-
client?: string | undefined;
|
|
2680
|
-
mcpScope?: "project" | "user" | undefined;
|
|
2681
|
-
contact?: string | undefined;
|
|
2682
|
-
} | undefined;
|
|
2683
|
-
command?: string | undefined;
|
|
2684
|
-
harness?: {
|
|
2685
|
-
source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
|
|
2686
|
-
phase: "completed" | "started";
|
|
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;
|
|
2690
|
-
outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
|
|
2691
|
-
journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
2692
|
-
} | undefined;
|
|
2693
|
-
project?: {
|
|
2694
|
-
git: "none" | "local_only" | "remote";
|
|
2695
|
-
flowCount: number;
|
|
2696
|
-
baselineCount: number;
|
|
2697
|
-
visualBaselineCount: number;
|
|
2698
|
-
runCount: number;
|
|
2699
|
-
hasContract: boolean;
|
|
2700
|
-
capsuleCount: number;
|
|
2701
|
-
featuresUsed: string[];
|
|
2702
|
-
featureDepth: number;
|
|
2703
|
-
stack?: string | undefined;
|
|
2704
|
-
stackMajor?: number | undefined;
|
|
2705
|
-
size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
|
|
2706
|
-
stackSource?: "cwd" | "workspace" | undefined;
|
|
2707
|
-
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
2708
|
-
monorepo?: boolean | undefined;
|
|
2709
|
-
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
2710
|
-
ageWeeks?: number | undefined;
|
|
2711
|
-
initialized?: boolean | undefined;
|
|
2712
|
-
appConnectedBefore?: boolean | undefined;
|
|
2713
|
-
} | undefined;
|
|
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;
|
|
2722
|
-
hud?: {
|
|
2723
|
-
surface?: "harness" | "rail" | "header" | undefined;
|
|
2724
|
-
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
2725
|
-
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
2726
|
-
} | undefined;
|
|
2727
|
-
workspaceId?: string | undefined;
|
|
2728
|
-
bug?: {
|
|
2729
|
-
repeat: boolean;
|
|
2730
|
-
kind: string;
|
|
2731
|
-
source: "replay" | "assertion" | "contradiction" | "crawl";
|
|
2732
|
-
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
2733
|
-
falseGreen: boolean;
|
|
2734
|
-
tool?: string | undefined;
|
|
2735
|
-
fingerprint?: string | undefined;
|
|
2736
|
-
occurrence?: number | undefined;
|
|
2737
|
-
} | undefined;
|
|
2738
|
-
client?: "other" | "claude_code" | "claude_desktop" | "codex" | "cursor" | "gemini_cli" | "antigravity" | "windsurf" | "cline" | "opencode" | "zed" | "vscode" | undefined;
|
|
2739
|
-
session?: {
|
|
2740
|
-
durationMs: number;
|
|
2741
|
-
toolCalls: number;
|
|
2742
|
-
toolCounts: Record<string, number>;
|
|
2743
|
-
toolErrors: number;
|
|
2744
|
-
verifications: number;
|
|
2745
|
-
final: boolean;
|
|
2746
|
-
surface?: string | undefined;
|
|
2747
|
-
sdkVersion?: string | undefined;
|
|
2748
|
-
errors?: {
|
|
2749
|
-
message: string;
|
|
2750
|
-
count: number;
|
|
2751
|
-
fingerprint: string;
|
|
2752
|
-
tool?: string | undefined;
|
|
2753
|
-
}[] | undefined;
|
|
2754
|
-
sdkFailures?: number | undefined;
|
|
2755
|
-
sdkErrors?: {
|
|
2756
|
-
message: string;
|
|
2757
|
-
count: number;
|
|
2758
|
-
fingerprint: string;
|
|
2759
|
-
tool?: string | undefined;
|
|
2760
|
-
}[] | undefined;
|
|
2761
|
-
bugsFound?: number | undefined;
|
|
2762
|
-
bugKinds?: Record<string, number> | undefined;
|
|
2763
|
-
toolParams?: Record<string, Record<string, number>> | undefined;
|
|
2764
|
-
connections?: Record<string, {
|
|
2765
|
-
attempts: number;
|
|
2766
|
-
successes: number;
|
|
2767
|
-
failures?: Record<string, number> | undefined;
|
|
2768
|
-
}> | undefined;
|
|
2769
|
-
toolTiming?: Record<string, {
|
|
2770
|
-
totalMs: number;
|
|
2771
|
-
maxMs: number;
|
|
2772
|
-
}> | undefined;
|
|
2773
|
-
busyMs?: number | undefined;
|
|
2774
|
-
browserMs?: number | undefined;
|
|
2775
|
-
browserCommands?: number | undefined;
|
|
2776
|
-
peakConcurrentTools?: number | undefined;
|
|
2777
|
-
unknownToolCalls?: number | undefined;
|
|
2778
|
-
unknownTools?: Record<string, number> | undefined;
|
|
2779
|
-
noSessionErrors?: number | undefined;
|
|
2780
|
-
postSocketFailures?: number | undefined;
|
|
2781
|
-
postRetriesSaved?: number | undefined;
|
|
2782
|
-
consecutiveRepeats?: Record<string, number> | undefined;
|
|
2783
|
-
abandonedActions?: number | undefined;
|
|
2784
|
-
machine?: {
|
|
2785
|
-
rssMb: number;
|
|
2786
|
-
heapUsedMb: number;
|
|
2787
|
-
freeMemMb: number;
|
|
2788
|
-
totalMemMb: number;
|
|
2789
|
-
load1x100: number;
|
|
2790
|
-
cpuCount: number;
|
|
2791
|
-
} | undefined;
|
|
2792
|
-
clients?: string[] | undefined;
|
|
2793
|
-
clientVersions?: Record<string, string> | undefined;
|
|
2794
|
-
appConnects?: number | undefined;
|
|
2795
|
-
msToFirstApp?: number | undefined;
|
|
2796
|
-
toolCallsBeforeApp?: number | undefined;
|
|
2797
|
-
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
2798
|
-
feedbackPrompted?: number | undefined;
|
|
2799
|
-
errorClasses?: Record<string, number> | undefined;
|
|
2800
|
-
errorsRecovered?: number | undefined;
|
|
2801
|
-
errorsRepeated?: number | undefined;
|
|
2802
|
-
endedWithVerdict?: boolean | undefined;
|
|
2803
|
-
lifetimeToolCalls?: number | undefined;
|
|
2804
|
-
lifetimeVerifications?: number | undefined;
|
|
2805
|
-
lifetimeBugsFound?: number | undefined;
|
|
2806
|
-
updateNudged?: boolean | undefined;
|
|
2807
|
-
updateOffered?: string | undefined;
|
|
2808
|
-
hudControls?: Record<string, number> | undefined;
|
|
2809
|
-
hudViewMs?: Record<string, number> | undefined;
|
|
2810
|
-
hudPanelMs?: Record<string, number> | undefined;
|
|
2811
|
-
hudSlides?: Record<string, number> | undefined;
|
|
2812
|
-
hudJourney?: string[] | undefined;
|
|
2813
|
-
hudJourneyCut?: true | undefined;
|
|
2814
|
-
nudgesShown?: Partial<Record<"connect" | "close_gaps" | "switch_on" | "explore", number>> | undefined;
|
|
2815
|
-
harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
|
|
2816
|
-
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2817
|
-
} | undefined;
|
|
2818
|
-
licenseKeyPresent?: boolean | undefined;
|
|
2819
|
-
linked?: boolean | undefined;
|
|
2820
|
-
automation?: "container" | "hosted_workspace" | "ci_runner" | "agent_sandbox" | undefined;
|
|
2821
|
-
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2822
|
-
tzOffsetMin?: number | undefined;
|
|
2823
|
-
internal?: boolean | undefined;
|
|
2824
|
-
idEphemeral?: boolean | undefined;
|
|
2825
|
-
actor?: "agent" | "human" | undefined;
|
|
2826
|
-
flags?: string[] | undefined;
|
|
2827
|
-
verification?: {
|
|
2828
|
-
verified: string;
|
|
2829
|
-
passed: boolean;
|
|
2830
|
-
via: string;
|
|
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;
|
|
2833
|
-
browser?: string | undefined;
|
|
2834
|
-
durationMs?: number | undefined;
|
|
2835
|
-
sdkVersion?: string | undefined;
|
|
2836
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2837
|
-
driven?: "harness" | undefined;
|
|
2838
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
2839
|
-
} | undefined;
|
|
2840
|
-
versionChange?: {
|
|
2841
|
-
from: string;
|
|
2842
|
-
to: string;
|
|
2843
|
-
direction: string;
|
|
2844
|
-
nudged?: boolean | undefined;
|
|
2845
|
-
} | undefined;
|
|
2846
|
-
crash?: {
|
|
2847
|
-
kind: string;
|
|
2848
|
-
message?: string | undefined;
|
|
2849
|
-
tool?: string | undefined;
|
|
2850
|
-
frames?: string[] | undefined;
|
|
2851
|
-
errorType?: string | undefined;
|
|
2852
|
-
port?: "reticle" | "other" | undefined;
|
|
2853
|
-
fingerprint?: string | undefined;
|
|
2854
|
-
machine?: {
|
|
2855
|
-
rssMb: number;
|
|
2856
|
-
heapUsedMb: number;
|
|
2857
|
-
freeMemMb: number;
|
|
2858
|
-
totalMemMb: number;
|
|
2859
|
-
load1x100: number;
|
|
2860
|
-
cpuCount: number;
|
|
2861
|
-
} | undefined;
|
|
2862
|
-
breadcrumb?: string[] | undefined;
|
|
2863
|
-
nodeVersion?: string | undefined;
|
|
2864
|
-
arch?: string | undefined;
|
|
2865
|
-
syscall?: string | undefined;
|
|
2866
|
-
errno?: string | undefined;
|
|
2867
|
-
loopback?: boolean | undefined;
|
|
2868
|
-
internalFrame?: string | undefined;
|
|
2869
|
-
} | undefined;
|
|
2870
|
-
identity?: {
|
|
2871
|
-
context: "company" | "side_project" | "open_source" | "learning";
|
|
2872
|
-
company?: string | undefined;
|
|
2873
|
-
email?: string | undefined;
|
|
2874
|
-
} | undefined;
|
|
2875
|
-
connection?: {
|
|
2876
|
-
reconnect: boolean;
|
|
2877
|
-
daemonAgeMs: number;
|
|
2878
|
-
proxyId?: string | undefined;
|
|
2879
|
-
client?: string | undefined;
|
|
2880
|
-
appConnected?: boolean | undefined;
|
|
2881
|
-
} | undefined;
|
|
2882
|
-
init?: {
|
|
2883
|
-
ok: boolean;
|
|
2884
|
-
reason?: string | undefined;
|
|
2885
|
-
stack?: string | undefined;
|
|
2886
|
-
mcpRegistered?: boolean | undefined;
|
|
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;
|
|
2889
|
-
} | undefined;
|
|
2890
|
-
onboarding?: {
|
|
2891
|
-
step: string;
|
|
2892
|
-
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
2893
|
-
phase: "install" | "onboard" | "first_run";
|
|
2894
|
-
reason?: string | undefined;
|
|
2895
|
-
stack?: string | undefined;
|
|
2896
|
-
elapsedMs?: number | undefined;
|
|
2897
|
-
unattended?: boolean | undefined;
|
|
2898
|
-
firstEver?: boolean | undefined;
|
|
2899
|
-
offered?: "lease" | "init_consent" | undefined;
|
|
2900
|
-
nextFollowed?: boolean | undefined;
|
|
2901
|
-
} | undefined;
|
|
2902
|
-
refusal?: {
|
|
2903
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2904
|
-
tool: string;
|
|
2905
|
-
retried: boolean;
|
|
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;
|
|
2907
|
-
} | undefined;
|
|
2908
|
-
outage?: {
|
|
2909
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
2910
|
-
attempts: number;
|
|
2911
|
-
stage: "first" | "budget_spent" | "recovered";
|
|
2912
|
-
proxyId?: string | undefined;
|
|
2913
|
-
pendingLost?: number | undefined;
|
|
2914
|
-
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
2915
|
-
responded?: boolean | undefined;
|
|
2916
|
-
} | undefined;
|
|
2917
|
-
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "blog" | "cli_direct" | undefined;
|
|
2918
|
-
licenseId?: string | undefined;
|
|
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;
|
|
2933
|
-
accountState?: "signed_out" | "signed_in" | "linked" | undefined;
|
|
2934
|
-
launch?: "other" | "project" | "npx" | "global" | undefined;
|
|
2935
|
-
}, {
|
|
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";
|
|
2938
|
-
ci: boolean;
|
|
2939
|
-
version: string;
|
|
2940
|
-
anonymousId: string;
|
|
2941
|
-
ts: number;
|
|
2942
|
-
os: string;
|
|
2943
|
-
link?: {
|
|
2944
|
-
via: "link" | "hud" | "connect";
|
|
2945
|
-
} | undefined;
|
|
2946
|
-
feedback?: {
|
|
2947
|
-
text: string;
|
|
2948
|
-
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2949
|
-
source: "agent" | "human";
|
|
2950
|
-
impact?: string | undefined;
|
|
2951
|
-
model?: string | undefined;
|
|
2952
|
-
trace?: string | undefined;
|
|
2953
|
-
rating?: number | undefined;
|
|
2954
|
-
need?: string | undefined;
|
|
2955
|
-
currentApproach?: string | undefined;
|
|
2956
|
-
clientVersion?: string | undefined;
|
|
2957
|
-
stack?: string | undefined;
|
|
2958
|
-
stackMajor?: number | undefined;
|
|
2959
|
-
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
2960
|
-
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
2961
|
-
driver?: "cdp" | "sdk" | undefined;
|
|
2962
|
-
client?: string | undefined;
|
|
2963
|
-
mcpScope?: "project" | "user" | undefined;
|
|
2964
|
-
contact?: string | undefined;
|
|
2965
|
-
} | undefined;
|
|
2966
|
-
command?: string | undefined;
|
|
2967
|
-
harness?: {
|
|
2968
|
-
source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
|
|
2969
|
-
phase: "completed" | "started";
|
|
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;
|
|
2973
|
-
outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
|
|
2974
|
-
journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
2975
|
-
} | undefined;
|
|
2976
|
-
project?: {
|
|
2977
|
-
git: "none" | "local_only" | "remote";
|
|
2978
|
-
flowCount: number;
|
|
2979
|
-
baselineCount: number;
|
|
2980
|
-
visualBaselineCount: number;
|
|
2981
|
-
runCount: number;
|
|
2982
|
-
hasContract: boolean;
|
|
2983
|
-
capsuleCount: number;
|
|
2984
|
-
featuresUsed: string[];
|
|
2985
|
-
featureDepth: number;
|
|
2986
|
-
stack?: string | undefined;
|
|
2987
|
-
stackMajor?: number | undefined;
|
|
2988
|
-
size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
|
|
2989
|
-
stackSource?: "cwd" | "workspace" | undefined;
|
|
2990
|
-
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
2991
|
-
monorepo?: boolean | undefined;
|
|
2992
|
-
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
2993
|
-
ageWeeks?: number | undefined;
|
|
2994
|
-
initialized?: boolean | undefined;
|
|
2995
|
-
appConnectedBefore?: boolean | undefined;
|
|
2996
|
-
} | undefined;
|
|
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;
|
|
3005
|
-
hud?: {
|
|
3006
|
-
surface?: "harness" | "rail" | "header" | undefined;
|
|
3007
|
-
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
3008
|
-
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
3009
|
-
} | undefined;
|
|
3010
|
-
workspaceId?: string | undefined;
|
|
3011
|
-
bug?: {
|
|
3012
|
-
repeat: boolean;
|
|
3013
|
-
kind: string;
|
|
3014
|
-
source: "replay" | "assertion" | "contradiction" | "crawl";
|
|
3015
|
-
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
3016
|
-
falseGreen: boolean;
|
|
3017
|
-
tool?: string | undefined;
|
|
3018
|
-
fingerprint?: string | undefined;
|
|
3019
|
-
occurrence?: number | undefined;
|
|
3020
|
-
} | undefined;
|
|
3021
|
-
client?: "other" | "claude_code" | "claude_desktop" | "codex" | "cursor" | "gemini_cli" | "antigravity" | "windsurf" | "cline" | "opencode" | "zed" | "vscode" | undefined;
|
|
3022
|
-
session?: {
|
|
3023
|
-
durationMs: number;
|
|
3024
|
-
toolCalls: number;
|
|
3025
|
-
toolCounts: Record<string, number>;
|
|
3026
|
-
toolErrors: number;
|
|
3027
|
-
verifications: number;
|
|
3028
|
-
final: boolean;
|
|
3029
|
-
surface?: string | undefined;
|
|
3030
|
-
sdkVersion?: string | undefined;
|
|
3031
|
-
errors?: {
|
|
3032
|
-
message: string;
|
|
3033
|
-
count: number;
|
|
3034
|
-
fingerprint: string;
|
|
3035
|
-
tool?: string | undefined;
|
|
3036
|
-
}[] | undefined;
|
|
3037
|
-
sdkFailures?: number | undefined;
|
|
3038
|
-
sdkErrors?: {
|
|
3039
|
-
message: string;
|
|
3040
|
-
count: number;
|
|
3041
|
-
fingerprint: string;
|
|
3042
|
-
tool?: string | undefined;
|
|
3043
|
-
}[] | undefined;
|
|
3044
|
-
bugsFound?: number | undefined;
|
|
3045
|
-
bugKinds?: Record<string, number> | undefined;
|
|
3046
|
-
toolParams?: Record<string, Record<string, number>> | undefined;
|
|
3047
|
-
connections?: Record<string, {
|
|
3048
|
-
attempts: number;
|
|
3049
|
-
successes: number;
|
|
3050
|
-
failures?: Record<string, number> | undefined;
|
|
3051
|
-
}> | undefined;
|
|
3052
|
-
toolTiming?: Record<string, {
|
|
3053
|
-
totalMs: number;
|
|
3054
|
-
maxMs: number;
|
|
3055
|
-
}> | undefined;
|
|
3056
|
-
busyMs?: number | undefined;
|
|
3057
|
-
browserMs?: number | undefined;
|
|
3058
|
-
browserCommands?: number | undefined;
|
|
3059
|
-
peakConcurrentTools?: number | undefined;
|
|
3060
|
-
unknownToolCalls?: number | undefined;
|
|
3061
|
-
unknownTools?: Record<string, number> | undefined;
|
|
3062
|
-
noSessionErrors?: number | undefined;
|
|
3063
|
-
postSocketFailures?: number | undefined;
|
|
3064
|
-
postRetriesSaved?: number | undefined;
|
|
3065
|
-
consecutiveRepeats?: Record<string, number> | undefined;
|
|
3066
|
-
abandonedActions?: number | undefined;
|
|
3067
|
-
machine?: {
|
|
3068
|
-
rssMb: number;
|
|
3069
|
-
heapUsedMb: number;
|
|
3070
|
-
freeMemMb: number;
|
|
3071
|
-
totalMemMb: number;
|
|
3072
|
-
load1x100: number;
|
|
3073
|
-
cpuCount: number;
|
|
3074
|
-
} | undefined;
|
|
3075
|
-
clients?: string[] | undefined;
|
|
3076
|
-
clientVersions?: Record<string, string> | undefined;
|
|
3077
|
-
appConnects?: number | undefined;
|
|
3078
|
-
msToFirstApp?: number | undefined;
|
|
3079
|
-
toolCallsBeforeApp?: number | undefined;
|
|
3080
|
-
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
3081
|
-
feedbackPrompted?: number | undefined;
|
|
3082
|
-
errorClasses?: Record<string, number> | undefined;
|
|
3083
|
-
errorsRecovered?: number | undefined;
|
|
3084
|
-
errorsRepeated?: number | undefined;
|
|
3085
|
-
endedWithVerdict?: boolean | undefined;
|
|
3086
|
-
lifetimeToolCalls?: number | undefined;
|
|
3087
|
-
lifetimeVerifications?: number | undefined;
|
|
3088
|
-
lifetimeBugsFound?: number | undefined;
|
|
3089
|
-
updateNudged?: boolean | undefined;
|
|
3090
|
-
updateOffered?: string | undefined;
|
|
3091
|
-
hudControls?: Record<string, number> | undefined;
|
|
3092
|
-
hudViewMs?: Record<string, number> | undefined;
|
|
3093
|
-
hudPanelMs?: Record<string, number> | undefined;
|
|
3094
|
-
hudSlides?: Record<string, number> | undefined;
|
|
3095
|
-
hudJourney?: string[] | undefined;
|
|
3096
|
-
hudJourneyCut?: true | undefined;
|
|
3097
|
-
nudgesShown?: Partial<Record<"connect" | "close_gaps" | "switch_on" | "explore", number>> | undefined;
|
|
3098
|
-
harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
|
|
3099
|
-
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
3100
|
-
} | undefined;
|
|
3101
|
-
licenseKeyPresent?: boolean | undefined;
|
|
3102
|
-
linked?: boolean | undefined;
|
|
3103
|
-
automation?: "container" | "hosted_workspace" | "ci_runner" | "agent_sandbox" | undefined;
|
|
3104
|
-
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
3105
|
-
tzOffsetMin?: number | undefined;
|
|
3106
|
-
internal?: boolean | undefined;
|
|
3107
|
-
idEphemeral?: boolean | undefined;
|
|
3108
|
-
actor?: "agent" | "human" | undefined;
|
|
3109
|
-
flags?: string[] | undefined;
|
|
3110
|
-
verification?: {
|
|
3111
|
-
verified: string;
|
|
3112
|
-
passed: boolean;
|
|
3113
|
-
via: string;
|
|
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;
|
|
3116
|
-
browser?: string | undefined;
|
|
3117
|
-
durationMs?: number | undefined;
|
|
3118
|
-
sdkVersion?: string | undefined;
|
|
3119
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
3120
|
-
driven?: "harness" | undefined;
|
|
3121
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
3122
|
-
} | undefined;
|
|
3123
|
-
versionChange?: {
|
|
3124
|
-
from: string;
|
|
3125
|
-
to: string;
|
|
3126
|
-
direction: string;
|
|
3127
|
-
nudged?: boolean | undefined;
|
|
3128
|
-
} | undefined;
|
|
3129
|
-
crash?: {
|
|
3130
|
-
kind: string;
|
|
3131
|
-
message?: string | undefined;
|
|
3132
|
-
tool?: string | undefined;
|
|
3133
|
-
frames?: string[] | undefined;
|
|
3134
|
-
errorType?: string | undefined;
|
|
3135
|
-
port?: "reticle" | "other" | undefined;
|
|
3136
|
-
fingerprint?: string | undefined;
|
|
3137
|
-
machine?: {
|
|
3138
|
-
rssMb: number;
|
|
3139
|
-
heapUsedMb: number;
|
|
3140
|
-
freeMemMb: number;
|
|
3141
|
-
totalMemMb: number;
|
|
3142
|
-
load1x100: number;
|
|
3143
|
-
cpuCount: number;
|
|
3144
|
-
} | undefined;
|
|
3145
|
-
breadcrumb?: string[] | undefined;
|
|
3146
|
-
nodeVersion?: string | undefined;
|
|
3147
|
-
arch?: string | undefined;
|
|
3148
|
-
syscall?: string | undefined;
|
|
3149
|
-
errno?: string | undefined;
|
|
3150
|
-
loopback?: boolean | undefined;
|
|
3151
|
-
internalFrame?: string | undefined;
|
|
3152
|
-
} | undefined;
|
|
3153
|
-
identity?: {
|
|
3154
|
-
context: "company" | "side_project" | "open_source" | "learning";
|
|
3155
|
-
company?: string | undefined;
|
|
3156
|
-
email?: string | undefined;
|
|
3157
|
-
} | undefined;
|
|
3158
|
-
connection?: {
|
|
3159
|
-
reconnect: boolean;
|
|
3160
|
-
daemonAgeMs: number;
|
|
3161
|
-
proxyId?: string | undefined;
|
|
3162
|
-
client?: string | undefined;
|
|
3163
|
-
appConnected?: boolean | undefined;
|
|
3164
|
-
} | undefined;
|
|
3165
|
-
init?: {
|
|
3166
|
-
ok: boolean;
|
|
3167
|
-
reason?: string | undefined;
|
|
3168
|
-
stack?: string | undefined;
|
|
3169
|
-
mcpRegistered?: boolean | undefined;
|
|
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;
|
|
3172
|
-
} | undefined;
|
|
3173
|
-
onboarding?: {
|
|
3174
|
-
step: string;
|
|
3175
|
-
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
3176
|
-
phase: "install" | "onboard" | "first_run";
|
|
3177
|
-
reason?: string | undefined;
|
|
3178
|
-
stack?: string | undefined;
|
|
3179
|
-
elapsedMs?: number | undefined;
|
|
3180
|
-
unattended?: boolean | undefined;
|
|
3181
|
-
firstEver?: boolean | undefined;
|
|
3182
|
-
offered?: "lease" | "init_consent" | undefined;
|
|
3183
|
-
nextFollowed?: boolean | undefined;
|
|
3184
|
-
} | undefined;
|
|
3185
|
-
refusal?: {
|
|
3186
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
3187
|
-
tool: string;
|
|
3188
|
-
retried: boolean;
|
|
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;
|
|
3190
|
-
} | undefined;
|
|
3191
|
-
outage?: {
|
|
3192
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
3193
|
-
attempts: number;
|
|
3194
|
-
stage: "first" | "budget_spent" | "recovered";
|
|
3195
|
-
proxyId?: string | undefined;
|
|
3196
|
-
pendingLost?: number | undefined;
|
|
3197
|
-
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
3198
|
-
responded?: boolean | undefined;
|
|
3199
|
-
} | undefined;
|
|
3200
|
-
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "blog" | "cli_direct" | undefined;
|
|
3201
|
-
licenseId?: string | undefined;
|
|
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;
|
|
3216
|
-
accountState?: "signed_out" | "signed_in" | "linked" | undefined;
|
|
3217
|
-
launch?: "other" | "project" | "npx" | "global" | undefined;
|
|
3218
|
-
}>;
|
|
1541
|
+
}, z.core.$strip>;
|
|
3219
1542
|
export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;
|