@inf-monkeys-tech/monkeys 1.0.8 → 1.0.10

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.
@@ -0,0 +1,730 @@
1
+ import { z } from 'zod';
2
+ export declare const AgentModeSchema: z.ZodEnum<{
3
+ chatbot: "chatbot";
4
+ agent: "agent";
5
+ }>;
6
+ export declare const AgentSessionCapabilitySchema: z.ZodEnum<{
7
+ tools: "tools";
8
+ text: "text";
9
+ reasoning: "reasoning";
10
+ plan: "plan";
11
+ tasks: "tasks";
12
+ mcp: "mcp";
13
+ shell: "shell";
14
+ fileChange: "fileChange";
15
+ skills: "skills";
16
+ approval: "approval";
17
+ artifacts: "artifacts";
18
+ usage: "usage";
19
+ resume: "resume";
20
+ diff: "diff";
21
+ workspaceFiles: "workspaceFiles";
22
+ terminal: "terminal";
23
+ testResults: "testResults";
24
+ }>;
25
+ export declare const AgentSessionCapabilitiesSchema: z.ZodObject<{
26
+ text: z.ZodDefault<z.ZodBoolean>;
27
+ reasoning: z.ZodDefault<z.ZodBoolean>;
28
+ plan: z.ZodDefault<z.ZodBoolean>;
29
+ tasks: z.ZodDefault<z.ZodBoolean>;
30
+ tools: z.ZodDefault<z.ZodBoolean>;
31
+ mcp: z.ZodDefault<z.ZodBoolean>;
32
+ shell: z.ZodDefault<z.ZodBoolean>;
33
+ fileChange: z.ZodDefault<z.ZodBoolean>;
34
+ skills: z.ZodDefault<z.ZodBoolean>;
35
+ approval: z.ZodDefault<z.ZodBoolean>;
36
+ artifacts: z.ZodDefault<z.ZodBoolean>;
37
+ usage: z.ZodDefault<z.ZodBoolean>;
38
+ resume: z.ZodDefault<z.ZodBoolean>;
39
+ diff: z.ZodDefault<z.ZodBoolean>;
40
+ workspaceFiles: z.ZodDefault<z.ZodBoolean>;
41
+ terminal: z.ZodDefault<z.ZodBoolean>;
42
+ testResults: z.ZodDefault<z.ZodBoolean>;
43
+ }, z.core.$strict>;
44
+ export declare const AgentSessionSnapshotSchema: z.ZodObject<{
45
+ mode: z.ZodEnum<{
46
+ chatbot: "chatbot";
47
+ agent: "agent";
48
+ }>;
49
+ modelId: z.ZodString;
50
+ capabilities: z.ZodObject<{
51
+ text: z.ZodDefault<z.ZodBoolean>;
52
+ reasoning: z.ZodDefault<z.ZodBoolean>;
53
+ plan: z.ZodDefault<z.ZodBoolean>;
54
+ tasks: z.ZodDefault<z.ZodBoolean>;
55
+ tools: z.ZodDefault<z.ZodBoolean>;
56
+ mcp: z.ZodDefault<z.ZodBoolean>;
57
+ shell: z.ZodDefault<z.ZodBoolean>;
58
+ fileChange: z.ZodDefault<z.ZodBoolean>;
59
+ skills: z.ZodDefault<z.ZodBoolean>;
60
+ approval: z.ZodDefault<z.ZodBoolean>;
61
+ artifacts: z.ZodDefault<z.ZodBoolean>;
62
+ usage: z.ZodDefault<z.ZodBoolean>;
63
+ resume: z.ZodDefault<z.ZodBoolean>;
64
+ diff: z.ZodDefault<z.ZodBoolean>;
65
+ workspaceFiles: z.ZodDefault<z.ZodBoolean>;
66
+ terminal: z.ZodDefault<z.ZodBoolean>;
67
+ testResults: z.ZodDefault<z.ZodBoolean>;
68
+ }, z.core.$strict>;
69
+ }, z.core.$strict>;
70
+ export declare const AgentSessionEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
71
+ contract: z.ZodLiteral<"AgentSessionEvent">;
72
+ eventId: z.ZodString;
73
+ sessionId: z.ZodString;
74
+ sequence: z.ZodNumber;
75
+ idempotencyKey: z.ZodString;
76
+ occurredAt: z.ZodString;
77
+ eventType: z.ZodLiteral<"message">;
78
+ payload: z.ZodObject<{
79
+ messageId: z.ZodString;
80
+ role: z.ZodEnum<{
81
+ user: "user";
82
+ assistant: "assistant";
83
+ system: "system";
84
+ }>;
85
+ operation: z.ZodDefault<z.ZodEnum<{
86
+ replace: "replace";
87
+ append: "append";
88
+ }>>;
89
+ parts: z.ZodArray<z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>;
90
+ status: z.ZodOptional<z.ZodEnum<{
91
+ streaming: "streaming";
92
+ completed: "completed";
93
+ failed: "failed";
94
+ }>>;
95
+ }, z.core.$strict>;
96
+ }, z.core.$strict>, z.ZodObject<{
97
+ contract: z.ZodLiteral<"AgentSessionEvent">;
98
+ eventId: z.ZodString;
99
+ sessionId: z.ZodString;
100
+ sequence: z.ZodNumber;
101
+ idempotencyKey: z.ZodString;
102
+ occurredAt: z.ZodString;
103
+ eventType: z.ZodLiteral<"reasoning">;
104
+ payload: z.ZodObject<{
105
+ reasoningId: z.ZodString;
106
+ text: z.ZodString;
107
+ status: z.ZodEnum<{
108
+ streaming: "streaming";
109
+ completed: "completed";
110
+ }>;
111
+ }, z.core.$strict>;
112
+ }, z.core.$strict>, z.ZodObject<{
113
+ contract: z.ZodLiteral<"AgentSessionEvent">;
114
+ eventId: z.ZodString;
115
+ sessionId: z.ZodString;
116
+ sequence: z.ZodNumber;
117
+ idempotencyKey: z.ZodString;
118
+ occurredAt: z.ZodString;
119
+ eventType: z.ZodLiteral<"plan">;
120
+ payload: z.ZodObject<{
121
+ planId: z.ZodString;
122
+ title: z.ZodOptional<z.ZodString>;
123
+ status: z.ZodEnum<{
124
+ completed: "completed";
125
+ failed: "failed";
126
+ pending: "pending";
127
+ running: "running";
128
+ }>;
129
+ steps: z.ZodArray<z.ZodObject<{
130
+ id: z.ZodString;
131
+ title: z.ZodString;
132
+ status: z.ZodEnum<{
133
+ completed: "completed";
134
+ failed: "failed";
135
+ pending: "pending";
136
+ running: "running";
137
+ skipped: "skipped";
138
+ }>;
139
+ }, z.core.$strict>>;
140
+ }, z.core.$strict>;
141
+ }, z.core.$strict>, z.ZodObject<{
142
+ contract: z.ZodLiteral<"AgentSessionEvent">;
143
+ eventId: z.ZodString;
144
+ sessionId: z.ZodString;
145
+ sequence: z.ZodNumber;
146
+ idempotencyKey: z.ZodString;
147
+ occurredAt: z.ZodString;
148
+ eventType: z.ZodLiteral<"task">;
149
+ payload: z.ZodObject<{
150
+ taskId: z.ZodString;
151
+ title: z.ZodString;
152
+ status: z.ZodEnum<{
153
+ completed: "completed";
154
+ failed: "failed";
155
+ pending: "pending";
156
+ running: "running";
157
+ skipped: "skipped";
158
+ }>;
159
+ detail: z.ZodOptional<z.ZodString>;
160
+ }, z.core.$strict>;
161
+ }, z.core.$strict>, z.ZodObject<{
162
+ contract: z.ZodLiteral<"AgentSessionEvent">;
163
+ eventId: z.ZodString;
164
+ sessionId: z.ZodString;
165
+ sequence: z.ZodNumber;
166
+ idempotencyKey: z.ZodString;
167
+ occurredAt: z.ZodString;
168
+ eventType: z.ZodLiteral<"tool">;
169
+ payload: z.ZodObject<{
170
+ toolCallId: z.ZodString;
171
+ toolName: z.ZodString;
172
+ status: z.ZodEnum<{
173
+ completed: "completed";
174
+ failed: "failed";
175
+ pending: "pending";
176
+ running: "running";
177
+ denied: "denied";
178
+ }>;
179
+ input: z.ZodOptional<z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>;
180
+ output: z.ZodOptional<z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>;
181
+ error: z.ZodOptional<z.ZodString>;
182
+ startedAt: z.ZodOptional<z.ZodString>;
183
+ completedAt: z.ZodOptional<z.ZodString>;
184
+ }, z.core.$strict>;
185
+ }, z.core.$strict>, z.ZodObject<{
186
+ contract: z.ZodLiteral<"AgentSessionEvent">;
187
+ eventId: z.ZodString;
188
+ sessionId: z.ZodString;
189
+ sequence: z.ZodNumber;
190
+ idempotencyKey: z.ZodString;
191
+ occurredAt: z.ZodString;
192
+ eventType: z.ZodLiteral<"approval">;
193
+ payload: z.ZodObject<{
194
+ approvalId: z.ZodString;
195
+ toolCallId: z.ZodOptional<z.ZodString>;
196
+ status: z.ZodEnum<{
197
+ requested: "requested";
198
+ approved: "approved";
199
+ rejected: "rejected";
200
+ expired: "expired";
201
+ }>;
202
+ title: z.ZodString;
203
+ description: z.ZodOptional<z.ZodString>;
204
+ requestedAction: z.ZodOptional<z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>;
205
+ }, z.core.$strict>;
206
+ }, z.core.$strict>, z.ZodObject<{
207
+ contract: z.ZodLiteral<"AgentSessionEvent">;
208
+ eventId: z.ZodString;
209
+ sessionId: z.ZodString;
210
+ sequence: z.ZodNumber;
211
+ idempotencyKey: z.ZodString;
212
+ occurredAt: z.ZodString;
213
+ eventType: z.ZodLiteral<"status">;
214
+ payload: z.ZodObject<{
215
+ status: z.ZodEnum<{
216
+ completed: "completed";
217
+ failed: "failed";
218
+ running: "running";
219
+ queued: "queued";
220
+ waiting_approval: "waiting_approval";
221
+ stopping: "stopping";
222
+ stopped: "stopped";
223
+ }>;
224
+ detail: z.ZodOptional<z.ZodString>;
225
+ }, z.core.$strict>;
226
+ }, z.core.$strict>, z.ZodObject<{
227
+ contract: z.ZodLiteral<"AgentSessionEvent">;
228
+ eventId: z.ZodString;
229
+ sessionId: z.ZodString;
230
+ sequence: z.ZodNumber;
231
+ idempotencyKey: z.ZodString;
232
+ occurredAt: z.ZodString;
233
+ eventType: z.ZodLiteral<"artifact">;
234
+ payload: z.ZodObject<{
235
+ artifactId: z.ZodString;
236
+ name: z.ZodString;
237
+ kind: z.ZodEnum<{
238
+ file: "file";
239
+ image: "image";
240
+ video: "video";
241
+ audio: "audio";
242
+ web: "web";
243
+ other: "other";
244
+ }>;
245
+ status: z.ZodEnum<{
246
+ failed: "failed";
247
+ pending: "pending";
248
+ ready: "ready";
249
+ }>;
250
+ mimeType: z.ZodOptional<z.ZodString>;
251
+ url: z.ZodOptional<z.ZodString>;
252
+ size: z.ZodOptional<z.ZodNumber>;
253
+ sourceEventId: z.ZodOptional<z.ZodString>;
254
+ }, z.core.$strict>;
255
+ }, z.core.$strict>, z.ZodObject<{
256
+ contract: z.ZodLiteral<"AgentSessionEvent">;
257
+ eventId: z.ZodString;
258
+ sessionId: z.ZodString;
259
+ sequence: z.ZodNumber;
260
+ idempotencyKey: z.ZodString;
261
+ occurredAt: z.ZodString;
262
+ eventType: z.ZodLiteral<"usage">;
263
+ payload: z.ZodObject<{
264
+ inputTokens: z.ZodOptional<z.ZodNumber>;
265
+ outputTokens: z.ZodOptional<z.ZodNumber>;
266
+ totalTokens: z.ZodOptional<z.ZodNumber>;
267
+ contextTokens: z.ZodOptional<z.ZodNumber>;
268
+ contextWindow: z.ZodOptional<z.ZodNumber>;
269
+ }, z.core.$strict>;
270
+ }, z.core.$strict>, z.ZodObject<{
271
+ contract: z.ZodLiteral<"AgentSessionEvent">;
272
+ eventId: z.ZodString;
273
+ sessionId: z.ZodString;
274
+ sequence: z.ZodNumber;
275
+ idempotencyKey: z.ZodString;
276
+ occurredAt: z.ZodString;
277
+ eventType: z.ZodLiteral<"resume">;
278
+ payload: z.ZodObject<{
279
+ resumable: z.ZodBoolean;
280
+ state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
281
+ reason: z.ZodOptional<z.ZodString>;
282
+ }, z.core.$strict>;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ contract: z.ZodLiteral<"AgentSessionEvent">;
285
+ eventId: z.ZodString;
286
+ sessionId: z.ZodString;
287
+ sequence: z.ZodNumber;
288
+ idempotencyKey: z.ZodString;
289
+ occurredAt: z.ZodString;
290
+ eventType: z.ZodLiteral<"error">;
291
+ payload: z.ZodObject<{
292
+ code: z.ZodString;
293
+ message: z.ZodString;
294
+ retryable: z.ZodBoolean;
295
+ sourceEventId: z.ZodOptional<z.ZodString>;
296
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
297
+ }, z.core.$strict>;
298
+ }, z.core.$strict>, z.ZodObject<{
299
+ contract: z.ZodLiteral<"AgentSessionEvent">;
300
+ eventId: z.ZodString;
301
+ sessionId: z.ZodString;
302
+ sequence: z.ZodNumber;
303
+ idempotencyKey: z.ZodString;
304
+ occurredAt: z.ZodString;
305
+ eventType: z.ZodLiteral<"diff">;
306
+ payload: z.ZodObject<{
307
+ path: z.ZodString;
308
+ status: z.ZodEnum<{
309
+ added: "added";
310
+ modified: "modified";
311
+ deleted: "deleted";
312
+ renamed: "renamed";
313
+ }>;
314
+ patch: z.ZodOptional<z.ZodString>;
315
+ }, z.core.$strict>;
316
+ }, z.core.$strict>, z.ZodObject<{
317
+ contract: z.ZodLiteral<"AgentSessionEvent">;
318
+ eventId: z.ZodString;
319
+ sessionId: z.ZodString;
320
+ sequence: z.ZodNumber;
321
+ idempotencyKey: z.ZodString;
322
+ occurredAt: z.ZodString;
323
+ eventType: z.ZodLiteral<"workspace-file">;
324
+ payload: z.ZodObject<{
325
+ path: z.ZodString;
326
+ operation: z.ZodEnum<{
327
+ upsert: "upsert";
328
+ delete: "delete";
329
+ }>;
330
+ mimeType: z.ZodOptional<z.ZodString>;
331
+ size: z.ZodOptional<z.ZodNumber>;
332
+ }, z.core.$strict>;
333
+ }, z.core.$strict>, z.ZodObject<{
334
+ contract: z.ZodLiteral<"AgentSessionEvent">;
335
+ eventId: z.ZodString;
336
+ sessionId: z.ZodString;
337
+ sequence: z.ZodNumber;
338
+ idempotencyKey: z.ZodString;
339
+ occurredAt: z.ZodString;
340
+ eventType: z.ZodLiteral<"terminal">;
341
+ payload: z.ZodObject<{
342
+ terminalId: z.ZodString;
343
+ stream: z.ZodEnum<{
344
+ status: "status";
345
+ stdin: "stdin";
346
+ stdout: "stdout";
347
+ stderr: "stderr";
348
+ }>;
349
+ chunk: z.ZodString;
350
+ exitCode: z.ZodOptional<z.ZodNumber>;
351
+ }, z.core.$strict>;
352
+ }, z.core.$strict>, z.ZodObject<{
353
+ contract: z.ZodLiteral<"AgentSessionEvent">;
354
+ eventId: z.ZodString;
355
+ sessionId: z.ZodString;
356
+ sequence: z.ZodNumber;
357
+ idempotencyKey: z.ZodString;
358
+ occurredAt: z.ZodString;
359
+ eventType: z.ZodLiteral<"test-result">;
360
+ payload: z.ZodObject<{
361
+ testId: z.ZodString;
362
+ name: z.ZodString;
363
+ status: z.ZodEnum<{
364
+ failed: "failed";
365
+ running: "running";
366
+ skipped: "skipped";
367
+ passed: "passed";
368
+ }>;
369
+ durationMs: z.ZodOptional<z.ZodNumber>;
370
+ output: z.ZodOptional<z.ZodString>;
371
+ }, z.core.$strict>;
372
+ }, z.core.$strict>], "eventType">;
373
+ export declare const AgentSessionViewModelSchema: z.ZodObject<{
374
+ contract: z.ZodLiteral<"AgentSessionViewModel">;
375
+ sessionId: z.ZodString;
376
+ snapshot: z.ZodObject<{
377
+ mode: z.ZodEnum<{
378
+ chatbot: "chatbot";
379
+ agent: "agent";
380
+ }>;
381
+ modelId: z.ZodString;
382
+ capabilities: z.ZodObject<{
383
+ text: z.ZodDefault<z.ZodBoolean>;
384
+ reasoning: z.ZodDefault<z.ZodBoolean>;
385
+ plan: z.ZodDefault<z.ZodBoolean>;
386
+ tasks: z.ZodDefault<z.ZodBoolean>;
387
+ tools: z.ZodDefault<z.ZodBoolean>;
388
+ mcp: z.ZodDefault<z.ZodBoolean>;
389
+ shell: z.ZodDefault<z.ZodBoolean>;
390
+ fileChange: z.ZodDefault<z.ZodBoolean>;
391
+ skills: z.ZodDefault<z.ZodBoolean>;
392
+ approval: z.ZodDefault<z.ZodBoolean>;
393
+ artifacts: z.ZodDefault<z.ZodBoolean>;
394
+ usage: z.ZodDefault<z.ZodBoolean>;
395
+ resume: z.ZodDefault<z.ZodBoolean>;
396
+ diff: z.ZodDefault<z.ZodBoolean>;
397
+ workspaceFiles: z.ZodDefault<z.ZodBoolean>;
398
+ terminal: z.ZodDefault<z.ZodBoolean>;
399
+ testResults: z.ZodDefault<z.ZodBoolean>;
400
+ }, z.core.$strict>;
401
+ }, z.core.$strict>;
402
+ status: z.ZodEnum<{
403
+ completed: "completed";
404
+ failed: "failed";
405
+ running: "running";
406
+ queued: "queued";
407
+ waiting_approval: "waiting_approval";
408
+ stopping: "stopping";
409
+ stopped: "stopped";
410
+ }>;
411
+ events: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
412
+ contract: z.ZodLiteral<"AgentSessionEvent">;
413
+ eventId: z.ZodString;
414
+ sessionId: z.ZodString;
415
+ sequence: z.ZodNumber;
416
+ idempotencyKey: z.ZodString;
417
+ occurredAt: z.ZodString;
418
+ eventType: z.ZodLiteral<"message">;
419
+ payload: z.ZodObject<{
420
+ messageId: z.ZodString;
421
+ role: z.ZodEnum<{
422
+ user: "user";
423
+ assistant: "assistant";
424
+ system: "system";
425
+ }>;
426
+ operation: z.ZodDefault<z.ZodEnum<{
427
+ replace: "replace";
428
+ append: "append";
429
+ }>>;
430
+ parts: z.ZodArray<z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>;
431
+ status: z.ZodOptional<z.ZodEnum<{
432
+ streaming: "streaming";
433
+ completed: "completed";
434
+ failed: "failed";
435
+ }>>;
436
+ }, z.core.$strict>;
437
+ }, z.core.$strict>, z.ZodObject<{
438
+ contract: z.ZodLiteral<"AgentSessionEvent">;
439
+ eventId: z.ZodString;
440
+ sessionId: z.ZodString;
441
+ sequence: z.ZodNumber;
442
+ idempotencyKey: z.ZodString;
443
+ occurredAt: z.ZodString;
444
+ eventType: z.ZodLiteral<"reasoning">;
445
+ payload: z.ZodObject<{
446
+ reasoningId: z.ZodString;
447
+ text: z.ZodString;
448
+ status: z.ZodEnum<{
449
+ streaming: "streaming";
450
+ completed: "completed";
451
+ }>;
452
+ }, z.core.$strict>;
453
+ }, z.core.$strict>, z.ZodObject<{
454
+ contract: z.ZodLiteral<"AgentSessionEvent">;
455
+ eventId: z.ZodString;
456
+ sessionId: z.ZodString;
457
+ sequence: z.ZodNumber;
458
+ idempotencyKey: z.ZodString;
459
+ occurredAt: z.ZodString;
460
+ eventType: z.ZodLiteral<"plan">;
461
+ payload: z.ZodObject<{
462
+ planId: z.ZodString;
463
+ title: z.ZodOptional<z.ZodString>;
464
+ status: z.ZodEnum<{
465
+ completed: "completed";
466
+ failed: "failed";
467
+ pending: "pending";
468
+ running: "running";
469
+ }>;
470
+ steps: z.ZodArray<z.ZodObject<{
471
+ id: z.ZodString;
472
+ title: z.ZodString;
473
+ status: z.ZodEnum<{
474
+ completed: "completed";
475
+ failed: "failed";
476
+ pending: "pending";
477
+ running: "running";
478
+ skipped: "skipped";
479
+ }>;
480
+ }, z.core.$strict>>;
481
+ }, z.core.$strict>;
482
+ }, z.core.$strict>, z.ZodObject<{
483
+ contract: z.ZodLiteral<"AgentSessionEvent">;
484
+ eventId: z.ZodString;
485
+ sessionId: z.ZodString;
486
+ sequence: z.ZodNumber;
487
+ idempotencyKey: z.ZodString;
488
+ occurredAt: z.ZodString;
489
+ eventType: z.ZodLiteral<"task">;
490
+ payload: z.ZodObject<{
491
+ taskId: z.ZodString;
492
+ title: z.ZodString;
493
+ status: z.ZodEnum<{
494
+ completed: "completed";
495
+ failed: "failed";
496
+ pending: "pending";
497
+ running: "running";
498
+ skipped: "skipped";
499
+ }>;
500
+ detail: z.ZodOptional<z.ZodString>;
501
+ }, z.core.$strict>;
502
+ }, z.core.$strict>, z.ZodObject<{
503
+ contract: z.ZodLiteral<"AgentSessionEvent">;
504
+ eventId: z.ZodString;
505
+ sessionId: z.ZodString;
506
+ sequence: z.ZodNumber;
507
+ idempotencyKey: z.ZodString;
508
+ occurredAt: z.ZodString;
509
+ eventType: z.ZodLiteral<"tool">;
510
+ payload: z.ZodObject<{
511
+ toolCallId: z.ZodString;
512
+ toolName: z.ZodString;
513
+ status: z.ZodEnum<{
514
+ completed: "completed";
515
+ failed: "failed";
516
+ pending: "pending";
517
+ running: "running";
518
+ denied: "denied";
519
+ }>;
520
+ input: z.ZodOptional<z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>;
521
+ output: z.ZodOptional<z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>;
522
+ error: z.ZodOptional<z.ZodString>;
523
+ startedAt: z.ZodOptional<z.ZodString>;
524
+ completedAt: z.ZodOptional<z.ZodString>;
525
+ }, z.core.$strict>;
526
+ }, z.core.$strict>, z.ZodObject<{
527
+ contract: z.ZodLiteral<"AgentSessionEvent">;
528
+ eventId: z.ZodString;
529
+ sessionId: z.ZodString;
530
+ sequence: z.ZodNumber;
531
+ idempotencyKey: z.ZodString;
532
+ occurredAt: z.ZodString;
533
+ eventType: z.ZodLiteral<"approval">;
534
+ payload: z.ZodObject<{
535
+ approvalId: z.ZodString;
536
+ toolCallId: z.ZodOptional<z.ZodString>;
537
+ status: z.ZodEnum<{
538
+ requested: "requested";
539
+ approved: "approved";
540
+ rejected: "rejected";
541
+ expired: "expired";
542
+ }>;
543
+ title: z.ZodString;
544
+ description: z.ZodOptional<z.ZodString>;
545
+ requestedAction: z.ZodOptional<z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>;
546
+ }, z.core.$strict>;
547
+ }, z.core.$strict>, z.ZodObject<{
548
+ contract: z.ZodLiteral<"AgentSessionEvent">;
549
+ eventId: z.ZodString;
550
+ sessionId: z.ZodString;
551
+ sequence: z.ZodNumber;
552
+ idempotencyKey: z.ZodString;
553
+ occurredAt: z.ZodString;
554
+ eventType: z.ZodLiteral<"status">;
555
+ payload: z.ZodObject<{
556
+ status: z.ZodEnum<{
557
+ completed: "completed";
558
+ failed: "failed";
559
+ running: "running";
560
+ queued: "queued";
561
+ waiting_approval: "waiting_approval";
562
+ stopping: "stopping";
563
+ stopped: "stopped";
564
+ }>;
565
+ detail: z.ZodOptional<z.ZodString>;
566
+ }, z.core.$strict>;
567
+ }, z.core.$strict>, z.ZodObject<{
568
+ contract: z.ZodLiteral<"AgentSessionEvent">;
569
+ eventId: z.ZodString;
570
+ sessionId: z.ZodString;
571
+ sequence: z.ZodNumber;
572
+ idempotencyKey: z.ZodString;
573
+ occurredAt: z.ZodString;
574
+ eventType: z.ZodLiteral<"artifact">;
575
+ payload: z.ZodObject<{
576
+ artifactId: z.ZodString;
577
+ name: z.ZodString;
578
+ kind: z.ZodEnum<{
579
+ file: "file";
580
+ image: "image";
581
+ video: "video";
582
+ audio: "audio";
583
+ web: "web";
584
+ other: "other";
585
+ }>;
586
+ status: z.ZodEnum<{
587
+ failed: "failed";
588
+ pending: "pending";
589
+ ready: "ready";
590
+ }>;
591
+ mimeType: z.ZodOptional<z.ZodString>;
592
+ url: z.ZodOptional<z.ZodString>;
593
+ size: z.ZodOptional<z.ZodNumber>;
594
+ sourceEventId: z.ZodOptional<z.ZodString>;
595
+ }, z.core.$strict>;
596
+ }, z.core.$strict>, z.ZodObject<{
597
+ contract: z.ZodLiteral<"AgentSessionEvent">;
598
+ eventId: z.ZodString;
599
+ sessionId: z.ZodString;
600
+ sequence: z.ZodNumber;
601
+ idempotencyKey: z.ZodString;
602
+ occurredAt: z.ZodString;
603
+ eventType: z.ZodLiteral<"usage">;
604
+ payload: z.ZodObject<{
605
+ inputTokens: z.ZodOptional<z.ZodNumber>;
606
+ outputTokens: z.ZodOptional<z.ZodNumber>;
607
+ totalTokens: z.ZodOptional<z.ZodNumber>;
608
+ contextTokens: z.ZodOptional<z.ZodNumber>;
609
+ contextWindow: z.ZodOptional<z.ZodNumber>;
610
+ }, z.core.$strict>;
611
+ }, z.core.$strict>, z.ZodObject<{
612
+ contract: z.ZodLiteral<"AgentSessionEvent">;
613
+ eventId: z.ZodString;
614
+ sessionId: z.ZodString;
615
+ sequence: z.ZodNumber;
616
+ idempotencyKey: z.ZodString;
617
+ occurredAt: z.ZodString;
618
+ eventType: z.ZodLiteral<"resume">;
619
+ payload: z.ZodObject<{
620
+ resumable: z.ZodBoolean;
621
+ state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
622
+ reason: z.ZodOptional<z.ZodString>;
623
+ }, z.core.$strict>;
624
+ }, z.core.$strict>, z.ZodObject<{
625
+ contract: z.ZodLiteral<"AgentSessionEvent">;
626
+ eventId: z.ZodString;
627
+ sessionId: z.ZodString;
628
+ sequence: z.ZodNumber;
629
+ idempotencyKey: z.ZodString;
630
+ occurredAt: z.ZodString;
631
+ eventType: z.ZodLiteral<"error">;
632
+ payload: z.ZodObject<{
633
+ code: z.ZodString;
634
+ message: z.ZodString;
635
+ retryable: z.ZodBoolean;
636
+ sourceEventId: z.ZodOptional<z.ZodString>;
637
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./common").JsonValue, unknown, z.core.$ZodTypeInternals<import("./common").JsonValue, unknown>>>>;
638
+ }, z.core.$strict>;
639
+ }, z.core.$strict>, z.ZodObject<{
640
+ contract: z.ZodLiteral<"AgentSessionEvent">;
641
+ eventId: z.ZodString;
642
+ sessionId: z.ZodString;
643
+ sequence: z.ZodNumber;
644
+ idempotencyKey: z.ZodString;
645
+ occurredAt: z.ZodString;
646
+ eventType: z.ZodLiteral<"diff">;
647
+ payload: z.ZodObject<{
648
+ path: z.ZodString;
649
+ status: z.ZodEnum<{
650
+ added: "added";
651
+ modified: "modified";
652
+ deleted: "deleted";
653
+ renamed: "renamed";
654
+ }>;
655
+ patch: z.ZodOptional<z.ZodString>;
656
+ }, z.core.$strict>;
657
+ }, z.core.$strict>, z.ZodObject<{
658
+ contract: z.ZodLiteral<"AgentSessionEvent">;
659
+ eventId: z.ZodString;
660
+ sessionId: z.ZodString;
661
+ sequence: z.ZodNumber;
662
+ idempotencyKey: z.ZodString;
663
+ occurredAt: z.ZodString;
664
+ eventType: z.ZodLiteral<"workspace-file">;
665
+ payload: z.ZodObject<{
666
+ path: z.ZodString;
667
+ operation: z.ZodEnum<{
668
+ upsert: "upsert";
669
+ delete: "delete";
670
+ }>;
671
+ mimeType: z.ZodOptional<z.ZodString>;
672
+ size: z.ZodOptional<z.ZodNumber>;
673
+ }, z.core.$strict>;
674
+ }, z.core.$strict>, z.ZodObject<{
675
+ contract: z.ZodLiteral<"AgentSessionEvent">;
676
+ eventId: z.ZodString;
677
+ sessionId: z.ZodString;
678
+ sequence: z.ZodNumber;
679
+ idempotencyKey: z.ZodString;
680
+ occurredAt: z.ZodString;
681
+ eventType: z.ZodLiteral<"terminal">;
682
+ payload: z.ZodObject<{
683
+ terminalId: z.ZodString;
684
+ stream: z.ZodEnum<{
685
+ status: "status";
686
+ stdin: "stdin";
687
+ stdout: "stdout";
688
+ stderr: "stderr";
689
+ }>;
690
+ chunk: z.ZodString;
691
+ exitCode: z.ZodOptional<z.ZodNumber>;
692
+ }, z.core.$strict>;
693
+ }, z.core.$strict>, z.ZodObject<{
694
+ contract: z.ZodLiteral<"AgentSessionEvent">;
695
+ eventId: z.ZodString;
696
+ sessionId: z.ZodString;
697
+ sequence: z.ZodNumber;
698
+ idempotencyKey: z.ZodString;
699
+ occurredAt: z.ZodString;
700
+ eventType: z.ZodLiteral<"test-result">;
701
+ payload: z.ZodObject<{
702
+ testId: z.ZodString;
703
+ name: z.ZodString;
704
+ status: z.ZodEnum<{
705
+ failed: "failed";
706
+ running: "running";
707
+ skipped: "skipped";
708
+ passed: "passed";
709
+ }>;
710
+ durationMs: z.ZodOptional<z.ZodNumber>;
711
+ output: z.ZodOptional<z.ZodString>;
712
+ }, z.core.$strict>;
713
+ }, z.core.$strict>], "eventType">>;
714
+ lastSequence: z.ZodNumber;
715
+ resumable: z.ZodDefault<z.ZodBoolean>;
716
+ }, z.core.$strict>;
717
+ export type AgentMode = z.infer<typeof AgentModeSchema>;
718
+ export type AgentSessionCapability = z.infer<typeof AgentSessionCapabilitySchema>;
719
+ export type AgentSessionCapabilities = z.infer<typeof AgentSessionCapabilitiesSchema>;
720
+ export type AgentSessionSnapshot = z.infer<typeof AgentSessionSnapshotSchema>;
721
+ export type AgentSessionEvent = z.infer<typeof AgentSessionEventSchema>;
722
+ export type AgentSessionViewModel = z.infer<typeof AgentSessionViewModelSchema>;
723
+ export declare const AgentExecutionModeSchema: z.ZodEnum<{
724
+ chatbot: "chatbot";
725
+ agent: "agent";
726
+ }>;
727
+ export type AgentExecutionMode = AgentMode;
728
+ export declare function normalizeAgentMode(value: unknown): AgentMode | undefined;
729
+ export declare const normalizeAgentExecutionMode: typeof normalizeAgentMode;
730
+ //# sourceMappingURL=agent.d.ts.map