@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
|
@@ -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
|
import { HudPanel, HudPromptSurface } from './wire/constants/hud-use.js';
|
|
11
12
|
/**
|
|
12
13
|
* Where this machine stands with the platform, on every event. `linked` implies signed in OR an
|
|
@@ -91,6 +92,30 @@ export const HarnessRunOutcome = {
|
|
|
91
92
|
BLOCKED: 'blocked',
|
|
92
93
|
STOPPED: 'stopped',
|
|
93
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* Why a Harness run did not drive: only on a `blocked` or `failed` run. Closed, and read off the
|
|
97
|
+
* refusal that stopped it, never off its sentence, so a reworded message cannot change the count.
|
|
98
|
+
*/
|
|
99
|
+
export const HarnessRunReason = {
|
|
100
|
+
/** The project has no platform link, so there is nowhere to drive from. */
|
|
101
|
+
NOT_LINKED: 'not_linked',
|
|
102
|
+
/** The platform did not confirm the drive in time, or answered something unreadable. */
|
|
103
|
+
PLATFORM_UNREACHABLE: 'platform_unreachable',
|
|
104
|
+
/** The Harness is switched off for this project (the default until somebody turns it on). */
|
|
105
|
+
HARNESS_OFF: 'harness_off',
|
|
106
|
+
/** The workspace has no credits left. */
|
|
107
|
+
NO_CREDITS: 'no_credits',
|
|
108
|
+
/** The workspace has not claimed the Harness. */
|
|
109
|
+
NOT_ENTITLED: 'not_entitled',
|
|
110
|
+
/** An older build refused for low instrumentation. No longer sent: the Harness has no coverage gate. */
|
|
111
|
+
COVERAGE_GATE: 'coverage_gate',
|
|
112
|
+
/** The page and the daemon come from different builds, so every step would answer unknown. */
|
|
113
|
+
VERSION_SKEW: 'version_skew',
|
|
114
|
+
/** The drive started and broke. */
|
|
115
|
+
BROKEN: 'broken',
|
|
116
|
+
/** A refusal this list does not name. A growing count here is a gap in this list. */
|
|
117
|
+
OTHER: 'other',
|
|
118
|
+
};
|
|
94
119
|
/** Who started a Harness run. `dashboard` is a run started from the platform's chat. */
|
|
95
120
|
export const HarnessRunSource = {
|
|
96
121
|
AGENT: 'agent',
|
|
@@ -110,6 +135,8 @@ export const HarnessRunSchema = z.object({
|
|
|
110
135
|
/** Only on `completed`: journeys the run answered, and how many of those replayed with no model. */
|
|
111
136
|
journeys: z.nativeEnum(CountBucket).optional(),
|
|
112
137
|
replayed: z.nativeEnum(CountBucket).optional(),
|
|
138
|
+
/** Only on a `blocked` or `failed` run: why it did not drive. */
|
|
139
|
+
reason: z.nativeEnum(HarnessRunReason).optional(),
|
|
113
140
|
});
|
|
114
141
|
/**
|
|
115
142
|
* The envelope fields and blocks this file adds to `TelemetryEventSchema`, spread into it there.
|
|
@@ -136,3 +163,74 @@ export const SIGNAL_FIELDS = {
|
|
|
136
163
|
/** Only on `harness_run`. */
|
|
137
164
|
harness: HarnessRunSchema.optional(),
|
|
138
165
|
};
|
|
166
|
+
// ── Transport: what happens to the MCP proxy and its daemon when the link fails ──
|
|
167
|
+
// No block below carries a path, a port, a pid or a message.
|
|
168
|
+
/**
|
|
169
|
+
* The socket error code behind a drop, as a closed set. Anything else reports `other`, so a new code
|
|
170
|
+
* cannot put free text on the wire.
|
|
171
|
+
*/
|
|
172
|
+
export const OutageErrCode = {
|
|
173
|
+
ECONNRESET: 'ECONNRESET',
|
|
174
|
+
ECONNREFUSED: 'ECONNREFUSED',
|
|
175
|
+
EPIPE: 'EPIPE',
|
|
176
|
+
ETIMEDOUT: 'ETIMEDOUT',
|
|
177
|
+
OTHER: 'other',
|
|
178
|
+
};
|
|
179
|
+
/** Why the MCP proxy process left. Each member names one exit path in the proxy. */
|
|
180
|
+
export const ProxyExitReason = {
|
|
181
|
+
/** The client closed stdin. The normal end of a session. */
|
|
182
|
+
STDIN_END: 'stdin_end',
|
|
183
|
+
/** The client link was quiet for the idle window, with no work in flight. */
|
|
184
|
+
IDLE: 'idle',
|
|
185
|
+
/** Too many client-pipe disconnects since the last usable session: the client is gone. */
|
|
186
|
+
CLIENT_GONE_STORM: 'client_gone_storm',
|
|
187
|
+
/** The proxy could not start a daemon and had no way to continue. */
|
|
188
|
+
WAKE_FAILED: 'wake_failed',
|
|
189
|
+
};
|
|
190
|
+
/** `mcp_proxy_exited`: the agent's MCP server process ended, and the agent lost its tools. */
|
|
191
|
+
export const ProxyExitSchema = z.object({
|
|
192
|
+
reason: z.nativeEnum(ProxyExitReason),
|
|
193
|
+
/** How long the proxy process ran. */
|
|
194
|
+
uptimeMs: z.number().int().nonnegative(),
|
|
195
|
+
/** How many times the proxy lost its daemon stream in its life. */
|
|
196
|
+
drops: z.number().int().nonnegative(),
|
|
197
|
+
/** How many `tools/call` requests the client sent through this proxy. */
|
|
198
|
+
toolCalls: z.number().int().nonnegative(),
|
|
199
|
+
proxyId: z.string().min(1).max(64).optional(),
|
|
200
|
+
});
|
|
201
|
+
/** `daemon_died_unclean`: a daemon start found the pidfile of a daemon that never stopped cleanly. */
|
|
202
|
+
export const DaemonDeathSchema = z.object({
|
|
203
|
+
/** Time from the dead daemon's start (its pidfile write) to this discovery. */
|
|
204
|
+
ageMs: z.number().int().nonnegative(),
|
|
205
|
+
});
|
|
206
|
+
/** How the parent started the daemon. On Windows a start through WMI leaves the Job Object. */
|
|
207
|
+
export const DaemonSpawnMethod = {
|
|
208
|
+
/** A detached child of the parent. On Windows it stays in the job of the parent. */
|
|
209
|
+
DETACHED: 'detached',
|
|
210
|
+
/** Windows only: started through WMI `Win32_Process.Create`, outside every job. */
|
|
211
|
+
WMI: 'wmi',
|
|
212
|
+
/** Windows only: the WMI start failed, so the parent used the detached start. */
|
|
213
|
+
WMI_FALLBACK: 'wmi_fallback',
|
|
214
|
+
};
|
|
215
|
+
/** What held the port when a wake was refused. */
|
|
216
|
+
export const WakeRefusalPresence = {
|
|
217
|
+
/** Something that is not a Reticle daemon holds the port. */
|
|
218
|
+
FOREIGN: 'foreign',
|
|
219
|
+
/** A Reticle daemon for a different project holds the port. */
|
|
220
|
+
OTHER_PROJECT: 'other_project',
|
|
221
|
+
};
|
|
222
|
+
/** `wake_refused`: the proxy would not use the daemon port it found. */
|
|
223
|
+
export const WakeRefusalSchema = z.object({
|
|
224
|
+
presence: z.nativeEnum(WakeRefusalPresence),
|
|
225
|
+
});
|
|
226
|
+
/** The blocks this file adds to `TelemetryEventSchema`, spread into it there. */
|
|
227
|
+
export const TRANSPORT_FIELDS = {
|
|
228
|
+
/** Only on `mcp_proxy_exited`. */
|
|
229
|
+
proxyExit: ProxyExitSchema.optional(),
|
|
230
|
+
/** Only on `daemon_died_unclean`. */
|
|
231
|
+
daemonDeath: DaemonDeathSchema.optional(),
|
|
232
|
+
/** Only on `wake_refused`. */
|
|
233
|
+
wakeRefusal: WakeRefusalSchema.optional(),
|
|
234
|
+
/** Only on `daemon_started`: how the parent started the daemon. A scalar. */
|
|
235
|
+
spawnMethod: z.nativeEnum(DaemonSpawnMethod).optional(),
|
|
236
|
+
};
|