@reticlehq/core 3.7.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activation-entry.d.ts +9 -0
- package/dist/activation-entry.js +9 -0
- package/dist/artifacts/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- package/dist/artifacts/flow-constants.d.ts +15 -0
- package/dist/artifacts/flow-constants.js +15 -0
- package/dist/artifacts/flow-expect-flat.d.ts +8 -192
- package/dist/artifacts/flow-expect-flat.js +2 -2
- package/dist/artifacts/flow-results.d.ts +26 -0
- package/dist/artifacts/flow-types.d.ts +212 -2295
- package/dist/artifacts/flow-types.js +14 -2
- package/dist/artifacts/harness-credits.d.ts +6 -3
- package/dist/artifacts/harness-credits.js +9 -6
- package/dist/artifacts/harness-map.d.ts +8 -69
- package/dist/artifacts/harness-map.js +1 -1
- package/dist/artifacts/hud-notices.d.ts +8 -82
- package/dist/artifacts/hud-notices.js +1 -1
- package/dist/artifacts/impact.d.ts +104 -1665
- package/dist/artifacts/impact.js +38 -21
- package/dist/artifacts/journal.d.ts +15 -231
- package/dist/artifacts/journal.js +15 -2
- package/dist/artifacts/prompt-context.d.ts +7 -33
- package/dist/artifacts/prompt-context.js +15 -4
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/graph/app-graph.d.ts +137 -0
- package/dist/graph/app-graph.js +498 -0
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/hud-entry.js +1 -1
- 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 +10 -0
- package/dist/index.js +10 -0
- package/dist/onboarding.d.ts +23 -52
- package/dist/onboarding.js +20 -1
- package/dist/registry/daemon-registry.d.ts +2 -14
- package/dist/registry/daemon-registry.js +1 -1
- package/dist/registry/dev-server-registry.d.ts +2 -31
- package/dist/registry/dev-server-registry.js +1 -1
- package/dist/registry/project-registry.d.ts +4 -32
- package/dist/registry/project-registry.js +1 -1
- package/dist/schema/command-message.json +65 -68
- package/dist/schema/command-name.json +29 -33
- package/dist/schema/command-result.json +25 -30
- package/dist/schema/event-message.json +104 -101
- package/dist/schema/event-payloads.json +246 -108
- package/dist/schema/event-type.json +47 -48
- package/dist/schema/hello-message.json +150 -133
- package/dist/schema/reticle-event.json +98 -94
- package/dist/schema/reticle-message.json +338 -310
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-entry.d.ts +1 -1
- package/dist/telemetry-entry.js +1 -1
- package/dist/telemetry-feedback.d.ts +17 -91
- package/dist/telemetry-feedback.js +20 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +45 -624
- package/dist/telemetry-session.js +25 -12
- package/dist/telemetry-signals.d.ts +211 -86
- package/dist/telemetry-signals.js +100 -2
- package/dist/telemetry.d.ts +321 -1691
- package/dist/telemetry.js +72 -6
- package/dist/verdict/check-sentence.d.ts +34 -0
- package/dist/verdict/check-sentence.js +228 -0
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/consequence.d.ts +15 -0
- package/dist/verdict/consequence.js +11 -0
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/findings.d.ts +10 -0
- package/dist/verdict/findings.js +13 -0
- package/dist/verdict/instrumentation-coverage.d.ts +6 -37
- package/dist/verdict/instrumentation-coverage.js +15 -59
- package/dist/verdict/instrumentation-gap.d.ts +72 -0
- package/dist/verdict/instrumentation-gap.js +64 -0
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate-tree.d.ts +2 -0
- package/dist/verdict/predicate-tree.js +16 -0
- package/dist/verdict/predicate.d.ts +3 -2
- package/dist/verdict/predicate.js +107 -16
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +71 -0
- package/dist/verdict/run-report.js +53 -0
- package/dist/verdict/security.d.ts +48 -2
- package/dist/verdict/security.js +185 -18
- package/dist/verdict/verification-run.d.ts +124 -1623
- package/dist/verdict/verification-run.js +37 -6
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/constants/constants.d.ts +56 -141
- package/dist/wire/constants/constants.js +64 -144
- 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 +37 -1
- package/dist/wire/constants/event-types.js +35 -1
- package/dist/wire/constants/hud-controls.js +0 -2
- package/dist/wire/constants/hud-use.d.ts +4 -0
- package/dist/wire/constants/hud-use.js +4 -0
- package/dist/wire/constants/mcp-wire.d.ts +16 -0
- package/dist/wire/constants/mcp-wire.js +16 -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-env.d.ts +140 -0
- package/dist/wire/constants/reticle-env.js +140 -0
- package/dist/wire/constants/session-constants.d.ts +11 -0
- package/dist/wire/constants/session-constants.js +11 -0
- package/dist/wire/event-payloads.d.ts +173 -629
- package/dist/wire/event-payloads.js +107 -23
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +90 -713
- package/dist/wire/messages.js +19 -3
- package/dist/wire/narrow.d.ts +6 -0
- package/dist/wire/narrow.js +26 -0
- package/dist/wire/next-step.d.ts +50 -0
- package/dist/wire/next-step.js +37 -0
- package/dist/wire/platform-link.d.ts +7 -0
- package/dist/wire/platform-link.js +14 -8
- 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 +92 -0
- package/dist/wire/production/production-policy.js +133 -0
- package/dist/wire/tool-names.d.ts +2 -0
- package/dist/wire/tool-names.js +2 -0
- package/dist/wire/types.d.ts +102 -700
- package/dist/wire/types.js +5 -5
- package/dist/words/upgrade.d.ts +3 -13
- package/dist/words/upgrade.js +1 -1
- package/package.json +7 -4
package/dist/telemetry.d.ts
CHANGED
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
* the tool's behaviour). Same conventions as the rest of core: enums are `as const` narrowed with
|
|
15
15
|
* `z.nativeEnum`, timestamps are epoch-ms NUMBERS, no `any`.
|
|
16
16
|
*/
|
|
17
|
-
import
|
|
18
|
-
import { OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep } from './onboarding.js';
|
|
17
|
+
import * as z from 'zod';
|
|
18
|
+
import { NextStepOffered, OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep } from './onboarding.js';
|
|
19
19
|
/**
|
|
20
20
|
* The setup funnel's vocabulary. It is defined in `onboarding.ts`, which is its own subject, and
|
|
21
21
|
* re-exported here so every `@reticlehq/core/telemetry` import reaches it.
|
|
22
22
|
*/
|
|
23
|
-
export { OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep, };
|
|
23
|
+
export { NextStepOffered, OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep, };
|
|
24
24
|
export * from './telemetry-bug.js';
|
|
25
25
|
/** Bump when the event shape changes so the analytics side can segment old senders. */
|
|
26
26
|
export declare const TELEMETRY_EVENT_VERSION = 3;
|
|
@@ -64,7 +64,7 @@ export declare const TelemetryEventKind: {
|
|
|
64
64
|
* tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
|
|
65
65
|
* an exit's name therefore describes active sessions at one end and abandoned ones at the other.
|
|
66
66
|
*
|
|
67
|
-
* Count
|
|
67
|
+
* Count daemon runs with DAEMON_STARTED, clean exits with DAEMON_STOPPED. Sum work with both.
|
|
68
68
|
*/
|
|
69
69
|
readonly SESSION_PROGRESS: "session_progress";
|
|
70
70
|
/**
|
|
@@ -78,7 +78,10 @@ export declare const TelemetryEventKind: {
|
|
|
78
78
|
* between a retention problem and an activation problem. Once per daemon start, so it is cheap.
|
|
79
79
|
*/
|
|
80
80
|
readonly PROJECT_PROFILED: "project_profiled";
|
|
81
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* A start found a version that differs from the last start on this machine, or `reticle update` /
|
|
83
|
+
* `reticle rollback` moved it. Carries from → to.
|
|
84
|
+
*/
|
|
82
85
|
readonly VERSION_CHANGED: "version_changed";
|
|
83
86
|
/** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
|
|
84
87
|
readonly RUNTIME_CRASHED: "runtime_crashed";
|
|
@@ -141,6 +144,17 @@ export declare const TelemetryEventKind: {
|
|
|
141
144
|
* that decides whether this is fixed.
|
|
142
145
|
*/
|
|
143
146
|
readonly MCP_CONNECTION_LOST: "mcp_connection_lost";
|
|
147
|
+
/**
|
|
148
|
+
* The MCP proxy process ended. The agent lost its tools until the client starts a new one.
|
|
149
|
+
*
|
|
150
|
+
* `mcp_connection_lost` cannot see this: the stream to the daemon can be healthy when the proxy
|
|
151
|
+
* leaves. Sent even when the proxy has no other counts to report. See `ProxyExitSchema`.
|
|
152
|
+
*/
|
|
153
|
+
readonly MCP_PROXY_EXITED: "mcp_proxy_exited";
|
|
154
|
+
/** A daemon start found the pidfile of a daemon that died without a clean stop. */
|
|
155
|
+
readonly DAEMON_DIED_UNCLEAN: "daemon_died_unclean";
|
|
156
|
+
/** The proxy found the daemon port held by a stranger or by another project, and did not use it. */
|
|
157
|
+
readonly WAKE_REFUSED: "wake_refused";
|
|
144
158
|
/**
|
|
145
159
|
* `reticle init` finished. The onboarding funnel had no instrumentation at all, so a setup that
|
|
146
160
|
* failed on a missing dependency was indistinguishable from a user who never tried.
|
|
@@ -254,46 +268,13 @@ export declare const VerificationDriver: {
|
|
|
254
268
|
export type VerificationDriver = (typeof VerificationDriver)[keyof typeof VerificationDriver];
|
|
255
269
|
/** The outcome of one verification. `verified` is Reticle's own honesty grade, not merely pass/fail. */
|
|
256
270
|
export declare const VerificationSchema: z.ZodObject<{
|
|
257
|
-
/** Which tool produced the verdict (`reticle_assert`, `reticle_flow_verify`, …). */
|
|
258
271
|
via: z.ZodString;
|
|
259
|
-
/**
|
|
260
|
-
* `yes` | `no` | `unknown` | `no-fault` — the honest verdict, from `Verified`.
|
|
261
|
-
*
|
|
262
|
-
* FOUR values, not three. This comment said three for long enough that a dashboard written from it
|
|
263
|
-
* silently drops the bucket that is most actionable: `no-fault` means the window was clean and
|
|
264
|
-
* nothing was declared to prove, which is a teachable agent behaviour rather than a Reticle or an
|
|
265
|
-
* app problem, and `unknown` means the evidence could not decide.
|
|
266
|
-
*/
|
|
267
272
|
verified: z.ZodString;
|
|
268
|
-
/** Did the underlying assertion pass? Distinct from `verified` on purpose. */
|
|
269
273
|
passed: z.ZodBoolean;
|
|
270
|
-
/**
|
|
271
|
-
* TRUE when the assertion passed but Reticle refused to call it verified — a caught false green.
|
|
272
|
-
*/
|
|
273
274
|
falseGreenCaught: z.ZodBoolean;
|
|
274
275
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
275
|
-
/**
|
|
276
|
-
* `headless` | `headed` | `attached` — how the browser under verification got there.
|
|
277
|
-
*
|
|
278
|
-
* Without it, "verifications run" is one undifferentiated number covering three different
|
|
279
|
-
* products: unattended CI, a human watching an agent work, and the SDK in somebody's own dev
|
|
280
|
-
* server. They have different costs, different failure modes and different value, and only the
|
|
281
|
-
* last one is what most installs actually do.
|
|
282
|
-
*/
|
|
283
276
|
browser: z.ZodOptional<z.ZodString>;
|
|
284
|
-
|
|
285
|
-
* WHICH browser it was — `chrome` | `edge` | `arc` | `dia` | `brave` | `opera` | `firefox` |
|
|
286
|
-
* `safari` | `other`, from `BrowserBrand`.
|
|
287
|
-
*
|
|
288
|
-
* `browser` above says who drove it, and its most common value by far is `attached`: the SDK
|
|
289
|
-
* connected from a browser Reticle never launched. That leaves the actual browser unknown, and
|
|
290
|
-
* the engine cannot fill the gap — Chrome, Edge, Arc, Dia and Brave are one `blink`.
|
|
291
|
-
*
|
|
292
|
-
* OPTIONAL and absent rather than `"unknown"` when the page did not say: a desktop webview has no
|
|
293
|
-
* brand, and an older SDK does not report one. A guessed value would be indistinguishable from a
|
|
294
|
-
* measured one on a dashboard.
|
|
295
|
-
*/
|
|
296
|
-
brand: z.ZodOptional<z.ZodNativeEnum<{
|
|
277
|
+
brand: z.ZodOptional<z.ZodEnum<{
|
|
297
278
|
readonly CHROME: "chrome";
|
|
298
279
|
readonly EDGE: "edge";
|
|
299
280
|
readonly ARC: "arc";
|
|
@@ -304,18 +285,7 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
304
285
|
readonly SAFARI: "safari";
|
|
305
286
|
readonly OTHER: "other";
|
|
306
287
|
}>>;
|
|
307
|
-
|
|
308
|
-
* WHICH clause of the honesty rule decided this — see `VerifiedReason`.
|
|
309
|
-
*
|
|
310
|
-
* `verified` alone cannot answer the question the product is judged on. `unknown` + `passed:false`
|
|
311
|
-
* was measured covering "Reticle caught a real bug", "the agent wrote a bad predicate" and
|
|
312
|
-
* "Reticle itself could not see", which need opposite responses and arrive as one value; `no`
|
|
313
|
-
* collapses "channels disagree" into "the agent's predicate failed" the same way.
|
|
314
|
-
*
|
|
315
|
-
* OPTIONAL because not every verdict comes from `decideVerified` — a suite reports pass/fail with
|
|
316
|
-
* no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
|
|
317
|
-
*/
|
|
318
|
-
reason: z.ZodOptional<z.ZodNativeEnum<{
|
|
288
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
319
289
|
readonly VERSION_SKEW: "version_skew";
|
|
320
290
|
readonly CAPABILITY_ABSENT: "capability-absent";
|
|
321
291
|
readonly INCONCLUSIVE: "inconclusive";
|
|
@@ -335,82 +305,27 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
335
305
|
readonly PROVED: "proved";
|
|
336
306
|
readonly ABSENCE_BLIND_SPOT: "absence_blind_spot";
|
|
337
307
|
}>>;
|
|
338
|
-
|
|
339
|
-
* WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
|
|
340
|
-
*
|
|
341
|
-
* The three causes belong to three different owners and need three different fixes, and without
|
|
342
|
-
* this they are one bar — and the cause has turned out to be Reticle's own eviction counter
|
|
343
|
-
* miscounting, which no aggregate could have shown.
|
|
344
|
-
*
|
|
345
|
-
* ONE value, not a list: `losses` can hold several and a multi-value property is not something a
|
|
346
|
-
* dashboard can group by, so the FIRST is sent and the order in the producers is the order of
|
|
347
|
-
* ownership — Reticle's before the page's. Absent on every verdict whose capture was clean.
|
|
348
|
-
*/
|
|
349
|
-
uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
|
|
308
|
+
uncleanLoss: z.ZodOptional<z.ZodEnum<{
|
|
350
309
|
readonly BUFFER_LOSS: "buffer_loss";
|
|
351
310
|
readonly TRANSPORT_GAP: "transport_gap";
|
|
352
311
|
readonly BLIND_SPOT: "blind_spot";
|
|
353
312
|
readonly JOURNAL_LOSS: "journal_loss";
|
|
354
313
|
readonly OTHER: "other";
|
|
355
314
|
}>>;
|
|
356
|
-
|
|
357
|
-
* Set when one of our OWN drives produced this verdict rather than the user's agent — see
|
|
358
|
-
* `VerificationDriver`. Absent is the ordinary case and means the agent called the tool itself.
|
|
359
|
-
*/
|
|
360
|
-
driven: z.ZodOptional<z.ZodNativeEnum<{
|
|
315
|
+
driven: z.ZodOptional<z.ZodEnum<{
|
|
361
316
|
/** A model inside the daemon drove this, on the user's behalf. */
|
|
362
317
|
readonly HARNESS: "harness";
|
|
363
318
|
}>>;
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
passed: boolean;
|
|
367
|
-
via: string;
|
|
368
|
-
falseGreenCaught: boolean;
|
|
369
|
-
browser?: string | undefined;
|
|
370
|
-
durationMs?: number | undefined;
|
|
371
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
372
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
373
|
-
driven?: "harness" | undefined;
|
|
374
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
375
|
-
}, {
|
|
376
|
-
verified: string;
|
|
377
|
-
passed: boolean;
|
|
378
|
-
via: string;
|
|
379
|
-
falseGreenCaught: boolean;
|
|
380
|
-
browser?: string | undefined;
|
|
381
|
-
durationMs?: number | undefined;
|
|
382
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
383
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
384
|
-
driven?: "harness" | undefined;
|
|
385
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
386
|
-
}>;
|
|
319
|
+
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
320
|
+
}, z.core.$strip>;
|
|
387
321
|
export type Verification = z.infer<typeof VerificationSchema>;
|
|
388
322
|
/** Which way the installed version moved, and between which versions. */
|
|
389
323
|
export declare const VersionChangeSchema: z.ZodObject<{
|
|
390
324
|
from: z.ZodString;
|
|
391
325
|
to: z.ZodString;
|
|
392
|
-
/**
|
|
393
|
-
* True when an agent had been told about exactly this version recently — so the nudge plausibly
|
|
394
|
-
* caused the update.
|
|
395
|
-
*
|
|
396
|
-
* Without it, `version_changed` says a version moved and never why, which leaves "the nudge never
|
|
397
|
-
* fired" and "the nudge fired and nobody acted" indistinguishable. Those need opposite responses,
|
|
398
|
-
* and the whole adoption story rests on knowing which one is happening.
|
|
399
|
-
*/
|
|
400
326
|
nudged: z.ZodOptional<z.ZodBoolean>;
|
|
401
|
-
/** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
|
|
402
327
|
direction: z.ZodString;
|
|
403
|
-
},
|
|
404
|
-
from: string;
|
|
405
|
-
to: string;
|
|
406
|
-
direction: string;
|
|
407
|
-
nudged?: boolean | undefined;
|
|
408
|
-
}, {
|
|
409
|
-
from: string;
|
|
410
|
-
to: string;
|
|
411
|
-
direction: string;
|
|
412
|
-
nudged?: boolean | undefined;
|
|
413
|
-
}>;
|
|
328
|
+
}, z.core.$strip>;
|
|
414
329
|
export type VersionChange = z.infer<typeof VersionChangeSchema>;
|
|
415
330
|
/**
|
|
416
331
|
* A crash, with enough detail to actually diagnose it.
|
|
@@ -432,46 +347,15 @@ export declare const CrashPort: {
|
|
|
432
347
|
};
|
|
433
348
|
export type CrashPort = (typeof CrashPort)[keyof typeof CrashPort];
|
|
434
349
|
export declare const CrashSchema: z.ZodObject<{
|
|
435
|
-
/** `uncaught_exception` | `unhandled_rejection`. */
|
|
436
350
|
kind: z.ZodString;
|
|
437
|
-
/** The error's constructor name (`TypeError`) — coarse, safe, and enough to triage. */
|
|
438
351
|
errorType: z.ZodOptional<z.ZodString>;
|
|
439
|
-
/** Hash of the type + Reticle's own frames. Groups the same crash across every machine. */
|
|
440
352
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
441
|
-
/**
|
|
442
|
-
* The message with every VARIABLE part removed — quoted strings, URLs, paths, ids, numbers all
|
|
443
|
-
* replaced by `*`. `no baseline named *` says exactly what broke; the flow name that made it
|
|
444
|
-
* specific to one user never leaves. This is what turns the fingerprint from an opaque key into a
|
|
445
|
-
* readable defect.
|
|
446
|
-
*/
|
|
447
353
|
message: z.ZodOptional<z.ZodString>;
|
|
448
|
-
|
|
449
|
-
* The RETICLE-OWNED stack frames, innermost first, as `function@file:line`.
|
|
450
|
-
*
|
|
451
|
-
* This is Reticle's own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
|
|
452
|
-
* npm tarball — so there is no privacy question in sending it, and it is the single most useful
|
|
453
|
-
* thing for a root-cause analysis: the file, the line, and the function. Frames belonging to the
|
|
454
|
-
* user's application or to node internals are dropped entirely before this is built.
|
|
455
|
-
*/
|
|
456
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
457
|
-
/** The MCP tool in flight when it happened, when there was one. The trigger point. */
|
|
354
|
+
frames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
458
355
|
tool: z.ZodOptional<z.ZodString>;
|
|
459
|
-
|
|
460
|
-
* The tool calls immediately before the failure, oldest first — the agent's approach run.
|
|
461
|
-
*
|
|
462
|
-
* Answers "what was it trying to do", which a single frame cannot: `snapshot → act → act →
|
|
463
|
-
* assert` is a verification loop, `lease_acquire → navigate → crash` is a startup problem. Tool
|
|
464
|
-
* NAMES only, from a fixed vocabulary; no arguments, so nothing the agent typed is in here.
|
|
465
|
-
*/
|
|
466
|
-
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
467
|
-
/** Node major/minor — crashes cluster hard by runtime version. */
|
|
356
|
+
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
468
357
|
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
469
|
-
/** `arm64` / `x64`. A surprising number of native-module failures are architecture-specific. */
|
|
470
358
|
arch: z.ZodOptional<z.ZodString>;
|
|
471
|
-
/**
|
|
472
|
-
* The machine at the moment of the crash. "Out of memory" and a Reticle defect look identical in a
|
|
473
|
-
* stack trace and are completely different problems; this is what tells them apart.
|
|
474
|
-
*/
|
|
475
359
|
machine: z.ZodOptional<z.ZodObject<{
|
|
476
360
|
rssMb: z.ZodNumber;
|
|
477
361
|
heapUsedMb: z.ZodNumber;
|
|
@@ -479,137 +363,25 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
479
363
|
totalMemMb: z.ZodNumber;
|
|
480
364
|
load1x100: z.ZodNumber;
|
|
481
365
|
cpuCount: z.ZodNumber;
|
|
482
|
-
},
|
|
483
|
-
rssMb: number;
|
|
484
|
-
heapUsedMb: number;
|
|
485
|
-
freeMemMb: number;
|
|
486
|
-
totalMemMb: number;
|
|
487
|
-
load1x100: number;
|
|
488
|
-
cpuCount: number;
|
|
489
|
-
}, {
|
|
490
|
-
rssMb: number;
|
|
491
|
-
heapUsedMb: number;
|
|
492
|
-
freeMemMb: number;
|
|
493
|
-
totalMemMb: number;
|
|
494
|
-
load1x100: number;
|
|
495
|
-
cpuCount: number;
|
|
496
|
-
}>>;
|
|
497
|
-
/**
|
|
498
|
-
* The failing SYSCALL — `connect`, `write`, `open`. Already inside `message`; structured here so
|
|
499
|
-
* it can be grouped on rather than parsed back out of prose.
|
|
500
|
-
*/
|
|
366
|
+
}, z.core.$strip>>;
|
|
501
367
|
syscall: z.ZodOptional<z.ZodString>;
|
|
502
|
-
/**
|
|
503
|
-
* The symbolic errno — `ECONNREFUSED`, `EPIPE`. The name, never the platform-specific number.
|
|
504
|
-
*/
|
|
505
368
|
errno: z.ZodOptional<z.ZodString>;
|
|
506
|
-
/**
|
|
507
|
-
* Was the target the machine it was running on?
|
|
508
|
-
*
|
|
509
|
-
* One bit, and it splits two populations that currently look identical and have different owners:
|
|
510
|
-
* refused ON loopback is a Reticle-lifecycle problem (no daemon), refused off-box is a network
|
|
511
|
-
* problem that is not ours.
|
|
512
|
-
*/
|
|
513
369
|
loopback: z.ZodOptional<z.ZodBoolean>;
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
*
|
|
519
|
-
* Only present when the crash is a system error AND no Reticle frame survived, which is exactly
|
|
520
|
-
* the report that otherwise arrives with no location at all. It is a line in Node's published
|
|
521
|
-
* source: it says a connect failed rather than a DNS lookup, and carries nothing about the
|
|
522
|
-
* machine, the app, or anyone's directory layout.
|
|
523
|
-
*/
|
|
370
|
+
port: z.ZodOptional<z.ZodEnum<{
|
|
371
|
+
reticle: "reticle";
|
|
372
|
+
other: "other";
|
|
373
|
+
}>>;
|
|
524
374
|
internalFrame: z.ZodOptional<z.ZodString>;
|
|
525
|
-
},
|
|
526
|
-
kind: string;
|
|
527
|
-
message?: string | undefined;
|
|
528
|
-
tool?: string | undefined;
|
|
529
|
-
frames?: string[] | undefined;
|
|
530
|
-
errorType?: string | undefined;
|
|
531
|
-
port?: "reticle" | "other" | undefined;
|
|
532
|
-
fingerprint?: string | undefined;
|
|
533
|
-
machine?: {
|
|
534
|
-
rssMb: number;
|
|
535
|
-
heapUsedMb: number;
|
|
536
|
-
freeMemMb: number;
|
|
537
|
-
totalMemMb: number;
|
|
538
|
-
load1x100: number;
|
|
539
|
-
cpuCount: number;
|
|
540
|
-
} | undefined;
|
|
541
|
-
breadcrumb?: string[] | undefined;
|
|
542
|
-
nodeVersion?: string | undefined;
|
|
543
|
-
arch?: string | undefined;
|
|
544
|
-
syscall?: string | undefined;
|
|
545
|
-
errno?: string | undefined;
|
|
546
|
-
loopback?: boolean | undefined;
|
|
547
|
-
internalFrame?: string | undefined;
|
|
548
|
-
}, {
|
|
549
|
-
kind: string;
|
|
550
|
-
message?: string | undefined;
|
|
551
|
-
tool?: string | undefined;
|
|
552
|
-
frames?: string[] | undefined;
|
|
553
|
-
errorType?: string | undefined;
|
|
554
|
-
port?: "reticle" | "other" | undefined;
|
|
555
|
-
fingerprint?: string | undefined;
|
|
556
|
-
machine?: {
|
|
557
|
-
rssMb: number;
|
|
558
|
-
heapUsedMb: number;
|
|
559
|
-
freeMemMb: number;
|
|
560
|
-
totalMemMb: number;
|
|
561
|
-
load1x100: number;
|
|
562
|
-
cpuCount: number;
|
|
563
|
-
} | undefined;
|
|
564
|
-
breadcrumb?: string[] | undefined;
|
|
565
|
-
nodeVersion?: string | undefined;
|
|
566
|
-
arch?: string | undefined;
|
|
567
|
-
syscall?: string | undefined;
|
|
568
|
-
errno?: string | undefined;
|
|
569
|
-
loopback?: boolean | undefined;
|
|
570
|
-
internalFrame?: string | undefined;
|
|
571
|
-
}>;
|
|
375
|
+
}, z.core.$strip>;
|
|
572
376
|
export type Crash = z.infer<typeof CrashSchema>;
|
|
573
377
|
/** An MCP client attaching. Separates "installed and running" from "someone is actually using it". */
|
|
574
378
|
export declare const McpConnectionSchema: z.ZodObject<{
|
|
575
|
-
/** False the first time a client attaches to this daemon; true for every attach after. */
|
|
576
379
|
reconnect: z.ZodBoolean;
|
|
577
|
-
/**
|
|
578
|
-
* How long the daemon had been up first. A large value on the FIRST connect is the interesting
|
|
579
|
-
* case — it means Reticle was started and then sat unused, which is an onboarding failure nobody
|
|
580
|
-
* would otherwise report.
|
|
581
|
-
*/
|
|
582
380
|
daemonAgeMs: z.ZodNumber;
|
|
583
|
-
/** Which client, from its own handshake (`claude-code`, `cursor`). */
|
|
584
381
|
client: z.ZodOptional<z.ZodString>;
|
|
585
|
-
/**
|
|
586
|
-
* Was an app carrying the SDK already attached to this daemon when the agent arrived.
|
|
587
|
-
*
|
|
588
|
-
* The mirror of `AppInstrumentation.agentAttached`, and the closest available read on WHAT THE
|
|
589
|
-
* AGENT SAW. A client that attaches and never calls a tool is otherwise reachable only by
|
|
590
|
-
* subtraction: `tool_refused` cannot describe it, because an agent that reads the server
|
|
591
|
-
* instructions, learns nothing is wired and stops has refused nothing. It made no call at all.
|
|
592
|
-
*
|
|
593
|
-
* `false` means the handshake happened against a daemon with no app to look at, which is the state
|
|
594
|
-
* the first-move instructions describe and the state in which no tool could have answered
|
|
595
|
-
* anything. Split the never-drove population on this and the two halves need opposite fixes: one
|
|
596
|
-
* is an install that never finished, the other is an agent that had everything it needed and did
|
|
597
|
-
* not use it.
|
|
598
|
-
*
|
|
599
|
-
* OPTIONAL because an older sender has none. Absent means not measured, never `false`.
|
|
600
|
-
*/
|
|
601
382
|
appConnected: z.ZodOptional<z.ZodBoolean>;
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
daemonAgeMs: number;
|
|
605
|
-
client?: string | undefined;
|
|
606
|
-
appConnected?: boolean | undefined;
|
|
607
|
-
}, {
|
|
608
|
-
reconnect: boolean;
|
|
609
|
-
daemonAgeMs: number;
|
|
610
|
-
client?: string | undefined;
|
|
611
|
-
appConnected?: boolean | undefined;
|
|
612
|
-
}>;
|
|
383
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
384
|
+
}, z.core.$strip>;
|
|
613
385
|
export type McpConnection = z.infer<typeof McpConnectionSchema>;
|
|
614
386
|
/**
|
|
615
387
|
* `app_instrumented`: an app carrying the SDK reached this daemon for the first time.
|
|
@@ -620,25 +392,11 @@ export type McpConnection = z.infer<typeof McpConnectionSchema>;
|
|
|
620
392
|
* for the same daemon run, and the two join on `sessionId`.
|
|
621
393
|
*/
|
|
622
394
|
export declare const AppInstrumentationSchema: z.ZodObject<{
|
|
623
|
-
/** Whether `reticle init` had been run in this directory (a projectId is stamped). */
|
|
624
395
|
initialized: z.ZodBoolean;
|
|
625
|
-
/** Whether an MCP client was already attached when the app arrived. */
|
|
626
396
|
agentAttached: z.ZodBoolean;
|
|
627
|
-
/** How long the daemon had been up. Large values mean Reticle sat there with nothing wired. */
|
|
628
397
|
msToFirstApp: z.ZodNumber;
|
|
629
|
-
/** The first app ever on this machine + project, not just this run. Absent otherwise. */
|
|
630
398
|
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
631
|
-
},
|
|
632
|
-
msToFirstApp: number;
|
|
633
|
-
initialized: boolean;
|
|
634
|
-
agentAttached: boolean;
|
|
635
|
-
firstEver?: boolean | undefined;
|
|
636
|
-
}, {
|
|
637
|
-
msToFirstApp: number;
|
|
638
|
-
initialized: boolean;
|
|
639
|
-
agentAttached: boolean;
|
|
640
|
-
firstEver?: boolean | undefined;
|
|
641
|
-
}>;
|
|
399
|
+
}, z.core.$strip>;
|
|
642
400
|
export type AppInstrumentation = z.infer<typeof AppInstrumentationSchema>;
|
|
643
401
|
/**
|
|
644
402
|
* WHICH stage of an MCP outage this is. Reported at most twice per proxy process, and the two are
|
|
@@ -685,6 +443,11 @@ export declare const OutageReason: {
|
|
|
685
443
|
readonly SSE_CLOSED: "sse_closed";
|
|
686
444
|
/** A reconnect attempt could not reach the daemon at all. */
|
|
687
445
|
readonly CONNECT_ERROR: "connect_error";
|
|
446
|
+
/**
|
|
447
|
+
* A stream that was already serving was reset. The request saw the error before the response
|
|
448
|
+
* closed, so this used to read as `connect_error`, which says the daemon was never reached.
|
|
449
|
+
*/
|
|
450
|
+
readonly SSE_RESET: "sse_reset";
|
|
688
451
|
/** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
|
|
689
452
|
readonly OTHER: "other";
|
|
690
453
|
};
|
|
@@ -699,7 +462,7 @@ export type OutageReason = (typeof OutageReason)[keyof typeof OutageReason];
|
|
|
699
462
|
* a bare count with no cause and no recovery signal. This is the schema half of the fix.
|
|
700
463
|
*/
|
|
701
464
|
export declare const McpOutageSchema: z.ZodObject<{
|
|
702
|
-
stage: z.
|
|
465
|
+
stage: z.ZodEnum<{
|
|
703
466
|
readonly FIRST: "first";
|
|
704
467
|
readonly BUDGET_SPENT: "budget_spent";
|
|
705
468
|
/**
|
|
@@ -713,7 +476,7 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
713
476
|
*/
|
|
714
477
|
readonly RECOVERED: "recovered";
|
|
715
478
|
}>;
|
|
716
|
-
reason: z.
|
|
479
|
+
reason: z.ZodEnum<{
|
|
717
480
|
/** The SSE stream ended cleanly and nothing said why. */
|
|
718
481
|
readonly SSE_ENDED: "sse_ended";
|
|
719
482
|
/**
|
|
@@ -733,34 +496,26 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
733
496
|
readonly SSE_CLOSED: "sse_closed";
|
|
734
497
|
/** A reconnect attempt could not reach the daemon at all. */
|
|
735
498
|
readonly CONNECT_ERROR: "connect_error";
|
|
499
|
+
/**
|
|
500
|
+
* A stream that was already serving was reset. The request saw the error before the response
|
|
501
|
+
* closed, so this used to read as `connect_error`, which says the daemon was never reached.
|
|
502
|
+
*/
|
|
503
|
+
readonly SSE_RESET: "sse_reset";
|
|
736
504
|
/** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
|
|
737
505
|
readonly OTHER: "other";
|
|
738
506
|
}>;
|
|
739
|
-
/** Consecutive reconnects tried when this was reported. `first` is near 1; a spent budget is high. */
|
|
740
507
|
attempts: z.ZodNumber;
|
|
741
|
-
/**
|
|
742
|
-
* In-flight tool calls this drop actually killed — the only part an agent can FEEL.
|
|
743
|
-
*
|
|
744
|
-
* Without it every drop looks equally bad. The common outage is `stage: first` with `attempts: 1`
|
|
745
|
-
* — the stream ended once and the proxy reconnected, which for an agent with nothing in flight is
|
|
746
|
-
* invisible. Counting those as "the agent lost its tools" overstates the problem by roughly the
|
|
747
|
-
* whole total, and buries the one drop that mattered.
|
|
748
|
-
*
|
|
749
|
-
* Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
|
|
750
|
-
* worth driving down.
|
|
751
|
-
*/
|
|
752
508
|
pendingLost: z.ZodOptional<z.ZodNumber>;
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}>;
|
|
509
|
+
errCode: z.ZodOptional<z.ZodEnum<{
|
|
510
|
+
readonly ECONNRESET: "ECONNRESET";
|
|
511
|
+
readonly ECONNREFUSED: "ECONNREFUSED";
|
|
512
|
+
readonly EPIPE: "EPIPE";
|
|
513
|
+
readonly ETIMEDOUT: "ETIMEDOUT";
|
|
514
|
+
readonly OTHER: "other";
|
|
515
|
+
}>>;
|
|
516
|
+
responded: z.ZodOptional<z.ZodBoolean>;
|
|
517
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
518
|
+
}, z.core.$strip>;
|
|
764
519
|
export type McpOutage = z.infer<typeof McpOutageSchema>;
|
|
765
520
|
/**
|
|
766
521
|
* WHICH published route brought this install in.
|
|
@@ -795,6 +550,8 @@ export declare const InstallSource: {
|
|
|
795
550
|
readonly DOCS_SITE: "docs_site";
|
|
796
551
|
/** The repository README's install snippet. */
|
|
797
552
|
readonly README: "readme";
|
|
553
|
+
/** reticle.sh/blog, whose posts' install snippets carry the marker. */
|
|
554
|
+
readonly BLOG: "blog";
|
|
798
555
|
/** Somebody typed the command with no channel in front of it. Only ever self-declared. */
|
|
799
556
|
readonly CLI_DIRECT: "cli_direct";
|
|
800
557
|
/** No marker, or one this list does not name. The honest answer, and expected to dominate. */
|
|
@@ -853,23 +610,45 @@ export declare const InitConfirmation: {
|
|
|
853
610
|
readonly NO_PAGE: "no_page";
|
|
854
611
|
};
|
|
855
612
|
export type InitConfirmation = (typeof InitConfirmation)[keyof typeof InitConfirmation];
|
|
613
|
+
/**
|
|
614
|
+
* The step a failed runtime `init` stopped at. It refines `reason` and never replaces it.
|
|
615
|
+
*
|
|
616
|
+
* `dev_server` and `app_connection` each covered several stops with different fixes: no dev script,
|
|
617
|
+
* a busy port, a launcher that exited, a build that never served, a page without the SDK, a page
|
|
618
|
+
* that never dialled. The event could not tell them apart, so no fix could be aimed at the common one.
|
|
619
|
+
*/
|
|
620
|
+
export declare const InitStop: {
|
|
621
|
+
/** The project names no dev, start or serve script, and no `--url` was given. */
|
|
622
|
+
readonly NO_DEV_COMMAND: "no_dev_command";
|
|
623
|
+
/** Something answers on one loopback address and not the other, on the dev port. */
|
|
624
|
+
readonly SPLIT_LOOPBACK: "split_loopback";
|
|
625
|
+
/** The dev server said that its port is in use. */
|
|
626
|
+
readonly PORT_BUSY: "port_busy";
|
|
627
|
+
/** The dev server exited and nothing serves. */
|
|
628
|
+
readonly DEV_SERVER_EXITED: "dev_server_exited";
|
|
629
|
+
/** The dev server printed no URL and bound no port in the budget. */
|
|
630
|
+
readonly NO_URL: "no_url";
|
|
631
|
+
/** The dev server announced a URL that did not become ready in the budget. */
|
|
632
|
+
readonly NOT_READY: "not_ready";
|
|
633
|
+
/** Nothing answered the app URL when the connect wait ended. */
|
|
634
|
+
readonly PAGE_NOT_SERVED: "page_not_served";
|
|
635
|
+
/** The app URL refused the TLS handshake. */
|
|
636
|
+
readonly PAGE_TLS_REFUSED: "page_tls_refused";
|
|
637
|
+
/** The page answered, and its HTML does not load the SDK. */
|
|
638
|
+
readonly SDK_MISSING: "sdk_missing";
|
|
639
|
+
/** The page answered and no session dialled the daemon. */
|
|
640
|
+
readonly NO_SESSION: "no_session";
|
|
641
|
+
/** A desktop app never dialled the daemon. */
|
|
642
|
+
readonly DESKTOP_NO_SESSION: "desktop_no_session";
|
|
643
|
+
};
|
|
644
|
+
export type InitStop = (typeof InitStop)[keyof typeof InitStop];
|
|
856
645
|
/** How `reticle init` went. The onboarding funnel, which had no instrumentation whatsoever. */
|
|
857
646
|
export declare const InitOutcomeSchema: z.ZodObject<{
|
|
858
647
|
ok: z.ZodBoolean;
|
|
859
|
-
/** Classified cause when it failed — our vocabulary, never a raw error or a path. */
|
|
860
648
|
reason: z.ZodOptional<z.ZodString>;
|
|
861
|
-
/** The framework it detected, so we can see which stacks fail to set up. */
|
|
862
649
|
stack: z.ZodOptional<z.ZodString>;
|
|
863
|
-
/** Whether the MCP registration step succeeded — the step most likely to fail silently. */
|
|
864
650
|
mcpRegistered: z.ZodOptional<z.ZodBoolean>;
|
|
865
|
-
|
|
866
|
-
* What `init` saw when it waited for an app to connect.
|
|
867
|
-
*
|
|
868
|
-
* Default init reports CONNECTED after runtime success. Runtime failures carry a classified
|
|
869
|
-
* reason without guessing the watcher's daemon/page classification. Files-only init watches
|
|
870
|
-
* only in an interactive terminal. Absence alone is not evidence of a failed connection.
|
|
871
|
-
*/
|
|
872
|
-
confirmation: z.ZodOptional<z.ZodNativeEnum<{
|
|
651
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
873
652
|
/** An app carrying the SDK reached the daemon while `init` watched. This is what installed means. */
|
|
874
653
|
readonly CONNECTED: "connected";
|
|
875
654
|
/** Nothing was listening on the bridge port, so no session could arrive. Not a failed install. */
|
|
@@ -892,33 +671,71 @@ export declare const InitOutcomeSchema: z.ZodObject<{
|
|
|
892
671
|
*/
|
|
893
672
|
readonly NO_PAGE: "no_page";
|
|
894
673
|
}>>;
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
674
|
+
stop: z.ZodOptional<z.ZodEnum<{
|
|
675
|
+
/** The project names no dev, start or serve script, and no `--url` was given. */
|
|
676
|
+
readonly NO_DEV_COMMAND: "no_dev_command";
|
|
677
|
+
/** Something answers on one loopback address and not the other, on the dev port. */
|
|
678
|
+
readonly SPLIT_LOOPBACK: "split_loopback";
|
|
679
|
+
/** The dev server said that its port is in use. */
|
|
680
|
+
readonly PORT_BUSY: "port_busy";
|
|
681
|
+
/** The dev server exited and nothing serves. */
|
|
682
|
+
readonly DEV_SERVER_EXITED: "dev_server_exited";
|
|
683
|
+
/** The dev server printed no URL and bound no port in the budget. */
|
|
684
|
+
readonly NO_URL: "no_url";
|
|
685
|
+
/** The dev server announced a URL that did not become ready in the budget. */
|
|
686
|
+
readonly NOT_READY: "not_ready";
|
|
687
|
+
/** Nothing answered the app URL when the connect wait ended. */
|
|
688
|
+
readonly PAGE_NOT_SERVED: "page_not_served";
|
|
689
|
+
/** The app URL refused the TLS handshake. */
|
|
690
|
+
readonly PAGE_TLS_REFUSED: "page_tls_refused";
|
|
691
|
+
/** The page answered, and its HTML does not load the SDK. */
|
|
692
|
+
readonly SDK_MISSING: "sdk_missing";
|
|
693
|
+
/** The page answered and no session dialled the daemon. */
|
|
694
|
+
readonly NO_SESSION: "no_session";
|
|
695
|
+
/** A desktop app never dialled the daemon. */
|
|
696
|
+
readonly DESKTOP_NO_SESSION: "desktop_no_session";
|
|
697
|
+
}>>;
|
|
698
|
+
}, z.core.$strip>;
|
|
908
699
|
export type InitOutcome = z.infer<typeof InitOutcomeSchema>;
|
|
909
700
|
/**
|
|
910
701
|
* One anonymous telemetry event. `anonymousId` and the optional hashed `projectId` are the only
|
|
911
702
|
* identifiers; everything else is a low-cardinality dimension for slicing the adoption metrics.
|
|
912
703
|
*/
|
|
913
704
|
export declare const TelemetryEventSchema: z.ZodObject<{
|
|
914
|
-
|
|
705
|
+
proxyExit: z.ZodOptional<z.ZodObject<{
|
|
706
|
+
reason: z.ZodEnum<{
|
|
707
|
+
readonly STDIN_END: "stdin_end";
|
|
708
|
+
readonly IDLE: "idle";
|
|
709
|
+
readonly CLIENT_GONE_STORM: "client_gone_storm";
|
|
710
|
+
readonly WAKE_FAILED: "wake_failed";
|
|
711
|
+
}>;
|
|
712
|
+
uptimeMs: z.ZodNumber;
|
|
713
|
+
drops: z.ZodNumber;
|
|
714
|
+
toolCalls: z.ZodNumber;
|
|
715
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
716
|
+
}, z.core.$strip>>;
|
|
717
|
+
daemonDeath: z.ZodOptional<z.ZodObject<{
|
|
718
|
+
ageMs: z.ZodNumber;
|
|
719
|
+
}, z.core.$strip>>;
|
|
720
|
+
wakeRefusal: z.ZodOptional<z.ZodObject<{
|
|
721
|
+
presence: z.ZodEnum<{
|
|
722
|
+
readonly FOREIGN: "foreign";
|
|
723
|
+
readonly OTHER_PROJECT: "other_project";
|
|
724
|
+
}>;
|
|
725
|
+
}, z.core.$strip>>;
|
|
726
|
+
spawnMethod: z.ZodOptional<z.ZodEnum<{
|
|
727
|
+
readonly DETACHED: "detached";
|
|
728
|
+
readonly WMI: "wmi";
|
|
729
|
+
readonly WMI_FALLBACK: "wmi_fallback";
|
|
730
|
+
}>>;
|
|
731
|
+
accountState: z.ZodOptional<z.ZodEnum<{
|
|
915
732
|
readonly SIGNED_OUT: "signed_out";
|
|
916
733
|
readonly SIGNED_IN: "signed_in";
|
|
917
734
|
readonly LINKED: "linked";
|
|
918
735
|
}>>;
|
|
919
736
|
linked: z.ZodOptional<z.ZodBoolean>;
|
|
920
737
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
921
|
-
client: z.ZodOptional<z.
|
|
738
|
+
client: z.ZodOptional<z.ZodEnum<{
|
|
922
739
|
readonly CLAUDE_CODE: "claude_code";
|
|
923
740
|
readonly CLAUDE_DESKTOP: "claude_desktop";
|
|
924
741
|
readonly CODEX: "codex";
|
|
@@ -932,14 +749,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
932
749
|
readonly VSCODE: "vscode";
|
|
933
750
|
readonly OTHER: "other";
|
|
934
751
|
}>>;
|
|
935
|
-
launch: z.ZodOptional<z.
|
|
752
|
+
launch: z.ZodOptional<z.ZodEnum<{
|
|
936
753
|
readonly NPX: "npx";
|
|
937
754
|
readonly GLOBAL: "global";
|
|
938
755
|
readonly PROJECT: "project";
|
|
939
756
|
readonly OTHER: "other";
|
|
940
757
|
}>>;
|
|
941
758
|
hud: z.ZodOptional<z.ZodObject<{
|
|
942
|
-
view: z.ZodOptional<z.
|
|
759
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
943
760
|
readonly CHAT: "chat";
|
|
944
761
|
readonly FLOWS: "flows";
|
|
945
762
|
readonly NOTES: "notes";
|
|
@@ -949,44 +766,32 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
949
766
|
readonly ACCOUNT: "account";
|
|
950
767
|
readonly NONE: "none";
|
|
951
768
|
}>>;
|
|
952
|
-
surface: z.ZodOptional<z.
|
|
769
|
+
surface: z.ZodOptional<z.ZodEnum<{
|
|
953
770
|
readonly RAIL: "rail";
|
|
954
771
|
readonly HARNESS: "harness";
|
|
955
772
|
readonly HEADER: "header";
|
|
956
773
|
}>>;
|
|
957
|
-
tabs: z.ZodOptional<z.
|
|
774
|
+
tabs: z.ZodOptional<z.ZodEnum<{
|
|
958
775
|
readonly ZERO: "0";
|
|
959
776
|
readonly ONE: "1";
|
|
960
777
|
readonly TWO_THREE: "2-3";
|
|
961
778
|
readonly FOUR_NINE: "4-9";
|
|
962
779
|
readonly TEN_PLUS: "10+";
|
|
963
780
|
}>>;
|
|
964
|
-
},
|
|
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
|
-
}>>;
|
|
781
|
+
}, z.core.$strip>>;
|
|
973
782
|
link: z.ZodOptional<z.ZodObject<{
|
|
974
|
-
via: z.
|
|
783
|
+
via: z.ZodEnum<{
|
|
975
784
|
readonly CONNECT: "connect";
|
|
976
785
|
readonly HUD: "hud";
|
|
977
786
|
readonly LINK: "link";
|
|
978
787
|
}>;
|
|
979
|
-
},
|
|
980
|
-
via: "hud" | "link" | "connect";
|
|
981
|
-
}, {
|
|
982
|
-
via: "hud" | "link" | "connect";
|
|
983
|
-
}>>;
|
|
788
|
+
}, z.core.$strip>>;
|
|
984
789
|
harness: z.ZodOptional<z.ZodObject<{
|
|
985
|
-
phase: z.
|
|
790
|
+
phase: z.ZodEnum<{
|
|
986
791
|
readonly STARTED: "started";
|
|
987
792
|
readonly COMPLETED: "completed";
|
|
988
793
|
}>;
|
|
989
|
-
source: z.
|
|
794
|
+
source: z.ZodEnum<{
|
|
990
795
|
readonly AGENT: "agent";
|
|
991
796
|
readonly HUD: "hud";
|
|
992
797
|
readonly DASHBOARD: "dashboard";
|
|
@@ -994,63 +799,44 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
994
799
|
readonly PLAN: "plan";
|
|
995
800
|
}>;
|
|
996
801
|
hosted: z.ZodBoolean;
|
|
997
|
-
outcome: z.ZodOptional<z.
|
|
802
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
998
803
|
readonly PROVED: "proved";
|
|
999
804
|
readonly NOT_PROVED: "not_proved";
|
|
1000
805
|
readonly FAILED: "failed";
|
|
1001
806
|
readonly BLOCKED: "blocked";
|
|
1002
807
|
readonly STOPPED: "stopped";
|
|
1003
808
|
}>>;
|
|
1004
|
-
journeys: z.ZodOptional<z.
|
|
809
|
+
journeys: z.ZodOptional<z.ZodEnum<{
|
|
1005
810
|
readonly ZERO: "0";
|
|
1006
811
|
readonly ONE: "1";
|
|
1007
812
|
readonly TWO_THREE: "2-3";
|
|
1008
813
|
readonly FOUR_NINE: "4-9";
|
|
1009
814
|
readonly TEN_PLUS: "10+";
|
|
1010
815
|
}>>;
|
|
1011
|
-
replayed: z.ZodOptional<z.
|
|
816
|
+
replayed: z.ZodOptional<z.ZodEnum<{
|
|
1012
817
|
readonly ZERO: "0";
|
|
1013
818
|
readonly ONE: "1";
|
|
1014
819
|
readonly TWO_THREE: "2-3";
|
|
1015
820
|
readonly FOUR_NINE: "4-9";
|
|
1016
821
|
readonly TEN_PLUS: "10+";
|
|
1017
822
|
}>>;
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
journeys?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
1031
|
-
replayed?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
1032
|
-
}>>;
|
|
823
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
824
|
+
readonly NOT_LINKED: "not_linked";
|
|
825
|
+
readonly PLATFORM_UNREACHABLE: "platform_unreachable";
|
|
826
|
+
readonly HARNESS_OFF: "harness_off";
|
|
827
|
+
readonly NO_CREDITS: "no_credits";
|
|
828
|
+
readonly NOT_ENTITLED: "not_entitled";
|
|
829
|
+
readonly COVERAGE_GATE: "coverage_gate";
|
|
830
|
+
readonly VERSION_SKEW: "version_skew";
|
|
831
|
+
readonly BROKEN: "broken";
|
|
832
|
+
readonly OTHER: "other";
|
|
833
|
+
}>>;
|
|
834
|
+
}, z.core.$strip>>;
|
|
1033
835
|
v: z.ZodLiteral<3>;
|
|
1034
|
-
/** Random UUID persisted at `~/.reticle/telemetry-id`. Distinct-count of this = users (DAU/WAU/MAU). */
|
|
1035
836
|
anonymousId: z.ZodString;
|
|
1036
|
-
/** One-way hash of the git remote (or cwd) — counts DISTINCT PROJECTS without revealing any of them. */
|
|
1037
837
|
projectId: z.ZodOptional<z.ZodString>;
|
|
1038
|
-
/**
|
|
1039
|
-
* One daemon run. Ties `daemon_started` → every verification → a crash → `daemon_stopped` into a
|
|
1040
|
-
* single story.
|
|
1041
|
-
*
|
|
1042
|
-
* Without it, events could only be grouped by machine and approximate time — so "what was happening
|
|
1043
|
-
* when this crashed?" was unanswerable, three concurrent daemons on one machine (which the product
|
|
1044
|
-
* explicitly supports) interleaved into one undifferentiated stream, and no per-session funnel could
|
|
1045
|
-
* be built at all. It cannot be backfilled, which is why it is worth adding before the data matters.
|
|
1046
|
-
*/
|
|
1047
|
-
/**
|
|
1048
|
-
* The daemon run this happened inside. ABSENT on one-shot CLI events — see isSessionScoped: a
|
|
1049
|
-
* per-process id on `reticle status` is not a session, it is a number that inflates every session
|
|
1050
|
-
* count and joins to nothing.
|
|
1051
|
-
*/
|
|
1052
838
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1053
|
-
event: z.
|
|
839
|
+
event: z.ZodEnum<{
|
|
1054
840
|
/** First-ever run on this machine — powers install count + the new-user curve. */
|
|
1055
841
|
readonly RETICLE_INSTALLED: "reticle_installed";
|
|
1056
842
|
/**
|
|
@@ -1078,7 +864,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1078
864
|
* tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
|
|
1079
865
|
* an exit's name therefore describes active sessions at one end and abandoned ones at the other.
|
|
1080
866
|
*
|
|
1081
|
-
* Count
|
|
867
|
+
* Count daemon runs with DAEMON_STARTED, clean exits with DAEMON_STOPPED. Sum work with both.
|
|
1082
868
|
*/
|
|
1083
869
|
readonly SESSION_PROGRESS: "session_progress";
|
|
1084
870
|
/**
|
|
@@ -1092,7 +878,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1092
878
|
* between a retention problem and an activation problem. Once per daemon start, so it is cheap.
|
|
1093
879
|
*/
|
|
1094
880
|
readonly PROJECT_PROFILED: "project_profiled";
|
|
1095
|
-
/**
|
|
881
|
+
/**
|
|
882
|
+
* A start found a version that differs from the last start on this machine, or `reticle update` /
|
|
883
|
+
* `reticle rollback` moved it. Carries from → to.
|
|
884
|
+
*/
|
|
1096
885
|
readonly VERSION_CHANGED: "version_changed";
|
|
1097
886
|
/** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
|
|
1098
887
|
readonly RUNTIME_CRASHED: "runtime_crashed";
|
|
@@ -1155,6 +944,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1155
944
|
* that decides whether this is fixed.
|
|
1156
945
|
*/
|
|
1157
946
|
readonly MCP_CONNECTION_LOST: "mcp_connection_lost";
|
|
947
|
+
/**
|
|
948
|
+
* The MCP proxy process ended. The agent lost its tools until the client starts a new one.
|
|
949
|
+
*
|
|
950
|
+
* `mcp_connection_lost` cannot see this: the stream to the daemon can be healthy when the proxy
|
|
951
|
+
* leaves. Sent even when the proxy has no other counts to report. See `ProxyExitSchema`.
|
|
952
|
+
*/
|
|
953
|
+
readonly MCP_PROXY_EXITED: "mcp_proxy_exited";
|
|
954
|
+
/** A daemon start found the pidfile of a daemon that died without a clean stop. */
|
|
955
|
+
readonly DAEMON_DIED_UNCLEAN: "daemon_died_unclean";
|
|
956
|
+
/** The proxy found the daemon port held by a stranger or by another project, and did not use it. */
|
|
957
|
+
readonly WAKE_REFUSED: "wake_refused";
|
|
1158
958
|
/**
|
|
1159
959
|
* `reticle init` finished. The onboarding funnel had no instrumentation at all, so a setup that
|
|
1160
960
|
* failed on a missing dependency was indistinguishable from a user who never tried.
|
|
@@ -1194,22 +994,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1194
994
|
/** A Harness run started, or ended: one of each per run. */
|
|
1195
995
|
readonly HARNESS_RUN: "harness_run";
|
|
1196
996
|
}>;
|
|
1197
|
-
/** Client epoch-ms when the event happened (the server also stamps its own receive time). */
|
|
1198
997
|
ts: z.ZodNumber;
|
|
1199
|
-
/** Reticle version emitting the event — lets us see adoption of new releases + version spread. */
|
|
1200
998
|
version: z.ZodString;
|
|
1201
|
-
/** Runs inside CI? Separates real human DAU from pipeline traffic (both matter, differently). */
|
|
1202
999
|
ci: z.ZodBoolean;
|
|
1203
|
-
|
|
1204
|
-
* ADVISORY hint that this run looks automated, when something beyond `CI` suggests it.
|
|
1205
|
-
*
|
|
1206
|
-
* `ci` reads one environment variable, which is right for a GitHub Actions runner and blind to a
|
|
1207
|
-
* cloud agent sandbox, which lands in the data with `ci: false`. This is the
|
|
1208
|
-
* second angle, and it is NEVER a filter: people work in containers, in Codespaces, and over ssh
|
|
1209
|
-
* with no terminal. Never exclude a row because this is set; absent means nothing looked
|
|
1210
|
-
* automated, not that a human was present. See automation-hint.ts for the rejected signals.
|
|
1211
|
-
*/
|
|
1212
|
-
automation: z.ZodOptional<z.ZodNativeEnum<{
|
|
1000
|
+
automation: z.ZodOptional<z.ZodEnum<{
|
|
1213
1001
|
/** A container runtime marker is present at the filesystem root. */
|
|
1214
1002
|
readonly CONTAINER: "container";
|
|
1215
1003
|
/** A hosted dev environment declared itself (Codespaces, Gitpod, Cloud Shell, dev container). */
|
|
@@ -1222,12 +1010,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1222
1010
|
/** A hosted coding-agent sandbox declared itself (a remote agent session, not a laptop). */
|
|
1223
1011
|
readonly AGENT_SANDBOX: "agent_sandbox";
|
|
1224
1012
|
}>>;
|
|
1225
|
-
|
|
1226
|
-
* What `projectId` was derived from. On EVERY event, not just the profile, because the core
|
|
1227
|
-
* counting questions ("users per project", "projects per user") run over all events and need to
|
|
1228
|
-
* know which rows are comparable across machines without joining to another event first.
|
|
1229
|
-
*/
|
|
1230
|
-
projectIdSource: z.ZodOptional<z.ZodNativeEnum<{
|
|
1013
|
+
projectIdSource: z.ZodOptional<z.ZodEnum<{
|
|
1231
1014
|
/** Hash of the shared git origin — the same on every clone, so cross-machine counting is valid. */
|
|
1232
1015
|
readonly GIT_ORIGIN: "git_origin";
|
|
1233
1016
|
/** Hash of the repo ROOT path — machine-local, but the same for every directory inside the repo. */
|
|
@@ -1237,33 +1020,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1237
1020
|
/** Hash of the raw working directory — the last resort, and the only source that is NOT stable. */
|
|
1238
1021
|
readonly CWD: "cwd";
|
|
1239
1022
|
}>>;
|
|
1240
|
-
/** `process.platform` (darwin/linux/win32) — OS mix, low cardinality, non-identifying. */
|
|
1241
1023
|
os: z.ZodString;
|
|
1242
|
-
/**
|
|
1243
|
-
* Minutes this machine's local time is offset from UTC.
|
|
1244
|
-
*
|
|
1245
|
-
* "When do they work" was answerable only through ingest-side GeoIP, which may be off and is a
|
|
1246
|
-
* coarser thing than a working day. One integer, no location, identifies nobody — and it turns
|
|
1247
|
-
* every time-of-day tile from "which continent" into "9am or 11pm".
|
|
1248
|
-
*/
|
|
1249
1024
|
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
1025
|
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
1026
|
idEphemeral: z.ZodOptional<z.ZodBoolean>;
|
|
1260
|
-
/** Only on `feedback`: the author-submitted report + its environment context. Never sent otherwise. */
|
|
1261
1027
|
feedback: z.ZodOptional<z.ZodObject<{
|
|
1262
|
-
source: z.
|
|
1028
|
+
source: z.ZodEnum<{
|
|
1263
1029
|
readonly AGENT: "agent";
|
|
1264
1030
|
readonly HUMAN: "human";
|
|
1265
1031
|
}>;
|
|
1266
|
-
kind: z.
|
|
1032
|
+
kind: z.ZodEnum<{
|
|
1267
1033
|
readonly BUG: "bug";
|
|
1268
1034
|
readonly GAP: "gap";
|
|
1269
1035
|
readonly AMBIGUITY: "ambiguity";
|
|
@@ -1281,76 +1047,33 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1281
1047
|
clientVersion: z.ZodOptional<z.ZodString>;
|
|
1282
1048
|
stack: z.ZodOptional<z.ZodString>;
|
|
1283
1049
|
stackMajor: z.ZodOptional<z.ZodNumber>;
|
|
1284
|
-
runtime: z.ZodOptional<z.
|
|
1050
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
1285
1051
|
readonly WEB: "web";
|
|
1286
1052
|
readonly ELECTRON: "electron";
|
|
1287
1053
|
readonly TAURI: "tauri";
|
|
1288
1054
|
}>>;
|
|
1289
|
-
engine: z.ZodOptional<z.
|
|
1055
|
+
engine: z.ZodOptional<z.ZodEnum<{
|
|
1290
1056
|
readonly BLINK: "blink";
|
|
1291
1057
|
readonly GECKO: "gecko";
|
|
1292
1058
|
readonly WEBKIT: "webkit";
|
|
1293
1059
|
}>>;
|
|
1294
|
-
driver: z.ZodOptional<z.
|
|
1060
|
+
driver: z.ZodOptional<z.ZodEnum<{
|
|
1295
1061
|
readonly CDP: "cdp";
|
|
1296
1062
|
readonly SDK: "sdk";
|
|
1297
1063
|
}>>;
|
|
1298
1064
|
client: z.ZodOptional<z.ZodString>;
|
|
1299
|
-
mcpScope: z.ZodOptional<z.
|
|
1065
|
+
mcpScope: z.ZodOptional<z.ZodEnum<{
|
|
1300
1066
|
readonly USER: "user";
|
|
1301
1067
|
readonly PROJECT: "project";
|
|
1302
1068
|
}>>;
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
source: "agent" | "human";
|
|
1307
|
-
impact?: string | undefined;
|
|
1308
|
-
model?: string | undefined;
|
|
1309
|
-
trace?: string | undefined;
|
|
1310
|
-
rating?: number | undefined;
|
|
1311
|
-
need?: string | undefined;
|
|
1312
|
-
currentApproach?: string | undefined;
|
|
1313
|
-
clientVersion?: string | undefined;
|
|
1314
|
-
stack?: string | undefined;
|
|
1315
|
-
stackMajor?: number | undefined;
|
|
1316
|
-
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
1317
|
-
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
1318
|
-
driver?: "cdp" | "sdk" | undefined;
|
|
1319
|
-
client?: string | undefined;
|
|
1320
|
-
mcpScope?: "project" | "user" | undefined;
|
|
1321
|
-
}, {
|
|
1322
|
-
text: string;
|
|
1323
|
-
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1324
|
-
source: "agent" | "human";
|
|
1325
|
-
impact?: string | undefined;
|
|
1326
|
-
model?: string | undefined;
|
|
1327
|
-
trace?: string | undefined;
|
|
1328
|
-
rating?: number | undefined;
|
|
1329
|
-
need?: string | undefined;
|
|
1330
|
-
currentApproach?: string | undefined;
|
|
1331
|
-
clientVersion?: string | undefined;
|
|
1332
|
-
stack?: string | undefined;
|
|
1333
|
-
stackMajor?: number | undefined;
|
|
1334
|
-
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
1335
|
-
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
1336
|
-
driver?: "cdp" | "sdk" | undefined;
|
|
1337
|
-
client?: string | undefined;
|
|
1338
|
-
mcpScope?: "project" | "user" | undefined;
|
|
1339
|
-
}>>;
|
|
1340
|
-
/** Human or agent. Absent on events that are neither (a crash, a version change). */
|
|
1341
|
-
actor: z.ZodOptional<z.ZodNativeEnum<{
|
|
1069
|
+
contact: z.ZodOptional<z.ZodString>;
|
|
1070
|
+
}, z.core.$strip>>;
|
|
1071
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
1342
1072
|
readonly HUMAN: "human";
|
|
1343
1073
|
readonly AGENT: "agent";
|
|
1344
1074
|
}>>;
|
|
1345
|
-
/** Only on `cli_command_run`: which subcommand. */
|
|
1346
1075
|
command: z.ZodOptional<z.ZodString>;
|
|
1347
|
-
|
|
1348
|
-
* Only on `cli_command_run`: which flags were PRESENT, by name. Never their values — a flag value
|
|
1349
|
-
* is a port, a URL, a file path, or in `--http-token`'s case a secret. Names alone answer the
|
|
1350
|
-
* question ("does anyone use `--storage-state`?") with none of that risk.
|
|
1351
|
-
*/
|
|
1352
|
-
flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1353
|
-
/** Only on `daemon_stopped`: the whole session rolled into one event. */
|
|
1076
|
+
flags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1354
1077
|
session: z.ZodOptional<z.ZodObject<{
|
|
1355
1078
|
durationMs: z.ZodNumber;
|
|
1356
1079
|
toolCalls: z.ZodNumber;
|
|
@@ -1361,34 +1084,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1361
1084
|
count: z.ZodNumber;
|
|
1362
1085
|
message: z.ZodString;
|
|
1363
1086
|
tool: z.ZodOptional<z.ZodString>;
|
|
1364
|
-
},
|
|
1365
|
-
message: string;
|
|
1366
|
-
count: number;
|
|
1367
|
-
fingerprint: string;
|
|
1368
|
-
tool?: string | undefined;
|
|
1369
|
-
}, {
|
|
1370
|
-
message: string;
|
|
1371
|
-
count: number;
|
|
1372
|
-
fingerprint: string;
|
|
1373
|
-
tool?: string | undefined;
|
|
1374
|
-
}>, "many">>;
|
|
1087
|
+
}, z.core.$strip>>>;
|
|
1375
1088
|
sdkFailures: z.ZodOptional<z.ZodNumber>;
|
|
1376
1089
|
sdkErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1377
1090
|
fingerprint: z.ZodString;
|
|
1378
1091
|
count: z.ZodNumber;
|
|
1379
1092
|
message: z.ZodString;
|
|
1380
1093
|
tool: z.ZodOptional<z.ZodString>;
|
|
1381
|
-
},
|
|
1382
|
-
message: string;
|
|
1383
|
-
count: number;
|
|
1384
|
-
fingerprint: string;
|
|
1385
|
-
tool?: string | undefined;
|
|
1386
|
-
}, {
|
|
1387
|
-
message: string;
|
|
1388
|
-
count: number;
|
|
1389
|
-
fingerprint: string;
|
|
1390
|
-
tool?: string | undefined;
|
|
1391
|
-
}>, "many">>;
|
|
1094
|
+
}, z.core.$strip>>>;
|
|
1392
1095
|
verifications: z.ZodNumber;
|
|
1393
1096
|
bugsFound: z.ZodOptional<z.ZodNumber>;
|
|
1394
1097
|
bugKinds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
@@ -1397,25 +1100,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1397
1100
|
attempts: z.ZodNumber;
|
|
1398
1101
|
successes: z.ZodNumber;
|
|
1399
1102
|
failures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1400
|
-
},
|
|
1401
|
-
attempts: number;
|
|
1402
|
-
successes: number;
|
|
1403
|
-
failures?: Record<string, number> | undefined;
|
|
1404
|
-
}, {
|
|
1405
|
-
attempts: number;
|
|
1406
|
-
successes: number;
|
|
1407
|
-
failures?: Record<string, number> | undefined;
|
|
1408
|
-
}>>>;
|
|
1103
|
+
}, z.core.$strip>>>;
|
|
1409
1104
|
toolTiming: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1410
1105
|
totalMs: z.ZodNumber;
|
|
1411
1106
|
maxMs: z.ZodNumber;
|
|
1412
|
-
},
|
|
1413
|
-
totalMs: number;
|
|
1414
|
-
maxMs: number;
|
|
1415
|
-
}, {
|
|
1416
|
-
totalMs: number;
|
|
1417
|
-
maxMs: number;
|
|
1418
|
-
}>>>;
|
|
1107
|
+
}, z.core.$strip>>>;
|
|
1419
1108
|
busyMs: z.ZodOptional<z.ZodNumber>;
|
|
1420
1109
|
browserMs: z.ZodOptional<z.ZodNumber>;
|
|
1421
1110
|
browserCommands: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1434,27 +1123,21 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1434
1123
|
totalMemMb: z.ZodNumber;
|
|
1435
1124
|
load1x100: z.ZodNumber;
|
|
1436
1125
|
cpuCount: z.ZodNumber;
|
|
1437
|
-
},
|
|
1438
|
-
|
|
1439
|
-
heapUsedMb: number;
|
|
1440
|
-
freeMemMb: number;
|
|
1441
|
-
totalMemMb: number;
|
|
1442
|
-
load1x100: number;
|
|
1443
|
-
cpuCount: number;
|
|
1444
|
-
}, {
|
|
1445
|
-
rssMb: number;
|
|
1446
|
-
heapUsedMb: number;
|
|
1447
|
-
freeMemMb: number;
|
|
1448
|
-
totalMemMb: number;
|
|
1449
|
-
load1x100: number;
|
|
1450
|
-
cpuCount: number;
|
|
1451
|
-
}>>;
|
|
1452
|
-
clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1126
|
+
}, z.core.$strip>>;
|
|
1127
|
+
clients: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1453
1128
|
clientVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1454
1129
|
surface: z.ZodOptional<z.ZodString>;
|
|
1455
1130
|
appConnects: z.ZodOptional<z.ZodNumber>;
|
|
1456
1131
|
msToFirstApp: z.ZodOptional<z.ZodNumber>;
|
|
1457
|
-
|
|
1132
|
+
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
1133
|
+
toolCallsBeforeApp: z.ZodOptional<z.ZodNumber>;
|
|
1134
|
+
endReason: z.ZodOptional<z.ZodEnum<{
|
|
1135
|
+
verified: "verified";
|
|
1136
|
+
abandoned: "abandoned";
|
|
1137
|
+
never_used: "never_used";
|
|
1138
|
+
explored: "explored";
|
|
1139
|
+
client_left: "client_left";
|
|
1140
|
+
}>>;
|
|
1458
1141
|
feedbackPrompted: z.ZodOptional<z.ZodNumber>;
|
|
1459
1142
|
errorClasses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1460
1143
|
errorsRecovered: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1469,181 +1152,35 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1469
1152
|
hudViewMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1470
1153
|
hudPanelMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1471
1154
|
hudSlides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1472
|
-
hudJourney: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1155
|
+
hudJourney: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1473
1156
|
hudJourneyCut: z.ZodOptional<z.ZodLiteral<true>>;
|
|
1474
|
-
nudgesShown: z.ZodOptional<z.ZodRecord<z.
|
|
1157
|
+
nudgesShown: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1475
1158
|
readonly CONNECT: "connect";
|
|
1476
1159
|
readonly CLOSE_GAPS: "close_gaps";
|
|
1477
1160
|
readonly SWITCH_ON: "switch_on";
|
|
1478
1161
|
readonly EXPLORE: "explore";
|
|
1479
|
-
}
|
|
1480
|
-
harnessRefusedCoverage: z.ZodOptional<z.ZodRecord<z.
|
|
1162
|
+
}> & z.core.$partial, z.ZodNumber>>;
|
|
1163
|
+
harnessRefusedCoverage: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
1481
1164
|
readonly B0: "0-19";
|
|
1482
1165
|
readonly B20: "20-39";
|
|
1483
1166
|
readonly B40: "40-59";
|
|
1484
1167
|
readonly B60: "60-79";
|
|
1485
1168
|
readonly B80: "80-100";
|
|
1486
|
-
}
|
|
1169
|
+
}> & z.core.$partial, z.ZodNumber>>;
|
|
1487
1170
|
final: z.ZodBoolean;
|
|
1488
|
-
exit: z.ZodOptional<z.ZodEnum<
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
verifications: number;
|
|
1495
|
-
final: boolean;
|
|
1496
|
-
surface?: string | undefined;
|
|
1497
|
-
errors?: {
|
|
1498
|
-
message: string;
|
|
1499
|
-
count: number;
|
|
1500
|
-
fingerprint: string;
|
|
1501
|
-
tool?: string | undefined;
|
|
1502
|
-
}[] | undefined;
|
|
1503
|
-
sdkFailures?: number | undefined;
|
|
1504
|
-
sdkErrors?: {
|
|
1505
|
-
message: string;
|
|
1506
|
-
count: number;
|
|
1507
|
-
fingerprint: string;
|
|
1508
|
-
tool?: string | undefined;
|
|
1509
|
-
}[] | undefined;
|
|
1510
|
-
bugsFound?: number | undefined;
|
|
1511
|
-
bugKinds?: Record<string, number> | undefined;
|
|
1512
|
-
toolParams?: Record<string, Record<string, number>> | undefined;
|
|
1513
|
-
connections?: Record<string, {
|
|
1514
|
-
attempts: number;
|
|
1515
|
-
successes: number;
|
|
1516
|
-
failures?: Record<string, number> | undefined;
|
|
1517
|
-
}> | undefined;
|
|
1518
|
-
toolTiming?: Record<string, {
|
|
1519
|
-
totalMs: number;
|
|
1520
|
-
maxMs: number;
|
|
1521
|
-
}> | undefined;
|
|
1522
|
-
busyMs?: number | undefined;
|
|
1523
|
-
browserMs?: number | undefined;
|
|
1524
|
-
browserCommands?: number | undefined;
|
|
1525
|
-
peakConcurrentTools?: number | undefined;
|
|
1526
|
-
unknownToolCalls?: number | undefined;
|
|
1527
|
-
unknownTools?: Record<string, number> | undefined;
|
|
1528
|
-
noSessionErrors?: number | undefined;
|
|
1529
|
-
postSocketFailures?: number | undefined;
|
|
1530
|
-
postRetriesSaved?: number | undefined;
|
|
1531
|
-
consecutiveRepeats?: Record<string, number> | undefined;
|
|
1532
|
-
abandonedActions?: number | undefined;
|
|
1533
|
-
machine?: {
|
|
1534
|
-
rssMb: number;
|
|
1535
|
-
heapUsedMb: number;
|
|
1536
|
-
freeMemMb: number;
|
|
1537
|
-
totalMemMb: number;
|
|
1538
|
-
load1x100: number;
|
|
1539
|
-
cpuCount: number;
|
|
1540
|
-
} | undefined;
|
|
1541
|
-
clients?: string[] | undefined;
|
|
1542
|
-
clientVersions?: Record<string, string> | undefined;
|
|
1543
|
-
appConnects?: number | undefined;
|
|
1544
|
-
msToFirstApp?: number | undefined;
|
|
1545
|
-
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
1546
|
-
feedbackPrompted?: number | undefined;
|
|
1547
|
-
errorClasses?: Record<string, number> | undefined;
|
|
1548
|
-
errorsRecovered?: number | undefined;
|
|
1549
|
-
errorsRepeated?: number | undefined;
|
|
1550
|
-
endedWithVerdict?: boolean | undefined;
|
|
1551
|
-
lifetimeToolCalls?: number | undefined;
|
|
1552
|
-
lifetimeVerifications?: number | undefined;
|
|
1553
|
-
lifetimeBugsFound?: number | undefined;
|
|
1554
|
-
updateNudged?: boolean | undefined;
|
|
1555
|
-
updateOffered?: string | undefined;
|
|
1556
|
-
hudControls?: Record<string, number> | undefined;
|
|
1557
|
-
hudViewMs?: Record<string, number> | undefined;
|
|
1558
|
-
hudPanelMs?: Record<string, number> | undefined;
|
|
1559
|
-
hudSlides?: Record<string, number> | undefined;
|
|
1560
|
-
hudJourney?: string[] | undefined;
|
|
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;
|
|
1564
|
-
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1565
|
-
}, {
|
|
1566
|
-
durationMs: number;
|
|
1567
|
-
toolCalls: number;
|
|
1568
|
-
toolCounts: Record<string, number>;
|
|
1569
|
-
toolErrors: number;
|
|
1570
|
-
verifications: number;
|
|
1571
|
-
final: boolean;
|
|
1572
|
-
surface?: string | undefined;
|
|
1573
|
-
errors?: {
|
|
1574
|
-
message: string;
|
|
1575
|
-
count: number;
|
|
1576
|
-
fingerprint: string;
|
|
1577
|
-
tool?: string | undefined;
|
|
1578
|
-
}[] | undefined;
|
|
1579
|
-
sdkFailures?: number | undefined;
|
|
1580
|
-
sdkErrors?: {
|
|
1581
|
-
message: string;
|
|
1582
|
-
count: number;
|
|
1583
|
-
fingerprint: string;
|
|
1584
|
-
tool?: string | undefined;
|
|
1585
|
-
}[] | undefined;
|
|
1586
|
-
bugsFound?: number | undefined;
|
|
1587
|
-
bugKinds?: Record<string, number> | undefined;
|
|
1588
|
-
toolParams?: Record<string, Record<string, number>> | undefined;
|
|
1589
|
-
connections?: Record<string, {
|
|
1590
|
-
attempts: number;
|
|
1591
|
-
successes: number;
|
|
1592
|
-
failures?: Record<string, number> | undefined;
|
|
1593
|
-
}> | undefined;
|
|
1594
|
-
toolTiming?: Record<string, {
|
|
1595
|
-
totalMs: number;
|
|
1596
|
-
maxMs: number;
|
|
1597
|
-
}> | undefined;
|
|
1598
|
-
busyMs?: number | undefined;
|
|
1599
|
-
browserMs?: number | undefined;
|
|
1600
|
-
browserCommands?: number | undefined;
|
|
1601
|
-
peakConcurrentTools?: number | undefined;
|
|
1602
|
-
unknownToolCalls?: number | undefined;
|
|
1603
|
-
unknownTools?: Record<string, number> | undefined;
|
|
1604
|
-
noSessionErrors?: number | undefined;
|
|
1605
|
-
postSocketFailures?: number | undefined;
|
|
1606
|
-
postRetriesSaved?: number | undefined;
|
|
1607
|
-
consecutiveRepeats?: Record<string, number> | undefined;
|
|
1608
|
-
abandonedActions?: number | undefined;
|
|
1609
|
-
machine?: {
|
|
1610
|
-
rssMb: number;
|
|
1611
|
-
heapUsedMb: number;
|
|
1612
|
-
freeMemMb: number;
|
|
1613
|
-
totalMemMb: number;
|
|
1614
|
-
load1x100: number;
|
|
1615
|
-
cpuCount: number;
|
|
1616
|
-
} | undefined;
|
|
1617
|
-
clients?: string[] | undefined;
|
|
1618
|
-
clientVersions?: Record<string, string> | undefined;
|
|
1619
|
-
appConnects?: number | undefined;
|
|
1620
|
-
msToFirstApp?: number | undefined;
|
|
1621
|
-
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
1622
|
-
feedbackPrompted?: number | undefined;
|
|
1623
|
-
errorClasses?: Record<string, number> | undefined;
|
|
1624
|
-
errorsRecovered?: number | undefined;
|
|
1625
|
-
errorsRepeated?: number | undefined;
|
|
1626
|
-
endedWithVerdict?: boolean | undefined;
|
|
1627
|
-
lifetimeToolCalls?: number | undefined;
|
|
1628
|
-
lifetimeVerifications?: number | undefined;
|
|
1629
|
-
lifetimeBugsFound?: number | undefined;
|
|
1630
|
-
updateNudged?: boolean | undefined;
|
|
1631
|
-
updateOffered?: string | undefined;
|
|
1632
|
-
hudControls?: Record<string, number> | undefined;
|
|
1633
|
-
hudViewMs?: Record<string, number> | undefined;
|
|
1634
|
-
hudPanelMs?: Record<string, number> | undefined;
|
|
1635
|
-
hudSlides?: Record<string, number> | undefined;
|
|
1636
|
-
hudJourney?: string[] | undefined;
|
|
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;
|
|
1640
|
-
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1641
|
-
}>>;
|
|
1642
|
-
/** Only on `project_profiled`: the shape and depth-of-use of the project. */
|
|
1171
|
+
exit: z.ZodOptional<z.ZodEnum<{
|
|
1172
|
+
signal: "signal";
|
|
1173
|
+
idle: "idle";
|
|
1174
|
+
unknown: "unknown";
|
|
1175
|
+
}>>;
|
|
1176
|
+
}, z.core.$strip>>;
|
|
1643
1177
|
project: z.ZodOptional<z.ZodObject<{
|
|
1644
1178
|
stack: z.ZodOptional<z.ZodString>;
|
|
1645
|
-
stackSource: z.ZodOptional<z.ZodEnum<
|
|
1646
|
-
|
|
1179
|
+
stackSource: z.ZodOptional<z.ZodEnum<{
|
|
1180
|
+
cwd: "cwd";
|
|
1181
|
+
workspace: "workspace";
|
|
1182
|
+
}>>;
|
|
1183
|
+
stackUnknownReason: z.ZodOptional<z.ZodEnum<{
|
|
1647
1184
|
readonly NO_APP_FOUND: "no_app_found";
|
|
1648
1185
|
readonly MANIFEST_UNRECOGNISED: "manifest_unrecognised";
|
|
1649
1186
|
readonly WORKSPACE_APPS_UNRECOGNISED: "workspace_apps_unrecognised";
|
|
@@ -1651,7 +1188,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1651
1188
|
readonly DISCOVERY_FAILED: "discovery_failed";
|
|
1652
1189
|
}>>;
|
|
1653
1190
|
stackMajor: z.ZodOptional<z.ZodNumber>;
|
|
1654
|
-
size: z.ZodOptional<z.
|
|
1191
|
+
size: z.ZodOptional<z.ZodEnum<{
|
|
1655
1192
|
readonly TINY: "tiny";
|
|
1656
1193
|
readonly SMALL: "small";
|
|
1657
1194
|
readonly MEDIUM: "medium";
|
|
@@ -1659,12 +1196,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1659
1196
|
readonly HUGE: "huge";
|
|
1660
1197
|
}>>;
|
|
1661
1198
|
monorepo: z.ZodOptional<z.ZodBoolean>;
|
|
1662
|
-
git: z.
|
|
1199
|
+
git: z.ZodEnum<{
|
|
1663
1200
|
readonly NONE: "none";
|
|
1664
1201
|
readonly LOCAL_ONLY: "local_only";
|
|
1665
1202
|
readonly REMOTE: "remote";
|
|
1666
1203
|
}>;
|
|
1667
|
-
forge: z.ZodOptional<z.
|
|
1204
|
+
forge: z.ZodOptional<z.ZodEnum<{
|
|
1668
1205
|
readonly GITHUB: "github";
|
|
1669
1206
|
readonly GITLAB: "gitlab";
|
|
1670
1207
|
readonly BITBUCKET: "bitbucket";
|
|
@@ -1682,91 +1219,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1682
1219
|
initialized: z.ZodOptional<z.ZodBoolean>;
|
|
1683
1220
|
appConnectedBefore: z.ZodOptional<z.ZodBoolean>;
|
|
1684
1221
|
capsuleCount: z.ZodNumber;
|
|
1685
|
-
featuresUsed: z.ZodArray<z.ZodString
|
|
1222
|
+
featuresUsed: z.ZodArray<z.ZodString>;
|
|
1686
1223
|
featureDepth: z.ZodNumber;
|
|
1687
|
-
},
|
|
1688
|
-
git: "none" | "local_only" | "remote";
|
|
1689
|
-
flowCount: number;
|
|
1690
|
-
baselineCount: number;
|
|
1691
|
-
visualBaselineCount: number;
|
|
1692
|
-
runCount: number;
|
|
1693
|
-
hasContract: boolean;
|
|
1694
|
-
capsuleCount: number;
|
|
1695
|
-
featuresUsed: string[];
|
|
1696
|
-
featureDepth: number;
|
|
1697
|
-
stack?: string | undefined;
|
|
1698
|
-
stackMajor?: number | undefined;
|
|
1699
|
-
size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
|
|
1700
|
-
stackSource?: "cwd" | "workspace" | undefined;
|
|
1701
|
-
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
1702
|
-
monorepo?: boolean | undefined;
|
|
1703
|
-
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
1704
|
-
ageWeeks?: number | undefined;
|
|
1705
|
-
initialized?: boolean | undefined;
|
|
1706
|
-
appConnectedBefore?: boolean | undefined;
|
|
1707
|
-
}, {
|
|
1708
|
-
git: "none" | "local_only" | "remote";
|
|
1709
|
-
flowCount: number;
|
|
1710
|
-
baselineCount: number;
|
|
1711
|
-
visualBaselineCount: number;
|
|
1712
|
-
runCount: number;
|
|
1713
|
-
hasContract: boolean;
|
|
1714
|
-
capsuleCount: number;
|
|
1715
|
-
featuresUsed: string[];
|
|
1716
|
-
featureDepth: number;
|
|
1717
|
-
stack?: string | undefined;
|
|
1718
|
-
stackMajor?: number | undefined;
|
|
1719
|
-
size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
|
|
1720
|
-
stackSource?: "cwd" | "workspace" | undefined;
|
|
1721
|
-
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
1722
|
-
monorepo?: boolean | undefined;
|
|
1723
|
-
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
1724
|
-
ageWeeks?: number | undefined;
|
|
1725
|
-
initialized?: boolean | undefined;
|
|
1726
|
-
appConnectedBefore?: boolean | undefined;
|
|
1727
|
-
}>>;
|
|
1728
|
-
/** Only on `verification_completed`. */
|
|
1224
|
+
}, z.core.$strip>>;
|
|
1729
1225
|
verification: z.ZodOptional<z.ZodObject<{
|
|
1730
|
-
/** Which tool produced the verdict (`reticle_assert`, `reticle_flow_verify`, …). */
|
|
1731
1226
|
via: z.ZodString;
|
|
1732
|
-
/**
|
|
1733
|
-
* `yes` | `no` | `unknown` | `no-fault` — the honest verdict, from `Verified`.
|
|
1734
|
-
*
|
|
1735
|
-
* FOUR values, not three. This comment said three for long enough that a dashboard written from it
|
|
1736
|
-
* silently drops the bucket that is most actionable: `no-fault` means the window was clean and
|
|
1737
|
-
* nothing was declared to prove, which is a teachable agent behaviour rather than a Reticle or an
|
|
1738
|
-
* app problem, and `unknown` means the evidence could not decide.
|
|
1739
|
-
*/
|
|
1740
1227
|
verified: z.ZodString;
|
|
1741
|
-
/** Did the underlying assertion pass? Distinct from `verified` on purpose. */
|
|
1742
1228
|
passed: z.ZodBoolean;
|
|
1743
|
-
/**
|
|
1744
|
-
* TRUE when the assertion passed but Reticle refused to call it verified — a caught false green.
|
|
1745
|
-
*/
|
|
1746
1229
|
falseGreenCaught: z.ZodBoolean;
|
|
1747
1230
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1748
|
-
/**
|
|
1749
|
-
* `headless` | `headed` | `attached` — how the browser under verification got there.
|
|
1750
|
-
*
|
|
1751
|
-
* Without it, "verifications run" is one undifferentiated number covering three different
|
|
1752
|
-
* products: unattended CI, a human watching an agent work, and the SDK in somebody's own dev
|
|
1753
|
-
* server. They have different costs, different failure modes and different value, and only the
|
|
1754
|
-
* last one is what most installs actually do.
|
|
1755
|
-
*/
|
|
1756
1231
|
browser: z.ZodOptional<z.ZodString>;
|
|
1757
|
-
|
|
1758
|
-
* WHICH browser it was — `chrome` | `edge` | `arc` | `dia` | `brave` | `opera` | `firefox` |
|
|
1759
|
-
* `safari` | `other`, from `BrowserBrand`.
|
|
1760
|
-
*
|
|
1761
|
-
* `browser` above says who drove it, and its most common value by far is `attached`: the SDK
|
|
1762
|
-
* connected from a browser Reticle never launched. That leaves the actual browser unknown, and
|
|
1763
|
-
* the engine cannot fill the gap — Chrome, Edge, Arc, Dia and Brave are one `blink`.
|
|
1764
|
-
*
|
|
1765
|
-
* OPTIONAL and absent rather than `"unknown"` when the page did not say: a desktop webview has no
|
|
1766
|
-
* brand, and an older SDK does not report one. A guessed value would be indistinguishable from a
|
|
1767
|
-
* measured one on a dashboard.
|
|
1768
|
-
*/
|
|
1769
|
-
brand: z.ZodOptional<z.ZodNativeEnum<{
|
|
1232
|
+
brand: z.ZodOptional<z.ZodEnum<{
|
|
1770
1233
|
readonly CHROME: "chrome";
|
|
1771
1234
|
readonly EDGE: "edge";
|
|
1772
1235
|
readonly ARC: "arc";
|
|
@@ -1777,18 +1240,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1777
1240
|
readonly SAFARI: "safari";
|
|
1778
1241
|
readonly OTHER: "other";
|
|
1779
1242
|
}>>;
|
|
1780
|
-
|
|
1781
|
-
* WHICH clause of the honesty rule decided this — see `VerifiedReason`.
|
|
1782
|
-
*
|
|
1783
|
-
* `verified` alone cannot answer the question the product is judged on. `unknown` + `passed:false`
|
|
1784
|
-
* was measured covering "Reticle caught a real bug", "the agent wrote a bad predicate" and
|
|
1785
|
-
* "Reticle itself could not see", which need opposite responses and arrive as one value; `no`
|
|
1786
|
-
* collapses "channels disagree" into "the agent's predicate failed" the same way.
|
|
1787
|
-
*
|
|
1788
|
-
* OPTIONAL because not every verdict comes from `decideVerified` — a suite reports pass/fail with
|
|
1789
|
-
* no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
|
|
1790
|
-
*/
|
|
1791
|
-
reason: z.ZodOptional<z.ZodNativeEnum<{
|
|
1243
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1792
1244
|
readonly VERSION_SKEW: "version_skew";
|
|
1793
1245
|
readonly CAPABILITY_ABSENT: "capability-absent";
|
|
1794
1246
|
readonly INCONCLUSIVE: "inconclusive";
|
|
@@ -1808,123 +1260,35 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1808
1260
|
readonly PROVED: "proved";
|
|
1809
1261
|
readonly ABSENCE_BLIND_SPOT: "absence_blind_spot";
|
|
1810
1262
|
}>>;
|
|
1811
|
-
|
|
1812
|
-
* WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
|
|
1813
|
-
*
|
|
1814
|
-
* The three causes belong to three different owners and need three different fixes, and without
|
|
1815
|
-
* this they are one bar — and the cause has turned out to be Reticle's own eviction counter
|
|
1816
|
-
* miscounting, which no aggregate could have shown.
|
|
1817
|
-
*
|
|
1818
|
-
* ONE value, not a list: `losses` can hold several and a multi-value property is not something a
|
|
1819
|
-
* dashboard can group by, so the FIRST is sent and the order in the producers is the order of
|
|
1820
|
-
* ownership — Reticle's before the page's. Absent on every verdict whose capture was clean.
|
|
1821
|
-
*/
|
|
1822
|
-
uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
|
|
1263
|
+
uncleanLoss: z.ZodOptional<z.ZodEnum<{
|
|
1823
1264
|
readonly BUFFER_LOSS: "buffer_loss";
|
|
1824
1265
|
readonly TRANSPORT_GAP: "transport_gap";
|
|
1825
1266
|
readonly BLIND_SPOT: "blind_spot";
|
|
1826
1267
|
readonly JOURNAL_LOSS: "journal_loss";
|
|
1827
1268
|
readonly OTHER: "other";
|
|
1828
1269
|
}>>;
|
|
1829
|
-
|
|
1830
|
-
* Set when one of our OWN drives produced this verdict rather than the user's agent — see
|
|
1831
|
-
* `VerificationDriver`. Absent is the ordinary case and means the agent called the tool itself.
|
|
1832
|
-
*/
|
|
1833
|
-
driven: z.ZodOptional<z.ZodNativeEnum<{
|
|
1270
|
+
driven: z.ZodOptional<z.ZodEnum<{
|
|
1834
1271
|
/** A model inside the daemon drove this, on the user's behalf. */
|
|
1835
1272
|
readonly HARNESS: "harness";
|
|
1836
1273
|
}>>;
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
passed: boolean;
|
|
1840
|
-
via: string;
|
|
1841
|
-
falseGreenCaught: boolean;
|
|
1842
|
-
browser?: string | undefined;
|
|
1843
|
-
durationMs?: number | undefined;
|
|
1844
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
1845
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1846
|
-
driven?: "harness" | undefined;
|
|
1847
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
1848
|
-
}, {
|
|
1849
|
-
verified: string;
|
|
1850
|
-
passed: boolean;
|
|
1851
|
-
via: string;
|
|
1852
|
-
falseGreenCaught: boolean;
|
|
1853
|
-
browser?: string | undefined;
|
|
1854
|
-
durationMs?: number | undefined;
|
|
1855
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
1856
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1857
|
-
driven?: "harness" | undefined;
|
|
1858
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
1859
|
-
}>>;
|
|
1860
|
-
/** Only on `version_changed`. */
|
|
1274
|
+
sdkVersion: z.ZodOptional<z.ZodString>;
|
|
1275
|
+
}, z.core.$strip>>;
|
|
1861
1276
|
versionChange: z.ZodOptional<z.ZodObject<{
|
|
1862
1277
|
from: z.ZodString;
|
|
1863
1278
|
to: z.ZodString;
|
|
1864
|
-
/**
|
|
1865
|
-
* True when an agent had been told about exactly this version recently — so the nudge plausibly
|
|
1866
|
-
* caused the update.
|
|
1867
|
-
*
|
|
1868
|
-
* Without it, `version_changed` says a version moved and never why, which leaves "the nudge never
|
|
1869
|
-
* fired" and "the nudge fired and nobody acted" indistinguishable. Those need opposite responses,
|
|
1870
|
-
* and the whole adoption story rests on knowing which one is happening.
|
|
1871
|
-
*/
|
|
1872
1279
|
nudged: z.ZodOptional<z.ZodBoolean>;
|
|
1873
|
-
/** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
|
|
1874
1280
|
direction: z.ZodString;
|
|
1875
|
-
},
|
|
1876
|
-
from: string;
|
|
1877
|
-
to: string;
|
|
1878
|
-
direction: string;
|
|
1879
|
-
nudged?: boolean | undefined;
|
|
1880
|
-
}, {
|
|
1881
|
-
from: string;
|
|
1882
|
-
to: string;
|
|
1883
|
-
direction: string;
|
|
1884
|
-
nudged?: boolean | undefined;
|
|
1885
|
-
}>>;
|
|
1886
|
-
/** Only on `runtime_crashed`. */
|
|
1281
|
+
}, z.core.$strip>>;
|
|
1887
1282
|
crash: z.ZodOptional<z.ZodObject<{
|
|
1888
|
-
/** `uncaught_exception` | `unhandled_rejection`. */
|
|
1889
1283
|
kind: z.ZodString;
|
|
1890
|
-
/** The error's constructor name (`TypeError`) — coarse, safe, and enough to triage. */
|
|
1891
1284
|
errorType: z.ZodOptional<z.ZodString>;
|
|
1892
|
-
/** Hash of the type + Reticle's own frames. Groups the same crash across every machine. */
|
|
1893
1285
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
1894
|
-
/**
|
|
1895
|
-
* The message with every VARIABLE part removed — quoted strings, URLs, paths, ids, numbers all
|
|
1896
|
-
* replaced by `*`. `no baseline named *` says exactly what broke; the flow name that made it
|
|
1897
|
-
* specific to one user never leaves. This is what turns the fingerprint from an opaque key into a
|
|
1898
|
-
* readable defect.
|
|
1899
|
-
*/
|
|
1900
1286
|
message: z.ZodOptional<z.ZodString>;
|
|
1901
|
-
|
|
1902
|
-
* The RETICLE-OWNED stack frames, innermost first, as `function@file:line`.
|
|
1903
|
-
*
|
|
1904
|
-
* This is Reticle's own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
|
|
1905
|
-
* npm tarball — so there is no privacy question in sending it, and it is the single most useful
|
|
1906
|
-
* thing for a root-cause analysis: the file, the line, and the function. Frames belonging to the
|
|
1907
|
-
* user's application or to node internals are dropped entirely before this is built.
|
|
1908
|
-
*/
|
|
1909
|
-
frames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1910
|
-
/** The MCP tool in flight when it happened, when there was one. The trigger point. */
|
|
1287
|
+
frames: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1911
1288
|
tool: z.ZodOptional<z.ZodString>;
|
|
1912
|
-
|
|
1913
|
-
* The tool calls immediately before the failure, oldest first — the agent's approach run.
|
|
1914
|
-
*
|
|
1915
|
-
* Answers "what was it trying to do", which a single frame cannot: `snapshot → act → act →
|
|
1916
|
-
* assert` is a verification loop, `lease_acquire → navigate → crash` is a startup problem. Tool
|
|
1917
|
-
* NAMES only, from a fixed vocabulary; no arguments, so nothing the agent typed is in here.
|
|
1918
|
-
*/
|
|
1919
|
-
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1920
|
-
/** Node major/minor — crashes cluster hard by runtime version. */
|
|
1289
|
+
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1921
1290
|
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
1922
|
-
/** `arm64` / `x64`. A surprising number of native-module failures are architecture-specific. */
|
|
1923
1291
|
arch: z.ZodOptional<z.ZodString>;
|
|
1924
|
-
/**
|
|
1925
|
-
* The machine at the moment of the crash. "Out of memory" and a Reticle defect look identical in a
|
|
1926
|
-
* stack trace and are completely different problems; this is what tells them apart.
|
|
1927
|
-
*/
|
|
1928
1292
|
machine: z.ZodOptional<z.ZodObject<{
|
|
1929
1293
|
rssMb: z.ZodNumber;
|
|
1930
1294
|
heapUsedMb: z.ZodNumber;
|
|
@@ -1932,99 +1296,18 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1932
1296
|
totalMemMb: z.ZodNumber;
|
|
1933
1297
|
load1x100: z.ZodNumber;
|
|
1934
1298
|
cpuCount: z.ZodNumber;
|
|
1935
|
-
},
|
|
1936
|
-
rssMb: number;
|
|
1937
|
-
heapUsedMb: number;
|
|
1938
|
-
freeMemMb: number;
|
|
1939
|
-
totalMemMb: number;
|
|
1940
|
-
load1x100: number;
|
|
1941
|
-
cpuCount: number;
|
|
1942
|
-
}, {
|
|
1943
|
-
rssMb: number;
|
|
1944
|
-
heapUsedMb: number;
|
|
1945
|
-
freeMemMb: number;
|
|
1946
|
-
totalMemMb: number;
|
|
1947
|
-
load1x100: number;
|
|
1948
|
-
cpuCount: number;
|
|
1949
|
-
}>>;
|
|
1950
|
-
/**
|
|
1951
|
-
* The failing SYSCALL — `connect`, `write`, `open`. Already inside `message`; structured here so
|
|
1952
|
-
* it can be grouped on rather than parsed back out of prose.
|
|
1953
|
-
*/
|
|
1299
|
+
}, z.core.$strip>>;
|
|
1954
1300
|
syscall: z.ZodOptional<z.ZodString>;
|
|
1955
|
-
/**
|
|
1956
|
-
* The symbolic errno — `ECONNREFUSED`, `EPIPE`. The name, never the platform-specific number.
|
|
1957
|
-
*/
|
|
1958
1301
|
errno: z.ZodOptional<z.ZodString>;
|
|
1959
|
-
/**
|
|
1960
|
-
* Was the target the machine it was running on?
|
|
1961
|
-
*
|
|
1962
|
-
* One bit, and it splits two populations that currently look identical and have different owners:
|
|
1963
|
-
* refused ON loopback is a Reticle-lifecycle problem (no daemon), refused off-box is a network
|
|
1964
|
-
* problem that is not ours.
|
|
1965
|
-
*/
|
|
1966
1302
|
loopback: z.ZodOptional<z.ZodBoolean>;
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
*
|
|
1972
|
-
* Only present when the crash is a system error AND no Reticle frame survived, which is exactly
|
|
1973
|
-
* the report that otherwise arrives with no location at all. It is a line in Node's published
|
|
1974
|
-
* source: it says a connect failed rather than a DNS lookup, and carries nothing about the
|
|
1975
|
-
* machine, the app, or anyone's directory layout.
|
|
1976
|
-
*/
|
|
1303
|
+
port: z.ZodOptional<z.ZodEnum<{
|
|
1304
|
+
reticle: "reticle";
|
|
1305
|
+
other: "other";
|
|
1306
|
+
}>>;
|
|
1977
1307
|
internalFrame: z.ZodOptional<z.ZodString>;
|
|
1978
|
-
},
|
|
1979
|
-
kind: string;
|
|
1980
|
-
message?: string | undefined;
|
|
1981
|
-
tool?: string | undefined;
|
|
1982
|
-
frames?: string[] | undefined;
|
|
1983
|
-
errorType?: string | undefined;
|
|
1984
|
-
port?: "reticle" | "other" | undefined;
|
|
1985
|
-
fingerprint?: string | undefined;
|
|
1986
|
-
machine?: {
|
|
1987
|
-
rssMb: number;
|
|
1988
|
-
heapUsedMb: number;
|
|
1989
|
-
freeMemMb: number;
|
|
1990
|
-
totalMemMb: number;
|
|
1991
|
-
load1x100: number;
|
|
1992
|
-
cpuCount: number;
|
|
1993
|
-
} | undefined;
|
|
1994
|
-
breadcrumb?: string[] | undefined;
|
|
1995
|
-
nodeVersion?: string | undefined;
|
|
1996
|
-
arch?: string | undefined;
|
|
1997
|
-
syscall?: string | undefined;
|
|
1998
|
-
errno?: string | undefined;
|
|
1999
|
-
loopback?: boolean | undefined;
|
|
2000
|
-
internalFrame?: string | undefined;
|
|
2001
|
-
}, {
|
|
2002
|
-
kind: string;
|
|
2003
|
-
message?: string | undefined;
|
|
2004
|
-
tool?: string | undefined;
|
|
2005
|
-
frames?: string[] | undefined;
|
|
2006
|
-
errorType?: string | undefined;
|
|
2007
|
-
port?: "reticle" | "other" | undefined;
|
|
2008
|
-
fingerprint?: string | undefined;
|
|
2009
|
-
machine?: {
|
|
2010
|
-
rssMb: number;
|
|
2011
|
-
heapUsedMb: number;
|
|
2012
|
-
freeMemMb: number;
|
|
2013
|
-
totalMemMb: number;
|
|
2014
|
-
load1x100: number;
|
|
2015
|
-
cpuCount: number;
|
|
2016
|
-
} | undefined;
|
|
2017
|
-
breadcrumb?: string[] | undefined;
|
|
2018
|
-
nodeVersion?: string | undefined;
|
|
2019
|
-
arch?: string | undefined;
|
|
2020
|
-
syscall?: string | undefined;
|
|
2021
|
-
errno?: string | undefined;
|
|
2022
|
-
loopback?: boolean | undefined;
|
|
2023
|
-
internalFrame?: string | undefined;
|
|
2024
|
-
}>>;
|
|
2025
|
-
/** Only on `identified` — self-declared, opt-in, and the only personal data ever sent. */
|
|
1308
|
+
}, z.core.$strip>>;
|
|
2026
1309
|
identity: z.ZodOptional<z.ZodObject<{
|
|
2027
|
-
context: z.
|
|
1310
|
+
context: z.ZodEnum<{
|
|
2028
1311
|
readonly COMPANY: "company";
|
|
2029
1312
|
readonly SIDE_PROJECT: "side_project";
|
|
2030
1313
|
readonly OPEN_SOURCE: "open_source";
|
|
@@ -2032,72 +1315,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2032
1315
|
}>;
|
|
2033
1316
|
company: z.ZodOptional<z.ZodString>;
|
|
2034
1317
|
email: z.ZodOptional<z.ZodString>;
|
|
2035
|
-
},
|
|
2036
|
-
context: "company" | "side_project" | "open_source" | "learning";
|
|
2037
|
-
company?: string | undefined;
|
|
2038
|
-
email?: string | undefined;
|
|
2039
|
-
}, {
|
|
2040
|
-
context: "company" | "side_project" | "open_source" | "learning";
|
|
2041
|
-
company?: string | undefined;
|
|
2042
|
-
email?: string | undefined;
|
|
2043
|
-
}>>;
|
|
2044
|
-
/** Only on `mcp_client_connected`. */
|
|
1318
|
+
}, z.core.$strip>>;
|
|
2045
1319
|
connection: z.ZodOptional<z.ZodObject<{
|
|
2046
|
-
/** False the first time a client attaches to this daemon; true for every attach after. */
|
|
2047
1320
|
reconnect: z.ZodBoolean;
|
|
2048
|
-
/**
|
|
2049
|
-
* How long the daemon had been up first. A large value on the FIRST connect is the interesting
|
|
2050
|
-
* case — it means Reticle was started and then sat unused, which is an onboarding failure nobody
|
|
2051
|
-
* would otherwise report.
|
|
2052
|
-
*/
|
|
2053
1321
|
daemonAgeMs: z.ZodNumber;
|
|
2054
|
-
/** Which client, from its own handshake (`claude-code`, `cursor`). */
|
|
2055
1322
|
client: z.ZodOptional<z.ZodString>;
|
|
2056
|
-
/**
|
|
2057
|
-
* Was an app carrying the SDK already attached to this daemon when the agent arrived.
|
|
2058
|
-
*
|
|
2059
|
-
* The mirror of `AppInstrumentation.agentAttached`, and the closest available read on WHAT THE
|
|
2060
|
-
* AGENT SAW. A client that attaches and never calls a tool is otherwise reachable only by
|
|
2061
|
-
* subtraction: `tool_refused` cannot describe it, because an agent that reads the server
|
|
2062
|
-
* instructions, learns nothing is wired and stops has refused nothing. It made no call at all.
|
|
2063
|
-
*
|
|
2064
|
-
* `false` means the handshake happened against a daemon with no app to look at, which is the state
|
|
2065
|
-
* the first-move instructions describe and the state in which no tool could have answered
|
|
2066
|
-
* anything. Split the never-drove population on this and the two halves need opposite fixes: one
|
|
2067
|
-
* is an install that never finished, the other is an agent that had everything it needed and did
|
|
2068
|
-
* not use it.
|
|
2069
|
-
*
|
|
2070
|
-
* OPTIONAL because an older sender has none. Absent means not measured, never `false`.
|
|
2071
|
-
*/
|
|
2072
1323
|
appConnected: z.ZodOptional<z.ZodBoolean>;
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
daemonAgeMs: number;
|
|
2076
|
-
client?: string | undefined;
|
|
2077
|
-
appConnected?: boolean | undefined;
|
|
2078
|
-
}, {
|
|
2079
|
-
reconnect: boolean;
|
|
2080
|
-
daemonAgeMs: number;
|
|
2081
|
-
client?: string | undefined;
|
|
2082
|
-
appConnected?: boolean | undefined;
|
|
2083
|
-
}>>;
|
|
2084
|
-
/** Only on `init_completed`. */
|
|
1324
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
}, z.core.$strip>>;
|
|
2085
1326
|
init: z.ZodOptional<z.ZodObject<{
|
|
2086
1327
|
ok: z.ZodBoolean;
|
|
2087
|
-
/** Classified cause when it failed — our vocabulary, never a raw error or a path. */
|
|
2088
1328
|
reason: z.ZodOptional<z.ZodString>;
|
|
2089
|
-
/** The framework it detected, so we can see which stacks fail to set up. */
|
|
2090
1329
|
stack: z.ZodOptional<z.ZodString>;
|
|
2091
|
-
/** Whether the MCP registration step succeeded — the step most likely to fail silently. */
|
|
2092
1330
|
mcpRegistered: z.ZodOptional<z.ZodBoolean>;
|
|
2093
|
-
|
|
2094
|
-
* What `init` saw when it waited for an app to connect.
|
|
2095
|
-
*
|
|
2096
|
-
* Default init reports CONNECTED after runtime success. Runtime failures carry a classified
|
|
2097
|
-
* reason without guessing the watcher's daemon/page classification. Files-only init watches
|
|
2098
|
-
* only in an interactive terminal. Absence alone is not evidence of a failed connection.
|
|
2099
|
-
*/
|
|
2100
|
-
confirmation: z.ZodOptional<z.ZodNativeEnum<{
|
|
1331
|
+
confirmation: z.ZodOptional<z.ZodEnum<{
|
|
2101
1332
|
/** An app carrying the SDK reached the daemon while `init` watched. This is what installed means. */
|
|
2102
1333
|
readonly CONNECTED: "connected";
|
|
2103
1334
|
/** Nothing was listening on the bridge port, so no session could arrive. Not a failed install. */
|
|
@@ -2120,28 +1351,41 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2120
1351
|
*/
|
|
2121
1352
|
readonly NO_PAGE: "no_page";
|
|
2122
1353
|
}>>;
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
1354
|
+
stop: z.ZodOptional<z.ZodEnum<{
|
|
1355
|
+
/** The project names no dev, start or serve script, and no `--url` was given. */
|
|
1356
|
+
readonly NO_DEV_COMMAND: "no_dev_command";
|
|
1357
|
+
/** Something answers on one loopback address and not the other, on the dev port. */
|
|
1358
|
+
readonly SPLIT_LOOPBACK: "split_loopback";
|
|
1359
|
+
/** The dev server said that its port is in use. */
|
|
1360
|
+
readonly PORT_BUSY: "port_busy";
|
|
1361
|
+
/** The dev server exited and nothing serves. */
|
|
1362
|
+
readonly DEV_SERVER_EXITED: "dev_server_exited";
|
|
1363
|
+
/** The dev server printed no URL and bound no port in the budget. */
|
|
1364
|
+
readonly NO_URL: "no_url";
|
|
1365
|
+
/** The dev server announced a URL that did not become ready in the budget. */
|
|
1366
|
+
readonly NOT_READY: "not_ready";
|
|
1367
|
+
/** Nothing answered the app URL when the connect wait ended. */
|
|
1368
|
+
readonly PAGE_NOT_SERVED: "page_not_served";
|
|
1369
|
+
/** The app URL refused the TLS handshake. */
|
|
1370
|
+
readonly PAGE_TLS_REFUSED: "page_tls_refused";
|
|
1371
|
+
/** The page answered, and its HTML does not load the SDK. */
|
|
1372
|
+
readonly SDK_MISSING: "sdk_missing";
|
|
1373
|
+
/** The page answered and no session dialled the daemon. */
|
|
1374
|
+
readonly NO_SESSION: "no_session";
|
|
1375
|
+
/** A desktop app never dialled the daemon. */
|
|
1376
|
+
readonly DESKTOP_NO_SESSION: "desktop_no_session";
|
|
1377
|
+
}>>;
|
|
1378
|
+
}, z.core.$strip>>;
|
|
2137
1379
|
onboarding: z.ZodOptional<z.ZodObject<{
|
|
2138
|
-
phase: z.
|
|
1380
|
+
phase: z.ZodEnum<{
|
|
2139
1381
|
readonly INSTALL: "install";
|
|
2140
1382
|
readonly ONBOARD: "onboard";
|
|
2141
1383
|
readonly FIRST_RUN: "first_run";
|
|
2142
1384
|
}>;
|
|
2143
|
-
step: z.ZodEnum<
|
|
2144
|
-
|
|
1385
|
+
step: z.ZodEnum<{
|
|
1386
|
+
[x: string]: string;
|
|
1387
|
+
}>;
|
|
1388
|
+
status: z.ZodEnum<{
|
|
2145
1389
|
readonly STARTED: "started";
|
|
2146
1390
|
readonly COMPLETED: "completed";
|
|
2147
1391
|
readonly FAILED: "failed";
|
|
@@ -2153,28 +1397,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2153
1397
|
stack: z.ZodOptional<z.ZodString>;
|
|
2154
1398
|
unattended: z.ZodOptional<z.ZodBoolean>;
|
|
2155
1399
|
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
elapsedMs?: number | undefined;
|
|
2163
|
-
unattended?: boolean | undefined;
|
|
2164
|
-
firstEver?: boolean | undefined;
|
|
2165
|
-
}, {
|
|
2166
|
-
step: string;
|
|
2167
|
-
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
2168
|
-
phase: "install" | "onboard" | "first_run";
|
|
2169
|
-
reason?: string | undefined;
|
|
2170
|
-
stack?: string | undefined;
|
|
2171
|
-
elapsedMs?: number | undefined;
|
|
2172
|
-
unattended?: boolean | undefined;
|
|
2173
|
-
firstEver?: boolean | undefined;
|
|
2174
|
-
}>>;
|
|
2175
|
-
/** Only on `bug_found`. */
|
|
1400
|
+
offered: z.ZodOptional<z.ZodEnum<{
|
|
1401
|
+
readonly LEASE: "lease";
|
|
1402
|
+
readonly INIT_CONSENT: "init_consent";
|
|
1403
|
+
}>>;
|
|
1404
|
+
nextFollowed: z.ZodOptional<z.ZodBoolean>;
|
|
1405
|
+
}, z.core.$strip>>;
|
|
2176
1406
|
bug: z.ZodOptional<z.ZodObject<{
|
|
2177
|
-
source: z.
|
|
1407
|
+
source: z.ZodEnum<{
|
|
2178
1408
|
readonly CONTRADICTION: "contradiction";
|
|
2179
1409
|
readonly CRAWL: "crawl";
|
|
2180
1410
|
readonly REPLAY: "replay";
|
|
@@ -2184,7 +1414,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2184
1414
|
falseGreen: z.ZodBoolean;
|
|
2185
1415
|
tool: z.ZodOptional<z.ZodString>;
|
|
2186
1416
|
repeat: z.ZodBoolean;
|
|
2187
|
-
attribution: z.
|
|
1417
|
+
attribution: z.ZodEnum<{
|
|
2188
1418
|
readonly APP: "app";
|
|
2189
1419
|
readonly REQUEST: "request";
|
|
2190
1420
|
readonly RETICLE: "reticle";
|
|
@@ -2192,29 +1422,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2192
1422
|
}>;
|
|
2193
1423
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
2194
1424
|
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
2195
|
-
},
|
|
2196
|
-
kind: string;
|
|
2197
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2198
|
-
attribution: "reticle" | "request" | "app" | "unclassified";
|
|
2199
|
-
falseGreen: boolean;
|
|
2200
|
-
repeat: boolean;
|
|
2201
|
-
tool?: string | undefined;
|
|
2202
|
-
fingerprint?: string | undefined;
|
|
2203
|
-
occurrence?: number | undefined;
|
|
2204
|
-
}, {
|
|
2205
|
-
kind: string;
|
|
2206
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2207
|
-
attribution: "reticle" | "request" | "app" | "unclassified";
|
|
2208
|
-
falseGreen: boolean;
|
|
2209
|
-
repeat: boolean;
|
|
2210
|
-
tool?: string | undefined;
|
|
2211
|
-
fingerprint?: string | undefined;
|
|
2212
|
-
occurrence?: number | undefined;
|
|
2213
|
-
}>>;
|
|
2214
|
-
/** Only on `tool_refused`: which tool, why, and whether the agent tried the same thing again. */
|
|
1425
|
+
}, z.core.$strip>>;
|
|
2215
1426
|
refusal: z.ZodOptional<z.ZodObject<{
|
|
2216
1427
|
tool: z.ZodString;
|
|
2217
|
-
reason: z.
|
|
1428
|
+
reason: z.ZodEnum<{
|
|
2218
1429
|
readonly NO_SESSION: "no_session";
|
|
2219
1430
|
readonly NO_MATCH: "no_match";
|
|
2220
1431
|
readonly UNSUPPORTED: "unsupported";
|
|
@@ -2222,7 +1433,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2222
1433
|
readonly NOT_READY: "not_ready";
|
|
2223
1434
|
readonly OTHER: "other";
|
|
2224
1435
|
}>;
|
|
2225
|
-
noSessionReason: z.ZodOptional<z.
|
|
1436
|
+
noSessionReason: z.ZodOptional<z.ZodEnum<{
|
|
2226
1437
|
readonly AUTH_REFUSED: "auth_refused";
|
|
2227
1438
|
readonly LEASE_EXPIRED: "lease_expired";
|
|
2228
1439
|
readonly TAB_GONE: "tab_gone";
|
|
@@ -2236,20 +1447,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2236
1447
|
readonly SDK_NOT_REACHING_DAEMON: "sdk_not_reaching_daemon";
|
|
2237
1448
|
}>>;
|
|
2238
1449
|
retried: z.ZodBoolean;
|
|
2239
|
-
},
|
|
2240
|
-
tool: string;
|
|
2241
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2242
|
-
retried: boolean;
|
|
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;
|
|
2244
|
-
}, {
|
|
2245
|
-
tool: string;
|
|
2246
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2247
|
-
retried: boolean;
|
|
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;
|
|
2249
|
-
}>>;
|
|
2250
|
-
/** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
|
|
1450
|
+
}, z.core.$strip>>;
|
|
2251
1451
|
outage: z.ZodOptional<z.ZodObject<{
|
|
2252
|
-
stage: z.
|
|
1452
|
+
stage: z.ZodEnum<{
|
|
2253
1453
|
readonly FIRST: "first";
|
|
2254
1454
|
readonly BUDGET_SPENT: "budget_spent";
|
|
2255
1455
|
/**
|
|
@@ -2263,7 +1463,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2263
1463
|
*/
|
|
2264
1464
|
readonly RECOVERED: "recovered";
|
|
2265
1465
|
}>;
|
|
2266
|
-
reason: z.
|
|
1466
|
+
reason: z.ZodEnum<{
|
|
2267
1467
|
/** The SSE stream ended cleanly and nothing said why. */
|
|
2268
1468
|
readonly SSE_ENDED: "sse_ended";
|
|
2269
1469
|
/**
|
|
@@ -2283,62 +1483,33 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2283
1483
|
readonly SSE_CLOSED: "sse_closed";
|
|
2284
1484
|
/** A reconnect attempt could not reach the daemon at all. */
|
|
2285
1485
|
readonly CONNECT_ERROR: "connect_error";
|
|
1486
|
+
/**
|
|
1487
|
+
* A stream that was already serving was reset. The request saw the error before the response
|
|
1488
|
+
* closed, so this used to read as `connect_error`, which says the daemon was never reached.
|
|
1489
|
+
*/
|
|
1490
|
+
readonly SSE_RESET: "sse_reset";
|
|
2286
1491
|
/** Anything the proxy reported that this list does not name. A classifier must be able to say so. */
|
|
2287
1492
|
readonly OTHER: "other";
|
|
2288
1493
|
}>;
|
|
2289
|
-
/** Consecutive reconnects tried when this was reported. `first` is near 1; a spent budget is high. */
|
|
2290
1494
|
attempts: z.ZodNumber;
|
|
2291
|
-
/**
|
|
2292
|
-
* In-flight tool calls this drop actually killed — the only part an agent can FEEL.
|
|
2293
|
-
*
|
|
2294
|
-
* Without it every drop looks equally bad. The common outage is `stage: first` with `attempts: 1`
|
|
2295
|
-
* — the stream ended once and the proxy reconnected, which for an agent with nothing in flight is
|
|
2296
|
-
* invisible. Counting those as "the agent lost its tools" overstates the problem by roughly the
|
|
2297
|
-
* whole total, and buries the one drop that mattered.
|
|
2298
|
-
*
|
|
2299
|
-
* Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
|
|
2300
|
-
* worth driving down.
|
|
2301
|
-
*/
|
|
2302
1495
|
pendingLost: z.ZodOptional<z.ZodNumber>;
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
}>>;
|
|
2314
|
-
/** Only on `app_instrumented`: the install's second half finally happening. */
|
|
1496
|
+
errCode: z.ZodOptional<z.ZodEnum<{
|
|
1497
|
+
readonly ECONNRESET: "ECONNRESET";
|
|
1498
|
+
readonly ECONNREFUSED: "ECONNREFUSED";
|
|
1499
|
+
readonly EPIPE: "EPIPE";
|
|
1500
|
+
readonly ETIMEDOUT: "ETIMEDOUT";
|
|
1501
|
+
readonly OTHER: "other";
|
|
1502
|
+
}>>;
|
|
1503
|
+
responded: z.ZodOptional<z.ZodBoolean>;
|
|
1504
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
1505
|
+
}, z.core.$strip>>;
|
|
2315
1506
|
instrumentation: z.ZodOptional<z.ZodObject<{
|
|
2316
|
-
/** Whether `reticle init` had been run in this directory (a projectId is stamped). */
|
|
2317
1507
|
initialized: z.ZodBoolean;
|
|
2318
|
-
/** Whether an MCP client was already attached when the app arrived. */
|
|
2319
1508
|
agentAttached: z.ZodBoolean;
|
|
2320
|
-
/** How long the daemon had been up. Large values mean Reticle sat there with nothing wired. */
|
|
2321
1509
|
msToFirstApp: z.ZodNumber;
|
|
2322
|
-
/** The first app ever on this machine + project, not just this run. Absent otherwise. */
|
|
2323
1510
|
firstEver: z.ZodOptional<z.ZodBoolean>;
|
|
2324
|
-
},
|
|
2325
|
-
|
|
2326
|
-
initialized: boolean;
|
|
2327
|
-
agentAttached: boolean;
|
|
2328
|
-
firstEver?: boolean | undefined;
|
|
2329
|
-
}, {
|
|
2330
|
-
msToFirstApp: number;
|
|
2331
|
-
initialized: boolean;
|
|
2332
|
-
agentAttached: boolean;
|
|
2333
|
-
firstEver?: boolean | undefined;
|
|
2334
|
-
}>>;
|
|
2335
|
-
/**
|
|
2336
|
-
* Only on `reticle_installed` / `init_completed`: which published route brought this install in.
|
|
2337
|
-
*
|
|
2338
|
-
* A scalar rather than a block because it belongs to two different events that have no payload in
|
|
2339
|
-
* common, and because there is exactly one fact to carry. Absent on every other kind.
|
|
2340
|
-
*/
|
|
2341
|
-
installSource: z.ZodOptional<z.ZodNativeEnum<{
|
|
1511
|
+
}, z.core.$strip>>;
|
|
1512
|
+
installSource: z.ZodOptional<z.ZodEnum<{
|
|
2342
1513
|
/** The canonical SKILL.md paste URL — the marker is in the command SKILL.md tells the agent to run. */
|
|
2343
1514
|
readonly SKILL_FILE: "skill_file";
|
|
2344
1515
|
/** The `npx skills add` package, which ships its own copy of the skill carrying its own marker. */
|
|
@@ -2351,562 +1522,21 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2351
1522
|
readonly DOCS_SITE: "docs_site";
|
|
2352
1523
|
/** The repository README's install snippet. */
|
|
2353
1524
|
readonly README: "readme";
|
|
1525
|
+
/** reticle.sh/blog, whose posts' install snippets carry the marker. */
|
|
1526
|
+
readonly BLOG: "blog";
|
|
2354
1527
|
/** Somebody typed the command with no channel in front of it. Only ever self-declared. */
|
|
2355
1528
|
readonly CLI_DIRECT: "cli_direct";
|
|
2356
1529
|
/** No marker, or one this list does not name. The honest answer, and expected to dominate. */
|
|
2357
1530
|
readonly UNKNOWN: "unknown";
|
|
2358
1531
|
}>>;
|
|
2359
|
-
/**
|
|
2360
|
-
* Enterprise activation, on EVERY event. Two scalars rather than a block, for the same reason
|
|
2361
|
-
* `installSource` is one: they describe the install, not any single event, and they have to be
|
|
2362
|
-
* present on the events that show whether a licensed customer got anywhere.
|
|
2363
|
-
*
|
|
2364
|
-
* `licenseId` is the signed license id — an opaque uuid that resolves to a company only against the
|
|
2365
|
-
* issuance ledger held locally, so the analytics backend never learns a customer list. The
|
|
2366
|
-
* organisation NAME is deliberately absent: it is free text somebody typed at signing time, and
|
|
2367
|
-
* rule 3 is names-never-values.
|
|
2368
|
-
*
|
|
2369
|
-
* `licenseId` is present only when activation is `active`; `licenseStatus` rides whenever an issuer
|
|
2370
|
-
* key is baked, including the failure states, which is what makes a lapse distinguishable from a
|
|
2371
|
-
* churn. The PLAN is deliberately not here: the issuance ledger already holds it against this same
|
|
2372
|
-
* id, so it would be a per-event cost for something the join that resolves the id resolves anyway.
|
|
2373
|
-
*/
|
|
2374
1532
|
licenseId: z.ZodOptional<z.ZodString>;
|
|
2375
|
-
|
|
2376
|
-
licenseStatus: z.ZodOptional<z.ZodNativeEnum<{
|
|
1533
|
+
licenseStatus: z.ZodOptional<z.ZodEnum<{
|
|
2377
1534
|
readonly ACTIVE: "active";
|
|
2378
1535
|
readonly MISSING: "missing";
|
|
2379
1536
|
readonly INVALID: "invalid";
|
|
2380
1537
|
readonly EXPIRED: "expired";
|
|
2381
1538
|
readonly EVAL: "eval";
|
|
2382
1539
|
}>>;
|
|
2383
|
-
/**
|
|
2384
|
-
* A key was PLACED in the environment, whatever this build concluded about it.
|
|
2385
|
-
*
|
|
2386
|
-
* Rides even when `licenseStatus` is absent, and that combination is the entire reason it exists:
|
|
2387
|
-
* a build with no issuer key baked reports no status at all, so a customer who pasted a real
|
|
2388
|
-
* enterprise key into one produced no licence signal whatsoever and looked identical to someone
|
|
2389
|
-
* who has never held a key. `licenseKeyPresent: true` with no `licenseStatus` is precisely the
|
|
2390
|
-
* "their key is not taking effect" case, and it was previously unobservable.
|
|
2391
|
-
*
|
|
2392
|
-
* A boolean, never the key. The key is a credential and does not leave the machine.
|
|
2393
|
-
*/
|
|
2394
1540
|
licenseKeyPresent: z.ZodOptional<z.ZodBoolean>;
|
|
2395
|
-
},
|
|
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";
|
|
2397
|
-
ci: boolean;
|
|
2398
|
-
version: string;
|
|
2399
|
-
v: 3;
|
|
2400
|
-
anonymousId: string;
|
|
2401
|
-
ts: number;
|
|
2402
|
-
os: string;
|
|
2403
|
-
feedback?: {
|
|
2404
|
-
text: string;
|
|
2405
|
-
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2406
|
-
source: "agent" | "human";
|
|
2407
|
-
impact?: string | undefined;
|
|
2408
|
-
model?: string | undefined;
|
|
2409
|
-
trace?: string | undefined;
|
|
2410
|
-
rating?: number | undefined;
|
|
2411
|
-
need?: string | undefined;
|
|
2412
|
-
currentApproach?: string | undefined;
|
|
2413
|
-
clientVersion?: string | undefined;
|
|
2414
|
-
stack?: string | undefined;
|
|
2415
|
-
stackMajor?: number | undefined;
|
|
2416
|
-
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
2417
|
-
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
2418
|
-
driver?: "cdp" | "sdk" | undefined;
|
|
2419
|
-
client?: string | undefined;
|
|
2420
|
-
mcpScope?: "project" | "user" | undefined;
|
|
2421
|
-
} | undefined;
|
|
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;
|
|
2431
|
-
project?: {
|
|
2432
|
-
git: "none" | "local_only" | "remote";
|
|
2433
|
-
flowCount: number;
|
|
2434
|
-
baselineCount: number;
|
|
2435
|
-
visualBaselineCount: number;
|
|
2436
|
-
runCount: number;
|
|
2437
|
-
hasContract: boolean;
|
|
2438
|
-
capsuleCount: number;
|
|
2439
|
-
featuresUsed: string[];
|
|
2440
|
-
featureDepth: number;
|
|
2441
|
-
stack?: string | undefined;
|
|
2442
|
-
stackMajor?: number | undefined;
|
|
2443
|
-
size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
|
|
2444
|
-
stackSource?: "cwd" | "workspace" | undefined;
|
|
2445
|
-
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
2446
|
-
monorepo?: boolean | undefined;
|
|
2447
|
-
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
2448
|
-
ageWeeks?: number | undefined;
|
|
2449
|
-
initialized?: boolean | undefined;
|
|
2450
|
-
appConnectedBefore?: boolean | undefined;
|
|
2451
|
-
} | undefined;
|
|
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;
|
|
2458
|
-
sessionId?: string | undefined;
|
|
2459
|
-
bug?: {
|
|
2460
|
-
kind: string;
|
|
2461
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2462
|
-
attribution: "reticle" | "request" | "app" | "unclassified";
|
|
2463
|
-
falseGreen: boolean;
|
|
2464
|
-
repeat: boolean;
|
|
2465
|
-
tool?: string | undefined;
|
|
2466
|
-
fingerprint?: string | undefined;
|
|
2467
|
-
occurrence?: number | undefined;
|
|
2468
|
-
} | undefined;
|
|
2469
|
-
client?: "other" | "claude_code" | "claude_desktop" | "codex" | "cursor" | "gemini_cli" | "antigravity" | "windsurf" | "cline" | "opencode" | "zed" | "vscode" | undefined;
|
|
2470
|
-
session?: {
|
|
2471
|
-
durationMs: number;
|
|
2472
|
-
toolCalls: number;
|
|
2473
|
-
toolCounts: Record<string, number>;
|
|
2474
|
-
toolErrors: number;
|
|
2475
|
-
verifications: number;
|
|
2476
|
-
final: boolean;
|
|
2477
|
-
surface?: string | undefined;
|
|
2478
|
-
errors?: {
|
|
2479
|
-
message: string;
|
|
2480
|
-
count: number;
|
|
2481
|
-
fingerprint: string;
|
|
2482
|
-
tool?: string | undefined;
|
|
2483
|
-
}[] | undefined;
|
|
2484
|
-
sdkFailures?: number | undefined;
|
|
2485
|
-
sdkErrors?: {
|
|
2486
|
-
message: string;
|
|
2487
|
-
count: number;
|
|
2488
|
-
fingerprint: string;
|
|
2489
|
-
tool?: string | undefined;
|
|
2490
|
-
}[] | undefined;
|
|
2491
|
-
bugsFound?: number | undefined;
|
|
2492
|
-
bugKinds?: Record<string, number> | undefined;
|
|
2493
|
-
toolParams?: Record<string, Record<string, number>> | undefined;
|
|
2494
|
-
connections?: Record<string, {
|
|
2495
|
-
attempts: number;
|
|
2496
|
-
successes: number;
|
|
2497
|
-
failures?: Record<string, number> | undefined;
|
|
2498
|
-
}> | undefined;
|
|
2499
|
-
toolTiming?: Record<string, {
|
|
2500
|
-
totalMs: number;
|
|
2501
|
-
maxMs: number;
|
|
2502
|
-
}> | undefined;
|
|
2503
|
-
busyMs?: number | undefined;
|
|
2504
|
-
browserMs?: number | undefined;
|
|
2505
|
-
browserCommands?: number | undefined;
|
|
2506
|
-
peakConcurrentTools?: number | undefined;
|
|
2507
|
-
unknownToolCalls?: number | undefined;
|
|
2508
|
-
unknownTools?: Record<string, number> | undefined;
|
|
2509
|
-
noSessionErrors?: number | undefined;
|
|
2510
|
-
postSocketFailures?: number | undefined;
|
|
2511
|
-
postRetriesSaved?: number | undefined;
|
|
2512
|
-
consecutiveRepeats?: Record<string, number> | undefined;
|
|
2513
|
-
abandonedActions?: number | undefined;
|
|
2514
|
-
machine?: {
|
|
2515
|
-
rssMb: number;
|
|
2516
|
-
heapUsedMb: number;
|
|
2517
|
-
freeMemMb: number;
|
|
2518
|
-
totalMemMb: number;
|
|
2519
|
-
load1x100: number;
|
|
2520
|
-
cpuCount: number;
|
|
2521
|
-
} | undefined;
|
|
2522
|
-
clients?: string[] | undefined;
|
|
2523
|
-
clientVersions?: Record<string, string> | undefined;
|
|
2524
|
-
appConnects?: number | undefined;
|
|
2525
|
-
msToFirstApp?: number | undefined;
|
|
2526
|
-
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
2527
|
-
feedbackPrompted?: number | undefined;
|
|
2528
|
-
errorClasses?: Record<string, number> | undefined;
|
|
2529
|
-
errorsRecovered?: number | undefined;
|
|
2530
|
-
errorsRepeated?: number | undefined;
|
|
2531
|
-
endedWithVerdict?: boolean | undefined;
|
|
2532
|
-
lifetimeToolCalls?: number | undefined;
|
|
2533
|
-
lifetimeVerifications?: number | undefined;
|
|
2534
|
-
lifetimeBugsFound?: number | undefined;
|
|
2535
|
-
updateNudged?: boolean | undefined;
|
|
2536
|
-
updateOffered?: string | undefined;
|
|
2537
|
-
hudControls?: Record<string, number> | undefined;
|
|
2538
|
-
hudViewMs?: Record<string, number> | undefined;
|
|
2539
|
-
hudPanelMs?: Record<string, number> | undefined;
|
|
2540
|
-
hudSlides?: Record<string, number> | undefined;
|
|
2541
|
-
hudJourney?: string[] | undefined;
|
|
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;
|
|
2545
|
-
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2546
|
-
} | undefined;
|
|
2547
|
-
link?: {
|
|
2548
|
-
via: "hud" | "link" | "connect";
|
|
2549
|
-
} | undefined;
|
|
2550
|
-
licenseKeyPresent?: boolean | undefined;
|
|
2551
|
-
linked?: boolean | undefined;
|
|
2552
|
-
automation?: "container" | "hosted_workspace" | "ci_runner" | "agent_sandbox" | undefined;
|
|
2553
|
-
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2554
|
-
tzOffsetMin?: number | undefined;
|
|
2555
|
-
internal?: boolean | undefined;
|
|
2556
|
-
idEphemeral?: boolean | undefined;
|
|
2557
|
-
actor?: "agent" | "human" | undefined;
|
|
2558
|
-
flags?: string[] | undefined;
|
|
2559
|
-
verification?: {
|
|
2560
|
-
verified: string;
|
|
2561
|
-
passed: boolean;
|
|
2562
|
-
via: string;
|
|
2563
|
-
falseGreenCaught: boolean;
|
|
2564
|
-
browser?: string | undefined;
|
|
2565
|
-
durationMs?: number | undefined;
|
|
2566
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
2567
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2568
|
-
driven?: "harness" | undefined;
|
|
2569
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
2570
|
-
} | undefined;
|
|
2571
|
-
versionChange?: {
|
|
2572
|
-
from: string;
|
|
2573
|
-
to: string;
|
|
2574
|
-
direction: string;
|
|
2575
|
-
nudged?: boolean | undefined;
|
|
2576
|
-
} | undefined;
|
|
2577
|
-
crash?: {
|
|
2578
|
-
kind: string;
|
|
2579
|
-
message?: string | undefined;
|
|
2580
|
-
tool?: string | undefined;
|
|
2581
|
-
frames?: string[] | undefined;
|
|
2582
|
-
errorType?: string | undefined;
|
|
2583
|
-
port?: "reticle" | "other" | undefined;
|
|
2584
|
-
fingerprint?: string | undefined;
|
|
2585
|
-
machine?: {
|
|
2586
|
-
rssMb: number;
|
|
2587
|
-
heapUsedMb: number;
|
|
2588
|
-
freeMemMb: number;
|
|
2589
|
-
totalMemMb: number;
|
|
2590
|
-
load1x100: number;
|
|
2591
|
-
cpuCount: number;
|
|
2592
|
-
} | undefined;
|
|
2593
|
-
breadcrumb?: string[] | undefined;
|
|
2594
|
-
nodeVersion?: string | undefined;
|
|
2595
|
-
arch?: string | undefined;
|
|
2596
|
-
syscall?: string | undefined;
|
|
2597
|
-
errno?: string | undefined;
|
|
2598
|
-
loopback?: boolean | undefined;
|
|
2599
|
-
internalFrame?: string | undefined;
|
|
2600
|
-
} | undefined;
|
|
2601
|
-
identity?: {
|
|
2602
|
-
context: "company" | "side_project" | "open_source" | "learning";
|
|
2603
|
-
company?: string | undefined;
|
|
2604
|
-
email?: string | undefined;
|
|
2605
|
-
} | undefined;
|
|
2606
|
-
connection?: {
|
|
2607
|
-
reconnect: boolean;
|
|
2608
|
-
daemonAgeMs: number;
|
|
2609
|
-
client?: string | undefined;
|
|
2610
|
-
appConnected?: boolean | undefined;
|
|
2611
|
-
} | undefined;
|
|
2612
|
-
init?: {
|
|
2613
|
-
ok: boolean;
|
|
2614
|
-
reason?: string | undefined;
|
|
2615
|
-
stack?: string | undefined;
|
|
2616
|
-
mcpRegistered?: boolean | undefined;
|
|
2617
|
-
confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
|
|
2618
|
-
} | undefined;
|
|
2619
|
-
onboarding?: {
|
|
2620
|
-
step: string;
|
|
2621
|
-
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
2622
|
-
phase: "install" | "onboard" | "first_run";
|
|
2623
|
-
reason?: string | undefined;
|
|
2624
|
-
stack?: string | undefined;
|
|
2625
|
-
elapsedMs?: number | undefined;
|
|
2626
|
-
unattended?: boolean | undefined;
|
|
2627
|
-
firstEver?: boolean | undefined;
|
|
2628
|
-
} | undefined;
|
|
2629
|
-
refusal?: {
|
|
2630
|
-
tool: string;
|
|
2631
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2632
|
-
retried: boolean;
|
|
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;
|
|
2634
|
-
} | undefined;
|
|
2635
|
-
outage?: {
|
|
2636
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
2637
|
-
attempts: number;
|
|
2638
|
-
stage: "first" | "budget_spent" | "recovered";
|
|
2639
|
-
pendingLost?: number | undefined;
|
|
2640
|
-
} | undefined;
|
|
2641
|
-
instrumentation?: {
|
|
2642
|
-
msToFirstApp: number;
|
|
2643
|
-
initialized: boolean;
|
|
2644
|
-
agentAttached: boolean;
|
|
2645
|
-
firstEver?: boolean | undefined;
|
|
2646
|
-
} | undefined;
|
|
2647
|
-
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "cli_direct" | undefined;
|
|
2648
|
-
licenseId?: string | undefined;
|
|
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;
|
|
2653
|
-
}, {
|
|
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";
|
|
2655
|
-
ci: boolean;
|
|
2656
|
-
version: string;
|
|
2657
|
-
v: 3;
|
|
2658
|
-
anonymousId: string;
|
|
2659
|
-
ts: number;
|
|
2660
|
-
os: string;
|
|
2661
|
-
feedback?: {
|
|
2662
|
-
text: string;
|
|
2663
|
-
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2664
|
-
source: "agent" | "human";
|
|
2665
|
-
impact?: string | undefined;
|
|
2666
|
-
model?: string | undefined;
|
|
2667
|
-
trace?: string | undefined;
|
|
2668
|
-
rating?: number | undefined;
|
|
2669
|
-
need?: string | undefined;
|
|
2670
|
-
currentApproach?: string | undefined;
|
|
2671
|
-
clientVersion?: string | undefined;
|
|
2672
|
-
stack?: string | undefined;
|
|
2673
|
-
stackMajor?: number | undefined;
|
|
2674
|
-
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
2675
|
-
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
2676
|
-
driver?: "cdp" | "sdk" | undefined;
|
|
2677
|
-
client?: string | undefined;
|
|
2678
|
-
mcpScope?: "project" | "user" | undefined;
|
|
2679
|
-
} | undefined;
|
|
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;
|
|
2689
|
-
project?: {
|
|
2690
|
-
git: "none" | "local_only" | "remote";
|
|
2691
|
-
flowCount: number;
|
|
2692
|
-
baselineCount: number;
|
|
2693
|
-
visualBaselineCount: number;
|
|
2694
|
-
runCount: number;
|
|
2695
|
-
hasContract: boolean;
|
|
2696
|
-
capsuleCount: number;
|
|
2697
|
-
featuresUsed: string[];
|
|
2698
|
-
featureDepth: number;
|
|
2699
|
-
stack?: string | undefined;
|
|
2700
|
-
stackMajor?: number | undefined;
|
|
2701
|
-
size?: "medium" | "tiny" | "small" | "large" | "huge" | undefined;
|
|
2702
|
-
stackSource?: "cwd" | "workspace" | undefined;
|
|
2703
|
-
stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
|
|
2704
|
-
monorepo?: boolean | undefined;
|
|
2705
|
-
forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
|
|
2706
|
-
ageWeeks?: number | undefined;
|
|
2707
|
-
initialized?: boolean | undefined;
|
|
2708
|
-
appConnectedBefore?: boolean | undefined;
|
|
2709
|
-
} | undefined;
|
|
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;
|
|
2716
|
-
sessionId?: string | undefined;
|
|
2717
|
-
bug?: {
|
|
2718
|
-
kind: string;
|
|
2719
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2720
|
-
attribution: "reticle" | "request" | "app" | "unclassified";
|
|
2721
|
-
falseGreen: boolean;
|
|
2722
|
-
repeat: boolean;
|
|
2723
|
-
tool?: string | undefined;
|
|
2724
|
-
fingerprint?: string | undefined;
|
|
2725
|
-
occurrence?: number | undefined;
|
|
2726
|
-
} | undefined;
|
|
2727
|
-
client?: "other" | "claude_code" | "claude_desktop" | "codex" | "cursor" | "gemini_cli" | "antigravity" | "windsurf" | "cline" | "opencode" | "zed" | "vscode" | undefined;
|
|
2728
|
-
session?: {
|
|
2729
|
-
durationMs: number;
|
|
2730
|
-
toolCalls: number;
|
|
2731
|
-
toolCounts: Record<string, number>;
|
|
2732
|
-
toolErrors: number;
|
|
2733
|
-
verifications: number;
|
|
2734
|
-
final: boolean;
|
|
2735
|
-
surface?: string | undefined;
|
|
2736
|
-
errors?: {
|
|
2737
|
-
message: string;
|
|
2738
|
-
count: number;
|
|
2739
|
-
fingerprint: string;
|
|
2740
|
-
tool?: string | undefined;
|
|
2741
|
-
}[] | undefined;
|
|
2742
|
-
sdkFailures?: number | undefined;
|
|
2743
|
-
sdkErrors?: {
|
|
2744
|
-
message: string;
|
|
2745
|
-
count: number;
|
|
2746
|
-
fingerprint: string;
|
|
2747
|
-
tool?: string | undefined;
|
|
2748
|
-
}[] | undefined;
|
|
2749
|
-
bugsFound?: number | undefined;
|
|
2750
|
-
bugKinds?: Record<string, number> | undefined;
|
|
2751
|
-
toolParams?: Record<string, Record<string, number>> | undefined;
|
|
2752
|
-
connections?: Record<string, {
|
|
2753
|
-
attempts: number;
|
|
2754
|
-
successes: number;
|
|
2755
|
-
failures?: Record<string, number> | undefined;
|
|
2756
|
-
}> | undefined;
|
|
2757
|
-
toolTiming?: Record<string, {
|
|
2758
|
-
totalMs: number;
|
|
2759
|
-
maxMs: number;
|
|
2760
|
-
}> | undefined;
|
|
2761
|
-
busyMs?: number | undefined;
|
|
2762
|
-
browserMs?: number | undefined;
|
|
2763
|
-
browserCommands?: number | undefined;
|
|
2764
|
-
peakConcurrentTools?: number | undefined;
|
|
2765
|
-
unknownToolCalls?: number | undefined;
|
|
2766
|
-
unknownTools?: Record<string, number> | undefined;
|
|
2767
|
-
noSessionErrors?: number | undefined;
|
|
2768
|
-
postSocketFailures?: number | undefined;
|
|
2769
|
-
postRetriesSaved?: number | undefined;
|
|
2770
|
-
consecutiveRepeats?: Record<string, number> | undefined;
|
|
2771
|
-
abandonedActions?: number | undefined;
|
|
2772
|
-
machine?: {
|
|
2773
|
-
rssMb: number;
|
|
2774
|
-
heapUsedMb: number;
|
|
2775
|
-
freeMemMb: number;
|
|
2776
|
-
totalMemMb: number;
|
|
2777
|
-
load1x100: number;
|
|
2778
|
-
cpuCount: number;
|
|
2779
|
-
} | undefined;
|
|
2780
|
-
clients?: string[] | undefined;
|
|
2781
|
-
clientVersions?: Record<string, string> | undefined;
|
|
2782
|
-
appConnects?: number | undefined;
|
|
2783
|
-
msToFirstApp?: number | undefined;
|
|
2784
|
-
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
2785
|
-
feedbackPrompted?: number | undefined;
|
|
2786
|
-
errorClasses?: Record<string, number> | undefined;
|
|
2787
|
-
errorsRecovered?: number | undefined;
|
|
2788
|
-
errorsRepeated?: number | undefined;
|
|
2789
|
-
endedWithVerdict?: boolean | undefined;
|
|
2790
|
-
lifetimeToolCalls?: number | undefined;
|
|
2791
|
-
lifetimeVerifications?: number | undefined;
|
|
2792
|
-
lifetimeBugsFound?: number | undefined;
|
|
2793
|
-
updateNudged?: boolean | undefined;
|
|
2794
|
-
updateOffered?: string | undefined;
|
|
2795
|
-
hudControls?: Record<string, number> | undefined;
|
|
2796
|
-
hudViewMs?: Record<string, number> | undefined;
|
|
2797
|
-
hudPanelMs?: Record<string, number> | undefined;
|
|
2798
|
-
hudSlides?: Record<string, number> | undefined;
|
|
2799
|
-
hudJourney?: string[] | undefined;
|
|
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;
|
|
2803
|
-
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2804
|
-
} | undefined;
|
|
2805
|
-
link?: {
|
|
2806
|
-
via: "hud" | "link" | "connect";
|
|
2807
|
-
} | undefined;
|
|
2808
|
-
licenseKeyPresent?: boolean | undefined;
|
|
2809
|
-
linked?: boolean | undefined;
|
|
2810
|
-
automation?: "container" | "hosted_workspace" | "ci_runner" | "agent_sandbox" | undefined;
|
|
2811
|
-
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2812
|
-
tzOffsetMin?: number | undefined;
|
|
2813
|
-
internal?: boolean | undefined;
|
|
2814
|
-
idEphemeral?: boolean | undefined;
|
|
2815
|
-
actor?: "agent" | "human" | undefined;
|
|
2816
|
-
flags?: string[] | undefined;
|
|
2817
|
-
verification?: {
|
|
2818
|
-
verified: string;
|
|
2819
|
-
passed: boolean;
|
|
2820
|
-
via: string;
|
|
2821
|
-
falseGreenCaught: boolean;
|
|
2822
|
-
browser?: string | undefined;
|
|
2823
|
-
durationMs?: number | undefined;
|
|
2824
|
-
reason?: "version_skew" | "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "hidden_match" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
2825
|
-
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2826
|
-
driven?: "harness" | undefined;
|
|
2827
|
-
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "journal_loss" | "other" | undefined;
|
|
2828
|
-
} | undefined;
|
|
2829
|
-
versionChange?: {
|
|
2830
|
-
from: string;
|
|
2831
|
-
to: string;
|
|
2832
|
-
direction: string;
|
|
2833
|
-
nudged?: boolean | undefined;
|
|
2834
|
-
} | undefined;
|
|
2835
|
-
crash?: {
|
|
2836
|
-
kind: string;
|
|
2837
|
-
message?: string | undefined;
|
|
2838
|
-
tool?: string | undefined;
|
|
2839
|
-
frames?: string[] | undefined;
|
|
2840
|
-
errorType?: string | undefined;
|
|
2841
|
-
port?: "reticle" | "other" | undefined;
|
|
2842
|
-
fingerprint?: string | undefined;
|
|
2843
|
-
machine?: {
|
|
2844
|
-
rssMb: number;
|
|
2845
|
-
heapUsedMb: number;
|
|
2846
|
-
freeMemMb: number;
|
|
2847
|
-
totalMemMb: number;
|
|
2848
|
-
load1x100: number;
|
|
2849
|
-
cpuCount: number;
|
|
2850
|
-
} | undefined;
|
|
2851
|
-
breadcrumb?: string[] | undefined;
|
|
2852
|
-
nodeVersion?: string | undefined;
|
|
2853
|
-
arch?: string | undefined;
|
|
2854
|
-
syscall?: string | undefined;
|
|
2855
|
-
errno?: string | undefined;
|
|
2856
|
-
loopback?: boolean | undefined;
|
|
2857
|
-
internalFrame?: string | undefined;
|
|
2858
|
-
} | undefined;
|
|
2859
|
-
identity?: {
|
|
2860
|
-
context: "company" | "side_project" | "open_source" | "learning";
|
|
2861
|
-
company?: string | undefined;
|
|
2862
|
-
email?: string | undefined;
|
|
2863
|
-
} | undefined;
|
|
2864
|
-
connection?: {
|
|
2865
|
-
reconnect: boolean;
|
|
2866
|
-
daemonAgeMs: number;
|
|
2867
|
-
client?: string | undefined;
|
|
2868
|
-
appConnected?: boolean | undefined;
|
|
2869
|
-
} | undefined;
|
|
2870
|
-
init?: {
|
|
2871
|
-
ok: boolean;
|
|
2872
|
-
reason?: string | undefined;
|
|
2873
|
-
stack?: string | undefined;
|
|
2874
|
-
mcpRegistered?: boolean | undefined;
|
|
2875
|
-
confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
|
|
2876
|
-
} | undefined;
|
|
2877
|
-
onboarding?: {
|
|
2878
|
-
step: string;
|
|
2879
|
-
status: "skipped" | "completed" | "failed" | "started" | "abandoned";
|
|
2880
|
-
phase: "install" | "onboard" | "first_run";
|
|
2881
|
-
reason?: string | undefined;
|
|
2882
|
-
stack?: string | undefined;
|
|
2883
|
-
elapsedMs?: number | undefined;
|
|
2884
|
-
unattended?: boolean | undefined;
|
|
2885
|
-
firstEver?: boolean | undefined;
|
|
2886
|
-
} | undefined;
|
|
2887
|
-
refusal?: {
|
|
2888
|
-
tool: string;
|
|
2889
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2890
|
-
retried: boolean;
|
|
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;
|
|
2892
|
-
} | undefined;
|
|
2893
|
-
outage?: {
|
|
2894
|
-
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
2895
|
-
attempts: number;
|
|
2896
|
-
stage: "first" | "budget_spent" | "recovered";
|
|
2897
|
-
pendingLost?: number | undefined;
|
|
2898
|
-
} | undefined;
|
|
2899
|
-
instrumentation?: {
|
|
2900
|
-
msToFirstApp: number;
|
|
2901
|
-
initialized: boolean;
|
|
2902
|
-
agentAttached: boolean;
|
|
2903
|
-
firstEver?: boolean | undefined;
|
|
2904
|
-
} | undefined;
|
|
2905
|
-
installSource?: "unknown" | "skill_file" | "npx_skill" | "plugin" | "install_script" | "docs_site" | "readme" | "cli_direct" | undefined;
|
|
2906
|
-
licenseId?: string | undefined;
|
|
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;
|
|
2911
|
-
}>;
|
|
1541
|
+
}, z.core.$strip>;
|
|
2912
1542
|
export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;
|