@reticlehq/core 3.8.0 → 3.8.2
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/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- 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 +15 -0
- package/dist/artifacts/flow-types.d.ts +202 -2331
- package/dist/artifacts/flow-types.js +2 -2
- 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 +80 -1638
- package/dist/artifacts/impact.js +4 -4
- package/dist/artifacts/journal.d.ts +12 -247
- package/dist/artifacts/journal.js +2 -2
- package/dist/artifacts/prompt-context.d.ts +5 -43
- package/dist/artifacts/prompt-context.js +1 -1
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/onboarding.d.ts +8 -58
- package/dist/onboarding.js +1 -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 -103
- package/dist/schema/event-payloads.json +142 -119
- package/dist/schema/event-type.json +47 -50
- package/dist/schema/hello-message.json +150 -154
- package/dist/schema/reticle-event.json +98 -96
- package/dist/schema/reticle-message.json +338 -333
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-feedback.d.ts +11 -99
- package/dist/telemetry-feedback.js +1 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +39 -633
- package/dist/telemetry-session.js +10 -8
- package/dist/telemetry-signals.d.ts +58 -151
- package/dist/telemetry-signals.js +12 -1
- package/dist/telemetry.d.ts +137 -1814
- package/dist/telemetry.js +1 -1
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/instrumentation-coverage.d.ts +3 -3
- package/dist/verdict/instrumentation-coverage.js +1 -1
- package/dist/verdict/instrumentation-gap.d.ts +3 -10
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate.d.ts +1 -1
- package/dist/verdict/predicate.js +5 -5
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +13 -108
- package/dist/verdict/run-report.js +1 -1
- package/dist/verdict/security.d.ts +12 -0
- package/dist/verdict/security.js +94 -7
- package/dist/verdict/verification-run.d.ts +112 -1668
- package/dist/verdict/verification-run.js +4 -4
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/click-input.d.ts +15 -0
- package/dist/wire/click-input.js +42 -0
- package/dist/wire/constants/event-types.d.ts +2 -0
- package/dist/wire/constants/event-types.js +2 -0
- package/dist/wire/constants/response-body-reason.d.ts +4 -4
- package/dist/wire/constants/response-body-reason.js +4 -4
- package/dist/wire/constants/reticle-env.d.ts +2 -0
- package/dist/wire/constants/reticle-env.js +2 -0
- package/dist/wire/event-payloads.d.ts +108 -678
- package/dist/wire/event-payloads.js +24 -7
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +66 -755
- package/dist/wire/messages.js +3 -3
- package/dist/wire/next-step.d.ts +11 -51
- package/dist/wire/next-step.js +1 -1
- package/dist/wire/platform-link.js +2 -2
- package/dist/wire/production/production-policy.d.ts +37 -83
- package/dist/wire/production/production-policy.js +1 -1
- package/dist/wire/types.d.ts +75 -698
- 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 +4 -5
package/dist/telemetry-bug.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* as its own subject, and re-exported from there, so every `@reticlehq/core/telemetry` import still
|
|
4
4
|
* reaches it.
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
6
|
+
import * as z from 'zod';
|
|
7
7
|
/**
|
|
8
8
|
* How Reticle came to find a defect. Four routes, in descending order of "a human would have missed
|
|
9
9
|
* this": a contradiction is invisible to someone watching the screen, a crawl finding required no
|
|
@@ -61,7 +61,7 @@ export type BugAttribution = (typeof BugAttribution)[keyof typeof BugAttribution
|
|
|
61
61
|
* user's app — THAT a class of defect was found, never WHAT it was in.
|
|
62
62
|
*/
|
|
63
63
|
export declare const BugFoundSchema: z.ZodObject<{
|
|
64
|
-
source: z.
|
|
64
|
+
source: z.ZodEnum<{
|
|
65
65
|
/** Channels disagreed — the false green. A passing screen sitting on a failed write. */
|
|
66
66
|
readonly CONTRADICTION: "contradiction";
|
|
67
67
|
/** `reticle_crawl` found it autonomously, with nobody writing a test. */
|
|
@@ -71,47 +71,11 @@ export declare const BugFoundSchema: z.ZodObject<{
|
|
|
71
71
|
/** An assertion the agent declared did not hold. */
|
|
72
72
|
readonly ASSERTION: "assertion";
|
|
73
73
|
}>;
|
|
74
|
-
/** The classified kind from Reticle's own findings vocabulary. */
|
|
75
74
|
kind: z.ZodString;
|
|
76
|
-
/**
|
|
77
|
-
* True when the defect PRESENTED AS SUCCESS — the screen advanced, the assertion passed, the click
|
|
78
|
-
* looked fine — while another channel showed it had not.
|
|
79
|
-
*
|
|
80
|
-
* Defined by the presentation rather than by "an assertion passed", because the same defect arrives
|
|
81
|
-
* both ways: through `reticle_assert` there IS a passing assertion to contradict, and through
|
|
82
|
-
* `reticle_crawl` there is no assertion at all and the UI simply moved on over a failed write. Both
|
|
83
|
-
* are the thing a human watching the screen cannot see, and that is what the flag has to mean if
|
|
84
|
-
* the number is going to be published.
|
|
85
|
-
*
|
|
86
|
-
* The subset worth naming separately, because it is the only category Reticle can claim as uniquely
|
|
87
|
-
* its own: every other kind of bug is findable by a careful human or an ordinary test.
|
|
88
|
-
*/
|
|
89
75
|
falseGreen: z.ZodBoolean;
|
|
90
|
-
/** Which tool surfaced it. */
|
|
91
76
|
tool: z.ZodOptional<z.ZodString>;
|
|
92
|
-
/**
|
|
93
|
-
* TRUE when this KIND was already reported in this session — i.e. this is another INSTANCE of a
|
|
94
|
-
* defect already counted, not another defect.
|
|
95
|
-
*
|
|
96
|
-
* Both numbers are claims, and they are different ones. "Reticle found N defects" is the headline;
|
|
97
|
-
* "users hit them M times" is the frequency that says which ones actually cost anybody anything.
|
|
98
|
-
* Without this flag the event stream answers only the second while looking like it answers the
|
|
99
|
-
* first, so any distinct-defect count read off it is silently inflated — the exact way a published
|
|
100
|
-
* number goes wrong. Count `repeat: false` for distinct, count everything for instances.
|
|
101
|
-
*
|
|
102
|
-
* Scoped to the SESSION, because that is the only identity available: the payload deliberately
|
|
103
|
-
* carries no selector, URL or app detail, so the same defect in two sessions cannot be recognised
|
|
104
|
-
* as one — and must not be, since that would need data this event refuses to collect.
|
|
105
|
-
*/
|
|
106
77
|
repeat: z.ZodBoolean;
|
|
107
|
-
|
|
108
|
-
* Whose fault it was, ALWAYS present — `unclassified` when the evidence cannot say, never absent.
|
|
109
|
-
*
|
|
110
|
-
* Absence and "the evidence could not say" are different facts, and only one of them is a
|
|
111
|
-
* measurement. Count `attribution: 'app'` for defects found in anybody's product; see
|
|
112
|
-
* `BugAttribution` for why `app` needs positive evidence.
|
|
113
|
-
*/
|
|
114
|
-
attribution: z.ZodNativeEnum<{
|
|
78
|
+
attribution: z.ZodEnum<{
|
|
115
79
|
/** A defect in the app under test — the only bucket that belongs in a published defect count. */
|
|
116
80
|
readonly APP: "app";
|
|
117
81
|
/** The agent's own call was wrong: a path, store or target that never existed. Teach the agent. */
|
|
@@ -128,42 +92,7 @@ export declare const BugFoundSchema: z.ZodObject<{
|
|
|
128
92
|
*/
|
|
129
93
|
readonly UNCLASSIFIED: "unclassified";
|
|
130
94
|
}>;
|
|
131
|
-
/**
|
|
132
|
-
* A stable hash identifying THIS defect across sessions — same kind at the same route = same
|
|
133
|
-
* fingerprint, regardless of when or where it was found.
|
|
134
|
-
*
|
|
135
|
-
* The inputs (route, selector) never travel raw — only the 8-char hex hash does, following the
|
|
136
|
-
* same privacy pattern as `projectId`. The analytics side groups on it to answer "was this bug
|
|
137
|
-
* fixed?" (the fingerprint stops appearing) and to deduplicate the same defect found by parallel
|
|
138
|
-
* agents in one run.
|
|
139
|
-
*
|
|
140
|
-
* OPTIONAL because old senders and the `reticle verify` CLI path do not yet compute it. Absent
|
|
141
|
-
* means "not fingerprinted", never "a different defect from one that has a fingerprint".
|
|
142
|
-
*/
|
|
143
95
|
fingerprint: z.ZodOptional<z.ZodString>;
|
|
144
|
-
/**
|
|
145
|
-
* Which hit of this `fingerprint` in the session, from 1. Two hits of one defect used to be
|
|
146
|
-
* byte-identical rows, so a duplicated delivery and a real second hit could not be told apart.
|
|
147
|
-
* `occurrence: 1` is the distinct defect within a session. Absent on older senders.
|
|
148
|
-
*/
|
|
149
96
|
occurrence: z.ZodOptional<z.ZodNumber>;
|
|
150
|
-
},
|
|
151
|
-
repeat: boolean;
|
|
152
|
-
kind: string;
|
|
153
|
-
source: "replay" | "assertion" | "contradiction" | "crawl";
|
|
154
|
-
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
155
|
-
falseGreen: boolean;
|
|
156
|
-
tool?: string | undefined;
|
|
157
|
-
fingerprint?: string | undefined;
|
|
158
|
-
occurrence?: number | undefined;
|
|
159
|
-
}, {
|
|
160
|
-
repeat: boolean;
|
|
161
|
-
kind: string;
|
|
162
|
-
source: "replay" | "assertion" | "contradiction" | "crawl";
|
|
163
|
-
attribution: "app" | "reticle" | "request" | "unclassified";
|
|
164
|
-
falseGreen: boolean;
|
|
165
|
-
tool?: string | undefined;
|
|
166
|
-
fingerprint?: string | undefined;
|
|
167
|
-
occurrence?: number | undefined;
|
|
168
|
-
}>;
|
|
97
|
+
}, z.core.$strip>;
|
|
169
98
|
export type BugFound = z.infer<typeof BugFoundSchema>;
|
package/dist/telemetry-bug.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* as its own subject, and re-exported from there, so every `@reticlehq/core/telemetry` import still
|
|
4
4
|
* reaches it.
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
6
|
+
import * as z from 'zod';
|
|
7
7
|
/**
|
|
8
8
|
* How Reticle came to find a defect. Four routes, in descending order of "a human would have missed
|
|
9
9
|
* this": a contradiction is invisible to someone watching the screen, a crawl finding required no
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* `reticle_feedback` or a human ran `reticle feedback`; an `Identity` exists because a human ran
|
|
11
11
|
* `reticle identify`. There is no code path to either that a person did not start.
|
|
12
12
|
*/
|
|
13
|
-
import
|
|
13
|
+
import * as z from 'zod';
|
|
14
14
|
/** Who authored the feedback. Agents report failures; humans also rate the experience. */
|
|
15
15
|
export declare const FeedbackSource: {
|
|
16
16
|
readonly AGENT: "agent";
|
|
@@ -134,11 +134,11 @@ export declare function isFeedbackContact(value: string): boolean;
|
|
|
134
134
|
* is scraped — someone typed or wrote them), capped, and redacted client-side before the wire.
|
|
135
135
|
*/
|
|
136
136
|
export declare const FeedbackSchema: z.ZodObject<{
|
|
137
|
-
source: z.
|
|
137
|
+
source: z.ZodEnum<{
|
|
138
138
|
readonly AGENT: "agent";
|
|
139
139
|
readonly HUMAN: "human";
|
|
140
140
|
}>;
|
|
141
|
-
kind: z.
|
|
141
|
+
kind: z.ZodEnum<{
|
|
142
142
|
/** A tool misbehaved: wrong result, crash, or a contract it did not honor. */
|
|
143
143
|
readonly BUG: "bug";
|
|
144
144
|
/** Reticle could not observe something the agent needed — a blind spot, not a defect. */
|
|
@@ -178,117 +178,37 @@ export declare const FeedbackSchema: z.ZodObject<{
|
|
|
178
178
|
*/
|
|
179
179
|
readonly EXPERIENCE: "experience";
|
|
180
180
|
}>;
|
|
181
|
-
/** The author's account. For an agent: what failed and why (its RCA). For a human: their words. */
|
|
182
181
|
text: z.ZodString;
|
|
183
|
-
/** Agent-side only: the call/response trail that led to the failure, so the RCA is reproducible. */
|
|
184
182
|
trace: z.ZodOptional<z.ZodString>;
|
|
185
|
-
/** Human-side only: 1–5. The single number that trends without reading a word. */
|
|
186
183
|
rating: z.ZodOptional<z.ZodNumber>;
|
|
187
|
-
/**
|
|
188
|
-
* WHY it is wanted — the goal behind the request, not the request itself.
|
|
189
|
-
*
|
|
190
|
-
* The most common way a feature request wastes everyone's time is arriving as a solution with the
|
|
191
|
-
* problem stripped off. "Add a `waitForIdle` tool" is a guess about implementation; "I need to know
|
|
192
|
-
* the page stopped changing before I assert" is a requirement, and it may already have an answer.
|
|
193
|
-
*/
|
|
194
184
|
need: z.ZodOptional<z.ZodString>;
|
|
195
|
-
/** What measurably gets better — fewer calls, fewer retries, a verdict that stops being ambiguous. */
|
|
196
185
|
impact: z.ZodOptional<z.ZodString>;
|
|
197
|
-
/**
|
|
198
|
-
* How the author works around it TODAY. Usually the most valuable field in the whole report.
|
|
199
|
-
*
|
|
200
|
-
* A workaround is evidence rather than opinion: it shows what the agent actually did, proves the
|
|
201
|
-
* need is real enough to have cost it something, and frequently reveals that the missing feature is
|
|
202
|
-
* a worse fix than removing whatever forced the workaround.
|
|
203
|
-
*/
|
|
204
186
|
currentApproach: z.ZodOptional<z.ZodString>;
|
|
205
|
-
/**
|
|
206
|
-
* The MODEL the agent is running, self-reported.
|
|
207
|
-
*
|
|
208
|
-
* Not obtainable any other way: MCP's `clientInfo` carries a client name and version and has no
|
|
209
|
-
* concept of a model, so the transport cannot say. The agent knows, and this report is already
|
|
210
|
-
* something the agent authored — so asking is both the only mechanism and a reliable one.
|
|
211
|
-
*
|
|
212
|
-
* It matters more than it looks: a limitation that blocks a smaller model may be a docs problem
|
|
213
|
-
* rather than a missing feature, and a request from a frontier model is evidence the surface itself
|
|
214
|
-
* is short. Without it, every request looks the same.
|
|
215
|
-
*/
|
|
216
187
|
model: z.ZodOptional<z.ZodString>;
|
|
217
|
-
/** The MCP client's own version, alongside its name — so "cursor 0.42 specifically" is answerable. */
|
|
218
188
|
clientVersion: z.ZodOptional<z.ZodString>;
|
|
219
|
-
/** The framework detected in the project (`next`, `vite`, `sveltekit`, `vue`, `astro`, …). */
|
|
220
189
|
stack: z.ZodOptional<z.ZodString>;
|
|
221
|
-
/**
|
|
222
|
-
* The MAJOR version of that framework ("15", "19"). Major only, deliberately: it is what actually
|
|
223
|
-
* segments a bug ("breaks on React 19" is a work item; "breaks on 19.0.0-rc.1-canary" is noise),
|
|
224
|
-
* and a full version string is high-cardinality enough to start narrowing down who sent it.
|
|
225
|
-
*/
|
|
226
190
|
stackMajor: z.ZodOptional<z.ZodNumber>;
|
|
227
|
-
runtime: z.ZodOptional<z.
|
|
191
|
+
runtime: z.ZodOptional<z.ZodEnum<{
|
|
228
192
|
readonly WEB: "web";
|
|
229
193
|
readonly ELECTRON: "electron";
|
|
230
194
|
readonly TAURI: "tauri";
|
|
231
195
|
}>>;
|
|
232
|
-
engine: z.ZodOptional<z.
|
|
196
|
+
engine: z.ZodOptional<z.ZodEnum<{
|
|
233
197
|
readonly BLINK: "blink";
|
|
234
198
|
readonly GECKO: "gecko";
|
|
235
199
|
readonly WEBKIT: "webkit";
|
|
236
200
|
}>>;
|
|
237
|
-
driver: z.ZodOptional<z.
|
|
201
|
+
driver: z.ZodOptional<z.ZodEnum<{
|
|
238
202
|
readonly CDP: "cdp";
|
|
239
203
|
readonly SDK: "sdk";
|
|
240
204
|
}>>;
|
|
241
|
-
/** The MCP client on the other end (`claude-code`, `cursor`, …) — self-reported at initialize. */
|
|
242
205
|
client: z.ZodOptional<z.ZodString>;
|
|
243
|
-
mcpScope: z.ZodOptional<z.
|
|
206
|
+
mcpScope: z.ZodOptional<z.ZodEnum<{
|
|
244
207
|
readonly USER: "user";
|
|
245
208
|
readonly PROJECT: "project";
|
|
246
209
|
}>>;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
* purpose (`reticle feedback --contact`, or the agent relayed one the user typed). The one
|
|
250
|
-
* personal value this channel carries, and never taken from anywhere else.
|
|
251
|
-
*/
|
|
252
|
-
contact: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
253
|
-
}, "strip", z.ZodTypeAny, {
|
|
254
|
-
text: string;
|
|
255
|
-
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
256
|
-
source: "agent" | "human";
|
|
257
|
-
impact?: string | undefined;
|
|
258
|
-
model?: string | undefined;
|
|
259
|
-
trace?: string | undefined;
|
|
260
|
-
rating?: number | undefined;
|
|
261
|
-
need?: string | undefined;
|
|
262
|
-
currentApproach?: string | undefined;
|
|
263
|
-
clientVersion?: string | undefined;
|
|
264
|
-
stack?: string | undefined;
|
|
265
|
-
stackMajor?: number | undefined;
|
|
266
|
-
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
267
|
-
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
268
|
-
driver?: "cdp" | "sdk" | undefined;
|
|
269
|
-
client?: string | undefined;
|
|
270
|
-
mcpScope?: "project" | "user" | undefined;
|
|
271
|
-
contact?: string | undefined;
|
|
272
|
-
}, {
|
|
273
|
-
text: string;
|
|
274
|
-
kind: "bug" | "gap" | "ambiguity" | "feature_request" | "improvement" | "experience";
|
|
275
|
-
source: "agent" | "human";
|
|
276
|
-
impact?: string | undefined;
|
|
277
|
-
model?: string | undefined;
|
|
278
|
-
trace?: string | undefined;
|
|
279
|
-
rating?: number | undefined;
|
|
280
|
-
need?: string | undefined;
|
|
281
|
-
currentApproach?: string | undefined;
|
|
282
|
-
clientVersion?: string | undefined;
|
|
283
|
-
stack?: string | undefined;
|
|
284
|
-
stackMajor?: number | undefined;
|
|
285
|
-
runtime?: "web" | "electron" | "tauri" | undefined;
|
|
286
|
-
engine?: "blink" | "gecko" | "webkit" | undefined;
|
|
287
|
-
driver?: "cdp" | "sdk" | undefined;
|
|
288
|
-
client?: string | undefined;
|
|
289
|
-
mcpScope?: "project" | "user" | undefined;
|
|
290
|
-
contact?: string | undefined;
|
|
291
|
-
}>;
|
|
210
|
+
contact: z.ZodOptional<z.ZodString>;
|
|
211
|
+
}, z.core.$strip>;
|
|
292
212
|
export type Feedback = z.infer<typeof FeedbackSchema>;
|
|
293
213
|
/** What Reticle is being used for. Self-declared; never inferred. */
|
|
294
214
|
export declare const UsageContextKind: {
|
|
@@ -304,7 +224,7 @@ export type UsageContextKind = (typeof UsageContextKind)[keyof typeof UsageConte
|
|
|
304
224
|
* say "this is a company" without saying which, or name the company without leaving an email.
|
|
305
225
|
*/
|
|
306
226
|
export declare const IdentitySchema: z.ZodObject<{
|
|
307
|
-
context: z.
|
|
227
|
+
context: z.ZodEnum<{
|
|
308
228
|
readonly COMPANY: "company";
|
|
309
229
|
readonly SIDE_PROJECT: "side_project";
|
|
310
230
|
readonly OPEN_SOURCE: "open_source";
|
|
@@ -312,13 +232,5 @@ export declare const IdentitySchema: z.ZodObject<{
|
|
|
312
232
|
}>;
|
|
313
233
|
company: z.ZodOptional<z.ZodString>;
|
|
314
234
|
email: z.ZodOptional<z.ZodString>;
|
|
315
|
-
},
|
|
316
|
-
context: "company" | "side_project" | "open_source" | "learning";
|
|
317
|
-
company?: string | undefined;
|
|
318
|
-
email?: string | undefined;
|
|
319
|
-
}, {
|
|
320
|
-
context: "company" | "side_project" | "open_source" | "learning";
|
|
321
|
-
company?: string | undefined;
|
|
322
|
-
email?: string | undefined;
|
|
323
|
-
}>;
|
|
235
|
+
}, z.core.$strip>;
|
|
324
236
|
export type Identity = z.infer<typeof IdentitySchema>;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* `reticle_feedback` or a human ran `reticle feedback`; an `Identity` exists because a human ran
|
|
11
11
|
* `reticle identify`. There is no code path to either that a person did not start.
|
|
12
12
|
*/
|
|
13
|
-
import
|
|
13
|
+
import * as z from 'zod';
|
|
14
14
|
/** Who authored the feedback. Agents report failures; humans also rate the experience. */
|
|
15
15
|
export const FeedbackSource = {
|
|
16
16
|
AGENT: 'agent',
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `error-recovery.ts` is graded against. `NoSessionReason` has its own module because it refines
|
|
6
6
|
* exactly one member of the enum below.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import * as z from 'zod';
|
|
9
9
|
/**
|
|
10
10
|
* WHY a tool could not do what was asked.
|
|
11
11
|
*
|
|
@@ -36,9 +36,8 @@ export declare const RefusalReason: {
|
|
|
36
36
|
export type RefusalReason = (typeof RefusalReason)[keyof typeof RefusalReason];
|
|
37
37
|
/** One tool call that could not be served. */
|
|
38
38
|
export declare const ToolRefusalSchema: z.ZodObject<{
|
|
39
|
-
/** Which tool. A name from our own fixed namespace, never app data. */
|
|
40
39
|
tool: z.ZodString;
|
|
41
|
-
reason: z.
|
|
40
|
+
reason: z.ZodEnum<{
|
|
42
41
|
/** There was no app to reach: nothing connected, no session by that id, or several with none named. */
|
|
43
42
|
readonly NO_SESSION: "no_session";
|
|
44
43
|
/** The target did not exist: a stale ref, a missing baseline, an option value the select has not got. */
|
|
@@ -52,14 +51,7 @@ export declare const ToolRefusalSchema: z.ZodObject<{
|
|
|
52
51
|
/** A refusal this list does not name. A classifier that cannot say "I don't know" lies instead. */
|
|
53
52
|
readonly OTHER: "other";
|
|
54
53
|
}>;
|
|
55
|
-
|
|
56
|
-
* For `no_session` only: WHICH no-session situation, from core's closed `NoSessionReason`.
|
|
57
|
-
*
|
|
58
|
-
* Rides the refusal rather than the profile because this is where the diagnosis is actually
|
|
59
|
-
* COMPUTED - `project_profiled` fires once at daemon start, before any tool call has failed, so
|
|
60
|
-
* it cannot carry a reason that does not exist yet. Absent on every other refusal reason.
|
|
61
|
-
*/
|
|
62
|
-
noSessionReason: z.ZodOptional<z.ZodNativeEnum<{
|
|
54
|
+
noSessionReason: z.ZodOptional<z.ZodEnum<{
|
|
63
55
|
readonly AUTH_REFUSED: "auth_refused";
|
|
64
56
|
readonly LEASE_EXPIRED: "lease_expired";
|
|
65
57
|
readonly TAB_GONE: "tab_gone";
|
|
@@ -72,25 +64,6 @@ export declare const ToolRefusalSchema: z.ZodObject<{
|
|
|
72
64
|
readonly NO_CONFIG: "no_config";
|
|
73
65
|
readonly SDK_NOT_REACHING_DAEMON: "sdk_not_reaching_daemon";
|
|
74
66
|
}>>;
|
|
75
|
-
/**
|
|
76
|
-
* TRUE when the call immediately before this one was the SAME tool, also refused.
|
|
77
|
-
*
|
|
78
|
-
* Reported on the RETRY rather than on the first refusal, because the first refusal has to be sent
|
|
79
|
-
* at the moment it happens: deferring it until the next call is known would lose it entirely for
|
|
80
|
-
* the agent that gives up, and that agent is the whole population this event exists to describe.
|
|
81
|
-
* So count `retried: true` for retries; the ratio against all refusals is whether the diagnosis
|
|
82
|
-
* gets anybody unstuck.
|
|
83
|
-
*/
|
|
84
67
|
retried: z.ZodBoolean;
|
|
85
|
-
},
|
|
86
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
87
|
-
tool: string;
|
|
88
|
-
retried: boolean;
|
|
89
|
-
noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "navigated_away" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
90
|
-
}, {
|
|
91
|
-
reason: "other" | "no_session" | "no_match" | "unsupported" | "bad_args" | "not_ready";
|
|
92
|
-
tool: string;
|
|
93
|
-
retried: boolean;
|
|
94
|
-
noSessionReason?: "auth_refused" | "lease_expired" | "tab_gone" | "navigated_away" | "route_server_error" | "app_not_reopened" | "config_elsewhere" | "no_listener_no_config" | "no_listener" | "no_config" | "sdk_not_reaching_daemon" | undefined;
|
|
95
|
-
}>;
|
|
68
|
+
}, z.core.$strip>;
|
|
96
69
|
export type ToolRefusal = z.infer<typeof ToolRefusalSchema>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `error-recovery.ts` is graded against. `NoSessionReason` has its own module because it refines
|
|
6
6
|
* exactly one member of the enum below.
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
8
|
+
import * as z from 'zod';
|
|
9
9
|
import { NoSessionReason } from './words/no-session-reason.js';
|
|
10
10
|
/**
|
|
11
11
|
* WHY a tool could not do what was asked.
|