@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.js
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,10 +15,16 @@
|
|
|
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, } 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, };
|
|
19
24
|
import { ToolRefusalSchema } from './telemetry-refusal.js';
|
|
20
25
|
import { MachineSnapshotSchema, ProjectProfileSchema, SessionSummarySchema, } from './telemetry-session.js';
|
|
21
26
|
import { BrowserBrand, FeedbackSchema } from './telemetry-feedback.js';
|
|
22
|
-
import { CaptureLoss, VerifiedReason } from './verified-constants.js';
|
|
27
|
+
import { CaptureLoss, VerifiedReason } from './verdict/verified-constants.js';
|
|
23
28
|
import { IdentitySchema } from './telemetry-feedback.js';
|
|
24
29
|
import { LicenseActivation } from './telemetry-license.js';
|
|
25
30
|
/** Bump when the event shape changes so the analytics side can segment old senders. */
|
|
@@ -31,19 +36,17 @@ export const TELEMETRY_EVENT_VERSION = 3;
|
|
|
31
36
|
* `tool`, emitted from a file called `invoke-tool.ts`. A name you have to look up is a name that gets
|
|
32
37
|
* misread on a dashboard six months from now.
|
|
33
38
|
*
|
|
34
|
-
* VOLUME IS PART OF THE DESIGN.
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* answers better, because it also preserves the SHAPE of a session instead of scattering it across
|
|
39
|
-
* 200 rows. See `SessionSummary`.
|
|
39
|
+
* VOLUME IS PART OF THE DESIGN. Tool calls are AGGREGATED into a session summary rather than emitted
|
|
40
|
+
* one event each: a single verification loop is 50–200 calls, and the summary answers "which tools
|
|
41
|
+
* get used" better anyway, because it preserves the SHAPE of a session instead of scattering it
|
|
42
|
+
* across 200 rows. See `SessionSummary`.
|
|
40
43
|
*/
|
|
41
44
|
export const TelemetryEventKind = {
|
|
42
45
|
/** First-ever run on this machine — powers install count + the new-user curve. */
|
|
43
46
|
RETICLE_INSTALLED: 'reticle_installed',
|
|
44
47
|
/**
|
|
45
|
-
* A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read
|
|
46
|
-
*
|
|
48
|
+
* A human ran a `reticle` subcommand. Carries WHICH command, which is the closest honest read on
|
|
49
|
+
* human intent (`verify` and `gate` mean something very different from `status`).
|
|
47
50
|
*
|
|
48
51
|
* Explicitly NOT emitted for the internal `_daemon` spawn: `reticle mcp` re-runs its own binary to
|
|
49
52
|
* start the daemon, so counting that child inflated the old `invoke` metric ~2x — and worst on
|
|
@@ -62,20 +65,16 @@ export const TelemetryEventKind = {
|
|
|
62
65
|
* A PERIODIC roll-up from a daemon that is still running — same payload shape as DAEMON_STOPPED,
|
|
63
66
|
* `final: false`.
|
|
64
67
|
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* opposites. Every one of the 25 flushes had tool calls; not one of the 73 exits did (a daemon that
|
|
69
|
-
* served a tool never idle-exits, so only the idle ones ever reach a clean shutdown). A funnel over
|
|
70
|
-
* the raw event therefore describes active sessions at one end and abandoned ones at the other.
|
|
68
|
+
* Separate from DAEMON_STOPPED because the two populations are OPPOSITES: a daemon that served a
|
|
69
|
+
* tool never idle-exits, so only idle ones reach a clean shutdown. Emitting a periodic flush under
|
|
70
|
+
* an exit's name therefore describes active sessions at one end and abandoned ones at the other.
|
|
71
71
|
*
|
|
72
72
|
* Count sessions with DAEMON_STOPPED. Sum work with both.
|
|
73
73
|
*/
|
|
74
74
|
SESSION_PROGRESS: 'session_progress',
|
|
75
75
|
/**
|
|
76
|
-
* A verification produced a verdict
|
|
77
|
-
*
|
|
78
|
-
* that caught something a green test would have missed".
|
|
76
|
+
* A verification produced a verdict — an app was actually verified, rather than merely that tools
|
|
77
|
+
* were called.
|
|
79
78
|
*/
|
|
80
79
|
VERIFICATION_COMPLETED: 'verification_completed',
|
|
81
80
|
/**
|
|
@@ -89,14 +88,14 @@ export const TelemetryEventKind = {
|
|
|
89
88
|
/** An uncaught exception or unhandled rejection reached the top of the daemon. Crash analytics. */
|
|
90
89
|
RUNTIME_CRASHED: 'runtime_crashed',
|
|
91
90
|
/**
|
|
92
|
-
*
|
|
91
|
+
* Somebody reported that something went wrong (or right). UNLIKE every other kind, this one carries
|
|
93
92
|
* author-written free text — which is exactly why it is never emitted passively: it exists only
|
|
94
93
|
* because an agent called `reticle_feedback` or a human ran `reticle feedback`. See
|
|
95
94
|
* `FeedbackSchema` for the consent/redaction contract.
|
|
96
95
|
*/
|
|
97
96
|
FEEDBACK_SUBMITTED: 'feedback_submitted',
|
|
98
97
|
/**
|
|
99
|
-
*
|
|
98
|
+
* Somebody chose to say who they are. Like `feedback_submitted`, this exists ONLY because a
|
|
100
99
|
* human ran a command — Reticle never infers an identity from a git remote, an email in git
|
|
101
100
|
* config, or anything else. See `identify.ts` for why that refusal is deliberate.
|
|
102
101
|
*/
|
|
@@ -131,18 +130,17 @@ export const TelemetryEventKind = {
|
|
|
131
130
|
*/
|
|
132
131
|
APP_INSTRUMENTED: 'app_instrumented',
|
|
133
132
|
/**
|
|
134
|
-
* The agent LOST its Reticle tools
|
|
135
|
-
* completely invisible in the field.
|
|
133
|
+
* The agent LOST its Reticle tools, and nothing else reports it.
|
|
136
134
|
*
|
|
137
135
|
* `mcp_client_connected` shows reconnect churn only from the daemon's side, and the proxy's own
|
|
138
|
-
* account of an outage
|
|
136
|
+
* account of an outage goes to a local file nobody uploads. So "how often does a real user's MCP
|
|
139
137
|
* server go down, and does it come back" — the single question the transport has to answer — could
|
|
140
138
|
* not be asked of any dashboard.
|
|
141
139
|
*
|
|
142
140
|
* Deliberately capped at TWO per proxy process: once on the first outage of a session, and once if
|
|
143
141
|
* the retry budget is spent (the severe case, where it stopped retrying and went dormant). The
|
|
144
|
-
* per-call `tool` event was already removed here for cost, and
|
|
145
|
-
*
|
|
142
|
+
* per-call `tool` event was already removed here for cost, and a single dormant proxy can reconnect
|
|
143
|
+
* hundreds of times — an event per reconnect would bill for the pathology instead of measuring it.
|
|
146
144
|
* The first-outage event answers "what share of sessions lose MCP at all", which is the number
|
|
147
145
|
* that decides whether this is fixed.
|
|
148
146
|
*/
|
|
@@ -152,26 +150,25 @@ export const TelemetryEventKind = {
|
|
|
152
150
|
* failed on a missing dependency was indistinguishable from a user who never tried.
|
|
153
151
|
*/
|
|
154
152
|
INIT_COMPLETED: 'init_completed',
|
|
153
|
+
ONBOARDING_STEP: 'onboarding_step',
|
|
155
154
|
/**
|
|
156
155
|
* Reticle found a defect in the app under test.
|
|
157
156
|
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* an investor or published, because it counts outcomes for users rather than activity by them.
|
|
157
|
+
* Everything else here measures whether Reticle is USED; this measures whether it WORKS, because it
|
|
158
|
+
* counts outcomes rather than activity.
|
|
161
159
|
*
|
|
162
160
|
* Deliberately a discrete event rather than only a counter: each bug carries its KIND, and the
|
|
163
|
-
* distribution is the interesting part
|
|
164
|
-
*
|
|
165
|
-
* human watching the screen would have caught" is the argument.
|
|
161
|
+
* distribution is the interesting part — a passing assertion sitting on a failed write is a
|
|
162
|
+
* different finding from a console error, and a single count cannot tell them apart.
|
|
166
163
|
*/
|
|
167
164
|
BUG_FOUND: 'bug_found',
|
|
168
165
|
/**
|
|
169
166
|
* A tool could not do what was asked, and said so.
|
|
170
167
|
*
|
|
171
168
|
* The refusal path already computes a precise diagnosis, hands it to the agent as prose, and then
|
|
172
|
-
* throws it away. So
|
|
173
|
-
*
|
|
174
|
-
*
|
|
169
|
+
* throws it away. So a connected agent that never drives is visible only by subtraction, and the
|
|
170
|
+
* three genuinely different situations behind it (nothing was ever wired here, the app is not
|
|
171
|
+
* running, a session was lost) arrive as one silence.
|
|
175
172
|
*
|
|
176
173
|
* `noSessionErrors` on the session summary counts one of those causes and only at the end of a
|
|
177
174
|
* session, without the tool, without the discriminator, and without whether the agent tried again.
|
|
@@ -183,9 +180,9 @@ export const TelemetryEventKind = {
|
|
|
183
180
|
* Events that belong to a DAEMON RUN, and therefore carry `sessionId`.
|
|
184
181
|
*
|
|
185
182
|
* `sessionId` is minted per process, which is right for a daemon (a daemon run IS the session) and
|
|
186
|
-
* wrong for a one-shot CLI command, which invents one that joins to nothing. Measured
|
|
187
|
-
*
|
|
188
|
-
*
|
|
183
|
+
* wrong for a one-shot CLI command, which invents one that joins to nothing. Measured: most of the
|
|
184
|
+
* ids minted in a day came from `cli_command_run` and NOT ONE was ever shared with a daemon, so
|
|
185
|
+
* every tile counting sessions read several times higher than the daemon runs it claimed to show.
|
|
189
186
|
*
|
|
190
187
|
* Omitting the id on the one-shot events costs nothing — no join on those ids could ever have
|
|
191
188
|
* succeeded — and makes `uniq(sessionId)` mean the thing every dashboard already assumes it means.
|
|
@@ -208,12 +205,12 @@ export function isSessionScoped(kind) {
|
|
|
208
205
|
return SESSION_SCOPED.has(kind);
|
|
209
206
|
}
|
|
210
207
|
/**
|
|
211
|
-
* Who caused this. The only honest split available
|
|
208
|
+
* Who caused this. The only honest split available: a `reticle` command was TYPED by a person,
|
|
212
209
|
* while an MCP tool call came from the agent's own loop.
|
|
213
210
|
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
211
|
+
* It deliberately does NOT claim to know whether the human told the agent to verify or the agent
|
|
212
|
+
* decided on its own — that lives in a prompt Reticle never sees. Inferring it from timing would be
|
|
213
|
+
* a guess dressed as a measurement, and a dashboard cannot tell the difference later.
|
|
217
214
|
*/
|
|
218
215
|
export const TelemetryActor = {
|
|
219
216
|
HUMAN: 'human',
|
|
@@ -266,7 +263,6 @@ export const VerificationSchema = z.object({
|
|
|
266
263
|
passed: z.boolean(),
|
|
267
264
|
/**
|
|
268
265
|
* TRUE when the assertion passed but Reticle refused to call it verified — a caught false green.
|
|
269
|
-
* This is the product's whole thesis expressed as one boolean, and the number to put in a deck.
|
|
270
266
|
*/
|
|
271
267
|
falseGreenCaught: z.boolean(),
|
|
272
268
|
durationMs: z.number().int().nonnegative().optional(),
|
|
@@ -308,12 +304,12 @@ export const VerificationSchema = z.object({
|
|
|
308
304
|
* WHAT was lost, when `reason` is `unclean_capture` — see `CaptureLoss`.
|
|
309
305
|
*
|
|
310
306
|
* The three causes belong to three different owners and need three different fixes, and without
|
|
311
|
-
* this they are one bar
|
|
312
|
-
*
|
|
307
|
+
* this they are one bar — and the cause has turned out to be Reticle's own eviction counter
|
|
308
|
+
* miscounting, which no aggregate could have shown.
|
|
313
309
|
*
|
|
314
310
|
* ONE value, not a list: `losses` can hold several and a multi-value property is not something a
|
|
315
311
|
* dashboard can group by, so the FIRST is sent and the order in the producers is the order of
|
|
316
|
-
* ownership —
|
|
312
|
+
* ownership — Reticle's before the page's. Absent on every verdict whose capture was clean.
|
|
317
313
|
*/
|
|
318
314
|
uncleanLoss: z.nativeEnum(CaptureLoss).optional(),
|
|
319
315
|
});
|
|
@@ -336,16 +332,14 @@ export const VersionChangeSchema = z.object({
|
|
|
336
332
|
/**
|
|
337
333
|
* A crash, with enough detail to actually diagnose it.
|
|
338
334
|
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
* give the hash a meaning, while keeping the line that matters: our code and our failure, never the
|
|
343
|
-
* user's code and never their data.
|
|
335
|
+
* A fingerprint alone makes crashes RANKABLE and completely UNDIAGNOSABLE — a group key with no
|
|
336
|
+
* dictionary. Everything below exists to give the hash a meaning, while keeping the line that
|
|
337
|
+
* matters: Reticle's own code and its own failure, never the user's code and never their data.
|
|
344
338
|
*/
|
|
345
339
|
/**
|
|
346
340
|
* Whether a failed connection was aimed at a port Reticle itself uses.
|
|
347
341
|
*
|
|
348
|
-
* An enum rather than the number, because the number is the reporter's and the answer is
|
|
342
|
+
* An enum rather than the number, because the number is the reporter's and the answer is Reticle's: all
|
|
349
343
|
* anyone needs to know is whose problem it is. Refused on a Reticle port is a lifecycle problem —
|
|
350
344
|
* a daemon that is not up; refused anywhere else is somebody else's service.
|
|
351
345
|
*/
|
|
@@ -358,11 +352,11 @@ export const CrashSchema = z.object({
|
|
|
358
352
|
kind: z.string().min(1).max(32),
|
|
359
353
|
/** The error's constructor name (`TypeError`) — coarse, safe, and enough to triage. */
|
|
360
354
|
errorType: z.string().min(1).max(64).optional(),
|
|
361
|
-
/** Hash of the type +
|
|
355
|
+
/** Hash of the type + Reticle's own frames. Groups the same crash across every machine. */
|
|
362
356
|
fingerprint: z.string().min(1).max(64).optional(),
|
|
363
357
|
/**
|
|
364
358
|
* The message with every VARIABLE part removed — quoted strings, URLs, paths, ids, numbers all
|
|
365
|
-
* replaced by `*`. `no baseline named *`
|
|
359
|
+
* replaced by `*`. `no baseline named *` says exactly what broke; the flow name that made it
|
|
366
360
|
* specific to one user never leaves. This is what turns the fingerprint from an opaque key into a
|
|
367
361
|
* readable defect.
|
|
368
362
|
*/
|
|
@@ -370,7 +364,7 @@ export const CrashSchema = z.object({
|
|
|
370
364
|
/**
|
|
371
365
|
* The RETICLE-OWNED stack frames, innermost first, as `function@file:line`.
|
|
372
366
|
*
|
|
373
|
-
* This is
|
|
367
|
+
* This is Reticle's own published code — `runTool@invoke-tool.js:88` is a line anyone can read in the
|
|
374
368
|
* npm tarball — so there is no privacy question in sending it, and it is the single most useful
|
|
375
369
|
* thing for a root-cause analysis: the file, the line, and the function. Frames belonging to the
|
|
376
370
|
* user's application or to node internals are dropped entirely before this is built.
|
|
@@ -383,16 +377,16 @@ export const CrashSchema = z.object({
|
|
|
383
377
|
*
|
|
384
378
|
* Answers "what was it trying to do", which a single frame cannot: `snapshot → act → act →
|
|
385
379
|
* assert` is a verification loop, `lease_acquire → navigate → crash` is a startup problem. Tool
|
|
386
|
-
* NAMES only, from
|
|
380
|
+
* NAMES only, from a fixed vocabulary; no arguments, so nothing the agent typed is in here.
|
|
387
381
|
*/
|
|
388
382
|
breadcrumb: z.array(z.string().max(64)).max(12).optional(),
|
|
389
|
-
/** Node major/minor — crashes cluster hard by runtime version
|
|
383
|
+
/** Node major/minor — crashes cluster hard by runtime version. */
|
|
390
384
|
nodeVersion: z.string().max(24).optional(),
|
|
391
385
|
/** `arm64` / `x64`. A surprising number of native-module failures are architecture-specific. */
|
|
392
386
|
arch: z.string().max(16).optional(),
|
|
393
387
|
/**
|
|
394
|
-
* The machine at the moment of the crash. "Out of memory" and
|
|
395
|
-
* trace and are completely different problems; this is what tells them apart.
|
|
388
|
+
* The machine at the moment of the crash. "Out of memory" and a Reticle defect look identical in a
|
|
389
|
+
* stack trace and are completely different problems; this is what tells them apart.
|
|
396
390
|
*/
|
|
397
391
|
machine: MachineSnapshotSchema.optional(),
|
|
398
392
|
/**
|
|
@@ -443,15 +437,8 @@ export const BugSource = {
|
|
|
443
437
|
/**
|
|
444
438
|
* WHOSE fault the defect was.
|
|
445
439
|
*
|
|
446
|
-
* `bugsFound` is
|
|
447
|
-
*
|
|
448
|
-
* `attribution: 'app'` was a misattribution, so a single session would have published defects
|
|
449
|
-
* against a customer's product that did not exist. A metric confidently wrong about whose fault
|
|
450
|
-
* something is, is worse than no metric — it is the number a founder steers on, and it points at the
|
|
451
|
-
* customer. It was removed, and an ABSENT field then made "nobody classified this" and "we looked
|
|
452
|
-
* and could not tell" the same fact, which is the other half of the same problem.
|
|
453
|
-
*
|
|
454
|
-
* So it is back with two rules, and both are what the earlier versions lacked:
|
|
440
|
+
* `bugsFound` is not publishable without this, and a count confidently wrong about whose fault
|
|
441
|
+
* something is, is worse than no count: it points at the customer. Two rules keep it honest:
|
|
455
442
|
*
|
|
456
443
|
* 1. **Always present.** `UNCLASSIFIED` is a value, not a gap. Absence would mean an old sender or a
|
|
457
444
|
* path that forgot; a value means the classifier ran and declined.
|
|
@@ -459,8 +446,7 @@ export const BugSource = {
|
|
|
459
446
|
* failed, a signal the app fired carrying data that disagrees with its own screen, a written
|
|
460
447
|
* field echoed back changed. Never "nothing else explained it". Core already draws exactly this
|
|
461
448
|
* line for the verdict, in `ABSENCE_DERIVED_CONTRADICTIONS`, and that is the line reused rather
|
|
462
|
-
* than a second judgement invented
|
|
463
|
-
* an absence-derived kind, so this rule produces zero of them on the same data.
|
|
449
|
+
* than a second judgement invented beside it.
|
|
464
450
|
*/
|
|
465
451
|
export const BugAttribution = {
|
|
466
452
|
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
@@ -474,8 +460,8 @@ export const BugAttribution = {
|
|
|
474
460
|
*
|
|
475
461
|
* The honest majority, and it must stay a value rather than becoming a gap: a failed
|
|
476
462
|
* `element.present` covers "the button is missing", "the API is down" and "the agent mistyped a
|
|
477
|
-
* testid" identically, and an owner invented for it would put a guess into
|
|
478
|
-
*
|
|
463
|
+
* testid" identically, and an owner invented for it would put a guess into a published number.
|
|
464
|
+
* Exclude it from a defect count; never fold it into `app`.
|
|
479
465
|
*/
|
|
480
466
|
UNCLASSIFIED: 'unclassified',
|
|
481
467
|
};
|
|
@@ -484,7 +470,7 @@ export const BugAttribution = {
|
|
|
484
470
|
*
|
|
485
471
|
* `kind` is the taxonomy value from `findings.ts` — `signal-contradicted`, `console-error`,
|
|
486
472
|
* `duplicate-request` and so on. Never a selector, a URL, an element, or any description of the
|
|
487
|
-
* user's app
|
|
473
|
+
* user's app — THAT a class of defect was found, never WHAT it was in.
|
|
488
474
|
*/
|
|
489
475
|
export const BugFoundSchema = z.object({
|
|
490
476
|
source: z.nativeEnum(BugSource),
|
|
@@ -524,7 +510,7 @@ export const BugFoundSchema = z.object({
|
|
|
524
510
|
/**
|
|
525
511
|
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
526
512
|
*
|
|
527
|
-
* Absence and "
|
|
513
|
+
* Absence and "the evidence could not say" are different facts, and only one of them is a
|
|
528
514
|
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
529
515
|
* `BugAttribution` for why `app` needs positive evidence.
|
|
530
516
|
*/
|
|
@@ -558,9 +544,9 @@ export const McpConnectionSchema = z.object({
|
|
|
558
544
|
/**
|
|
559
545
|
* Was an app carrying the SDK already attached to this daemon when the agent arrived.
|
|
560
546
|
*
|
|
561
|
-
* The mirror of `AppInstrumentation.agentAttached`, and the closest
|
|
562
|
-
* AGENT SAW.
|
|
563
|
-
*
|
|
547
|
+
* The mirror of `AppInstrumentation.agentAttached`, and the closest available read on WHAT THE
|
|
548
|
+
* AGENT SAW. A client that attaches and never calls a tool is otherwise reachable only by
|
|
549
|
+
* subtraction: `tool_refused` cannot describe it, because an agent that reads the server
|
|
564
550
|
* instructions, learns nothing is wired and stops has refused nothing. It made no call at all.
|
|
565
551
|
*
|
|
566
552
|
* `false` means the handshake happened against a daemon with no app to look at, which is the state
|
|
@@ -600,13 +586,11 @@ export const OutageStage = {
|
|
|
600
586
|
/**
|
|
601
587
|
* The link came back on its own, and `attempts` says what it cost.
|
|
602
588
|
*
|
|
603
|
-
* Without it `first` is unfalsifiable.
|
|
604
|
-
* counter is 1 by construction and the cap keeps any later drop from
|
|
605
|
-
*
|
|
606
|
-
*
|
|
607
|
-
*
|
|
608
|
-
* makes the pair mean something: `first` with no `recovered` and no `budget_spent` is a session
|
|
609
|
-
* whose tools never came back.
|
|
589
|
+
* Without it `first` is unfalsifiable. `first` is emitted at the moment of the drop, when the
|
|
590
|
+
* attempt counter is 1 by construction, and the cap keeps any later drop from replacing it — so
|
|
591
|
+
* on its own it can only ever report one stage and one attempt, which reads as "reconnection
|
|
592
|
+
* never advances" when it really means "emitted before there is anything to say". `first` with no
|
|
593
|
+
* `recovered` and no `budget_spent` is a session whose tools never came back.
|
|
610
594
|
*/
|
|
611
595
|
RECOVERED: 'recovered',
|
|
612
596
|
};
|
|
@@ -655,10 +639,10 @@ export const McpOutageSchema = z.object({
|
|
|
655
639
|
/**
|
|
656
640
|
* In-flight tool calls this drop actually killed — the only part an agent can FEEL.
|
|
657
641
|
*
|
|
658
|
-
* Without it every drop looks equally bad.
|
|
659
|
-
*
|
|
660
|
-
*
|
|
661
|
-
*
|
|
642
|
+
* Without it every drop looks equally bad. The common outage is `stage: first` with `attempts: 1`
|
|
643
|
+
* — the stream ended once and the proxy reconnected, which for an agent with nothing in flight is
|
|
644
|
+
* invisible. Counting those as "the agent lost its tools" overstates the problem by roughly the
|
|
645
|
+
* whole total, and buries the one drop that mattered.
|
|
662
646
|
*
|
|
663
647
|
* Zero means nobody noticed. Non-zero is the number of calls that came back `-32001` and the count
|
|
664
648
|
* worth driving down.
|
|
@@ -669,8 +653,7 @@ export const McpOutageSchema = z.object({
|
|
|
669
653
|
* WHICH published route brought this install in.
|
|
670
654
|
*
|
|
671
655
|
* Four routes ship at once — the SKILL.md paste URL, an `npx skills add` package, a Claude Code
|
|
672
|
-
* plugin, and docs.reticle.sh — and
|
|
673
|
-
* decision about where to spend effort on distribution is therefore made blind.
|
|
656
|
+
* plugin, and docs.reticle.sh — and nothing else distinguishes them.
|
|
674
657
|
*
|
|
675
658
|
* The value is NEVER inferred. It is read from a single explicit marker (`RETICLE_INSTALL_SOURCE`)
|
|
676
659
|
* that a channel sets on itself, narrowed against this list, and anything else reports `UNKNOWN`.
|
|
@@ -679,7 +662,7 @@ export const McpOutageSchema = z.object({
|
|
|
679
662
|
* a measurement. Read a small `unknown` as a marker that spread, never as success.
|
|
680
663
|
*
|
|
681
664
|
* What the marker CANNOT be derived from, and why nothing here tries:
|
|
682
|
-
* - `npm_config_user_agent` says npm/pnpm ran
|
|
665
|
+
* - `npm_config_user_agent` says npm/pnpm ran the command. Every one of these routes runs through npx, so it
|
|
683
666
|
* separates none of them.
|
|
684
667
|
* - The presence of `.claude-plugin/` or an installed skill directory says a plugin or a skill is
|
|
685
668
|
* present in the repo, not that it is the thing that ran `init` — and both are present at once on
|
|
@@ -741,9 +724,9 @@ export const InitConfirmation = {
|
|
|
741
724
|
/**
|
|
742
725
|
* A dev server with Reticle loaded IS running, and no page dialled.
|
|
743
726
|
*
|
|
744
|
-
* The half of NO_SESSION
|
|
745
|
-
*
|
|
746
|
-
*
|
|
727
|
+
* The half of NO_SESSION with a completely different fix: the config is right and the process was
|
|
728
|
+
* restarted, so telling this person to restart their dev server is an instruction they have
|
|
729
|
+
* already followed. They need to open the app.
|
|
747
730
|
*/
|
|
748
731
|
NO_PAGE: 'no_page',
|
|
749
732
|
};
|
|
@@ -801,7 +784,7 @@ export const TelemetryEventSchema = z.object({
|
|
|
801
784
|
* ADVISORY hint that this run looks automated, when something beyond `CI` suggests it.
|
|
802
785
|
*
|
|
803
786
|
* `ci` reads one environment variable, which is right for a GitHub Actions runner and blind to a
|
|
804
|
-
* cloud agent sandbox
|
|
787
|
+
* cloud agent sandbox, which lands in the data with `ci: false`. This is the
|
|
805
788
|
* second angle, and it is NEVER a filter: people work in containers, in Codespaces, and over ssh
|
|
806
789
|
* with no terminal. Never exclude a row because this is set; absent means nothing looked
|
|
807
790
|
* automated, not that a human was present. See automation-hint.ts for the rejected signals.
|
|
@@ -851,6 +834,8 @@ export const TelemetryEventSchema = z.object({
|
|
|
851
834
|
connection: McpConnectionSchema.optional(),
|
|
852
835
|
/** Only on `init_completed`. */
|
|
853
836
|
init: InitOutcomeSchema.optional(),
|
|
837
|
+
/** Only on `onboarding_step`: one step of install / onboard / first run. */
|
|
838
|
+
onboarding: OnboardingStepSchema.optional(),
|
|
854
839
|
/** Only on `bug_found`. */
|
|
855
840
|
bug: BugFoundSchema.optional(),
|
|
856
841
|
/** Only on `tool_refused`: which tool, why, and whether the agent tried the same thing again. */
|
|
@@ -872,7 +857,7 @@ export const TelemetryEventSchema = z.object({
|
|
|
872
857
|
* present on the events that show whether a licensed customer got anywhere.
|
|
873
858
|
*
|
|
874
859
|
* `licenseId` is the signed license id — an opaque uuid that resolves to a company only against the
|
|
875
|
-
* issuance ledger
|
|
860
|
+
* issuance ledger held locally, so the analytics backend never learns a customer list. The
|
|
876
861
|
* organisation NAME is deliberately absent: it is free text somebody typed at signing time, and
|
|
877
862
|
* rule 3 is names-never-values.
|
|
878
863
|
*
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@reticlehq/core/tour` — the onboarding tour, for the two surfaces that render it.
|
|
3
|
+
*
|
|
4
|
+
* A subpath rather than a root export, and the reason is measurable: the SDK imports core's root
|
|
5
|
+
* entry on every page load, so putting the tour's prose there charged ~2 kB to every developer on
|
|
6
|
+
* every load of every app, including the ones where nobody ever sees a tour. `first-load-size`
|
|
7
|
+
* caught it immediately. The same reasoning as `./telemetry`: a different audience is a different
|
|
8
|
+
* entry point.
|
|
9
|
+
*/
|
|
10
|
+
export * from './tour.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@reticlehq/core/tour` — the onboarding tour, for the two surfaces that render it.
|
|
3
|
+
*
|
|
4
|
+
* A subpath rather than a root export, and the reason is measurable: the SDK imports core's root
|
|
5
|
+
* entry on every page load, so putting the tour's prose there charged ~2 kB to every developer on
|
|
6
|
+
* every load of every app, including the ones where nobody ever sees a tour. `first-load-size`
|
|
7
|
+
* caught it immediately. The same reasoning as `./telemetry`: a different audience is a different
|
|
8
|
+
* entry point.
|
|
9
|
+
*/
|
|
10
|
+
export * from './tour.js';
|
package/dist/tour.d.ts
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The onboarding tour, once, for both surfaces that show it.
|
|
3
|
+
*
|
|
4
|
+
* The CLI prints it at the end of `reticle setup install`; the browser SDK renders it as a carousel
|
|
5
|
+
* over the user's own running app, beside the HUD. Those are two audiences in two media, and the
|
|
6
|
+
* rule that governs them is the one `tutorial.ts` already stated about its own two audiences: what
|
|
7
|
+
* they MUST share is the order and the claims, because two routes through one product is how a
|
|
8
|
+
* support answer stops matching what anybody actually did.
|
|
9
|
+
*
|
|
10
|
+
* So the steps live here, in the package both ends already depend on, and neither renderer owns
|
|
11
|
+
* them. `@reticlehq/server` cannot be imported by the browser and `@reticlehq/browser` cannot be
|
|
12
|
+
* imported by the server; core is the only place a shared sentence can sit without inventing an
|
|
13
|
+
* edge between them.
|
|
14
|
+
*
|
|
15
|
+
* The sequence is not arbitrary. It ends at a VERDICT because a tour that ends at "you can see the
|
|
16
|
+
* page now" has taught the least valuable half: looking is not verifying, and an agent that learns
|
|
17
|
+
* only to look will report that it looked. And it declares the consequence BEFORE acting, because
|
|
18
|
+
* that ordering IS the idea being taught — naming what should happen first is the difference
|
|
19
|
+
* between a check and a rationalisation written afterwards.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* What a slide points at when the tour is drawn over a real page.
|
|
23
|
+
*
|
|
24
|
+
* The HUD is addressable because Reticle put it there, and so is every control inside it. The APP is
|
|
25
|
+
* addressable only as a WHOLE — "here is the thing being snapshotted" — which needs a region, not a
|
|
26
|
+
* control. The line is about authorship rather than size: a tour may ring any control it rendered
|
|
27
|
+
* itself, and may never ring a button in the app, because that would be a guess about unseen markup.
|
|
28
|
+
*
|
|
29
|
+
* It matters that the tour points at the app at least once. The pitch is verifying YOUR RUNNING
|
|
30
|
+
* APP from the inside, and a tour drawn entirely over a dimmed page reads as a modal that happens
|
|
31
|
+
* to sit on top of one.
|
|
32
|
+
*/
|
|
33
|
+
export declare const TourAnchor: {
|
|
34
|
+
/** No target: the slide is prose, centred. */
|
|
35
|
+
readonly NONE: "none";
|
|
36
|
+
/** Reticle's own in-page HUD. */
|
|
37
|
+
readonly HUD: "hud";
|
|
38
|
+
/** The app's own content region — `<main>`, else the framework's mount node. */
|
|
39
|
+
readonly APP: "app";
|
|
40
|
+
/** One control in the HUD's toolbar. Ours, so naming it is not a guess. */
|
|
41
|
+
readonly HUD_CHAT: "hud-chat";
|
|
42
|
+
readonly HUD_ANNOTATE: "hud-annotate";
|
|
43
|
+
readonly HUD_IMPACT: "hud-impact";
|
|
44
|
+
readonly HUD_SETTINGS: "hud-settings";
|
|
45
|
+
};
|
|
46
|
+
export type TourAnchor = (typeof TourAnchor)[keyof typeof TourAnchor];
|
|
47
|
+
/** Anything the carousel can draw: a shared step, or one of the browser's own cards. */
|
|
48
|
+
export interface TourCard {
|
|
49
|
+
id: string;
|
|
50
|
+
/** Three or four words. The carousel shows this; the terminal does not. */
|
|
51
|
+
title: string;
|
|
52
|
+
/** What this step is, in words. Both surfaces show this. */
|
|
53
|
+
say: string;
|
|
54
|
+
/**
|
|
55
|
+
* Why it is worth doing. Printed by the CLI tutorial; the carousel does not show it.
|
|
56
|
+
*
|
|
57
|
+
* The card is six slides read standing up, and a second paragraph on every one of them is the
|
|
58
|
+
* text people stop reading tours over. A terminal has neither a ring nor a button beside the
|
|
59
|
+
* words, so there the reason is the only thing that makes a step more than a keystroke.
|
|
60
|
+
*/
|
|
61
|
+
why?: string;
|
|
62
|
+
/** The exact call, for the audience that would otherwise infer it from the prose. */
|
|
63
|
+
call?: string;
|
|
64
|
+
/** What to highlight when drawn over a page. Ignored in a terminal. */
|
|
65
|
+
anchor?: TourAnchor;
|
|
66
|
+
/**
|
|
67
|
+
* The invitation to actually use the thing being pointed at, when the tour can let the click
|
|
68
|
+
* through to it.
|
|
69
|
+
*
|
|
70
|
+
* Only ever set on an anchor that is Reticle's own chrome: a tour may invite a click on a control
|
|
71
|
+
* it rendered and never one on the app's own markup. Reading a slide about a button teaches
|
|
72
|
+
* strictly less than pressing it, which is the difference between a carousel somebody clicks Next
|
|
73
|
+
* through and a tour they have already used the product during.
|
|
74
|
+
*/
|
|
75
|
+
tryIt?: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* A step BOTH surfaces show, which is why its reason is not optional.
|
|
79
|
+
*
|
|
80
|
+
* A card can lean on the ring beside it and the button under it. A terminal has neither, so a step
|
|
81
|
+
* printed there with no reason is a keystroke with nothing to hang it on.
|
|
82
|
+
*/
|
|
83
|
+
export interface TourStep extends TourCard {
|
|
84
|
+
why: string;
|
|
85
|
+
}
|
|
86
|
+
/** One ready-to-paste prompt on the handoff slide. */
|
|
87
|
+
export interface TourPrompt {
|
|
88
|
+
/** What this prompt is for, in three or four words. */
|
|
89
|
+
readonly label: string;
|
|
90
|
+
/** The text itself, as somebody would actually type it. */
|
|
91
|
+
readonly text: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* The prompts the last slide hands over.
|
|
95
|
+
*
|
|
96
|
+
* A tour that ends with "now go and try it" ends at the point where somebody has to invent the
|
|
97
|
+
* next move themselves, which is where they stop. These are the moves, written out, ready to paste
|
|
98
|
+
* into whichever agent they use.
|
|
99
|
+
*
|
|
100
|
+
* THREE rather than one, and short rather than thorough. The single prompt this replaced was a
|
|
101
|
+
* paragraph that named a verdict as the finish line — correct, and not a sentence anybody types
|
|
102
|
+
* twice. What people actually send an agent is one line, so a handoff written in a register they
|
|
103
|
+
* will never reuse teaches the register as much as the task. Each of these is a line somebody
|
|
104
|
+
* would plausibly type on their own the second time, which is the only version of this slide that
|
|
105
|
+
* survives contact with the week after the install.
|
|
106
|
+
*
|
|
107
|
+
* Every one of them names something the product does: driving one flow to a verdict, the `/reticle`
|
|
108
|
+
* command `init` writes into the project, and the autonomous crawl. The flows they name — login,
|
|
109
|
+
* checkout — are examples of the SHAPE, since this tour runs over an unknown app; the
|
|
110
|
+
* capability behind each is real, which is the part a tour must not get wrong.
|
|
111
|
+
*/
|
|
112
|
+
export declare const TOUR_HANDOFF_PROMPTS: readonly TourPrompt[];
|
|
113
|
+
export declare const TOUR_STEPS: readonly TourStep[];
|
|
114
|
+
/**
|
|
115
|
+
* The HUD's own controls, one card each, in the order somebody meets them.
|
|
116
|
+
*
|
|
117
|
+
* Browser-only. The CLI renders the shared steps into a terminal, where "click the Impact button" is
|
|
118
|
+
* an instruction nobody can follow, so a card about a control in a panel cannot sit in the list both
|
|
119
|
+
* surfaces print. The same reasoning already keeps the handoff out of `TOUR_STEPS`.
|
|
120
|
+
*
|
|
121
|
+
* They carry no `why`. A terminal step needs one because it has nothing beside it; these have a ring
|
|
122
|
+
* on the button they describe and an invitation to press it, and a second paragraph explaining a
|
|
123
|
+
* button somebody is about to click is the kind of text people stop reading tours over.
|
|
124
|
+
*/
|
|
125
|
+
export declare const TOUR_HUD_STEPS: readonly TourCard[];
|