@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.
Files changed (97) hide show
  1. package/dist/artifacts/drive-script.d.ts +84 -1217
  2. package/dist/artifacts/drive-script.js +1 -1
  3. package/dist/artifacts/flow-expect-flat.d.ts +8 -192
  4. package/dist/artifacts/flow-expect-flat.js +2 -2
  5. package/dist/artifacts/flow-results.d.ts +15 -0
  6. package/dist/artifacts/flow-types.d.ts +202 -2331
  7. package/dist/artifacts/flow-types.js +2 -2
  8. package/dist/artifacts/harness-map.d.ts +8 -69
  9. package/dist/artifacts/harness-map.js +1 -1
  10. package/dist/artifacts/hud-notices.d.ts +8 -82
  11. package/dist/artifacts/hud-notices.js +1 -1
  12. package/dist/artifacts/impact.d.ts +80 -1638
  13. package/dist/artifacts/impact.js +4 -4
  14. package/dist/artifacts/journal.d.ts +12 -247
  15. package/dist/artifacts/journal.js +2 -2
  16. package/dist/artifacts/prompt-context.d.ts +5 -43
  17. package/dist/artifacts/prompt-context.js +1 -1
  18. package/dist/artifacts/screenshot-upload.d.ts +3 -26
  19. package/dist/artifacts/screenshot-upload.js +1 -1
  20. package/dist/hooks/hook-events.d.ts +15 -171
  21. package/dist/hooks/hook-events.js +1 -1
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.js +1 -0
  24. package/dist/onboarding.d.ts +8 -58
  25. package/dist/onboarding.js +1 -1
  26. package/dist/registry/daemon-registry.d.ts +2 -14
  27. package/dist/registry/daemon-registry.js +1 -1
  28. package/dist/registry/dev-server-registry.d.ts +2 -31
  29. package/dist/registry/dev-server-registry.js +1 -1
  30. package/dist/registry/project-registry.d.ts +4 -32
  31. package/dist/registry/project-registry.js +1 -1
  32. package/dist/schema/command-message.json +65 -68
  33. package/dist/schema/command-name.json +29 -33
  34. package/dist/schema/command-result.json +25 -30
  35. package/dist/schema/event-message.json +104 -103
  36. package/dist/schema/event-payloads.json +142 -119
  37. package/dist/schema/event-type.json +47 -50
  38. package/dist/schema/hello-message.json +150 -154
  39. package/dist/schema/reticle-event.json +98 -96
  40. package/dist/schema/reticle-message.json +338 -333
  41. package/dist/telemetry-bug.d.ts +4 -75
  42. package/dist/telemetry-bug.js +1 -1
  43. package/dist/telemetry-feedback.d.ts +11 -99
  44. package/dist/telemetry-feedback.js +1 -1
  45. package/dist/telemetry-refusal.d.ts +4 -31
  46. package/dist/telemetry-refusal.js +1 -1
  47. package/dist/telemetry-session.d.ts +39 -633
  48. package/dist/telemetry-session.js +10 -8
  49. package/dist/telemetry-signals.d.ts +58 -151
  50. package/dist/telemetry-signals.js +12 -1
  51. package/dist/telemetry.d.ts +137 -1814
  52. package/dist/telemetry.js +1 -1
  53. package/dist/verdict/compare-source.d.ts +1 -1
  54. package/dist/verdict/compare-source.js +1 -1
  55. package/dist/verdict/disparity.d.ts +8 -56
  56. package/dist/verdict/disparity.js +1 -1
  57. package/dist/verdict/instrumentation-coverage.d.ts +3 -3
  58. package/dist/verdict/instrumentation-coverage.js +1 -1
  59. package/dist/verdict/instrumentation-gap.d.ts +3 -10
  60. package/dist/verdict/instrumentation-gap.js +1 -1
  61. package/dist/verdict/intent.d.ts +25 -224
  62. package/dist/verdict/intent.js +1 -1
  63. package/dist/verdict/predicate.d.ts +1 -1
  64. package/dist/verdict/predicate.js +5 -5
  65. package/dist/verdict/property-assertion.d.ts +23 -101
  66. package/dist/verdict/property-assertion.js +1 -1
  67. package/dist/verdict/run-report.d.ts +13 -108
  68. package/dist/verdict/run-report.js +1 -1
  69. package/dist/verdict/security.d.ts +12 -0
  70. package/dist/verdict/security.js +94 -7
  71. package/dist/verdict/verification-run.d.ts +112 -1668
  72. package/dist/verdict/verification-run.js +4 -4
  73. package/dist/verdict/verify-progress.d.ts +22 -64
  74. package/dist/verdict/verify-progress.js +1 -1
  75. package/dist/wire/click-input.d.ts +15 -0
  76. package/dist/wire/click-input.js +42 -0
  77. package/dist/wire/constants/event-types.d.ts +2 -0
  78. package/dist/wire/constants/event-types.js +2 -0
  79. package/dist/wire/constants/response-body-reason.d.ts +4 -4
  80. package/dist/wire/constants/response-body-reason.js +4 -4
  81. package/dist/wire/constants/reticle-env.d.ts +2 -0
  82. package/dist/wire/constants/reticle-env.js +2 -0
  83. package/dist/wire/event-payloads.d.ts +108 -678
  84. package/dist/wire/event-payloads.js +24 -7
  85. package/dist/wire/event-priority.js +1 -0
  86. package/dist/wire/messages.d.ts +66 -755
  87. package/dist/wire/messages.js +3 -3
  88. package/dist/wire/next-step.d.ts +11 -51
  89. package/dist/wire/next-step.js +1 -1
  90. package/dist/wire/platform-link.js +2 -2
  91. package/dist/wire/production/production-policy.d.ts +37 -83
  92. package/dist/wire/production/production-policy.js +1 -1
  93. package/dist/wire/types.d.ts +75 -698
  94. package/dist/wire/types.js +5 -5
  95. package/dist/words/upgrade.d.ts +3 -13
  96. package/dist/words/upgrade.js +1 -1
  97. package/package.json +4 -5
@@ -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 { z } from 'zod';
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.
@@ -42,25 +42,11 @@ export declare function coverageBucketOf(percent: number): CoverageBucket;
42
42
  * payload: you could rank the top error and never learn what it was, or which tool produced it.
43
43
  */
44
44
  export declare const ErrorShapeSchema: z.ZodObject<{
45
- /** Stable group key — the same defect from any machine shares it. */
46
45
  fingerprint: z.ZodString;
47
- /** How many times it happened this session. */
48
46
  count: z.ZodNumber;
49
- /** The message with every variable part stripped. The dictionary entry for the fingerprint. */
50
47
  message: z.ZodString;
51
- /** Which tool produced it — the same message from two tools is usually two different bugs. */
52
48
  tool: z.ZodOptional<z.ZodString>;
53
- }, "strip", z.ZodTypeAny, {
54
- message: string;
55
- count: number;
56
- fingerprint: string;
57
- tool?: string | undefined;
58
- }, {
59
- message: string;
60
- count: number;
61
- fingerprint: string;
62
- tool?: string | undefined;
63
- }>;
49
+ }, z.core.$strip>;
64
50
  export type ErrorShape = z.infer<typeof ErrorShapeSchema>;
65
51
  /**
66
52
  * Whether the project has git, and whether anyone has pushed it.
@@ -103,44 +89,19 @@ export type RepoForge = (typeof RepoForge)[keyof typeof RepoForge];
103
89
  * rather than percentages, because "2 GB free of 8" and "2 GB free of 64" are different worlds.
104
90
  */
105
91
  export declare const MachineSnapshotSchema: z.ZodObject<{
106
- /** Resident set size of the daemon itself — our footprint, the one we can actually fix. */
107
92
  rssMb: z.ZodNumber;
108
93
  heapUsedMb: z.ZodNumber;
109
- /** Free and total system memory. A machine at 200 MB free explains a lot of otherwise-weird bugs. */
110
94
  freeMemMb: z.ZodNumber;
111
95
  totalMemMb: z.ZodNumber;
112
- /** 1-minute load average, ×100 so it stays an integer. Zero on Windows, which does not report it. */
113
96
  load1x100: z.ZodNumber;
114
97
  cpuCount: z.ZodNumber;
115
- }, "strip", z.ZodTypeAny, {
116
- rssMb: number;
117
- heapUsedMb: number;
118
- freeMemMb: number;
119
- totalMemMb: number;
120
- load1x100: number;
121
- cpuCount: number;
122
- }, {
123
- rssMb: number;
124
- heapUsedMb: number;
125
- freeMemMb: number;
126
- totalMemMb: number;
127
- load1x100: number;
128
- cpuCount: number;
129
- }>;
98
+ }, z.core.$strip>;
130
99
  export type MachineSnapshot = z.infer<typeof MachineSnapshotSchema>;
131
100
  /** Per-tool wall-clock. `count` lives in `toolCounts`; these are the two numbers it does not carry. */
132
101
  export declare const ToolTimingSchema: z.ZodObject<{
133
- /** Total ms spent inside this tool. Divided by its count, the average; summed, the time in Reticle. */
134
102
  totalMs: z.ZodNumber;
135
- /** The single worst call. An average hides the 30-second outlier that made someone give up. */
136
103
  maxMs: z.ZodNumber;
137
- }, "strip", z.ZodTypeAny, {
138
- totalMs: number;
139
- maxMs: number;
140
- }, {
141
- totalMs: number;
142
- maxMs: number;
143
- }>;
104
+ }, z.core.$strip>;
144
105
  export type ToolTiming = z.infer<typeof ToolTimingSchema>;
145
106
  /**
146
107
  * Attempts, successes and failure reasons for one kind of connection.
@@ -153,17 +114,8 @@ export type ToolTiming = z.infer<typeof ToolTimingSchema>;
153
114
  export declare const ConnectionStatsSchema: z.ZodObject<{
154
115
  attempts: z.ZodNumber;
155
116
  successes: z.ZodNumber;
156
- /** Failure reasons with counts — our own classified vocabulary, never a raw error string. */
157
117
  failures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
158
- }, "strip", z.ZodTypeAny, {
159
- attempts: number;
160
- successes: number;
161
- failures?: Record<string, number> | undefined;
162
- }, {
163
- attempts: number;
164
- successes: number;
165
- failures?: Record<string, number> | undefined;
166
- }>;
118
+ }, z.core.$strip>;
167
119
  export type ConnectionStats = z.infer<typeof ConnectionStatsSchema>;
168
120
  /**
169
121
  * Why a browser/lease connection failed, classified into causes somebody can act on.
@@ -194,362 +146,86 @@ export type ConnectFailure = (typeof ConnectFailure)[keyof typeof ConnectFailure
194
146
  * happened. Counts, never payloads: no arguments, no results, no selectors.
195
147
  */
196
148
  export declare const SessionSummarySchema: z.ZodObject<{
197
- /** How long the daemon was up, ms. */
198
149
  durationMs: z.ZodNumber;
199
- /** Total MCP tool calls served. */
200
150
  toolCalls: z.ZodNumber;
201
- /**
202
- * Calls per tool name — `{ "reticle_act": 40 }`. Tool names are a fixed, low-cardinality set
203
- * defined in this repository, so this is safe to send whole and is queryable with JSONExtract.
204
- */
205
151
  toolCounts: z.ZodRecord<z.ZodString, z.ZodNumber>;
206
- /** Tool calls that ended in an error, and the distinct error shapes behind them. */
207
152
  toolErrors: z.ZodNumber;
208
- /**
209
- * The distinct error shapes seen, with counts, messages-with-variables-stripped, and the tool that
210
- * produced each. Bounded, so a pathological loop cannot grow it without limit.
211
- */
212
153
  errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
213
- /** Stable group key — the same defect from any machine shares it. */
214
154
  fingerprint: z.ZodString;
215
- /** How many times it happened this session. */
216
155
  count: z.ZodNumber;
217
- /** The message with every variable part stripped. The dictionary entry for the fingerprint. */
218
156
  message: z.ZodString;
219
- /** Which tool produced it — the same message from two tools is usually two different bugs. */
220
157
  tool: z.ZodOptional<z.ZodString>;
221
- }, "strip", z.ZodTypeAny, {
222
- message: string;
223
- count: number;
224
- fingerprint: string;
225
- tool?: string | undefined;
226
- }, {
227
- message: string;
228
- count: number;
229
- fingerprint: string;
230
- tool?: string | undefined;
231
- }>, "many">>;
232
- /**
233
- * Failures reported by the IN-PAGE half of Reticle. Half the product runs in the browser and had no
234
- * error reporting at all — every SDK catch block swallowed silently, so a broken observer just made
235
- * the product quieter and nobody found out.
236
- */
158
+ }, z.core.$strip>>>;
237
159
  sdkFailures: z.ZodOptional<z.ZodNumber>;
238
- /** The distinct SDK failure shapes, with the module that reported each. */
239
160
  sdkErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
240
- /** Stable group key — the same defect from any machine shares it. */
241
161
  fingerprint: z.ZodString;
242
- /** How many times it happened this session. */
243
162
  count: z.ZodNumber;
244
- /** The message with every variable part stripped. The dictionary entry for the fingerprint. */
245
163
  message: z.ZodString;
246
- /** Which tool produced it — the same message from two tools is usually two different bugs. */
247
164
  tool: z.ZodOptional<z.ZodString>;
248
- }, "strip", z.ZodTypeAny, {
249
- message: string;
250
- count: number;
251
- fingerprint: string;
252
- tool?: string | undefined;
253
- }, {
254
- message: string;
255
- count: number;
256
- fingerprint: string;
257
- tool?: string | undefined;
258
- }>, "many">>;
259
- /** Verifications that produced a verdict during the session. */
165
+ }, z.core.$strip>>>;
260
166
  verifications: z.ZodNumber;
261
- /** Defects found in the app under test — the outcome number, not an activity number. */
262
167
  bugsFound: z.ZodOptional<z.ZodNumber>;
263
- /** Those bugs by kind, so the headline number can always be broken down rather than asserted. */
264
168
  bugKinds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
265
- /**
266
- * Which PARAMETERS agents actually passed, per tool: `{"reticle_act": {"ref": 40, "action:click": 31}}`.
267
- *
268
- * Names only, with one narrow exception for parameters whose values are enums defined here
269
- * (`action:click`). Never a raw value: `reticle_act`'s `args` carries the text being typed into the
270
- * app, which on a login form is a password. See argument-shape.ts for the allowlist.
271
- */
272
169
  toolParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
273
- /**
274
- * Browser/lease connections by kind, with attempts AND failures. Replaces a bare success counter
275
- * that could not express the only interesting outcome.
276
- */
277
170
  connections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
278
171
  attempts: z.ZodNumber;
279
172
  successes: z.ZodNumber;
280
- /** Failure reasons with counts — our own classified vocabulary, never a raw error string. */
281
173
  failures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
282
- }, "strip", z.ZodTypeAny, {
283
- attempts: number;
284
- successes: number;
285
- failures?: Record<string, number> | undefined;
286
- }, {
287
- attempts: number;
288
- successes: number;
289
- failures?: Record<string, number> | undefined;
290
- }>>>;
291
- /** Wall-clock per tool. With `toolCounts` this gives average, worst, and total time in Reticle. */
174
+ }, z.core.$strip>>>;
292
175
  toolTiming: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
293
- /** Total ms spent inside this tool. Divided by its count, the average; summed, the time in Reticle. */
294
176
  totalMs: z.ZodNumber;
295
- /** The single worst call. An average hides the 30-second outlier that made someone give up. */
296
177
  maxMs: z.ZodNumber;
297
- }, "strip", z.ZodTypeAny, {
298
- totalMs: number;
299
- maxMs: number;
300
- }, {
301
- totalMs: number;
302
- maxMs: number;
303
- }>>>;
304
- /**
305
- * Total ms spent inside tool calls. The headline answer to "how much time does verification cost",
306
- * and comparable against `durationMs` to see what fraction of a session Reticle was actually busy.
307
- */
178
+ }, z.core.$strip>>>;
308
179
  busyMs: z.ZodOptional<z.ZodNumber>;
309
- /**
310
- * Time spent waiting on the BROWSER, and how many commands that was. Subtracted from `busyMs` this
311
- * separates Reticle's own overhead from the app's — opposite fixes, previously indistinguishable.
312
- */
313
180
  browserMs: z.ZodOptional<z.ZodNumber>;
314
181
  browserCommands: z.ZodOptional<z.ZodNumber>;
315
- /** The most tool calls in flight at once — parallel agents, or one agent fanning out. */
316
182
  peakConcurrentTools: z.ZodOptional<z.ZodNumber>;
317
- /** Calls for a tool name that does not exist. A non-zero value means the surface is confusing. */
318
183
  unknownToolCalls: z.ZodOptional<z.ZodNumber>;
319
- /**
320
- * WHICH tools the agent reached for that do not exist, with counts.
321
- *
322
- * The count alone says "the surface confused someone" and can never say what they wanted. The name
323
- * is a feature request in the agent's own vocabulary — and it is a NAME, from Reticle's own tool
324
- * namespace, carrying no app data, so it is safe under the send-names-never-values rule.
325
- *
326
- * Bounded and truncated: a guess is a short identifier, and anything longer is not one.
327
- */
328
184
  unknownTools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
329
- /**
330
- * Tool calls that failed because there was no app to reach — no session connected, no session by
331
- * that id, or several with none named.
332
- *
333
- * The single biggest drop-off in the funnel, counted here rather than left to be unpacked out of
334
- * `errors[]` by a query. Absent when it never happened, so the field's PRESENCE is the signal.
335
- */
336
185
  noSessionErrors: z.ZodOptional<z.ZodNumber>;
337
- /**
338
- * Connection-level POST failures on the MCP proxy (`ENOBUFS`, `EMFILE`, `EADDRNOTAVAIL`,
339
- * `ECONNREFUSED` before any bytes were sent).
340
- *
341
- * These never produce `tool_refused` (the call never reached a handler) and never produce
342
- * `mcp_connection_lost` (the SSE stream is fine). Without this count, a keep-alive retry that
343
- * saves the call is indistinguishable from one that never fired. Absent when none happened.
344
- */
345
186
  postSocketFailures: z.ZodOptional<z.ZodNumber>;
346
- /**
347
- * Of those POST failures, how many a bounded retry then delivered.
348
- *
349
- * The numerator against `postSocketFailures`: a retry that quietly saves a call is a different
350
- * fact from a retry that never runs. Absent when none were saved.
351
- */
352
187
  postRetriesSaved: z.ZodOptional<z.ZodNumber>;
353
- /**
354
- * Longest back-to-back run per tool name — the shape of a retry loop.
355
- *
356
- * `toolCounts` reports five useful calls and five retries of one failing call identically, and
357
- * those are opposite facts: engagement versus an agent stuck. Only tools actually repeated appear.
358
- */
359
188
  consecutiveRepeats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
360
- /**
361
- * Actions driven with no verdict after them — the signature of the loop breaking mid-task.
362
- *
363
- * An agent that acts and then verifies is the product working; one that acts and wanders off has
364
- * either given up or lost the thread, and nothing distinguished the two before.
365
- */
366
189
  abandonedActions: z.ZodOptional<z.ZodNumber>;
367
- /** The machine at shutdown — was it starved while all this was happening? */
368
190
  machine: z.ZodOptional<z.ZodObject<{
369
- /** Resident set size of the daemon itself — our footprint, the one we can actually fix. */
370
191
  rssMb: z.ZodNumber;
371
192
  heapUsedMb: z.ZodNumber;
372
- /** Free and total system memory. A machine at 200 MB free explains a lot of otherwise-weird bugs. */
373
193
  freeMemMb: z.ZodNumber;
374
194
  totalMemMb: z.ZodNumber;
375
- /** 1-minute load average, ×100 so it stays an integer. Zero on Windows, which does not report it. */
376
195
  load1x100: z.ZodNumber;
377
196
  cpuCount: z.ZodNumber;
378
- }, "strip", z.ZodTypeAny, {
379
- rssMb: number;
380
- heapUsedMb: number;
381
- freeMemMb: number;
382
- totalMemMb: number;
383
- load1x100: number;
384
- cpuCount: number;
385
- }, {
386
- rssMb: number;
387
- heapUsedMb: number;
388
- freeMemMb: number;
389
- totalMemMb: number;
390
- load1x100: number;
391
- cpuCount: number;
392
- }>>;
393
- /** Distinct MCP clients seen (`claude-code`, `cursor`), so multi-agent use is visible. */
394
- clients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
395
- /**
396
- * Client name -> version. The other half of `clients`, and the half that explains regressions.
397
- *
398
- * MCP's `clientInfo` carries a name AND a version, and both are read at the handshake. A product
399
- * whose users are agents needs to slice every rate by which agent, on which build — a single
400
- * global figure hides the finding entirely.
401
- *
402
- * NOT the model: `clientInfo` has no concept of one, so the transport genuinely cannot report it.
403
- * Agents self-report it on feedback, which is the only mechanism there is.
404
- */
197
+ }, z.core.$strip>>;
198
+ clients: z.ZodOptional<z.ZodArray<z.ZodString>>;
405
199
  clientVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
406
- /**
407
- * Which tool surface was live. The 18-tool default and the 48-tool full surface are different
408
- * products from inside an agent's context window, and comparing outcomes across them is the only
409
- * way to tell whether the trim helps or hurts.
410
- */
411
200
  surface: z.ZodOptional<z.ZodString>;
412
- /**
413
- * How many times an app's SDK dialled this daemon. **Session-lifetime, never windowed.**
414
- *
415
- * Zero here is the single most diagnostic number in the payload: the daemon ran and no app ever
416
- * connected, which is a BROKEN INSTALL. Non-zero with no tool calls is the opposite problem — the
417
- * install works and the agent never asked. Without this field those two are the same row, and
418
- * they have opposite fixes.
419
- *
420
- * A counter rather than an event because the SDK reconnects on every page reload — an event per
421
- * connect would be high volume for a question one number answers.
422
- */
423
201
  appConnects: z.ZodOptional<z.ZodNumber>;
424
- /**
425
- * Milliseconds from daemon start to the FIRST app connecting. Absent when none ever did.
426
- *
427
- * Separates "the app was already running" from "the human had to go start it", which is the
428
- * difference between a smooth install and one that needed a second step nobody documented.
429
- */
430
202
  msToFirstApp: z.ZodOptional<z.ZodNumber>;
431
- /**
432
- * The SDK version of the last page that connected to this daemon, from its HELLO. Our own
433
- * release number, or `other`. Absent when no page announced one.
434
- */
435
203
  sdkVersion: z.ZodOptional<z.ZodString>;
436
- /**
437
- * Tool calls made before the first app connected. Session lifetime, like `appConnects`: read the
438
- * last row, never sum. Absent when there were none. With `appConnects: 0`, it is an agent that
439
- * worked against a daemon with no app, which sends no verdict and often no refusal.
440
- */
441
204
  toolCallsBeforeApp: z.ZodOptional<z.ZodNumber>;
442
- /**
443
- * What state the AGENT's work was in when the session ended. Absent on a periodic flush.
444
- *
445
- * Distinct from `exit`, which says why the PROCESS ended. A daemon can exit tidily on idle while
446
- * the agent's work was abandoned mid-task, and those are different findings.
447
- *
448
- * An agent can drive an app and never reach a verdict, and without this nothing could say whether
449
- * that was a product failure or a task that simply ended.
450
- *
451
- * Most of this is derivable at query time from `toolCalls` / `verifications` /
452
- * `abandonedActions`. The part that is NOT derivable is `client_left` — whether the agent
453
- * detached or simply stopped asking — which is why the daemon records it rather than leaving the
454
- * whole thing to a query.
455
- */
456
- endReason: z.ZodOptional<z.ZodEnum<["never_used", "explored", "abandoned", "verified", "client_left"]>>;
457
- /**
458
- * How often Reticle invited the agent to send feedback.
459
- *
460
- * The denominator for `feedback_submitted`: without it a low submission count cannot be told
461
- * apart from an invitation that never appeared.
462
- */
205
+ endReason: z.ZodOptional<z.ZodEnum<{
206
+ verified: "verified";
207
+ abandoned: "abandoned";
208
+ never_used: "never_used";
209
+ explored: "explored";
210
+ client_left: "client_left";
211
+ }>>;
463
212
  feedbackPrompted: z.ZodOptional<z.ZodNumber>;
464
- /**
465
- * Tool errors bucketed by WHOSE defect they are: `schema` (the grammar failed to explain itself),
466
- * `state` (the world moved), `refusal` (a deliberate no), `other` (a blind spot).
467
- *
468
- * `toolErrors` alone is one number over three failures with three different fixes, and only the
469
- * `schema` bucket is fixable by writing better descriptions.
470
- */
471
213
  errorClasses: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
472
- /**
473
- * Errors after which the agent's NEXT call succeeded — the message worked.
474
- *
475
- * The best measure of an error message is what the agent does next. `consecutiveRepeats` has the
476
- * loop and `errors[]` has the shape; this is the join. The most agent-specific metric in the
477
- * payload: a human would sigh, a log would show nothing.
478
- */
479
214
  errorsRecovered: z.ZodOptional<z.ZodNumber>;
480
- /** Errors whose very next call failed again — the message did not land. */
481
215
  errorsRepeated: z.ZodOptional<z.ZodNumber>;
482
- /**
483
- * Did this session ever produce a verdict? Absent on a periodic flush — nothing has ended yet.
484
- *
485
- * This is the release's headline metric and it was the one thing in the payload that had to be
486
- * COMPUTED rather than read: `verifications > 0` over the lifetime counters, which are windowed on
487
- * every other event in the stream, so the obvious query over `session_progress` answers a
488
- * different question and looks like it answers this one. A metric that requires a correct
489
- * subtraction to read is a metric that gets read wrong, and this one decides what the product is
490
- * allowed to claim.
491
- *
492
- * ALWAYS present on a final summary, including `false`: a session that drove an app and never
493
- * asked whether it worked is the finding, so absence and `false` must not look alike.
494
- */
495
216
  endedWithVerdict: z.ZodOptional<z.ZodBoolean>;
496
- /**
497
- * Session totals, on the FINAL summary only. Every scalar counter above (`toolCalls`,
498
- * `verifications`, `bugsFound`, ...) is windowed on EVERY event, the final one included, so the
499
- * counts summed across a session's `session_progress` + `daemon_stopped` rows are the session's
500
- * total. These are the same totals read off one row, under names a sum cannot pick up by mistake.
501
- */
502
217
  lifetimeToolCalls: z.ZodOptional<z.ZodNumber>;
503
218
  lifetimeVerifications: z.ZodOptional<z.ZodNumber>;
504
219
  lifetimeBugsFound: z.ZodOptional<z.ZodNumber>;
505
- /**
506
- * Was the update nudge actually delivered to an agent during this daemon run.
507
- *
508
- * The nudge is the entire adoption mechanism for a published fix — it rides the tool-result
509
- * envelope once per daemon process — and it emitted NOTHING, so the one question it exists to
510
- * answer cannot be asked without it. `versionChange.nudged` is the other half and arrives only
511
- * from machines that DID update; a machine pinned several releases back never fires
512
- * `version_changed` at all, which is exactly the cohort worth understanding.
513
- *
514
- * Crossed against this same installId's `version` on a later day it separates the two causes,
515
- * which need opposite fixes: `false` for run after run means the nudge is not firing for them (a
516
- * cache that never warms, a check that never returns, an offline machine); `true` for run after
517
- * run with a version that never moves means the agent is receiving it and dropping it out of the
518
- * envelope, or telling a human who says no.
519
- *
520
- * Reads the delivery flag, not a counter: the nudge is one-shot per process by design, so `true`
521
- * means "an agent was told", never "how often".
522
- */
523
220
  updateNudged: z.ZodOptional<z.ZodBoolean>;
524
- /**
525
- * The newer version this daemon knew about, when it knew about one.
526
- *
527
- * Reticle's own published version number, so it is low-cardinality and carries nothing about the
528
- * machine. Without it `updateNudged: false` is two facts at once — nothing was available, or
529
- * something was and the nudge did not fire — and only the second is a defect.
530
- */
531
221
  updateOffered: z.ZodOptional<z.ZodString>;
532
- /**
533
- * How people used the in-page HUD this window. All windowed, all absent when nobody touched it.
534
- *
535
- * `hudControls` counts presses per control id (a toggle as `id:on` / `id:off`), `hudViewMs` and
536
- * `hudPanelMs` time how the HUD sat (bubble / collapsed / expanded) and which panel was showing,
537
- * and `hudJourney` is the window's presses and view changes in order, cut at 60 with
538
- * `hudJourneyCut`. `hudSlides` counts how often each rail slide was shown, by its id. Every key
539
- * is a control or slide id Reticle authored: names, never values.
540
- */
541
222
  hudControls: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
542
223
  hudViewMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
543
224
  hudPanelMs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
544
225
  hudSlides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
545
- hudJourney: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
226
+ hudJourney: z.ZodOptional<z.ZodArray<z.ZodString>>;
546
227
  hudJourneyCut: z.ZodOptional<z.ZodLiteral<true>>;
547
- /**
548
- * The one-time platform and Harness advisories an agent was shown, by kind (`AgentNudgeKind`).
549
- * Whether a connect or an explore followed is read beside it: `cli_command_run` for `connect`, and
550
- * `toolCounts` / `toolParams` for `reticle_verify`'s explore. Windowed; absent when none was shown.
551
- */
552
- nudgesShown: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<{
228
+ nudgesShown: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
553
229
  /** Unlinked, after the first verdict: `reticle connect` keeps it and lets the Harness test the app. */
554
230
  readonly CONNECT: "connect";
555
231
  /** An older build's "close the gaps" advisory. No longer sent: the Harness has no coverage gate. */
@@ -558,190 +234,21 @@ export declare const SessionSummarySchema: z.ZodObject<{
558
234
  readonly SWITCH_ON: "switch_on";
559
235
  /** Harness on, and the agent is driving a long journey by hand: hand it to explore. */
560
236
  readonly EXPLORE: "explore";
561
- }>, z.ZodNumber>>;
562
- /**
563
- * Harness drives an older build refused for low coverage, by coverage bucket (`CoverageBucket`).
564
- * No longer sent: the Harness has no coverage gate. Kept so an older daemon's events still parse.
565
- */
566
- harnessRefusedCoverage: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<{
237
+ }> & z.core.$partial, z.ZodNumber>>;
238
+ harnessRefusedCoverage: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
567
239
  readonly B0: "0-19";
568
240
  readonly B20: "20-39";
569
241
  readonly B40: "40-59";
570
242
  readonly B60: "60-79";
571
243
  readonly B80: "80-100";
572
- }>, z.ZodNumber>>;
573
- /** Was this a clean shutdown, or a periodic flush of a still-running session? */
244
+ }> & z.core.$partial, z.ZodNumber>>;
574
245
  final: z.ZodBoolean;
575
- /**
576
- * WHY the daemon exited. Absent on a periodic flush (`final: false`) — nothing exited.
577
- *
578
- * Without this, a designed exit and a real failure are the same row. `sse_ended` — the stream the
579
- * daemon closes on its own scheduled idle shutdown — dominates `mcp_connection_lost`, so a metric
580
- * meant to say "the agent lost its tools" mostly counts the daemon going to sleep as designed, and
581
- * a genuine outage is invisible inside it.
582
- *
583
- * The daemon has always known this (`recordExitReason`); it simply never put it on an event. The
584
- * proxy that emits the outage cannot know it — it only sees a socket end — so the join is made
585
- * here, on the one event that fires at the same moment and already carries the session.
586
- */
587
- exit: z.ZodOptional<z.ZodEnum<["idle", "signal", "unknown"]>>;
588
- }, "strip", z.ZodTypeAny, {
589
- durationMs: number;
590
- toolCalls: number;
591
- toolCounts: Record<string, number>;
592
- toolErrors: number;
593
- verifications: number;
594
- final: boolean;
595
- surface?: string | undefined;
596
- sdkVersion?: string | undefined;
597
- errors?: {
598
- message: string;
599
- count: number;
600
- fingerprint: string;
601
- tool?: string | undefined;
602
- }[] | undefined;
603
- sdkFailures?: number | undefined;
604
- sdkErrors?: {
605
- message: string;
606
- count: number;
607
- fingerprint: string;
608
- tool?: string | undefined;
609
- }[] | undefined;
610
- bugsFound?: number | undefined;
611
- bugKinds?: Record<string, number> | undefined;
612
- toolParams?: Record<string, Record<string, number>> | undefined;
613
- connections?: Record<string, {
614
- attempts: number;
615
- successes: number;
616
- failures?: Record<string, number> | undefined;
617
- }> | undefined;
618
- toolTiming?: Record<string, {
619
- totalMs: number;
620
- maxMs: number;
621
- }> | undefined;
622
- busyMs?: number | undefined;
623
- browserMs?: number | undefined;
624
- browserCommands?: number | undefined;
625
- peakConcurrentTools?: number | undefined;
626
- unknownToolCalls?: number | undefined;
627
- unknownTools?: Record<string, number> | undefined;
628
- noSessionErrors?: number | undefined;
629
- postSocketFailures?: number | undefined;
630
- postRetriesSaved?: number | undefined;
631
- consecutiveRepeats?: Record<string, number> | undefined;
632
- abandonedActions?: number | undefined;
633
- machine?: {
634
- rssMb: number;
635
- heapUsedMb: number;
636
- freeMemMb: number;
637
- totalMemMb: number;
638
- load1x100: number;
639
- cpuCount: number;
640
- } | undefined;
641
- clients?: string[] | undefined;
642
- clientVersions?: Record<string, string> | undefined;
643
- appConnects?: number | undefined;
644
- msToFirstApp?: number | undefined;
645
- toolCallsBeforeApp?: number | undefined;
646
- endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
647
- feedbackPrompted?: number | undefined;
648
- errorClasses?: Record<string, number> | undefined;
649
- errorsRecovered?: number | undefined;
650
- errorsRepeated?: number | undefined;
651
- endedWithVerdict?: boolean | undefined;
652
- lifetimeToolCalls?: number | undefined;
653
- lifetimeVerifications?: number | undefined;
654
- lifetimeBugsFound?: number | undefined;
655
- updateNudged?: boolean | undefined;
656
- updateOffered?: string | undefined;
657
- hudControls?: Record<string, number> | undefined;
658
- hudViewMs?: Record<string, number> | undefined;
659
- hudPanelMs?: Record<string, number> | undefined;
660
- hudSlides?: Record<string, number> | undefined;
661
- hudJourney?: string[] | undefined;
662
- hudJourneyCut?: true | undefined;
663
- nudgesShown?: Partial<Record<"connect" | "close_gaps" | "switch_on" | "explore", number>> | undefined;
664
- harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
665
- exit?: "signal" | "idle" | "unknown" | undefined;
666
- }, {
667
- durationMs: number;
668
- toolCalls: number;
669
- toolCounts: Record<string, number>;
670
- toolErrors: number;
671
- verifications: number;
672
- final: boolean;
673
- surface?: string | undefined;
674
- sdkVersion?: string | undefined;
675
- errors?: {
676
- message: string;
677
- count: number;
678
- fingerprint: string;
679
- tool?: string | undefined;
680
- }[] | undefined;
681
- sdkFailures?: number | undefined;
682
- sdkErrors?: {
683
- message: string;
684
- count: number;
685
- fingerprint: string;
686
- tool?: string | undefined;
687
- }[] | undefined;
688
- bugsFound?: number | undefined;
689
- bugKinds?: Record<string, number> | undefined;
690
- toolParams?: Record<string, Record<string, number>> | undefined;
691
- connections?: Record<string, {
692
- attempts: number;
693
- successes: number;
694
- failures?: Record<string, number> | undefined;
695
- }> | undefined;
696
- toolTiming?: Record<string, {
697
- totalMs: number;
698
- maxMs: number;
699
- }> | undefined;
700
- busyMs?: number | undefined;
701
- browserMs?: number | undefined;
702
- browserCommands?: number | undefined;
703
- peakConcurrentTools?: number | undefined;
704
- unknownToolCalls?: number | undefined;
705
- unknownTools?: Record<string, number> | undefined;
706
- noSessionErrors?: number | undefined;
707
- postSocketFailures?: number | undefined;
708
- postRetriesSaved?: number | undefined;
709
- consecutiveRepeats?: Record<string, number> | undefined;
710
- abandonedActions?: number | undefined;
711
- machine?: {
712
- rssMb: number;
713
- heapUsedMb: number;
714
- freeMemMb: number;
715
- totalMemMb: number;
716
- load1x100: number;
717
- cpuCount: number;
718
- } | undefined;
719
- clients?: string[] | undefined;
720
- clientVersions?: Record<string, string> | undefined;
721
- appConnects?: number | undefined;
722
- msToFirstApp?: number | undefined;
723
- toolCallsBeforeApp?: number | undefined;
724
- endReason?: "verified" | "abandoned" | "never_used" | "explored" | "client_left" | undefined;
725
- feedbackPrompted?: number | undefined;
726
- errorClasses?: Record<string, number> | undefined;
727
- errorsRecovered?: number | undefined;
728
- errorsRepeated?: number | undefined;
729
- endedWithVerdict?: boolean | undefined;
730
- lifetimeToolCalls?: number | undefined;
731
- lifetimeVerifications?: number | undefined;
732
- lifetimeBugsFound?: number | undefined;
733
- updateNudged?: boolean | undefined;
734
- updateOffered?: string | undefined;
735
- hudControls?: Record<string, number> | undefined;
736
- hudViewMs?: Record<string, number> | undefined;
737
- hudPanelMs?: Record<string, number> | undefined;
738
- hudSlides?: Record<string, number> | undefined;
739
- hudJourney?: string[] | undefined;
740
- hudJourneyCut?: true | undefined;
741
- nudgesShown?: Partial<Record<"connect" | "close_gaps" | "switch_on" | "explore", number>> | undefined;
742
- harnessRefusedCoverage?: Partial<Record<"0-19" | "20-39" | "40-59" | "60-79" | "80-100", number>> | undefined;
743
- exit?: "signal" | "idle" | "unknown" | undefined;
744
- }>;
246
+ exit: z.ZodOptional<z.ZodEnum<{
247
+ signal: "signal";
248
+ idle: "idle";
249
+ unknown: "unknown";
250
+ }>>;
251
+ }, z.core.$strip>;
745
252
  export type SessionSummary = z.infer<typeof SessionSummarySchema>;
746
253
  /**
747
254
  * Coarse size buckets. A bucket answers "is this a toy or a real codebase" — which is the actual
@@ -798,28 +305,12 @@ export type StackUnknownReason = (typeof StackUnknownReason)[keyof typeof StackU
798
305
  * look identical in a DAU chart, and only one of them is retained.
799
306
  */
800
307
  export declare const ProjectProfileSchema: z.ZodObject<{
801
- /** Framework detected from package.json (`next`, `vite`, `vue`, `astro`, …). */
802
308
  stack: z.ZodOptional<z.ZodString>;
803
- /**
804
- * WHERE the stack was found — and therefore how much to trust the absence of one.
805
- *
806
- * `cwd` means the daemon was sitting in the app. `workspace` means it was not, and discovery had
807
- * to walk down to find it. The split is the diagnostic: it says how often the inference needs
808
- * help, which decides whether an agent-correction surface is worth building at all.
809
- *
810
- * Before discovery existed here, stack was detected on **none of the projects where Reticle was
811
- * demonstrably set up**, and none of the large ones either. A detector
812
- * that reads one directory reports nothing precisely where the real repos are.
813
- */
814
- stackSource: z.ZodOptional<z.ZodEnum<["cwd", "workspace"]>>;
815
- /**
816
- * Why there is no `stack`, when there is none. Present ONLY when `stack` is absent.
817
- *
818
- * Omitted rather than sent as a "resolved" member, so the field's presence is itself the signal —
819
- * the same rule the session counters follow. A member meaning "nothing went wrong" would be sent
820
- * on every successful profile and would have to be filtered out of every query that uses this.
821
- */
822
- stackUnknownReason: z.ZodOptional<z.ZodNativeEnum<{
309
+ stackSource: z.ZodOptional<z.ZodEnum<{
310
+ cwd: "cwd";
311
+ workspace: "workspace";
312
+ }>>;
313
+ stackUnknownReason: z.ZodOptional<z.ZodEnum<{
823
314
  /** No manifest here, and discovery found no app anywhere below. Usually a daemon started outside the project. */
824
315
  readonly NO_APP_FOUND: "no_app_found";
825
316
  /** A `package.json` HERE, read fine, naming no dependency in the table. The app is a stack we do not know. */
@@ -840,19 +331,16 @@ export declare const ProjectProfileSchema: z.ZodObject<{
840
331
  /** Workspace discovery threw — a permission error, most likely. Distinguished so it cannot masquerade as absence. */
841
332
  readonly DISCOVERY_FAILED: "discovery_failed";
842
333
  }>>;
843
- /** Its MAJOR version only — "breaks on React 19" is a work item, a full semver is a fingerprint. */
844
334
  stackMajor: z.ZodOptional<z.ZodNumber>;
845
- size: z.ZodOptional<z.ZodNativeEnum<{
335
+ size: z.ZodOptional<z.ZodEnum<{
846
336
  readonly TINY: "tiny";
847
337
  readonly SMALL: "small";
848
338
  readonly MEDIUM: "medium";
849
339
  readonly LARGE: "large";
850
340
  readonly HUGE: "huge";
851
341
  }>>;
852
- /** True when the repo has workspaces — monorepos exercise very different code paths. */
853
342
  monorepo: z.ZodOptional<z.ZodBoolean>;
854
- /** No git / git init but unpushed / pushed to a remote. */
855
- git: z.ZodNativeEnum<{
343
+ git: z.ZodEnum<{
856
344
  /** No `.git` anywhere above the project — Reticle is running in a plain directory. */
857
345
  readonly NONE: "none";
858
346
  /** `git init` was run, but there is no origin remote. Nobody else can be working on this copy. */
@@ -860,8 +348,7 @@ export declare const ProjectProfileSchema: z.ZodObject<{
860
348
  /** There is an origin remote — the project is pushed and can be shared. */
861
349
  readonly REMOTE: "remote";
862
350
  }>;
863
- /** Which forge, bucketed. Absent unless `git` is `remote`. Never the hostname of a private host. */
864
- forge: z.ZodOptional<z.ZodNativeEnum<{
351
+ forge: z.ZodOptional<z.ZodEnum<{
865
352
  readonly GITHUB: "github";
866
353
  readonly GITLAB: "gitlab";
867
354
  readonly BITBUCKET: "bitbucket";
@@ -870,97 +357,16 @@ export declare const ProjectProfileSchema: z.ZodObject<{
870
357
  readonly CODEBERG: "codeberg";
871
358
  readonly SELF_HOSTED: "self_hosted";
872
359
  }>>;
873
- /**
874
- * How long this project has existed, in whole WEEKS, from its first commit. Answers "are people
875
- * adopting Reticle on greenfield spikes or on mature codebases" — the single most useful thing to
876
- * know about who this is for. Weeks, not a date: a date plus a stack narrows to a specific repo.
877
- */
878
360
  ageWeeks: z.ZodOptional<z.ZodNumber>;
879
- /** Saved flows on disk — the deterministic-replay suite. 0 means replay was never adopted. */
880
361
  flowCount: z.ZodNumber;
881
- /** Saved text baselines. */
882
362
  baselineCount: z.ZodNumber;
883
- /** Saved pixel baselines — visual regression adoption. */
884
363
  visualBaselineCount: z.ZodNumber;
885
- /** Recorded verification-run artifacts — CI/OEM consumption. */
886
364
  runCount: z.ZodNumber;
887
- /** A git-checked `.reticle/contract.json` — the team declared a testable surface on purpose. */
888
365
  hasContract: z.ZodBoolean;
889
- /**
890
- * Has `reticle init` run in this project — a `.reticle.json` is present.
891
- *
892
- * The install has two halves and the failure side of the second one is a SET DIFFERENCE:
893
- * `daemon_started` minus `app_instrumented`, joined on `sessionId`. That difference says a daemon
894
- * ran with nothing wired and cannot say WHY, so the whole non-instrumented majority arrives as one
895
- * silence covering four different situations with four different owners.
896
- *
897
- * This is the first of the two bits that split it, and it is on `project_profiled` deliberately:
898
- * that event fires once per daemon start whatever happens afterwards, so it is the only place a
899
- * fact about a project is reported at all for an install that never instruments anything. `app_instrumented`
900
- * carries the same field and cannot answer this, because it only exists when the answer is moot.
901
- */
902
366
  initialized: z.ZodOptional<z.ZodBoolean>;
903
- /**
904
- * Has an app for this project EVER connected to Reticle — read from durable state, not from this
905
- * process.
906
- *
907
- * The second bit. `initialized: false` is "never ran init"; `initialized: true` with this `false`
908
- * is the cohort the funnel loses — the config was written and no page has ever reached the daemon,
909
- * which is the dev server that was never restarted, a plugin that never loaded, or a handshake
910
- * refused at the origin gate. `true` here with no `app_instrumented` this run is a working install
911
- * whose app simply is not up right now, and reading that as a loss is how the drop-off gets
912
- * over-stated.
913
- *
914
- * Scoped to project + port, like every other reader of this state, so it cannot borrow another
915
- * project's success on a shared daemon. OPTIONAL because an older sender has none; absent means
916
- * not measured, never `false`.
917
- */
918
367
  appConnectedBefore: z.ZodOptional<z.ZodBoolean>;
919
- /** Fail-to-pass bug capsules — the deepest feature in the product. */
920
368
  capsuleCount: z.ZodNumber;
921
- /** Which of Reticle's feature FAMILIES this project has ever touched. The activation metric. */
922
- featuresUsed: z.ZodArray<z.ZodString, "many">;
923
- /** 0–1: the fraction of shipped feature families in use. One number for "are they getting value". */
369
+ featuresUsed: z.ZodArray<z.ZodString>;
924
370
  featureDepth: z.ZodNumber;
925
- }, "strip", z.ZodTypeAny, {
926
- git: "none" | "local_only" | "remote";
927
- flowCount: number;
928
- baselineCount: number;
929
- visualBaselineCount: number;
930
- runCount: number;
931
- hasContract: boolean;
932
- capsuleCount: number;
933
- featuresUsed: string[];
934
- featureDepth: number;
935
- stack?: string | undefined;
936
- stackMajor?: number | undefined;
937
- size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
938
- stackSource?: "cwd" | "workspace" | undefined;
939
- stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
940
- monorepo?: boolean | undefined;
941
- forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
942
- ageWeeks?: number | undefined;
943
- initialized?: boolean | undefined;
944
- appConnectedBefore?: boolean | undefined;
945
- }, {
946
- git: "none" | "local_only" | "remote";
947
- flowCount: number;
948
- baselineCount: number;
949
- visualBaselineCount: number;
950
- runCount: number;
951
- hasContract: boolean;
952
- capsuleCount: number;
953
- featuresUsed: string[];
954
- featureDepth: number;
955
- stack?: string | undefined;
956
- stackMajor?: number | undefined;
957
- size?: "small" | "medium" | "tiny" | "large" | "huge" | undefined;
958
- stackSource?: "cwd" | "workspace" | undefined;
959
- stackUnknownReason?: "no_app_found" | "manifest_unrecognised" | "workspace_apps_unrecognised" | "workspace_root_no_apps" | "discovery_failed" | undefined;
960
- monorepo?: boolean | undefined;
961
- forge?: "github" | "gitlab" | "bitbucket" | "azure" | "sourcehut" | "codeberg" | "self_hosted" | undefined;
962
- ageWeeks?: number | undefined;
963
- initialized?: boolean | undefined;
964
- appConnectedBefore?: boolean | undefined;
965
- }>;
371
+ }, z.core.$strip>;
966
372
  export type ProjectProfile = z.infer<typeof ProjectProfileSchema>;