@reticlehq/core 3.5.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/artifacts-entry.d.ts +4 -0
- package/dist/artifacts/artifacts-entry.js +4 -0
- package/dist/artifacts/drive-script.d.ts +1404 -0
- package/dist/artifacts/drive-script.js +220 -0
- package/dist/artifacts/flow-constants.d.ts +19 -0
- package/dist/artifacts/flow-constants.js +21 -0
- package/dist/artifacts/flow-results.d.ts +450 -0
- package/dist/artifacts/flow-results.js +1 -0
- package/dist/artifacts/flow-types.d.ts +75 -427
- package/dist/artifacts/flow-types.js +15 -2
- package/dist/artifacts/harness-credits.d.ts +39 -0
- package/dist/artifacts/harness-credits.js +69 -0
- package/dist/artifacts/harness-map.d.ts +98 -0
- package/dist/artifacts/harness-map.js +36 -0
- package/dist/artifacts/hud-notices.d.ts +134 -0
- package/dist/artifacts/hud-notices.js +124 -0
- package/dist/artifacts/impact.d.ts +489 -189
- package/dist/artifacts/impact.js +90 -47
- package/dist/artifacts/journal.d.ts +105 -5
- package/dist/artifacts/journal.js +41 -0
- package/dist/artifacts/prompt-context.d.ts +105 -0
- package/dist/artifacts/prompt-context.js +108 -0
- package/dist/artifacts/screenshot-upload.d.ts +51 -0
- package/dist/artifacts/screenshot-upload.js +26 -0
- package/dist/desktop-contract.cjs +1 -0
- package/dist/desktop-contract.d.cts +1 -0
- package/dist/hooks/hook-events.d.ts +4 -4
- package/dist/hud-entry.d.ts +2 -0
- package/dist/hud-entry.js +4 -0
- package/dist/identity/contract-fingerprint.d.ts +9 -0
- package/dist/identity/contract-fingerprint.js +12 -0
- package/dist/identity/testid-attribute.d.ts +18 -0
- package/dist/identity/testid-attribute.js +24 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +9 -1
- package/dist/onboarding.d.ts +10 -2
- package/dist/onboarding.js +6 -0
- package/dist/realm/registry.js +19 -1
- package/dist/schema/command-message.json +36 -0
- package/dist/schema/command-name.json +5 -1
- package/dist/schema/event-payloads.json +56 -2
- package/dist/schema/reticle-message.json +36 -0
- package/dist/telemetry-bug.d.ts +169 -0
- package/dist/telemetry-bug.js +123 -0
- package/dist/telemetry-entry.d.ts +1 -0
- package/dist/telemetry-entry.js +1 -0
- package/dist/telemetry-feedback.d.ts +2 -2
- package/dist/telemetry-refusal.d.ts +5 -4
- package/dist/telemetry-session.d.ts +79 -1
- package/dist/telemetry-session.js +57 -1
- package/dist/telemetry-signals.d.ts +339 -0
- package/dist/telemetry-signals.js +138 -0
- package/dist/telemetry.d.ts +330 -276
- package/dist/telemetry.js +40 -115
- package/dist/tour.d.ts +1 -0
- package/dist/tour.js +13 -5
- package/dist/verdict/consequence.d.ts +3 -0
- package/dist/verdict/disparity.d.ts +105 -0
- package/dist/verdict/disparity.js +40 -0
- package/dist/verdict/findings.d.ts +11 -0
- package/dist/verdict/findings.js +16 -0
- package/dist/verdict/instrumentation-coverage.d.ts +115 -0
- package/dist/verdict/instrumentation-coverage.js +226 -0
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +19 -5
- package/dist/verdict/intent.js +13 -1
- package/dist/verdict/predicate-tree.d.ts +15 -0
- package/dist/verdict/predicate-tree.js +21 -0
- package/dist/verdict/predicate.d.ts +28 -0
- package/dist/verdict/predicate.js +94 -15
- package/dist/verdict/security.d.ts +25 -0
- package/dist/verdict/security.js +82 -0
- package/dist/verdict/verdict-attribution.js +1 -0
- package/dist/verdict/verification-run.d.ts +638 -32
- package/dist/verdict/verification-run.js +90 -0
- package/dist/verdict/verified-constants.d.ts +19 -0
- package/dist/verdict/verified-constants.js +22 -0
- package/dist/wire/constants/constants.d.ts +60 -32
- package/dist/wire/constants/constants.js +61 -33
- package/dist/wire/constants/hud-controls.d.ts +1 -1
- package/dist/wire/constants/hud-controls.js +34 -1
- package/dist/wire/constants/hud-use.d.ts +89 -1
- package/dist/wire/constants/hud-use.js +62 -1
- package/dist/wire/constants/mcp-wire.d.ts +10 -0
- package/dist/wire/constants/mcp-wire.js +10 -0
- package/dist/wire/constants/reticle-chrome.d.ts +19 -0
- package/dist/wire/constants/reticle-chrome.js +19 -0
- package/dist/wire/constants/session-constants.d.ts +21 -0
- package/dist/wire/constants/session-constants.js +21 -0
- package/dist/wire/desktop-contract.d.ts +11 -0
- package/dist/wire/desktop-contract.js +14 -0
- package/dist/wire/event-payloads.d.ts +77 -4
- package/dist/wire/event-payloads.js +27 -0
- package/dist/wire/global-press.d.ts +34 -3
- package/dist/wire/global-press.js +91 -3
- package/dist/wire/hold.d.ts +14 -0
- package/dist/wire/hold.js +18 -0
- package/dist/wire/messages.d.ts +129 -32
- package/dist/wire/messages.js +17 -1
- package/dist/wire/platform-link.d.ts +238 -0
- package/dist/wire/platform-link.js +234 -0
- package/dist/wire/tool-names.d.ts +2 -0
- package/dist/wire/tool-names.js +2 -0
- package/dist/wire/types.d.ts +26 -6
- package/dist/wire/types.js +5 -0
- package/dist/words/no-session-reason.d.ts +7 -0
- package/dist/words/no-session-reason.js +7 -0
- package/dist/words/notices.d.ts +1 -1
- package/dist/words/notices.js +5 -3
- 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 +1 -1
package/dist/telemetry.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, Onboarding
|
|
|
21
21
|
* re-exported here so every `@reticlehq/core/telemetry` import reaches it.
|
|
22
22
|
*/
|
|
23
23
|
export { 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
|
/**
|
|
@@ -89,9 +90,10 @@ export declare const TelemetryEventKind: {
|
|
|
89
90
|
*/
|
|
90
91
|
readonly FEEDBACK_SUBMITTED: "feedback_submitted";
|
|
91
92
|
/**
|
|
92
|
-
* Somebody chose to say who they are. Like `feedback_submitted`, this
|
|
93
|
+
* Somebody chose to say who they are. Like `feedback_submitted`, this existed ONLY because a
|
|
93
94
|
* human ran a command — Reticle never infers an identity from a git remote, an email in git
|
|
94
|
-
* config, or anything else.
|
|
95
|
+
* config, or anything else. The command that sent it was removed; the kind stays in the
|
|
96
|
+
* vocabulary because older installs still send it.
|
|
95
97
|
*/
|
|
96
98
|
readonly IDENTIFIED: "identified";
|
|
97
99
|
/**
|
|
@@ -169,6 +171,14 @@ export declare const TelemetryEventKind: {
|
|
|
169
171
|
* This carries the fact at the moment it happens. See issue #172.
|
|
170
172
|
*/
|
|
171
173
|
readonly TOOL_REFUSED: "tool_refused";
|
|
174
|
+
/** A HUD page (or the account menu) opened; deduped per tab. See telemetry-signals.ts. */
|
|
175
|
+
readonly HUD_VIEWED: "hud_viewed";
|
|
176
|
+
/** The HUD showed a sign-in or link prompt, once per surface per tab. */
|
|
177
|
+
readonly HUD_SIGNIN_PROMPTED: "hud_signin_prompted";
|
|
178
|
+
/** A project on this machine was linked to a workspace. */
|
|
179
|
+
readonly PLATFORM_LINKED: "platform_linked";
|
|
180
|
+
/** A Harness run started, or ended: one of each per run. */
|
|
181
|
+
readonly HARNESS_RUN: "harness_run";
|
|
172
182
|
};
|
|
173
183
|
export type TelemetryEventKind = (typeof TelemetryEventKind)[keyof typeof TelemetryEventKind];
|
|
174
184
|
/** True when this event happened inside a daemon run, so a `sessionId` on it means something. */
|
|
@@ -314,6 +324,7 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
314
324
|
readonly ASSERTION_FAILED: "assertion_failed";
|
|
315
325
|
readonly CONTRADICTED: "contradicted";
|
|
316
326
|
readonly ALREADY_TRUE: "already_true";
|
|
327
|
+
readonly HIDDEN_MATCH: "hidden_match";
|
|
317
328
|
readonly UNCLEAN_CAPTURE: "unclean_capture";
|
|
318
329
|
readonly VACUOUS_GRADE: "vacuous_grade";
|
|
319
330
|
readonly NOTHING_DECLARED: "nothing_declared";
|
|
@@ -352,25 +363,25 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
352
363
|
}>>;
|
|
353
364
|
}, "strip", z.ZodTypeAny, {
|
|
354
365
|
verified: string;
|
|
355
|
-
via: string;
|
|
356
366
|
passed: boolean;
|
|
367
|
+
via: string;
|
|
357
368
|
falseGreenCaught: boolean;
|
|
369
|
+
browser?: string | undefined;
|
|
358
370
|
durationMs?: number | undefined;
|
|
359
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
371
|
+
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
360
372
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
361
373
|
driven?: "harness" | undefined;
|
|
362
|
-
browser?: string | undefined;
|
|
363
374
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
364
375
|
}, {
|
|
365
376
|
verified: string;
|
|
366
|
-
via: string;
|
|
367
377
|
passed: boolean;
|
|
378
|
+
via: string;
|
|
368
379
|
falseGreenCaught: boolean;
|
|
380
|
+
browser?: string | undefined;
|
|
369
381
|
durationMs?: number | undefined;
|
|
370
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
382
|
+
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
371
383
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
372
384
|
driven?: "harness" | undefined;
|
|
373
|
-
browser?: string | undefined;
|
|
374
385
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
375
386
|
}>;
|
|
376
387
|
export type Verification = z.infer<typeof VerificationSchema>;
|
|
@@ -515,6 +526,7 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
515
526
|
kind: string;
|
|
516
527
|
message?: string | undefined;
|
|
517
528
|
tool?: string | undefined;
|
|
529
|
+
frames?: string[] | undefined;
|
|
518
530
|
errorType?: string | undefined;
|
|
519
531
|
port?: "reticle" | "other" | undefined;
|
|
520
532
|
fingerprint?: string | undefined;
|
|
@@ -526,7 +538,6 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
526
538
|
load1x100: number;
|
|
527
539
|
cpuCount: number;
|
|
528
540
|
} | undefined;
|
|
529
|
-
frames?: string[] | undefined;
|
|
530
541
|
breadcrumb?: string[] | undefined;
|
|
531
542
|
nodeVersion?: string | undefined;
|
|
532
543
|
arch?: string | undefined;
|
|
@@ -538,6 +549,7 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
538
549
|
kind: string;
|
|
539
550
|
message?: string | undefined;
|
|
540
551
|
tool?: string | undefined;
|
|
552
|
+
frames?: string[] | undefined;
|
|
541
553
|
errorType?: string | undefined;
|
|
542
554
|
port?: "reticle" | "other" | undefined;
|
|
543
555
|
fingerprint?: string | undefined;
|
|
@@ -549,7 +561,6 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
549
561
|
load1x100: number;
|
|
550
562
|
cpuCount: number;
|
|
551
563
|
} | undefined;
|
|
552
|
-
frames?: string[] | undefined;
|
|
553
564
|
breadcrumb?: string[] | undefined;
|
|
554
565
|
nodeVersion?: string | undefined;
|
|
555
566
|
arch?: string | undefined;
|
|
@@ -559,161 +570,6 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
559
570
|
internalFrame?: string | undefined;
|
|
560
571
|
}>;
|
|
561
572
|
export type Crash = z.infer<typeof CrashSchema>;
|
|
562
|
-
/**
|
|
563
|
-
* How Reticle came to find a defect. Four routes, in descending order of "a human would have missed
|
|
564
|
-
* this": a contradiction is invisible to someone watching the screen, a crawl finding required no
|
|
565
|
-
* script at all, a replay failure is a regression on something that used to work, and a failed
|
|
566
|
-
* assertion is the agent's own check not holding.
|
|
567
|
-
*/
|
|
568
|
-
export declare const BugSource: {
|
|
569
|
-
/** Channels disagreed — the false green. A passing screen sitting on a failed write. */
|
|
570
|
-
readonly CONTRADICTION: "contradiction";
|
|
571
|
-
/** `reticle_crawl` found it autonomously, with nobody writing a test. */
|
|
572
|
-
readonly CRAWL: "crawl";
|
|
573
|
-
/** A saved flow that used to pass stopped passing — a regression. */
|
|
574
|
-
readonly REPLAY: "replay";
|
|
575
|
-
/** An assertion the agent declared did not hold. */
|
|
576
|
-
readonly ASSERTION: "assertion";
|
|
577
|
-
};
|
|
578
|
-
export type BugSource = (typeof BugSource)[keyof typeof BugSource];
|
|
579
|
-
/**
|
|
580
|
-
* WHOSE fault the defect was.
|
|
581
|
-
*
|
|
582
|
-
* `bugsFound` is not publishable without this, and a count confidently wrong about whose fault
|
|
583
|
-
* something is, is worse than no count: it points at the customer. Two rules keep it honest:
|
|
584
|
-
*
|
|
585
|
-
* 1. **Always present.** `UNCLASSIFIED` is a value, not a gap. Absence would mean an old sender or a
|
|
586
|
-
* path that forgot; a value means the classifier ran and declined.
|
|
587
|
-
* 2. **`APP` requires POSITIVE evidence** — something the app itself did: a request that came back
|
|
588
|
-
* failed, a signal the app fired carrying data that disagrees with its own screen, a written
|
|
589
|
-
* field echoed back changed. Never "nothing else explained it". Core already draws exactly this
|
|
590
|
-
* line for the verdict, in `ABSENCE_DERIVED_CONTRADICTIONS`, and that is the line reused rather
|
|
591
|
-
* than a second judgement invented beside it.
|
|
592
|
-
*/
|
|
593
|
-
export declare const BugAttribution: {
|
|
594
|
-
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
595
|
-
readonly APP: "app";
|
|
596
|
-
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
597
|
-
readonly REQUEST: "request";
|
|
598
|
-
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
599
|
-
readonly RETICLE: "reticle";
|
|
600
|
-
/**
|
|
601
|
-
* The classifier looked and the evidence could not say.
|
|
602
|
-
*
|
|
603
|
-
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
604
|
-
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
605
|
-
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
606
|
-
* Exclude it from a defect count; never fold it into `app`.
|
|
607
|
-
*/
|
|
608
|
-
readonly UNCLASSIFIED: "unclassified";
|
|
609
|
-
};
|
|
610
|
-
export type BugAttribution = (typeof BugAttribution)[keyof typeof BugAttribution];
|
|
611
|
-
/**
|
|
612
|
-
* One defect Reticle found in the app under test.
|
|
613
|
-
*
|
|
614
|
-
* `kind` is the taxonomy value from `findings.ts` — `signal-contradicted`, `console-error`,
|
|
615
|
-
* `duplicate-request` and so on. Never a selector, a URL, an element, or any description of the
|
|
616
|
-
* user's app — THAT a class of defect was found, never WHAT it was in.
|
|
617
|
-
*/
|
|
618
|
-
export declare const BugFoundSchema: z.ZodObject<{
|
|
619
|
-
source: z.ZodNativeEnum<{
|
|
620
|
-
/** Channels disagreed — the false green. A passing screen sitting on a failed write. */
|
|
621
|
-
readonly CONTRADICTION: "contradiction";
|
|
622
|
-
/** `reticle_crawl` found it autonomously, with nobody writing a test. */
|
|
623
|
-
readonly CRAWL: "crawl";
|
|
624
|
-
/** A saved flow that used to pass stopped passing — a regression. */
|
|
625
|
-
readonly REPLAY: "replay";
|
|
626
|
-
/** An assertion the agent declared did not hold. */
|
|
627
|
-
readonly ASSERTION: "assertion";
|
|
628
|
-
}>;
|
|
629
|
-
/** The classified kind from Reticle's own findings vocabulary. */
|
|
630
|
-
kind: z.ZodString;
|
|
631
|
-
/**
|
|
632
|
-
* True when the defect PRESENTED AS SUCCESS — the screen advanced, the assertion passed, the click
|
|
633
|
-
* looked fine — while another channel showed it had not.
|
|
634
|
-
*
|
|
635
|
-
* Defined by the presentation rather than by "an assertion passed", because the same defect arrives
|
|
636
|
-
* both ways: through `reticle_assert` there IS a passing assertion to contradict, and through
|
|
637
|
-
* `reticle_crawl` there is no assertion at all and the UI simply moved on over a failed write. Both
|
|
638
|
-
* are the thing a human watching the screen cannot see, and that is what the flag has to mean if
|
|
639
|
-
* the number is going to be published.
|
|
640
|
-
*
|
|
641
|
-
* The subset worth naming separately, because it is the only category Reticle can claim as uniquely
|
|
642
|
-
* its own: every other kind of bug is findable by a careful human or an ordinary test.
|
|
643
|
-
*/
|
|
644
|
-
falseGreen: z.ZodBoolean;
|
|
645
|
-
/** Which tool surfaced it. */
|
|
646
|
-
tool: z.ZodOptional<z.ZodString>;
|
|
647
|
-
/**
|
|
648
|
-
* TRUE when this KIND was already reported in this session — i.e. this is another INSTANCE of a
|
|
649
|
-
* defect already counted, not another defect.
|
|
650
|
-
*
|
|
651
|
-
* Both numbers are claims, and they are different ones. "Reticle found N defects" is the headline;
|
|
652
|
-
* "users hit them M times" is the frequency that says which ones actually cost anybody anything.
|
|
653
|
-
* Without this flag the event stream answers only the second while looking like it answers the
|
|
654
|
-
* first, so any distinct-defect count read off it is silently inflated — the exact way a published
|
|
655
|
-
* number goes wrong. Count `repeat: false` for distinct, count everything for instances.
|
|
656
|
-
*
|
|
657
|
-
* Scoped to the SESSION, because that is the only identity available: the payload deliberately
|
|
658
|
-
* carries no selector, URL or app detail, so the same defect in two sessions cannot be recognised
|
|
659
|
-
* as one — and must not be, since that would need data this event refuses to collect.
|
|
660
|
-
*/
|
|
661
|
-
repeat: z.ZodBoolean;
|
|
662
|
-
/**
|
|
663
|
-
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
664
|
-
*
|
|
665
|
-
* Absence and "the evidence could not say" are different facts, and only one of them is a
|
|
666
|
-
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
667
|
-
* `BugAttribution` for why `app` needs positive evidence.
|
|
668
|
-
*/
|
|
669
|
-
attribution: z.ZodNativeEnum<{
|
|
670
|
-
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
671
|
-
readonly APP: "app";
|
|
672
|
-
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
673
|
-
readonly REQUEST: "request";
|
|
674
|
-
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
675
|
-
readonly RETICLE: "reticle";
|
|
676
|
-
/**
|
|
677
|
-
* The classifier looked and the evidence could not say.
|
|
678
|
-
*
|
|
679
|
-
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
680
|
-
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
681
|
-
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
682
|
-
* Exclude it from a defect count; never fold it into `app`.
|
|
683
|
-
*/
|
|
684
|
-
readonly UNCLASSIFIED: "unclassified";
|
|
685
|
-
}>;
|
|
686
|
-
/**
|
|
687
|
-
* A stable hash identifying THIS defect across sessions — same kind at the same route = same
|
|
688
|
-
* fingerprint, regardless of when or where it was found.
|
|
689
|
-
*
|
|
690
|
-
* The inputs (route, selector) never travel raw — only the 8-char hex hash does, following the
|
|
691
|
-
* same privacy pattern as `projectId`. The analytics side groups on it to answer "was this bug
|
|
692
|
-
* fixed?" (the fingerprint stops appearing) and to deduplicate the same defect found by parallel
|
|
693
|
-
* agents in one run.
|
|
694
|
-
*
|
|
695
|
-
* OPTIONAL because old senders and the `reticle verify` CLI path do not yet compute it. Absent
|
|
696
|
-
* means "not fingerprinted", never "a different defect from one that has a fingerprint".
|
|
697
|
-
*/
|
|
698
|
-
fingerprint: z.ZodOptional<z.ZodString>;
|
|
699
|
-
}, "strip", z.ZodTypeAny, {
|
|
700
|
-
kind: string;
|
|
701
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
702
|
-
attribution: "reticle" | "request" | "app" | "unclassified";
|
|
703
|
-
falseGreen: boolean;
|
|
704
|
-
repeat: boolean;
|
|
705
|
-
tool?: string | undefined;
|
|
706
|
-
fingerprint?: string | undefined;
|
|
707
|
-
}, {
|
|
708
|
-
kind: string;
|
|
709
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
710
|
-
attribution: "reticle" | "request" | "app" | "unclassified";
|
|
711
|
-
falseGreen: boolean;
|
|
712
|
-
repeat: boolean;
|
|
713
|
-
tool?: string | undefined;
|
|
714
|
-
fingerprint?: string | undefined;
|
|
715
|
-
}>;
|
|
716
|
-
export type BugFound = z.infer<typeof BugFoundSchema>;
|
|
717
573
|
/** An MCP client attaching. Separates "installed and running" from "someone is actually using it". */
|
|
718
574
|
export declare const McpConnectionSchema: z.ZodObject<{
|
|
719
575
|
/** False the first time a client attaches to this daemon; true for every attach after. */
|
|
@@ -770,14 +626,18 @@ export declare const AppInstrumentationSchema: z.ZodObject<{
|
|
|
770
626
|
agentAttached: z.ZodBoolean;
|
|
771
627
|
/** How long the daemon had been up. Large values mean Reticle sat there with nothing wired. */
|
|
772
628
|
msToFirstApp: z.ZodNumber;
|
|
629
|
+
/** The first app ever on this machine + project, not just this run. Absent otherwise. */
|
|
630
|
+
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
773
631
|
}, "strip", z.ZodTypeAny, {
|
|
774
632
|
msToFirstApp: number;
|
|
775
633
|
initialized: boolean;
|
|
776
634
|
agentAttached: boolean;
|
|
635
|
+
firstEver?: boolean | undefined;
|
|
777
636
|
}, {
|
|
778
637
|
msToFirstApp: number;
|
|
779
638
|
initialized: boolean;
|
|
780
639
|
agentAttached: boolean;
|
|
640
|
+
firstEver?: boolean | undefined;
|
|
781
641
|
}>;
|
|
782
642
|
export type AppInstrumentation = z.infer<typeof AppInstrumentationSchema>;
|
|
783
643
|
/**
|
|
@@ -929,6 +789,8 @@ export declare const InstallSource: {
|
|
|
929
789
|
readonly NPX_SKILL: "npx_skill";
|
|
930
790
|
/** The Claude Code plugin, which sets the marker in the `env` of the MCP server it registers. */
|
|
931
791
|
readonly PLUGIN: "plugin";
|
|
792
|
+
/** The one-line installer (install.sh / install.ps1), which declares itself on `setup install`. */
|
|
793
|
+
readonly INSTALL_SCRIPT: "install_script";
|
|
932
794
|
/** docs.reticle.sh, whose install snippets carry the marker. */
|
|
933
795
|
readonly DOCS_SITE: "docs_site";
|
|
934
796
|
/** The repository README's install snippet. */
|
|
@@ -950,8 +812,13 @@ export declare const AutomationHint: {
|
|
|
950
812
|
readonly CONTAINER: "container";
|
|
951
813
|
/** A hosted dev environment declared itself (Codespaces, Gitpod, Cloud Shell, dev container). */
|
|
952
814
|
readonly HOSTED_WORKSPACE: "hosted_workspace";
|
|
953
|
-
/**
|
|
954
|
-
|
|
815
|
+
/**
|
|
816
|
+
* A CI vendor's own variable is set while `CI` is not (some runners and self-hosted agents omit it).
|
|
817
|
+
* `no_tty` used to sit here and read true for every MCP stdio process, so it separated nothing.
|
|
818
|
+
*/
|
|
819
|
+
readonly CI_RUNNER: "ci_runner";
|
|
820
|
+
/** A hosted coding-agent sandbox declared itself (a remote agent session, not a laptop). */
|
|
821
|
+
readonly AGENT_SANDBOX: "agent_sandbox";
|
|
955
822
|
};
|
|
956
823
|
export type AutomationHint = (typeof AutomationHint)[keyof typeof AutomationHint];
|
|
957
824
|
/**
|
|
@@ -1044,6 +911,125 @@ export type InitOutcome = z.infer<typeof InitOutcomeSchema>;
|
|
|
1044
911
|
* identifiers; everything else is a low-cardinality dimension for slicing the adoption metrics.
|
|
1045
912
|
*/
|
|
1046
913
|
export declare const TelemetryEventSchema: z.ZodObject<{
|
|
914
|
+
accountState: z.ZodOptional<z.ZodNativeEnum<{
|
|
915
|
+
readonly SIGNED_OUT: "signed_out";
|
|
916
|
+
readonly SIGNED_IN: "signed_in";
|
|
917
|
+
readonly LINKED: "linked";
|
|
918
|
+
}>>;
|
|
919
|
+
linked: z.ZodOptional<z.ZodBoolean>;
|
|
920
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
921
|
+
client: z.ZodOptional<z.ZodNativeEnum<{
|
|
922
|
+
readonly CLAUDE_CODE: "claude_code";
|
|
923
|
+
readonly CLAUDE_DESKTOP: "claude_desktop";
|
|
924
|
+
readonly CODEX: "codex";
|
|
925
|
+
readonly CURSOR: "cursor";
|
|
926
|
+
readonly GEMINI_CLI: "gemini_cli";
|
|
927
|
+
readonly ANTIGRAVITY: "antigravity";
|
|
928
|
+
readonly WINDSURF: "windsurf";
|
|
929
|
+
readonly CLINE: "cline";
|
|
930
|
+
readonly OPENCODE: "opencode";
|
|
931
|
+
readonly ZED: "zed";
|
|
932
|
+
readonly VSCODE: "vscode";
|
|
933
|
+
readonly OTHER: "other";
|
|
934
|
+
}>>;
|
|
935
|
+
launch: z.ZodOptional<z.ZodNativeEnum<{
|
|
936
|
+
readonly NPX: "npx";
|
|
937
|
+
readonly GLOBAL: "global";
|
|
938
|
+
readonly PROJECT: "project";
|
|
939
|
+
readonly OTHER: "other";
|
|
940
|
+
}>>;
|
|
941
|
+
hud: z.ZodOptional<z.ZodObject<{
|
|
942
|
+
view: z.ZodOptional<z.ZodNativeEnum<{
|
|
943
|
+
readonly CHAT: "chat";
|
|
944
|
+
readonly FLOWS: "flows";
|
|
945
|
+
readonly NOTES: "notes";
|
|
946
|
+
readonly HARNESS: "harness";
|
|
947
|
+
readonly SETTINGS: "settings";
|
|
948
|
+
readonly REPORT: "report";
|
|
949
|
+
readonly ACCOUNT: "account";
|
|
950
|
+
readonly NONE: "none";
|
|
951
|
+
}>>;
|
|
952
|
+
surface: z.ZodOptional<z.ZodNativeEnum<{
|
|
953
|
+
readonly RAIL: "rail";
|
|
954
|
+
readonly HARNESS: "harness";
|
|
955
|
+
readonly HEADER: "header";
|
|
956
|
+
}>>;
|
|
957
|
+
tabs: z.ZodOptional<z.ZodNativeEnum<{
|
|
958
|
+
readonly ZERO: "0";
|
|
959
|
+
readonly ONE: "1";
|
|
960
|
+
readonly TWO_THREE: "2-3";
|
|
961
|
+
readonly FOUR_NINE: "4-9";
|
|
962
|
+
readonly TEN_PLUS: "10+";
|
|
963
|
+
}>>;
|
|
964
|
+
}, "strip", z.ZodTypeAny, {
|
|
965
|
+
surface?: "harness" | "rail" | "header" | undefined;
|
|
966
|
+
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
967
|
+
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
968
|
+
}, {
|
|
969
|
+
surface?: "harness" | "rail" | "header" | undefined;
|
|
970
|
+
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
971
|
+
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
972
|
+
}>>;
|
|
973
|
+
link: z.ZodOptional<z.ZodObject<{
|
|
974
|
+
via: z.ZodNativeEnum<{
|
|
975
|
+
readonly CONNECT: "connect";
|
|
976
|
+
readonly HUD: "hud";
|
|
977
|
+
readonly LINK: "link";
|
|
978
|
+
}>;
|
|
979
|
+
}, "strip", z.ZodTypeAny, {
|
|
980
|
+
via: "hud" | "link" | "connect";
|
|
981
|
+
}, {
|
|
982
|
+
via: "hud" | "link" | "connect";
|
|
983
|
+
}>>;
|
|
984
|
+
harness: z.ZodOptional<z.ZodObject<{
|
|
985
|
+
phase: z.ZodNativeEnum<{
|
|
986
|
+
readonly STARTED: "started";
|
|
987
|
+
readonly COMPLETED: "completed";
|
|
988
|
+
}>;
|
|
989
|
+
source: z.ZodNativeEnum<{
|
|
990
|
+
readonly AGENT: "agent";
|
|
991
|
+
readonly HUD: "hud";
|
|
992
|
+
readonly DASHBOARD: "dashboard";
|
|
993
|
+
readonly CLI_TRY: "cli_try";
|
|
994
|
+
readonly PLAN: "plan";
|
|
995
|
+
}>;
|
|
996
|
+
hosted: z.ZodBoolean;
|
|
997
|
+
outcome: z.ZodOptional<z.ZodNativeEnum<{
|
|
998
|
+
readonly PROVED: "proved";
|
|
999
|
+
readonly NOT_PROVED: "not_proved";
|
|
1000
|
+
readonly FAILED: "failed";
|
|
1001
|
+
readonly BLOCKED: "blocked";
|
|
1002
|
+
readonly STOPPED: "stopped";
|
|
1003
|
+
}>>;
|
|
1004
|
+
journeys: z.ZodOptional<z.ZodNativeEnum<{
|
|
1005
|
+
readonly ZERO: "0";
|
|
1006
|
+
readonly ONE: "1";
|
|
1007
|
+
readonly TWO_THREE: "2-3";
|
|
1008
|
+
readonly FOUR_NINE: "4-9";
|
|
1009
|
+
readonly TEN_PLUS: "10+";
|
|
1010
|
+
}>>;
|
|
1011
|
+
replayed: z.ZodOptional<z.ZodNativeEnum<{
|
|
1012
|
+
readonly ZERO: "0";
|
|
1013
|
+
readonly ONE: "1";
|
|
1014
|
+
readonly TWO_THREE: "2-3";
|
|
1015
|
+
readonly FOUR_NINE: "4-9";
|
|
1016
|
+
readonly TEN_PLUS: "10+";
|
|
1017
|
+
}>>;
|
|
1018
|
+
}, "strip", z.ZodTypeAny, {
|
|
1019
|
+
source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
|
|
1020
|
+
phase: "completed" | "started";
|
|
1021
|
+
hosted: boolean;
|
|
1022
|
+
outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
|
|
1023
|
+
journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
1024
|
+
replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
1025
|
+
}, {
|
|
1026
|
+
source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
|
|
1027
|
+
phase: "completed" | "started";
|
|
1028
|
+
hosted: boolean;
|
|
1029
|
+
outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
|
|
1030
|
+
journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
1031
|
+
replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
1032
|
+
}>>;
|
|
1047
1033
|
v: z.ZodLiteral<3>;
|
|
1048
1034
|
/** Random UUID persisted at `~/.reticle/telemetry-id`. Distinct-count of this = users (DAU/WAU/MAU). */
|
|
1049
1035
|
anonymousId: z.ZodString;
|
|
@@ -1118,9 +1104,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1118
1104
|
*/
|
|
1119
1105
|
readonly FEEDBACK_SUBMITTED: "feedback_submitted";
|
|
1120
1106
|
/**
|
|
1121
|
-
* Somebody chose to say who they are. Like `feedback_submitted`, this
|
|
1107
|
+
* Somebody chose to say who they are. Like `feedback_submitted`, this existed ONLY because a
|
|
1122
1108
|
* human ran a command — Reticle never infers an identity from a git remote, an email in git
|
|
1123
|
-
* config, or anything else.
|
|
1109
|
+
* config, or anything else. The command that sent it was removed; the kind stays in the
|
|
1110
|
+
* vocabulary because older installs still send it.
|
|
1124
1111
|
*/
|
|
1125
1112
|
readonly IDENTIFIED: "identified";
|
|
1126
1113
|
/**
|
|
@@ -1198,6 +1185,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1198
1185
|
* This carries the fact at the moment it happens. See issue #172.
|
|
1199
1186
|
*/
|
|
1200
1187
|
readonly TOOL_REFUSED: "tool_refused";
|
|
1188
|
+
/** A HUD page (or the account menu) opened; deduped per tab. See telemetry-signals.ts. */
|
|
1189
|
+
readonly HUD_VIEWED: "hud_viewed";
|
|
1190
|
+
/** The HUD showed a sign-in or link prompt, once per surface per tab. */
|
|
1191
|
+
readonly HUD_SIGNIN_PROMPTED: "hud_signin_prompted";
|
|
1192
|
+
/** A project on this machine was linked to a workspace. */
|
|
1193
|
+
readonly PLATFORM_LINKED: "platform_linked";
|
|
1194
|
+
/** A Harness run started, or ended: one of each per run. */
|
|
1195
|
+
readonly HARNESS_RUN: "harness_run";
|
|
1201
1196
|
}>;
|
|
1202
1197
|
/** Client epoch-ms when the event happened (the server also stamps its own receive time). */
|
|
1203
1198
|
ts: z.ZodNumber;
|
|
@@ -1219,8 +1214,13 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1219
1214
|
readonly CONTAINER: "container";
|
|
1220
1215
|
/** A hosted dev environment declared itself (Codespaces, Gitpod, Cloud Shell, dev container). */
|
|
1221
1216
|
readonly HOSTED_WORKSPACE: "hosted_workspace";
|
|
1222
|
-
/**
|
|
1223
|
-
|
|
1217
|
+
/**
|
|
1218
|
+
* A CI vendor's own variable is set while `CI` is not (some runners and self-hosted agents omit it).
|
|
1219
|
+
* `no_tty` used to sit here and read true for every MCP stdio process, so it separated nothing.
|
|
1220
|
+
*/
|
|
1221
|
+
readonly CI_RUNNER: "ci_runner";
|
|
1222
|
+
/** A hosted coding-agent sandbox declared itself (a remote agent session, not a laptop). */
|
|
1223
|
+
readonly AGENT_SANDBOX: "agent_sandbox";
|
|
1224
1224
|
}>>;
|
|
1225
1225
|
/**
|
|
1226
1226
|
* What `projectId` was derived from. On EVERY event, not just the profile, because the core
|
|
@@ -1247,6 +1247,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1247
1247
|
* every time-of-day tile from "which continent" into "9am or 11pm".
|
|
1248
1248
|
*/
|
|
1249
1249
|
tzOffsetMin: z.ZodOptional<z.ZodNumber>;
|
|
1250
|
+
/**
|
|
1251
|
+
* The Reticle team's own run (`RETICLE_INTERNAL=1`, or `~/.reticle/telemetry-internal` present):
|
|
1252
|
+
* dogfooding and release sweeps. Absent for everyone else. Filter it OUT of any user count.
|
|
1253
|
+
*/
|
|
1254
|
+
internal: z.ZodOptional<z.ZodBoolean>;
|
|
1255
|
+
/**
|
|
1256
|
+
* `anonymousId` could not be persisted (read-only home, sandbox), so it is new in every process
|
|
1257
|
+
* and a distinct count over it counts processes, not people. Absent when the id persisted.
|
|
1258
|
+
*/
|
|
1259
|
+
idEphemeral: z.ZodOptional<z.ZodBoolean>;
|
|
1250
1260
|
/** Only on `feedback`: the author-submitted report + its environment context. Never sent otherwise. */
|
|
1251
1261
|
feedback: z.ZodOptional<z.ZodObject<{
|
|
1252
1262
|
source: z.ZodNativeEnum<{
|
|
@@ -1293,7 +1303,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1293
1303
|
}, "strip", z.ZodTypeAny, {
|
|
1294
1304
|
text: string;
|
|
1295
1305
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1296
|
-
source: "
|
|
1306
|
+
source: "agent" | "human";
|
|
1297
1307
|
impact?: string | undefined;
|
|
1298
1308
|
model?: string | undefined;
|
|
1299
1309
|
trace?: string | undefined;
|
|
@@ -1311,7 +1321,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1311
1321
|
}, {
|
|
1312
1322
|
text: string;
|
|
1313
1323
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1314
|
-
source: "
|
|
1324
|
+
source: "agent" | "human";
|
|
1315
1325
|
impact?: string | undefined;
|
|
1316
1326
|
model?: string | undefined;
|
|
1317
1327
|
trace?: string | undefined;
|
|
@@ -1450,13 +1460,30 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1450
1460
|
errorsRecovered: z.ZodOptional<z.ZodNumber>;
|
|
1451
1461
|
errorsRepeated: z.ZodOptional<z.ZodNumber>;
|
|
1452
1462
|
endedWithVerdict: z.ZodOptional<z.ZodBoolean>;
|
|
1463
|
+
lifetimeToolCalls: z.ZodOptional<z.ZodNumber>;
|
|
1464
|
+
lifetimeVerifications: z.ZodOptional<z.ZodNumber>;
|
|
1465
|
+
lifetimeBugsFound: z.ZodOptional<z.ZodNumber>;
|
|
1453
1466
|
updateNudged: z.ZodOptional<z.ZodBoolean>;
|
|
1454
1467
|
updateOffered: z.ZodOptional<z.ZodString>;
|
|
1455
1468
|
hudControls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1456
1469
|
hudViewMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1457
1470
|
hudPanelMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1471
|
+
hudSlides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1458
1472
|
hudJourney: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1459
1473
|
hudJourneyCut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1474
|
+
nudgesShown: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<{
|
|
1475
|
+
readonly CONNECT: "connect";
|
|
1476
|
+
readonly CLOSE_GAPS: "close_gaps";
|
|
1477
|
+
readonly SWITCH_ON: "switch_on";
|
|
1478
|
+
readonly EXPLORE: "explore";
|
|
1479
|
+
}>, z.ZodNumber>>;
|
|
1480
|
+
harnessRefusedCoverage: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<{
|
|
1481
|
+
readonly B0: "0-19";
|
|
1482
|
+
readonly B20: "20-39";
|
|
1483
|
+
readonly B40: "40-59";
|
|
1484
|
+
readonly B60: "60-79";
|
|
1485
|
+
readonly B80: "80-100";
|
|
1486
|
+
}>, z.ZodNumber>>;
|
|
1460
1487
|
final: z.ZodBoolean;
|
|
1461
1488
|
exit: z.ZodOptional<z.ZodEnum<["idle", "signal", "unknown"]>>;
|
|
1462
1489
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1521,13 +1548,19 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1521
1548
|
errorsRecovered?: number | undefined;
|
|
1522
1549
|
errorsRepeated?: number | undefined;
|
|
1523
1550
|
endedWithVerdict?: boolean | undefined;
|
|
1551
|
+
lifetimeToolCalls?: number | undefined;
|
|
1552
|
+
lifetimeVerifications?: number | undefined;
|
|
1553
|
+
lifetimeBugsFound?: number | undefined;
|
|
1524
1554
|
updateNudged?: boolean | undefined;
|
|
1525
1555
|
updateOffered?: string | undefined;
|
|
1526
1556
|
hudControls?: Record<string, number> | undefined;
|
|
1527
1557
|
hudViewMs?: Record<string, number> | undefined;
|
|
1528
1558
|
hudPanelMs?: Record<string, number> | undefined;
|
|
1559
|
+
hudSlides?: Record<string, number> | undefined;
|
|
1529
1560
|
hudJourney?: string[] | undefined;
|
|
1530
1561
|
hudJourneyCut?: true | undefined;
|
|
1562
|
+
nudgesShown?: Partial<Record<"connect" | "close_gaps" | "switch_on" | "explore", number>> | undefined;
|
|
1563
|
+
harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
|
|
1531
1564
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1532
1565
|
}, {
|
|
1533
1566
|
durationMs: number;
|
|
@@ -1591,13 +1624,19 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1591
1624
|
errorsRecovered?: number | undefined;
|
|
1592
1625
|
errorsRepeated?: number | undefined;
|
|
1593
1626
|
endedWithVerdict?: boolean | undefined;
|
|
1627
|
+
lifetimeToolCalls?: number | undefined;
|
|
1628
|
+
lifetimeVerifications?: number | undefined;
|
|
1629
|
+
lifetimeBugsFound?: number | undefined;
|
|
1594
1630
|
updateNudged?: boolean | undefined;
|
|
1595
1631
|
updateOffered?: string | undefined;
|
|
1596
1632
|
hudControls?: Record<string, number> | undefined;
|
|
1597
1633
|
hudViewMs?: Record<string, number> | undefined;
|
|
1598
1634
|
hudPanelMs?: Record<string, number> | undefined;
|
|
1635
|
+
hudSlides?: Record<string, number> | undefined;
|
|
1599
1636
|
hudJourney?: string[] | undefined;
|
|
1600
1637
|
hudJourneyCut?: true | undefined;
|
|
1638
|
+
nudgesShown?: Partial<Record<"connect" | "close_gaps" | "switch_on" | "explore", number>> | undefined;
|
|
1639
|
+
harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
|
|
1601
1640
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1602
1641
|
}>>;
|
|
1603
1642
|
/** Only on `project_profiled`: the shape and depth-of-use of the project. */
|
|
@@ -1758,6 +1797,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1758
1797
|
readonly ASSERTION_FAILED: "assertion_failed";
|
|
1759
1798
|
readonly CONTRADICTED: "contradicted";
|
|
1760
1799
|
readonly ALREADY_TRUE: "already_true";
|
|
1800
|
+
readonly HIDDEN_MATCH: "hidden_match";
|
|
1761
1801
|
readonly UNCLEAN_CAPTURE: "unclean_capture";
|
|
1762
1802
|
readonly VACUOUS_GRADE: "vacuous_grade";
|
|
1763
1803
|
readonly NOTHING_DECLARED: "nothing_declared";
|
|
@@ -1796,25 +1836,25 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1796
1836
|
}>>;
|
|
1797
1837
|
}, "strip", z.ZodTypeAny, {
|
|
1798
1838
|
verified: string;
|
|
1799
|
-
via: string;
|
|
1800
1839
|
passed: boolean;
|
|
1840
|
+
via: string;
|
|
1801
1841
|
falseGreenCaught: boolean;
|
|
1842
|
+
browser?: string | undefined;
|
|
1802
1843
|
durationMs?: number | undefined;
|
|
1803
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
1844
|
+
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
1804
1845
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1805
1846
|
driven?: "harness" | undefined;
|
|
1806
|
-
browser?: string | undefined;
|
|
1807
1847
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
1808
1848
|
}, {
|
|
1809
1849
|
verified: string;
|
|
1810
|
-
via: string;
|
|
1811
1850
|
passed: boolean;
|
|
1851
|
+
via: string;
|
|
1812
1852
|
falseGreenCaught: boolean;
|
|
1853
|
+
browser?: string | undefined;
|
|
1813
1854
|
durationMs?: number | undefined;
|
|
1814
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
1855
|
+
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
1815
1856
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1816
1857
|
driven?: "harness" | undefined;
|
|
1817
|
-
browser?: string | undefined;
|
|
1818
1858
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
1819
1859
|
}>>;
|
|
1820
1860
|
/** Only on `version_changed`. */
|
|
@@ -1939,6 +1979,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1939
1979
|
kind: string;
|
|
1940
1980
|
message?: string | undefined;
|
|
1941
1981
|
tool?: string | undefined;
|
|
1982
|
+
frames?: string[] | undefined;
|
|
1942
1983
|
errorType?: string | undefined;
|
|
1943
1984
|
port?: "reticle" | "other" | undefined;
|
|
1944
1985
|
fingerprint?: string | undefined;
|
|
@@ -1950,7 +1991,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1950
1991
|
load1x100: number;
|
|
1951
1992
|
cpuCount: number;
|
|
1952
1993
|
} | undefined;
|
|
1953
|
-
frames?: string[] | undefined;
|
|
1954
1994
|
breadcrumb?: string[] | undefined;
|
|
1955
1995
|
nodeVersion?: string | undefined;
|
|
1956
1996
|
arch?: string | undefined;
|
|
@@ -1962,6 +2002,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1962
2002
|
kind: string;
|
|
1963
2003
|
message?: string | undefined;
|
|
1964
2004
|
tool?: string | undefined;
|
|
2005
|
+
frames?: string[] | undefined;
|
|
1965
2006
|
errorType?: string | undefined;
|
|
1966
2007
|
port?: "reticle" | "other" | undefined;
|
|
1967
2008
|
fingerprint?: string | undefined;
|
|
@@ -1973,7 +2014,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1973
2014
|
load1x100: number;
|
|
1974
2015
|
cpuCount: number;
|
|
1975
2016
|
} | undefined;
|
|
1976
|
-
frames?: string[] | undefined;
|
|
1977
2017
|
breadcrumb?: string[] | undefined;
|
|
1978
2018
|
nodeVersion?: string | undefined;
|
|
1979
2019
|
arch?: string | undefined;
|
|
@@ -2112,105 +2152,46 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2112
2152
|
reason: z.ZodOptional<z.ZodString>;
|
|
2113
2153
|
stack: z.ZodOptional<z.ZodString>;
|
|
2114
2154
|
unattended: z.ZodOptional<z.ZodBoolean>;
|
|
2155
|
+
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
2115
2156
|
}, "strip", z.ZodTypeAny, {
|
|
2116
2157
|
step: string;
|
|
2117
|
-
status: "skipped" | "completed" | "
|
|
2158
|
+
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
2118
2159
|
phase: "install" | "onboard" | "first_run";
|
|
2119
2160
|
reason?: string | undefined;
|
|
2120
2161
|
stack?: string | undefined;
|
|
2121
2162
|
elapsedMs?: number | undefined;
|
|
2122
2163
|
unattended?: boolean | undefined;
|
|
2164
|
+
firstEver?: boolean | undefined;
|
|
2123
2165
|
}, {
|
|
2124
2166
|
step: string;
|
|
2125
|
-
status: "skipped" | "completed" | "
|
|
2167
|
+
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
2126
2168
|
phase: "install" | "onboard" | "first_run";
|
|
2127
2169
|
reason?: string | undefined;
|
|
2128
2170
|
stack?: string | undefined;
|
|
2129
2171
|
elapsedMs?: number | undefined;
|
|
2130
2172
|
unattended?: boolean | undefined;
|
|
2173
|
+
firstEver?: boolean | undefined;
|
|
2131
2174
|
}>>;
|
|
2132
2175
|
/** Only on `bug_found`. */
|
|
2133
2176
|
bug: z.ZodOptional<z.ZodObject<{
|
|
2134
2177
|
source: z.ZodNativeEnum<{
|
|
2135
|
-
/** Channels disagreed — the false green. A passing screen sitting on a failed write. */
|
|
2136
2178
|
readonly CONTRADICTION: "contradiction";
|
|
2137
|
-
/** `reticle_crawl` found it autonomously, with nobody writing a test. */
|
|
2138
2179
|
readonly CRAWL: "crawl";
|
|
2139
|
-
/** A saved flow that used to pass stopped passing — a regression. */
|
|
2140
2180
|
readonly REPLAY: "replay";
|
|
2141
|
-
/** An assertion the agent declared did not hold. */
|
|
2142
2181
|
readonly ASSERTION: "assertion";
|
|
2143
2182
|
}>;
|
|
2144
|
-
/** The classified kind from Reticle's own findings vocabulary. */
|
|
2145
2183
|
kind: z.ZodString;
|
|
2146
|
-
/**
|
|
2147
|
-
* True when the defect PRESENTED AS SUCCESS — the screen advanced, the assertion passed, the click
|
|
2148
|
-
* looked fine — while another channel showed it had not.
|
|
2149
|
-
*
|
|
2150
|
-
* Defined by the presentation rather than by "an assertion passed", because the same defect arrives
|
|
2151
|
-
* both ways: through `reticle_assert` there IS a passing assertion to contradict, and through
|
|
2152
|
-
* `reticle_crawl` there is no assertion at all and the UI simply moved on over a failed write. Both
|
|
2153
|
-
* are the thing a human watching the screen cannot see, and that is what the flag has to mean if
|
|
2154
|
-
* the number is going to be published.
|
|
2155
|
-
*
|
|
2156
|
-
* The subset worth naming separately, because it is the only category Reticle can claim as uniquely
|
|
2157
|
-
* its own: every other kind of bug is findable by a careful human or an ordinary test.
|
|
2158
|
-
*/
|
|
2159
2184
|
falseGreen: z.ZodBoolean;
|
|
2160
|
-
/** Which tool surfaced it. */
|
|
2161
2185
|
tool: z.ZodOptional<z.ZodString>;
|
|
2162
|
-
/**
|
|
2163
|
-
* TRUE when this KIND was already reported in this session — i.e. this is another INSTANCE of a
|
|
2164
|
-
* defect already counted, not another defect.
|
|
2165
|
-
*
|
|
2166
|
-
* Both numbers are claims, and they are different ones. "Reticle found N defects" is the headline;
|
|
2167
|
-
* "users hit them M times" is the frequency that says which ones actually cost anybody anything.
|
|
2168
|
-
* Without this flag the event stream answers only the second while looking like it answers the
|
|
2169
|
-
* first, so any distinct-defect count read off it is silently inflated — the exact way a published
|
|
2170
|
-
* number goes wrong. Count `repeat: false` for distinct, count everything for instances.
|
|
2171
|
-
*
|
|
2172
|
-
* Scoped to the SESSION, because that is the only identity available: the payload deliberately
|
|
2173
|
-
* carries no selector, URL or app detail, so the same defect in two sessions cannot be recognised
|
|
2174
|
-
* as one — and must not be, since that would need data this event refuses to collect.
|
|
2175
|
-
*/
|
|
2176
2186
|
repeat: z.ZodBoolean;
|
|
2177
|
-
/**
|
|
2178
|
-
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
2179
|
-
*
|
|
2180
|
-
* Absence and "the evidence could not say" are different facts, and only one of them is a
|
|
2181
|
-
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
2182
|
-
* `BugAttribution` for why `app` needs positive evidence.
|
|
2183
|
-
*/
|
|
2184
2187
|
attribution: z.ZodNativeEnum<{
|
|
2185
|
-
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
2186
2188
|
readonly APP: "app";
|
|
2187
|
-
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
2188
2189
|
readonly REQUEST: "request";
|
|
2189
|
-
/** Reticle could not see or could not drive. Our bug, or our configuration. Ship a fix. */
|
|
2190
2190
|
readonly RETICLE: "reticle";
|
|
2191
|
-
/**
|
|
2192
|
-
* The classifier looked and the evidence could not say.
|
|
2193
|
-
*
|
|
2194
|
-
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
2195
|
-
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
2196
|
-
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
2197
|
-
* Exclude it from a defect count; never fold it into `app`.
|
|
2198
|
-
*/
|
|
2199
2191
|
readonly UNCLASSIFIED: "unclassified";
|
|
2200
2192
|
}>;
|
|
2201
|
-
/**
|
|
2202
|
-
* A stable hash identifying THIS defect across sessions — same kind at the same route = same
|
|
2203
|
-
* fingerprint, regardless of when or where it was found.
|
|
2204
|
-
*
|
|
2205
|
-
* The inputs (route, selector) never travel raw — only the 8-char hex hash does, following the
|
|
2206
|
-
* same privacy pattern as `projectId`. The analytics side groups on it to answer "was this bug
|
|
2207
|
-
* fixed?" (the fingerprint stops appearing) and to deduplicate the same defect found by parallel
|
|
2208
|
-
* agents in one run.
|
|
2209
|
-
*
|
|
2210
|
-
* OPTIONAL because old senders and the `reticle verify` CLI path do not yet compute it. Absent
|
|
2211
|
-
* means "not fingerprinted", never "a different defect from one that has a fingerprint".
|
|
2212
|
-
*/
|
|
2213
2193
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
2194
|
+
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
2214
2195
|
}, "strip", z.ZodTypeAny, {
|
|
2215
2196
|
kind: string;
|
|
2216
2197
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
@@ -2219,6 +2200,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2219
2200
|
repeat: boolean;
|
|
2220
2201
|
tool?: string | undefined;
|
|
2221
2202
|
fingerprint?: string | undefined;
|
|
2203
|
+
occurrence?: number | undefined;
|
|
2222
2204
|
}, {
|
|
2223
2205
|
kind: string;
|
|
2224
2206
|
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
@@ -2227,6 +2209,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2227
2209
|
repeat: boolean;
|
|
2228
2210
|
tool?: string | undefined;
|
|
2229
2211
|
fingerprint?: string | undefined;
|
|
2212
|
+
occurrence?: number | undefined;
|
|
2230
2213
|
}>>;
|
|
2231
2214
|
/** Only on `tool_refused`: which tool, why, and whether the agent tried the same thing again. */
|
|
2232
2215
|
refusal: z.ZodOptional<z.ZodObject<{
|
|
@@ -2243,6 +2226,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2243
2226
|
readonly AUTH_REFUSED: "auth_refused";
|
|
2244
2227
|
readonly LEASE_EXPIRED: "lease_expired";
|
|
2245
2228
|
readonly TAB_GONE: "tab_gone";
|
|
2229
|
+
readonly NAVIGATED_AWAY: "navigated_away";
|
|
2246
2230
|
readonly ROUTE_SERVER_ERROR: "route_server_error";
|
|
2247
2231
|
readonly APP_NOT_REOPENED: "app_not_reopened";
|
|
2248
2232
|
readonly CONFIG_ELSEWHERE: "config_elsewhere";
|
|
@@ -2253,15 +2237,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2253
2237
|
}>>;
|
|
2254
2238
|
retried: z.ZodBoolean;
|
|
2255
2239
|
}, "strip", z.ZodTypeAny, {
|
|
2256
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2257
2240
|
tool: string;
|
|
2241
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2258
2242
|
retried: boolean;
|
|
2259
|
-
noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2243
|
+
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;
|
|
2260
2244
|
}, {
|
|
2261
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2262
2245
|
tool: string;
|
|
2246
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2263
2247
|
retried: boolean;
|
|
2264
|
-
noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2248
|
+
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;
|
|
2265
2249
|
}>>;
|
|
2266
2250
|
/** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
|
|
2267
2251
|
outage: z.ZodOptional<z.ZodObject<{
|
|
@@ -2335,14 +2319,18 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2335
2319
|
agentAttached: z.ZodBoolean;
|
|
2336
2320
|
/** How long the daemon had been up. Large values mean Reticle sat there with nothing wired. */
|
|
2337
2321
|
msToFirstApp: z.ZodNumber;
|
|
2322
|
+
/** The first app ever on this machine + project, not just this run. Absent otherwise. */
|
|
2323
|
+
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
2338
2324
|
}, "strip", z.ZodTypeAny, {
|
|
2339
2325
|
msToFirstApp: number;
|
|
2340
2326
|
initialized: boolean;
|
|
2341
2327
|
agentAttached: boolean;
|
|
2328
|
+
firstEver?: boolean | undefined;
|
|
2342
2329
|
}, {
|
|
2343
2330
|
msToFirstApp: number;
|
|
2344
2331
|
initialized: boolean;
|
|
2345
2332
|
agentAttached: boolean;
|
|
2333
|
+
firstEver?: boolean | undefined;
|
|
2346
2334
|
}>>;
|
|
2347
2335
|
/**
|
|
2348
2336
|
* Only on `reticle_installed` / `init_completed`: which published route brought this install in.
|
|
@@ -2357,6 +2345,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2357
2345
|
readonly NPX_SKILL: "npx_skill";
|
|
2358
2346
|
/** The Claude Code plugin, which sets the marker in the `env` of the MCP server it registers. */
|
|
2359
2347
|
readonly PLUGIN: "plugin";
|
|
2348
|
+
/** The one-line installer (install.sh / install.ps1), which declares itself on `setup install`. */
|
|
2349
|
+
readonly INSTALL_SCRIPT: "install_script";
|
|
2360
2350
|
/** docs.reticle.sh, whose install snippets carry the marker. */
|
|
2361
2351
|
readonly DOCS_SITE: "docs_site";
|
|
2362
2352
|
/** The repository README's install snippet. */
|
|
@@ -2403,7 +2393,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2403
2393
|
*/
|
|
2404
2394
|
licenseKeyPresent: z.ZodOptional<z.ZodBoolean>;
|
|
2405
2395
|
}, "strip", z.ZodTypeAny, {
|
|
2406
|
-
event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "session_progress" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "onboarding_step" | "bug_found" | "tool_refused";
|
|
2396
|
+
event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "session_progress" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "onboarding_step" | "bug_found" | "tool_refused" | "hud_viewed" | "hud_signin_prompted" | "platform_linked" | "harness_run";
|
|
2407
2397
|
ci: boolean;
|
|
2408
2398
|
version: string;
|
|
2409
2399
|
v: 3;
|
|
@@ -2413,7 +2403,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2413
2403
|
feedback?: {
|
|
2414
2404
|
text: string;
|
|
2415
2405
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2416
|
-
source: "
|
|
2406
|
+
source: "agent" | "human";
|
|
2417
2407
|
impact?: string | undefined;
|
|
2418
2408
|
model?: string | undefined;
|
|
2419
2409
|
trace?: string | undefined;
|
|
@@ -2430,6 +2420,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2430
2420
|
mcpScope?: "project" | "user" | undefined;
|
|
2431
2421
|
} | undefined;
|
|
2432
2422
|
command?: string | undefined;
|
|
2423
|
+
harness?: {
|
|
2424
|
+
source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
|
|
2425
|
+
phase: "completed" | "started";
|
|
2426
|
+
hosted: boolean;
|
|
2427
|
+
outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
|
|
2428
|
+
journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
2429
|
+
replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
2430
|
+
} | undefined;
|
|
2433
2431
|
project?: {
|
|
2434
2432
|
git: "none" | "local_only" | "remote";
|
|
2435
2433
|
flowCount: number;
|
|
@@ -2452,6 +2450,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2452
2450
|
appConnectedBefore?: boolean | undefined;
|
|
2453
2451
|
} | undefined;
|
|
2454
2452
|
projectId?: string | undefined;
|
|
2453
|
+
hud?: {
|
|
2454
|
+
surface?: "harness" | "rail" | "header" | undefined;
|
|
2455
|
+
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
2456
|
+
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
2457
|
+
} | undefined;
|
|
2455
2458
|
sessionId?: string | undefined;
|
|
2456
2459
|
bug?: {
|
|
2457
2460
|
kind: string;
|
|
@@ -2461,7 +2464,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2461
2464
|
repeat: boolean;
|
|
2462
2465
|
tool?: string | undefined;
|
|
2463
2466
|
fingerprint?: string | undefined;
|
|
2467
|
+
occurrence?: number | undefined;
|
|
2464
2468
|
} | undefined;
|
|
2469
|
+
client?: "other" | "claude_code" | "claude_desktop" | "codex" | "cursor" | "gemini_cli" | "antigravity" | "windsurf" | "cline" | "opencode" | "zed" | "vscode" | undefined;
|
|
2465
2470
|
session?: {
|
|
2466
2471
|
durationMs: number;
|
|
2467
2472
|
toolCalls: number;
|
|
@@ -2524,31 +2529,43 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2524
2529
|
errorsRecovered?: number | undefined;
|
|
2525
2530
|
errorsRepeated?: number | undefined;
|
|
2526
2531
|
endedWithVerdict?: boolean | undefined;
|
|
2532
|
+
lifetimeToolCalls?: number | undefined;
|
|
2533
|
+
lifetimeVerifications?: number | undefined;
|
|
2534
|
+
lifetimeBugsFound?: number | undefined;
|
|
2527
2535
|
updateNudged?: boolean | undefined;
|
|
2528
2536
|
updateOffered?: string | undefined;
|
|
2529
2537
|
hudControls?: Record<string, number> | undefined;
|
|
2530
2538
|
hudViewMs?: Record<string, number> | undefined;
|
|
2531
2539
|
hudPanelMs?: Record<string, number> | undefined;
|
|
2540
|
+
hudSlides?: Record<string, number> | undefined;
|
|
2532
2541
|
hudJourney?: string[] | undefined;
|
|
2533
2542
|
hudJourneyCut?: true | undefined;
|
|
2543
|
+
nudgesShown?: Partial<Record<"connect" | "close_gaps" | "switch_on" | "explore", number>> | undefined;
|
|
2544
|
+
harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
|
|
2534
2545
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2535
2546
|
} | undefined;
|
|
2547
|
+
link?: {
|
|
2548
|
+
via: "hud" | "link" | "connect";
|
|
2549
|
+
} | undefined;
|
|
2536
2550
|
licenseKeyPresent?: boolean | undefined;
|
|
2537
|
-
|
|
2551
|
+
linked?: boolean | undefined;
|
|
2552
|
+
automation?: "container" | "hosted_workspace" | "ci_runner" | "agent_sandbox" | undefined;
|
|
2538
2553
|
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2539
2554
|
tzOffsetMin?: number | undefined;
|
|
2540
|
-
|
|
2555
|
+
internal?: boolean | undefined;
|
|
2556
|
+
idEphemeral?: boolean | undefined;
|
|
2557
|
+
actor?: "agent" | "human" | undefined;
|
|
2541
2558
|
flags?: string[] | undefined;
|
|
2542
2559
|
verification?: {
|
|
2543
2560
|
verified: string;
|
|
2544
|
-
via: string;
|
|
2545
2561
|
passed: boolean;
|
|
2562
|
+
via: string;
|
|
2546
2563
|
falseGreenCaught: boolean;
|
|
2564
|
+
browser?: string | undefined;
|
|
2547
2565
|
durationMs?: number | undefined;
|
|
2548
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
2566
|
+
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
2549
2567
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2550
2568
|
driven?: "harness" | undefined;
|
|
2551
|
-
browser?: string | undefined;
|
|
2552
2569
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
2553
2570
|
} | undefined;
|
|
2554
2571
|
versionChange?: {
|
|
@@ -2561,6 +2578,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2561
2578
|
kind: string;
|
|
2562
2579
|
message?: string | undefined;
|
|
2563
2580
|
tool?: string | undefined;
|
|
2581
|
+
frames?: string[] | undefined;
|
|
2564
2582
|
errorType?: string | undefined;
|
|
2565
2583
|
port?: "reticle" | "other" | undefined;
|
|
2566
2584
|
fingerprint?: string | undefined;
|
|
@@ -2572,7 +2590,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2572
2590
|
load1x100: number;
|
|
2573
2591
|
cpuCount: number;
|
|
2574
2592
|
} | undefined;
|
|
2575
|
-
frames?: string[] | undefined;
|
|
2576
2593
|
breadcrumb?: string[] | undefined;
|
|
2577
2594
|
nodeVersion?: string | undefined;
|
|
2578
2595
|
arch?: string | undefined;
|
|
@@ -2601,18 +2618,19 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2601
2618
|
} | undefined;
|
|
2602
2619
|
onboarding?: {
|
|
2603
2620
|
step: string;
|
|
2604
|
-
status: "skipped" | "completed" | "
|
|
2621
|
+
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
2605
2622
|
phase: "install" | "onboard" | "first_run";
|
|
2606
2623
|
reason?: string | undefined;
|
|
2607
2624
|
stack?: string | undefined;
|
|
2608
2625
|
elapsedMs?: number | undefined;
|
|
2609
2626
|
unattended?: boolean | undefined;
|
|
2627
|
+
firstEver?: boolean | undefined;
|
|
2610
2628
|
} | undefined;
|
|
2611
2629
|
refusal?: {
|
|
2612
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2613
2630
|
tool: string;
|
|
2631
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2614
2632
|
retried: boolean;
|
|
2615
|
-
noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2633
|
+
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;
|
|
2616
2634
|
} | undefined;
|
|
2617
2635
|
outage?: {
|
|
2618
2636
|
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
@@ -2624,12 +2642,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2624
2642
|
msToFirstApp: number;
|
|
2625
2643
|
initialized: boolean;
|
|
2626
2644
|
agentAttached: boolean;
|
|
2645
|
+
firstEver?: boolean | undefined;
|
|
2627
2646
|
} | undefined;
|
|
2628
|
-
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "docs_site" | "readme" | "cli_direct" | undefined;
|
|
2647
|
+
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "cli_direct" | undefined;
|
|
2629
2648
|
licenseId?: string | undefined;
|
|
2630
|
-
licenseStatus?: "active" | "
|
|
2649
|
+
licenseStatus?: "active" | "invalid" | "missing" | "expired" | "eval" | undefined;
|
|
2650
|
+
accountState?: "signed_out" | "signed_in" | "linked" | undefined;
|
|
2651
|
+
workspaceId?: string | undefined;
|
|
2652
|
+
launch?: "other" | "project" | "npx" | "global" | undefined;
|
|
2631
2653
|
}, {
|
|
2632
|
-
event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "session_progress" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "onboarding_step" | "bug_found" | "tool_refused";
|
|
2654
|
+
event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "session_progress" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "onboarding_step" | "bug_found" | "tool_refused" | "hud_viewed" | "hud_signin_prompted" | "platform_linked" | "harness_run";
|
|
2633
2655
|
ci: boolean;
|
|
2634
2656
|
version: string;
|
|
2635
2657
|
v: 3;
|
|
@@ -2639,7 +2661,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2639
2661
|
feedback?: {
|
|
2640
2662
|
text: string;
|
|
2641
2663
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2642
|
-
source: "
|
|
2664
|
+
source: "agent" | "human";
|
|
2643
2665
|
impact?: string | undefined;
|
|
2644
2666
|
model?: string | undefined;
|
|
2645
2667
|
trace?: string | undefined;
|
|
@@ -2656,6 +2678,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2656
2678
|
mcpScope?: "project" | "user" | undefined;
|
|
2657
2679
|
} | undefined;
|
|
2658
2680
|
command?: string | undefined;
|
|
2681
|
+
harness?: {
|
|
2682
|
+
source: "plan" | "agent" | "hud" | "dashboard" | "cli_try";
|
|
2683
|
+
phase: "completed" | "started";
|
|
2684
|
+
hosted: boolean;
|
|
2685
|
+
outcome?: "proved" | "failed" | "blocked" | "not_proved" | "stopped" | undefined;
|
|
2686
|
+
journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
2687
|
+
replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
2688
|
+
} | undefined;
|
|
2659
2689
|
project?: {
|
|
2660
2690
|
git: "none" | "local_only" | "remote";
|
|
2661
2691
|
flowCount: number;
|
|
@@ -2678,6 +2708,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2678
2708
|
appConnectedBefore?: boolean | undefined;
|
|
2679
2709
|
} | undefined;
|
|
2680
2710
|
projectId?: string | undefined;
|
|
2711
|
+
hud?: {
|
|
2712
|
+
surface?: "harness" | "rail" | "header" | undefined;
|
|
2713
|
+
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
2714
|
+
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
2715
|
+
} | undefined;
|
|
2681
2716
|
sessionId?: string | undefined;
|
|
2682
2717
|
bug?: {
|
|
2683
2718
|
kind: string;
|
|
@@ -2687,7 +2722,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2687
2722
|
repeat: boolean;
|
|
2688
2723
|
tool?: string | undefined;
|
|
2689
2724
|
fingerprint?: string | undefined;
|
|
2725
|
+
occurrence?: number | undefined;
|
|
2690
2726
|
} | undefined;
|
|
2727
|
+
client?: "other" | "claude_code" | "claude_desktop" | "codex" | "cursor" | "gemini_cli" | "antigravity" | "windsurf" | "cline" | "opencode" | "zed" | "vscode" | undefined;
|
|
2691
2728
|
session?: {
|
|
2692
2729
|
durationMs: number;
|
|
2693
2730
|
toolCalls: number;
|
|
@@ -2750,31 +2787,43 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2750
2787
|
errorsRecovered?: number | undefined;
|
|
2751
2788
|
errorsRepeated?: number | undefined;
|
|
2752
2789
|
endedWithVerdict?: boolean | undefined;
|
|
2790
|
+
lifetimeToolCalls?: number | undefined;
|
|
2791
|
+
lifetimeVerifications?: number | undefined;
|
|
2792
|
+
lifetimeBugsFound?: number | undefined;
|
|
2753
2793
|
updateNudged?: boolean | undefined;
|
|
2754
2794
|
updateOffered?: string | undefined;
|
|
2755
2795
|
hudControls?: Record<string, number> | undefined;
|
|
2756
2796
|
hudViewMs?: Record<string, number> | undefined;
|
|
2757
2797
|
hudPanelMs?: Record<string, number> | undefined;
|
|
2798
|
+
hudSlides?: Record<string, number> | undefined;
|
|
2758
2799
|
hudJourney?: string[] | undefined;
|
|
2759
2800
|
hudJourneyCut?: true | undefined;
|
|
2801
|
+
nudgesShown?: Partial<Record<"connect" | "close_gaps" | "switch_on" | "explore", number>> | undefined;
|
|
2802
|
+
harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
|
|
2760
2803
|
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2761
2804
|
} | undefined;
|
|
2805
|
+
link?: {
|
|
2806
|
+
via: "hud" | "link" | "connect";
|
|
2807
|
+
} | undefined;
|
|
2762
2808
|
licenseKeyPresent?: boolean | undefined;
|
|
2763
|
-
|
|
2809
|
+
linked?: boolean | undefined;
|
|
2810
|
+
automation?: "container" | "hosted_workspace" | "ci_runner" | "agent_sandbox" | undefined;
|
|
2764
2811
|
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2765
2812
|
tzOffsetMin?: number | undefined;
|
|
2766
|
-
|
|
2813
|
+
internal?: boolean | undefined;
|
|
2814
|
+
idEphemeral?: boolean | undefined;
|
|
2815
|
+
actor?: "agent" | "human" | undefined;
|
|
2767
2816
|
flags?: string[] | undefined;
|
|
2768
2817
|
verification?: {
|
|
2769
2818
|
verified: string;
|
|
2770
|
-
via: string;
|
|
2771
2819
|
passed: boolean;
|
|
2820
|
+
via: string;
|
|
2772
2821
|
falseGreenCaught: boolean;
|
|
2822
|
+
browser?: string | undefined;
|
|
2773
2823
|
durationMs?: number | undefined;
|
|
2774
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
2824
|
+
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
2775
2825
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2776
2826
|
driven?: "harness" | undefined;
|
|
2777
|
-
browser?: string | undefined;
|
|
2778
2827
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
2779
2828
|
} | undefined;
|
|
2780
2829
|
versionChange?: {
|
|
@@ -2787,6 +2836,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2787
2836
|
kind: string;
|
|
2788
2837
|
message?: string | undefined;
|
|
2789
2838
|
tool?: string | undefined;
|
|
2839
|
+
frames?: string[] | undefined;
|
|
2790
2840
|
errorType?: string | undefined;
|
|
2791
2841
|
port?: "reticle" | "other" | undefined;
|
|
2792
2842
|
fingerprint?: string | undefined;
|
|
@@ -2798,7 +2848,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2798
2848
|
load1x100: number;
|
|
2799
2849
|
cpuCount: number;
|
|
2800
2850
|
} | undefined;
|
|
2801
|
-
frames?: string[] | undefined;
|
|
2802
2851
|
breadcrumb?: string[] | undefined;
|
|
2803
2852
|
nodeVersion?: string | undefined;
|
|
2804
2853
|
arch?: string | undefined;
|
|
@@ -2827,18 +2876,19 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2827
2876
|
} | undefined;
|
|
2828
2877
|
onboarding?: {
|
|
2829
2878
|
step: string;
|
|
2830
|
-
status: "skipped" | "completed" | "
|
|
2879
|
+
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
2831
2880
|
phase: "install" | "onboard" | "first_run";
|
|
2832
2881
|
reason?: string | undefined;
|
|
2833
2882
|
stack?: string | undefined;
|
|
2834
2883
|
elapsedMs?: number | undefined;
|
|
2835
2884
|
unattended?: boolean | undefined;
|
|
2885
|
+
firstEver?: boolean | undefined;
|
|
2836
2886
|
} | undefined;
|
|
2837
2887
|
refusal?: {
|
|
2838
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2839
2888
|
tool: string;
|
|
2889
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2840
2890
|
retried: boolean;
|
|
2841
|
-
noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2891
|
+
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;
|
|
2842
2892
|
} | undefined;
|
|
2843
2893
|
outage?: {
|
|
2844
2894
|
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
@@ -2850,9 +2900,13 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2850
2900
|
msToFirstApp: number;
|
|
2851
2901
|
initialized: boolean;
|
|
2852
2902
|
agentAttached: boolean;
|
|
2903
|
+
firstEver?: boolean | undefined;
|
|
2853
2904
|
} | undefined;
|
|
2854
|
-
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "docs_site" | "readme" | "cli_direct" | undefined;
|
|
2905
|
+
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "cli_direct" | undefined;
|
|
2855
2906
|
licenseId?: string | undefined;
|
|
2856
|
-
licenseStatus?: "active" | "
|
|
2907
|
+
licenseStatus?: "active" | "invalid" | "missing" | "expired" | "eval" | undefined;
|
|
2908
|
+
accountState?: "signed_out" | "signed_in" | "linked" | undefined;
|
|
2909
|
+
workspaceId?: string | undefined;
|
|
2910
|
+
launch?: "other" | "project" | "npx" | "global" | undefined;
|
|
2857
2911
|
}>;
|
|
2858
2912
|
export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;
|