@reticlehq/core 2.4.0 → 2.5.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.
Files changed (44) hide show
  1. package/dist/consequence.d.ts +27 -0
  2. package/dist/consequence.js +26 -0
  3. package/dist/constants.d.ts +52 -0
  4. package/dist/constants.js +49 -0
  5. package/dist/contract-fingerprint.d.ts +29 -0
  6. package/dist/contract-fingerprint.js +56 -0
  7. package/dist/daemon-registry.js +1 -1
  8. package/dist/event-payloads.d.ts +48 -0
  9. package/dist/event-payloads.js +12 -1
  10. package/dist/flow-constants.d.ts +8 -0
  11. package/dist/flow-constants.js +12 -0
  12. package/dist/flow-types.d.ts +23 -0
  13. package/dist/index.d.ts +2 -0
  14. package/dist/index.js +2 -0
  15. package/dist/journal.d.ts +2 -2
  16. package/dist/messages.d.ts +48 -0
  17. package/dist/messages.js +20 -0
  18. package/dist/net.d.ts +40 -0
  19. package/dist/net.js +44 -0
  20. package/dist/project-id.d.ts +28 -0
  21. package/dist/project-id.js +51 -0
  22. package/dist/redaction.js +4 -4
  23. package/dist/schema/hello-message.json +8 -0
  24. package/dist/schema/reticle-message.json +8 -0
  25. package/dist/security.js +10 -5
  26. package/dist/source-constants.d.ts +6 -0
  27. package/dist/source-constants.js +6 -0
  28. package/dist/state-select.d.ts +14 -2
  29. package/dist/state-select.js +77 -14
  30. package/dist/telemetry-feedback.d.ts +32 -10
  31. package/dist/telemetry-feedback.js +21 -0
  32. package/dist/telemetry-session.d.ts +30 -0
  33. package/dist/telemetry-session.js +24 -0
  34. package/dist/telemetry.d.ts +491 -81
  35. package/dist/telemetry.js +188 -2
  36. package/dist/toon.d.ts +2 -1
  37. package/dist/toon.js +37 -37
  38. package/dist/types.d.ts +48 -0
  39. package/dist/types.js +12 -0
  40. package/dist/upgrade.js +1 -1
  41. package/dist/verification-run.d.ts +28 -28
  42. package/dist/verified-constants.d.ts +37 -0
  43. package/dist/verified-constants.js +36 -0
  44. package/package.json +5 -3
@@ -289,6 +289,30 @@ export declare const SessionSummarySchema: z.ZodObject<{
289
289
  peakConcurrentTools: z.ZodOptional<z.ZodNumber>;
290
290
  /** Calls for a tool name that does not exist. A non-zero value means our surface is confusing. */
291
291
  unknownToolCalls: z.ZodOptional<z.ZodNumber>;
292
+ /**
293
+ * Tool calls that failed because there was no app to reach — no session connected, no session by
294
+ * that id, or several with none named.
295
+ *
296
+ * The single biggest drop-off in the funnel, and it used to be reachable only by unpacking
297
+ * `errors[]` in HogQL. 74% of daemons never call a tool at all, and of the sessions that made
298
+ * exactly one call, most bounced on precisely this. Absent when it never happened, so the field's
299
+ * PRESENCE is the signal.
300
+ */
301
+ noSessionErrors: z.ZodOptional<z.ZodNumber>;
302
+ /**
303
+ * Longest back-to-back run per tool name — the shape of a retry loop.
304
+ *
305
+ * `toolCounts` reports five useful calls and five retries of one failing call identically, and
306
+ * those are opposite facts: engagement versus an agent stuck. Only tools actually repeated appear.
307
+ */
308
+ consecutiveRepeats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
309
+ /**
310
+ * Actions driven with no verdict after them — the signature of the loop breaking mid-task.
311
+ *
312
+ * An agent that acts and then verifies is the product working; one that acts and wanders off has
313
+ * either given up or lost the thread, and nothing distinguished the two before.
314
+ */
315
+ abandonedActions: z.ZodOptional<z.ZodNumber>;
292
316
  /** The machine at shutdown — was it starved while all this was happening? */
293
317
  machine: z.ZodOptional<z.ZodObject<{
294
318
  /** Resident set size of the daemon itself — our footprint, the one we can actually fix. */
@@ -356,6 +380,9 @@ export declare const SessionSummarySchema: z.ZodObject<{
356
380
  browserCommands?: number | undefined;
357
381
  peakConcurrentTools?: number | undefined;
358
382
  unknownToolCalls?: number | undefined;
383
+ noSessionErrors?: number | undefined;
384
+ consecutiveRepeats?: Record<string, number> | undefined;
385
+ abandonedActions?: number | undefined;
359
386
  machine?: {
360
387
  rssMb: number;
361
388
  heapUsedMb: number;
@@ -402,6 +429,9 @@ export declare const SessionSummarySchema: z.ZodObject<{
402
429
  browserCommands?: number | undefined;
403
430
  peakConcurrentTools?: number | undefined;
404
431
  unknownToolCalls?: number | undefined;
432
+ noSessionErrors?: number | undefined;
433
+ consecutiveRepeats?: Record<string, number> | undefined;
434
+ abandonedActions?: number | undefined;
405
435
  machine?: {
406
436
  rssMb: number;
407
437
  heapUsedMb: number;
@@ -182,6 +182,30 @@ export const SessionSummarySchema = z.object({
182
182
  peakConcurrentTools: z.number().int().nonnegative().optional(),
183
183
  /** Calls for a tool name that does not exist. A non-zero value means our surface is confusing. */
184
184
  unknownToolCalls: z.number().int().nonnegative().optional(),
185
+ /**
186
+ * Tool calls that failed because there was no app to reach — no session connected, no session by
187
+ * that id, or several with none named.
188
+ *
189
+ * The single biggest drop-off in the funnel, and it used to be reachable only by unpacking
190
+ * `errors[]` in HogQL. 74% of daemons never call a tool at all, and of the sessions that made
191
+ * exactly one call, most bounced on precisely this. Absent when it never happened, so the field's
192
+ * PRESENCE is the signal.
193
+ */
194
+ noSessionErrors: z.number().int().nonnegative().optional(),
195
+ /**
196
+ * Longest back-to-back run per tool name — the shape of a retry loop.
197
+ *
198
+ * `toolCounts` reports five useful calls and five retries of one failing call identically, and
199
+ * those are opposite facts: engagement versus an agent stuck. Only tools actually repeated appear.
200
+ */
201
+ consecutiveRepeats: z.record(z.number().int().positive()).optional(),
202
+ /**
203
+ * Actions driven with no verdict after them — the signature of the loop breaking mid-task.
204
+ *
205
+ * An agent that acts and then verifies is the product working; one that acts and wanders off has
206
+ * either given up or lost the thread, and nothing distinguished the two before.
207
+ */
208
+ abandonedActions: z.number().int().nonnegative().optional(),
185
209
  /** The machine at shutdown — was it starved while all this was happening? */
186
210
  machine: MachineSnapshotSchema.optional(),
187
211
  /** Distinct MCP clients seen (`claude-code`, `cursor`), so multi-agent use is visible. */