@reticlehq/core 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activation-entry.d.ts +9 -0
- package/dist/activation-entry.js +9 -0
- package/dist/artifacts/artifacts-entry.d.ts +2 -0
- package/dist/artifacts/artifacts-entry.js +2 -0
- package/dist/artifacts/drive-script.d.ts +222 -116
- package/dist/artifacts/drive-script.js +24 -1
- package/dist/artifacts/flow-constants.d.ts +33 -0
- package/dist/artifacts/flow-constants.js +35 -0
- package/dist/artifacts/flow-expect-flat.d.ts +8 -8
- package/dist/artifacts/flow-results.d.ts +461 -0
- package/dist/artifacts/flow-results.js +1 -0
- package/dist/artifacts/flow-types.d.ts +177 -543
- package/dist/artifacts/flow-types.js +17 -2
- package/dist/artifacts/harness-credits.d.ts +42 -0
- package/dist/artifacts/harness-credits.js +72 -0
- package/dist/artifacts/harness-map.d.ts +98 -0
- package/dist/artifacts/harness-map.js +36 -0
- package/dist/artifacts/impact.d.ts +355 -149
- package/dist/artifacts/impact.js +84 -49
- package/dist/artifacts/journal.d.ts +81 -11
- package/dist/artifacts/journal.js +39 -0
- package/dist/artifacts/prompt-context.d.ts +12 -0
- package/dist/artifacts/prompt-context.js +14 -3
- package/dist/artifacts/screenshot-upload.d.ts +51 -0
- package/dist/artifacts/screenshot-upload.js +26 -0
- package/dist/graph/app-graph.d.ts +137 -0
- package/dist/graph/app-graph.js +498 -0
- package/dist/hooks/hook-events.d.ts +26 -26
- package/dist/hud-entry.d.ts +1 -0
- package/dist/hud-entry.js +2 -0
- package/dist/identity/checkout.d.ts +41 -0
- package/dist/identity/checkout.js +118 -0
- package/dist/identity/state-dir.d.ts +23 -0
- package/dist/identity/state-dir.js +43 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +15 -0
- package/dist/onboarding.d.ts +30 -1
- package/dist/onboarding.js +25 -0
- package/dist/realm/registry.js +19 -1
- package/dist/registry/dev-server-registry.d.ts +2 -2
- package/dist/schema/command-message.json +30 -0
- package/dist/schema/command-name.json +3 -1
- package/dist/schema/event-message.json +3 -1
- package/dist/schema/event-payloads.json +156 -3
- package/dist/schema/event-type.json +3 -1
- package/dist/schema/hello-message.json +21 -0
- package/dist/schema/reticle-event.json +3 -1
- package/dist/schema/reticle-message.json +54 -1
- package/dist/telemetry-bug.d.ts +169 -0
- package/dist/telemetry-bug.js +123 -0
- package/dist/telemetry-entry.d.ts +2 -1
- package/dist/telemetry-entry.js +2 -1
- package/dist/telemetry-feedback.d.ts +16 -2
- package/dist/telemetry-feedback.js +19 -0
- package/dist/telemetry-session.d.ts +91 -2
- package/dist/telemetry-session.js +65 -0
- package/dist/telemetry-signals.d.ts +557 -0
- package/dist/telemetry-signals.js +225 -0
- package/dist/telemetry.d.ts +649 -296
- package/dist/telemetry.js +110 -119
- package/dist/verdict/check-sentence.d.ts +34 -0
- package/dist/verdict/check-sentence.js +228 -0
- package/dist/verdict/consequence.d.ts +15 -0
- package/dist/verdict/consequence.js +11 -0
- package/dist/verdict/disparity.d.ts +105 -0
- package/dist/verdict/disparity.js +40 -0
- package/dist/verdict/findings.d.ts +16 -0
- package/dist/verdict/findings.js +22 -0
- package/dist/verdict/instrumentation-coverage.d.ts +84 -0
- package/dist/verdict/instrumentation-coverage.js +182 -0
- package/dist/verdict/instrumentation-gap.d.ts +79 -0
- package/dist/verdict/instrumentation-gap.js +65 -1
- package/dist/verdict/intent.d.ts +19 -5
- package/dist/verdict/intent.js +13 -1
- package/dist/verdict/predicate-tree.d.ts +17 -0
- package/dist/verdict/predicate-tree.js +37 -0
- package/dist/verdict/predicate.d.ts +16 -1
- package/dist/verdict/predicate.js +188 -13
- package/dist/verdict/property-assertion.d.ts +2 -2
- package/dist/verdict/run-report.d.ts +166 -0
- package/dist/verdict/run-report.js +53 -0
- package/dist/verdict/security.d.ts +60 -1
- package/dist/verdict/security.js +174 -12
- package/dist/verdict/verification-run.d.ts +713 -68
- package/dist/verdict/verification-run.js +113 -0
- package/dist/verdict/verify-progress.d.ts +6 -6
- package/dist/wire/constants/constants.d.ts +69 -155
- package/dist/wire/constants/constants.js +78 -159
- package/dist/wire/constants/discovery.d.ts +4 -4
- package/dist/wire/constants/discovery.js +4 -4
- package/dist/wire/constants/event-types.d.ts +35 -1
- package/dist/wire/constants/event-types.js +33 -1
- package/dist/wire/constants/hud-controls.js +15 -5
- package/dist/wire/constants/hud-use.d.ts +33 -4
- package/dist/wire/constants/hud-use.js +30 -4
- package/dist/wire/constants/mcp-wire.d.ts +26 -0
- package/dist/wire/constants/mcp-wire.js +26 -0
- package/dist/wire/constants/response-body-reason.d.ts +19 -0
- package/dist/wire/constants/response-body-reason.js +18 -0
- package/dist/wire/constants/reticle-chrome.d.ts +19 -0
- package/dist/wire/constants/reticle-chrome.js +19 -0
- package/dist/wire/constants/reticle-env.d.ts +138 -0
- package/dist/wire/constants/reticle-env.js +138 -0
- package/dist/wire/constants/session-constants.d.ts +26 -2
- package/dist/wire/constants/session-constants.js +26 -2
- package/dist/wire/desktop-contract.d.ts +8 -0
- package/dist/wire/desktop-contract.js +11 -0
- package/dist/wire/event-payloads.d.ts +202 -36
- package/dist/wire/event-payloads.js +100 -16
- package/dist/wire/messages.d.ts +193 -54
- package/dist/wire/messages.js +25 -1
- package/dist/wire/narrow.d.ts +6 -0
- package/dist/wire/narrow.js +26 -0
- package/dist/wire/next-step.d.ts +90 -0
- package/dist/wire/next-step.js +37 -0
- package/dist/wire/platform-link.d.ts +84 -0
- package/dist/wire/platform-link.js +57 -6
- package/dist/wire/production/activation-ticket.d.ts +64 -0
- package/dist/wire/production/activation-ticket.js +148 -0
- package/dist/wire/production/hello-mode.d.ts +35 -0
- package/dist/wire/production/hello-mode.js +32 -0
- package/dist/wire/production/production-policy.d.ts +138 -0
- package/dist/wire/production/production-policy.js +133 -0
- package/dist/wire/tool-names.d.ts +4 -0
- package/dist/wire/tool-names.js +4 -0
- package/dist/wire/types.d.ts +90 -52
- package/dist/wire/types.js +5 -0
- package/dist/words/notices.d.ts +1 -1
- package/dist/words/notices.js +1 -1
- package/dist/words/upgrade.js +1 -1
- package/dist/words/writing-rule.d.ts +14 -0
- package/dist/words/writing-rule.js +17 -0
- package/package.json +5 -1
package/dist/telemetry.d.ts
CHANGED
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
* `z.nativeEnum`, timestamps are epoch-ms NUMBERS, no `any`.
|
|
16
16
|
*/
|
|
17
17
|
import { z } from 'zod';
|
|
18
|
-
import { OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep } from './onboarding.js';
|
|
18
|
+
import { NextStepOffered, OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep } from './onboarding.js';
|
|
19
19
|
/**
|
|
20
20
|
* The setup funnel's vocabulary. It is defined in `onboarding.ts`, which is its own subject, and
|
|
21
21
|
* re-exported here so every `@reticlehq/core/telemetry` import reaches it.
|
|
22
22
|
*/
|
|
23
|
-
export { OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep, };
|
|
23
|
+
export { NextStepOffered, OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep, };
|
|
24
|
+
export * from './telemetry-bug.js';
|
|
24
25
|
/** Bump when the event shape changes so the analytics side can segment old senders. */
|
|
25
26
|
export declare const TELEMETRY_EVENT_VERSION = 3;
|
|
26
27
|
/**
|
|
@@ -63,7 +64,7 @@ export declare const TelemetryEventKind: {
|
|
|
63
64
|
* tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
|
|
64
65
|
* an exit's name therefore describes active sessions at one end and abandoned ones at the other.
|
|
65
66
|
*
|
|
66
|
-
* Count
|
|
67
|
+
* Count daemon runs with DAEMON_STARTED, clean exits with DAEMON_STOPPED. Sum work with both.
|
|
67
68
|
*/
|
|
68
69
|
readonly SESSION_PROGRESS: "session_progress";
|
|
69
70
|
/**
|
|
@@ -77,7 +78,10 @@ export declare const TelemetryEventKind: {
|
|
|
77
78
|
* between a retention problem and an activation problem. Once per daemon start, so it is cheap.
|
|
78
79
|
*/
|
|
79
80
|
readonly PROJECT_PROFILED: "project_profiled";
|
|
80
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* A start found a version that differs from the last start on this machine, or `reticle update` /
|
|
83
|
+
* `reticle rollback` moved it. Carries from → to.
|
|
84
|
+
*/
|
|
81
85
|
readonly VERSION_CHANGED: "version_changed";
|
|
82
86
|
/** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
|
|
83
87
|
readonly RUNTIME_CRASHED: "runtime_crashed";
|
|
@@ -89,9 +93,10 @@ export declare const TelemetryEventKind: {
|
|
|
89
93
|
*/
|
|
90
94
|
readonly FEEDBACK_SUBMITTED: "feedback_submitted";
|
|
91
95
|
/**
|
|
92
|
-
* Somebody chose to say who they are. Like `feedback_submitted`, this
|
|
96
|
+
* Somebody chose to say who they are. Like `feedback_submitted`, this existed ONLY because a
|
|
93
97
|
* human ran a command — Reticle never infers an identity from a git remote, an email in git
|
|
94
|
-
* config, or anything else.
|
|
98
|
+
* config, or anything else. The command that sent it was removed; the kind stays in the
|
|
99
|
+
* vocabulary because older installs still send it.
|
|
95
100
|
*/
|
|
96
101
|
readonly IDENTIFIED: "identified";
|
|
97
102
|
/**
|
|
@@ -139,6 +144,17 @@ export declare const TelemetryEventKind: {
|
|
|
139
144
|
* that decides whether this is fixed.
|
|
140
145
|
*/
|
|
141
146
|
readonly MCP_CONNECTION_LOST: "mcp_connection_lost";
|
|
147
|
+
/**
|
|
148
|
+
* The MCP proxy process ended. The agent lost its tools until the client starts a new one.
|
|
149
|
+
*
|
|
150
|
+
* `mcp_connection_lost` cannot see this: the stream to the daemon can be healthy when the proxy
|
|
151
|
+
* leaves. Sent even when the proxy has no other counts to report. See `ProxyExitSchema`.
|
|
152
|
+
*/
|
|
153
|
+
readonly MCP_PROXY_EXITED: "mcp_proxy_exited";
|
|
154
|
+
/** A daemon start found the pidfile of a daemon that died without a clean stop. */
|
|
155
|
+
readonly DAEMON_DIED_UNCLEAN: "daemon_died_unclean";
|
|
156
|
+
/** The proxy found the daemon port held by a stranger or by another project, and did not use it. */
|
|
157
|
+
readonly WAKE_REFUSED: "wake_refused";
|
|
142
158
|
/**
|
|
143
159
|
* `reticle init` finished. The onboarding funnel had no instrumentation at all, so a setup that
|
|
144
160
|
* failed on a missing dependency was indistinguishable from a user who never tried.
|
|
@@ -169,6 +185,14 @@ export declare const TelemetryEventKind: {
|
|
|
169
185
|
* This carries the fact at the moment it happens. See issue #172.
|
|
170
186
|
*/
|
|
171
187
|
readonly TOOL_REFUSED: "tool_refused";
|
|
188
|
+
/** A HUD page (or the account menu) opened; deduped per tab. See telemetry-signals.ts. */
|
|
189
|
+
readonly HUD_VIEWED: "hud_viewed";
|
|
190
|
+
/** The HUD showed a sign-in or link prompt, once per surface per tab. */
|
|
191
|
+
readonly HUD_SIGNIN_PROMPTED: "hud_signin_prompted";
|
|
192
|
+
/** A project on this machine was linked to a workspace. */
|
|
193
|
+
readonly PLATFORM_LINKED: "platform_linked";
|
|
194
|
+
/** A Harness run started, or ended: one of each per run. */
|
|
195
|
+
readonly HARNESS_RUN: "harness_run";
|
|
172
196
|
};
|
|
173
197
|
export type TelemetryEventKind = (typeof TelemetryEventKind)[keyof typeof TelemetryEventKind];
|
|
174
198
|
/** True when this event happened inside a daemon run, so a `sessionId` on it means something. */
|
|
@@ -351,27 +375,31 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
351
375
|
/** A model inside the daemon drove this, on the user's behalf. */
|
|
352
376
|
readonly HARNESS: "harness";
|
|
353
377
|
}>>;
|
|
378
|
+
/** The page SDK version from its HELLO: our own release number, or `other`. Absent if unsaid. */
|
|
379
|
+
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
354
380
|
}, "strip", z.ZodTypeAny, {
|
|
355
|
-
passed: boolean;
|
|
356
381
|
verified: string;
|
|
382
|
+
passed: boolean;
|
|
357
383
|
via: string;
|
|
358
384
|
falseGreenCaught: boolean;
|
|
359
|
-
durationMs?: number | undefined;
|
|
360
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;
|
|
361
389
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
362
390
|
driven?: "harness" | undefined;
|
|
363
|
-
browser?: string | undefined;
|
|
364
391
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
365
392
|
}, {
|
|
366
|
-
passed: boolean;
|
|
367
393
|
verified: string;
|
|
394
|
+
passed: boolean;
|
|
368
395
|
via: string;
|
|
369
396
|
falseGreenCaught: boolean;
|
|
370
|
-
durationMs?: number | undefined;
|
|
371
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;
|
|
372
401
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
373
402
|
driven?: "harness" | undefined;
|
|
374
|
-
browser?: string | undefined;
|
|
375
403
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
376
404
|
}>;
|
|
377
405
|
export type Verification = z.infer<typeof VerificationSchema>;
|
|
@@ -560,161 +588,6 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
560
588
|
internalFrame?: string | undefined;
|
|
561
589
|
}>;
|
|
562
590
|
export type Crash = z.infer<typeof CrashSchema>;
|
|
563
|
-
/**
|
|
564
|
-
* How Reticle came to find a defect. Four routes, in descending order of "a human would have missed
|
|
565
|
-
* this": a contradiction is invisible to someone watching the screen, a crawl finding required no
|
|
566
|
-
* script at all, a replay failure is a regression on something that used to work, and a failed
|
|
567
|
-
* assertion is the agent's own check not holding.
|
|
568
|
-
*/
|
|
569
|
-
export declare const BugSource: {
|
|
570
|
-
/** Channels disagreed — the false green. A passing screen sitting on a failed write. */
|
|
571
|
-
readonly CONTRADICTION: "contradiction";
|
|
572
|
-
/** `reticle_crawl` found it autonomously, with nobody writing a test. */
|
|
573
|
-
readonly CRAWL: "crawl";
|
|
574
|
-
/** A saved flow that used to pass stopped passing — a regression. */
|
|
575
|
-
readonly REPLAY: "replay";
|
|
576
|
-
/** An assertion the agent declared did not hold. */
|
|
577
|
-
readonly ASSERTION: "assertion";
|
|
578
|
-
};
|
|
579
|
-
export type BugSource = (typeof BugSource)[keyof typeof BugSource];
|
|
580
|
-
/**
|
|
581
|
-
* WHOSE fault the defect was.
|
|
582
|
-
*
|
|
583
|
-
* `bugsFound` is not publishable without this, and a count confidently wrong about whose fault
|
|
584
|
-
* something is, is worse than no count: it points at the customer. Two rules keep it honest:
|
|
585
|
-
*
|
|
586
|
-
* 1. **Always present.** `UNCLASSIFIED` is a value, not a gap. Absence would mean an old sender or a
|
|
587
|
-
* path that forgot; a value means the classifier ran and declined.
|
|
588
|
-
* 2. **`APP` requires POSITIVE evidence** — something the app itself did: a request that came back
|
|
589
|
-
* failed, a signal the app fired carrying data that disagrees with its own screen, a written
|
|
590
|
-
* field echoed back changed. Never "nothing else explained it". Core already draws exactly this
|
|
591
|
-
* line for the verdict, in `ABSENCE_DERIVED_CONTRADICTIONS`, and that is the line reused rather
|
|
592
|
-
* than a second judgement invented beside it.
|
|
593
|
-
*/
|
|
594
|
-
export declare const BugAttribution: {
|
|
595
|
-
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
596
|
-
readonly APP: "app";
|
|
597
|
-
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
598
|
-
readonly REQUEST: "request";
|
|
599
|
-
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
600
|
-
readonly RETICLE: "reticle";
|
|
601
|
-
/**
|
|
602
|
-
* The classifier looked and the evidence could not say.
|
|
603
|
-
*
|
|
604
|
-
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
605
|
-
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
606
|
-
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
607
|
-
* Exclude it from a defect count; never fold it into `app`.
|
|
608
|
-
*/
|
|
609
|
-
readonly UNCLASSIFIED: "unclassified";
|
|
610
|
-
};
|
|
611
|
-
export type BugAttribution = (typeof BugAttribution)[keyof typeof BugAttribution];
|
|
612
|
-
/**
|
|
613
|
-
* One defect Reticle found in the app under test.
|
|
614
|
-
*
|
|
615
|
-
* `kind` is the taxonomy value from `findings.ts` — `signal-contradicted`, `console-error`,
|
|
616
|
-
* `duplicate-request` and so on. Never a selector, a URL, an element, or any description of the
|
|
617
|
-
* user's app — THAT a class of defect was found, never WHAT it was in.
|
|
618
|
-
*/
|
|
619
|
-
export declare const BugFoundSchema: z.ZodObject<{
|
|
620
|
-
source: z.ZodNativeEnum<{
|
|
621
|
-
/** Channels disagreed — the false green. A passing screen sitting on a failed write. */
|
|
622
|
-
readonly CONTRADICTION: "contradiction";
|
|
623
|
-
/** `reticle_crawl` found it autonomously, with nobody writing a test. */
|
|
624
|
-
readonly CRAWL: "crawl";
|
|
625
|
-
/** A saved flow that used to pass stopped passing — a regression. */
|
|
626
|
-
readonly REPLAY: "replay";
|
|
627
|
-
/** An assertion the agent declared did not hold. */
|
|
628
|
-
readonly ASSERTION: "assertion";
|
|
629
|
-
}>;
|
|
630
|
-
/** The classified kind from Reticle's own findings vocabulary. */
|
|
631
|
-
kind: z.ZodString;
|
|
632
|
-
/**
|
|
633
|
-
* True when the defect PRESENTED AS SUCCESS — the screen advanced, the assertion passed, the click
|
|
634
|
-
* looked fine — while another channel showed it had not.
|
|
635
|
-
*
|
|
636
|
-
* Defined by the presentation rather than by "an assertion passed", because the same defect arrives
|
|
637
|
-
* both ways: through `reticle_assert` there IS a passing assertion to contradict, and through
|
|
638
|
-
* `reticle_crawl` there is no assertion at all and the UI simply moved on over a failed write. Both
|
|
639
|
-
* are the thing a human watching the screen cannot see, and that is what the flag has to mean if
|
|
640
|
-
* the number is going to be published.
|
|
641
|
-
*
|
|
642
|
-
* The subset worth naming separately, because it is the only category Reticle can claim as uniquely
|
|
643
|
-
* its own: every other kind of bug is findable by a careful human or an ordinary test.
|
|
644
|
-
*/
|
|
645
|
-
falseGreen: z.ZodBoolean;
|
|
646
|
-
/** Which tool surfaced it. */
|
|
647
|
-
tool: z.ZodOptional<z.ZodString>;
|
|
648
|
-
/**
|
|
649
|
-
* TRUE when this KIND was already reported in this session — i.e. this is another INSTANCE of a
|
|
650
|
-
* defect already counted, not another defect.
|
|
651
|
-
*
|
|
652
|
-
* Both numbers are claims, and they are different ones. "Reticle found N defects" is the headline;
|
|
653
|
-
* "users hit them M times" is the frequency that says which ones actually cost anybody anything.
|
|
654
|
-
* Without this flag the event stream answers only the second while looking like it answers the
|
|
655
|
-
* first, so any distinct-defect count read off it is silently inflated — the exact way a published
|
|
656
|
-
* number goes wrong. Count `repeat: false` for distinct, count everything for instances.
|
|
657
|
-
*
|
|
658
|
-
* Scoped to the SESSION, because that is the only identity available: the payload deliberately
|
|
659
|
-
* carries no selector, URL or app detail, so the same defect in two sessions cannot be recognised
|
|
660
|
-
* as one — and must not be, since that would need data this event refuses to collect.
|
|
661
|
-
*/
|
|
662
|
-
repeat: z.ZodBoolean;
|
|
663
|
-
/**
|
|
664
|
-
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
665
|
-
*
|
|
666
|
-
* Absence and "the evidence could not say" are different facts, and only one of them is a
|
|
667
|
-
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
668
|
-
* `BugAttribution` for why `app` needs positive evidence.
|
|
669
|
-
*/
|
|
670
|
-
attribution: z.ZodNativeEnum<{
|
|
671
|
-
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
672
|
-
readonly APP: "app";
|
|
673
|
-
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
674
|
-
readonly REQUEST: "request";
|
|
675
|
-
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
676
|
-
readonly RETICLE: "reticle";
|
|
677
|
-
/**
|
|
678
|
-
* The classifier looked and the evidence could not say.
|
|
679
|
-
*
|
|
680
|
-
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
681
|
-
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
682
|
-
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
683
|
-
* Exclude it from a defect count; never fold it into `app`.
|
|
684
|
-
*/
|
|
685
|
-
readonly UNCLASSIFIED: "unclassified";
|
|
686
|
-
}>;
|
|
687
|
-
/**
|
|
688
|
-
* A stable hash identifying THIS defect across sessions — same kind at the same route = same
|
|
689
|
-
* fingerprint, regardless of when or where it was found.
|
|
690
|
-
*
|
|
691
|
-
* The inputs (route, selector) never travel raw — only the 8-char hex hash does, following the
|
|
692
|
-
* same privacy pattern as `projectId`. The analytics side groups on it to answer "was this bug
|
|
693
|
-
* fixed?" (the fingerprint stops appearing) and to deduplicate the same defect found by parallel
|
|
694
|
-
* agents in one run.
|
|
695
|
-
*
|
|
696
|
-
* OPTIONAL because old senders and the `reticle verify` CLI path do not yet compute it. Absent
|
|
697
|
-
* means "not fingerprinted", never "a different defect from one that has a fingerprint".
|
|
698
|
-
*/
|
|
699
|
-
fingerprint: z.ZodOptional<z.ZodString>;
|
|
700
|
-
}, "strip", z.ZodTypeAny, {
|
|
701
|
-
kind: string;
|
|
702
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
703
|
-
attribution: "reticle" | "request" | "app" | "unclassified";
|
|
704
|
-
falseGreen: boolean;
|
|
705
|
-
repeat: boolean;
|
|
706
|
-
tool?: string | undefined;
|
|
707
|
-
fingerprint?: string | undefined;
|
|
708
|
-
}, {
|
|
709
|
-
kind: string;
|
|
710
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
711
|
-
attribution: "reticle" | "request" | "app" | "unclassified";
|
|
712
|
-
falseGreen: boolean;
|
|
713
|
-
repeat: boolean;
|
|
714
|
-
tool?: string | undefined;
|
|
715
|
-
fingerprint?: string | undefined;
|
|
716
|
-
}>;
|
|
717
|
-
export type BugFound = z.infer<typeof BugFoundSchema>;
|
|
718
591
|
/** An MCP client attaching. Separates "installed and running" from "someone is actually using it". */
|
|
719
592
|
export declare const McpConnectionSchema: z.ZodObject<{
|
|
720
593
|
/** False the first time a client attaches to this daemon; true for every attach after. */
|
|
@@ -744,14 +617,18 @@ export declare const McpConnectionSchema: z.ZodObject<{
|
|
|
744
617
|
* OPTIONAL because an older sender has none. Absent means not measured, never `false`.
|
|
745
618
|
*/
|
|
746
619
|
appConnected: z.ZodOptional<z.ZodBoolean>;
|
|
620
|
+
/** The id of the proxy process that attached. Its outages carry the same id. */
|
|
621
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
747
622
|
}, "strip", z.ZodTypeAny, {
|
|
748
623
|
reconnect: boolean;
|
|
749
624
|
daemonAgeMs: number;
|
|
625
|
+
proxyId?: string | undefined;
|
|
750
626
|
client?: string | undefined;
|
|
751
627
|
appConnected?: boolean | undefined;
|
|
752
628
|
}, {
|
|
753
629
|
reconnect: boolean;
|
|
754
630
|
daemonAgeMs: number;
|
|
631
|
+
proxyId?: string | undefined;
|
|
755
632
|
client?: string | undefined;
|
|
756
633
|
appConnected?: boolean | undefined;
|
|
757
634
|
}>;
|
|
@@ -771,14 +648,18 @@ export declare const AppInstrumentationSchema: z.ZodObject<{
|
|
|
771
648
|
agentAttached: z.ZodBoolean;
|
|
772
649
|
/** How long the daemon had been up. Large values mean Reticle sat there with nothing wired. */
|
|
773
650
|
msToFirstApp: z.ZodNumber;
|
|
651
|
+
/** The first app ever on this machine + project, not just this run. Absent otherwise. */
|
|
652
|
+
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
774
653
|
}, "strip", z.ZodTypeAny, {
|
|
775
654
|
msToFirstApp: number;
|
|
776
655
|
initialized: boolean;
|
|
777
656
|
agentAttached: boolean;
|
|
657
|
+
firstEver?: boolean | undefined;
|
|
778
658
|
}, {
|
|
779
659
|
msToFirstApp: number;
|
|
780
660
|
initialized: boolean;
|
|
781
661
|
agentAttached: boolean;
|
|
662
|
+
firstEver?: boolean | undefined;
|
|
782
663
|
}>;
|
|
783
664
|
export type AppInstrumentation = z.infer<typeof AppInstrumentationSchema>;
|
|
784
665
|
/**
|
|
@@ -826,6 +707,11 @@ export declare const OutageReason: {
|
|
|
826
707
|
readonly SSE_CLOSED: "sse_closed";
|
|
827
708
|
/** A reconnect attempt could not reach the daemon at all. */
|
|
828
709
|
readonly CONNECT_ERROR: "connect_error";
|
|
710
|
+
/**
|
|
711
|
+
* A stream that was already serving was reset. The request saw the error before the response
|
|
712
|
+
* closed, so this used to read as `connect_error`, which says the daemon was never reached.
|
|
713
|
+
*/
|
|
714
|
+
readonly SSE_RESET: "sse_reset";
|
|
829
715
|
/** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
|
|
830
716
|
readonly OTHER: "other";
|
|
831
717
|
};
|
|
@@ -874,6 +760,11 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
874
760
|
readonly SSE_CLOSED: "sse_closed";
|
|
875
761
|
/** A reconnect attempt could not reach the daemon at all. */
|
|
876
762
|
readonly CONNECT_ERROR: "connect_error";
|
|
763
|
+
/**
|
|
764
|
+
* A stream that was already serving was reset. The request saw the error before the response
|
|
765
|
+
* closed, so this used to read as `connect_error`, which says the daemon was never reached.
|
|
766
|
+
*/
|
|
767
|
+
readonly SSE_RESET: "sse_reset";
|
|
877
768
|
/** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
|
|
878
769
|
readonly OTHER: "other";
|
|
879
770
|
}>;
|
|
@@ -891,16 +782,34 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
891
782
|
* worth driving down.
|
|
892
783
|
*/
|
|
893
784
|
pendingLost: z.ZodOptional<z.ZodNumber>;
|
|
785
|
+
/** The socket error code behind the drop, when the drop came with one. */
|
|
786
|
+
errCode: z.ZodOptional<z.ZodNativeEnum<{
|
|
787
|
+
readonly ECONNRESET: "ECONNRESET";
|
|
788
|
+
readonly ECONNREFUSED: "ECONNREFUSED";
|
|
789
|
+
readonly EPIPE: "EPIPE";
|
|
790
|
+
readonly ETIMEDOUT: "ETIMEDOUT";
|
|
791
|
+
readonly OTHER: "other";
|
|
792
|
+
}>>;
|
|
793
|
+
/** The stream got a response before it failed: a live stream dropped, not a refused connect. */
|
|
794
|
+
responded: z.ZodOptional<z.ZodBoolean>;
|
|
795
|
+
/** The proxy process. It joins `mcp_client_connected`, which carries the daemon's `sessionId`. */
|
|
796
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
894
797
|
}, "strip", z.ZodTypeAny, {
|
|
895
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
798
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
896
799
|
attempts: number;
|
|
897
800
|
stage: "first" | "budget_spent" | "recovered";
|
|
801
|
+
proxyId?: string | undefined;
|
|
898
802
|
pendingLost?: number | undefined;
|
|
803
|
+
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
804
|
+
responded?: boolean | undefined;
|
|
899
805
|
}, {
|
|
900
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
806
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
901
807
|
attempts: number;
|
|
902
808
|
stage: "first" | "budget_spent" | "recovered";
|
|
809
|
+
proxyId?: string | undefined;
|
|
903
810
|
pendingLost?: number | undefined;
|
|
811
|
+
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
812
|
+
responded?: boolean | undefined;
|
|
904
813
|
}>;
|
|
905
814
|
export type McpOutage = z.infer<typeof McpOutageSchema>;
|
|
906
815
|
/**
|
|
@@ -930,10 +839,14 @@ export declare const InstallSource: {
|
|
|
930
839
|
readonly NPX_SKILL: "npx_skill";
|
|
931
840
|
/** The Claude Code plugin, which sets the marker in the `env` of the MCP server it registers. */
|
|
932
841
|
readonly PLUGIN: "plugin";
|
|
842
|
+
/** The one-line installer (install.sh / install.ps1), which declares itself on `setup install`. */
|
|
843
|
+
readonly INSTALL_SCRIPT: "install_script";
|
|
933
844
|
/** docs.reticle.sh, whose install snippets carry the marker. */
|
|
934
845
|
readonly DOCS_SITE: "docs_site";
|
|
935
846
|
/** The repository README's install snippet. */
|
|
936
847
|
readonly README: "readme";
|
|
848
|
+
/** reticle.sh/blog, whose posts' install snippets carry the marker. */
|
|
849
|
+
readonly BLOG: "blog";
|
|
937
850
|
/** Somebody typed the command with no channel in front of it. Only ever self-declared. */
|
|
938
851
|
readonly CLI_DIRECT: "cli_direct";
|
|
939
852
|
/** No marker, or one this list does not name. The honest answer, and expected to dominate. */
|
|
@@ -951,8 +864,13 @@ export declare const AutomationHint: {
|
|
|
951
864
|
readonly CONTAINER: "container";
|
|
952
865
|
/** A hosted dev environment declared itself (Codespaces, Gitpod, Cloud Shell, dev container). */
|
|
953
866
|
readonly HOSTED_WORKSPACE: "hosted_workspace";
|
|
954
|
-
/**
|
|
955
|
-
|
|
867
|
+
/**
|
|
868
|
+
* A CI vendor's own variable is set while `CI` is not (some runners and self-hosted agents omit it).
|
|
869
|
+
* `no_tty` used to sit here and read true for every MCP stdio process, so it separated nothing.
|
|
870
|
+
*/
|
|
871
|
+
readonly CI_RUNNER: "ci_runner";
|
|
872
|
+
/** A hosted coding-agent sandbox declared itself (a remote agent session, not a laptop). */
|
|
873
|
+
readonly AGENT_SANDBOX: "agent_sandbox";
|
|
956
874
|
};
|
|
957
875
|
export type AutomationHint = (typeof AutomationHint)[keyof typeof AutomationHint];
|
|
958
876
|
/**
|
|
@@ -987,6 +905,38 @@ export declare const InitConfirmation: {
|
|
|
987
905
|
readonly NO_PAGE: "no_page";
|
|
988
906
|
};
|
|
989
907
|
export type InitConfirmation = (typeof InitConfirmation)[keyof typeof InitConfirmation];
|
|
908
|
+
/**
|
|
909
|
+
* The step a failed runtime `init` stopped at. It refines `reason` and never replaces it.
|
|
910
|
+
*
|
|
911
|
+
* `dev_server` and `app_connection` each covered several stops with different fixes: no dev script,
|
|
912
|
+
* a busy port, a launcher that exited, a build that never served, a page without the SDK, a page
|
|
913
|
+
* that never dialled. The event could not tell them apart, so no fix could be aimed at the common one.
|
|
914
|
+
*/
|
|
915
|
+
export declare const InitStop: {
|
|
916
|
+
/** The project names no dev, start or serve script, and no `--url` was given. */
|
|
917
|
+
readonly NO_DEV_COMMAND: "no_dev_command";
|
|
918
|
+
/** Something answers on one loopback address and not the other, on the dev port. */
|
|
919
|
+
readonly SPLIT_LOOPBACK: "split_loopback";
|
|
920
|
+
/** The dev server said that its port is in use. */
|
|
921
|
+
readonly PORT_BUSY: "port_busy";
|
|
922
|
+
/** The dev server exited and nothing serves. */
|
|
923
|
+
readonly DEV_SERVER_EXITED: "dev_server_exited";
|
|
924
|
+
/** The dev server printed no URL and bound no port in the budget. */
|
|
925
|
+
readonly NO_URL: "no_url";
|
|
926
|
+
/** The dev server announced a URL that did not become ready in the budget. */
|
|
927
|
+
readonly NOT_READY: "not_ready";
|
|
928
|
+
/** Nothing answered the app URL when the connect wait ended. */
|
|
929
|
+
readonly PAGE_NOT_SERVED: "page_not_served";
|
|
930
|
+
/** The app URL refused the TLS handshake. */
|
|
931
|
+
readonly PAGE_TLS_REFUSED: "page_tls_refused";
|
|
932
|
+
/** The page answered, and its HTML does not load the SDK. */
|
|
933
|
+
readonly SDK_MISSING: "sdk_missing";
|
|
934
|
+
/** The page answered and no session dialled the daemon. */
|
|
935
|
+
readonly NO_SESSION: "no_session";
|
|
936
|
+
/** A desktop app never dialled the daemon. */
|
|
937
|
+
readonly DESKTOP_NO_SESSION: "desktop_no_session";
|
|
938
|
+
};
|
|
939
|
+
export type InitStop = (typeof InitStop)[keyof typeof InitStop];
|
|
990
940
|
/** How `reticle init` went. The onboarding funnel, which had no instrumentation whatsoever. */
|
|
991
941
|
export declare const InitOutcomeSchema: z.ZodObject<{
|
|
992
942
|
ok: z.ZodBoolean;
|
|
@@ -1026,18 +976,45 @@ export declare const InitOutcomeSchema: z.ZodObject<{
|
|
|
1026
976
|
*/
|
|
1027
977
|
readonly NO_PAGE: "no_page";
|
|
1028
978
|
}>>;
|
|
979
|
+
/** Only with `reason` `dev_server` or `app_connection`: the step it stopped at. */
|
|
980
|
+
stop: z.ZodOptional<z.ZodNativeEnum<{
|
|
981
|
+
/** The project names no dev, start or serve script, and no `--url` was given. */
|
|
982
|
+
readonly NO_DEV_COMMAND: "no_dev_command";
|
|
983
|
+
/** Something answers on one loopback address and not the other, on the dev port. */
|
|
984
|
+
readonly SPLIT_LOOPBACK: "split_loopback";
|
|
985
|
+
/** The dev server said that its port is in use. */
|
|
986
|
+
readonly PORT_BUSY: "port_busy";
|
|
987
|
+
/** The dev server exited and nothing serves. */
|
|
988
|
+
readonly DEV_SERVER_EXITED: "dev_server_exited";
|
|
989
|
+
/** The dev server printed no URL and bound no port in the budget. */
|
|
990
|
+
readonly NO_URL: "no_url";
|
|
991
|
+
/** The dev server announced a URL that did not become ready in the budget. */
|
|
992
|
+
readonly NOT_READY: "not_ready";
|
|
993
|
+
/** Nothing answered the app URL when the connect wait ended. */
|
|
994
|
+
readonly PAGE_NOT_SERVED: "page_not_served";
|
|
995
|
+
/** The app URL refused the TLS handshake. */
|
|
996
|
+
readonly PAGE_TLS_REFUSED: "page_tls_refused";
|
|
997
|
+
/** The page answered, and its HTML does not load the SDK. */
|
|
998
|
+
readonly SDK_MISSING: "sdk_missing";
|
|
999
|
+
/** The page answered and no session dialled the daemon. */
|
|
1000
|
+
readonly NO_SESSION: "no_session";
|
|
1001
|
+
/** A desktop app never dialled the daemon. */
|
|
1002
|
+
readonly DESKTOP_NO_SESSION: "desktop_no_session";
|
|
1003
|
+
}>>;
|
|
1029
1004
|
}, "strip", z.ZodTypeAny, {
|
|
1030
1005
|
ok: boolean;
|
|
1031
1006
|
reason?: string | undefined;
|
|
1032
1007
|
stack?: string | undefined;
|
|
1033
1008
|
mcpRegistered?: boolean | undefined;
|
|
1034
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;
|
|
1035
1011
|
}, {
|
|
1036
1012
|
ok: boolean;
|
|
1037
1013
|
reason?: string | undefined;
|
|
1038
1014
|
stack?: string | undefined;
|
|
1039
1015
|
mcpRegistered?: boolean | undefined;
|
|
1040
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;
|
|
1041
1018
|
}>;
|
|
1042
1019
|
export type InitOutcome = z.infer<typeof InitOutcomeSchema>;
|
|
1043
1020
|
/**
|
|
@@ -1045,6 +1022,179 @@ export type InitOutcome = z.infer<typeof InitOutcomeSchema>;
|
|
|
1045
1022
|
* identifiers; everything else is a low-cardinality dimension for slicing the adoption metrics.
|
|
1046
1023
|
*/
|
|
1047
1024
|
export declare const TelemetryEventSchema: z.ZodObject<{
|
|
1025
|
+
proxyExit: z.ZodOptional<z.ZodObject<{
|
|
1026
|
+
reason: z.ZodNativeEnum<{
|
|
1027
|
+
readonly STDIN_END: "stdin_end";
|
|
1028
|
+
readonly IDLE: "idle";
|
|
1029
|
+
readonly CLIENT_GONE_STORM: "client_gone_storm";
|
|
1030
|
+
readonly WAKE_FAILED: "wake_failed";
|
|
1031
|
+
}>;
|
|
1032
|
+
uptimeMs: z.ZodNumber;
|
|
1033
|
+
drops: z.ZodNumber;
|
|
1034
|
+
toolCalls: z.ZodNumber;
|
|
1035
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
1036
|
+
}, "strip", z.ZodTypeAny, {
|
|
1037
|
+
reason: "idle" | "stdin_end" | "client_gone_storm" | "wake_failed";
|
|
1038
|
+
toolCalls: number;
|
|
1039
|
+
uptimeMs: number;
|
|
1040
|
+
drops: number;
|
|
1041
|
+
proxyId?: string | undefined;
|
|
1042
|
+
}, {
|
|
1043
|
+
reason: "idle" | "stdin_end" | "client_gone_storm" | "wake_failed";
|
|
1044
|
+
toolCalls: number;
|
|
1045
|
+
uptimeMs: number;
|
|
1046
|
+
drops: number;
|
|
1047
|
+
proxyId?: string | undefined;
|
|
1048
|
+
}>>;
|
|
1049
|
+
daemonDeath: z.ZodOptional<z.ZodObject<{
|
|
1050
|
+
ageMs: z.ZodNumber;
|
|
1051
|
+
}, "strip", z.ZodTypeAny, {
|
|
1052
|
+
ageMs: number;
|
|
1053
|
+
}, {
|
|
1054
|
+
ageMs: number;
|
|
1055
|
+
}>>;
|
|
1056
|
+
wakeRefusal: z.ZodOptional<z.ZodObject<{
|
|
1057
|
+
presence: z.ZodNativeEnum<{
|
|
1058
|
+
readonly FOREIGN: "foreign";
|
|
1059
|
+
readonly OTHER_PROJECT: "other_project";
|
|
1060
|
+
}>;
|
|
1061
|
+
}, "strip", z.ZodTypeAny, {
|
|
1062
|
+
presence: "foreign" | "other_project";
|
|
1063
|
+
}, {
|
|
1064
|
+
presence: "foreign" | "other_project";
|
|
1065
|
+
}>>;
|
|
1066
|
+
accountState: z.ZodOptional<z.ZodNativeEnum<{
|
|
1067
|
+
readonly SIGNED_OUT: "signed_out";
|
|
1068
|
+
readonly SIGNED_IN: "signed_in";
|
|
1069
|
+
readonly LINKED: "linked";
|
|
1070
|
+
}>>;
|
|
1071
|
+
linked: z.ZodOptional<z.ZodBoolean>;
|
|
1072
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
client: z.ZodOptional<z.ZodNativeEnum<{
|
|
1074
|
+
readonly CLAUDE_CODE: "claude_code";
|
|
1075
|
+
readonly CLAUDE_DESKTOP: "claude_desktop";
|
|
1076
|
+
readonly CODEX: "codex";
|
|
1077
|
+
readonly CURSOR: "cursor";
|
|
1078
|
+
readonly GEMINI_CLI: "gemini_cli";
|
|
1079
|
+
readonly ANTIGRAVITY: "antigravity";
|
|
1080
|
+
readonly WINDSURF: "windsurf";
|
|
1081
|
+
readonly CLINE: "cline";
|
|
1082
|
+
readonly OPENCODE: "opencode";
|
|
1083
|
+
readonly ZED: "zed";
|
|
1084
|
+
readonly VSCODE: "vscode";
|
|
1085
|
+
readonly OTHER: "other";
|
|
1086
|
+
}>>;
|
|
1087
|
+
launch: z.ZodOptional<z.ZodNativeEnum<{
|
|
1088
|
+
readonly NPX: "npx";
|
|
1089
|
+
readonly GLOBAL: "global";
|
|
1090
|
+
readonly PROJECT: "project";
|
|
1091
|
+
readonly OTHER: "other";
|
|
1092
|
+
}>>;
|
|
1093
|
+
hud: z.ZodOptional<z.ZodObject<{
|
|
1094
|
+
view: z.ZodOptional<z.ZodNativeEnum<{
|
|
1095
|
+
readonly CHAT: "chat";
|
|
1096
|
+
readonly FLOWS: "flows";
|
|
1097
|
+
readonly NOTES: "notes";
|
|
1098
|
+
readonly HARNESS: "harness";
|
|
1099
|
+
readonly SETTINGS: "settings";
|
|
1100
|
+
readonly REPORT: "report";
|
|
1101
|
+
readonly ACCOUNT: "account";
|
|
1102
|
+
readonly NONE: "none";
|
|
1103
|
+
}>>;
|
|
1104
|
+
surface: z.ZodOptional<z.ZodNativeEnum<{
|
|
1105
|
+
readonly RAIL: "rail";
|
|
1106
|
+
readonly HARNESS: "harness";
|
|
1107
|
+
readonly HEADER: "header";
|
|
1108
|
+
}>>;
|
|
1109
|
+
tabs: z.ZodOptional<z.ZodNativeEnum<{
|
|
1110
|
+
readonly ZERO: "0";
|
|
1111
|
+
readonly ONE: "1";
|
|
1112
|
+
readonly TWO_THREE: "2-3";
|
|
1113
|
+
readonly FOUR_NINE: "4-9";
|
|
1114
|
+
readonly TEN_PLUS: "10+";
|
|
1115
|
+
}>>;
|
|
1116
|
+
}, "strip", z.ZodTypeAny, {
|
|
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
|
+
}>>;
|
|
1125
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
1126
|
+
via: z.ZodNativeEnum<{
|
|
1127
|
+
readonly CONNECT: "connect";
|
|
1128
|
+
readonly HUD: "hud";
|
|
1129
|
+
readonly LINK: "link";
|
|
1130
|
+
}>;
|
|
1131
|
+
}, "strip", z.ZodTypeAny, {
|
|
1132
|
+
via: "link" | "hud" | "connect";
|
|
1133
|
+
}, {
|
|
1134
|
+
via: "link" | "hud" | "connect";
|
|
1135
|
+
}>>;
|
|
1136
|
+
harness: z.ZodOptional<z.ZodObject<{
|
|
1137
|
+
phase: z.ZodNativeEnum<{
|
|
1138
|
+
readonly STARTED: "started";
|
|
1139
|
+
readonly COMPLETED: "completed";
|
|
1140
|
+
}>;
|
|
1141
|
+
source: z.ZodNativeEnum<{
|
|
1142
|
+
readonly AGENT: "agent";
|
|
1143
|
+
readonly HUD: "hud";
|
|
1144
|
+
readonly DASHBOARD: "dashboard";
|
|
1145
|
+
readonly CLI_TRY: "cli_try";
|
|
1146
|
+
readonly PLAN: "plan";
|
|
1147
|
+
}>;
|
|
1148
|
+
hosted: z.ZodBoolean;
|
|
1149
|
+
outcome: z.ZodOptional<z.ZodNativeEnum<{
|
|
1150
|
+
readonly PROVED: "proved";
|
|
1151
|
+
readonly NOT_PROVED: "not_proved";
|
|
1152
|
+
readonly FAILED: "failed";
|
|
1153
|
+
readonly BLOCKED: "blocked";
|
|
1154
|
+
readonly STOPPED: "stopped";
|
|
1155
|
+
}>>;
|
|
1156
|
+
journeys: z.ZodOptional<z.ZodNativeEnum<{
|
|
1157
|
+
readonly ZERO: "0";
|
|
1158
|
+
readonly ONE: "1";
|
|
1159
|
+
readonly TWO_THREE: "2-3";
|
|
1160
|
+
readonly FOUR_NINE: "4-9";
|
|
1161
|
+
readonly TEN_PLUS: "10+";
|
|
1162
|
+
}>>;
|
|
1163
|
+
replayed: z.ZodOptional<z.ZodNativeEnum<{
|
|
1164
|
+
readonly ZERO: "0";
|
|
1165
|
+
readonly ONE: "1";
|
|
1166
|
+
readonly TWO_THREE: "2-3";
|
|
1167
|
+
readonly FOUR_NINE: "4-9";
|
|
1168
|
+
readonly TEN_PLUS: "10+";
|
|
1169
|
+
}>>;
|
|
1170
|
+
reason: z.ZodOptional<z.ZodNativeEnum<{
|
|
1171
|
+
readonly NOT_LINKED: "not_linked";
|
|
1172
|
+
readonly PLATFORM_UNREACHABLE: "platform_unreachable";
|
|
1173
|
+
readonly HARNESS_OFF: "harness_off";
|
|
1174
|
+
readonly NO_CREDITS: "no_credits";
|
|
1175
|
+
readonly NOT_ENTITLED: "not_entitled";
|
|
1176
|
+
readonly COVERAGE_GATE: "coverage_gate";
|
|
1177
|
+
readonly VERSION_SKEW: "version_skew";
|
|
1178
|
+
readonly BROKEN: "broken";
|
|
1179
|
+
readonly OTHER: "other";
|
|
1180
|
+
}>>;
|
|
1181
|
+
}, "strip", z.ZodTypeAny, {
|
|
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
|
+
}>>;
|
|
1048
1198
|
v: z.ZodLiteral<3>;
|
|
1049
1199
|
/** Random UUID persisted at `~/.reticle/telemetry-id`. Distinct-count of this = users (DAU/WAU/MAU). */
|
|
1050
1200
|
anonymousId: z.ZodString;
|
|
@@ -1093,7 +1243,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1093
1243
|
* tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
|
|
1094
1244
|
* an exit's name therefore describes active sessions at one end and abandoned ones at the other.
|
|
1095
1245
|
*
|
|
1096
|
-
* Count
|
|
1246
|
+
* Count daemon runs with DAEMON_STARTED, clean exits with DAEMON_STOPPED. Sum work with both.
|
|
1097
1247
|
*/
|
|
1098
1248
|
readonly SESSION_PROGRESS: "session_progress";
|
|
1099
1249
|
/**
|
|
@@ -1107,7 +1257,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1107
1257
|
* between a retention problem and an activation problem. Once per daemon start, so it is cheap.
|
|
1108
1258
|
*/
|
|
1109
1259
|
readonly PROJECT_PROFILED: "project_profiled";
|
|
1110
|
-
/**
|
|
1260
|
+
/**
|
|
1261
|
+
* A start found a version that differs from the last start on this machine, or `reticle update` /
|
|
1262
|
+
* `reticle rollback` moved it. Carries from → to.
|
|
1263
|
+
*/
|
|
1111
1264
|
readonly VERSION_CHANGED: "version_changed";
|
|
1112
1265
|
/** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
|
|
1113
1266
|
readonly RUNTIME_CRASHED: "runtime_crashed";
|
|
@@ -1119,9 +1272,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1119
1272
|
*/
|
|
1120
1273
|
readonly FEEDBACK_SUBMITTED: "feedback_submitted";
|
|
1121
1274
|
/**
|
|
1122
|
-
* Somebody chose to say who they are. Like `feedback_submitted`, this
|
|
1275
|
+
* Somebody chose to say who they are. Like `feedback_submitted`, this existed ONLY because a
|
|
1123
1276
|
* human ran a command — Reticle never infers an identity from a git remote, an email in git
|
|
1124
|
-
* config, or anything else.
|
|
1277
|
+
* config, or anything else. The command that sent it was removed; the kind stays in the
|
|
1278
|
+
* vocabulary because older installs still send it.
|
|
1125
1279
|
*/
|
|
1126
1280
|
readonly IDENTIFIED: "identified";
|
|
1127
1281
|
/**
|
|
@@ -1169,6 +1323,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1169
1323
|
* that decides whether this is fixed.
|
|
1170
1324
|
*/
|
|
1171
1325
|
readonly MCP_CONNECTION_LOST: "mcp_connection_lost";
|
|
1326
|
+
/**
|
|
1327
|
+
* The MCP proxy process ended. The agent lost its tools until the client starts a new one.
|
|
1328
|
+
*
|
|
1329
|
+
* `mcp_connection_lost` cannot see this: the stream to the daemon can be healthy when the proxy
|
|
1330
|
+
* leaves. Sent even when the proxy has no other counts to report. See `ProxyExitSchema`.
|
|
1331
|
+
*/
|
|
1332
|
+
readonly MCP_PROXY_EXITED: "mcp_proxy_exited";
|
|
1333
|
+
/** A daemon start found the pidfile of a daemon that died without a clean stop. */
|
|
1334
|
+
readonly DAEMON_DIED_UNCLEAN: "daemon_died_unclean";
|
|
1335
|
+
/** The proxy found the daemon port held by a stranger or by another project, and did not use it. */
|
|
1336
|
+
readonly WAKE_REFUSED: "wake_refused";
|
|
1172
1337
|
/**
|
|
1173
1338
|
* `reticle init` finished. The onboarding funnel had no instrumentation at all, so a setup that
|
|
1174
1339
|
* failed on a missing dependency was indistinguishable from a user who never tried.
|
|
@@ -1199,6 +1364,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1199
1364
|
* This carries the fact at the moment it happens. See issue #172.
|
|
1200
1365
|
*/
|
|
1201
1366
|
readonly TOOL_REFUSED: "tool_refused";
|
|
1367
|
+
/** A HUD page (or the account menu) opened; deduped per tab. See telemetry-signals.ts. */
|
|
1368
|
+
readonly HUD_VIEWED: "hud_viewed";
|
|
1369
|
+
/** The HUD showed a sign-in or link prompt, once per surface per tab. */
|
|
1370
|
+
readonly HUD_SIGNIN_PROMPTED: "hud_signin_prompted";
|
|
1371
|
+
/** A project on this machine was linked to a workspace. */
|
|
1372
|
+
readonly PLATFORM_LINKED: "platform_linked";
|
|
1373
|
+
/** A Harness run started, or ended: one of each per run. */
|
|
1374
|
+
readonly HARNESS_RUN: "harness_run";
|
|
1202
1375
|
}>;
|
|
1203
1376
|
/** Client epoch-ms when the event happened (the server also stamps its own receive time). */
|
|
1204
1377
|
ts: z.ZodNumber;
|
|
@@ -1220,8 +1393,13 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1220
1393
|
readonly CONTAINER: "container";
|
|
1221
1394
|
/** A hosted dev environment declared itself (Codespaces, Gitpod, Cloud Shell, dev container). */
|
|
1222
1395
|
readonly HOSTED_WORKSPACE: "hosted_workspace";
|
|
1223
|
-
/**
|
|
1224
|
-
|
|
1396
|
+
/**
|
|
1397
|
+
* A CI vendor's own variable is set while `CI` is not (some runners and self-hosted agents omit it).
|
|
1398
|
+
* `no_tty` used to sit here and read true for every MCP stdio process, so it separated nothing.
|
|
1399
|
+
*/
|
|
1400
|
+
readonly CI_RUNNER: "ci_runner";
|
|
1401
|
+
/** A hosted coding-agent sandbox declared itself (a remote agent session, not a laptop). */
|
|
1402
|
+
readonly AGENT_SANDBOX: "agent_sandbox";
|
|
1225
1403
|
}>>;
|
|
1226
1404
|
/**
|
|
1227
1405
|
* What `projectId` was derived from. On EVERY event, not just the profile, because the core
|
|
@@ -1248,6 +1426,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1248
1426
|
* every time-of-day tile from "which continent" into "9am or 11pm".
|
|
1249
1427
|
*/
|
|
1250
1428
|
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
|
+
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
|
+
idEphemeral: z.ZodOptional<z.ZodBoolean>;
|
|
1251
1439
|
/** Only on `feedback`: the author-submitted report + its environment context. Never sent otherwise. */
|
|
1252
1440
|
feedback: z.ZodOptional<z.ZodObject<{
|
|
1253
1441
|
source: z.ZodNativeEnum<{
|
|
@@ -1291,10 +1479,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1291
1479
|
readonly USER: "user";
|
|
1292
1480
|
readonly PROJECT: "project";
|
|
1293
1481
|
}>>;
|
|
1482
|
+
contact: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1294
1483
|
}, "strip", z.ZodTypeAny, {
|
|
1295
1484
|
text: string;
|
|
1296
1485
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1297
|
-
source: "
|
|
1486
|
+
source: "agent" | "human";
|
|
1298
1487
|
impact?: string | undefined;
|
|
1299
1488
|
model?: string | undefined;
|
|
1300
1489
|
trace?: string | undefined;
|
|
@@ -1309,10 +1498,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1309
1498
|
driver?: "cdp" | "sdk" | undefined;
|
|
1310
1499
|
client?: string | undefined;
|
|
1311
1500
|
mcpScope?: "project" | "user" | undefined;
|
|
1501
|
+
contact?: string | undefined;
|
|
1312
1502
|
}, {
|
|
1313
1503
|
text: string;
|
|
1314
1504
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1315
|
-
source: "
|
|
1505
|
+
source: "agent" | "human";
|
|
1316
1506
|
impact?: string | undefined;
|
|
1317
1507
|
model?: string | undefined;
|
|
1318
1508
|
trace?: string | undefined;
|
|
@@ -1327,6 +1517,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1327
1517
|
driver?: "cdp" | "sdk" | undefined;
|
|
1328
1518
|
client?: string | undefined;
|
|
1329
1519
|
mcpScope?: "project" | "user" | undefined;
|
|
1520
|
+
contact?: string | undefined;
|
|
1330
1521
|
}>>;
|
|
1331
1522
|
/** Human or agent. Absent on events that are neither (a crash, a version change). */
|
|
1332
1523
|
actor: z.ZodOptional<z.ZodNativeEnum<{
|
|
@@ -1445,12 +1636,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1445
1636
|
surface: z.ZodOptional<z.ZodString>;
|
|
1446
1637
|
appConnects: z.ZodOptional<z.ZodNumber>;
|
|
1447
1638
|
msToFirstApp: z.ZodOptional<z.ZodNumber>;
|
|
1639
|
+
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
1640
|
+
toolCallsBeforeApp: z.ZodOptional<z.ZodNumber>;
|
|
1448
1641
|
endReason: z.ZodOptional<z.ZodEnum<["never_used", "explored", "abandoned", "verified", "client_left"]>>;
|
|
1449
1642
|
feedbackPrompted: z.ZodOptional<z.ZodNumber>;
|
|
1450
1643
|
errorClasses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1451
1644
|
errorsRecovered: z.ZodOptional<z.ZodNumber>;
|
|
1452
1645
|
errorsRepeated: z.ZodOptional<z.ZodNumber>;
|
|
1453
1646
|
endedWithVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
1647
|
+
lifetimeToolCalls: z.ZodOptional<z.ZodNumber>;
|
|
1648
|
+
lifetimeVerifications: z.ZodOptional<z.ZodNumber>;
|
|
1649
|
+
lifetimeBugsFound: z.ZodOptional<z.ZodNumber>;
|
|
1454
1650
|
updateNudged: z.ZodOptional<z.ZodBoolean>;
|
|
1455
1651
|
updateOffered: z.ZodOptional<z.ZodString>;
|
|
1456
1652
|
hudControls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
@@ -1459,6 +1655,19 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1459
1655
|
hudSlides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1460
1656
|
hudJourney: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1461
1657
|
hudJourneyCut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1658
|
+
nudgesShown: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<{
|
|
1659
|
+
readonly CONNECT: "connect";
|
|
1660
|
+
readonly CLOSE_GAPS: "close_gaps";
|
|
1661
|
+
readonly SWITCH_ON: "switch_on";
|
|
1662
|
+
readonly EXPLORE: "explore";
|
|
1663
|
+
}>, z.ZodNumber>>;
|
|
1664
|
+
harnessRefusedCoverage: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<{
|
|
1665
|
+
readonly B0: "0-19";
|
|
1666
|
+
readonly B20: "20-39";
|
|
1667
|
+
readonly B40: "40-59";
|
|
1668
|
+
readonly B60: "60-79";
|
|
1669
|
+
readonly B80: "80-100";
|
|
1670
|
+
}>, z.ZodNumber>>;
|
|
1462
1671
|
final: z.ZodBoolean;
|
|
1463
1672
|
exit: z.ZodOptional<z.ZodEnum<["idle", "signal", "unknown"]>>;
|
|
1464
1673
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1469,6 +1678,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1469
1678
|
verifications: number;
|
|
1470
1679
|
final: boolean;
|
|
1471
1680
|
surface?: string | undefined;
|
|
1681
|
+
sdkVersion?: string | undefined;
|
|
1472
1682
|
errors?: {
|
|
1473
1683
|
message: string;
|
|
1474
1684
|
count: number;
|
|
@@ -1517,12 +1727,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1517
1727
|
clientVersions?: Record<string, string> | undefined;
|
|
1518
1728
|
appConnects?: number | undefined;
|
|
1519
1729
|
msToFirstApp?: number | undefined;
|
|
1730
|
+
toolCallsBeforeApp?: number | undefined;
|
|
1520
1731
|
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
1521
1732
|
feedbackPrompted?: number | undefined;
|
|
1522
1733
|
errorClasses?: Record<string, number> | undefined;
|
|
1523
1734
|
errorsRecovered?: number | undefined;
|
|
1524
1735
|
errorsRepeated?: number | undefined;
|
|
1525
1736
|
endedWithVerdict?: boolean | undefined;
|
|
1737
|
+
lifetimeToolCalls?: number | undefined;
|
|
1738
|
+
lifetimeVerifications?: number | undefined;
|
|
1739
|
+
lifetimeBugsFound?: number | undefined;
|
|
1526
1740
|
updateNudged?: boolean | undefined;
|
|
1527
1741
|
updateOffered?: string | undefined;
|
|
1528
1742
|
hudControls?: Record<string, number> | undefined;
|
|
@@ -1531,6 +1745,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1531
1745
|
hudSlides?: Record<string, number> | undefined;
|
|
1532
1746
|
hudJourney?: string[] | undefined;
|
|
1533
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;
|
|
1534
1750
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1535
1751
|
}, {
|
|
1536
1752
|
durationMs: number;
|
|
@@ -1540,6 +1756,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1540
1756
|
verifications: number;
|
|
1541
1757
|
final: boolean;
|
|
1542
1758
|
surface?: string | undefined;
|
|
1759
|
+
sdkVersion?: string | undefined;
|
|
1543
1760
|
errors?: {
|
|
1544
1761
|
message: string;
|
|
1545
1762
|
count: number;
|
|
@@ -1588,12 +1805,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1588
1805
|
clientVersions?: Record<string, string> | undefined;
|
|
1589
1806
|
appConnects?: number | undefined;
|
|
1590
1807
|
msToFirstApp?: number | undefined;
|
|
1808
|
+
toolCallsBeforeApp?: number | undefined;
|
|
1591
1809
|
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
1592
1810
|
feedbackPrompted?: number | undefined;
|
|
1593
1811
|
errorClasses?: Record<string, number> | undefined;
|
|
1594
1812
|
errorsRecovered?: number | undefined;
|
|
1595
1813
|
errorsRepeated?: number | undefined;
|
|
1596
1814
|
endedWithVerdict?: boolean | undefined;
|
|
1815
|
+
lifetimeToolCalls?: number | undefined;
|
|
1816
|
+
lifetimeVerifications?: number | undefined;
|
|
1817
|
+
lifetimeBugsFound?: number | undefined;
|
|
1597
1818
|
updateNudged?: boolean | undefined;
|
|
1598
1819
|
updateOffered?: string | undefined;
|
|
1599
1820
|
hudControls?: Record<string, number> | undefined;
|
|
@@ -1602,6 +1823,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1602
1823
|
hudSlides?: Record<string, number> | undefined;
|
|
1603
1824
|
hudJourney?: string[] | undefined;
|
|
1604
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;
|
|
1605
1828
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1606
1829
|
}>>;
|
|
1607
1830
|
/** Only on `project_profiled`: the shape and depth-of-use of the project. */
|
|
@@ -1661,7 +1884,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1661
1884
|
featureDepth: number;
|
|
1662
1885
|
stack?: string | undefined;
|
|
1663
1886
|
stackMajor?: number | undefined;
|
|
1664
|
-
size?: "
|
|
1887
|
+
size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
|
|
1665
1888
|
stackSource?: "cwd" | "workspace" | undefined;
|
|
1666
1889
|
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
1667
1890
|
monorepo?: boolean | undefined;
|
|
@@ -1681,7 +1904,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1681
1904
|
featureDepth: number;
|
|
1682
1905
|
stack?: string | undefined;
|
|
1683
1906
|
stackMajor?: number | undefined;
|
|
1684
|
-
size?: "
|
|
1907
|
+
size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
|
|
1685
1908
|
stackSource?: "cwd" | "workspace" | undefined;
|
|
1686
1909
|
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
1687
1910
|
monorepo?: boolean | undefined;
|
|
@@ -1799,27 +2022,31 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1799
2022
|
/** A model inside the daemon drove this, on the user's behalf. */
|
|
1800
2023
|
readonly HARNESS: "harness";
|
|
1801
2024
|
}>>;
|
|
2025
|
+
/** The page SDK version from its HELLO: our own release number, or `other`. Absent if unsaid. */
|
|
2026
|
+
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
1802
2027
|
}, "strip", z.ZodTypeAny, {
|
|
1803
|
-
passed: boolean;
|
|
1804
2028
|
verified: string;
|
|
2029
|
+
passed: boolean;
|
|
1805
2030
|
via: string;
|
|
1806
2031
|
falseGreenCaught: boolean;
|
|
1807
|
-
durationMs?: number | undefined;
|
|
1808
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;
|
|
1809
2036
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1810
2037
|
driven?: "harness" | undefined;
|
|
1811
|
-
browser?: string | undefined;
|
|
1812
2038
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
1813
2039
|
}, {
|
|
1814
|
-
passed: boolean;
|
|
1815
2040
|
verified: string;
|
|
2041
|
+
passed: boolean;
|
|
1816
2042
|
via: string;
|
|
1817
2043
|
falseGreenCaught: boolean;
|
|
1818
|
-
durationMs?: number | undefined;
|
|
1819
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;
|
|
1820
2048
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1821
2049
|
driven?: "harness" | undefined;
|
|
1822
|
-
browser?: string | undefined;
|
|
1823
2050
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
1824
2051
|
}>>;
|
|
1825
2052
|
/** Only on `version_changed`. */
|
|
@@ -2035,14 +2262,18 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2035
2262
|
* OPTIONAL because an older sender has none. Absent means not measured, never `false`.
|
|
2036
2263
|
*/
|
|
2037
2264
|
appConnected: z.ZodOptional<z.ZodBoolean>;
|
|
2265
|
+
/** The id of the proxy process that attached. Its outages carry the same id. */
|
|
2266
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
2038
2267
|
}, "strip", z.ZodTypeAny, {
|
|
2039
2268
|
reconnect: boolean;
|
|
2040
2269
|
daemonAgeMs: number;
|
|
2270
|
+
proxyId?: string | undefined;
|
|
2041
2271
|
client?: string | undefined;
|
|
2042
2272
|
appConnected?: boolean | undefined;
|
|
2043
2273
|
}, {
|
|
2044
2274
|
reconnect: boolean;
|
|
2045
2275
|
daemonAgeMs: number;
|
|
2276
|
+
proxyId?: string | undefined;
|
|
2046
2277
|
client?: string | undefined;
|
|
2047
2278
|
appConnected?: boolean | undefined;
|
|
2048
2279
|
}>>;
|
|
@@ -2085,18 +2316,45 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2085
2316
|
*/
|
|
2086
2317
|
readonly NO_PAGE: "no_page";
|
|
2087
2318
|
}>>;
|
|
2319
|
+
/** Only with `reason` `dev_server` or `app_connection`: the step it stopped at. */
|
|
2320
|
+
stop: z.ZodOptional<z.ZodNativeEnum<{
|
|
2321
|
+
/** The project names no dev, start or serve script, and no `--url` was given. */
|
|
2322
|
+
readonly NO_DEV_COMMAND: "no_dev_command";
|
|
2323
|
+
/** Something answers on one loopback address and not the other, on the dev port. */
|
|
2324
|
+
readonly SPLIT_LOOPBACK: "split_loopback";
|
|
2325
|
+
/** The dev server said that its port is in use. */
|
|
2326
|
+
readonly PORT_BUSY: "port_busy";
|
|
2327
|
+
/** The dev server exited and nothing serves. */
|
|
2328
|
+
readonly DEV_SERVER_EXITED: "dev_server_exited";
|
|
2329
|
+
/** The dev server printed no URL and bound no port in the budget. */
|
|
2330
|
+
readonly NO_URL: "no_url";
|
|
2331
|
+
/** The dev server announced a URL that did not become ready in the budget. */
|
|
2332
|
+
readonly NOT_READY: "not_ready";
|
|
2333
|
+
/** Nothing answered the app URL when the connect wait ended. */
|
|
2334
|
+
readonly PAGE_NOT_SERVED: "page_not_served";
|
|
2335
|
+
/** The app URL refused the TLS handshake. */
|
|
2336
|
+
readonly PAGE_TLS_REFUSED: "page_tls_refused";
|
|
2337
|
+
/** The page answered, and its HTML does not load the SDK. */
|
|
2338
|
+
readonly SDK_MISSING: "sdk_missing";
|
|
2339
|
+
/** The page answered and no session dialled the daemon. */
|
|
2340
|
+
readonly NO_SESSION: "no_session";
|
|
2341
|
+
/** A desktop app never dialled the daemon. */
|
|
2342
|
+
readonly DESKTOP_NO_SESSION: "desktop_no_session";
|
|
2343
|
+
}>>;
|
|
2088
2344
|
}, "strip", z.ZodTypeAny, {
|
|
2089
2345
|
ok: boolean;
|
|
2090
2346
|
reason?: string | undefined;
|
|
2091
2347
|
stack?: string | undefined;
|
|
2092
2348
|
mcpRegistered?: boolean | undefined;
|
|
2093
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;
|
|
2094
2351
|
}, {
|
|
2095
2352
|
ok: boolean;
|
|
2096
2353
|
reason?: string | undefined;
|
|
2097
2354
|
stack?: string | undefined;
|
|
2098
2355
|
mcpRegistered?: boolean | undefined;
|
|
2099
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;
|
|
2100
2358
|
}>>;
|
|
2101
2359
|
/** Only on `onboarding_step`: one step of install / onboard / first run. */
|
|
2102
2360
|
onboarding: z.ZodOptional<z.ZodObject<{
|
|
@@ -2117,6 +2375,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2117
2375
|
reason: z.ZodOptional<z.ZodString>;
|
|
2118
2376
|
stack: z.ZodOptional<z.ZodString>;
|
|
2119
2377
|
unattended: z.ZodOptional<z.ZodBoolean>;
|
|
2378
|
+
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
2379
|
+
offered: z.ZodOptional<z.ZodNativeEnum<{
|
|
2380
|
+
readonly LEASE: "lease";
|
|
2381
|
+
readonly INIT_CONSENT: "init_consent";
|
|
2382
|
+
}>>;
|
|
2383
|
+
nextFollowed: z.ZodOptional<z.ZodBoolean>;
|
|
2120
2384
|
}, "strip", z.ZodTypeAny, {
|
|
2121
2385
|
step: string;
|
|
2122
2386
|
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
@@ -2125,6 +2389,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2125
2389
|
stack?: string | undefined;
|
|
2126
2390
|
elapsedMs?: number | undefined;
|
|
2127
2391
|
unattended?: boolean | undefined;
|
|
2392
|
+
firstEver?: boolean | undefined;
|
|
2393
|
+
offered?: "lease" | "init_consent" | undefined;
|
|
2394
|
+
nextFollowed?: boolean | undefined;
|
|
2128
2395
|
}, {
|
|
2129
2396
|
step: string;
|
|
2130
2397
|
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
@@ -2133,105 +2400,48 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2133
2400
|
stack?: string | undefined;
|
|
2134
2401
|
elapsedMs?: number | undefined;
|
|
2135
2402
|
unattended?: boolean | undefined;
|
|
2403
|
+
firstEver?: boolean | undefined;
|
|
2404
|
+
offered?: "lease" | "init_consent" | undefined;
|
|
2405
|
+
nextFollowed?: boolean | undefined;
|
|
2136
2406
|
}>>;
|
|
2137
2407
|
/** Only on `bug_found`. */
|
|
2138
2408
|
bug: z.ZodOptional<z.ZodObject<{
|
|
2139
2409
|
source: z.ZodNativeEnum<{
|
|
2140
|
-
/** Channels disagreed — the false green. A passing screen sitting on a failed write. */
|
|
2141
2410
|
readonly CONTRADICTION: "contradiction";
|
|
2142
|
-
/** `reticle_crawl` found it autonomously, with nobody writing a test. */
|
|
2143
2411
|
readonly CRAWL: "crawl";
|
|
2144
|
-
/** A saved flow that used to pass stopped passing — a regression. */
|
|
2145
2412
|
readonly REPLAY: "replay";
|
|
2146
|
-
/** An assertion the agent declared did not hold. */
|
|
2147
2413
|
readonly ASSERTION: "assertion";
|
|
2148
2414
|
}>;
|
|
2149
|
-
/** The classified kind from Reticle's own findings vocabulary. */
|
|
2150
2415
|
kind: z.ZodString;
|
|
2151
|
-
/**
|
|
2152
|
-
* True when the defect PRESENTED AS SUCCESS — the screen advanced, the assertion passed, the click
|
|
2153
|
-
* looked fine — while another channel showed it had not.
|
|
2154
|
-
*
|
|
2155
|
-
* Defined by the presentation rather than by "an assertion passed", because the same defect arrives
|
|
2156
|
-
* both ways: through `reticle_assert` there IS a passing assertion to contradict, and through
|
|
2157
|
-
* `reticle_crawl` there is no assertion at all and the UI simply moved on over a failed write. Both
|
|
2158
|
-
* are the thing a human watching the screen cannot see, and that is what the flag has to mean if
|
|
2159
|
-
* the number is going to be published.
|
|
2160
|
-
*
|
|
2161
|
-
* The subset worth naming separately, because it is the only category Reticle can claim as uniquely
|
|
2162
|
-
* its own: every other kind of bug is findable by a careful human or an ordinary test.
|
|
2163
|
-
*/
|
|
2164
2416
|
falseGreen: z.ZodBoolean;
|
|
2165
|
-
/** Which tool surfaced it. */
|
|
2166
2417
|
tool: z.ZodOptional<z.ZodString>;
|
|
2167
|
-
/**
|
|
2168
|
-
* TRUE when this KIND was already reported in this session — i.e. this is another INSTANCE of a
|
|
2169
|
-
* defect already counted, not another defect.
|
|
2170
|
-
*
|
|
2171
|
-
* Both numbers are claims, and they are different ones. "Reticle found N defects" is the headline;
|
|
2172
|
-
* "users hit them M times" is the frequency that says which ones actually cost anybody anything.
|
|
2173
|
-
* Without this flag the event stream answers only the second while looking like it answers the
|
|
2174
|
-
* first, so any distinct-defect count read off it is silently inflated — the exact way a published
|
|
2175
|
-
* number goes wrong. Count `repeat: false` for distinct, count everything for instances.
|
|
2176
|
-
*
|
|
2177
|
-
* Scoped to the SESSION, because that is the only identity available: the payload deliberately
|
|
2178
|
-
* carries no selector, URL or app detail, so the same defect in two sessions cannot be recognised
|
|
2179
|
-
* as one — and must not be, since that would need data this event refuses to collect.
|
|
2180
|
-
*/
|
|
2181
2418
|
repeat: z.ZodBoolean;
|
|
2182
|
-
/**
|
|
2183
|
-
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
2184
|
-
*
|
|
2185
|
-
* Absence and "the evidence could not say" are different facts, and only one of them is a
|
|
2186
|
-
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
2187
|
-
* `BugAttribution` for why `app` needs positive evidence.
|
|
2188
|
-
*/
|
|
2189
2419
|
attribution: z.ZodNativeEnum<{
|
|
2190
|
-
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
2191
2420
|
readonly APP: "app";
|
|
2192
|
-
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
2193
2421
|
readonly REQUEST: "request";
|
|
2194
|
-
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
2195
2422
|
readonly RETICLE: "reticle";
|
|
2196
|
-
/**
|
|
2197
|
-
* The classifier looked and the evidence could not say.
|
|
2198
|
-
*
|
|
2199
|
-
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
2200
|
-
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
2201
|
-
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
2202
|
-
* Exclude it from a defect count; never fold it into `app`.
|
|
2203
|
-
*/
|
|
2204
2423
|
readonly UNCLASSIFIED: "unclassified";
|
|
2205
2424
|
}>;
|
|
2206
|
-
/**
|
|
2207
|
-
* A stable hash identifying THIS defect across sessions — same kind at the same route = same
|
|
2208
|
-
* fingerprint, regardless of when or where it was found.
|
|
2209
|
-
*
|
|
2210
|
-
* The inputs (route, selector) never travel raw — only the 8-char hex hash does, following the
|
|
2211
|
-
* same privacy pattern as `projectId`. The analytics side groups on it to answer "was this bug
|
|
2212
|
-
* fixed?" (the fingerprint stops appearing) and to deduplicate the same defect found by parallel
|
|
2213
|
-
* agents in one run.
|
|
2214
|
-
*
|
|
2215
|
-
* OPTIONAL because old senders and the `reticle verify` CLI path do not yet compute it. Absent
|
|
2216
|
-
* means "not fingerprinted", never "a different defect from one that has a fingerprint".
|
|
2217
|
-
*/
|
|
2218
2425
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
2426
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
2219
2427
|
}, "strip", z.ZodTypeAny, {
|
|
2428
|
+
repeat: boolean;
|
|
2220
2429
|
kind: string;
|
|
2221
|
-
source: "replay" | "
|
|
2222
|
-
attribution: "
|
|
2430
|
+
source: "replay" | "assertion" | "contradiction" | "crawl";
|
|
2431
|
+
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
2223
2432
|
falseGreen: boolean;
|
|
2224
|
-
repeat: boolean;
|
|
2225
2433
|
tool?: string | undefined;
|
|
2226
2434
|
fingerprint?: string | undefined;
|
|
2435
|
+
occurrence?: number | undefined;
|
|
2227
2436
|
}, {
|
|
2437
|
+
repeat: boolean;
|
|
2228
2438
|
kind: string;
|
|
2229
|
-
source: "replay" | "
|
|
2230
|
-
attribution: "
|
|
2439
|
+
source: "replay" | "assertion" | "contradiction" | "crawl";
|
|
2440
|
+
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
2231
2441
|
falseGreen: boolean;
|
|
2232
|
-
repeat: boolean;
|
|
2233
2442
|
tool?: string | undefined;
|
|
2234
2443
|
fingerprint?: string | undefined;
|
|
2444
|
+
occurrence?: number | undefined;
|
|
2235
2445
|
}>>;
|
|
2236
2446
|
/** Only on `tool_refused`: which tool, why, and whether the agent tried the same thing again. */
|
|
2237
2447
|
refusal: z.ZodOptional<z.ZodObject<{
|
|
@@ -2305,6 +2515,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2305
2515
|
readonly SSE_CLOSED: "sse_closed";
|
|
2306
2516
|
/** A reconnect attempt could not reach the daemon at all. */
|
|
2307
2517
|
readonly CONNECT_ERROR: "connect_error";
|
|
2518
|
+
/**
|
|
2519
|
+
* A stream that was already serving was reset. The request saw the error before the response
|
|
2520
|
+
* closed, so this used to read as `connect_error`, which says the daemon was never reached.
|
|
2521
|
+
*/
|
|
2522
|
+
readonly SSE_RESET: "sse_reset";
|
|
2308
2523
|
/** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
|
|
2309
2524
|
readonly OTHER: "other";
|
|
2310
2525
|
}>;
|
|
@@ -2322,16 +2537,34 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2322
2537
|
* worth driving down.
|
|
2323
2538
|
*/
|
|
2324
2539
|
pendingLost: z.ZodOptional<z.ZodNumber>;
|
|
2540
|
+
/** The socket error code behind the drop, when the drop came with one. */
|
|
2541
|
+
errCode: z.ZodOptional<z.ZodNativeEnum<{
|
|
2542
|
+
readonly ECONNRESET: "ECONNRESET";
|
|
2543
|
+
readonly ECONNREFUSED: "ECONNREFUSED";
|
|
2544
|
+
readonly EPIPE: "EPIPE";
|
|
2545
|
+
readonly ETIMEDOUT: "ETIMEDOUT";
|
|
2546
|
+
readonly OTHER: "other";
|
|
2547
|
+
}>>;
|
|
2548
|
+
/** The stream got a response before it failed: a live stream dropped, not a refused connect. */
|
|
2549
|
+
responded: z.ZodOptional<z.ZodBoolean>;
|
|
2550
|
+
/** The proxy process. It joins `mcp_client_connected`, which carries the daemon's `sessionId`. */
|
|
2551
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
2325
2552
|
}, "strip", z.ZodTypeAny, {
|
|
2326
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
2553
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
2327
2554
|
attempts: number;
|
|
2328
2555
|
stage: "first" | "budget_spent" | "recovered";
|
|
2556
|
+
proxyId?: string | undefined;
|
|
2329
2557
|
pendingLost?: number | undefined;
|
|
2558
|
+
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
2559
|
+
responded?: boolean | undefined;
|
|
2330
2560
|
}, {
|
|
2331
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
2561
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
2332
2562
|
attempts: number;
|
|
2333
2563
|
stage: "first" | "budget_spent" | "recovered";
|
|
2564
|
+
proxyId?: string | undefined;
|
|
2334
2565
|
pendingLost?: number | undefined;
|
|
2566
|
+
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
2567
|
+
responded?: boolean | undefined;
|
|
2335
2568
|
}>>;
|
|
2336
2569
|
/** Only on `app_instrumented`: the install's second half finally happening. */
|
|
2337
2570
|
instrumentation: z.ZodOptional<z.ZodObject<{
|
|
@@ -2341,14 +2574,18 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2341
2574
|
agentAttached: z.ZodBoolean;
|
|
2342
2575
|
/** How long the daemon had been up. Large values mean Reticle sat there with nothing wired. */
|
|
2343
2576
|
msToFirstApp: z.ZodNumber;
|
|
2577
|
+
/** The first app ever on this machine + project, not just this run. Absent otherwise. */
|
|
2578
|
+
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
2344
2579
|
}, "strip", z.ZodTypeAny, {
|
|
2345
2580
|
msToFirstApp: number;
|
|
2346
2581
|
initialized: boolean;
|
|
2347
2582
|
agentAttached: boolean;
|
|
2583
|
+
firstEver?: boolean | undefined;
|
|
2348
2584
|
}, {
|
|
2349
2585
|
msToFirstApp: number;
|
|
2350
2586
|
initialized: boolean;
|
|
2351
2587
|
agentAttached: boolean;
|
|
2588
|
+
firstEver?: boolean | undefined;
|
|
2352
2589
|
}>>;
|
|
2353
2590
|
/**
|
|
2354
2591
|
* Only on `reticle_installed` / `init_completed`: which published route brought this install in.
|
|
@@ -2363,10 +2600,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2363
2600
|
readonly NPX_SKILL: "npx_skill";
|
|
2364
2601
|
/** The Claude Code plugin, which sets the marker in the `env` of the MCP server it registers. */
|
|
2365
2602
|
readonly PLUGIN: "plugin";
|
|
2603
|
+
/** The one-line installer (install.sh / install.ps1), which declares itself on `setup install`. */
|
|
2604
|
+
readonly INSTALL_SCRIPT: "install_script";
|
|
2366
2605
|
/** docs.reticle.sh, whose install snippets carry the marker. */
|
|
2367
2606
|
readonly DOCS_SITE: "docs_site";
|
|
2368
2607
|
/** The repository README's install snippet. */
|
|
2369
2608
|
readonly README: "readme";
|
|
2609
|
+
/** reticle.sh/blog, whose posts' install snippets carry the marker. */
|
|
2610
|
+
readonly BLOG: "blog";
|
|
2370
2611
|
/** Somebody typed the command with no channel in front of it. Only ever self-declared. */
|
|
2371
2612
|
readonly CLI_DIRECT: "cli_direct";
|
|
2372
2613
|
/** No marker, or one this list does not name. The honest answer, and expected to dominate. */
|
|
@@ -2409,17 +2650,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2409
2650
|
*/
|
|
2410
2651
|
licenseKeyPresent: z.ZodOptional<z.ZodBoolean>;
|
|
2411
2652
|
}, "strip", z.ZodTypeAny, {
|
|
2412
|
-
|
|
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";
|
|
2413
2655
|
ci: boolean;
|
|
2414
2656
|
version: string;
|
|
2415
|
-
v: 3;
|
|
2416
2657
|
anonymousId: string;
|
|
2417
2658
|
ts: number;
|
|
2418
2659
|
os: string;
|
|
2660
|
+
link?: {
|
|
2661
|
+
via: "link" | "hud" | "connect";
|
|
2662
|
+
} | undefined;
|
|
2419
2663
|
feedback?: {
|
|
2420
2664
|
text: string;
|
|
2421
2665
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2422
|
-
source: "
|
|
2666
|
+
source: "agent" | "human";
|
|
2423
2667
|
impact?: string | undefined;
|
|
2424
2668
|
model?: string | undefined;
|
|
2425
2669
|
trace?: string | undefined;
|
|
@@ -2434,8 +2678,18 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2434
2678
|
driver?: "cdp" | "sdk" | undefined;
|
|
2435
2679
|
client?: string | undefined;
|
|
2436
2680
|
mcpScope?: "project" | "user" | undefined;
|
|
2681
|
+
contact?: string | undefined;
|
|
2437
2682
|
} | undefined;
|
|
2438
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;
|
|
2439
2693
|
project?: {
|
|
2440
2694
|
git: "none" | "local_only" | "remote";
|
|
2441
2695
|
flowCount: number;
|
|
@@ -2448,7 +2702,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2448
2702
|
featureDepth: number;
|
|
2449
2703
|
stack?: string | undefined;
|
|
2450
2704
|
stackMajor?: number | undefined;
|
|
2451
|
-
size?: "
|
|
2705
|
+
size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
|
|
2452
2706
|
stackSource?: "cwd" | "workspace" | undefined;
|
|
2453
2707
|
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
2454
2708
|
monorepo?: boolean | undefined;
|
|
@@ -2459,15 +2713,29 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2459
2713
|
} | undefined;
|
|
2460
2714
|
projectId?: string | undefined;
|
|
2461
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;
|
|
2462
2728
|
bug?: {
|
|
2729
|
+
repeat: boolean;
|
|
2463
2730
|
kind: string;
|
|
2464
|
-
source: "replay" | "
|
|
2465
|
-
attribution: "
|
|
2731
|
+
source: "replay" | "assertion" | "contradiction" | "crawl";
|
|
2732
|
+
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
2466
2733
|
falseGreen: boolean;
|
|
2467
|
-
repeat: boolean;
|
|
2468
2734
|
tool?: string | undefined;
|
|
2469
2735
|
fingerprint?: string | undefined;
|
|
2736
|
+
occurrence?: number | undefined;
|
|
2470
2737
|
} | undefined;
|
|
2738
|
+
client?: "other" | "claude_code" | "claude_desktop" | "codex" | "cursor" | "gemini_cli" | "antigravity" | "windsurf" | "cline" | "opencode" | "zed" | "vscode" | undefined;
|
|
2471
2739
|
session?: {
|
|
2472
2740
|
durationMs: number;
|
|
2473
2741
|
toolCalls: number;
|
|
@@ -2476,6 +2744,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2476
2744
|
verifications: number;
|
|
2477
2745
|
final: boolean;
|
|
2478
2746
|
surface?: string | undefined;
|
|
2747
|
+
sdkVersion?: string | undefined;
|
|
2479
2748
|
errors?: {
|
|
2480
2749
|
message: string;
|
|
2481
2750
|
count: number;
|
|
@@ -2524,12 +2793,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2524
2793
|
clientVersions?: Record<string, string> | undefined;
|
|
2525
2794
|
appConnects?: number | undefined;
|
|
2526
2795
|
msToFirstApp?: number | undefined;
|
|
2796
|
+
toolCallsBeforeApp?: number | undefined;
|
|
2527
2797
|
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
2528
2798
|
feedbackPrompted?: number | undefined;
|
|
2529
2799
|
errorClasses?: Record<string, number> | undefined;
|
|
2530
2800
|
errorsRecovered?: number | undefined;
|
|
2531
2801
|
errorsRepeated?: number | undefined;
|
|
2532
2802
|
endedWithVerdict?: boolean | undefined;
|
|
2803
|
+
lifetimeToolCalls?: number | undefined;
|
|
2804
|
+
lifetimeVerifications?: number | undefined;
|
|
2805
|
+
lifetimeBugsFound?: number | undefined;
|
|
2533
2806
|
updateNudged?: boolean | undefined;
|
|
2534
2807
|
updateOffered?: string | undefined;
|
|
2535
2808
|
hudControls?: Record<string, number> | undefined;
|
|
@@ -2538,24 +2811,30 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2538
2811
|
hudSlides?: Record<string, number> | undefined;
|
|
2539
2812
|
hudJourney?: string[] | undefined;
|
|
2540
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;
|
|
2541
2816
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2542
2817
|
} | undefined;
|
|
2543
2818
|
licenseKeyPresent?: boolean | undefined;
|
|
2544
|
-
|
|
2819
|
+
linked?: boolean | undefined;
|
|
2820
|
+
automation?: "container" | "hosted_workspace" | "ci_runner" | "agent_sandbox" | undefined;
|
|
2545
2821
|
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2546
2822
|
tzOffsetMin?: number | undefined;
|
|
2547
|
-
|
|
2823
|
+
internal?: boolean | undefined;
|
|
2824
|
+
idEphemeral?: boolean | undefined;
|
|
2825
|
+
actor?: "agent" | "human" | undefined;
|
|
2548
2826
|
flags?: string[] | undefined;
|
|
2549
2827
|
verification?: {
|
|
2550
|
-
passed: boolean;
|
|
2551
2828
|
verified: string;
|
|
2829
|
+
passed: boolean;
|
|
2552
2830
|
via: string;
|
|
2553
2831
|
falseGreenCaught: boolean;
|
|
2554
|
-
durationMs?: number | undefined;
|
|
2555
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;
|
|
2556
2836
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2557
2837
|
driven?: "harness" | undefined;
|
|
2558
|
-
browser?: string | undefined;
|
|
2559
2838
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
2560
2839
|
} | undefined;
|
|
2561
2840
|
versionChange?: {
|
|
@@ -2596,6 +2875,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2596
2875
|
connection?: {
|
|
2597
2876
|
reconnect: boolean;
|
|
2598
2877
|
daemonAgeMs: number;
|
|
2878
|
+
proxyId?: string | undefined;
|
|
2599
2879
|
client?: string | undefined;
|
|
2600
2880
|
appConnected?: boolean | undefined;
|
|
2601
2881
|
} | undefined;
|
|
@@ -2605,6 +2885,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2605
2885
|
stack?: string | undefined;
|
|
2606
2886
|
mcpRegistered?: boolean | undefined;
|
|
2607
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;
|
|
2608
2889
|
} | undefined;
|
|
2609
2890
|
onboarding?: {
|
|
2610
2891
|
step: string;
|
|
@@ -2614,6 +2895,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2614
2895
|
stack?: string | undefined;
|
|
2615
2896
|
elapsedMs?: number | undefined;
|
|
2616
2897
|
unattended?: boolean | undefined;
|
|
2898
|
+
firstEver?: boolean | undefined;
|
|
2899
|
+
offered?: "lease" | "init_consent" | undefined;
|
|
2900
|
+
nextFollowed?: boolean | undefined;
|
|
2617
2901
|
} | undefined;
|
|
2618
2902
|
refusal?: {
|
|
2619
2903
|
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
@@ -2622,31 +2906,47 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2622
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;
|
|
2623
2907
|
} | undefined;
|
|
2624
2908
|
outage?: {
|
|
2625
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
2909
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
2626
2910
|
attempts: number;
|
|
2627
2911
|
stage: "first" | "budget_spent" | "recovered";
|
|
2912
|
+
proxyId?: string | undefined;
|
|
2628
2913
|
pendingLost?: number | undefined;
|
|
2914
|
+
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
2915
|
+
responded?: boolean | undefined;
|
|
2629
2916
|
} | undefined;
|
|
2630
|
-
|
|
2631
|
-
msToFirstApp: number;
|
|
2632
|
-
initialized: boolean;
|
|
2633
|
-
agentAttached: boolean;
|
|
2634
|
-
} | undefined;
|
|
2635
|
-
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "docs_site" | "readme" | "cli_direct" | undefined;
|
|
2917
|
+
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "blog" | "cli_direct" | undefined;
|
|
2636
2918
|
licenseId?: string | undefined;
|
|
2637
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;
|
|
2638
2935
|
}, {
|
|
2639
|
-
|
|
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";
|
|
2640
2938
|
ci: boolean;
|
|
2641
2939
|
version: string;
|
|
2642
|
-
v: 3;
|
|
2643
2940
|
anonymousId: string;
|
|
2644
2941
|
ts: number;
|
|
2645
2942
|
os: string;
|
|
2943
|
+
link?: {
|
|
2944
|
+
via: "link" | "hud" | "connect";
|
|
2945
|
+
} | undefined;
|
|
2646
2946
|
feedback?: {
|
|
2647
2947
|
text: string;
|
|
2648
2948
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2649
|
-
source: "
|
|
2949
|
+
source: "agent" | "human";
|
|
2650
2950
|
impact?: string | undefined;
|
|
2651
2951
|
model?: string | undefined;
|
|
2652
2952
|
trace?: string | undefined;
|
|
@@ -2661,8 +2961,18 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2661
2961
|
driver?: "cdp" | "sdk" | undefined;
|
|
2662
2962
|
client?: string | undefined;
|
|
2663
2963
|
mcpScope?: "project" | "user" | undefined;
|
|
2964
|
+
contact?: string | undefined;
|
|
2664
2965
|
} | undefined;
|
|
2665
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;
|
|
2666
2976
|
project?: {
|
|
2667
2977
|
git: "none" | "local_only" | "remote";
|
|
2668
2978
|
flowCount: number;
|
|
@@ -2675,7 +2985,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2675
2985
|
featureDepth: number;
|
|
2676
2986
|
stack?: string | undefined;
|
|
2677
2987
|
stackMajor?: number | undefined;
|
|
2678
|
-
size?: "
|
|
2988
|
+
size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
|
|
2679
2989
|
stackSource?: "cwd" | "workspace" | undefined;
|
|
2680
2990
|
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
2681
2991
|
monorepo?: boolean | undefined;
|
|
@@ -2686,15 +2996,29 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2686
2996
|
} | undefined;
|
|
2687
2997
|
projectId?: string | undefined;
|
|
2688
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;
|
|
2689
3011
|
bug?: {
|
|
3012
|
+
repeat: boolean;
|
|
2690
3013
|
kind: string;
|
|
2691
|
-
source: "replay" | "
|
|
2692
|
-
attribution: "
|
|
3014
|
+
source: "replay" | "assertion" | "contradiction" | "crawl";
|
|
3015
|
+
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
2693
3016
|
falseGreen: boolean;
|
|
2694
|
-
repeat: boolean;
|
|
2695
3017
|
tool?: string | undefined;
|
|
2696
3018
|
fingerprint?: string | undefined;
|
|
3019
|
+
occurrence?: number | undefined;
|
|
2697
3020
|
} | undefined;
|
|
3021
|
+
client?: "other" | "claude_code" | "claude_desktop" | "codex" | "cursor" | "gemini_cli" | "antigravity" | "windsurf" | "cline" | "opencode" | "zed" | "vscode" | undefined;
|
|
2698
3022
|
session?: {
|
|
2699
3023
|
durationMs: number;
|
|
2700
3024
|
toolCalls: number;
|
|
@@ -2703,6 +3027,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2703
3027
|
verifications: number;
|
|
2704
3028
|
final: boolean;
|
|
2705
3029
|
surface?: string | undefined;
|
|
3030
|
+
sdkVersion?: string | undefined;
|
|
2706
3031
|
errors?: {
|
|
2707
3032
|
message: string;
|
|
2708
3033
|
count: number;
|
|
@@ -2751,12 +3076,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2751
3076
|
clientVersions?: Record<string, string> | undefined;
|
|
2752
3077
|
appConnects?: number | undefined;
|
|
2753
3078
|
msToFirstApp?: number | undefined;
|
|
3079
|
+
toolCallsBeforeApp?: number | undefined;
|
|
2754
3080
|
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
2755
3081
|
feedbackPrompted?: number | undefined;
|
|
2756
3082
|
errorClasses?: Record<string, number> | undefined;
|
|
2757
3083
|
errorsRecovered?: number | undefined;
|
|
2758
3084
|
errorsRepeated?: number | undefined;
|
|
2759
3085
|
endedWithVerdict?: boolean | undefined;
|
|
3086
|
+
lifetimeToolCalls?: number | undefined;
|
|
3087
|
+
lifetimeVerifications?: number | undefined;
|
|
3088
|
+
lifetimeBugsFound?: number | undefined;
|
|
2760
3089
|
updateNudged?: boolean | undefined;
|
|
2761
3090
|
updateOffered?: string | undefined;
|
|
2762
3091
|
hudControls?: Record<string, number> | undefined;
|
|
@@ -2765,24 +3094,30 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2765
3094
|
hudSlides?: Record<string, number> | undefined;
|
|
2766
3095
|
hudJourney?: string[] | undefined;
|
|
2767
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;
|
|
2768
3099
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2769
3100
|
} | undefined;
|
|
2770
3101
|
licenseKeyPresent?: boolean | undefined;
|
|
2771
|
-
|
|
3102
|
+
linked?: boolean | undefined;
|
|
3103
|
+
automation?: "container" | "hosted_workspace" | "ci_runner" | "agent_sandbox" | undefined;
|
|
2772
3104
|
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2773
3105
|
tzOffsetMin?: number | undefined;
|
|
2774
|
-
|
|
3106
|
+
internal?: boolean | undefined;
|
|
3107
|
+
idEphemeral?: boolean | undefined;
|
|
3108
|
+
actor?: "agent" | "human" | undefined;
|
|
2775
3109
|
flags?: string[] | undefined;
|
|
2776
3110
|
verification?: {
|
|
2777
|
-
passed: boolean;
|
|
2778
3111
|
verified: string;
|
|
3112
|
+
passed: boolean;
|
|
2779
3113
|
via: string;
|
|
2780
3114
|
falseGreenCaught: boolean;
|
|
2781
|
-
durationMs?: number | undefined;
|
|
2782
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;
|
|
2783
3119
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2784
3120
|
driven?: "harness" | undefined;
|
|
2785
|
-
browser?: string | undefined;
|
|
2786
3121
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
2787
3122
|
} | undefined;
|
|
2788
3123
|
versionChange?: {
|
|
@@ -2823,6 +3158,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2823
3158
|
connection?: {
|
|
2824
3159
|
reconnect: boolean;
|
|
2825
3160
|
daemonAgeMs: number;
|
|
3161
|
+
proxyId?: string | undefined;
|
|
2826
3162
|
client?: string | undefined;
|
|
2827
3163
|
appConnected?: boolean | undefined;
|
|
2828
3164
|
} | undefined;
|
|
@@ -2832,6 +3168,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2832
3168
|
stack?: string | undefined;
|
|
2833
3169
|
mcpRegistered?: boolean | undefined;
|
|
2834
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;
|
|
2835
3172
|
} | undefined;
|
|
2836
3173
|
onboarding?: {
|
|
2837
3174
|
step: string;
|
|
@@ -2841,6 +3178,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2841
3178
|
stack?: string | undefined;
|
|
2842
3179
|
elapsedMs?: number | undefined;
|
|
2843
3180
|
unattended?: boolean | undefined;
|
|
3181
|
+
firstEver?: boolean | undefined;
|
|
3182
|
+
offered?: "lease" | "init_consent" | undefined;
|
|
3183
|
+
nextFollowed?: boolean | undefined;
|
|
2844
3184
|
} | undefined;
|
|
2845
3185
|
refusal?: {
|
|
2846
3186
|
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
@@ -2849,18 +3189,31 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2849
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;
|
|
2850
3190
|
} | undefined;
|
|
2851
3191
|
outage?: {
|
|
2852
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
3192
|
+
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error" | "sse_reset";
|
|
2853
3193
|
attempts: number;
|
|
2854
3194
|
stage: "first" | "budget_spent" | "recovered";
|
|
3195
|
+
proxyId?: string | undefined;
|
|
2855
3196
|
pendingLost?: number | undefined;
|
|
3197
|
+
errCode?: "other" | "ECONNRESET" | "ECONNREFUSED" | "EPIPE" | "ETIMEDOUT" | undefined;
|
|
3198
|
+
responded?: boolean | undefined;
|
|
2856
3199
|
} | undefined;
|
|
2857
|
-
|
|
2858
|
-
msToFirstApp: number;
|
|
2859
|
-
initialized: boolean;
|
|
2860
|
-
agentAttached: boolean;
|
|
2861
|
-
} | undefined;
|
|
2862
|
-
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "docs_site" | "readme" | "cli_direct" | undefined;
|
|
3200
|
+
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "blog" | "cli_direct" | undefined;
|
|
2863
3201
|
licenseId?: string | undefined;
|
|
2864
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;
|
|
2865
3218
|
}>;
|
|
2866
3219
|
export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;
|