stitchkit 0.56.1 → 0.56.3

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 (67) hide show
  1. package/README.md +12 -3
  2. package/dist/agent-runtime/compaction.d.ts +33 -0
  3. package/dist/agent-runtime/compaction.d.ts.map +1 -0
  4. package/dist/agent-runtime/coordinator.d.ts +24 -0
  5. package/dist/agent-runtime/coordinator.d.ts.map +1 -0
  6. package/dist/agent-runtime/events.d.ts +454 -0
  7. package/dist/agent-runtime/events.d.ts.map +1 -0
  8. package/dist/agent-runtime/history.d.ts +11 -0
  9. package/dist/agent-runtime/history.d.ts.map +1 -0
  10. package/dist/agent-runtime/managed-tools.d.ts +18 -0
  11. package/dist/agent-runtime/managed-tools.d.ts.map +1 -0
  12. package/dist/agent-runtime/models.d.ts +51 -0
  13. package/dist/agent-runtime/models.d.ts.map +1 -0
  14. package/dist/agent-runtime/observability.d.ts +134 -0
  15. package/dist/agent-runtime/observability.d.ts.map +1 -0
  16. package/dist/agent-runtime/prompt.d.ts +50 -0
  17. package/dist/agent-runtime/prompt.d.ts.map +1 -0
  18. package/dist/agent-runtime/protocol.d.ts +16 -0
  19. package/dist/agent-runtime/protocol.d.ts.map +1 -0
  20. package/dist/agent-runtime/runtime.d.ts +132 -0
  21. package/dist/agent-runtime/runtime.d.ts.map +1 -0
  22. package/dist/agent-runtime/schemas.d.ts +470 -0
  23. package/dist/agent-runtime/schemas.d.ts.map +1 -0
  24. package/dist/agent-runtime/store.d.ts +905 -0
  25. package/dist/agent-runtime/store.d.ts.map +1 -0
  26. package/dist/agent-runtime/testing.d.ts +17 -0
  27. package/dist/agent-runtime/testing.d.ts.map +1 -0
  28. package/dist/agent-runtime-openrouter.d.ts +6 -0
  29. package/dist/agent-runtime-openrouter.d.ts.map +1 -0
  30. package/dist/agent-runtime-openrouter.js +46 -0
  31. package/dist/agent-runtime.d.ts +13 -0
  32. package/dist/agent-runtime.d.ts.map +1 -0
  33. package/dist/agent-runtime.js +1955 -0
  34. package/dist/cli.js +8 -5
  35. package/dist/index-0nc0cddp.js +178 -0
  36. package/dist/{index-6y759j86.js → index-1tkyng3g.js} +9 -57
  37. package/dist/{index-sm2tjx06.js → index-41wm56v0.js} +2 -2
  38. package/dist/index-6djpbnda.js +56 -0
  39. package/dist/{index-j3dem06f.js → index-7c0gkyvj.js} +5 -3
  40. package/dist/{index-75njxz7p.js → index-9zn9fb4e.js} +8 -6
  41. package/dist/{index-xy8fmh6w.js → index-f6pymtqe.js} +3 -3
  42. package/dist/{index-jcc611vh.js → index-gnvzyw0k.js} +2 -2
  43. package/dist/{index-qh4xevf5.js → index-mr617n62.js} +4 -2
  44. package/dist/{index-5r13htq1.js → index-ps5pxp3h.js} +1 -1
  45. package/dist/index-sa2mbwa7.js +336 -0
  46. package/dist/index-smpbdg6k.js +27 -0
  47. package/dist/{index-7eq9va6e.js → index-y2rb7dwx.js} +1 -27
  48. package/dist/{index-escqg10p.js → index-zk5zn2nh.js} +32 -334
  49. package/dist/internal/observability-sink.d.ts +26 -0
  50. package/dist/internal/observability-sink.d.ts.map +1 -0
  51. package/dist/node.js +6 -5
  52. package/dist/observability/audit.d.ts.map +1 -1
  53. package/dist/observability/index.js +15 -178
  54. package/dist/remote.js +4 -3
  55. package/dist/server/error-hook.d.ts +9 -7
  56. package/dist/server/error-hook.d.ts.map +1 -1
  57. package/dist/server/index.js +9 -7
  58. package/dist/testing.js +5 -3
  59. package/dist/tools/agent.d.ts.map +1 -1
  60. package/dist/tools/execute.d.ts +7 -0
  61. package/dist/tools/execute.d.ts.map +1 -1
  62. package/dist/tools.d.ts +2 -1
  63. package/dist/tools.d.ts.map +1 -1
  64. package/dist/tools.js +23 -12
  65. package/llms-full.txt +382 -10
  66. package/llms.txt +1 -0
  67. package/package.json +16 -3
@@ -0,0 +1,470 @@
1
+ import { z } from 'zod';
2
+ export declare const AgentRecordIdSchema: z.ZodString;
3
+ export declare const AgentRecordVersionSchema: z.ZodInt;
4
+ export declare const AgentTimestampSchema: z.ZodISODateTime;
5
+ export declare const AgentJsonObjectSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
6
+ export declare const AgentProviderEnvelopeSchema: z.ZodObject<{
7
+ schemaVersion: z.ZodInt;
8
+ provider: z.ZodString;
9
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
10
+ }, z.core.$strip>;
11
+ export type AgentProviderEnvelope = z.infer<typeof AgentProviderEnvelopeSchema>;
12
+ export declare const AgentTextPartSchema: z.ZodObject<{
13
+ type: z.ZodLiteral<"text">;
14
+ text: z.ZodString;
15
+ }, z.core.$strip>;
16
+ export declare const AgentReasoningPartSchema: z.ZodObject<{
17
+ type: z.ZodLiteral<"reasoning">;
18
+ text: z.ZodString;
19
+ provider: z.ZodOptional<z.ZodObject<{
20
+ schemaVersion: z.ZodInt;
21
+ provider: z.ZodString;
22
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>;
25
+ export declare const AgentFilePartSchema: z.ZodObject<{
26
+ type: z.ZodLiteral<"file">;
27
+ mediaType: z.ZodString;
28
+ reference: z.ZodString;
29
+ filename: z.ZodOptional<z.ZodString>;
30
+ }, z.core.$strip>;
31
+ export declare const AgentSourcePartSchema: z.ZodObject<{
32
+ type: z.ZodLiteral<"source">;
33
+ sourceId: z.ZodString;
34
+ url: z.ZodOptional<z.ZodURL>;
35
+ title: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>;
37
+ export declare const AgentToolCallPartSchema: z.ZodObject<{
38
+ type: z.ZodLiteral<"tool-call">;
39
+ callId: z.ZodString;
40
+ toolName: z.ZodString;
41
+ input: z.ZodJSONSchema;
42
+ provider: z.ZodOptional<z.ZodObject<{
43
+ schemaVersion: z.ZodInt;
44
+ provider: z.ZodString;
45
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
46
+ }, z.core.$strip>>;
47
+ }, z.core.$strip>;
48
+ export declare const AgentToolResultPartSchema: z.ZodObject<{
49
+ type: z.ZodLiteral<"tool-result">;
50
+ callId: z.ZodString;
51
+ toolName: z.ZodString;
52
+ outcome: z.ZodEnum<{
53
+ error: "error";
54
+ interrupted: "interrupted";
55
+ success: "success";
56
+ }>;
57
+ output: z.ZodOptional<z.ZodJSONSchema>;
58
+ }, z.core.$strip>;
59
+ export declare const AgentOpaquePartSchema: z.ZodObject<{
60
+ type: z.ZodLiteral<"provider">;
61
+ envelope: z.ZodObject<{
62
+ schemaVersion: z.ZodInt;
63
+ provider: z.ZodString;
64
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
65
+ }, z.core.$strip>;
66
+ }, z.core.$strip>;
67
+ export declare const AgentControlPartSchema: z.ZodObject<{
68
+ type: z.ZodLiteral<"control">;
69
+ reason: z.ZodEnum<{
70
+ "run-interrupted": "run-interrupted";
71
+ "stale-run": "stale-run";
72
+ }>;
73
+ }, z.core.$strip>;
74
+ export declare const AgentMessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
75
+ type: z.ZodLiteral<"text">;
76
+ text: z.ZodString;
77
+ }, z.core.$strip>, z.ZodObject<{
78
+ type: z.ZodLiteral<"reasoning">;
79
+ text: z.ZodString;
80
+ provider: z.ZodOptional<z.ZodObject<{
81
+ schemaVersion: z.ZodInt;
82
+ provider: z.ZodString;
83
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
84
+ }, z.core.$strip>>;
85
+ }, z.core.$strip>, z.ZodObject<{
86
+ type: z.ZodLiteral<"file">;
87
+ mediaType: z.ZodString;
88
+ reference: z.ZodString;
89
+ filename: z.ZodOptional<z.ZodString>;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ type: z.ZodLiteral<"source">;
92
+ sourceId: z.ZodString;
93
+ url: z.ZodOptional<z.ZodURL>;
94
+ title: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ type: z.ZodLiteral<"tool-call">;
97
+ callId: z.ZodString;
98
+ toolName: z.ZodString;
99
+ input: z.ZodJSONSchema;
100
+ provider: z.ZodOptional<z.ZodObject<{
101
+ schemaVersion: z.ZodInt;
102
+ provider: z.ZodString;
103
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
104
+ }, z.core.$strip>>;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ type: z.ZodLiteral<"tool-result">;
107
+ callId: z.ZodString;
108
+ toolName: z.ZodString;
109
+ outcome: z.ZodEnum<{
110
+ error: "error";
111
+ interrupted: "interrupted";
112
+ success: "success";
113
+ }>;
114
+ output: z.ZodOptional<z.ZodJSONSchema>;
115
+ }, z.core.$strip>, z.ZodObject<{
116
+ type: z.ZodLiteral<"provider">;
117
+ envelope: z.ZodObject<{
118
+ schemaVersion: z.ZodInt;
119
+ provider: z.ZodString;
120
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
121
+ }, z.core.$strip>;
122
+ }, z.core.$strip>, z.ZodObject<{
123
+ type: z.ZodLiteral<"control">;
124
+ reason: z.ZodEnum<{
125
+ "run-interrupted": "run-interrupted";
126
+ "stale-run": "stale-run";
127
+ }>;
128
+ }, z.core.$strip>], "type">;
129
+ export type AgentMessagePart = z.infer<typeof AgentMessagePartSchema>;
130
+ export declare const AgentMessageRoleSchema: z.ZodEnum<{
131
+ assistant: "assistant";
132
+ summary: "summary";
133
+ system: "system";
134
+ user: "user";
135
+ }>;
136
+ export declare const AgentMessageStatusSchema: z.ZodEnum<{
137
+ committed: "committed";
138
+ completed: "completed";
139
+ failed: "failed";
140
+ interrupted: "interrupted";
141
+ streaming: "streaming";
142
+ }>;
143
+ export declare const AgentMessageSchema: z.ZodObject<{
144
+ schemaVersion: z.ZodLiteral<1>;
145
+ id: z.ZodString;
146
+ conversationId: z.ZodString;
147
+ runId: z.ZodOptional<z.ZodString>;
148
+ role: z.ZodEnum<{
149
+ assistant: "assistant";
150
+ summary: "summary";
151
+ system: "system";
152
+ user: "user";
153
+ }>;
154
+ status: z.ZodEnum<{
155
+ committed: "committed";
156
+ completed: "completed";
157
+ failed: "failed";
158
+ interrupted: "interrupted";
159
+ streaming: "streaming";
160
+ }>;
161
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
162
+ type: z.ZodLiteral<"text">;
163
+ text: z.ZodString;
164
+ }, z.core.$strip>, z.ZodObject<{
165
+ type: z.ZodLiteral<"reasoning">;
166
+ text: z.ZodString;
167
+ provider: z.ZodOptional<z.ZodObject<{
168
+ schemaVersion: z.ZodInt;
169
+ provider: z.ZodString;
170
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
171
+ }, z.core.$strip>>;
172
+ }, z.core.$strip>, z.ZodObject<{
173
+ type: z.ZodLiteral<"file">;
174
+ mediaType: z.ZodString;
175
+ reference: z.ZodString;
176
+ filename: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$strip>, z.ZodObject<{
178
+ type: z.ZodLiteral<"source">;
179
+ sourceId: z.ZodString;
180
+ url: z.ZodOptional<z.ZodURL>;
181
+ title: z.ZodOptional<z.ZodString>;
182
+ }, z.core.$strip>, z.ZodObject<{
183
+ type: z.ZodLiteral<"tool-call">;
184
+ callId: z.ZodString;
185
+ toolName: z.ZodString;
186
+ input: z.ZodJSONSchema;
187
+ provider: z.ZodOptional<z.ZodObject<{
188
+ schemaVersion: z.ZodInt;
189
+ provider: z.ZodString;
190
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
191
+ }, z.core.$strip>>;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ type: z.ZodLiteral<"tool-result">;
194
+ callId: z.ZodString;
195
+ toolName: z.ZodString;
196
+ outcome: z.ZodEnum<{
197
+ error: "error";
198
+ interrupted: "interrupted";
199
+ success: "success";
200
+ }>;
201
+ output: z.ZodOptional<z.ZodJSONSchema>;
202
+ }, z.core.$strip>, z.ZodObject<{
203
+ type: z.ZodLiteral<"provider">;
204
+ envelope: z.ZodObject<{
205
+ schemaVersion: z.ZodInt;
206
+ provider: z.ZodString;
207
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
208
+ }, z.core.$strip>;
209
+ }, z.core.$strip>, z.ZodObject<{
210
+ type: z.ZodLiteral<"control">;
211
+ reason: z.ZodEnum<{
212
+ "run-interrupted": "run-interrupted";
213
+ "stale-run": "stale-run";
214
+ }>;
215
+ }, z.core.$strip>], "type">>;
216
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
217
+ createdAt: z.ZodISODateTime;
218
+ updatedAt: z.ZodISODateTime;
219
+ }, z.core.$strip>;
220
+ export type AgentMessage = z.infer<typeof AgentMessageSchema>;
221
+ export declare const AgentRunStateSchema: z.ZodEnum<{
222
+ abandoned: "abandoned";
223
+ cancelled: "cancelled";
224
+ completed: "completed";
225
+ failed: "failed";
226
+ interrupt_requested: "interrupt_requested";
227
+ interrupted: "interrupted";
228
+ queued: "queued";
229
+ running: "running";
230
+ }>;
231
+ export declare const AgentTerminalReasonSchema: z.ZodEnum<{
232
+ abandoned: "abandoned";
233
+ cancelled: "cancelled";
234
+ interrupted: "interrupted";
235
+ policy_stop: "policy_stop";
236
+ provider_failure: "provider_failure";
237
+ shutdown: "shutdown";
238
+ success: "success";
239
+ timeout: "timeout";
240
+ tool_failure: "tool_failure";
241
+ }>;
242
+ export type AgentTerminalReason = z.infer<typeof AgentTerminalReasonSchema>;
243
+ export declare const AgentRunSchema: z.ZodObject<{
244
+ schemaVersion: z.ZodLiteral<1>;
245
+ id: z.ZodString;
246
+ conversationId: z.ZodString;
247
+ inputMessageIds: z.ZodArray<z.ZodString>;
248
+ assistantMessageId: z.ZodString;
249
+ state: z.ZodEnum<{
250
+ abandoned: "abandoned";
251
+ cancelled: "cancelled";
252
+ completed: "completed";
253
+ failed: "failed";
254
+ interrupt_requested: "interrupt_requested";
255
+ interrupted: "interrupted";
256
+ queued: "queued";
257
+ running: "running";
258
+ }>;
259
+ revision: z.ZodInt;
260
+ ownerId: z.ZodOptional<z.ZodString>;
261
+ terminalReason: z.ZodOptional<z.ZodEnum<{
262
+ abandoned: "abandoned";
263
+ cancelled: "cancelled";
264
+ interrupted: "interrupted";
265
+ policy_stop: "policy_stop";
266
+ provider_failure: "provider_failure";
267
+ shutdown: "shutdown";
268
+ success: "success";
269
+ timeout: "timeout";
270
+ tool_failure: "tool_failure";
271
+ }>>;
272
+ terminalPolicyName: z.ZodOptional<z.ZodString>;
273
+ createdAt: z.ZodISODateTime;
274
+ updatedAt: z.ZodISODateTime;
275
+ }, z.core.$strip>;
276
+ export type AgentRun = z.infer<typeof AgentRunSchema>;
277
+ export declare const AgentSnapshotSchema: z.ZodObject<{
278
+ schemaVersion: z.ZodLiteral<1>;
279
+ conversationId: z.ZodString;
280
+ version: z.ZodInt;
281
+ messages: z.ZodArray<z.ZodObject<{
282
+ schemaVersion: z.ZodLiteral<1>;
283
+ id: z.ZodString;
284
+ conversationId: z.ZodString;
285
+ runId: z.ZodOptional<z.ZodString>;
286
+ role: z.ZodEnum<{
287
+ assistant: "assistant";
288
+ summary: "summary";
289
+ system: "system";
290
+ user: "user";
291
+ }>;
292
+ status: z.ZodEnum<{
293
+ committed: "committed";
294
+ completed: "completed";
295
+ failed: "failed";
296
+ interrupted: "interrupted";
297
+ streaming: "streaming";
298
+ }>;
299
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
300
+ type: z.ZodLiteral<"text">;
301
+ text: z.ZodString;
302
+ }, z.core.$strip>, z.ZodObject<{
303
+ type: z.ZodLiteral<"reasoning">;
304
+ text: z.ZodString;
305
+ provider: z.ZodOptional<z.ZodObject<{
306
+ schemaVersion: z.ZodInt;
307
+ provider: z.ZodString;
308
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
309
+ }, z.core.$strip>>;
310
+ }, z.core.$strip>, z.ZodObject<{
311
+ type: z.ZodLiteral<"file">;
312
+ mediaType: z.ZodString;
313
+ reference: z.ZodString;
314
+ filename: z.ZodOptional<z.ZodString>;
315
+ }, z.core.$strip>, z.ZodObject<{
316
+ type: z.ZodLiteral<"source">;
317
+ sourceId: z.ZodString;
318
+ url: z.ZodOptional<z.ZodURL>;
319
+ title: z.ZodOptional<z.ZodString>;
320
+ }, z.core.$strip>, z.ZodObject<{
321
+ type: z.ZodLiteral<"tool-call">;
322
+ callId: z.ZodString;
323
+ toolName: z.ZodString;
324
+ input: z.ZodJSONSchema;
325
+ provider: z.ZodOptional<z.ZodObject<{
326
+ schemaVersion: z.ZodInt;
327
+ provider: z.ZodString;
328
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
329
+ }, z.core.$strip>>;
330
+ }, z.core.$strip>, z.ZodObject<{
331
+ type: z.ZodLiteral<"tool-result">;
332
+ callId: z.ZodString;
333
+ toolName: z.ZodString;
334
+ outcome: z.ZodEnum<{
335
+ error: "error";
336
+ interrupted: "interrupted";
337
+ success: "success";
338
+ }>;
339
+ output: z.ZodOptional<z.ZodJSONSchema>;
340
+ }, z.core.$strip>, z.ZodObject<{
341
+ type: z.ZodLiteral<"provider">;
342
+ envelope: z.ZodObject<{
343
+ schemaVersion: z.ZodInt;
344
+ provider: z.ZodString;
345
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
346
+ }, z.core.$strip>;
347
+ }, z.core.$strip>, z.ZodObject<{
348
+ type: z.ZodLiteral<"control">;
349
+ reason: z.ZodEnum<{
350
+ "run-interrupted": "run-interrupted";
351
+ "stale-run": "stale-run";
352
+ }>;
353
+ }, z.core.$strip>], "type">>;
354
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
355
+ createdAt: z.ZodISODateTime;
356
+ updatedAt: z.ZodISODateTime;
357
+ }, z.core.$strip>>;
358
+ runs: z.ZodArray<z.ZodObject<{
359
+ schemaVersion: z.ZodLiteral<1>;
360
+ id: z.ZodString;
361
+ conversationId: z.ZodString;
362
+ inputMessageIds: z.ZodArray<z.ZodString>;
363
+ assistantMessageId: z.ZodString;
364
+ state: z.ZodEnum<{
365
+ abandoned: "abandoned";
366
+ cancelled: "cancelled";
367
+ completed: "completed";
368
+ failed: "failed";
369
+ interrupt_requested: "interrupt_requested";
370
+ interrupted: "interrupted";
371
+ queued: "queued";
372
+ running: "running";
373
+ }>;
374
+ revision: z.ZodInt;
375
+ ownerId: z.ZodOptional<z.ZodString>;
376
+ terminalReason: z.ZodOptional<z.ZodEnum<{
377
+ abandoned: "abandoned";
378
+ cancelled: "cancelled";
379
+ interrupted: "interrupted";
380
+ policy_stop: "policy_stop";
381
+ provider_failure: "provider_failure";
382
+ shutdown: "shutdown";
383
+ success: "success";
384
+ timeout: "timeout";
385
+ tool_failure: "tool_failure";
386
+ }>>;
387
+ terminalPolicyName: z.ZodOptional<z.ZodString>;
388
+ createdAt: z.ZodISODateTime;
389
+ updatedAt: z.ZodISODateTime;
390
+ }, z.core.$strip>>;
391
+ }, z.core.$strip>;
392
+ export type AgentSnapshot = z.infer<typeof AgentSnapshotSchema>;
393
+ export declare const AgentUsageValueSchema: z.ZodObject<{
394
+ value: z.ZodOptional<z.ZodNumber>;
395
+ provenance: z.ZodEnum<{
396
+ computed: "computed";
397
+ estimated: "estimated";
398
+ "provider-reported": "provider-reported";
399
+ unavailable: "unavailable";
400
+ }>;
401
+ }, z.core.$strip>;
402
+ export declare const AgentCostValueSchema: z.ZodObject<{
403
+ value: z.ZodOptional<z.ZodNumber>;
404
+ currency: z.ZodOptional<z.ZodString>;
405
+ provenance: z.ZodEnum<{
406
+ computed: "computed";
407
+ estimated: "estimated";
408
+ "provider-reported": "provider-reported";
409
+ unavailable: "unavailable";
410
+ }>;
411
+ }, z.core.$strip>;
412
+ export declare const AgentUsageSchema: z.ZodObject<{
413
+ inputTokens: z.ZodObject<{
414
+ value: z.ZodOptional<z.ZodNumber>;
415
+ provenance: z.ZodEnum<{
416
+ computed: "computed";
417
+ estimated: "estimated";
418
+ "provider-reported": "provider-reported";
419
+ unavailable: "unavailable";
420
+ }>;
421
+ }, z.core.$strip>;
422
+ outputTokens: z.ZodObject<{
423
+ value: z.ZodOptional<z.ZodNumber>;
424
+ provenance: z.ZodEnum<{
425
+ computed: "computed";
426
+ estimated: "estimated";
427
+ "provider-reported": "provider-reported";
428
+ unavailable: "unavailable";
429
+ }>;
430
+ }, z.core.$strip>;
431
+ reasoningTokens: z.ZodOptional<z.ZodObject<{
432
+ value: z.ZodOptional<z.ZodNumber>;
433
+ provenance: z.ZodEnum<{
434
+ computed: "computed";
435
+ estimated: "estimated";
436
+ "provider-reported": "provider-reported";
437
+ unavailable: "unavailable";
438
+ }>;
439
+ }, z.core.$strip>>;
440
+ cacheReadTokens: z.ZodOptional<z.ZodObject<{
441
+ value: z.ZodOptional<z.ZodNumber>;
442
+ provenance: z.ZodEnum<{
443
+ computed: "computed";
444
+ estimated: "estimated";
445
+ "provider-reported": "provider-reported";
446
+ unavailable: "unavailable";
447
+ }>;
448
+ }, z.core.$strip>>;
449
+ cacheWriteTokens: z.ZodOptional<z.ZodObject<{
450
+ value: z.ZodOptional<z.ZodNumber>;
451
+ provenance: z.ZodEnum<{
452
+ computed: "computed";
453
+ estimated: "estimated";
454
+ "provider-reported": "provider-reported";
455
+ unavailable: "unavailable";
456
+ }>;
457
+ }, z.core.$strip>>;
458
+ cost: z.ZodOptional<z.ZodObject<{
459
+ value: z.ZodOptional<z.ZodNumber>;
460
+ currency: z.ZodOptional<z.ZodString>;
461
+ provenance: z.ZodEnum<{
462
+ computed: "computed";
463
+ estimated: "estimated";
464
+ "provider-reported": "provider-reported";
465
+ unavailable: "unavailable";
466
+ }>;
467
+ }, z.core.$strip>>;
468
+ }, z.core.$strip>;
469
+ export type AgentUsage = z.infer<typeof AgentUsageSchema>;
470
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,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