@reticlehq/core 2.14.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{artifacts-entry.d.ts → artifacts/artifacts-entry.d.ts} +7 -7
- package/dist/{artifacts-entry.js → artifacts/artifacts-entry.js} +7 -7
- package/dist/artifacts/flow-composition.d.ts +30 -0
- package/dist/artifacts/flow-composition.js +19 -0
- package/dist/{flow-constants.d.ts → artifacts/flow-constants.d.ts} +89 -3
- package/dist/{flow-constants.js → artifacts/flow-constants.js} +95 -4
- package/dist/artifacts/flow-mutation-target.d.ts +39 -0
- package/dist/artifacts/flow-mutation-target.js +89 -0
- package/dist/artifacts/flow-order.d.ts +30 -0
- package/dist/artifacts/flow-order.js +49 -0
- package/dist/artifacts/flow-select.d.ts +56 -0
- package/dist/artifacts/flow-select.js +56 -0
- package/dist/artifacts/flow-step-tool.d.ts +31 -0
- package/dist/artifacts/flow-step-tool.js +31 -0
- package/dist/artifacts/flow-types.d.ts +3736 -0
- package/dist/artifacts/flow-types.js +463 -0
- package/dist/artifacts/flow-unreached.d.ts +12 -0
- package/dist/artifacts/flow-unreached.js +24 -0
- package/dist/{impact.d.ts → artifacts/impact.d.ts} +119 -103
- package/dist/{impact.js → artifacts/impact.js} +14 -5
- package/dist/{journal.d.ts → artifacts/journal.d.ts} +51 -7
- package/dist/{journal.js → artifacts/journal.js} +38 -2
- package/dist/artifacts/step-effect.d.ts +29 -0
- package/dist/artifacts/step-effect.js +28 -0
- package/dist/hooks/hook-events.d.ts +311 -0
- package/dist/hooks/hook-events.js +127 -0
- package/dist/hooks/hooks-entry.d.ts +9 -0
- package/dist/hooks/hooks-entry.js +9 -0
- package/dist/{brand.d.ts → identity/brand.d.ts} +7 -0
- package/dist/{contract-fingerprint.d.ts → identity/contract-fingerprint.d.ts} +21 -3
- package/dist/{contract-fingerprint.js → identity/contract-fingerprint.js} +22 -4
- package/dist/{document-identity.d.ts → identity/document-identity.d.ts} +4 -5
- package/dist/{document-identity.js → identity/document-identity.js} +4 -5
- package/dist/{source-constants.d.ts → identity/source-constants.d.ts} +4 -4
- package/dist/{source-constants.js → identity/source-constants.js} +4 -4
- package/dist/index.d.ts +56 -43
- package/dist/index.js +65 -45
- package/dist/onboarding.d.ts +114 -0
- package/dist/onboarding.js +141 -0
- package/dist/realm/registry.d.ts +212 -0
- package/dist/realm/registry.js +302 -0
- package/dist/{dev-server-registry.d.ts → registry/dev-server-registry.d.ts} +6 -7
- package/dist/{dev-server-registry.js → registry/dev-server-registry.js} +28 -19
- package/dist/{project-registry.d.ts → registry/project-registry.d.ts} +5 -5
- package/dist/{project-registry.js → registry/project-registry.js} +5 -5
- package/dist/schema/command-name.json +31 -0
- package/dist/schema/event-payloads.json +791 -0
- package/dist/schema/hello-message.json +70 -2
- package/dist/schema/reticle-message.json +70 -2
- package/dist/telemetry-entry.d.ts +1 -1
- package/dist/telemetry-entry.js +1 -1
- package/dist/telemetry-feedback.d.ts +15 -16
- package/dist/telemetry-feedback.js +11 -12
- package/dist/telemetry-license.d.ts +1 -1
- package/dist/telemetry-license.js +1 -1
- package/dist/telemetry-refusal.d.ts +11 -11
- package/dist/telemetry-refusal.js +7 -8
- package/dist/telemetry-session.d.ts +51 -59
- package/dist/telemetry-session.js +47 -55
- package/dist/telemetry.d.ts +243 -214
- package/dist/telemetry.js +83 -98
- package/dist/tour-entry.d.ts +10 -0
- package/dist/tour-entry.js +10 -0
- package/dist/tour.d.ts +125 -0
- package/dist/tour.js +165 -0
- package/dist/{consequence.d.ts → verdict/consequence.d.ts} +32 -15
- package/dist/{consequence.js → verdict/consequence.js} +9 -31
- package/dist/{finding-fingerprint.js → verdict/finding-fingerprint.js} +1 -1
- package/dist/{findings.d.ts → verdict/findings.d.ts} +86 -39
- package/dist/{findings.js → verdict/findings.js} +103 -49
- package/dist/{instrumentation-gap.d.ts → verdict/instrumentation-gap.d.ts} +7 -14
- package/dist/{instrumentation-gap.js → verdict/instrumentation-gap.js} +7 -15
- package/dist/{intent.d.ts → verdict/intent.d.ts} +35 -46
- package/dist/{intent.js → verdict/intent.js} +11 -22
- package/dist/verdict/revision.d.ts +44 -0
- package/dist/verdict/revision.js +53 -0
- package/dist/{run-context.d.ts → verdict/run-context.d.ts} +13 -34
- package/dist/{run-context.js → verdict/run-context.js} +15 -36
- package/dist/{security.js → verdict/security.js} +12 -21
- package/dist/{verification-run.d.ts → verdict/verification-run.d.ts} +381 -105
- package/dist/{verification-run.js → verdict/verification-run.js} +157 -21
- package/dist/{verified-constants.d.ts → verdict/verified-constants.d.ts} +25 -13
- package/dist/{verified-constants.js → verdict/verified-constants.js} +25 -13
- package/dist/{verify-progress.d.ts → verdict/verify-progress.d.ts} +18 -22
- package/dist/{verify-progress.js → verdict/verify-progress.js} +6 -10
- package/dist/wire/channel.d.ts +46 -0
- package/dist/wire/channel.js +95 -0
- package/dist/{constants.d.ts → wire/constants/constants.d.ts} +91 -28
- package/dist/{constants.js → wire/constants/constants.js} +105 -28
- package/dist/{session-constants.d.ts → wire/constants/session-constants.d.ts} +9 -2
- package/dist/{session-constants.js → wire/constants/session-constants.js} +9 -2
- package/dist/{desktop-contract.js → wire/desktop-contract.js} +1 -1
- package/dist/{event-classification.js → wire/event-classification.js} +1 -1
- package/dist/{event-payloads.d.ts → wire/event-payloads.d.ts} +68 -13
- package/dist/{event-payloads.js → wire/event-payloads.js} +21 -3
- package/dist/{event-priority.d.ts → wire/event-priority.d.ts} +1 -4
- package/dist/{event-priority.js → wire/event-priority.js} +2 -5
- package/dist/{global-press.js → wire/global-press.js} +1 -1
- package/dist/{messages.d.ts → wire/messages.d.ts} +239 -48
- package/dist/{messages.js → wire/messages.js} +68 -5
- package/dist/wire/narrow.d.ts +39 -0
- package/dist/wire/narrow.js +45 -0
- package/dist/{net.d.ts → wire/net.d.ts} +12 -13
- package/dist/{net.js → wire/net.js} +12 -13
- package/dist/wire/platform.d.ts +37 -0
- package/dist/wire/platform.js +36 -0
- package/dist/{redaction.js → wire/redaction.js} +12 -12
- package/dist/wire/tool-names.d.ts +133 -0
- package/dist/wire/tool-names.js +142 -0
- package/dist/{toon.js → wire/toon.js} +1 -1
- package/dist/{types.d.ts → wire/types.d.ts} +77 -76
- package/dist/{types.js → wire/types.js} +4 -3
- package/dist/{no-session-reason.d.ts → words/no-session-reason.d.ts} +7 -3
- package/dist/{no-session-reason.js → words/no-session-reason.js} +7 -3
- package/dist/{notices.d.ts → words/notices.d.ts} +8 -12
- package/dist/{notices.js → words/notices.js} +8 -12
- package/package.json +16 -7
- package/dist/flow-types.d.ts +0 -1711
- package/dist/flow-types.js +0 -247
- package/dist/{impact-savings.d.ts → artifacts/impact-savings.d.ts} +0 -0
- package/dist/{impact-savings.js → artifacts/impact-savings.js} +0 -0
- package/dist/{brand.js → identity/brand.js} +0 -0
- package/dist/{edit-epoch.d.ts → identity/edit-epoch.d.ts} +0 -0
- package/dist/{edit-epoch.js → identity/edit-epoch.js} +0 -0
- package/dist/{project-id.d.ts → identity/project-id.d.ts} +0 -0
- package/dist/{project-id.js → identity/project-id.js} +0 -0
- package/dist/{daemon-registry.d.ts → registry/daemon-registry.d.ts} +0 -0
- package/dist/{daemon-registry.js → registry/daemon-registry.js} +0 -0
- package/dist/{finding-fingerprint.d.ts → verdict/finding-fingerprint.d.ts} +0 -0
- package/dist/{security.d.ts → verdict/security.d.ts} +0 -0
- package/dist/{desktop-contract.d.ts → wire/desktop-contract.d.ts} +0 -0
- package/dist/{event-classification.d.ts → wire/event-classification.d.ts} +0 -0
- package/dist/{global-press.d.ts → wire/global-press.d.ts} +0 -0
- package/dist/{redaction.d.ts → wire/redaction.d.ts} +0 -0
- package/dist/{state-select.d.ts → wire/state-select.d.ts} +0 -0
- package/dist/{state-select.js → wire/state-select.js} +0 -0
- package/dist/{toon.d.ts → wire/toon.d.ts} +0 -0
- package/dist/{browser-misdirect.d.ts → words/browser-misdirect.d.ts} +0 -0
- package/dist/{browser-misdirect.js → words/browser-misdirect.js} +0 -0
- package/dist/{unreachable-notice.d.ts → words/unreachable-notice.d.ts} +0 -0
- package/dist/{unreachable-notice.js → words/unreachable-notice.js} +0 -0
- package/dist/{upgrade.d.ts → words/upgrade.d.ts} +2 -2
- /package/dist/{upgrade.js → words/upgrade.js} +0 -0
package/dist/telemetry.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anonymous product telemetry — the contract for how the OSS `reticle` runtime reports ADOPTION
|
|
3
3
|
* (not verification results): is it installed, how often is it invoked, which tools get used, how many
|
|
4
|
-
* distinct machines/projects run it.
|
|
5
|
-
*
|
|
6
|
-
* npm 7+/pnpm run no uninstall lifecycle scripts, so churn is inferred server-side from inactivity.
|
|
4
|
+
* distinct machines/projects run it. Uninstall is deliberately NOT an event — npm 7+ and pnpm run no
|
|
5
|
+
* uninstall lifecycle script, so inactivity is the only signal available.
|
|
7
6
|
*
|
|
8
7
|
* Privacy is structural, not a policy: the ONLY identifiers on the wire are a random per-machine UUID
|
|
9
8
|
* (`anonymousId`, minted locally, never derived from anything personal) and a one-way HASH of the
|
|
@@ -16,6 +15,12 @@
|
|
|
16
15
|
* `z.nativeEnum`, timestamps are epoch-ms NUMBERS, no `any`.
|
|
17
16
|
*/
|
|
18
17
|
import { z } from 'zod';
|
|
18
|
+
import { OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep } from './onboarding.js';
|
|
19
|
+
/**
|
|
20
|
+
* The setup funnel's vocabulary. It is defined in `onboarding.ts`, which is its own subject, and
|
|
21
|
+
* re-exported here so every `@reticlehq/core/telemetry` import reaches it.
|
|
22
|
+
*/
|
|
23
|
+
export { OnboardingPhase, OnboardingStepSchema, OnboardingStepStatus, OnboardingSteps, type OnboardingStep, };
|
|
19
24
|
/** Bump when the event shape changes so the analytics side can segment old senders. */
|
|
20
25
|
export declare const TELEMETRY_EVENT_VERSION = 3;
|
|
21
26
|
/**
|
|
@@ -25,19 +30,17 @@ export declare const TELEMETRY_EVENT_VERSION = 3;
|
|
|
25
30
|
* `tool`, emitted from a file called `invoke-tool.ts`. A name you have to look up is a name that gets
|
|
26
31
|
* misread on a dashboard six months from now.
|
|
27
32
|
*
|
|
28
|
-
* VOLUME IS PART OF THE DESIGN.
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* answers better, because it also preserves the SHAPE of a session instead of scattering it across
|
|
33
|
-
* 200 rows. See `SessionSummary`.
|
|
33
|
+
* VOLUME IS PART OF THE DESIGN. Tool calls are AGGREGATED into a session summary rather than emitted
|
|
34
|
+
* one event each: a single verification loop is 50–200 calls, and the summary answers "which tools
|
|
35
|
+
* get used" better anyway, because it preserves the SHAPE of a session instead of scattering it
|
|
36
|
+
* across 200 rows. See `SessionSummary`.
|
|
34
37
|
*/
|
|
35
38
|
export declare const TelemetryEventKind: {
|
|
36
39
|
/** First-ever run on this machine — powers install count + the new-user curve. */
|
|
37
40
|
readonly RETICLE_INSTALLED: "reticle_installed";
|
|
38
41
|
/**
|
|
39
|
-
* A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read
|
|
40
|
-
*
|
|
42
|
+
* A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read on
|
|
43
|
+
* human intent (`verify` and `gate` mean something very different from `status`).
|
|
41
44
|
*
|
|
42
45
|
* Explicitly NOT emitted for the internal `_daemon` spawn: `reticle mcp` re-runs its own binary to
|
|
43
46
|
* start the daemon, so counting that child inflated the old `invoke` metric ~2x — and worst on
|
|
@@ -56,20 +59,16 @@ export declare const TelemetryEventKind: {
|
|
|
56
59
|
* A PERIODIC roll-up from a daemon that is still running — same payload shape as DAEMON_STOPPED,
|
|
57
60
|
* `final: false`.
|
|
58
61
|
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* opposites. Every one of the 25 flushes had tool calls; not one of the 73 exits did (a daemon that
|
|
63
|
-
* served a tool never idle-exits, so only the idle ones ever reach a clean shutdown). A funnel over
|
|
64
|
-
* the raw event therefore describes active sessions at one end and abandoned ones at the other.
|
|
62
|
+
* Separate from DAEMON_STOPPED because the two populations are OPPOSITES: a daemon that served a
|
|
63
|
+
* tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
|
|
64
|
+
* an exit's name therefore describes active sessions at one end and abandoned ones at the other.
|
|
65
65
|
*
|
|
66
66
|
* Count sessions with DAEMON_STOPPED. Sum work with both.
|
|
67
67
|
*/
|
|
68
68
|
readonly SESSION_PROGRESS: "session_progress";
|
|
69
69
|
/**
|
|
70
|
-
* A verification produced a verdict
|
|
71
|
-
*
|
|
72
|
-
* that caught something a green test would have missed".
|
|
70
|
+
* A verification produced a verdict — an app was actually verified, rather than merely that tools
|
|
71
|
+
* were called.
|
|
73
72
|
*/
|
|
74
73
|
readonly VERIFICATION_COMPLETED: "verification_completed";
|
|
75
74
|
/**
|
|
@@ -83,14 +82,14 @@ export declare const TelemetryEventKind: {
|
|
|
83
82
|
/** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
|
|
84
83
|
readonly RUNTIME_CRASHED: "runtime_crashed";
|
|
85
84
|
/**
|
|
86
|
-
*
|
|
85
|
+
* Somebody reported that something went wrong (or right). UNLIKE every other kind, this one carries
|
|
87
86
|
* author-written free text — which is exactly why it is never emitted passively: it exists only
|
|
88
87
|
* because an agent called `reticle_feedback` or a human ran `reticle feedback`. See
|
|
89
88
|
* `FeedbackSchema` for the consent/redaction contract.
|
|
90
89
|
*/
|
|
91
90
|
readonly FEEDBACK_SUBMITTED: "feedback_submitted";
|
|
92
91
|
/**
|
|
93
|
-
*
|
|
92
|
+
* Somebody chose to say who they are. Like `feedback_submitted`, this exists ONLY because a
|
|
94
93
|
* human ran a command — Reticle never infers an identity from a git remote, an email in git
|
|
95
94
|
* config, or anything else. See `identify.ts` for why that refusal is deliberate.
|
|
96
95
|
*/
|
|
@@ -125,18 +124,17 @@ export declare const TelemetryEventKind: {
|
|
|
125
124
|
*/
|
|
126
125
|
readonly APP_INSTRUMENTED: "app_instrumented";
|
|
127
126
|
/**
|
|
128
|
-
* The agent LOST its Reticle tools
|
|
129
|
-
* completely invisible in the field.
|
|
127
|
+
* The agent LOST its Reticle tools, and nothing else reports it.
|
|
130
128
|
*
|
|
131
129
|
* `mcp_client_connected` shows reconnect churn only from the daemon's side, and the proxy's own
|
|
132
|
-
* account of an outage
|
|
130
|
+
* account of an outage goes to a local file nobody uploads. So "how often does a real user's MCP
|
|
133
131
|
* server go down, and does it come back" — the single question the transport has to answer — could
|
|
134
132
|
* not be asked of any dashboard.
|
|
135
133
|
*
|
|
136
134
|
* Deliberately capped at TWO per proxy process: once on the first outage of a session, and once if
|
|
137
135
|
* the retry budget is spent (the severe case, where it stopped retrying and went dormant). The
|
|
138
|
-
* per-call `tool` event was already removed here for cost, and
|
|
139
|
-
*
|
|
136
|
+
* per-call `tool` event was already removed here for cost, and a single dormant proxy can reconnect
|
|
137
|
+
* hundreds of times — an event per reconnect would bill for the pathology instead of measuring it.
|
|
140
138
|
* The first-outage event answers "what share of sessions lose MCP at all", which is the number
|
|
141
139
|
* that decides whether this is fixed.
|
|
142
140
|
*/
|
|
@@ -146,26 +144,25 @@ export declare const TelemetryEventKind: {
|
|
|
146
144
|
* failed on a missing dependency was indistinguishable from a user who never tried.
|
|
147
145
|
*/
|
|
148
146
|
readonly INIT_COMPLETED: "init_completed";
|
|
147
|
+
readonly ONBOARDING_STEP: "onboarding_step";
|
|
149
148
|
/**
|
|
150
149
|
* Reticle found a defect in the app under test.
|
|
151
150
|
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
* an investor or published, because it counts outcomes for users rather than activity by them.
|
|
151
|
+
* Everything else here measures whether Reticle is USED; this measures whether it WORKS, because it
|
|
152
|
+
* counts outcomes rather than activity.
|
|
155
153
|
*
|
|
156
154
|
* Deliberately a discrete event rather than only a counter: each bug carries its KIND, and the
|
|
157
|
-
* distribution is the interesting part
|
|
158
|
-
*
|
|
159
|
-
* human watching the screen would have caught" is the argument.
|
|
155
|
+
* distribution is the interesting part — a passing assertion sitting on a failed write is a
|
|
156
|
+
* different finding from a console error, and a single count cannot tell them apart.
|
|
160
157
|
*/
|
|
161
158
|
readonly BUG_FOUND: "bug_found";
|
|
162
159
|
/**
|
|
163
160
|
* A tool could not do what was asked, and said so.
|
|
164
161
|
*
|
|
165
162
|
* The refusal path already computes a precise diagnosis, hands it to the agent as prose, and then
|
|
166
|
-
* throws it away. So
|
|
167
|
-
*
|
|
168
|
-
*
|
|
163
|
+
* throws it away. So a connected agent that never drives is visible only by subtraction, and the
|
|
164
|
+
* three genuinely different situations behind it (nothing was ever wired here, the app is not
|
|
165
|
+
* running, a session was lost) arrive as one silence.
|
|
169
166
|
*
|
|
170
167
|
* `noSessionErrors` on the session summary counts one of those causes and only at the end of a
|
|
171
168
|
* session, without the tool, without the discriminator, and without whether the agent tried again.
|
|
@@ -177,12 +174,12 @@ export type TelemetryEventKind = (typeof TelemetryEventKind)[keyof typeof Teleme
|
|
|
177
174
|
/** True when this event happened inside a daemon run, so a `sessionId` on it means something. */
|
|
178
175
|
export declare function isSessionScoped(kind: string): boolean;
|
|
179
176
|
/**
|
|
180
|
-
* Who caused this. The only honest split available
|
|
177
|
+
* Who caused this. The only honest split available: a `reticle` command was TYPED by a person,
|
|
181
178
|
* while an MCP tool call came from the agent's own loop.
|
|
182
179
|
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
180
|
+
* It deliberately does NOT claim to know whether the human told the agent to verify or the agent
|
|
181
|
+
* decided on its own — that lives in a prompt Reticle never sees. Inferring it from timing would be
|
|
182
|
+
* a guess dressed as a measurement, and a dashboard cannot tell the difference later.
|
|
186
183
|
*/
|
|
187
184
|
export declare const TelemetryActor: {
|
|
188
185
|
readonly HUMAN: "human";
|
|
@@ -238,7 +235,6 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
238
235
|
passed: z.ZodBoolean;
|
|
239
236
|
/**
|
|
240
237
|
* TRUE when the assertion passed but Reticle refused to call it verified — a caught false green.
|
|
241
|
-
* This is the product's whole thesis expressed as one boolean, and the number to put in a deck.
|
|
242
238
|
*/
|
|
243
239
|
falseGreenCaught: z.ZodBoolean;
|
|
244
240
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -286,6 +282,7 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
286
282
|
* no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
|
|
287
283
|
*/
|
|
288
284
|
reason: z.ZodOptional<z.ZodNativeEnum<{
|
|
285
|
+
readonly CAPABILITY_ABSENT: "capability-absent";
|
|
289
286
|
readonly INCONCLUSIVE: "inconclusive";
|
|
290
287
|
readonly OBSERVATION_LOST: "observation_lost";
|
|
291
288
|
readonly WINDOW_CLOSED_EARLY: "window_closed_early";
|
|
@@ -306,12 +303,12 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
306
303
|
* WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
|
|
307
304
|
*
|
|
308
305
|
* The three causes belong to three different owners and need three different fixes, and without
|
|
309
|
-
* this they are one bar
|
|
310
|
-
*
|
|
306
|
+
* this they are one bar — and the cause has turned out to be Reticle's own eviction counter
|
|
307
|
+
* miscounting, which no aggregate could have shown.
|
|
311
308
|
*
|
|
312
309
|
* ONE value, not a list: `losses` can hold several and a multi-value property is not something a
|
|
313
310
|
* dashboard can group by, so the FIRST is sent and the order in the producers is the order of
|
|
314
|
-
* ownership —
|
|
311
|
+
* ownership — Reticle's before the page's. Absent on every verdict whose capture was clean.
|
|
315
312
|
*/
|
|
316
313
|
uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
|
|
317
314
|
readonly BUFFER_LOSS: "buffer_loss";
|
|
@@ -324,7 +321,7 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
324
321
|
via: string;
|
|
325
322
|
passed: boolean;
|
|
326
323
|
falseGreenCaught: boolean;
|
|
327
|
-
reason?: "
|
|
324
|
+
reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
328
325
|
durationMs?: number | undefined;
|
|
329
326
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
330
327
|
browser?: string | undefined;
|
|
@@ -334,7 +331,7 @@ export declare const VerificationSchema: z.ZodObject<{
|
|
|
334
331
|
via: string;
|
|
335
332
|
passed: boolean;
|
|
336
333
|
falseGreenCaught: boolean;
|
|
337
|
-
reason?: "
|
|
334
|
+
reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
338
335
|
durationMs?: number | undefined;
|
|
339
336
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
340
337
|
browser?: string | undefined;
|
|
@@ -357,30 +354,28 @@ export declare const VersionChangeSchema: z.ZodObject<{
|
|
|
357
354
|
/** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
|
|
358
355
|
direction: z.ZodString;
|
|
359
356
|
}, "strip", z.ZodTypeAny, {
|
|
357
|
+
direction: string;
|
|
360
358
|
from: string;
|
|
361
359
|
to: string;
|
|
362
|
-
direction: string;
|
|
363
360
|
nudged?: boolean | undefined;
|
|
364
361
|
}, {
|
|
362
|
+
direction: string;
|
|
365
363
|
from: string;
|
|
366
364
|
to: string;
|
|
367
|
-
direction: string;
|
|
368
365
|
nudged?: boolean | undefined;
|
|
369
366
|
}>;
|
|
370
367
|
export type VersionChange = z.infer<typeof VersionChangeSchema>;
|
|
371
368
|
/**
|
|
372
369
|
* A crash, with enough detail to actually diagnose it.
|
|
373
370
|
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
* give the hash a meaning, while keeping the line that matters: our code and our failure, never the
|
|
378
|
-
* user's code and never their data.
|
|
371
|
+
* A fingerprint alone makes crashes RANKABLE and completely UNDIAGNOSABLE — a group key with no
|
|
372
|
+
* dictionary. Everything below exists to give the hash a meaning, while keeping the line that
|
|
373
|
+
* matters: Reticle's own code and its own failure, never the user's code and never their data.
|
|
379
374
|
*/
|
|
380
375
|
/**
|
|
381
376
|
* Whether a failed connection was aimed at a port Reticle itself uses.
|
|
382
377
|
*
|
|
383
|
-
* An enum rather than the number, because the number is the reporter's and the answer is
|
|
378
|
+
* An enum rather than the number, because the number is the reporter's and the answer is Reticle's: all
|
|
384
379
|
* anyone needs to know is whose problem it is. Refused on a Reticle port is a lifecycle problem —
|
|
385
380
|
* a daemon that is not up; refused anywhere else is somebody else's service.
|
|
386
381
|
*/
|
|
@@ -394,11 +389,11 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
394
389
|
kind: z.ZodString;
|
|
395
390
|
/** The error's constructor name (`TypeError`) — coarse, safe, and enough to triage. */
|
|
396
391
|
errorType: z.ZodOptional<z.ZodString>;
|
|
397
|
-
/** Hash of the type +
|
|
392
|
+
/** Hash of the type + Reticle's own frames. Groups the same crash across every machine. */
|
|
398
393
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
399
394
|
/**
|
|
400
395
|
* The message with every VARIABLE part removed — quoted strings, URLs, paths, ids, numbers all
|
|
401
|
-
* replaced by `*`. `no baseline named *`
|
|
396
|
+
* replaced by `*`. `no baseline named *` says exactly what broke; the flow name that made it
|
|
402
397
|
* specific to one user never leaves. This is what turns the fingerprint from an opaque key into a
|
|
403
398
|
* readable defect.
|
|
404
399
|
*/
|
|
@@ -406,7 +401,7 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
406
401
|
/**
|
|
407
402
|
* The RETICLE-OWNED stack frames, innermost first, as `function@file:line`.
|
|
408
403
|
*
|
|
409
|
-
* This is
|
|
404
|
+
* This is Reticle's own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
|
|
410
405
|
* npm tarball — so there is no privacy question in sending it, and it is the single most useful
|
|
411
406
|
* thing for a root-cause analysis: the file, the line, and the function. Frames belonging to the
|
|
412
407
|
* user's application or to node internals are dropped entirely before this is built.
|
|
@@ -419,16 +414,16 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
419
414
|
*
|
|
420
415
|
* Answers "what was it trying to do", which a single frame cannot: `snapshot → act → act →
|
|
421
416
|
* assert` is a verification loop, `lease_acquire → navigate → crash` is a startup problem. Tool
|
|
422
|
-
* NAMES only, from
|
|
417
|
+
* NAMES only, from a fixed vocabulary; no arguments, so nothing the agent typed is in here.
|
|
423
418
|
*/
|
|
424
419
|
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
425
|
-
/** Node major/minor — crashes cluster hard by runtime version
|
|
420
|
+
/** Node major/minor — crashes cluster hard by runtime version. */
|
|
426
421
|
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
427
422
|
/** `arm64` / `x64`. A surprising number of native-module failures are architecture-specific. */
|
|
428
423
|
arch: z.ZodOptional<z.ZodString>;
|
|
429
424
|
/**
|
|
430
|
-
* The machine at the moment of the crash. "Out of memory" and
|
|
431
|
-
* trace and are completely different problems; this is what tells them apart.
|
|
425
|
+
* The machine at the moment of the crash. "Out of memory" and a Reticle defect look identical in a
|
|
426
|
+
* stack trace and are completely different problems; this is what tells them apart.
|
|
432
427
|
*/
|
|
433
428
|
machine: z.ZodOptional<z.ZodObject<{
|
|
434
429
|
rssMb: z.ZodNumber;
|
|
@@ -482,10 +477,10 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
482
477
|
internalFrame: z.ZodOptional<z.ZodString>;
|
|
483
478
|
}, "strip", z.ZodTypeAny, {
|
|
484
479
|
kind: string;
|
|
485
|
-
port?: "other" | "reticle" | undefined;
|
|
486
480
|
message?: string | undefined;
|
|
487
481
|
tool?: string | undefined;
|
|
488
482
|
errorType?: string | undefined;
|
|
483
|
+
port?: "reticle" | "other" | undefined;
|
|
489
484
|
fingerprint?: string | undefined;
|
|
490
485
|
machine?: {
|
|
491
486
|
rssMb: number;
|
|
@@ -505,10 +500,10 @@ export declare const CrashSchema: z.ZodObject<{
|
|
|
505
500
|
internalFrame?: string | undefined;
|
|
506
501
|
}, {
|
|
507
502
|
kind: string;
|
|
508
|
-
port?: "other" | "reticle" | undefined;
|
|
509
503
|
message?: string | undefined;
|
|
510
504
|
tool?: string | undefined;
|
|
511
505
|
errorType?: string | undefined;
|
|
506
|
+
port?: "reticle" | "other" | undefined;
|
|
512
507
|
fingerprint?: string | undefined;
|
|
513
508
|
machine?: {
|
|
514
509
|
rssMb: number;
|
|
@@ -548,15 +543,8 @@ export type BugSource = (typeof BugSource)[keyof typeof BugSource];
|
|
|
548
543
|
/**
|
|
549
544
|
* WHOSE fault the defect was.
|
|
550
545
|
*
|
|
551
|
-
* `bugsFound` is
|
|
552
|
-
*
|
|
553
|
-
* `attribution: 'app'` was a misattribution, so a single session would have published defects
|
|
554
|
-
* against a customer's product that did not exist. A metric confidently wrong about whose fault
|
|
555
|
-
* something is, is worse than no metric — it is the number a founder steers on, and it points at the
|
|
556
|
-
* customer. It was removed, and an ABSENT field then made "nobody classified this" and "we looked
|
|
557
|
-
* and could not tell" the same fact, which is the other half of the same problem.
|
|
558
|
-
*
|
|
559
|
-
* So it is back with two rules, and both are what the earlier versions lacked:
|
|
546
|
+
* `bugsFound` is not publishable without this, and a count confidently wrong about whose fault
|
|
547
|
+
* something is, is worse than no count: it points at the customer. Two rules keep it honest:
|
|
560
548
|
*
|
|
561
549
|
* 1. **Always present.** `UNCLASSIFIED` is a value, not a gap. Absence would mean an old sender or a
|
|
562
550
|
* path that forgot; a value means the classifier ran and declined.
|
|
@@ -564,8 +552,7 @@ export type BugSource = (typeof BugSource)[keyof typeof BugSource];
|
|
|
564
552
|
* failed, a signal the app fired carrying data that disagrees with its own screen, a written
|
|
565
553
|
* field echoed back changed. Never "nothing else explained it". Core already draws exactly this
|
|
566
554
|
* line for the verdict, in `ABSENCE_DERIVED_CONTRADICTIONS`, and that is the line reused rather
|
|
567
|
-
* than a second judgement invented
|
|
568
|
-
* an absence-derived kind, so this rule produces zero of them on the same data.
|
|
555
|
+
* than a second judgement invented beside it.
|
|
569
556
|
*/
|
|
570
557
|
export declare const BugAttribution: {
|
|
571
558
|
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
@@ -579,8 +566,8 @@ export declare const BugAttribution: {
|
|
|
579
566
|
*
|
|
580
567
|
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
581
568
|
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
582
|
-
* testid" identically, and an owner invented for it would put a guess into
|
|
583
|
-
*
|
|
569
|
+
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
570
|
+
* Exclude it from a defect count; never fold it into `app`.
|
|
584
571
|
*/
|
|
585
572
|
readonly UNCLASSIFIED: "unclassified";
|
|
586
573
|
};
|
|
@@ -590,7 +577,7 @@ export type BugAttribution = (typeof BugAttribution)[keyof typeof BugAttribution
|
|
|
590
577
|
*
|
|
591
578
|
* `kind` is the taxonomy value from `findings.ts` — `signal-contradicted`, `console-error`,
|
|
592
579
|
* `duplicate-request` and so on. Never a selector, a URL, an element, or any description of the
|
|
593
|
-
* user's app
|
|
580
|
+
* user's app — THAT a class of defect was found, never WHAT it was in.
|
|
594
581
|
*/
|
|
595
582
|
export declare const BugFoundSchema: z.ZodObject<{
|
|
596
583
|
source: z.ZodNativeEnum<{
|
|
@@ -639,7 +626,7 @@ export declare const BugFoundSchema: z.ZodObject<{
|
|
|
639
626
|
/**
|
|
640
627
|
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
641
628
|
*
|
|
642
|
-
* Absence and "
|
|
629
|
+
* Absence and "the evidence could not say" are different facts, and only one of them is a
|
|
643
630
|
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
644
631
|
* `BugAttribution` for why `app` needs positive evidence.
|
|
645
632
|
*/
|
|
@@ -655,8 +642,8 @@ export declare const BugFoundSchema: z.ZodObject<{
|
|
|
655
642
|
*
|
|
656
643
|
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
657
644
|
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
658
|
-
* testid" identically, and an owner invented for it would put a guess into
|
|
659
|
-
*
|
|
645
|
+
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
646
|
+
* Exclude it from a defect count; never fold it into `app`.
|
|
660
647
|
*/
|
|
661
648
|
readonly UNCLASSIFIED: "unclassified";
|
|
662
649
|
}>;
|
|
@@ -674,16 +661,16 @@ export declare const BugFoundSchema: z.ZodObject<{
|
|
|
674
661
|
*/
|
|
675
662
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
676
663
|
}, "strip", z.ZodTypeAny, {
|
|
677
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
678
664
|
kind: string;
|
|
665
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
679
666
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
680
667
|
falseGreen: boolean;
|
|
681
668
|
repeat: boolean;
|
|
682
669
|
tool?: string | undefined;
|
|
683
670
|
fingerprint?: string | undefined;
|
|
684
671
|
}, {
|
|
685
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
686
672
|
kind: string;
|
|
673
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
687
674
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
688
675
|
falseGreen: boolean;
|
|
689
676
|
repeat: boolean;
|
|
@@ -706,9 +693,9 @@ export declare const McpConnectionSchema: z.ZodObject<{
|
|
|
706
693
|
/**
|
|
707
694
|
* Was an app carrying the SDK already attached to this daemon when the agent arrived.
|
|
708
695
|
*
|
|
709
|
-
* The mirror of `AppInstrumentation.agentAttached`, and the closest
|
|
710
|
-
* AGENT SAW.
|
|
711
|
-
*
|
|
696
|
+
* The mirror of `AppInstrumentation.agentAttached`, and the closest available read on WHAT THE
|
|
697
|
+
* AGENT SAW. A client that attaches and never calls a tool is otherwise reachable only by
|
|
698
|
+
* subtraction: `tool_refused` cannot describe it, because an agent that reads the server
|
|
712
699
|
* instructions, learns nothing is wired and stops has refused nothing. It made no call at all.
|
|
713
700
|
*
|
|
714
701
|
* `false` means the handshake happened against a daemon with no app to look at, which is the state
|
|
@@ -768,13 +755,11 @@ export declare const OutageStage: {
|
|
|
768
755
|
/**
|
|
769
756
|
* The link came back on its own, and `attempts` says what it cost.
|
|
770
757
|
*
|
|
771
|
-
* Without it `first` is unfalsifiable.
|
|
772
|
-
* counter is 1 by construction and the cap keeps any later drop from
|
|
773
|
-
*
|
|
774
|
-
*
|
|
775
|
-
*
|
|
776
|
-
* makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
|
|
777
|
-
* whose tools never came back.
|
|
758
|
+
* Without it `first` is unfalsifiable. `first` is emitted at the moment of the drop, when the
|
|
759
|
+
* attempt counter is 1 by construction, and the cap keeps any later drop from replacing it — so
|
|
760
|
+
* on its own it can only ever report one stage and one attempt, which reads as "reconnection
|
|
761
|
+
* never advances" when it really means "emitted before there is anything to say". `first` with no
|
|
762
|
+
* `recovered` and no `budget_spent` is a session whose tools never came back.
|
|
778
763
|
*/
|
|
779
764
|
readonly RECOVERED: "recovered";
|
|
780
765
|
};
|
|
@@ -824,13 +809,11 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
824
809
|
/**
|
|
825
810
|
* The link came back on its own, and `attempts` says what it cost.
|
|
826
811
|
*
|
|
827
|
-
* Without it `first` is unfalsifiable.
|
|
828
|
-
* counter is 1 by construction and the cap keeps any later drop from
|
|
829
|
-
*
|
|
830
|
-
*
|
|
831
|
-
*
|
|
832
|
-
* makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
|
|
833
|
-
* whose tools never came back.
|
|
812
|
+
* Without it `first` is unfalsifiable. `first` is emitted at the moment of the drop, when the
|
|
813
|
+
* attempt counter is 1 by construction, and the cap keeps any later drop from replacing it — so
|
|
814
|
+
* on its own it can only ever report one stage and one attempt, which reads as "reconnection
|
|
815
|
+
* never advances" when it really means "emitted before there is anything to say". `first` with no
|
|
816
|
+
* `recovered` and no `budget_spent` is a session whose tools never came back.
|
|
834
817
|
*/
|
|
835
818
|
readonly RECOVERED: "recovered";
|
|
836
819
|
}>;
|
|
@@ -862,10 +845,10 @@ export declare const McpOutageSchema: z.ZodObject<{
|
|
|
862
845
|
/**
|
|
863
846
|
* In-flight tool calls this drop actually killed — the only part an agent can FEEL.
|
|
864
847
|
*
|
|
865
|
-
* Without it every drop looks equally bad.
|
|
866
|
-
*
|
|
867
|
-
*
|
|
868
|
-
*
|
|
848
|
+
* Without it every drop looks equally bad. The common outage is `stage: first` with `attempts: 1`
|
|
849
|
+
* — the stream ended once and the proxy reconnected, which for an agent with nothing in flight is
|
|
850
|
+
* invisible. Counting those as "the agent lost its tools" overstates the problem by roughly the
|
|
851
|
+
* whole total, and buries the one drop that mattered.
|
|
869
852
|
*
|
|
870
853
|
* Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
|
|
871
854
|
* worth driving down.
|
|
@@ -887,8 +870,7 @@ export type McpOutage = z.infer<typeof McpOutageSchema>;
|
|
|
887
870
|
* WHICH published route brought this install in.
|
|
888
871
|
*
|
|
889
872
|
* Four routes ship at once — the SKILL.md paste URL, an `npx skills add` package, a Claude Code
|
|
890
|
-
* plugin, and docs.reticle.sh — and
|
|
891
|
-
* decision about where to spend effort on distribution is therefore made blind.
|
|
873
|
+
* plugin, and docs.reticle.sh — and nothing else distinguishes them.
|
|
892
874
|
*
|
|
893
875
|
* The value is NEVER inferred. It is read from a single explicit marker (`RETICLE_INSTALL_SOURCE`)
|
|
894
876
|
* that a channel sets on itself, narrowed against this list, and anything else reports `UNKNOWN`.
|
|
@@ -897,7 +879,7 @@ export type McpOutage = z.infer<typeof McpOutageSchema>;
|
|
|
897
879
|
* a measurement. Read a small `unknown` as a marker that spread, never as success.
|
|
898
880
|
*
|
|
899
881
|
* What the marker CANNOT be derived from, and why nothing here tries:
|
|
900
|
-
* - `npm_config_user_agent` says npm/pnpm ran
|
|
882
|
+
* - `npm_config_user_agent` says npm/pnpm ran the command. Every one of these routes runs through npx, so it
|
|
901
883
|
* separates none of them.
|
|
902
884
|
* - The presence of `.claude-plugin/` or an installed skill directory says a plugin or a skill is
|
|
903
885
|
* present in the repo, not that it is the thing that ran `init` — and both are present at once on
|
|
@@ -961,9 +943,9 @@ export declare const InitConfirmation: {
|
|
|
961
943
|
/**
|
|
962
944
|
* A dev server with Reticle loaded IS running, and no page dialled.
|
|
963
945
|
*
|
|
964
|
-
* The half of NO_SESSION
|
|
965
|
-
*
|
|
966
|
-
*
|
|
946
|
+
* The half of NO_SESSION with a completely different fix: the config is right and the process was
|
|
947
|
+
* restarted, so telling this person to restart their dev server is an instruction they have
|
|
948
|
+
* already followed. They need to open the app.
|
|
967
949
|
*/
|
|
968
950
|
readonly NO_PAGE: "no_page";
|
|
969
951
|
};
|
|
@@ -1001,9 +983,9 @@ export declare const InitOutcomeSchema: z.ZodObject<{
|
|
|
1001
983
|
/**
|
|
1002
984
|
* A dev server with Reticle loaded IS running, and no page dialled.
|
|
1003
985
|
*
|
|
1004
|
-
* The half of NO_SESSION
|
|
1005
|
-
*
|
|
1006
|
-
*
|
|
986
|
+
* The half of NO_SESSION with a completely different fix: the config is right and the process was
|
|
987
|
+
* restarted, so telling this person to restart their dev server is an instruction they have
|
|
988
|
+
* already followed. They need to open the app.
|
|
1007
989
|
*/
|
|
1008
990
|
readonly NO_PAGE: "no_page";
|
|
1009
991
|
}>>;
|
|
@@ -1050,8 +1032,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1050
1032
|
/** First-ever run on this machine — powers install count + the new-user curve. */
|
|
1051
1033
|
readonly RETICLE_INSTALLED: "reticle_installed";
|
|
1052
1034
|
/**
|
|
1053
|
-
* A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read
|
|
1054
|
-
*
|
|
1035
|
+
* A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read on
|
|
1036
|
+
* human intent (`verify` and `gate` mean something very different from `status`).
|
|
1055
1037
|
*
|
|
1056
1038
|
* Explicitly NOT emitted for the internal `_daemon` spawn: `reticle mcp` re-runs its own binary to
|
|
1057
1039
|
* start the daemon, so counting that child inflated the old `invoke` metric ~2x — and worst on
|
|
@@ -1070,20 +1052,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1070
1052
|
* A PERIODIC roll-up from a daemon that is still running — same payload shape as DAEMON_STOPPED,
|
|
1071
1053
|
* `final: false`.
|
|
1072
1054
|
*
|
|
1073
|
-
*
|
|
1074
|
-
*
|
|
1075
|
-
*
|
|
1076
|
-
* opposites. Every one of the 25 flushes had tool calls; not one of the 73 exits did (a daemon that
|
|
1077
|
-
* served a tool never idle-exits, so only the idle ones ever reach a clean shutdown). A funnel over
|
|
1078
|
-
* the raw event therefore describes active sessions at one end and abandoned ones at the other.
|
|
1055
|
+
* Separate from DAEMON_STOPPED because the two populations are OPPOSITES: a daemon that served a
|
|
1056
|
+
* tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
|
|
1057
|
+
* an exit's name therefore describes active sessions at one end and abandoned ones at the other.
|
|
1079
1058
|
*
|
|
1080
1059
|
* Count sessions with DAEMON_STOPPED. Sum work with both.
|
|
1081
1060
|
*/
|
|
1082
1061
|
readonly SESSION_PROGRESS: "session_progress";
|
|
1083
1062
|
/**
|
|
1084
|
-
* A verification produced a verdict
|
|
1085
|
-
*
|
|
1086
|
-
* that caught something a green test would have missed".
|
|
1063
|
+
* A verification produced a verdict — an app was actually verified, rather than merely that tools
|
|
1064
|
+
* were called.
|
|
1087
1065
|
*/
|
|
1088
1066
|
readonly VERIFICATION_COMPLETED: "verification_completed";
|
|
1089
1067
|
/**
|
|
@@ -1097,14 +1075,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1097
1075
|
/** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
|
|
1098
1076
|
readonly RUNTIME_CRASHED: "runtime_crashed";
|
|
1099
1077
|
/**
|
|
1100
|
-
*
|
|
1078
|
+
* Somebody reported that something went wrong (or right). UNLIKE every other kind, this one carries
|
|
1101
1079
|
* author-written free text — which is exactly why it is never emitted passively: it exists only
|
|
1102
1080
|
* because an agent called `reticle_feedback` or a human ran `reticle feedback`. See
|
|
1103
1081
|
* `FeedbackSchema` for the consent/redaction contract.
|
|
1104
1082
|
*/
|
|
1105
1083
|
readonly FEEDBACK_SUBMITTED: "feedback_submitted";
|
|
1106
1084
|
/**
|
|
1107
|
-
*
|
|
1085
|
+
* Somebody chose to say who they are. Like `feedback_submitted`, this exists ONLY because a
|
|
1108
1086
|
* human ran a command — Reticle never infers an identity from a git remote, an email in git
|
|
1109
1087
|
* config, or anything else. See `identify.ts` for why that refusal is deliberate.
|
|
1110
1088
|
*/
|
|
@@ -1139,18 +1117,17 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1139
1117
|
*/
|
|
1140
1118
|
readonly APP_INSTRUMENTED: "app_instrumented";
|
|
1141
1119
|
/**
|
|
1142
|
-
* The agent LOST its Reticle tools
|
|
1143
|
-
* completely invisible in the field.
|
|
1120
|
+
* The agent LOST its Reticle tools, and nothing else reports it.
|
|
1144
1121
|
*
|
|
1145
1122
|
* `mcp_client_connected` shows reconnect churn only from the daemon's side, and the proxy's own
|
|
1146
|
-
* account of an outage
|
|
1123
|
+
* account of an outage goes to a local file nobody uploads. So "how often does a real user's MCP
|
|
1147
1124
|
* server go down, and does it come back" — the single question the transport has to answer — could
|
|
1148
1125
|
* not be asked of any dashboard.
|
|
1149
1126
|
*
|
|
1150
1127
|
* Deliberately capped at TWO per proxy process: once on the first outage of a session, and once if
|
|
1151
1128
|
* the retry budget is spent (the severe case, where it stopped retrying and went dormant). The
|
|
1152
|
-
* per-call `tool` event was already removed here for cost, and
|
|
1153
|
-
*
|
|
1129
|
+
* per-call `tool` event was already removed here for cost, and a single dormant proxy can reconnect
|
|
1130
|
+
* hundreds of times — an event per reconnect would bill for the pathology instead of measuring it.
|
|
1154
1131
|
* The first-outage event answers "what share of sessions lose MCP at all", which is the number
|
|
1155
1132
|
* that decides whether this is fixed.
|
|
1156
1133
|
*/
|
|
@@ -1160,26 +1137,25 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1160
1137
|
* failed on a missing dependency was indistinguishable from a user who never tried.
|
|
1161
1138
|
*/
|
|
1162
1139
|
readonly INIT_COMPLETED: "init_completed";
|
|
1140
|
+
readonly ONBOARDING_STEP: "onboarding_step";
|
|
1163
1141
|
/**
|
|
1164
1142
|
* Reticle found a defect in the app under test.
|
|
1165
1143
|
*
|
|
1166
|
-
*
|
|
1167
|
-
*
|
|
1168
|
-
* an investor or published, because it counts outcomes for users rather than activity by them.
|
|
1144
|
+
* Everything else here measures whether Reticle is USED; this measures whether it WORKS, because it
|
|
1145
|
+
* counts outcomes rather than activity.
|
|
1169
1146
|
*
|
|
1170
1147
|
* Deliberately a discrete event rather than only a counter: each bug carries its KIND, and the
|
|
1171
|
-
* distribution is the interesting part
|
|
1172
|
-
*
|
|
1173
|
-
* human watching the screen would have caught" is the argument.
|
|
1148
|
+
* distribution is the interesting part — a passing assertion sitting on a failed write is a
|
|
1149
|
+
* different finding from a console error, and a single count cannot tell them apart.
|
|
1174
1150
|
*/
|
|
1175
1151
|
readonly BUG_FOUND: "bug_found";
|
|
1176
1152
|
/**
|
|
1177
1153
|
* A tool could not do what was asked, and said so.
|
|
1178
1154
|
*
|
|
1179
1155
|
* The refusal path already computes a precise diagnosis, hands it to the agent as prose, and then
|
|
1180
|
-
* throws it away. So
|
|
1181
|
-
*
|
|
1182
|
-
*
|
|
1156
|
+
* throws it away. So a connected agent that never drives is visible only by subtraction, and the
|
|
1157
|
+
* three genuinely different situations behind it (nothing was ever wired here, the app is not
|
|
1158
|
+
* running, a session was lost) arrive as one silence.
|
|
1183
1159
|
*
|
|
1184
1160
|
* `noSessionErrors` on the session summary counts one of those causes and only at the end of a
|
|
1185
1161
|
* session, without the tool, without the discriminator, and without whether the agent tried again.
|
|
@@ -1197,7 +1173,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1197
1173
|
* ADVISORY hint that this run looks automated, when something beyond `CI` suggests it.
|
|
1198
1174
|
*
|
|
1199
1175
|
* `ci` reads one environment variable, which is right for a GitHub Actions runner and blind to a
|
|
1200
|
-
* cloud agent sandbox
|
|
1176
|
+
* cloud agent sandbox, which lands in the data with `ci: false`. This is the
|
|
1201
1177
|
* second angle, and it is NEVER a filter: people work in containers, in Codespaces, and over ssh
|
|
1202
1178
|
* with no terminal. Never exclude a row because this is set; absent means nothing looked
|
|
1203
1179
|
* automated, not that a human was present. See automation-hint.ts for the rejected signals.
|
|
@@ -1279,9 +1255,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1279
1255
|
readonly PROJECT: "project";
|
|
1280
1256
|
}>>;
|
|
1281
1257
|
}, "strip", z.ZodTypeAny, {
|
|
1282
|
-
source: "agent" | "human";
|
|
1283
1258
|
text: string;
|
|
1284
1259
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1260
|
+
source: "agent" | "human";
|
|
1285
1261
|
impact?: string | undefined;
|
|
1286
1262
|
trace?: string | undefined;
|
|
1287
1263
|
rating?: number | undefined;
|
|
@@ -1297,9 +1273,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1297
1273
|
client?: string | undefined;
|
|
1298
1274
|
mcpScope?: "user" | "project" | undefined;
|
|
1299
1275
|
}, {
|
|
1300
|
-
source: "agent" | "human";
|
|
1301
1276
|
text: string;
|
|
1302
1277
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
1278
|
+
source: "agent" | "human";
|
|
1303
1279
|
impact?: string | undefined;
|
|
1304
1280
|
trace?: string | undefined;
|
|
1305
1281
|
rating?: number | undefined;
|
|
@@ -1498,7 +1474,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1498
1474
|
clientVersions?: Record<string, string> | undefined;
|
|
1499
1475
|
appConnects?: number | undefined;
|
|
1500
1476
|
msToFirstApp?: number | undefined;
|
|
1501
|
-
endReason?: "verified" | "
|
|
1477
|
+
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
1502
1478
|
feedbackPrompted?: number | undefined;
|
|
1503
1479
|
errorClasses?: Record<string, number> | undefined;
|
|
1504
1480
|
errorsRecovered?: number | undefined;
|
|
@@ -1506,7 +1482,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1506
1482
|
endedWithVerdict?: boolean | undefined;
|
|
1507
1483
|
updateNudged?: boolean | undefined;
|
|
1508
1484
|
updateOffered?: string | undefined;
|
|
1509
|
-
exit?: "
|
|
1485
|
+
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1510
1486
|
}, {
|
|
1511
1487
|
durationMs: number;
|
|
1512
1488
|
toolCalls: number;
|
|
@@ -1563,7 +1539,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1563
1539
|
clientVersions?: Record<string, string> | undefined;
|
|
1564
1540
|
appConnects?: number | undefined;
|
|
1565
1541
|
msToFirstApp?: number | undefined;
|
|
1566
|
-
endReason?: "verified" | "
|
|
1542
|
+
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
1567
1543
|
feedbackPrompted?: number | undefined;
|
|
1568
1544
|
errorClasses?: Record<string, number> | undefined;
|
|
1569
1545
|
errorsRecovered?: number | undefined;
|
|
@@ -1571,7 +1547,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1571
1547
|
endedWithVerdict?: boolean | undefined;
|
|
1572
1548
|
updateNudged?: boolean | undefined;
|
|
1573
1549
|
updateOffered?: string | undefined;
|
|
1574
|
-
exit?: "
|
|
1550
|
+
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
1575
1551
|
}>>;
|
|
1576
1552
|
/** Only on `project_profiled`: the shape and depth-of-use of the project. */
|
|
1577
1553
|
project: z.ZodOptional<z.ZodObject<{
|
|
@@ -1669,7 +1645,6 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1669
1645
|
passed: z.ZodBoolean;
|
|
1670
1646
|
/**
|
|
1671
1647
|
* TRUE when the assertion passed but Reticle refused to call it verified — a caught false green.
|
|
1672
|
-
* This is the product's whole thesis expressed as one boolean, and the number to put in a deck.
|
|
1673
1648
|
*/
|
|
1674
1649
|
falseGreenCaught: z.ZodBoolean;
|
|
1675
1650
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1717,6 +1692,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1717
1692
|
* no clause behind it, and an older SDK reports none. Absent means unclassified, never guessed.
|
|
1718
1693
|
*/
|
|
1719
1694
|
reason: z.ZodOptional<z.ZodNativeEnum<{
|
|
1695
|
+
readonly CAPABILITY_ABSENT: "capability-absent";
|
|
1720
1696
|
readonly INCONCLUSIVE: "inconclusive";
|
|
1721
1697
|
readonly OBSERVATION_LOST: "observation_lost";
|
|
1722
1698
|
readonly WINDOW_CLOSED_EARLY: "window_closed_early";
|
|
@@ -1737,12 +1713,12 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1737
1713
|
* WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
|
|
1738
1714
|
*
|
|
1739
1715
|
* The three causes belong to three different owners and need three different fixes, and without
|
|
1740
|
-
* this they are one bar
|
|
1741
|
-
*
|
|
1716
|
+
* this they are one bar — and the cause has turned out to be Reticle's own eviction counter
|
|
1717
|
+
* miscounting, which no aggregate could have shown.
|
|
1742
1718
|
*
|
|
1743
1719
|
* ONE value, not a list: `losses` can hold several and a multi-value property is not something a
|
|
1744
1720
|
* dashboard can group by, so the FIRST is sent and the order in the producers is the order of
|
|
1745
|
-
* ownership —
|
|
1721
|
+
* ownership — Reticle's before the page's. Absent on every verdict whose capture was clean.
|
|
1746
1722
|
*/
|
|
1747
1723
|
uncleanLoss: z.ZodOptional<z.ZodNativeEnum<{
|
|
1748
1724
|
readonly BUFFER_LOSS: "buffer_loss";
|
|
@@ -1755,7 +1731,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1755
1731
|
via: string;
|
|
1756
1732
|
passed: boolean;
|
|
1757
1733
|
falseGreenCaught: boolean;
|
|
1758
|
-
reason?: "
|
|
1734
|
+
reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
1759
1735
|
durationMs?: number | undefined;
|
|
1760
1736
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1761
1737
|
browser?: string | undefined;
|
|
@@ -1765,7 +1741,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1765
1741
|
via: string;
|
|
1766
1742
|
passed: boolean;
|
|
1767
1743
|
falseGreenCaught: boolean;
|
|
1768
|
-
reason?: "
|
|
1744
|
+
reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
1769
1745
|
durationMs?: number | undefined;
|
|
1770
1746
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
1771
1747
|
browser?: string | undefined;
|
|
@@ -1787,14 +1763,14 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1787
1763
|
/** `update` (forward) or `rollback` (back) — a rollback is a release-quality alarm. */
|
|
1788
1764
|
direction: z.ZodString;
|
|
1789
1765
|
}, "strip", z.ZodTypeAny, {
|
|
1766
|
+
direction: string;
|
|
1790
1767
|
from: string;
|
|
1791
1768
|
to: string;
|
|
1792
|
-
direction: string;
|
|
1793
1769
|
nudged?: boolean | undefined;
|
|
1794
1770
|
}, {
|
|
1771
|
+
direction: string;
|
|
1795
1772
|
from: string;
|
|
1796
1773
|
to: string;
|
|
1797
|
-
direction: string;
|
|
1798
1774
|
nudged?: boolean | undefined;
|
|
1799
1775
|
}>>;
|
|
1800
1776
|
/** Only on `runtime_crashed`. */
|
|
@@ -1803,11 +1779,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1803
1779
|
kind: z.ZodString;
|
|
1804
1780
|
/** The error's constructor name (`TypeError`) — coarse, safe, and enough to triage. */
|
|
1805
1781
|
errorType: z.ZodOptional<z.ZodString>;
|
|
1806
|
-
/** Hash of the type +
|
|
1782
|
+
/** Hash of the type + Reticle's own frames. Groups the same crash across every machine. */
|
|
1807
1783
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
1808
1784
|
/**
|
|
1809
1785
|
* The message with every VARIABLE part removed — quoted strings, URLs, paths, ids, numbers all
|
|
1810
|
-
* replaced by `*`. `no baseline named *`
|
|
1786
|
+
* replaced by `*`. `no baseline named *` says exactly what broke; the flow name that made it
|
|
1811
1787
|
* specific to one user never leaves. This is what turns the fingerprint from an opaque key into a
|
|
1812
1788
|
* readable defect.
|
|
1813
1789
|
*/
|
|
@@ -1815,7 +1791,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1815
1791
|
/**
|
|
1816
1792
|
* The RETICLE-OWNED stack frames, innermost first, as `function@file:line`.
|
|
1817
1793
|
*
|
|
1818
|
-
* This is
|
|
1794
|
+
* This is Reticle's own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
|
|
1819
1795
|
* npm tarball — so there is no privacy question in sending it, and it is the single most useful
|
|
1820
1796
|
* thing for a root-cause analysis: the file, the line, and the function. Frames belonging to the
|
|
1821
1797
|
* user's application or to node internals are dropped entirely before this is built.
|
|
@@ -1828,16 +1804,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1828
1804
|
*
|
|
1829
1805
|
* Answers "what was it trying to do", which a single frame cannot: `snapshot → act → act →
|
|
1830
1806
|
* assert` is a verification loop, `lease_acquire → navigate → crash` is a startup problem. Tool
|
|
1831
|
-
* NAMES only, from
|
|
1807
|
+
* NAMES only, from a fixed vocabulary; no arguments, so nothing the agent typed is in here.
|
|
1832
1808
|
*/
|
|
1833
1809
|
breadcrumb: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1834
|
-
/** Node major/minor — crashes cluster hard by runtime version
|
|
1810
|
+
/** Node major/minor — crashes cluster hard by runtime version. */
|
|
1835
1811
|
nodeVersion: z.ZodOptional<z.ZodString>;
|
|
1836
1812
|
/** `arm64` / `x64`. A surprising number of native-module failures are architecture-specific. */
|
|
1837
1813
|
arch: z.ZodOptional<z.ZodString>;
|
|
1838
1814
|
/**
|
|
1839
|
-
* The machine at the moment of the crash. "Out of memory" and
|
|
1840
|
-
* trace and are completely different problems; this is what tells them apart.
|
|
1815
|
+
* The machine at the moment of the crash. "Out of memory" and a Reticle defect look identical in a
|
|
1816
|
+
* stack trace and are completely different problems; this is what tells them apart.
|
|
1841
1817
|
*/
|
|
1842
1818
|
machine: z.ZodOptional<z.ZodObject<{
|
|
1843
1819
|
rssMb: z.ZodNumber;
|
|
@@ -1891,10 +1867,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1891
1867
|
internalFrame: z.ZodOptional<z.ZodString>;
|
|
1892
1868
|
}, "strip", z.ZodTypeAny, {
|
|
1893
1869
|
kind: string;
|
|
1894
|
-
port?: "other" | "reticle" | undefined;
|
|
1895
1870
|
message?: string | undefined;
|
|
1896
1871
|
tool?: string | undefined;
|
|
1897
1872
|
errorType?: string | undefined;
|
|
1873
|
+
port?: "reticle" | "other" | undefined;
|
|
1898
1874
|
fingerprint?: string | undefined;
|
|
1899
1875
|
machine?: {
|
|
1900
1876
|
rssMb: number;
|
|
@@ -1914,10 +1890,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1914
1890
|
internalFrame?: string | undefined;
|
|
1915
1891
|
}, {
|
|
1916
1892
|
kind: string;
|
|
1917
|
-
port?: "other" | "reticle" | undefined;
|
|
1918
1893
|
message?: string | undefined;
|
|
1919
1894
|
tool?: string | undefined;
|
|
1920
1895
|
errorType?: string | undefined;
|
|
1896
|
+
port?: "reticle" | "other" | undefined;
|
|
1921
1897
|
fingerprint?: string | undefined;
|
|
1922
1898
|
machine?: {
|
|
1923
1899
|
rssMb: number;
|
|
@@ -1970,9 +1946,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
1970
1946
|
/**
|
|
1971
1947
|
* Was an app carrying the SDK already attached to this daemon when the agent arrived.
|
|
1972
1948
|
*
|
|
1973
|
-
* The mirror of `AppInstrumentation.agentAttached`, and the closest
|
|
1974
|
-
* AGENT SAW.
|
|
1975
|
-
*
|
|
1949
|
+
* The mirror of `AppInstrumentation.agentAttached`, and the closest available read on WHAT THE
|
|
1950
|
+
* AGENT SAW. A client that attaches and never calls a tool is otherwise reachable only by
|
|
1951
|
+
* subtraction: `tool_refused` cannot describe it, because an agent that reads the server
|
|
1976
1952
|
* instructions, learns nothing is wired and stops has refused nothing. It made no call at all.
|
|
1977
1953
|
*
|
|
1978
1954
|
* `false` means the handshake happened against a daemon with no app to look at, which is the state
|
|
@@ -2028,9 +2004,9 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2028
2004
|
/**
|
|
2029
2005
|
* A dev server with Reticle loaded IS running, and no page dialled.
|
|
2030
2006
|
*
|
|
2031
|
-
* The half of NO_SESSION
|
|
2032
|
-
*
|
|
2033
|
-
*
|
|
2007
|
+
* The half of NO_SESSION with a completely different fix: the config is right and the process was
|
|
2008
|
+
* restarted, so telling this person to restart their dev server is an instruction they have
|
|
2009
|
+
* already followed. They need to open the app.
|
|
2034
2010
|
*/
|
|
2035
2011
|
readonly NO_PAGE: "no_page";
|
|
2036
2012
|
}>>;
|
|
@@ -2047,6 +2023,42 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2047
2023
|
mcpRegistered?: boolean | undefined;
|
|
2048
2024
|
confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
|
|
2049
2025
|
}>>;
|
|
2026
|
+
/** Only on `onboarding_step`: one step of install / onboard / first run. */
|
|
2027
|
+
onboarding: z.ZodOptional<z.ZodObject<{
|
|
2028
|
+
phase: z.ZodNativeEnum<{
|
|
2029
|
+
readonly INSTALL: "install";
|
|
2030
|
+
readonly ONBOARD: "onboard";
|
|
2031
|
+
readonly FIRST_RUN: "first_run";
|
|
2032
|
+
}>;
|
|
2033
|
+
step: z.ZodEnum<[string, ...string[]]>;
|
|
2034
|
+
status: z.ZodNativeEnum<{
|
|
2035
|
+
readonly STARTED: "started";
|
|
2036
|
+
readonly COMPLETED: "completed";
|
|
2037
|
+
readonly FAILED: "failed";
|
|
2038
|
+
readonly ABANDONED: "abandoned";
|
|
2039
|
+
readonly SKIPPED: "skipped";
|
|
2040
|
+
}>;
|
|
2041
|
+
elapsedMs: z.ZodOptional<z.ZodNumber>;
|
|
2042
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2043
|
+
stack: z.ZodOptional<z.ZodString>;
|
|
2044
|
+
unattended: z.ZodOptional<z.ZodBoolean>;
|
|
2045
|
+
}, "strip", z.ZodTypeAny, {
|
|
2046
|
+
status: "skipped" | "started" | "completed" | "failed" | "abandoned";
|
|
2047
|
+
step: string;
|
|
2048
|
+
phase: "install" | "onboard" | "first_run";
|
|
2049
|
+
reason?: string | undefined;
|
|
2050
|
+
stack?: string | undefined;
|
|
2051
|
+
elapsedMs?: number | undefined;
|
|
2052
|
+
unattended?: boolean | undefined;
|
|
2053
|
+
}, {
|
|
2054
|
+
status: "skipped" | "started" | "completed" | "failed" | "abandoned";
|
|
2055
|
+
step: string;
|
|
2056
|
+
phase: "install" | "onboard" | "first_run";
|
|
2057
|
+
reason?: string | undefined;
|
|
2058
|
+
stack?: string | undefined;
|
|
2059
|
+
elapsedMs?: number | undefined;
|
|
2060
|
+
unattended?: boolean | undefined;
|
|
2061
|
+
}>>;
|
|
2050
2062
|
/** Only on `bug_found`. */
|
|
2051
2063
|
bug: z.ZodOptional<z.ZodObject<{
|
|
2052
2064
|
source: z.ZodNativeEnum<{
|
|
@@ -2095,7 +2107,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2095
2107
|
/**
|
|
2096
2108
|
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
2097
2109
|
*
|
|
2098
|
-
* Absence and "
|
|
2110
|
+
* Absence and "the evidence could not say" are different facts, and only one of them is a
|
|
2099
2111
|
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
2100
2112
|
* `BugAttribution` for why `app` needs positive evidence.
|
|
2101
2113
|
*/
|
|
@@ -2111,8 +2123,8 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2111
2123
|
*
|
|
2112
2124
|
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
2113
2125
|
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
2114
|
-
* testid" identically, and an owner invented for it would put a guess into
|
|
2115
|
-
*
|
|
2126
|
+
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
2127
|
+
* Exclude it from a defect count; never fold it into `app`.
|
|
2116
2128
|
*/
|
|
2117
2129
|
readonly UNCLASSIFIED: "unclassified";
|
|
2118
2130
|
}>;
|
|
@@ -2130,16 +2142,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2130
2142
|
*/
|
|
2131
2143
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
2132
2144
|
}, "strip", z.ZodTypeAny, {
|
|
2133
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2134
2145
|
kind: string;
|
|
2146
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2135
2147
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
2136
2148
|
falseGreen: boolean;
|
|
2137
2149
|
repeat: boolean;
|
|
2138
2150
|
tool?: string | undefined;
|
|
2139
2151
|
fingerprint?: string | undefined;
|
|
2140
2152
|
}, {
|
|
2141
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2142
2153
|
kind: string;
|
|
2154
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2143
2155
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
2144
2156
|
falseGreen: boolean;
|
|
2145
2157
|
repeat: boolean;
|
|
@@ -2158,6 +2170,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2158
2170
|
readonly OTHER: "other";
|
|
2159
2171
|
}>;
|
|
2160
2172
|
noSessionReason: z.ZodOptional<z.ZodNativeEnum<{
|
|
2173
|
+
readonly AUTH_REFUSED: "auth_refused";
|
|
2161
2174
|
readonly LEASE_EXPIRED: "lease_expired";
|
|
2162
2175
|
readonly TAB_GONE: "tab_gone";
|
|
2163
2176
|
readonly APP_NOT_REOPENED: "app_not_reopened";
|
|
@@ -2169,15 +2182,15 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2169
2182
|
}>>;
|
|
2170
2183
|
retried: z.ZodBoolean;
|
|
2171
2184
|
}, "strip", z.ZodTypeAny, {
|
|
2172
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2173
2185
|
tool: string;
|
|
2186
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2174
2187
|
retried: boolean;
|
|
2175
|
-
noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2188
|
+
noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2176
2189
|
}, {
|
|
2177
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2178
2190
|
tool: string;
|
|
2191
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2179
2192
|
retried: boolean;
|
|
2180
|
-
noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2193
|
+
noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2181
2194
|
}>>;
|
|
2182
2195
|
/** Only on `mcp_connection_lost`: which stage of the outage, why, and after how many retries. */
|
|
2183
2196
|
outage: z.ZodOptional<z.ZodObject<{
|
|
@@ -2187,13 +2200,11 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2187
2200
|
/**
|
|
2188
2201
|
* The link came back on its own, and `attempts` says what it cost.
|
|
2189
2202
|
*
|
|
2190
|
-
* Without it `first` is unfalsifiable.
|
|
2191
|
-
* counter is 1 by construction and the cap keeps any later drop from
|
|
2192
|
-
*
|
|
2193
|
-
*
|
|
2194
|
-
*
|
|
2195
|
-
* makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
|
|
2196
|
-
* whose tools never came back.
|
|
2203
|
+
* Without it `first` is unfalsifiable. `first` is emitted at the moment of the drop, when the
|
|
2204
|
+
* attempt counter is 1 by construction, and the cap keeps any later drop from replacing it — so
|
|
2205
|
+
* on its own it can only ever report one stage and one attempt, which reads as "reconnection
|
|
2206
|
+
* never advances" when it really means "emitted before there is anything to say". `first` with no
|
|
2207
|
+
* `recovered` and no `budget_spent` is a session whose tools never came back.
|
|
2197
2208
|
*/
|
|
2198
2209
|
readonly RECOVERED: "recovered";
|
|
2199
2210
|
}>;
|
|
@@ -2225,10 +2236,10 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2225
2236
|
/**
|
|
2226
2237
|
* In-flight tool calls this drop actually killed — the only part an agent can FEEL.
|
|
2227
2238
|
*
|
|
2228
|
-
* Without it every drop looks equally bad.
|
|
2229
|
-
*
|
|
2230
|
-
*
|
|
2231
|
-
*
|
|
2239
|
+
* Without it every drop looks equally bad. The common outage is `stage: first` with `attempts: 1`
|
|
2240
|
+
* — the stream ended once and the proxy reconnected, which for an agent with nothing in flight is
|
|
2241
|
+
* invisible. Counting those as "the agent lost its tools" overstates the problem by roughly the
|
|
2242
|
+
* whole total, and buries the one drop that mattered.
|
|
2232
2243
|
*
|
|
2233
2244
|
* Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
|
|
2234
2245
|
* worth driving down.
|
|
@@ -2290,7 +2301,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2290
2301
|
* present on the events that show whether a licensed customer got anywhere.
|
|
2291
2302
|
*
|
|
2292
2303
|
* `licenseId` is the signed license id — an opaque uuid that resolves to a company only against the
|
|
2293
|
-
* issuance ledger
|
|
2304
|
+
* issuance ledger held locally, so the analytics backend never learns a customer list. The
|
|
2294
2305
|
* organisation NAME is deliberately absent: it is free text somebody typed at signing time, and
|
|
2295
2306
|
* rule 3 is names-never-values.
|
|
2296
2307
|
*
|
|
@@ -2321,19 +2332,19 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2321
2332
|
*/
|
|
2322
2333
|
licenseKeyPresent: z.ZodOptional<z.ZodBoolean>;
|
|
2323
2334
|
}, "strip", z.ZodTypeAny, {
|
|
2335
|
+
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";
|
|
2324
2336
|
version: string;
|
|
2325
|
-
event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "session_progress" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "bug_found" | "tool_refused";
|
|
2326
|
-
v: 3;
|
|
2327
2337
|
ci: boolean;
|
|
2338
|
+
v: 3;
|
|
2328
2339
|
anonymousId: string;
|
|
2329
2340
|
ts: number;
|
|
2330
2341
|
os: string;
|
|
2331
|
-
projectId?: string | undefined;
|
|
2332
2342
|
command?: string | undefined;
|
|
2343
|
+
projectId?: string | undefined;
|
|
2333
2344
|
sessionId?: string | undefined;
|
|
2334
2345
|
bug?: {
|
|
2335
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2336
2346
|
kind: string;
|
|
2347
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2337
2348
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
2338
2349
|
falseGreen: boolean;
|
|
2339
2350
|
repeat: boolean;
|
|
@@ -2417,7 +2428,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2417
2428
|
clientVersions?: Record<string, string> | undefined;
|
|
2418
2429
|
appConnects?: number | undefined;
|
|
2419
2430
|
msToFirstApp?: number | undefined;
|
|
2420
|
-
endReason?: "verified" | "
|
|
2431
|
+
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
2421
2432
|
feedbackPrompted?: number | undefined;
|
|
2422
2433
|
errorClasses?: Record<string, number> | undefined;
|
|
2423
2434
|
errorsRecovered?: number | undefined;
|
|
@@ -2425,16 +2436,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2425
2436
|
endedWithVerdict?: boolean | undefined;
|
|
2426
2437
|
updateNudged?: boolean | undefined;
|
|
2427
2438
|
updateOffered?: string | undefined;
|
|
2428
|
-
exit?: "
|
|
2439
|
+
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2429
2440
|
} | undefined;
|
|
2430
2441
|
licenseKeyPresent?: boolean | undefined;
|
|
2431
2442
|
automation?: "container" | "hosted_workspace" | "no_tty" | undefined;
|
|
2432
2443
|
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2433
2444
|
tzOffsetMin?: number | undefined;
|
|
2434
2445
|
feedback?: {
|
|
2435
|
-
source: "agent" | "human";
|
|
2436
2446
|
text: string;
|
|
2437
2447
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2448
|
+
source: "agent" | "human";
|
|
2438
2449
|
impact?: string | undefined;
|
|
2439
2450
|
trace?: string | undefined;
|
|
2440
2451
|
rating?: number | undefined;
|
|
@@ -2457,24 +2468,24 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2457
2468
|
via: string;
|
|
2458
2469
|
passed: boolean;
|
|
2459
2470
|
falseGreenCaught: boolean;
|
|
2460
|
-
reason?: "
|
|
2471
|
+
reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
2461
2472
|
durationMs?: number | undefined;
|
|
2462
2473
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2463
2474
|
browser?: string | undefined;
|
|
2464
2475
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
2465
2476
|
} | undefined;
|
|
2466
2477
|
versionChange?: {
|
|
2478
|
+
direction: string;
|
|
2467
2479
|
from: string;
|
|
2468
2480
|
to: string;
|
|
2469
|
-
direction: string;
|
|
2470
2481
|
nudged?: boolean | undefined;
|
|
2471
2482
|
} | undefined;
|
|
2472
2483
|
crash?: {
|
|
2473
2484
|
kind: string;
|
|
2474
|
-
port?: "other" | "reticle" | undefined;
|
|
2475
2485
|
message?: string | undefined;
|
|
2476
2486
|
tool?: string | undefined;
|
|
2477
2487
|
errorType?: string | undefined;
|
|
2488
|
+
port?: "reticle" | "other" | undefined;
|
|
2478
2489
|
fingerprint?: string | undefined;
|
|
2479
2490
|
machine?: {
|
|
2480
2491
|
rssMb: number;
|
|
@@ -2511,11 +2522,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2511
2522
|
mcpRegistered?: boolean | undefined;
|
|
2512
2523
|
confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
|
|
2513
2524
|
} | undefined;
|
|
2525
|
+
onboarding?: {
|
|
2526
|
+
status: "skipped" | "started" | "completed" | "failed" | "abandoned";
|
|
2527
|
+
step: string;
|
|
2528
|
+
phase: "install" | "onboard" | "first_run";
|
|
2529
|
+
reason?: string | undefined;
|
|
2530
|
+
stack?: string | undefined;
|
|
2531
|
+
elapsedMs?: number | undefined;
|
|
2532
|
+
unattended?: boolean | undefined;
|
|
2533
|
+
} | undefined;
|
|
2514
2534
|
refusal?: {
|
|
2515
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2516
2535
|
tool: string;
|
|
2536
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2517
2537
|
retried: boolean;
|
|
2518
|
-
noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2538
|
+
noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2519
2539
|
} | undefined;
|
|
2520
2540
|
outage?: {
|
|
2521
2541
|
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|
|
@@ -2532,19 +2552,19 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2532
2552
|
licenseId?: string | undefined;
|
|
2533
2553
|
licenseStatus?: "active" | "missing" | "invalid" | "expired" | "eval" | undefined;
|
|
2534
2554
|
}, {
|
|
2555
|
+
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";
|
|
2535
2556
|
version: string;
|
|
2536
|
-
event: "reticle_installed" | "cli_command_run" | "daemon_started" | "daemon_stopped" | "session_progress" | "verification_completed" | "project_profiled" | "version_changed" | "runtime_crashed" | "feedback_submitted" | "identified" | "mcp_client_connected" | "app_instrumented" | "mcp_connection_lost" | "init_completed" | "bug_found" | "tool_refused";
|
|
2537
|
-
v: 3;
|
|
2538
2557
|
ci: boolean;
|
|
2558
|
+
v: 3;
|
|
2539
2559
|
anonymousId: string;
|
|
2540
2560
|
ts: number;
|
|
2541
2561
|
os: string;
|
|
2542
|
-
projectId?: string | undefined;
|
|
2543
2562
|
command?: string | undefined;
|
|
2563
|
+
projectId?: string | undefined;
|
|
2544
2564
|
sessionId?: string | undefined;
|
|
2545
2565
|
bug?: {
|
|
2546
|
-
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2547
2566
|
kind: string;
|
|
2567
|
+
source: "replay" | "contradiction" | "crawl" | "assertion";
|
|
2548
2568
|
attribution: "reticle" | "app" | "request" | "unclassified";
|
|
2549
2569
|
falseGreen: boolean;
|
|
2550
2570
|
repeat: boolean;
|
|
@@ -2628,7 +2648,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2628
2648
|
clientVersions?: Record<string, string> | undefined;
|
|
2629
2649
|
appConnects?: number | undefined;
|
|
2630
2650
|
msToFirstApp?: number | undefined;
|
|
2631
|
-
endReason?: "verified" | "
|
|
2651
|
+
endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
|
|
2632
2652
|
feedbackPrompted?: number | undefined;
|
|
2633
2653
|
errorClasses?: Record<string, number> | undefined;
|
|
2634
2654
|
errorsRecovered?: number | undefined;
|
|
@@ -2636,16 +2656,16 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2636
2656
|
endedWithVerdict?: boolean | undefined;
|
|
2637
2657
|
updateNudged?: boolean | undefined;
|
|
2638
2658
|
updateOffered?: string | undefined;
|
|
2639
|
-
exit?: "
|
|
2659
|
+
exit?: "signal" | "idle" | "unknown" | undefined;
|
|
2640
2660
|
} | undefined;
|
|
2641
2661
|
licenseKeyPresent?: boolean | undefined;
|
|
2642
2662
|
automation?: "container" | "hosted_workspace" | "no_tty" | undefined;
|
|
2643
2663
|
projectIdSource?: "cwd" | "git_origin" | "git_root" | "package_root" | undefined;
|
|
2644
2664
|
tzOffsetMin?: number | undefined;
|
|
2645
2665
|
feedback?: {
|
|
2646
|
-
source: "agent" | "human";
|
|
2647
2666
|
text: string;
|
|
2648
2667
|
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
2668
|
+
source: "agent" | "human";
|
|
2649
2669
|
impact?: string | undefined;
|
|
2650
2670
|
trace?: string | undefined;
|
|
2651
2671
|
rating?: number | undefined;
|
|
@@ -2668,24 +2688,24 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2668
2688
|
via: string;
|
|
2669
2689
|
passed: boolean;
|
|
2670
2690
|
falseGreenCaught: boolean;
|
|
2671
|
-
reason?: "
|
|
2691
|
+
reason?: "capability-absent" | "inconclusive" | "observation_lost" | "window_closed_early" | "assertion_failed" | "contradicted" | "already_true" | "unclean_capture" | "vacuous_grade" | "nothing_declared" | "outcome_pending" | "outcome_unread" | "unsettled" | "evidence_incomplete" | "proved" | "absence_blind_spot" | undefined;
|
|
2672
2692
|
durationMs?: number | undefined;
|
|
2673
2693
|
brand?: "other" | "chrome" | "edge" | "arc" | "dia" | "brave" | "opera" | "firefox" | "safari" | undefined;
|
|
2674
2694
|
browser?: string | undefined;
|
|
2675
2695
|
uncleanLoss?: "buffer_loss" | "transport_gap" | "blind_spot" | "other" | undefined;
|
|
2676
2696
|
} | undefined;
|
|
2677
2697
|
versionChange?: {
|
|
2698
|
+
direction: string;
|
|
2678
2699
|
from: string;
|
|
2679
2700
|
to: string;
|
|
2680
|
-
direction: string;
|
|
2681
2701
|
nudged?: boolean | undefined;
|
|
2682
2702
|
} | undefined;
|
|
2683
2703
|
crash?: {
|
|
2684
2704
|
kind: string;
|
|
2685
|
-
port?: "other" | "reticle" | undefined;
|
|
2686
2705
|
message?: string | undefined;
|
|
2687
2706
|
tool?: string | undefined;
|
|
2688
2707
|
errorType?: string | undefined;
|
|
2708
|
+
port?: "reticle" | "other" | undefined;
|
|
2689
2709
|
fingerprint?: string | undefined;
|
|
2690
2710
|
machine?: {
|
|
2691
2711
|
rssMb: number;
|
|
@@ -2722,11 +2742,20 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
2722
2742
|
mcpRegistered?: boolean | undefined;
|
|
2723
2743
|
confirmation?: "no_session" | "connected" | "no_daemon" | "no_page" | undefined;
|
|
2724
2744
|
} | undefined;
|
|
2745
|
+
onboarding?: {
|
|
2746
|
+
status: "skipped" | "started" | "completed" | "failed" | "abandoned";
|
|
2747
|
+
step: string;
|
|
2748
|
+
phase: "install" | "onboard" | "first_run";
|
|
2749
|
+
reason?: string | undefined;
|
|
2750
|
+
stack?: string | undefined;
|
|
2751
|
+
elapsedMs?: number | undefined;
|
|
2752
|
+
unattended?: boolean | undefined;
|
|
2753
|
+
} | undefined;
|
|
2725
2754
|
refusal?: {
|
|
2726
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2727
2755
|
tool: string;
|
|
2756
|
+
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
2728
2757
|
retried: boolean;
|
|
2729
|
-
noSessionReason?: "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2758
|
+
noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
2730
2759
|
} | undefined;
|
|
2731
2760
|
outage?: {
|
|
2732
2761
|
reason: "other" | "sse_ended" | "daemon_shutdown" | "sse_error" | "sse_aborted" | "sse_closed" | "connect_error";
|