@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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* happened", these answer "how much, how long, and on what". Nearly all the growth lands here —
|
|
6
6
|
* every new thing worth measuring lands in one of these two shapes.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import * as z from 'zod';
|
|
9
9
|
/**
|
|
10
10
|
* The one-time advisories that point an agent at the platform and the Harness, by kind. Closed: a
|
|
11
11
|
* nudge whose kind is not listed here never reaches the wire.
|
|
@@ -13,9 +13,9 @@ import { z } from 'zod';
|
|
|
13
13
|
export const AgentNudgeKind = {
|
|
14
14
|
/** Unlinked, after the first verdict: `reticle connect` keeps it and lets the Harness test the app. */
|
|
15
15
|
CONNECT: 'connect',
|
|
16
|
-
/**
|
|
16
|
+
/** An older build's "close the gaps" advisory. No longer sent: the Harness has no coverage gate. */
|
|
17
17
|
CLOSE_GAPS: 'close_gaps',
|
|
18
|
-
/** Linked,
|
|
18
|
+
/** Linked, with the Harness off: the user can switch it on. */
|
|
19
19
|
SWITCH_ON: 'switch_on',
|
|
20
20
|
/** Harness on, and the agent is driving a long journey by hand: hand it to explore. */
|
|
21
21
|
EXPLORE: 'explore',
|
|
@@ -252,7 +252,7 @@ export const SessionSummarySchema = z.object({
|
|
|
252
252
|
* `toolCounts` reports five useful calls and five retries of one failing call identically, and
|
|
253
253
|
* those are opposite facts: engagement versus an agent stuck. Only tools actually repeated appear.
|
|
254
254
|
*/
|
|
255
|
-
consecutiveRepeats: z.record(z.number().int().positive()).optional(),
|
|
255
|
+
consecutiveRepeats: z.record(z.string(), z.number().int().positive()).optional(),
|
|
256
256
|
/**
|
|
257
257
|
* Actions driven with no verdict after them — the signature of the loop breaking mid-task.
|
|
258
258
|
*
|
|
@@ -300,6 +300,17 @@ export const SessionSummarySchema = z.object({
|
|
|
300
300
|
* difference between a smooth install and one that needed a second step nobody documented.
|
|
301
301
|
*/
|
|
302
302
|
msToFirstApp: z.number().int().nonnegative().optional(),
|
|
303
|
+
/**
|
|
304
|
+
* The SDK version of the last page that connected to this daemon, from its HELLO. Our own
|
|
305
|
+
* release number, or `other`. Absent when no page announced one.
|
|
306
|
+
*/
|
|
307
|
+
sdkVersion: z.string().min(1).max(32).optional(),
|
|
308
|
+
/**
|
|
309
|
+
* Tool calls made before the first app connected. Session lifetime, like `appConnects`: read the
|
|
310
|
+
* last row, never sum. Absent when there were none. With `appConnects: 0`, it is an agent that
|
|
311
|
+
* worked against a daemon with no app, which sends no verdict and often no refusal.
|
|
312
|
+
*/
|
|
313
|
+
toolCallsBeforeApp: z.number().int().nonnegative().optional(),
|
|
303
314
|
/**
|
|
304
315
|
* What state the AGENT's work was in when the session ended. Absent on a periodic flush.
|
|
305
316
|
*
|
|
@@ -399,10 +410,10 @@ export const SessionSummarySchema = z.object({
|
|
|
399
410
|
* `hudJourneyCut`. `hudSlides` counts how often each rail slide was shown, by its id. Every key
|
|
400
411
|
* is a control or slide id Reticle authored: names, never values.
|
|
401
412
|
*/
|
|
402
|
-
hudControls: z.record(z.number()).optional(),
|
|
403
|
-
hudViewMs: z.record(z.number()).optional(),
|
|
404
|
-
hudPanelMs: z.record(z.number()).optional(),
|
|
405
|
-
hudSlides: z.record(z.number()).optional(),
|
|
413
|
+
hudControls: z.record(z.string(), z.number()).optional(),
|
|
414
|
+
hudViewMs: z.record(z.string(), z.number()).optional(),
|
|
415
|
+
hudPanelMs: z.record(z.string(), z.number()).optional(),
|
|
416
|
+
hudSlides: z.record(z.string(), z.number()).optional(),
|
|
406
417
|
hudJourney: z.array(z.string().max(64)).max(60).optional(),
|
|
407
418
|
hudJourneyCut: z.literal(true).optional(),
|
|
408
419
|
/**
|
|
@@ -410,13 +421,15 @@ export const SessionSummarySchema = z.object({
|
|
|
410
421
|
* Whether a connect or an explore followed is read beside it: `cli_command_run` for `connect`, and
|
|
411
422
|
* `toolCounts` / `toolParams` for `reticle_verify`'s explore. Windowed; absent when none was shown.
|
|
412
423
|
*/
|
|
413
|
-
nudgesShown: z
|
|
424
|
+
nudgesShown: z
|
|
425
|
+
.partialRecord(z.nativeEnum(AgentNudgeKind), z.number().int().positive())
|
|
426
|
+
.optional(),
|
|
414
427
|
/**
|
|
415
|
-
* Harness drives refused for coverage
|
|
416
|
-
*
|
|
428
|
+
* Harness drives an older build refused for low coverage, by coverage bucket (`CoverageBucket`).
|
|
429
|
+
* No longer sent: the Harness has no coverage gate. Kept so an older daemon's events still parse.
|
|
417
430
|
*/
|
|
418
431
|
harnessRefusedCoverage: z
|
|
419
|
-
.
|
|
432
|
+
.partialRecord(z.nativeEnum(CoverageBucket), z.number().int().positive())
|
|
420
433
|
.optional(),
|
|
421
434
|
/** Was this a clean shutdown, or a periodic flush of a still-running session? */
|
|
422
435
|
final: z.boolean(),
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The product signals the event set could not answer: who is signed in, which workspace and which
|
|
3
3
|
* agent client an event belongs to, which HUD page was opened, which sign-in prompts were seen, when a
|
|
4
|
-
* project was linked,
|
|
4
|
+
* project was linked, how a Harness run started and ended, and what happened to the MCP proxy and
|
|
5
|
+
* its daemon when the link failed.
|
|
5
6
|
*
|
|
6
7
|
* Its own file so the vocabulary has one home and `telemetry.ts` only wires it in. Every value here is
|
|
7
8
|
* a closed set, a boolean or a bucket: none of these fields can carry a URL, a path, a name or text.
|
|
8
9
|
*/
|
|
9
|
-
import
|
|
10
|
+
import * as z from 'zod';
|
|
10
11
|
/**
|
|
11
12
|
* Where this machine stands with the platform, on every event. `linked` implies signed in OR an
|
|
12
13
|
* api key in the environment: a project with a working link reports to a workspace either way.
|
|
@@ -61,7 +62,7 @@ export type CountBucket = (typeof CountBucket)[keyof typeof CountBucket];
|
|
|
61
62
|
export declare function countBucket(n: number): CountBucket;
|
|
62
63
|
/** `hud_viewed` / `hud_signin_prompted`: which page or prompt, and how many tabs had a HUD. */
|
|
63
64
|
export declare const HudEventSchema: z.ZodObject<{
|
|
64
|
-
view: z.ZodOptional<z.
|
|
65
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
65
66
|
readonly CHAT: "chat";
|
|
66
67
|
readonly FLOWS: "flows";
|
|
67
68
|
readonly NOTES: "notes";
|
|
@@ -71,27 +72,19 @@ export declare const HudEventSchema: z.ZodObject<{
|
|
|
71
72
|
readonly ACCOUNT: "account";
|
|
72
73
|
readonly NONE: "none";
|
|
73
74
|
}>>;
|
|
74
|
-
surface: z.ZodOptional<z.
|
|
75
|
+
surface: z.ZodOptional<z.ZodEnum<{
|
|
75
76
|
readonly RAIL: "rail";
|
|
76
77
|
readonly HARNESS: "harness";
|
|
77
78
|
readonly HEADER: "header";
|
|
78
79
|
}>>;
|
|
79
|
-
tabs: z.ZodOptional<z.
|
|
80
|
+
tabs: z.ZodOptional<z.ZodEnum<{
|
|
80
81
|
readonly ZERO: "0";
|
|
81
82
|
readonly ONE: "1";
|
|
82
83
|
readonly TWO_THREE: "2-3";
|
|
83
84
|
readonly FOUR_NINE: "4-9";
|
|
84
85
|
readonly TEN_PLUS: "10+";
|
|
85
86
|
}>>;
|
|
86
|
-
},
|
|
87
|
-
surface?: "harness" | "rail" | "header" | undefined;
|
|
88
|
-
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
89
|
-
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
90
|
-
}, {
|
|
91
|
-
surface?: "harness" | "rail" | "header" | undefined;
|
|
92
|
-
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
93
|
-
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
94
|
-
}>;
|
|
87
|
+
}, z.core.$strip>;
|
|
95
88
|
export type HudEvent = z.infer<typeof HudEventSchema>;
|
|
96
89
|
/** How a project got linked to a workspace on this machine. */
|
|
97
90
|
export declare const PlatformLinkVia: {
|
|
@@ -104,7 +97,7 @@ export declare const PlatformLinkVia: {
|
|
|
104
97
|
};
|
|
105
98
|
export type PlatformLinkVia = (typeof PlatformLinkVia)[keyof typeof PlatformLinkVia];
|
|
106
99
|
export declare const PlatformLinkSchema: z.ZodObject<{
|
|
107
|
-
via: z.
|
|
100
|
+
via: z.ZodEnum<{
|
|
108
101
|
/** `reticle connect`: sign in, link and sync in one command. */
|
|
109
102
|
readonly CONNECT: "connect";
|
|
110
103
|
/** The HUD's "Link this project" / "Save runs for your team". */
|
|
@@ -112,11 +105,7 @@ export declare const PlatformLinkSchema: z.ZodObject<{
|
|
|
112
105
|
/** A bare `reticle link`. */
|
|
113
106
|
readonly LINK: "link";
|
|
114
107
|
}>;
|
|
115
|
-
},
|
|
116
|
-
via: "hud" | "link" | "connect";
|
|
117
|
-
}, {
|
|
118
|
-
via: "hud" | "link" | "connect";
|
|
119
|
-
}>;
|
|
108
|
+
}, z.core.$strip>;
|
|
120
109
|
export type PlatformLink = z.infer<typeof PlatformLinkSchema>;
|
|
121
110
|
export declare const HarnessRunPhase: {
|
|
122
111
|
readonly STARTED: "started";
|
|
@@ -132,6 +121,31 @@ export declare const HarnessRunOutcome: {
|
|
|
132
121
|
readonly STOPPED: "stopped";
|
|
133
122
|
};
|
|
134
123
|
export type HarnessRunOutcome = (typeof HarnessRunOutcome)[keyof typeof HarnessRunOutcome];
|
|
124
|
+
/**
|
|
125
|
+
* Why a Harness run did not drive: only on a `blocked` or `failed` run. Closed, and read off the
|
|
126
|
+
* refusal that stopped it, never off its sentence, so a reworded message cannot change the count.
|
|
127
|
+
*/
|
|
128
|
+
export declare const HarnessRunReason: {
|
|
129
|
+
/** The project has no platform link, so there is nowhere to drive from. */
|
|
130
|
+
readonly NOT_LINKED: "not_linked";
|
|
131
|
+
/** The platform did not confirm the drive in time, or answered something unreadable. */
|
|
132
|
+
readonly PLATFORM_UNREACHABLE: "platform_unreachable";
|
|
133
|
+
/** The Harness is switched off for this project (the default until somebody turns it on). */
|
|
134
|
+
readonly HARNESS_OFF: "harness_off";
|
|
135
|
+
/** The workspace has no credits left. */
|
|
136
|
+
readonly NO_CREDITS: "no_credits";
|
|
137
|
+
/** The workspace has not claimed the Harness. */
|
|
138
|
+
readonly NOT_ENTITLED: "not_entitled";
|
|
139
|
+
/** An older build refused for low instrumentation. No longer sent: the Harness has no coverage gate. */
|
|
140
|
+
readonly COVERAGE_GATE: "coverage_gate";
|
|
141
|
+
/** The page and the daemon come from different builds, so every step would answer unknown. */
|
|
142
|
+
readonly VERSION_SKEW: "version_skew";
|
|
143
|
+
/** The drive started and broke. */
|
|
144
|
+
readonly BROKEN: "broken";
|
|
145
|
+
/** A refusal this list does not name. A growing count here is a gap in this list. */
|
|
146
|
+
readonly OTHER: "other";
|
|
147
|
+
};
|
|
148
|
+
export type HarnessRunReason = (typeof HarnessRunReason)[keyof typeof HarnessRunReason];
|
|
135
149
|
/** Who started a Harness run. `dashboard` is a run started from the platform's chat. */
|
|
136
150
|
export declare const HarnessRunSource: {
|
|
137
151
|
readonly AGENT: "agent";
|
|
@@ -143,57 +157,60 @@ export declare const HarnessRunSource: {
|
|
|
143
157
|
export type HarnessRunSource = (typeof HarnessRunSource)[keyof typeof HarnessRunSource];
|
|
144
158
|
/** `harness_run`: one `started` and one `completed` per run. */
|
|
145
159
|
export declare const HarnessRunSchema: z.ZodObject<{
|
|
146
|
-
phase: z.
|
|
160
|
+
phase: z.ZodEnum<{
|
|
147
161
|
readonly STARTED: "started";
|
|
148
162
|
readonly COMPLETED: "completed";
|
|
149
163
|
}>;
|
|
150
|
-
source: z.
|
|
164
|
+
source: z.ZodEnum<{
|
|
151
165
|
readonly AGENT: "agent";
|
|
152
166
|
readonly HUD: "hud";
|
|
153
167
|
readonly DASHBOARD: "dashboard";
|
|
154
168
|
readonly CLI_TRY: "cli_try";
|
|
155
169
|
readonly PLAN: "plan";
|
|
156
170
|
}>;
|
|
157
|
-
/** The run drives on the platform (always, today), as opposed to an injected local driver. */
|
|
158
171
|
hosted: z.ZodBoolean;
|
|
159
|
-
|
|
160
|
-
outcome: z.ZodOptional<z.ZodNativeEnum<{
|
|
172
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
161
173
|
readonly PROVED: "proved";
|
|
162
174
|
readonly NOT_PROVED: "not_proved";
|
|
163
175
|
readonly FAILED: "failed";
|
|
164
176
|
readonly BLOCKED: "blocked";
|
|
165
177
|
readonly STOPPED: "stopped";
|
|
166
178
|
}>>;
|
|
167
|
-
|
|
168
|
-
journeys: z.ZodOptional<z.ZodNativeEnum<{
|
|
179
|
+
journeys: z.ZodOptional<z.ZodEnum<{
|
|
169
180
|
readonly ZERO: "0";
|
|
170
181
|
readonly ONE: "1";
|
|
171
182
|
readonly TWO_THREE: "2-3";
|
|
172
183
|
readonly FOUR_NINE: "4-9";
|
|
173
184
|
readonly TEN_PLUS: "10+";
|
|
174
185
|
}>>;
|
|
175
|
-
replayed: z.ZodOptional<z.
|
|
186
|
+
replayed: z.ZodOptional<z.ZodEnum<{
|
|
176
187
|
readonly ZERO: "0";
|
|
177
188
|
readonly ONE: "1";
|
|
178
189
|
readonly TWO_THREE: "2-3";
|
|
179
190
|
readonly FOUR_NINE: "4-9";
|
|
180
191
|
readonly TEN_PLUS: "10+";
|
|
181
192
|
}>>;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
193
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
194
|
+
/** The project has no platform link, so there is nowhere to drive from. */
|
|
195
|
+
readonly NOT_LINKED: "not_linked";
|
|
196
|
+
/** The platform did not confirm the drive in time, or answered something unreadable. */
|
|
197
|
+
readonly PLATFORM_UNREACHABLE: "platform_unreachable";
|
|
198
|
+
/** The Harness is switched off for this project (the default until somebody turns it on). */
|
|
199
|
+
readonly HARNESS_OFF: "harness_off";
|
|
200
|
+
/** The workspace has no credits left. */
|
|
201
|
+
readonly NO_CREDITS: "no_credits";
|
|
202
|
+
/** The workspace has not claimed the Harness. */
|
|
203
|
+
readonly NOT_ENTITLED: "not_entitled";
|
|
204
|
+
/** An older build refused for low instrumentation. No longer sent: the Harness has no coverage gate. */
|
|
205
|
+
readonly COVERAGE_GATE: "coverage_gate";
|
|
206
|
+
/** The page and the daemon come from different builds, so every step would answer unknown. */
|
|
207
|
+
readonly VERSION_SKEW: "version_skew";
|
|
208
|
+
/** The drive started and broke. */
|
|
209
|
+
readonly BROKEN: "broken";
|
|
210
|
+
/** A refusal this list does not name. A growing count here is a gap in this list. */
|
|
211
|
+
readonly OTHER: "other";
|
|
212
|
+
}>>;
|
|
213
|
+
}, z.core.$strip>;
|
|
197
214
|
export type HarnessRun = z.infer<typeof HarnessRunSchema>;
|
|
198
215
|
/**
|
|
199
216
|
* The envelope fields and blocks this file adds to `TelemetryEventSchema`, spread into it there.
|
|
@@ -201,7 +218,7 @@ export type HarnessRun = z.infer<typeof HarnessRunSchema>;
|
|
|
201
218
|
*/
|
|
202
219
|
export declare const SIGNAL_FIELDS: {
|
|
203
220
|
/** Signed out, signed in, or signed in AND this project linked to a workspace. */
|
|
204
|
-
accountState: z.ZodOptional<z.
|
|
221
|
+
accountState: z.ZodOptional<z.ZodEnum<{
|
|
205
222
|
readonly SIGNED_OUT: "signed_out";
|
|
206
223
|
readonly SIGNED_IN: "signed_in";
|
|
207
224
|
readonly LINKED: "linked";
|
|
@@ -214,7 +231,7 @@ export declare const SIGNAL_FIELDS: {
|
|
|
214
231
|
*/
|
|
215
232
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
216
233
|
/** Which coding agent this event came from, normalised. Absent when nothing said. */
|
|
217
|
-
client: z.ZodOptional<z.
|
|
234
|
+
client: z.ZodOptional<z.ZodEnum<{
|
|
218
235
|
readonly CLAUDE_CODE: "claude_code";
|
|
219
236
|
readonly CLAUDE_DESKTOP: "claude_desktop";
|
|
220
237
|
readonly CODEX: "codex";
|
|
@@ -229,7 +246,7 @@ export declare const SIGNAL_FIELDS: {
|
|
|
229
246
|
readonly OTHER: "other";
|
|
230
247
|
}>>;
|
|
231
248
|
/** How the running `reticle` was launched. */
|
|
232
|
-
launch: z.ZodOptional<z.
|
|
249
|
+
launch: z.ZodOptional<z.ZodEnum<{
|
|
233
250
|
readonly NPX: "npx";
|
|
234
251
|
readonly GLOBAL: "global";
|
|
235
252
|
readonly PROJECT: "project";
|
|
@@ -237,7 +254,7 @@ export declare const SIGNAL_FIELDS: {
|
|
|
237
254
|
}>>;
|
|
238
255
|
/** Only on `hud_viewed` / `hud_signin_prompted`. */
|
|
239
256
|
hud: z.ZodOptional<z.ZodObject<{
|
|
240
|
-
view: z.ZodOptional<z.
|
|
257
|
+
view: z.ZodOptional<z.ZodEnum<{
|
|
241
258
|
readonly CHAT: "chat";
|
|
242
259
|
readonly FLOWS: "flows";
|
|
243
260
|
readonly NOTES: "notes";
|
|
@@ -247,30 +264,22 @@ export declare const SIGNAL_FIELDS: {
|
|
|
247
264
|
readonly ACCOUNT: "account";
|
|
248
265
|
readonly NONE: "none";
|
|
249
266
|
}>>;
|
|
250
|
-
surface: z.ZodOptional<z.
|
|
267
|
+
surface: z.ZodOptional<z.ZodEnum<{
|
|
251
268
|
readonly RAIL: "rail";
|
|
252
269
|
readonly HARNESS: "harness";
|
|
253
270
|
readonly HEADER: "header";
|
|
254
271
|
}>>;
|
|
255
|
-
tabs: z.ZodOptional<z.
|
|
272
|
+
tabs: z.ZodOptional<z.ZodEnum<{
|
|
256
273
|
readonly ZERO: "0";
|
|
257
274
|
readonly ONE: "1";
|
|
258
275
|
readonly TWO_THREE: "2-3";
|
|
259
276
|
readonly FOUR_NINE: "4-9";
|
|
260
277
|
readonly TEN_PLUS: "10+";
|
|
261
278
|
}>>;
|
|
262
|
-
},
|
|
263
|
-
surface?: "harness" | "rail" | "header" | undefined;
|
|
264
|
-
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
265
|
-
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
266
|
-
}, {
|
|
267
|
-
surface?: "harness" | "rail" | "header" | undefined;
|
|
268
|
-
view?: "flows" | "harness" | "none" | "chat" | "notes" | "settings" | "report" | "account" | undefined;
|
|
269
|
-
tabs?: "0" | "1" | "2-3" | "4-9" | "10+" | undefined;
|
|
270
|
-
}>>;
|
|
279
|
+
}, z.core.$strip>>;
|
|
271
280
|
/** Only on `platform_linked`. */
|
|
272
281
|
link: z.ZodOptional<z.ZodObject<{
|
|
273
|
-
via: z.
|
|
282
|
+
via: z.ZodEnum<{
|
|
274
283
|
/** `reticle connect`: sign in, link and sync in one command. */
|
|
275
284
|
readonly CONNECT: "connect";
|
|
276
285
|
/** The HUD's "Link this project" / "Save runs for your team". */
|
|
@@ -278,62 +287,178 @@ export declare const SIGNAL_FIELDS: {
|
|
|
278
287
|
/** A bare `reticle link`. */
|
|
279
288
|
readonly LINK: "link";
|
|
280
289
|
}>;
|
|
281
|
-
},
|
|
282
|
-
via: "hud" | "link" | "connect";
|
|
283
|
-
}, {
|
|
284
|
-
via: "hud" | "link" | "connect";
|
|
285
|
-
}>>;
|
|
290
|
+
}, z.core.$strip>>;
|
|
286
291
|
/** Only on `harness_run`. */
|
|
287
292
|
harness: z.ZodOptional<z.ZodObject<{
|
|
288
|
-
phase: z.
|
|
293
|
+
phase: z.ZodEnum<{
|
|
289
294
|
readonly STARTED: "started";
|
|
290
295
|
readonly COMPLETED: "completed";
|
|
291
296
|
}>;
|
|
292
|
-
source: z.
|
|
297
|
+
source: z.ZodEnum<{
|
|
293
298
|
readonly AGENT: "agent";
|
|
294
299
|
readonly HUD: "hud";
|
|
295
300
|
readonly DASHBOARD: "dashboard";
|
|
296
301
|
readonly CLI_TRY: "cli_try";
|
|
297
302
|
readonly PLAN: "plan";
|
|
298
303
|
}>;
|
|
299
|
-
/** The run drives on the platform (always, today), as opposed to an injected local driver. */
|
|
300
304
|
hosted: z.ZodBoolean;
|
|
301
|
-
|
|
302
|
-
outcome: z.ZodOptional<z.ZodNativeEnum<{
|
|
305
|
+
outcome: z.ZodOptional<z.ZodEnum<{
|
|
303
306
|
readonly PROVED: "proved";
|
|
304
307
|
readonly NOT_PROVED: "not_proved";
|
|
305
308
|
readonly FAILED: "failed";
|
|
306
309
|
readonly BLOCKED: "blocked";
|
|
307
310
|
readonly STOPPED: "stopped";
|
|
308
311
|
}>>;
|
|
309
|
-
|
|
310
|
-
journeys: z.ZodOptional<z.ZodNativeEnum<{
|
|
312
|
+
journeys: z.ZodOptional<z.ZodEnum<{
|
|
311
313
|
readonly ZERO: "0";
|
|
312
314
|
readonly ONE: "1";
|
|
313
315
|
readonly TWO_THREE: "2-3";
|
|
314
316
|
readonly FOUR_NINE: "4-9";
|
|
315
317
|
readonly TEN_PLUS: "10+";
|
|
316
318
|
}>>;
|
|
317
|
-
replayed: z.ZodOptional<z.
|
|
319
|
+
replayed: z.ZodOptional<z.ZodEnum<{
|
|
318
320
|
readonly ZERO: "0";
|
|
319
321
|
readonly ONE: "1";
|
|
320
322
|
readonly TWO_THREE: "2-3";
|
|
321
323
|
readonly FOUR_NINE: "4-9";
|
|
322
324
|
readonly TEN_PLUS: "10+";
|
|
323
325
|
}>>;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
326
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
327
|
+
/** The project has no platform link, so there is nowhere to drive from. */
|
|
328
|
+
readonly NOT_LINKED: "not_linked";
|
|
329
|
+
/** The platform did not confirm the drive in time, or answered something unreadable. */
|
|
330
|
+
readonly PLATFORM_UNREACHABLE: "platform_unreachable";
|
|
331
|
+
/** The Harness is switched off for this project (the default until somebody turns it on). */
|
|
332
|
+
readonly HARNESS_OFF: "harness_off";
|
|
333
|
+
/** The workspace has no credits left. */
|
|
334
|
+
readonly NO_CREDITS: "no_credits";
|
|
335
|
+
/** The workspace has not claimed the Harness. */
|
|
336
|
+
readonly NOT_ENTITLED: "not_entitled";
|
|
337
|
+
/** An older build refused for low instrumentation. No longer sent: the Harness has no coverage gate. */
|
|
338
|
+
readonly COVERAGE_GATE: "coverage_gate";
|
|
339
|
+
/** The page and the daemon come from different builds, so every step would answer unknown. */
|
|
340
|
+
readonly VERSION_SKEW: "version_skew";
|
|
341
|
+
/** The drive started and broke. */
|
|
342
|
+
readonly BROKEN: "broken";
|
|
343
|
+
/** A refusal this list does not name. A growing count here is a gap in this list. */
|
|
344
|
+
readonly OTHER: "other";
|
|
345
|
+
}>>;
|
|
346
|
+
}, z.core.$strip>>;
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* The socket error code behind a drop, as a closed set. Anything else reports `other`, so a new code
|
|
350
|
+
* cannot put free text on the wire.
|
|
351
|
+
*/
|
|
352
|
+
export declare const OutageErrCode: {
|
|
353
|
+
readonly ECONNRESET: "ECONNRESET";
|
|
354
|
+
readonly ECONNREFUSED: "ECONNREFUSED";
|
|
355
|
+
readonly EPIPE: "EPIPE";
|
|
356
|
+
readonly ETIMEDOUT: "ETIMEDOUT";
|
|
357
|
+
readonly OTHER: "other";
|
|
358
|
+
};
|
|
359
|
+
export type OutageErrCode = (typeof OutageErrCode)[keyof typeof OutageErrCode];
|
|
360
|
+
/** Why the MCP proxy process left. Each member names one exit path in the proxy. */
|
|
361
|
+
export declare const ProxyExitReason: {
|
|
362
|
+
/** The client closed stdin. The normal end of a session. */
|
|
363
|
+
readonly STDIN_END: "stdin_end";
|
|
364
|
+
/** The client link was quiet for the idle window, with no work in flight. */
|
|
365
|
+
readonly IDLE: "idle";
|
|
366
|
+
/** Too many client-pipe disconnects since the last usable session: the client is gone. */
|
|
367
|
+
readonly CLIENT_GONE_STORM: "client_gone_storm";
|
|
368
|
+
/** The proxy could not start a daemon and had no way to continue. */
|
|
369
|
+
readonly WAKE_FAILED: "wake_failed";
|
|
370
|
+
};
|
|
371
|
+
export type ProxyExitReason = (typeof ProxyExitReason)[keyof typeof ProxyExitReason];
|
|
372
|
+
/** `mcp_proxy_exited`: the agent's MCP server process ended, and the agent lost its tools. */
|
|
373
|
+
export declare const ProxyExitSchema: z.ZodObject<{
|
|
374
|
+
reason: z.ZodEnum<{
|
|
375
|
+
/** The client closed stdin. The normal end of a session. */
|
|
376
|
+
readonly STDIN_END: "stdin_end";
|
|
377
|
+
/** The client link was quiet for the idle window, with no work in flight. */
|
|
378
|
+
readonly IDLE: "idle";
|
|
379
|
+
/** Too many client-pipe disconnects since the last usable session: the client is gone. */
|
|
380
|
+
readonly CLIENT_GONE_STORM: "client_gone_storm";
|
|
381
|
+
/** The proxy could not start a daemon and had no way to continue. */
|
|
382
|
+
readonly WAKE_FAILED: "wake_failed";
|
|
383
|
+
}>;
|
|
384
|
+
uptimeMs: z.ZodNumber;
|
|
385
|
+
drops: z.ZodNumber;
|
|
386
|
+
toolCalls: z.ZodNumber;
|
|
387
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
388
|
+
}, z.core.$strip>;
|
|
389
|
+
export type ProxyExit = z.infer<typeof ProxyExitSchema>;
|
|
390
|
+
/** `daemon_died_unclean`: a daemon start found the pidfile of a daemon that never stopped cleanly. */
|
|
391
|
+
export declare const DaemonDeathSchema: z.ZodObject<{
|
|
392
|
+
ageMs: z.ZodNumber;
|
|
393
|
+
}, z.core.$strip>;
|
|
394
|
+
export type DaemonDeath = z.infer<typeof DaemonDeathSchema>;
|
|
395
|
+
/** How the parent started the daemon. On Windows a start through WMI leaves the Job Object. */
|
|
396
|
+
export declare const DaemonSpawnMethod: {
|
|
397
|
+
/** A detached child of the parent. On Windows it stays in the job of the parent. */
|
|
398
|
+
readonly DETACHED: "detached";
|
|
399
|
+
/** Windows only: started through WMI `Win32_Process.Create`, outside every job. */
|
|
400
|
+
readonly WMI: "wmi";
|
|
401
|
+
/** Windows only: the WMI start failed, so the parent used the detached start. */
|
|
402
|
+
readonly WMI_FALLBACK: "wmi_fallback";
|
|
403
|
+
};
|
|
404
|
+
export type DaemonSpawnMethod = (typeof DaemonSpawnMethod)[keyof typeof DaemonSpawnMethod];
|
|
405
|
+
/** What held the port when a wake was refused. */
|
|
406
|
+
export declare const WakeRefusalPresence: {
|
|
407
|
+
/** Something that is not a Reticle daemon holds the port. */
|
|
408
|
+
readonly FOREIGN: "foreign";
|
|
409
|
+
/** A Reticle daemon for a different project holds the port. */
|
|
410
|
+
readonly OTHER_PROJECT: "other_project";
|
|
411
|
+
};
|
|
412
|
+
export type WakeRefusalPresence = (typeof WakeRefusalPresence)[keyof typeof WakeRefusalPresence];
|
|
413
|
+
/** `wake_refused`: the proxy would not use the daemon port it found. */
|
|
414
|
+
export declare const WakeRefusalSchema: z.ZodObject<{
|
|
415
|
+
presence: z.ZodEnum<{
|
|
416
|
+
/** Something that is not a Reticle daemon holds the port. */
|
|
417
|
+
readonly FOREIGN: "foreign";
|
|
418
|
+
/** A Reticle daemon for a different project holds the port. */
|
|
419
|
+
readonly OTHER_PROJECT: "other_project";
|
|
420
|
+
}>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
export type WakeRefusal = z.infer<typeof WakeRefusalSchema>;
|
|
423
|
+
/** The blocks this file adds to `TelemetryEventSchema`, spread into it there. */
|
|
424
|
+
export declare const TRANSPORT_FIELDS: {
|
|
425
|
+
/** Only on `mcp_proxy_exited`. */
|
|
426
|
+
proxyExit: z.ZodOptional<z.ZodObject<{
|
|
427
|
+
reason: z.ZodEnum<{
|
|
428
|
+
/** The client closed stdin. The normal end of a session. */
|
|
429
|
+
readonly STDIN_END: "stdin_end";
|
|
430
|
+
/** The client link was quiet for the idle window, with no work in flight. */
|
|
431
|
+
readonly IDLE: "idle";
|
|
432
|
+
/** Too many client-pipe disconnects since the last usable session: the client is gone. */
|
|
433
|
+
readonly CLIENT_GONE_STORM: "client_gone_storm";
|
|
434
|
+
/** The proxy could not start a daemon and had no way to continue. */
|
|
435
|
+
readonly WAKE_FAILED: "wake_failed";
|
|
436
|
+
}>;
|
|
437
|
+
uptimeMs: z.ZodNumber;
|
|
438
|
+
drops: z.ZodNumber;
|
|
439
|
+
toolCalls: z.ZodNumber;
|
|
440
|
+
proxyId: z.ZodOptional<z.ZodString>;
|
|
441
|
+
}, z.core.$strip>>;
|
|
442
|
+
/** Only on `daemon_died_unclean`. */
|
|
443
|
+
daemonDeath: z.ZodOptional<z.ZodObject<{
|
|
444
|
+
ageMs: z.ZodNumber;
|
|
445
|
+
}, z.core.$strip>>;
|
|
446
|
+
/** Only on `wake_refused`. */
|
|
447
|
+
wakeRefusal: z.ZodOptional<z.ZodObject<{
|
|
448
|
+
presence: z.ZodEnum<{
|
|
449
|
+
/** Something that is not a Reticle daemon holds the port. */
|
|
450
|
+
readonly FOREIGN: "foreign";
|
|
451
|
+
/** A Reticle daemon for a different project holds the port. */
|
|
452
|
+
readonly OTHER_PROJECT: "other_project";
|
|
453
|
+
}>;
|
|
454
|
+
}, z.core.$strip>>;
|
|
455
|
+
/** Only on `daemon_started`: how the parent started the daemon. A scalar. */
|
|
456
|
+
spawnMethod: z.ZodOptional<z.ZodEnum<{
|
|
457
|
+
/** A detached child of the parent. On Windows it stays in the job of the parent. */
|
|
458
|
+
readonly DETACHED: "detached";
|
|
459
|
+
/** Windows only: started through WMI `Win32_Process.Create`, outside every job. */
|
|
460
|
+
readonly WMI: "wmi";
|
|
461
|
+
/** Windows only: the WMI start failed, so the parent used the detached start. */
|
|
462
|
+
readonly WMI_FALLBACK: "wmi_fallback";
|
|
338
463
|
}>>;
|
|
339
464
|
};
|