@moxt-ai/mobius-sdk 0.0.101 → 0.0.102

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 (103) hide show
  1. package/dist/client.d.ts +1 -1
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +1 -1
  4. package/dist/client.js.map +1 -1
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/platform.d.ts +2 -2
  10. package/dist/platform.d.ts.map +1 -1
  11. package/dist/platform.js +2 -2
  12. package/dist/platform.js.map +1 -1
  13. package/dist/project-authentication.js +1 -1
  14. package/dist/project-authentication.js.map +1 -1
  15. package/dist/protocol/codecs/messages.d.ts +32 -0
  16. package/dist/protocol/codecs/messages.d.ts.map +1 -0
  17. package/dist/protocol/codecs/messages.js +249 -0
  18. package/dist/protocol/codecs/messages.js.map +1 -0
  19. package/dist/protocol/control-messages.d.ts +964 -0
  20. package/dist/protocol/control-messages.d.ts.map +1 -0
  21. package/dist/protocol/control-messages.js +754 -0
  22. package/dist/protocol/control-messages.js.map +1 -0
  23. package/dist/protocol/conversation-title.d.ts +2 -0
  24. package/dist/protocol/conversation-title.d.ts.map +1 -0
  25. package/dist/protocol/conversation-title.js +28 -0
  26. package/dist/protocol/conversation-title.js.map +1 -0
  27. package/dist/protocol/daemon-transport.d.ts +3979 -0
  28. package/dist/protocol/daemon-transport.d.ts.map +1 -0
  29. package/dist/protocol/daemon-transport.js +94 -0
  30. package/dist/protocol/daemon-transport.js.map +1 -0
  31. package/dist/protocol/identifier.d.ts +7 -0
  32. package/dist/protocol/identifier.d.ts.map +1 -0
  33. package/dist/protocol/identifier.js +11 -0
  34. package/dist/protocol/identifier.js.map +1 -0
  35. package/dist/protocol/index.d.ts +18 -0
  36. package/dist/protocol/index.d.ts.map +1 -0
  37. package/dist/protocol/index.js +18 -0
  38. package/dist/protocol/index.js.map +1 -0
  39. package/dist/protocol/messages.d.ts +67 -0
  40. package/dist/protocol/messages.d.ts.map +1 -0
  41. package/dist/protocol/messages.js +16 -0
  42. package/dist/protocol/messages.js.map +1 -0
  43. package/dist/protocol/mobius-api.d.ts +10 -0
  44. package/dist/protocol/mobius-api.d.ts.map +1 -0
  45. package/dist/protocol/mobius-api.js +23 -0
  46. package/dist/protocol/mobius-api.js.map +1 -0
  47. package/dist/protocol/native-sessions.d.ts +401 -0
  48. package/dist/protocol/native-sessions.d.ts.map +1 -0
  49. package/dist/protocol/native-sessions.js +154 -0
  50. package/dist/protocol/native-sessions.js.map +1 -0
  51. package/dist/protocol/project-location.d.ts +16 -0
  52. package/dist/protocol/project-location.d.ts.map +1 -0
  53. package/dist/protocol/project-location.js +6 -0
  54. package/dist/protocol/project-location.js.map +1 -0
  55. package/dist/protocol/prompt-usage.d.ts +76 -0
  56. package/dist/protocol/prompt-usage.d.ts.map +1 -0
  57. package/dist/protocol/prompt-usage.js +88 -0
  58. package/dist/protocol/prompt-usage.js.map +1 -0
  59. package/dist/protocol/resource-model.d.ts +339 -0
  60. package/dist/protocol/resource-model.d.ts.map +1 -0
  61. package/dist/protocol/resource-model.js +161 -0
  62. package/dist/protocol/resource-model.js.map +1 -0
  63. package/dist/protocol/runtime-diagnostics.d.ts +19 -0
  64. package/dist/protocol/runtime-diagnostics.d.ts.map +1 -0
  65. package/dist/protocol/runtime-diagnostics.js +24 -0
  66. package/dist/protocol/runtime-diagnostics.js.map +1 -0
  67. package/dist/protocol/runtime-upgrade.d.ts +29 -0
  68. package/dist/protocol/runtime-upgrade.d.ts.map +1 -0
  69. package/dist/protocol/runtime-upgrade.js +38 -0
  70. package/dist/protocol/runtime-upgrade.js.map +1 -0
  71. package/dist/protocol/session-access.d.ts +21 -0
  72. package/dist/protocol/session-access.d.ts.map +1 -0
  73. package/dist/protocol/session-access.js +108 -0
  74. package/dist/protocol/session-access.js.map +1 -0
  75. package/dist/protocol/session-event-log.d.ts +13542 -0
  76. package/dist/protocol/session-event-log.d.ts.map +1 -0
  77. package/dist/protocol/session-event-log.js +584 -0
  78. package/dist/protocol/session-event-log.js.map +1 -0
  79. package/dist/protocol/session-history.d.ts +2907 -0
  80. package/dist/protocol/session-history.d.ts.map +1 -0
  81. package/dist/protocol/session-history.js +58 -0
  82. package/dist/protocol/session-history.js.map +1 -0
  83. package/dist/protocol/session-recording.d.ts +5640 -0
  84. package/dist/protocol/session-recording.d.ts.map +1 -0
  85. package/dist/protocol/session-recording.js +365 -0
  86. package/dist/protocol/session-recording.js.map +1 -0
  87. package/dist/public-request.js +1 -1
  88. package/dist/public-request.js.map +1 -1
  89. package/dist/resources.d.ts +1 -1
  90. package/dist/resources.d.ts.map +1 -1
  91. package/dist/resources.js +1 -1
  92. package/dist/resources.js.map +1 -1
  93. package/dist/server.d.ts +2 -2
  94. package/dist/server.d.ts.map +1 -1
  95. package/dist/server.js +1 -1
  96. package/dist/server.js.map +1 -1
  97. package/dist/service-client.d.ts +1 -1
  98. package/dist/service-client.d.ts.map +1 -1
  99. package/dist/service-client.js +1 -1
  100. package/dist/service-client.js.map +1 -1
  101. package/dist/transport/ws-transport.js +1 -1
  102. package/dist/transport/ws-transport.js.map +1 -1
  103. package/package.json +8 -3
@@ -0,0 +1,3979 @@
1
+ interface MessageSignature<TMessage extends {
2
+ readonly kind: string;
3
+ }> {
4
+ readonly decoder: (encoded: string) => TMessage;
5
+ readonly encoder: (message: unknown) => string;
6
+ readonly kind: TMessage["kind"];
7
+ readonly schema: (message: unknown) => TMessage;
8
+ }
9
+ declare const serviceToDaemonSignatures: {
10
+ readonly "session.preview-history.page.load": MessageSignature<Readonly<{
11
+ cursor: string | null;
12
+ eventLimit: number;
13
+ omit?: readonly "agent-reasoning"[] | undefined;
14
+ requestId: string;
15
+ sessionId: string;
16
+ additionalDirectoryIds: readonly string[];
17
+ agentId: string;
18
+ bindingId: string;
19
+ directoryId: string;
20
+ kind: "session.preview-history.page.load";
21
+ }>>;
22
+ readonly "agent.settings.discover": MessageSignature<Readonly<{
23
+ agentId: string;
24
+ kind: "agent.settings.discover";
25
+ model?: string | undefined;
26
+ requestId: string;
27
+ }>>;
28
+ readonly "file.read": MessageSignature<Readonly<{
29
+ kind: "file.read";
30
+ maxBytes: number;
31
+ requestId: string;
32
+ sessionId: string;
33
+ path: string;
34
+ }>>;
35
+ readonly "session.list": MessageSignature<Readonly<{
36
+ kind: "session.list";
37
+ limit: number;
38
+ requestId: string;
39
+ }>>;
40
+ readonly "session.query": MessageSignature<Readonly<{
41
+ kind: "session.query";
42
+ requestId: string;
43
+ sessionIds: readonly string[];
44
+ }>>;
45
+ readonly "session.restore": MessageSignature<Readonly<{
46
+ kind: "session.restore";
47
+ requestId: string;
48
+ sessionId: string;
49
+ }>>;
50
+ readonly "session.close": MessageSignature<Readonly<{
51
+ kind: "session.close";
52
+ requestId: string;
53
+ sessionId: string;
54
+ }>>;
55
+ readonly "native.session.cancel": MessageSignature<Readonly<{
56
+ requestId: string;
57
+ sessionId: string;
58
+ kind: "native.session.cancel";
59
+ }>>;
60
+ readonly "native.session.request": MessageSignature<Readonly<{
61
+ requestId: string;
62
+ sessionId: string;
63
+ kind: "native.session.request";
64
+ additionalDirectoryIds: readonly string[];
65
+ agentId: string;
66
+ bindingId: string;
67
+ directoryId: string;
68
+ action: "active-turn";
69
+ targetSessionId: string;
70
+ }> | Readonly<{
71
+ requestId: string;
72
+ sessionId: string;
73
+ kind: "native.session.request";
74
+ additionalDirectoryIds: readonly string[];
75
+ agentId: string;
76
+ bindingId: string;
77
+ directoryId: string;
78
+ action: "find";
79
+ nativeSessionId: string;
80
+ }> | Readonly<{
81
+ requestId: string;
82
+ sessionId: string;
83
+ kind: "native.session.request";
84
+ additionalDirectoryIds: readonly string[];
85
+ agentId: string;
86
+ bindingId: string;
87
+ directoryId: string;
88
+ action: "list";
89
+ cursor: string | null;
90
+ }> | Readonly<{
91
+ requestId: string;
92
+ sessionId: string;
93
+ kind: "native.session.request";
94
+ additionalDirectoryIds: readonly string[];
95
+ agentId: string;
96
+ bindingId: string;
97
+ directoryId: string;
98
+ action: "fork" | "import";
99
+ entryId: string;
100
+ targetSessionId: string;
101
+ }>>;
102
+ readonly "runtime.heartbeat.ack": MessageSignature<import("./messages.ts").RuntimeHeartbeatAckEvent>;
103
+ readonly "runtime.liveness.ready": MessageSignature<import("./messages.ts").RuntimeLivenessReadyEvent>;
104
+ readonly "runtime.diagnostics.read": MessageSignature<Readonly<{
105
+ kind: "runtime.diagnostics.read";
106
+ requestId: string & import("zod").$brand<"Identifier">;
107
+ }>>;
108
+ readonly "runtime.ping": MessageSignature<import("./messages.ts").RuntimePingCommand>;
109
+ readonly "session.cancel": MessageSignature<import("./messages.ts").SessionCancelCommand>;
110
+ readonly "session.configure": MessageSignature<Readonly<{
111
+ additionalDirectoryIds: readonly string[];
112
+ agentId: string;
113
+ bindingId: string;
114
+ directoryId: string;
115
+ sessionId: string;
116
+ booleanValue: boolean;
117
+ configId: string;
118
+ kind: "session.configure";
119
+ requestId: string;
120
+ value: string;
121
+ valueType: "boolean" | "select";
122
+ }>>;
123
+ readonly "session.rename": MessageSignature<Readonly<{
124
+ kind: "session.rename";
125
+ requestId: string;
126
+ sessionId: string;
127
+ title: string;
128
+ }>>;
129
+ readonly "session.elicitation.respond": MessageSignature<Readonly<{
130
+ action: "accept" | "cancel" | "decline";
131
+ content: string;
132
+ interactionId: string;
133
+ kind: "session.elicitation.respond";
134
+ sessionId: string;
135
+ }>>;
136
+ readonly "session.live-history.v2.page.load": MessageSignature<Readonly<{
137
+ cursor: string | null;
138
+ eventLimit: number;
139
+ omit?: readonly "agent-reasoning"[] | undefined;
140
+ requestId: string;
141
+ sessionId: string;
142
+ kind: "session.live-history.v2.page.load";
143
+ }>>;
144
+ readonly "session.permission.respond": MessageSignature<Readonly<{
145
+ interactionId: string;
146
+ kind: "session.permission.respond";
147
+ optionId: string;
148
+ outcome: "cancelled" | "selected";
149
+ sessionId: string;
150
+ }>>;
151
+ readonly "session.prepare": MessageSignature<Readonly<{
152
+ additionalDirectoryIds: readonly string[];
153
+ agentId: string;
154
+ bindingId: string;
155
+ directoryId: string;
156
+ sessionId: string;
157
+ configuration?: Readonly<{
158
+ booleanValue: boolean;
159
+ configId: string;
160
+ value: string;
161
+ valueType: "boolean" | "select";
162
+ }> | undefined;
163
+ kind: "session.prepare";
164
+ requestId: string;
165
+ sessionState?: "provisioned" | undefined;
166
+ transient?: boolean | undefined;
167
+ }>>;
168
+ readonly "session.prompt": MessageSignature<import("./messages.ts").SessionPromptCommand>;
169
+ readonly "session.prompt.disposition": MessageSignature<import("./messages.ts").SessionPromptDispositionCommand>;
170
+ readonly "workspace.list": MessageSignature<Readonly<{
171
+ bindingId: string;
172
+ directoryId: string;
173
+ kind: "workspace.list";
174
+ requestId: string;
175
+ }>>;
176
+ };
177
+ export type ServiceToDaemonMessage = ReturnType<(typeof serviceToDaemonSignatures)[keyof typeof serviceToDaemonSignatures]["decoder"]>;
178
+ export declare function decodeServiceToDaemonMessage(encoded: string): ServiceToDaemonMessage;
179
+ export declare function encodeServiceToDaemonMessage(message: ServiceToDaemonMessage): string;
180
+ declare const daemonToServiceSignatures: {
181
+ readonly "session.closed": MessageSignature<Readonly<{
182
+ kind: "session.closed";
183
+ requestId: string;
184
+ sessionId: string;
185
+ }>>;
186
+ readonly "session.preview-history.page.loaded": MessageSignature<Readonly<{
187
+ events: Readonly<{
188
+ events: Readonly<{
189
+ events: readonly (Readonly<{
190
+ eventId: string;
191
+ mobiusMetadata?: Readonly<{
192
+ omitted?: true | undefined;
193
+ }> | undefined;
194
+ provenance?: Readonly<{
195
+ kind: "original";
196
+ }> | Readonly<{
197
+ kind: "imported";
198
+ sourceEventId: string;
199
+ sourcePosition: string;
200
+ sourceSessionId: string;
201
+ }> | Readonly<{
202
+ kind: "forked";
203
+ sourceEventId: string;
204
+ sourcePosition: string;
205
+ sourceSessionId: string;
206
+ }> | undefined;
207
+ recordedAt: string;
208
+ sessionGenerationId: string;
209
+ sessionId: string;
210
+ payload: Readonly<{
211
+ content: Readonly<{
212
+ annotations?: Readonly<{
213
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
214
+ lastModified?: string | null | undefined;
215
+ priority?: number | null | undefined;
216
+ }> | null | undefined;
217
+ text: string;
218
+ type: "text";
219
+ }> | Readonly<{
220
+ annotations?: Readonly<{
221
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
222
+ lastModified?: string | null | undefined;
223
+ priority?: number | null | undefined;
224
+ }> | null | undefined;
225
+ data: string;
226
+ mimeType: string;
227
+ type: "image";
228
+ uri?: string | null | undefined;
229
+ }> | Readonly<{
230
+ annotations?: Readonly<{
231
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
232
+ lastModified?: string | null | undefined;
233
+ priority?: number | null | undefined;
234
+ }> | null | undefined;
235
+ data: string;
236
+ mimeType: string;
237
+ type: "audio";
238
+ }> | Readonly<{
239
+ annotations?: Readonly<{
240
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
241
+ lastModified?: string | null | undefined;
242
+ priority?: number | null | undefined;
243
+ }> | null | undefined;
244
+ description?: string | null | undefined;
245
+ mimeType?: string | null | undefined;
246
+ name: string;
247
+ size?: number | null | undefined;
248
+ title?: string | null | undefined;
249
+ type: "resource_link";
250
+ uri: string;
251
+ }> | Readonly<{
252
+ annotations?: Readonly<{
253
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
254
+ lastModified?: string | null | undefined;
255
+ priority?: number | null | undefined;
256
+ }> | null | undefined;
257
+ resource: Readonly<{
258
+ mimeType?: string | null | undefined;
259
+ text: string;
260
+ uri: string;
261
+ }> | Readonly<{
262
+ blob: string;
263
+ mimeType?: string | null | undefined;
264
+ uri: string;
265
+ }>;
266
+ type: "resource";
267
+ }> | Readonly<{
268
+ annotations?: Readonly<{
269
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
270
+ lastModified?: string | null | undefined;
271
+ priority?: number | null | undefined;
272
+ }> | null | undefined;
273
+ byteLength: number;
274
+ imageKey: string;
275
+ mimeType: string;
276
+ type: "external_image";
277
+ uri?: string | null | undefined;
278
+ }> | Readonly<{
279
+ annotations?: Readonly<{
280
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
281
+ lastModified?: string | null | undefined;
282
+ priority?: number | null | undefined;
283
+ }> | null | undefined;
284
+ audioKey: string;
285
+ byteLength: number;
286
+ mimeType: string;
287
+ type: "external_audio";
288
+ }> | Readonly<{
289
+ annotations?: Readonly<{
290
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
291
+ lastModified?: string | null | undefined;
292
+ priority?: number | null | undefined;
293
+ }> | null | undefined;
294
+ byteLength: number;
295
+ encoding: "binary" | "text";
296
+ mimeType?: string | null | undefined;
297
+ resourceKey: string;
298
+ type: "external_resource";
299
+ uri: string;
300
+ }>;
301
+ messageId?: string | null | undefined;
302
+ sessionUpdate: "user_message_chunk";
303
+ }> | Readonly<{
304
+ content: Readonly<{
305
+ annotations?: Readonly<{
306
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
307
+ lastModified?: string | null | undefined;
308
+ priority?: number | null | undefined;
309
+ }> | null | undefined;
310
+ text: string;
311
+ type: "text";
312
+ }> | Readonly<{
313
+ annotations?: Readonly<{
314
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
315
+ lastModified?: string | null | undefined;
316
+ priority?: number | null | undefined;
317
+ }> | null | undefined;
318
+ data: string;
319
+ mimeType: string;
320
+ type: "image";
321
+ uri?: string | null | undefined;
322
+ }> | Readonly<{
323
+ annotations?: Readonly<{
324
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
325
+ lastModified?: string | null | undefined;
326
+ priority?: number | null | undefined;
327
+ }> | null | undefined;
328
+ data: string;
329
+ mimeType: string;
330
+ type: "audio";
331
+ }> | Readonly<{
332
+ annotations?: Readonly<{
333
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
334
+ lastModified?: string | null | undefined;
335
+ priority?: number | null | undefined;
336
+ }> | null | undefined;
337
+ description?: string | null | undefined;
338
+ mimeType?: string | null | undefined;
339
+ name: string;
340
+ size?: number | null | undefined;
341
+ title?: string | null | undefined;
342
+ type: "resource_link";
343
+ uri: string;
344
+ }> | Readonly<{
345
+ annotations?: Readonly<{
346
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
347
+ lastModified?: string | null | undefined;
348
+ priority?: number | null | undefined;
349
+ }> | null | undefined;
350
+ resource: Readonly<{
351
+ mimeType?: string | null | undefined;
352
+ text: string;
353
+ uri: string;
354
+ }> | Readonly<{
355
+ blob: string;
356
+ mimeType?: string | null | undefined;
357
+ uri: string;
358
+ }>;
359
+ type: "resource";
360
+ }> | Readonly<{
361
+ annotations?: Readonly<{
362
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
363
+ lastModified?: string | null | undefined;
364
+ priority?: number | null | undefined;
365
+ }> | null | undefined;
366
+ byteLength: number;
367
+ imageKey: string;
368
+ mimeType: string;
369
+ type: "external_image";
370
+ uri?: string | null | undefined;
371
+ }> | Readonly<{
372
+ annotations?: Readonly<{
373
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
374
+ lastModified?: string | null | undefined;
375
+ priority?: number | null | undefined;
376
+ }> | null | undefined;
377
+ audioKey: string;
378
+ byteLength: number;
379
+ mimeType: string;
380
+ type: "external_audio";
381
+ }> | Readonly<{
382
+ annotations?: Readonly<{
383
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
384
+ lastModified?: string | null | undefined;
385
+ priority?: number | null | undefined;
386
+ }> | null | undefined;
387
+ byteLength: number;
388
+ encoding: "binary" | "text";
389
+ mimeType?: string | null | undefined;
390
+ resourceKey: string;
391
+ type: "external_resource";
392
+ uri: string;
393
+ }>;
394
+ messageId?: string | null | undefined;
395
+ sessionUpdate: "agent_message_chunk";
396
+ }> | Readonly<{
397
+ content: Readonly<{
398
+ annotations?: Readonly<{
399
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
400
+ lastModified?: string | null | undefined;
401
+ priority?: number | null | undefined;
402
+ }> | null | undefined;
403
+ text: string;
404
+ type: "text";
405
+ }> | Readonly<{
406
+ annotations?: Readonly<{
407
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
408
+ lastModified?: string | null | undefined;
409
+ priority?: number | null | undefined;
410
+ }> | null | undefined;
411
+ data: string;
412
+ mimeType: string;
413
+ type: "image";
414
+ uri?: string | null | undefined;
415
+ }> | Readonly<{
416
+ annotations?: Readonly<{
417
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
418
+ lastModified?: string | null | undefined;
419
+ priority?: number | null | undefined;
420
+ }> | null | undefined;
421
+ data: string;
422
+ mimeType: string;
423
+ type: "audio";
424
+ }> | Readonly<{
425
+ annotations?: Readonly<{
426
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
427
+ lastModified?: string | null | undefined;
428
+ priority?: number | null | undefined;
429
+ }> | null | undefined;
430
+ description?: string | null | undefined;
431
+ mimeType?: string | null | undefined;
432
+ name: string;
433
+ size?: number | null | undefined;
434
+ title?: string | null | undefined;
435
+ type: "resource_link";
436
+ uri: string;
437
+ }> | Readonly<{
438
+ annotations?: Readonly<{
439
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
440
+ lastModified?: string | null | undefined;
441
+ priority?: number | null | undefined;
442
+ }> | null | undefined;
443
+ resource: Readonly<{
444
+ mimeType?: string | null | undefined;
445
+ text: string;
446
+ uri: string;
447
+ }> | Readonly<{
448
+ blob: string;
449
+ mimeType?: string | null | undefined;
450
+ uri: string;
451
+ }>;
452
+ type: "resource";
453
+ }> | Readonly<{
454
+ annotations?: Readonly<{
455
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
456
+ lastModified?: string | null | undefined;
457
+ priority?: number | null | undefined;
458
+ }> | null | undefined;
459
+ byteLength: number;
460
+ imageKey: string;
461
+ mimeType: string;
462
+ type: "external_image";
463
+ uri?: string | null | undefined;
464
+ }> | Readonly<{
465
+ annotations?: Readonly<{
466
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
467
+ lastModified?: string | null | undefined;
468
+ priority?: number | null | undefined;
469
+ }> | null | undefined;
470
+ audioKey: string;
471
+ byteLength: number;
472
+ mimeType: string;
473
+ type: "external_audio";
474
+ }> | Readonly<{
475
+ annotations?: Readonly<{
476
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
477
+ lastModified?: string | null | undefined;
478
+ priority?: number | null | undefined;
479
+ }> | null | undefined;
480
+ byteLength: number;
481
+ encoding: "binary" | "text";
482
+ mimeType?: string | null | undefined;
483
+ resourceKey: string;
484
+ type: "external_resource";
485
+ uri: string;
486
+ }>;
487
+ messageId?: string | null | undefined;
488
+ sessionUpdate: "agent_thought_chunk";
489
+ }> | Readonly<{
490
+ content?: readonly (Readonly<{
491
+ content: Readonly<{
492
+ annotations?: Readonly<{
493
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
494
+ lastModified?: string | null | undefined;
495
+ priority?: number | null | undefined;
496
+ }> | null | undefined;
497
+ text: string;
498
+ type: "text";
499
+ }> | Readonly<{
500
+ annotations?: Readonly<{
501
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
502
+ lastModified?: string | null | undefined;
503
+ priority?: number | null | undefined;
504
+ }> | null | undefined;
505
+ data: string;
506
+ mimeType: string;
507
+ type: "image";
508
+ uri?: string | null | undefined;
509
+ }> | Readonly<{
510
+ annotations?: Readonly<{
511
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
512
+ lastModified?: string | null | undefined;
513
+ priority?: number | null | undefined;
514
+ }> | null | undefined;
515
+ data: string;
516
+ mimeType: string;
517
+ type: "audio";
518
+ }> | Readonly<{
519
+ annotations?: Readonly<{
520
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
521
+ lastModified?: string | null | undefined;
522
+ priority?: number | null | undefined;
523
+ }> | null | undefined;
524
+ description?: string | null | undefined;
525
+ mimeType?: string | null | undefined;
526
+ name: string;
527
+ size?: number | null | undefined;
528
+ title?: string | null | undefined;
529
+ type: "resource_link";
530
+ uri: string;
531
+ }> | Readonly<{
532
+ annotations?: Readonly<{
533
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
534
+ lastModified?: string | null | undefined;
535
+ priority?: number | null | undefined;
536
+ }> | null | undefined;
537
+ resource: Readonly<{
538
+ mimeType?: string | null | undefined;
539
+ text: string;
540
+ uri: string;
541
+ }> | Readonly<{
542
+ blob: string;
543
+ mimeType?: string | null | undefined;
544
+ uri: string;
545
+ }>;
546
+ type: "resource";
547
+ }> | Readonly<{
548
+ annotations?: Readonly<{
549
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
550
+ lastModified?: string | null | undefined;
551
+ priority?: number | null | undefined;
552
+ }> | null | undefined;
553
+ byteLength: number;
554
+ imageKey: string;
555
+ mimeType: string;
556
+ type: "external_image";
557
+ uri?: string | null | undefined;
558
+ }> | Readonly<{
559
+ annotations?: Readonly<{
560
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
561
+ lastModified?: string | null | undefined;
562
+ priority?: number | null | undefined;
563
+ }> | null | undefined;
564
+ audioKey: string;
565
+ byteLength: number;
566
+ mimeType: string;
567
+ type: "external_audio";
568
+ }> | Readonly<{
569
+ annotations?: Readonly<{
570
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
571
+ lastModified?: string | null | undefined;
572
+ priority?: number | null | undefined;
573
+ }> | null | undefined;
574
+ byteLength: number;
575
+ encoding: "binary" | "text";
576
+ mimeType?: string | null | undefined;
577
+ resourceKey: string;
578
+ type: "external_resource";
579
+ uri: string;
580
+ }>;
581
+ type: "content";
582
+ }> | Readonly<{
583
+ newText: string;
584
+ oldText?: string | null | undefined;
585
+ path: string;
586
+ type: "diff";
587
+ }> | Readonly<{
588
+ terminalId: string;
589
+ type: "terminal";
590
+ }>)[] | undefined;
591
+ kind?: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "switch_mode" | "think" | undefined;
592
+ locations?: readonly Readonly<{
593
+ line?: number | null | undefined;
594
+ path: string;
595
+ }>[] | undefined;
596
+ name?: string | null | undefined;
597
+ rawInput?: unknown;
598
+ rawOutput?: unknown;
599
+ sessionUpdate: "tool_call";
600
+ status?: "completed" | "failed" | "in_progress" | "pending" | undefined;
601
+ title: string;
602
+ toolCallId: string;
603
+ }> | Readonly<{
604
+ content?: readonly (Readonly<{
605
+ content: Readonly<{
606
+ annotations?: Readonly<{
607
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
608
+ lastModified?: string | null | undefined;
609
+ priority?: number | null | undefined;
610
+ }> | null | undefined;
611
+ text: string;
612
+ type: "text";
613
+ }> | Readonly<{
614
+ annotations?: Readonly<{
615
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
616
+ lastModified?: string | null | undefined;
617
+ priority?: number | null | undefined;
618
+ }> | null | undefined;
619
+ data: string;
620
+ mimeType: string;
621
+ type: "image";
622
+ uri?: string | null | undefined;
623
+ }> | Readonly<{
624
+ annotations?: Readonly<{
625
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
626
+ lastModified?: string | null | undefined;
627
+ priority?: number | null | undefined;
628
+ }> | null | undefined;
629
+ data: string;
630
+ mimeType: string;
631
+ type: "audio";
632
+ }> | Readonly<{
633
+ annotations?: Readonly<{
634
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
635
+ lastModified?: string | null | undefined;
636
+ priority?: number | null | undefined;
637
+ }> | null | undefined;
638
+ description?: string | null | undefined;
639
+ mimeType?: string | null | undefined;
640
+ name: string;
641
+ size?: number | null | undefined;
642
+ title?: string | null | undefined;
643
+ type: "resource_link";
644
+ uri: string;
645
+ }> | Readonly<{
646
+ annotations?: Readonly<{
647
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
648
+ lastModified?: string | null | undefined;
649
+ priority?: number | null | undefined;
650
+ }> | null | undefined;
651
+ resource: Readonly<{
652
+ mimeType?: string | null | undefined;
653
+ text: string;
654
+ uri: string;
655
+ }> | Readonly<{
656
+ blob: string;
657
+ mimeType?: string | null | undefined;
658
+ uri: string;
659
+ }>;
660
+ type: "resource";
661
+ }> | Readonly<{
662
+ annotations?: Readonly<{
663
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
664
+ lastModified?: string | null | undefined;
665
+ priority?: number | null | undefined;
666
+ }> | null | undefined;
667
+ byteLength: number;
668
+ imageKey: string;
669
+ mimeType: string;
670
+ type: "external_image";
671
+ uri?: string | null | undefined;
672
+ }> | Readonly<{
673
+ annotations?: Readonly<{
674
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
675
+ lastModified?: string | null | undefined;
676
+ priority?: number | null | undefined;
677
+ }> | null | undefined;
678
+ audioKey: string;
679
+ byteLength: number;
680
+ mimeType: string;
681
+ type: "external_audio";
682
+ }> | Readonly<{
683
+ annotations?: Readonly<{
684
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
685
+ lastModified?: string | null | undefined;
686
+ priority?: number | null | undefined;
687
+ }> | null | undefined;
688
+ byteLength: number;
689
+ encoding: "binary" | "text";
690
+ mimeType?: string | null | undefined;
691
+ resourceKey: string;
692
+ type: "external_resource";
693
+ uri: string;
694
+ }>;
695
+ type: "content";
696
+ }> | Readonly<{
697
+ newText: string;
698
+ oldText?: string | null | undefined;
699
+ path: string;
700
+ type: "diff";
701
+ }> | Readonly<{
702
+ terminalId: string;
703
+ type: "terminal";
704
+ }>)[] | null | undefined;
705
+ kind?: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "switch_mode" | "think" | null | undefined;
706
+ locations?: readonly Readonly<{
707
+ line?: number | null | undefined;
708
+ path: string;
709
+ }>[] | null | undefined;
710
+ name?: string | null | undefined;
711
+ rawInput?: unknown;
712
+ rawOutput?: unknown;
713
+ status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
714
+ title?: string | null | undefined;
715
+ sessionUpdate: "tool_call_update";
716
+ toolCallId: string;
717
+ }> | Readonly<{
718
+ entries: readonly Readonly<{
719
+ content: string;
720
+ priority: "high" | "low" | "medium";
721
+ status: "completed" | "in_progress" | "pending";
722
+ }>[];
723
+ sessionUpdate: "plan";
724
+ }> | Readonly<{
725
+ plan: Readonly<{
726
+ entries: readonly Readonly<{
727
+ content: string;
728
+ priority: "high" | "low" | "medium";
729
+ status: "completed" | "in_progress" | "pending";
730
+ }>[];
731
+ planId: string;
732
+ type: "items";
733
+ }> | Readonly<{
734
+ planId: string;
735
+ type: "file";
736
+ uri: string;
737
+ }> | Readonly<{
738
+ content: string;
739
+ planId: string;
740
+ type: "markdown";
741
+ }>;
742
+ sessionUpdate: "plan_update";
743
+ }> | Readonly<{
744
+ planId: string;
745
+ sessionUpdate: "plan_removed";
746
+ }> | Readonly<{
747
+ availableCommands: readonly Readonly<{
748
+ description: string;
749
+ input?: Readonly<{
750
+ hint: string;
751
+ }> | null | undefined;
752
+ name: string;
753
+ }>[];
754
+ sessionUpdate: "available_commands_update";
755
+ }> | Readonly<{
756
+ currentModeId: string;
757
+ sessionUpdate: "current_mode_update";
758
+ }> | Readonly<{
759
+ configOptions: readonly (Readonly<{
760
+ category?: string | null | undefined;
761
+ description?: string | null | undefined;
762
+ id: string;
763
+ name: string;
764
+ currentValue: string;
765
+ options: readonly Readonly<{
766
+ description?: string | null | undefined;
767
+ name: string;
768
+ value: string;
769
+ }>[] | readonly Readonly<{
770
+ group: string;
771
+ name: string;
772
+ options: readonly Readonly<{
773
+ description?: string | null | undefined;
774
+ name: string;
775
+ value: string;
776
+ }>[];
777
+ }>[];
778
+ type: "select";
779
+ }> | Readonly<{
780
+ category?: string | null | undefined;
781
+ description?: string | null | undefined;
782
+ id: string;
783
+ name: string;
784
+ currentValue: boolean;
785
+ type: "boolean";
786
+ }>)[];
787
+ sessionUpdate: "config_option_update";
788
+ }> | Readonly<{
789
+ sessionUpdate: "session_info_update";
790
+ title?: string | null | undefined;
791
+ updatedAt?: string | null | undefined;
792
+ }> | Readonly<{
793
+ cost?: Readonly<{
794
+ amount: number;
795
+ currency: string;
796
+ }> | null | undefined;
797
+ sessionUpdate: "usage_update";
798
+ size: number;
799
+ used: number;
800
+ }> | Readonly<{
801
+ compactionId: string;
802
+ error?: string | null | undefined;
803
+ sessionUpdate: "compaction_update";
804
+ status: string;
805
+ summary?: readonly (Readonly<{
806
+ annotations?: Readonly<{
807
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
808
+ lastModified?: string | null | undefined;
809
+ priority?: number | null | undefined;
810
+ }> | null | undefined;
811
+ text: string;
812
+ type: "text";
813
+ }> | Readonly<{
814
+ annotations?: Readonly<{
815
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
816
+ lastModified?: string | null | undefined;
817
+ priority?: number | null | undefined;
818
+ }> | null | undefined;
819
+ data: string;
820
+ mimeType: string;
821
+ type: "image";
822
+ uri?: string | null | undefined;
823
+ }> | Readonly<{
824
+ annotations?: Readonly<{
825
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
826
+ lastModified?: string | null | undefined;
827
+ priority?: number | null | undefined;
828
+ }> | null | undefined;
829
+ data: string;
830
+ mimeType: string;
831
+ type: "audio";
832
+ }> | Readonly<{
833
+ annotations?: Readonly<{
834
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
835
+ lastModified?: string | null | undefined;
836
+ priority?: number | null | undefined;
837
+ }> | null | undefined;
838
+ description?: string | null | undefined;
839
+ mimeType?: string | null | undefined;
840
+ name: string;
841
+ size?: number | null | undefined;
842
+ title?: string | null | undefined;
843
+ type: "resource_link";
844
+ uri: string;
845
+ }> | Readonly<{
846
+ annotations?: Readonly<{
847
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
848
+ lastModified?: string | null | undefined;
849
+ priority?: number | null | undefined;
850
+ }> | null | undefined;
851
+ resource: Readonly<{
852
+ mimeType?: string | null | undefined;
853
+ text: string;
854
+ uri: string;
855
+ }> | Readonly<{
856
+ blob: string;
857
+ mimeType?: string | null | undefined;
858
+ uri: string;
859
+ }>;
860
+ type: "resource";
861
+ }> | Readonly<{
862
+ annotations?: Readonly<{
863
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
864
+ lastModified?: string | null | undefined;
865
+ priority?: number | null | undefined;
866
+ }> | null | undefined;
867
+ byteLength: number;
868
+ imageKey: string;
869
+ mimeType: string;
870
+ type: "external_image";
871
+ uri?: string | null | undefined;
872
+ }> | Readonly<{
873
+ annotations?: Readonly<{
874
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
875
+ lastModified?: string | null | undefined;
876
+ priority?: number | null | undefined;
877
+ }> | null | undefined;
878
+ audioKey: string;
879
+ byteLength: number;
880
+ mimeType: string;
881
+ type: "external_audio";
882
+ }> | Readonly<{
883
+ annotations?: Readonly<{
884
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
885
+ lastModified?: string | null | undefined;
886
+ priority?: number | null | undefined;
887
+ }> | null | undefined;
888
+ byteLength: number;
889
+ encoding: "binary" | "text";
890
+ mimeType?: string | null | undefined;
891
+ resourceKey: string;
892
+ type: "external_resource";
893
+ uri: string;
894
+ }>)[] | null | undefined;
895
+ }> | Readonly<{
896
+ compactionId: string;
897
+ content: Readonly<{
898
+ annotations?: Readonly<{
899
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
900
+ lastModified?: string | null | undefined;
901
+ priority?: number | null | undefined;
902
+ }> | null | undefined;
903
+ text: string;
904
+ type: "text";
905
+ }> | Readonly<{
906
+ annotations?: Readonly<{
907
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
908
+ lastModified?: string | null | undefined;
909
+ priority?: number | null | undefined;
910
+ }> | null | undefined;
911
+ data: string;
912
+ mimeType: string;
913
+ type: "image";
914
+ uri?: string | null | undefined;
915
+ }> | Readonly<{
916
+ annotations?: Readonly<{
917
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
918
+ lastModified?: string | null | undefined;
919
+ priority?: number | null | undefined;
920
+ }> | null | undefined;
921
+ data: string;
922
+ mimeType: string;
923
+ type: "audio";
924
+ }> | Readonly<{
925
+ annotations?: Readonly<{
926
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
927
+ lastModified?: string | null | undefined;
928
+ priority?: number | null | undefined;
929
+ }> | null | undefined;
930
+ description?: string | null | undefined;
931
+ mimeType?: string | null | undefined;
932
+ name: string;
933
+ size?: number | null | undefined;
934
+ title?: string | null | undefined;
935
+ type: "resource_link";
936
+ uri: string;
937
+ }> | Readonly<{
938
+ annotations?: Readonly<{
939
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
940
+ lastModified?: string | null | undefined;
941
+ priority?: number | null | undefined;
942
+ }> | null | undefined;
943
+ resource: Readonly<{
944
+ mimeType?: string | null | undefined;
945
+ text: string;
946
+ uri: string;
947
+ }> | Readonly<{
948
+ blob: string;
949
+ mimeType?: string | null | undefined;
950
+ uri: string;
951
+ }>;
952
+ type: "resource";
953
+ }> | Readonly<{
954
+ annotations?: Readonly<{
955
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
956
+ lastModified?: string | null | undefined;
957
+ priority?: number | null | undefined;
958
+ }> | null | undefined;
959
+ byteLength: number;
960
+ imageKey: string;
961
+ mimeType: string;
962
+ type: "external_image";
963
+ uri?: string | null | undefined;
964
+ }> | Readonly<{
965
+ annotations?: Readonly<{
966
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
967
+ lastModified?: string | null | undefined;
968
+ priority?: number | null | undefined;
969
+ }> | null | undefined;
970
+ audioKey: string;
971
+ byteLength: number;
972
+ mimeType: string;
973
+ type: "external_audio";
974
+ }> | Readonly<{
975
+ annotations?: Readonly<{
976
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
977
+ lastModified?: string | null | undefined;
978
+ priority?: number | null | undefined;
979
+ }> | null | undefined;
980
+ byteLength: number;
981
+ encoding: "binary" | "text";
982
+ mimeType?: string | null | undefined;
983
+ resourceKey: string;
984
+ type: "external_resource";
985
+ uri: string;
986
+ }>;
987
+ sessionUpdate: "compaction_summary_chunk";
988
+ }>;
989
+ type: "acp";
990
+ }> | Readonly<{
991
+ eventId: string;
992
+ mobiusMetadata?: Readonly<{
993
+ omitted?: true | undefined;
994
+ }> | undefined;
995
+ provenance?: Readonly<{
996
+ kind: "original";
997
+ }> | Readonly<{
998
+ kind: "imported";
999
+ sourceEventId: string;
1000
+ sourcePosition: string;
1001
+ sourceSessionId: string;
1002
+ }> | Readonly<{
1003
+ kind: "forked";
1004
+ sourceEventId: string;
1005
+ sourcePosition: string;
1006
+ sourceSessionId: string;
1007
+ }> | undefined;
1008
+ recordedAt: string;
1009
+ sessionGenerationId: string;
1010
+ sessionId: string;
1011
+ payload: Readonly<{
1012
+ kind: "session.queue.changed";
1013
+ }> | Readonly<{
1014
+ event: Readonly<{
1015
+ commandId: string;
1016
+ interactionId: string;
1017
+ kind: "session.permission.requested";
1018
+ options: readonly Readonly<{
1019
+ kind: "allow_always" | "allow_once" | "reject_always" | "reject_once";
1020
+ name: string;
1021
+ optionId: string;
1022
+ }>[];
1023
+ sessionId: string;
1024
+ title: string;
1025
+ toolCallId: string;
1026
+ toolKind: string;
1027
+ }>;
1028
+ kind: "session.permission.requested";
1029
+ }> | Readonly<{
1030
+ event: Readonly<{
1031
+ interactionId: string;
1032
+ kind: "session.permission.resolved";
1033
+ optionId: string;
1034
+ outcome: "cancelled" | "selected";
1035
+ sessionId: string;
1036
+ }>;
1037
+ kind: "session.permission.resolved";
1038
+ }> | Readonly<{
1039
+ event: Readonly<{
1040
+ accepted: boolean;
1041
+ commandId: string;
1042
+ elicitationId: string;
1043
+ fields: readonly Readonly<{
1044
+ defaultBooleanValue: boolean;
1045
+ defaultNumberValue: number;
1046
+ defaultStringValue: string;
1047
+ description: string;
1048
+ format: string;
1049
+ hasDefaultValue: boolean;
1050
+ maximum: string;
1051
+ maximumLength: string;
1052
+ minimum: string;
1053
+ minimumLength: string;
1054
+ name: string;
1055
+ options: readonly Readonly<{
1056
+ description: string;
1057
+ label: string;
1058
+ value: string;
1059
+ }>[];
1060
+ pattern: string;
1061
+ required: boolean;
1062
+ title: string;
1063
+ type: "boolean" | "integer" | "multiselect" | "number" | "select" | "string";
1064
+ }>[];
1065
+ interactionId: string;
1066
+ kind: "session.elicitation.requested";
1067
+ message: string;
1068
+ mode: "form" | "url";
1069
+ sessionId: string;
1070
+ url: string;
1071
+ }>;
1072
+ kind: "session.elicitation.requested";
1073
+ }> | Readonly<{
1074
+ event: Readonly<{
1075
+ action: "accept" | "cancel" | "complete" | "decline";
1076
+ interactionId: string;
1077
+ kind: "session.elicitation.resolved";
1078
+ sessionId: string;
1079
+ }>;
1080
+ kind: "session.elicitation.resolved";
1081
+ }> | Readonly<{
1082
+ commandId: string;
1083
+ content: readonly (Readonly<{
1084
+ annotations?: Readonly<{
1085
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1086
+ lastModified?: string | null | undefined;
1087
+ priority?: number | null | undefined;
1088
+ }> | null | undefined;
1089
+ text: string;
1090
+ type: "text";
1091
+ }> | Readonly<{
1092
+ annotations?: Readonly<{
1093
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1094
+ lastModified?: string | null | undefined;
1095
+ priority?: number | null | undefined;
1096
+ }> | null | undefined;
1097
+ data: string;
1098
+ mimeType: string;
1099
+ type: "image";
1100
+ uri?: string | null | undefined;
1101
+ }> | Readonly<{
1102
+ annotations?: Readonly<{
1103
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1104
+ lastModified?: string | null | undefined;
1105
+ priority?: number | null | undefined;
1106
+ }> | null | undefined;
1107
+ data: string;
1108
+ mimeType: string;
1109
+ type: "audio";
1110
+ }> | Readonly<{
1111
+ annotations?: Readonly<{
1112
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1113
+ lastModified?: string | null | undefined;
1114
+ priority?: number | null | undefined;
1115
+ }> | null | undefined;
1116
+ description?: string | null | undefined;
1117
+ mimeType?: string | null | undefined;
1118
+ name: string;
1119
+ size?: number | null | undefined;
1120
+ title?: string | null | undefined;
1121
+ type: "resource_link";
1122
+ uri: string;
1123
+ }> | Readonly<{
1124
+ annotations?: Readonly<{
1125
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1126
+ lastModified?: string | null | undefined;
1127
+ priority?: number | null | undefined;
1128
+ }> | null | undefined;
1129
+ resource: Readonly<{
1130
+ mimeType?: string | null | undefined;
1131
+ text: string;
1132
+ uri: string;
1133
+ }> | Readonly<{
1134
+ blob: string;
1135
+ mimeType?: string | null | undefined;
1136
+ uri: string;
1137
+ }>;
1138
+ type: "resource";
1139
+ }> | Readonly<{
1140
+ annotations?: Readonly<{
1141
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1142
+ lastModified?: string | null | undefined;
1143
+ priority?: number | null | undefined;
1144
+ }> | null | undefined;
1145
+ byteLength: number;
1146
+ imageKey: string;
1147
+ mimeType: string;
1148
+ type: "external_image";
1149
+ uri?: string | null | undefined;
1150
+ }> | Readonly<{
1151
+ annotations?: Readonly<{
1152
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1153
+ lastModified?: string | null | undefined;
1154
+ priority?: number | null | undefined;
1155
+ }> | null | undefined;
1156
+ audioKey: string;
1157
+ byteLength: number;
1158
+ mimeType: string;
1159
+ type: "external_audio";
1160
+ }> | Readonly<{
1161
+ annotations?: Readonly<{
1162
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1163
+ lastModified?: string | null | undefined;
1164
+ priority?: number | null | undefined;
1165
+ }> | null | undefined;
1166
+ byteLength: number;
1167
+ encoding: "binary" | "text";
1168
+ mimeType?: string | null | undefined;
1169
+ resourceKey: string;
1170
+ type: "external_resource";
1171
+ uri: string;
1172
+ }>)[];
1173
+ disposition?: string | undefined;
1174
+ kind: "prompt.requested";
1175
+ context?: import("./session-event-log.ts").PromptExecutionContext | undefined;
1176
+ targetCommandId?: string | undefined;
1177
+ }> | Readonly<{
1178
+ commandId: string;
1179
+ attemptId: string;
1180
+ epoch: string;
1181
+ kind: "prompt.started";
1182
+ }> | Readonly<{
1183
+ commandId: string;
1184
+ kind: "prompt.completed";
1185
+ stopReason: string;
1186
+ }> | Readonly<{
1187
+ commandId: string;
1188
+ code: string;
1189
+ kind: "prompt.failed-before-start";
1190
+ message: string;
1191
+ }> | Readonly<{
1192
+ commandId: string;
1193
+ attemptId: string;
1194
+ code: string;
1195
+ kind: "prompt.failed";
1196
+ message: string;
1197
+ }>;
1198
+ type: "lifecycle-metadata";
1199
+ }>)[];
1200
+ nextCursor: string | null;
1201
+ sessionGenerationId: string;
1202
+ tailCursor: string;
1203
+ truncated: boolean;
1204
+ version: 2;
1205
+ }>;
1206
+ queuedPromptRequests: readonly Readonly<{
1207
+ commandId: string;
1208
+ content: readonly (Readonly<{
1209
+ annotations?: Readonly<{
1210
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1211
+ lastModified?: string | null | undefined;
1212
+ priority?: number | null | undefined;
1213
+ }> | null | undefined;
1214
+ text: string;
1215
+ type: "text";
1216
+ }> | Readonly<{
1217
+ annotations?: Readonly<{
1218
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1219
+ lastModified?: string | null | undefined;
1220
+ priority?: number | null | undefined;
1221
+ }> | null | undefined;
1222
+ data: string;
1223
+ mimeType: string;
1224
+ type: "image";
1225
+ uri?: string | null | undefined;
1226
+ }> | Readonly<{
1227
+ annotations?: Readonly<{
1228
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1229
+ lastModified?: string | null | undefined;
1230
+ priority?: number | null | undefined;
1231
+ }> | null | undefined;
1232
+ data: string;
1233
+ mimeType: string;
1234
+ type: "audio";
1235
+ }> | Readonly<{
1236
+ annotations?: Readonly<{
1237
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1238
+ lastModified?: string | null | undefined;
1239
+ priority?: number | null | undefined;
1240
+ }> | null | undefined;
1241
+ description?: string | null | undefined;
1242
+ mimeType?: string | null | undefined;
1243
+ name: string;
1244
+ size?: number | null | undefined;
1245
+ title?: string | null | undefined;
1246
+ type: "resource_link";
1247
+ uri: string;
1248
+ }> | Readonly<{
1249
+ annotations?: Readonly<{
1250
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1251
+ lastModified?: string | null | undefined;
1252
+ priority?: number | null | undefined;
1253
+ }> | null | undefined;
1254
+ resource: Readonly<{
1255
+ mimeType?: string | null | undefined;
1256
+ text: string;
1257
+ uri: string;
1258
+ }> | Readonly<{
1259
+ blob: string;
1260
+ mimeType?: string | null | undefined;
1261
+ uri: string;
1262
+ }>;
1263
+ type: "resource";
1264
+ }> | Readonly<{
1265
+ annotations?: Readonly<{
1266
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1267
+ lastModified?: string | null | undefined;
1268
+ priority?: number | null | undefined;
1269
+ }> | null | undefined;
1270
+ byteLength: number;
1271
+ imageKey: string;
1272
+ mimeType: string;
1273
+ type: "external_image";
1274
+ uri?: string | null | undefined;
1275
+ }> | Readonly<{
1276
+ annotations?: Readonly<{
1277
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1278
+ lastModified?: string | null | undefined;
1279
+ priority?: number | null | undefined;
1280
+ }> | null | undefined;
1281
+ audioKey: string;
1282
+ byteLength: number;
1283
+ mimeType: string;
1284
+ type: "external_audio";
1285
+ }> | Readonly<{
1286
+ annotations?: Readonly<{
1287
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1288
+ lastModified?: string | null | undefined;
1289
+ priority?: number | null | undefined;
1290
+ }> | null | undefined;
1291
+ byteLength: number;
1292
+ encoding: "binary" | "text";
1293
+ mimeType?: string | null | undefined;
1294
+ resourceKey: string;
1295
+ type: "external_resource";
1296
+ uri: string;
1297
+ }>)[];
1298
+ disposition?: string | undefined;
1299
+ targetCommandId?: string | undefined;
1300
+ }>[];
1301
+ }>;
1302
+ requestId: string;
1303
+ sessionId: string;
1304
+ kind: "session.preview-history.page.loaded";
1305
+ }>>;
1306
+ readonly "session.config.updated": MessageSignature<Readonly<{
1307
+ configOptions: readonly Readonly<{
1308
+ booleanValue: boolean;
1309
+ category: string;
1310
+ currentValue: string;
1311
+ description: string;
1312
+ id: string;
1313
+ name: string;
1314
+ type: "boolean" | "select";
1315
+ values: readonly Readonly<{
1316
+ description: string;
1317
+ groupId: string;
1318
+ groupName: string;
1319
+ name: string;
1320
+ value: string;
1321
+ }>[];
1322
+ }>[];
1323
+ kind: "session.config.updated";
1324
+ requestId: string;
1325
+ sessionId: string;
1326
+ }>>;
1327
+ readonly "session.renamed": MessageSignature<Readonly<{
1328
+ kind: "session.renamed";
1329
+ requestId: string;
1330
+ sessionId: string;
1331
+ title: string;
1332
+ updatedAt: string;
1333
+ }>>;
1334
+ readonly "agent.settings.discovered": MessageSignature<Readonly<{
1335
+ agentId: string;
1336
+ agentName: string;
1337
+ agentVersion: string;
1338
+ kind: "agent.settings.discovered";
1339
+ modelEffort: Readonly<{
1340
+ effortSettingId: string;
1341
+ modelSettingId: string;
1342
+ resolution: "complete" | "on_model_selection" | "unavailable";
1343
+ unsupportedModelIds: readonly string[];
1344
+ valuesByModel: Readonly<Record<string, readonly Readonly<{
1345
+ description: string;
1346
+ groupId: string;
1347
+ groupName: string;
1348
+ name: string;
1349
+ value: string;
1350
+ }>[]>>;
1351
+ }>;
1352
+ requestId: string;
1353
+ settings: readonly Readonly<{
1354
+ booleanValue: boolean;
1355
+ category: string;
1356
+ defaultValue: string;
1357
+ description: string;
1358
+ id: string;
1359
+ name: string;
1360
+ type: "boolean" | "select";
1361
+ values: readonly Readonly<{
1362
+ description: string;
1363
+ groupId: string;
1364
+ groupName: string;
1365
+ name: string;
1366
+ value: string;
1367
+ }>[];
1368
+ }>[];
1369
+ settingsRevision: string;
1370
+ }>>;
1371
+ readonly "agent.settings.discovery.failed": MessageSignature<Readonly<{
1372
+ code: string;
1373
+ kind: "agent.settings.discovery.failed";
1374
+ message: string;
1375
+ requestId: string;
1376
+ }>>;
1377
+ readonly "file.begin": MessageSignature<Readonly<{
1378
+ byteLength: number;
1379
+ kind: "file.begin";
1380
+ mediaType: string;
1381
+ modifiedAt: string;
1382
+ name: string;
1383
+ requestId: string;
1384
+ sessionId: string;
1385
+ }>>;
1386
+ readonly "file.chunk": MessageSignature<Readonly<{
1387
+ data: string;
1388
+ kind: "file.chunk";
1389
+ requestId: string;
1390
+ sequence: number;
1391
+ sessionId: string;
1392
+ }>>;
1393
+ readonly "file.end": MessageSignature<Readonly<{
1394
+ kind: "file.end";
1395
+ requestId: string;
1396
+ sessionId: string;
1397
+ }>>;
1398
+ readonly "file.failed": MessageSignature<Readonly<{
1399
+ code: string;
1400
+ kind: "file.failed";
1401
+ message: string;
1402
+ requestId: string;
1403
+ sessionId: string;
1404
+ }>>;
1405
+ readonly "session.listed": MessageSignature<Readonly<{
1406
+ entries: readonly Readonly<{
1407
+ additionalDirectories: readonly Readonly<{
1408
+ directoryId: string;
1409
+ name: string;
1410
+ }>[];
1411
+ agentId: string;
1412
+ directoryId: string;
1413
+ directoryLabel: string;
1414
+ prompted: boolean;
1415
+ sessionId: string;
1416
+ status: Readonly<{
1417
+ kind: "idle";
1418
+ }> | Readonly<{
1419
+ commandId: string;
1420
+ kind: "working";
1421
+ }>;
1422
+ title: string;
1423
+ updatedAt: string;
1424
+ }>[];
1425
+ kind: "session.listed";
1426
+ requestId: string;
1427
+ }>>;
1428
+ readonly "session.queried": MessageSignature<Readonly<{
1429
+ entries: readonly Readonly<{
1430
+ additionalDirectories: readonly Readonly<{
1431
+ directoryId: string;
1432
+ name: string;
1433
+ }>[];
1434
+ agentId: string;
1435
+ directoryId: string;
1436
+ directoryLabel: string;
1437
+ prompted: boolean;
1438
+ sessionId: string;
1439
+ status: Readonly<{
1440
+ kind: "idle";
1441
+ }> | Readonly<{
1442
+ commandId: string;
1443
+ kind: "working";
1444
+ }>;
1445
+ title: string;
1446
+ updatedAt: string;
1447
+ }>[];
1448
+ kind: "session.queried";
1449
+ requestId: string;
1450
+ }>>;
1451
+ readonly "session.restored": MessageSignature<Readonly<{
1452
+ entry: Readonly<{
1453
+ additionalDirectories: readonly Readonly<{
1454
+ directoryId: string;
1455
+ name: string;
1456
+ }>[];
1457
+ agentId: string;
1458
+ directoryId: string;
1459
+ directoryLabel: string;
1460
+ prompted: boolean;
1461
+ sessionId: string;
1462
+ status: Readonly<{
1463
+ kind: "idle";
1464
+ }> | Readonly<{
1465
+ commandId: string;
1466
+ kind: "working";
1467
+ }>;
1468
+ title: string;
1469
+ updatedAt: string;
1470
+ }>;
1471
+ kind: "session.restored";
1472
+ ready: Readonly<{
1473
+ additionalDirectories: readonly Readonly<{
1474
+ directoryId: string;
1475
+ name: string;
1476
+ }>[];
1477
+ agentId: string;
1478
+ agentName: string;
1479
+ agentVersion: string;
1480
+ capabilities: Readonly<{
1481
+ additionalDirectories: boolean;
1482
+ audioPrompt: boolean;
1483
+ closeSession: boolean;
1484
+ deleteSession: boolean;
1485
+ embeddedContextPrompt: boolean;
1486
+ imagePrompt: boolean;
1487
+ listSessions: boolean;
1488
+ loadSession: boolean;
1489
+ promptQueueing: boolean;
1490
+ renameSession: boolean;
1491
+ resumeSession: boolean;
1492
+ steering: boolean;
1493
+ unstableForkSession: boolean;
1494
+ }>;
1495
+ commands: readonly Readonly<{
1496
+ description: string;
1497
+ inputHint: string;
1498
+ name: string;
1499
+ }>[];
1500
+ configOptions: readonly Readonly<{
1501
+ booleanValue: boolean;
1502
+ category: string;
1503
+ currentValue: string;
1504
+ description: string;
1505
+ id: string;
1506
+ name: string;
1507
+ type: "boolean" | "select";
1508
+ values: readonly Readonly<{
1509
+ description: string;
1510
+ groupId: string;
1511
+ groupName: string;
1512
+ name: string;
1513
+ value: string;
1514
+ }>[];
1515
+ }>[];
1516
+ directoryId: string;
1517
+ directoryLabel: string;
1518
+ kind: "session.ready";
1519
+ requestId: string;
1520
+ restored: boolean;
1521
+ runtimeTimings?: readonly Readonly<{
1522
+ durationMilliseconds: number;
1523
+ name: string;
1524
+ }>[] | undefined;
1525
+ sessionId: string;
1526
+ }>;
1527
+ requestId: string;
1528
+ }>>;
1529
+ readonly "session.status.changed": MessageSignature<Readonly<{
1530
+ kind: "session.status.changed";
1531
+ sessionId: string;
1532
+ status: Readonly<{
1533
+ kind: "idle";
1534
+ }> | Readonly<{
1535
+ commandId: string;
1536
+ kind: "working";
1537
+ }>;
1538
+ }>>;
1539
+ readonly "session.info.updated": MessageSignature<Readonly<{
1540
+ kind: "session.info.updated";
1541
+ projectId?: string | undefined;
1542
+ sessionId: string;
1543
+ title: string | null;
1544
+ updatedAt: string;
1545
+ }>>;
1546
+ readonly "native.session.result": MessageSignature<Readonly<{
1547
+ requestId: string;
1548
+ sessionId: string;
1549
+ kind: "native.session.result";
1550
+ action: "active-turn";
1551
+ targetSessionId: string;
1552
+ queued: readonly Readonly<{
1553
+ commandId: string;
1554
+ prompt: string;
1555
+ images: readonly Readonly<{
1556
+ data: string;
1557
+ mimeType: string;
1558
+ name: string;
1559
+ }>[];
1560
+ }>[];
1561
+ turn: Readonly<{
1562
+ commandId: string;
1563
+ epoch: string;
1564
+ interaction: Readonly<{
1565
+ commandId: string;
1566
+ interactionId: string;
1567
+ kind: "session.permission.requested";
1568
+ options: readonly Readonly<{
1569
+ kind: "allow_always" | "allow_once" | "reject_always" | "reject_once";
1570
+ name: string;
1571
+ optionId: string;
1572
+ }>[];
1573
+ sessionId: string;
1574
+ title: string;
1575
+ toolCallId: string;
1576
+ toolKind: string;
1577
+ }> | Readonly<{
1578
+ accepted: boolean;
1579
+ commandId: string;
1580
+ elicitationId: string;
1581
+ fields: readonly Readonly<{
1582
+ defaultBooleanValue: boolean;
1583
+ defaultNumberValue: number;
1584
+ defaultStringValue: string;
1585
+ description: string;
1586
+ format: string;
1587
+ hasDefaultValue: boolean;
1588
+ maximum: string;
1589
+ maximumLength: string;
1590
+ minimum: string;
1591
+ minimumLength: string;
1592
+ name: string;
1593
+ options: readonly Readonly<{
1594
+ description: string;
1595
+ label: string;
1596
+ value: string;
1597
+ }>[];
1598
+ pattern: string;
1599
+ required: boolean;
1600
+ title: string;
1601
+ type: "boolean" | "integer" | "multiselect" | "number" | "select" | "string";
1602
+ }>[];
1603
+ interactionId: string;
1604
+ kind: "session.elicitation.requested";
1605
+ message: string;
1606
+ mode: "form" | "url";
1607
+ sessionId: string;
1608
+ url: string;
1609
+ }> | null;
1610
+ sequence: number;
1611
+ state: "running";
1612
+ }> | null;
1613
+ }> | Readonly<{
1614
+ requestId: string;
1615
+ sessionId: string;
1616
+ kind: "native.session.result";
1617
+ action: "find";
1618
+ entry: Readonly<{
1619
+ entryId: string;
1620
+ mobiusSessionIds: readonly string[];
1621
+ nativeSessionId: string;
1622
+ title: string;
1623
+ directoryId: string;
1624
+ directoryLabel: string;
1625
+ updatedAt: string | null;
1626
+ additionalDirectories: readonly Readonly<{
1627
+ directoryId: string;
1628
+ name: string;
1629
+ }>[];
1630
+ }>;
1631
+ }> | Readonly<{
1632
+ requestId: string;
1633
+ sessionId: string;
1634
+ kind: "native.session.result";
1635
+ action: "list";
1636
+ capabilities: Readonly<{
1637
+ additionalDirectories: boolean;
1638
+ audioPrompt: boolean;
1639
+ closeSession: boolean;
1640
+ deleteSession: boolean;
1641
+ embeddedContextPrompt: boolean;
1642
+ imagePrompt: boolean;
1643
+ listSessions: boolean;
1644
+ loadSession: boolean;
1645
+ promptQueueing: boolean;
1646
+ renameSession: boolean;
1647
+ resumeSession: boolean;
1648
+ steering: boolean;
1649
+ unstableForkSession: boolean;
1650
+ }>;
1651
+ entries: readonly Readonly<{
1652
+ entryId: string;
1653
+ mobiusSessionIds: readonly string[];
1654
+ nativeSessionId: string;
1655
+ title: string;
1656
+ directoryId: string;
1657
+ directoryLabel: string;
1658
+ updatedAt: string | null;
1659
+ additionalDirectories: readonly Readonly<{
1660
+ directoryId: string;
1661
+ name: string;
1662
+ }>[];
1663
+ }>[];
1664
+ nextCursor: string | null;
1665
+ }> | Readonly<{
1666
+ requestId: string;
1667
+ sessionId: string;
1668
+ kind: "native.session.result";
1669
+ action: "fork" | "import";
1670
+ targetSessionId: string;
1671
+ ready: Readonly<{
1672
+ additionalDirectories: readonly Readonly<{
1673
+ directoryId: string;
1674
+ name: string;
1675
+ }>[];
1676
+ agentId: string;
1677
+ agentName: string;
1678
+ agentVersion: string;
1679
+ capabilities: Readonly<{
1680
+ additionalDirectories: boolean;
1681
+ audioPrompt: boolean;
1682
+ closeSession: boolean;
1683
+ deleteSession: boolean;
1684
+ embeddedContextPrompt: boolean;
1685
+ imagePrompt: boolean;
1686
+ listSessions: boolean;
1687
+ loadSession: boolean;
1688
+ promptQueueing: boolean;
1689
+ renameSession: boolean;
1690
+ resumeSession: boolean;
1691
+ steering: boolean;
1692
+ unstableForkSession: boolean;
1693
+ }>;
1694
+ commands: readonly Readonly<{
1695
+ description: string;
1696
+ inputHint: string;
1697
+ name: string;
1698
+ }>[];
1699
+ configOptions: readonly Readonly<{
1700
+ booleanValue: boolean;
1701
+ category: string;
1702
+ currentValue: string;
1703
+ description: string;
1704
+ id: string;
1705
+ name: string;
1706
+ type: "boolean" | "select";
1707
+ values: readonly Readonly<{
1708
+ description: string;
1709
+ groupId: string;
1710
+ groupName: string;
1711
+ name: string;
1712
+ value: string;
1713
+ }>[];
1714
+ }>[];
1715
+ directoryId: string;
1716
+ directoryLabel: string;
1717
+ kind: "session.ready";
1718
+ requestId: string;
1719
+ restored: boolean;
1720
+ runtimeTimings?: readonly Readonly<{
1721
+ durationMilliseconds: number;
1722
+ name: string;
1723
+ }>[] | undefined;
1724
+ sessionId: string;
1725
+ }>;
1726
+ title: string;
1727
+ }>>;
1728
+ readonly "runtime.heartbeat": MessageSignature<import("./messages.ts").RuntimeHeartbeatEvent>;
1729
+ readonly "runtime.upgrade.result": MessageSignature<Readonly<{
1730
+ kind: "runtime.upgrade.result";
1731
+ requestId: string & import("zod").$brand<"Identifier">;
1732
+ version: string;
1733
+ targetVersion: string;
1734
+ outcome: Readonly<{
1735
+ status: "accepted";
1736
+ }> | Readonly<{
1737
+ status: "succeeded";
1738
+ }> | Readonly<{
1739
+ status: "failed";
1740
+ stdout?: string | undefined;
1741
+ stderr?: string | undefined;
1742
+ code: string;
1743
+ message: string;
1744
+ retryAfter: number;
1745
+ }> | Readonly<{
1746
+ status: "rejected";
1747
+ code: string;
1748
+ message: string;
1749
+ retryAfter: number;
1750
+ }>;
1751
+ }>>;
1752
+ readonly "runtime.diagnostics.result": MessageSignature<Readonly<{
1753
+ kind: "runtime.diagnostics.result";
1754
+ requestId: string & import("zod").$brand<"Identifier">;
1755
+ truncated: boolean;
1756
+ version: string;
1757
+ entries: readonly Readonly<Record<string, string>>[];
1758
+ }>>;
1759
+ readonly "runtime.pong": MessageSignature<import("./messages.ts").RuntimePongEvent>;
1760
+ readonly "session.event.v2": MessageSignature<Readonly<{
1761
+ events: readonly (Readonly<{
1762
+ eventId: string;
1763
+ mobiusMetadata?: Readonly<{
1764
+ omitted?: true | undefined;
1765
+ }> | undefined;
1766
+ provenance?: Readonly<{
1767
+ kind: "original";
1768
+ }> | Readonly<{
1769
+ kind: "imported";
1770
+ sourceEventId: string;
1771
+ sourcePosition: string;
1772
+ sourceSessionId: string;
1773
+ }> | Readonly<{
1774
+ kind: "forked";
1775
+ sourceEventId: string;
1776
+ sourcePosition: string;
1777
+ sourceSessionId: string;
1778
+ }> | undefined;
1779
+ recordedAt: string;
1780
+ sessionGenerationId: string;
1781
+ sessionId: string;
1782
+ position: string;
1783
+ payload: Readonly<{
1784
+ content: Readonly<{
1785
+ annotations?: Readonly<{
1786
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1787
+ lastModified?: string | null | undefined;
1788
+ priority?: number | null | undefined;
1789
+ }> | null | undefined;
1790
+ text: string;
1791
+ type: "text";
1792
+ }> | Readonly<{
1793
+ annotations?: Readonly<{
1794
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1795
+ lastModified?: string | null | undefined;
1796
+ priority?: number | null | undefined;
1797
+ }> | null | undefined;
1798
+ data: string;
1799
+ mimeType: string;
1800
+ type: "image";
1801
+ uri?: string | null | undefined;
1802
+ }> | Readonly<{
1803
+ annotations?: Readonly<{
1804
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1805
+ lastModified?: string | null | undefined;
1806
+ priority?: number | null | undefined;
1807
+ }> | null | undefined;
1808
+ data: string;
1809
+ mimeType: string;
1810
+ type: "audio";
1811
+ }> | Readonly<{
1812
+ annotations?: Readonly<{
1813
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1814
+ lastModified?: string | null | undefined;
1815
+ priority?: number | null | undefined;
1816
+ }> | null | undefined;
1817
+ description?: string | null | undefined;
1818
+ mimeType?: string | null | undefined;
1819
+ name: string;
1820
+ size?: number | null | undefined;
1821
+ title?: string | null | undefined;
1822
+ type: "resource_link";
1823
+ uri: string;
1824
+ }> | Readonly<{
1825
+ annotations?: Readonly<{
1826
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1827
+ lastModified?: string | null | undefined;
1828
+ priority?: number | null | undefined;
1829
+ }> | null | undefined;
1830
+ resource: Readonly<{
1831
+ mimeType?: string | null | undefined;
1832
+ text: string;
1833
+ uri: string;
1834
+ }> | Readonly<{
1835
+ blob: string;
1836
+ mimeType?: string | null | undefined;
1837
+ uri: string;
1838
+ }>;
1839
+ type: "resource";
1840
+ }> | Readonly<{
1841
+ annotations?: Readonly<{
1842
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1843
+ lastModified?: string | null | undefined;
1844
+ priority?: number | null | undefined;
1845
+ }> | null | undefined;
1846
+ byteLength: number;
1847
+ imageKey: string;
1848
+ mimeType: string;
1849
+ type: "external_image";
1850
+ uri?: string | null | undefined;
1851
+ }> | Readonly<{
1852
+ annotations?: Readonly<{
1853
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1854
+ lastModified?: string | null | undefined;
1855
+ priority?: number | null | undefined;
1856
+ }> | null | undefined;
1857
+ audioKey: string;
1858
+ byteLength: number;
1859
+ mimeType: string;
1860
+ type: "external_audio";
1861
+ }> | Readonly<{
1862
+ annotations?: Readonly<{
1863
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1864
+ lastModified?: string | null | undefined;
1865
+ priority?: number | null | undefined;
1866
+ }> | null | undefined;
1867
+ byteLength: number;
1868
+ encoding: "binary" | "text";
1869
+ mimeType?: string | null | undefined;
1870
+ resourceKey: string;
1871
+ type: "external_resource";
1872
+ uri: string;
1873
+ }>;
1874
+ messageId?: string | null | undefined;
1875
+ sessionUpdate: "user_message_chunk";
1876
+ }> | Readonly<{
1877
+ content: Readonly<{
1878
+ annotations?: Readonly<{
1879
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1880
+ lastModified?: string | null | undefined;
1881
+ priority?: number | null | undefined;
1882
+ }> | null | undefined;
1883
+ text: string;
1884
+ type: "text";
1885
+ }> | Readonly<{
1886
+ annotations?: Readonly<{
1887
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1888
+ lastModified?: string | null | undefined;
1889
+ priority?: number | null | undefined;
1890
+ }> | null | undefined;
1891
+ data: string;
1892
+ mimeType: string;
1893
+ type: "image";
1894
+ uri?: string | null | undefined;
1895
+ }> | Readonly<{
1896
+ annotations?: Readonly<{
1897
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1898
+ lastModified?: string | null | undefined;
1899
+ priority?: number | null | undefined;
1900
+ }> | null | undefined;
1901
+ data: string;
1902
+ mimeType: string;
1903
+ type: "audio";
1904
+ }> | Readonly<{
1905
+ annotations?: Readonly<{
1906
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1907
+ lastModified?: string | null | undefined;
1908
+ priority?: number | null | undefined;
1909
+ }> | null | undefined;
1910
+ description?: string | null | undefined;
1911
+ mimeType?: string | null | undefined;
1912
+ name: string;
1913
+ size?: number | null | undefined;
1914
+ title?: string | null | undefined;
1915
+ type: "resource_link";
1916
+ uri: string;
1917
+ }> | Readonly<{
1918
+ annotations?: Readonly<{
1919
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1920
+ lastModified?: string | null | undefined;
1921
+ priority?: number | null | undefined;
1922
+ }> | null | undefined;
1923
+ resource: Readonly<{
1924
+ mimeType?: string | null | undefined;
1925
+ text: string;
1926
+ uri: string;
1927
+ }> | Readonly<{
1928
+ blob: string;
1929
+ mimeType?: string | null | undefined;
1930
+ uri: string;
1931
+ }>;
1932
+ type: "resource";
1933
+ }> | Readonly<{
1934
+ annotations?: Readonly<{
1935
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1936
+ lastModified?: string | null | undefined;
1937
+ priority?: number | null | undefined;
1938
+ }> | null | undefined;
1939
+ byteLength: number;
1940
+ imageKey: string;
1941
+ mimeType: string;
1942
+ type: "external_image";
1943
+ uri?: string | null | undefined;
1944
+ }> | Readonly<{
1945
+ annotations?: Readonly<{
1946
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1947
+ lastModified?: string | null | undefined;
1948
+ priority?: number | null | undefined;
1949
+ }> | null | undefined;
1950
+ audioKey: string;
1951
+ byteLength: number;
1952
+ mimeType: string;
1953
+ type: "external_audio";
1954
+ }> | Readonly<{
1955
+ annotations?: Readonly<{
1956
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1957
+ lastModified?: string | null | undefined;
1958
+ priority?: number | null | undefined;
1959
+ }> | null | undefined;
1960
+ byteLength: number;
1961
+ encoding: "binary" | "text";
1962
+ mimeType?: string | null | undefined;
1963
+ resourceKey: string;
1964
+ type: "external_resource";
1965
+ uri: string;
1966
+ }>;
1967
+ messageId?: string | null | undefined;
1968
+ sessionUpdate: "agent_message_chunk";
1969
+ }> | Readonly<{
1970
+ content: Readonly<{
1971
+ annotations?: Readonly<{
1972
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1973
+ lastModified?: string | null | undefined;
1974
+ priority?: number | null | undefined;
1975
+ }> | null | undefined;
1976
+ text: string;
1977
+ type: "text";
1978
+ }> | Readonly<{
1979
+ annotations?: Readonly<{
1980
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1981
+ lastModified?: string | null | undefined;
1982
+ priority?: number | null | undefined;
1983
+ }> | null | undefined;
1984
+ data: string;
1985
+ mimeType: string;
1986
+ type: "image";
1987
+ uri?: string | null | undefined;
1988
+ }> | Readonly<{
1989
+ annotations?: Readonly<{
1990
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
1991
+ lastModified?: string | null | undefined;
1992
+ priority?: number | null | undefined;
1993
+ }> | null | undefined;
1994
+ data: string;
1995
+ mimeType: string;
1996
+ type: "audio";
1997
+ }> | Readonly<{
1998
+ annotations?: Readonly<{
1999
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2000
+ lastModified?: string | null | undefined;
2001
+ priority?: number | null | undefined;
2002
+ }> | null | undefined;
2003
+ description?: string | null | undefined;
2004
+ mimeType?: string | null | undefined;
2005
+ name: string;
2006
+ size?: number | null | undefined;
2007
+ title?: string | null | undefined;
2008
+ type: "resource_link";
2009
+ uri: string;
2010
+ }> | Readonly<{
2011
+ annotations?: Readonly<{
2012
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2013
+ lastModified?: string | null | undefined;
2014
+ priority?: number | null | undefined;
2015
+ }> | null | undefined;
2016
+ resource: Readonly<{
2017
+ mimeType?: string | null | undefined;
2018
+ text: string;
2019
+ uri: string;
2020
+ }> | Readonly<{
2021
+ blob: string;
2022
+ mimeType?: string | null | undefined;
2023
+ uri: string;
2024
+ }>;
2025
+ type: "resource";
2026
+ }> | Readonly<{
2027
+ annotations?: Readonly<{
2028
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2029
+ lastModified?: string | null | undefined;
2030
+ priority?: number | null | undefined;
2031
+ }> | null | undefined;
2032
+ byteLength: number;
2033
+ imageKey: string;
2034
+ mimeType: string;
2035
+ type: "external_image";
2036
+ uri?: string | null | undefined;
2037
+ }> | Readonly<{
2038
+ annotations?: Readonly<{
2039
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2040
+ lastModified?: string | null | undefined;
2041
+ priority?: number | null | undefined;
2042
+ }> | null | undefined;
2043
+ audioKey: string;
2044
+ byteLength: number;
2045
+ mimeType: string;
2046
+ type: "external_audio";
2047
+ }> | Readonly<{
2048
+ annotations?: Readonly<{
2049
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2050
+ lastModified?: string | null | undefined;
2051
+ priority?: number | null | undefined;
2052
+ }> | null | undefined;
2053
+ byteLength: number;
2054
+ encoding: "binary" | "text";
2055
+ mimeType?: string | null | undefined;
2056
+ resourceKey: string;
2057
+ type: "external_resource";
2058
+ uri: string;
2059
+ }>;
2060
+ messageId?: string | null | undefined;
2061
+ sessionUpdate: "agent_thought_chunk";
2062
+ }> | Readonly<{
2063
+ content?: readonly (Readonly<{
2064
+ content: Readonly<{
2065
+ annotations?: Readonly<{
2066
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2067
+ lastModified?: string | null | undefined;
2068
+ priority?: number | null | undefined;
2069
+ }> | null | undefined;
2070
+ text: string;
2071
+ type: "text";
2072
+ }> | Readonly<{
2073
+ annotations?: Readonly<{
2074
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2075
+ lastModified?: string | null | undefined;
2076
+ priority?: number | null | undefined;
2077
+ }> | null | undefined;
2078
+ data: string;
2079
+ mimeType: string;
2080
+ type: "image";
2081
+ uri?: string | null | undefined;
2082
+ }> | Readonly<{
2083
+ annotations?: Readonly<{
2084
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2085
+ lastModified?: string | null | undefined;
2086
+ priority?: number | null | undefined;
2087
+ }> | null | undefined;
2088
+ data: string;
2089
+ mimeType: string;
2090
+ type: "audio";
2091
+ }> | Readonly<{
2092
+ annotations?: Readonly<{
2093
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2094
+ lastModified?: string | null | undefined;
2095
+ priority?: number | null | undefined;
2096
+ }> | null | undefined;
2097
+ description?: string | null | undefined;
2098
+ mimeType?: string | null | undefined;
2099
+ name: string;
2100
+ size?: number | null | undefined;
2101
+ title?: string | null | undefined;
2102
+ type: "resource_link";
2103
+ uri: string;
2104
+ }> | Readonly<{
2105
+ annotations?: Readonly<{
2106
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2107
+ lastModified?: string | null | undefined;
2108
+ priority?: number | null | undefined;
2109
+ }> | null | undefined;
2110
+ resource: Readonly<{
2111
+ mimeType?: string | null | undefined;
2112
+ text: string;
2113
+ uri: string;
2114
+ }> | Readonly<{
2115
+ blob: string;
2116
+ mimeType?: string | null | undefined;
2117
+ uri: string;
2118
+ }>;
2119
+ type: "resource";
2120
+ }> | Readonly<{
2121
+ annotations?: Readonly<{
2122
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2123
+ lastModified?: string | null | undefined;
2124
+ priority?: number | null | undefined;
2125
+ }> | null | undefined;
2126
+ byteLength: number;
2127
+ imageKey: string;
2128
+ mimeType: string;
2129
+ type: "external_image";
2130
+ uri?: string | null | undefined;
2131
+ }> | Readonly<{
2132
+ annotations?: Readonly<{
2133
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2134
+ lastModified?: string | null | undefined;
2135
+ priority?: number | null | undefined;
2136
+ }> | null | undefined;
2137
+ audioKey: string;
2138
+ byteLength: number;
2139
+ mimeType: string;
2140
+ type: "external_audio";
2141
+ }> | Readonly<{
2142
+ annotations?: Readonly<{
2143
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2144
+ lastModified?: string | null | undefined;
2145
+ priority?: number | null | undefined;
2146
+ }> | null | undefined;
2147
+ byteLength: number;
2148
+ encoding: "binary" | "text";
2149
+ mimeType?: string | null | undefined;
2150
+ resourceKey: string;
2151
+ type: "external_resource";
2152
+ uri: string;
2153
+ }>;
2154
+ type: "content";
2155
+ }> | Readonly<{
2156
+ newText: string;
2157
+ oldText?: string | null | undefined;
2158
+ path: string;
2159
+ type: "diff";
2160
+ }> | Readonly<{
2161
+ terminalId: string;
2162
+ type: "terminal";
2163
+ }>)[] | undefined;
2164
+ kind?: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "switch_mode" | "think" | undefined;
2165
+ locations?: readonly Readonly<{
2166
+ line?: number | null | undefined;
2167
+ path: string;
2168
+ }>[] | undefined;
2169
+ name?: string | null | undefined;
2170
+ rawInput?: unknown;
2171
+ rawOutput?: unknown;
2172
+ sessionUpdate: "tool_call";
2173
+ status?: "completed" | "failed" | "in_progress" | "pending" | undefined;
2174
+ title: string;
2175
+ toolCallId: string;
2176
+ }> | Readonly<{
2177
+ content?: readonly (Readonly<{
2178
+ content: Readonly<{
2179
+ annotations?: Readonly<{
2180
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2181
+ lastModified?: string | null | undefined;
2182
+ priority?: number | null | undefined;
2183
+ }> | null | undefined;
2184
+ text: string;
2185
+ type: "text";
2186
+ }> | Readonly<{
2187
+ annotations?: Readonly<{
2188
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2189
+ lastModified?: string | null | undefined;
2190
+ priority?: number | null | undefined;
2191
+ }> | null | undefined;
2192
+ data: string;
2193
+ mimeType: string;
2194
+ type: "image";
2195
+ uri?: string | null | undefined;
2196
+ }> | Readonly<{
2197
+ annotations?: Readonly<{
2198
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2199
+ lastModified?: string | null | undefined;
2200
+ priority?: number | null | undefined;
2201
+ }> | null | undefined;
2202
+ data: string;
2203
+ mimeType: string;
2204
+ type: "audio";
2205
+ }> | Readonly<{
2206
+ annotations?: Readonly<{
2207
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2208
+ lastModified?: string | null | undefined;
2209
+ priority?: number | null | undefined;
2210
+ }> | null | undefined;
2211
+ description?: string | null | undefined;
2212
+ mimeType?: string | null | undefined;
2213
+ name: string;
2214
+ size?: number | null | undefined;
2215
+ title?: string | null | undefined;
2216
+ type: "resource_link";
2217
+ uri: string;
2218
+ }> | Readonly<{
2219
+ annotations?: Readonly<{
2220
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2221
+ lastModified?: string | null | undefined;
2222
+ priority?: number | null | undefined;
2223
+ }> | null | undefined;
2224
+ resource: Readonly<{
2225
+ mimeType?: string | null | undefined;
2226
+ text: string;
2227
+ uri: string;
2228
+ }> | Readonly<{
2229
+ blob: string;
2230
+ mimeType?: string | null | undefined;
2231
+ uri: string;
2232
+ }>;
2233
+ type: "resource";
2234
+ }> | Readonly<{
2235
+ annotations?: Readonly<{
2236
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2237
+ lastModified?: string | null | undefined;
2238
+ priority?: number | null | undefined;
2239
+ }> | null | undefined;
2240
+ byteLength: number;
2241
+ imageKey: string;
2242
+ mimeType: string;
2243
+ type: "external_image";
2244
+ uri?: string | null | undefined;
2245
+ }> | Readonly<{
2246
+ annotations?: Readonly<{
2247
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2248
+ lastModified?: string | null | undefined;
2249
+ priority?: number | null | undefined;
2250
+ }> | null | undefined;
2251
+ audioKey: string;
2252
+ byteLength: number;
2253
+ mimeType: string;
2254
+ type: "external_audio";
2255
+ }> | Readonly<{
2256
+ annotations?: Readonly<{
2257
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2258
+ lastModified?: string | null | undefined;
2259
+ priority?: number | null | undefined;
2260
+ }> | null | undefined;
2261
+ byteLength: number;
2262
+ encoding: "binary" | "text";
2263
+ mimeType?: string | null | undefined;
2264
+ resourceKey: string;
2265
+ type: "external_resource";
2266
+ uri: string;
2267
+ }>;
2268
+ type: "content";
2269
+ }> | Readonly<{
2270
+ newText: string;
2271
+ oldText?: string | null | undefined;
2272
+ path: string;
2273
+ type: "diff";
2274
+ }> | Readonly<{
2275
+ terminalId: string;
2276
+ type: "terminal";
2277
+ }>)[] | null | undefined;
2278
+ kind?: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "switch_mode" | "think" | null | undefined;
2279
+ locations?: readonly Readonly<{
2280
+ line?: number | null | undefined;
2281
+ path: string;
2282
+ }>[] | null | undefined;
2283
+ name?: string | null | undefined;
2284
+ rawInput?: unknown;
2285
+ rawOutput?: unknown;
2286
+ status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
2287
+ title?: string | null | undefined;
2288
+ sessionUpdate: "tool_call_update";
2289
+ toolCallId: string;
2290
+ }> | Readonly<{
2291
+ entries: readonly Readonly<{
2292
+ content: string;
2293
+ priority: "high" | "low" | "medium";
2294
+ status: "completed" | "in_progress" | "pending";
2295
+ }>[];
2296
+ sessionUpdate: "plan";
2297
+ }> | Readonly<{
2298
+ plan: Readonly<{
2299
+ entries: readonly Readonly<{
2300
+ content: string;
2301
+ priority: "high" | "low" | "medium";
2302
+ status: "completed" | "in_progress" | "pending";
2303
+ }>[];
2304
+ planId: string;
2305
+ type: "items";
2306
+ }> | Readonly<{
2307
+ planId: string;
2308
+ type: "file";
2309
+ uri: string;
2310
+ }> | Readonly<{
2311
+ content: string;
2312
+ planId: string;
2313
+ type: "markdown";
2314
+ }>;
2315
+ sessionUpdate: "plan_update";
2316
+ }> | Readonly<{
2317
+ planId: string;
2318
+ sessionUpdate: "plan_removed";
2319
+ }> | Readonly<{
2320
+ availableCommands: readonly Readonly<{
2321
+ description: string;
2322
+ input?: Readonly<{
2323
+ hint: string;
2324
+ }> | null | undefined;
2325
+ name: string;
2326
+ }>[];
2327
+ sessionUpdate: "available_commands_update";
2328
+ }> | Readonly<{
2329
+ currentModeId: string;
2330
+ sessionUpdate: "current_mode_update";
2331
+ }> | Readonly<{
2332
+ configOptions: readonly (Readonly<{
2333
+ category?: string | null | undefined;
2334
+ description?: string | null | undefined;
2335
+ id: string;
2336
+ name: string;
2337
+ currentValue: string;
2338
+ options: readonly Readonly<{
2339
+ description?: string | null | undefined;
2340
+ name: string;
2341
+ value: string;
2342
+ }>[] | readonly Readonly<{
2343
+ group: string;
2344
+ name: string;
2345
+ options: readonly Readonly<{
2346
+ description?: string | null | undefined;
2347
+ name: string;
2348
+ value: string;
2349
+ }>[];
2350
+ }>[];
2351
+ type: "select";
2352
+ }> | Readonly<{
2353
+ category?: string | null | undefined;
2354
+ description?: string | null | undefined;
2355
+ id: string;
2356
+ name: string;
2357
+ currentValue: boolean;
2358
+ type: "boolean";
2359
+ }>)[];
2360
+ sessionUpdate: "config_option_update";
2361
+ }> | Readonly<{
2362
+ sessionUpdate: "session_info_update";
2363
+ title?: string | null | undefined;
2364
+ updatedAt?: string | null | undefined;
2365
+ }> | Readonly<{
2366
+ cost?: Readonly<{
2367
+ amount: number;
2368
+ currency: string;
2369
+ }> | null | undefined;
2370
+ sessionUpdate: "usage_update";
2371
+ size: number;
2372
+ used: number;
2373
+ }> | Readonly<{
2374
+ compactionId: string;
2375
+ error?: string | null | undefined;
2376
+ sessionUpdate: "compaction_update";
2377
+ status: string;
2378
+ summary?: readonly (Readonly<{
2379
+ annotations?: Readonly<{
2380
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2381
+ lastModified?: string | null | undefined;
2382
+ priority?: number | null | undefined;
2383
+ }> | null | undefined;
2384
+ text: string;
2385
+ type: "text";
2386
+ }> | Readonly<{
2387
+ annotations?: Readonly<{
2388
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2389
+ lastModified?: string | null | undefined;
2390
+ priority?: number | null | undefined;
2391
+ }> | null | undefined;
2392
+ data: string;
2393
+ mimeType: string;
2394
+ type: "image";
2395
+ uri?: string | null | undefined;
2396
+ }> | Readonly<{
2397
+ annotations?: Readonly<{
2398
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2399
+ lastModified?: string | null | undefined;
2400
+ priority?: number | null | undefined;
2401
+ }> | null | undefined;
2402
+ data: string;
2403
+ mimeType: string;
2404
+ type: "audio";
2405
+ }> | Readonly<{
2406
+ annotations?: Readonly<{
2407
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2408
+ lastModified?: string | null | undefined;
2409
+ priority?: number | null | undefined;
2410
+ }> | null | undefined;
2411
+ description?: string | null | undefined;
2412
+ mimeType?: string | null | undefined;
2413
+ name: string;
2414
+ size?: number | null | undefined;
2415
+ title?: string | null | undefined;
2416
+ type: "resource_link";
2417
+ uri: string;
2418
+ }> | Readonly<{
2419
+ annotations?: Readonly<{
2420
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2421
+ lastModified?: string | null | undefined;
2422
+ priority?: number | null | undefined;
2423
+ }> | null | undefined;
2424
+ resource: Readonly<{
2425
+ mimeType?: string | null | undefined;
2426
+ text: string;
2427
+ uri: string;
2428
+ }> | Readonly<{
2429
+ blob: string;
2430
+ mimeType?: string | null | undefined;
2431
+ uri: string;
2432
+ }>;
2433
+ type: "resource";
2434
+ }> | Readonly<{
2435
+ annotations?: Readonly<{
2436
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2437
+ lastModified?: string | null | undefined;
2438
+ priority?: number | null | undefined;
2439
+ }> | null | undefined;
2440
+ byteLength: number;
2441
+ imageKey: string;
2442
+ mimeType: string;
2443
+ type: "external_image";
2444
+ uri?: string | null | undefined;
2445
+ }> | Readonly<{
2446
+ annotations?: Readonly<{
2447
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2448
+ lastModified?: string | null | undefined;
2449
+ priority?: number | null | undefined;
2450
+ }> | null | undefined;
2451
+ audioKey: string;
2452
+ byteLength: number;
2453
+ mimeType: string;
2454
+ type: "external_audio";
2455
+ }> | Readonly<{
2456
+ annotations?: Readonly<{
2457
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2458
+ lastModified?: string | null | undefined;
2459
+ priority?: number | null | undefined;
2460
+ }> | null | undefined;
2461
+ byteLength: number;
2462
+ encoding: "binary" | "text";
2463
+ mimeType?: string | null | undefined;
2464
+ resourceKey: string;
2465
+ type: "external_resource";
2466
+ uri: string;
2467
+ }>)[] | null | undefined;
2468
+ }> | Readonly<{
2469
+ compactionId: string;
2470
+ content: Readonly<{
2471
+ annotations?: Readonly<{
2472
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2473
+ lastModified?: string | null | undefined;
2474
+ priority?: number | null | undefined;
2475
+ }> | null | undefined;
2476
+ text: string;
2477
+ type: "text";
2478
+ }> | Readonly<{
2479
+ annotations?: Readonly<{
2480
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2481
+ lastModified?: string | null | undefined;
2482
+ priority?: number | null | undefined;
2483
+ }> | null | undefined;
2484
+ data: string;
2485
+ mimeType: string;
2486
+ type: "image";
2487
+ uri?: string | null | undefined;
2488
+ }> | Readonly<{
2489
+ annotations?: Readonly<{
2490
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2491
+ lastModified?: string | null | undefined;
2492
+ priority?: number | null | undefined;
2493
+ }> | null | undefined;
2494
+ data: string;
2495
+ mimeType: string;
2496
+ type: "audio";
2497
+ }> | Readonly<{
2498
+ annotations?: Readonly<{
2499
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2500
+ lastModified?: string | null | undefined;
2501
+ priority?: number | null | undefined;
2502
+ }> | null | undefined;
2503
+ description?: string | null | undefined;
2504
+ mimeType?: string | null | undefined;
2505
+ name: string;
2506
+ size?: number | null | undefined;
2507
+ title?: string | null | undefined;
2508
+ type: "resource_link";
2509
+ uri: string;
2510
+ }> | Readonly<{
2511
+ annotations?: Readonly<{
2512
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2513
+ lastModified?: string | null | undefined;
2514
+ priority?: number | null | undefined;
2515
+ }> | null | undefined;
2516
+ resource: Readonly<{
2517
+ mimeType?: string | null | undefined;
2518
+ text: string;
2519
+ uri: string;
2520
+ }> | Readonly<{
2521
+ blob: string;
2522
+ mimeType?: string | null | undefined;
2523
+ uri: string;
2524
+ }>;
2525
+ type: "resource";
2526
+ }> | Readonly<{
2527
+ annotations?: Readonly<{
2528
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2529
+ lastModified?: string | null | undefined;
2530
+ priority?: number | null | undefined;
2531
+ }> | null | undefined;
2532
+ byteLength: number;
2533
+ imageKey: string;
2534
+ mimeType: string;
2535
+ type: "external_image";
2536
+ uri?: string | null | undefined;
2537
+ }> | Readonly<{
2538
+ annotations?: Readonly<{
2539
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2540
+ lastModified?: string | null | undefined;
2541
+ priority?: number | null | undefined;
2542
+ }> | null | undefined;
2543
+ audioKey: string;
2544
+ byteLength: number;
2545
+ mimeType: string;
2546
+ type: "external_audio";
2547
+ }> | Readonly<{
2548
+ annotations?: Readonly<{
2549
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2550
+ lastModified?: string | null | undefined;
2551
+ priority?: number | null | undefined;
2552
+ }> | null | undefined;
2553
+ byteLength: number;
2554
+ encoding: "binary" | "text";
2555
+ mimeType?: string | null | undefined;
2556
+ resourceKey: string;
2557
+ type: "external_resource";
2558
+ uri: string;
2559
+ }>;
2560
+ sessionUpdate: "compaction_summary_chunk";
2561
+ }>;
2562
+ type: "acp";
2563
+ }> | Readonly<{
2564
+ eventId: string;
2565
+ mobiusMetadata?: Readonly<{
2566
+ omitted?: true | undefined;
2567
+ }> | undefined;
2568
+ provenance?: Readonly<{
2569
+ kind: "original";
2570
+ }> | Readonly<{
2571
+ kind: "imported";
2572
+ sourceEventId: string;
2573
+ sourcePosition: string;
2574
+ sourceSessionId: string;
2575
+ }> | Readonly<{
2576
+ kind: "forked";
2577
+ sourceEventId: string;
2578
+ sourcePosition: string;
2579
+ sourceSessionId: string;
2580
+ }> | undefined;
2581
+ recordedAt: string;
2582
+ sessionGenerationId: string;
2583
+ sessionId: string;
2584
+ position: string;
2585
+ payload: Readonly<{
2586
+ kind: "session.queue.changed";
2587
+ }> | Readonly<{
2588
+ event: Readonly<{
2589
+ commandId: string;
2590
+ interactionId: string;
2591
+ kind: "session.permission.requested";
2592
+ options: readonly Readonly<{
2593
+ kind: "allow_always" | "allow_once" | "reject_always" | "reject_once";
2594
+ name: string;
2595
+ optionId: string;
2596
+ }>[];
2597
+ sessionId: string;
2598
+ title: string;
2599
+ toolCallId: string;
2600
+ toolKind: string;
2601
+ }>;
2602
+ kind: "session.permission.requested";
2603
+ }> | Readonly<{
2604
+ event: Readonly<{
2605
+ interactionId: string;
2606
+ kind: "session.permission.resolved";
2607
+ optionId: string;
2608
+ outcome: "cancelled" | "selected";
2609
+ sessionId: string;
2610
+ }>;
2611
+ kind: "session.permission.resolved";
2612
+ }> | Readonly<{
2613
+ event: Readonly<{
2614
+ accepted: boolean;
2615
+ commandId: string;
2616
+ elicitationId: string;
2617
+ fields: readonly Readonly<{
2618
+ defaultBooleanValue: boolean;
2619
+ defaultNumberValue: number;
2620
+ defaultStringValue: string;
2621
+ description: string;
2622
+ format: string;
2623
+ hasDefaultValue: boolean;
2624
+ maximum: string;
2625
+ maximumLength: string;
2626
+ minimum: string;
2627
+ minimumLength: string;
2628
+ name: string;
2629
+ options: readonly Readonly<{
2630
+ description: string;
2631
+ label: string;
2632
+ value: string;
2633
+ }>[];
2634
+ pattern: string;
2635
+ required: boolean;
2636
+ title: string;
2637
+ type: "boolean" | "integer" | "multiselect" | "number" | "select" | "string";
2638
+ }>[];
2639
+ interactionId: string;
2640
+ kind: "session.elicitation.requested";
2641
+ message: string;
2642
+ mode: "form" | "url";
2643
+ sessionId: string;
2644
+ url: string;
2645
+ }>;
2646
+ kind: "session.elicitation.requested";
2647
+ }> | Readonly<{
2648
+ event: Readonly<{
2649
+ action: "accept" | "cancel" | "complete" | "decline";
2650
+ interactionId: string;
2651
+ kind: "session.elicitation.resolved";
2652
+ sessionId: string;
2653
+ }>;
2654
+ kind: "session.elicitation.resolved";
2655
+ }> | Readonly<{
2656
+ commandId: string;
2657
+ content: readonly (Readonly<{
2658
+ annotations?: Readonly<{
2659
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2660
+ lastModified?: string | null | undefined;
2661
+ priority?: number | null | undefined;
2662
+ }> | null | undefined;
2663
+ text: string;
2664
+ type: "text";
2665
+ }> | Readonly<{
2666
+ annotations?: Readonly<{
2667
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2668
+ lastModified?: string | null | undefined;
2669
+ priority?: number | null | undefined;
2670
+ }> | null | undefined;
2671
+ data: string;
2672
+ mimeType: string;
2673
+ type: "image";
2674
+ uri?: string | null | undefined;
2675
+ }> | Readonly<{
2676
+ annotations?: Readonly<{
2677
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2678
+ lastModified?: string | null | undefined;
2679
+ priority?: number | null | undefined;
2680
+ }> | null | undefined;
2681
+ data: string;
2682
+ mimeType: string;
2683
+ type: "audio";
2684
+ }> | Readonly<{
2685
+ annotations?: Readonly<{
2686
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2687
+ lastModified?: string | null | undefined;
2688
+ priority?: number | null | undefined;
2689
+ }> | null | undefined;
2690
+ description?: string | null | undefined;
2691
+ mimeType?: string | null | undefined;
2692
+ name: string;
2693
+ size?: number | null | undefined;
2694
+ title?: string | null | undefined;
2695
+ type: "resource_link";
2696
+ uri: string;
2697
+ }> | Readonly<{
2698
+ annotations?: Readonly<{
2699
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2700
+ lastModified?: string | null | undefined;
2701
+ priority?: number | null | undefined;
2702
+ }> | null | undefined;
2703
+ resource: Readonly<{
2704
+ mimeType?: string | null | undefined;
2705
+ text: string;
2706
+ uri: string;
2707
+ }> | Readonly<{
2708
+ blob: string;
2709
+ mimeType?: string | null | undefined;
2710
+ uri: string;
2711
+ }>;
2712
+ type: "resource";
2713
+ }> | Readonly<{
2714
+ annotations?: Readonly<{
2715
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2716
+ lastModified?: string | null | undefined;
2717
+ priority?: number | null | undefined;
2718
+ }> | null | undefined;
2719
+ byteLength: number;
2720
+ imageKey: string;
2721
+ mimeType: string;
2722
+ type: "external_image";
2723
+ uri?: string | null | undefined;
2724
+ }> | Readonly<{
2725
+ annotations?: Readonly<{
2726
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2727
+ lastModified?: string | null | undefined;
2728
+ priority?: number | null | undefined;
2729
+ }> | null | undefined;
2730
+ audioKey: string;
2731
+ byteLength: number;
2732
+ mimeType: string;
2733
+ type: "external_audio";
2734
+ }> | Readonly<{
2735
+ annotations?: Readonly<{
2736
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2737
+ lastModified?: string | null | undefined;
2738
+ priority?: number | null | undefined;
2739
+ }> | null | undefined;
2740
+ byteLength: number;
2741
+ encoding: "binary" | "text";
2742
+ mimeType?: string | null | undefined;
2743
+ resourceKey: string;
2744
+ type: "external_resource";
2745
+ uri: string;
2746
+ }>)[];
2747
+ disposition?: string | undefined;
2748
+ kind: "prompt.requested";
2749
+ context?: import("./session-event-log.ts").PromptExecutionContext | undefined;
2750
+ targetCommandId?: string | undefined;
2751
+ }> | Readonly<{
2752
+ commandId: string;
2753
+ attemptId: string;
2754
+ epoch: string;
2755
+ kind: "prompt.started";
2756
+ }> | Readonly<{
2757
+ commandId: string;
2758
+ kind: "prompt.completed";
2759
+ stopReason: string;
2760
+ }> | Readonly<{
2761
+ commandId: string;
2762
+ code: string;
2763
+ kind: "prompt.failed-before-start";
2764
+ message: string;
2765
+ }> | Readonly<{
2766
+ commandId: string;
2767
+ attemptId: string;
2768
+ code: string;
2769
+ kind: "prompt.failed";
2770
+ message: string;
2771
+ }>;
2772
+ type: "lifecycle-metadata";
2773
+ }>)[];
2774
+ kind: "session.event.v2";
2775
+ }>>;
2776
+ readonly "session.operation.failed": MessageSignature<Readonly<{
2777
+ code: string;
2778
+ kind: "session.operation.failed";
2779
+ message: string;
2780
+ requestId: string;
2781
+ runtimeTimings?: readonly Readonly<{
2782
+ durationMilliseconds: number;
2783
+ name: string;
2784
+ }>[] | undefined;
2785
+ sessionId: string;
2786
+ }>>;
2787
+ readonly "session.live-history.v2.page.loaded": MessageSignature<Readonly<{
2788
+ events: Readonly<{
2789
+ events: Readonly<{
2790
+ events: readonly (Readonly<{
2791
+ eventId: string;
2792
+ mobiusMetadata?: Readonly<{
2793
+ omitted?: true | undefined;
2794
+ }> | undefined;
2795
+ provenance?: Readonly<{
2796
+ kind: "original";
2797
+ }> | Readonly<{
2798
+ kind: "imported";
2799
+ sourceEventId: string;
2800
+ sourcePosition: string;
2801
+ sourceSessionId: string;
2802
+ }> | Readonly<{
2803
+ kind: "forked";
2804
+ sourceEventId: string;
2805
+ sourcePosition: string;
2806
+ sourceSessionId: string;
2807
+ }> | undefined;
2808
+ recordedAt: string;
2809
+ sessionGenerationId: string;
2810
+ sessionId: string;
2811
+ payload: Readonly<{
2812
+ content: Readonly<{
2813
+ annotations?: Readonly<{
2814
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2815
+ lastModified?: string | null | undefined;
2816
+ priority?: number | null | undefined;
2817
+ }> | null | undefined;
2818
+ text: string;
2819
+ type: "text";
2820
+ }> | Readonly<{
2821
+ annotations?: Readonly<{
2822
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2823
+ lastModified?: string | null | undefined;
2824
+ priority?: number | null | undefined;
2825
+ }> | null | undefined;
2826
+ data: string;
2827
+ mimeType: string;
2828
+ type: "image";
2829
+ uri?: string | null | undefined;
2830
+ }> | Readonly<{
2831
+ annotations?: Readonly<{
2832
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2833
+ lastModified?: string | null | undefined;
2834
+ priority?: number | null | undefined;
2835
+ }> | null | undefined;
2836
+ data: string;
2837
+ mimeType: string;
2838
+ type: "audio";
2839
+ }> | Readonly<{
2840
+ annotations?: Readonly<{
2841
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2842
+ lastModified?: string | null | undefined;
2843
+ priority?: number | null | undefined;
2844
+ }> | null | undefined;
2845
+ description?: string | null | undefined;
2846
+ mimeType?: string | null | undefined;
2847
+ name: string;
2848
+ size?: number | null | undefined;
2849
+ title?: string | null | undefined;
2850
+ type: "resource_link";
2851
+ uri: string;
2852
+ }> | Readonly<{
2853
+ annotations?: Readonly<{
2854
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2855
+ lastModified?: string | null | undefined;
2856
+ priority?: number | null | undefined;
2857
+ }> | null | undefined;
2858
+ resource: Readonly<{
2859
+ mimeType?: string | null | undefined;
2860
+ text: string;
2861
+ uri: string;
2862
+ }> | Readonly<{
2863
+ blob: string;
2864
+ mimeType?: string | null | undefined;
2865
+ uri: string;
2866
+ }>;
2867
+ type: "resource";
2868
+ }> | Readonly<{
2869
+ annotations?: Readonly<{
2870
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2871
+ lastModified?: string | null | undefined;
2872
+ priority?: number | null | undefined;
2873
+ }> | null | undefined;
2874
+ byteLength: number;
2875
+ imageKey: string;
2876
+ mimeType: string;
2877
+ type: "external_image";
2878
+ uri?: string | null | undefined;
2879
+ }> | Readonly<{
2880
+ annotations?: Readonly<{
2881
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2882
+ lastModified?: string | null | undefined;
2883
+ priority?: number | null | undefined;
2884
+ }> | null | undefined;
2885
+ audioKey: string;
2886
+ byteLength: number;
2887
+ mimeType: string;
2888
+ type: "external_audio";
2889
+ }> | Readonly<{
2890
+ annotations?: Readonly<{
2891
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2892
+ lastModified?: string | null | undefined;
2893
+ priority?: number | null | undefined;
2894
+ }> | null | undefined;
2895
+ byteLength: number;
2896
+ encoding: "binary" | "text";
2897
+ mimeType?: string | null | undefined;
2898
+ resourceKey: string;
2899
+ type: "external_resource";
2900
+ uri: string;
2901
+ }>;
2902
+ messageId?: string | null | undefined;
2903
+ sessionUpdate: "user_message_chunk";
2904
+ }> | Readonly<{
2905
+ content: Readonly<{
2906
+ annotations?: Readonly<{
2907
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2908
+ lastModified?: string | null | undefined;
2909
+ priority?: number | null | undefined;
2910
+ }> | null | undefined;
2911
+ text: string;
2912
+ type: "text";
2913
+ }> | Readonly<{
2914
+ annotations?: Readonly<{
2915
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2916
+ lastModified?: string | null | undefined;
2917
+ priority?: number | null | undefined;
2918
+ }> | null | undefined;
2919
+ data: string;
2920
+ mimeType: string;
2921
+ type: "image";
2922
+ uri?: string | null | undefined;
2923
+ }> | Readonly<{
2924
+ annotations?: Readonly<{
2925
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2926
+ lastModified?: string | null | undefined;
2927
+ priority?: number | null | undefined;
2928
+ }> | null | undefined;
2929
+ data: string;
2930
+ mimeType: string;
2931
+ type: "audio";
2932
+ }> | Readonly<{
2933
+ annotations?: Readonly<{
2934
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2935
+ lastModified?: string | null | undefined;
2936
+ priority?: number | null | undefined;
2937
+ }> | null | undefined;
2938
+ description?: string | null | undefined;
2939
+ mimeType?: string | null | undefined;
2940
+ name: string;
2941
+ size?: number | null | undefined;
2942
+ title?: string | null | undefined;
2943
+ type: "resource_link";
2944
+ uri: string;
2945
+ }> | Readonly<{
2946
+ annotations?: Readonly<{
2947
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2948
+ lastModified?: string | null | undefined;
2949
+ priority?: number | null | undefined;
2950
+ }> | null | undefined;
2951
+ resource: Readonly<{
2952
+ mimeType?: string | null | undefined;
2953
+ text: string;
2954
+ uri: string;
2955
+ }> | Readonly<{
2956
+ blob: string;
2957
+ mimeType?: string | null | undefined;
2958
+ uri: string;
2959
+ }>;
2960
+ type: "resource";
2961
+ }> | Readonly<{
2962
+ annotations?: Readonly<{
2963
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2964
+ lastModified?: string | null | undefined;
2965
+ priority?: number | null | undefined;
2966
+ }> | null | undefined;
2967
+ byteLength: number;
2968
+ imageKey: string;
2969
+ mimeType: string;
2970
+ type: "external_image";
2971
+ uri?: string | null | undefined;
2972
+ }> | Readonly<{
2973
+ annotations?: Readonly<{
2974
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2975
+ lastModified?: string | null | undefined;
2976
+ priority?: number | null | undefined;
2977
+ }> | null | undefined;
2978
+ audioKey: string;
2979
+ byteLength: number;
2980
+ mimeType: string;
2981
+ type: "external_audio";
2982
+ }> | Readonly<{
2983
+ annotations?: Readonly<{
2984
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
2985
+ lastModified?: string | null | undefined;
2986
+ priority?: number | null | undefined;
2987
+ }> | null | undefined;
2988
+ byteLength: number;
2989
+ encoding: "binary" | "text";
2990
+ mimeType?: string | null | undefined;
2991
+ resourceKey: string;
2992
+ type: "external_resource";
2993
+ uri: string;
2994
+ }>;
2995
+ messageId?: string | null | undefined;
2996
+ sessionUpdate: "agent_message_chunk";
2997
+ }> | Readonly<{
2998
+ content: Readonly<{
2999
+ annotations?: Readonly<{
3000
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3001
+ lastModified?: string | null | undefined;
3002
+ priority?: number | null | undefined;
3003
+ }> | null | undefined;
3004
+ text: string;
3005
+ type: "text";
3006
+ }> | Readonly<{
3007
+ annotations?: Readonly<{
3008
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3009
+ lastModified?: string | null | undefined;
3010
+ priority?: number | null | undefined;
3011
+ }> | null | undefined;
3012
+ data: string;
3013
+ mimeType: string;
3014
+ type: "image";
3015
+ uri?: string | null | undefined;
3016
+ }> | Readonly<{
3017
+ annotations?: Readonly<{
3018
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3019
+ lastModified?: string | null | undefined;
3020
+ priority?: number | null | undefined;
3021
+ }> | null | undefined;
3022
+ data: string;
3023
+ mimeType: string;
3024
+ type: "audio";
3025
+ }> | Readonly<{
3026
+ annotations?: Readonly<{
3027
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3028
+ lastModified?: string | null | undefined;
3029
+ priority?: number | null | undefined;
3030
+ }> | null | undefined;
3031
+ description?: string | null | undefined;
3032
+ mimeType?: string | null | undefined;
3033
+ name: string;
3034
+ size?: number | null | undefined;
3035
+ title?: string | null | undefined;
3036
+ type: "resource_link";
3037
+ uri: string;
3038
+ }> | Readonly<{
3039
+ annotations?: Readonly<{
3040
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3041
+ lastModified?: string | null | undefined;
3042
+ priority?: number | null | undefined;
3043
+ }> | null | undefined;
3044
+ resource: Readonly<{
3045
+ mimeType?: string | null | undefined;
3046
+ text: string;
3047
+ uri: string;
3048
+ }> | Readonly<{
3049
+ blob: string;
3050
+ mimeType?: string | null | undefined;
3051
+ uri: string;
3052
+ }>;
3053
+ type: "resource";
3054
+ }> | Readonly<{
3055
+ annotations?: Readonly<{
3056
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3057
+ lastModified?: string | null | undefined;
3058
+ priority?: number | null | undefined;
3059
+ }> | null | undefined;
3060
+ byteLength: number;
3061
+ imageKey: string;
3062
+ mimeType: string;
3063
+ type: "external_image";
3064
+ uri?: string | null | undefined;
3065
+ }> | Readonly<{
3066
+ annotations?: Readonly<{
3067
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3068
+ lastModified?: string | null | undefined;
3069
+ priority?: number | null | undefined;
3070
+ }> | null | undefined;
3071
+ audioKey: string;
3072
+ byteLength: number;
3073
+ mimeType: string;
3074
+ type: "external_audio";
3075
+ }> | Readonly<{
3076
+ annotations?: Readonly<{
3077
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3078
+ lastModified?: string | null | undefined;
3079
+ priority?: number | null | undefined;
3080
+ }> | null | undefined;
3081
+ byteLength: number;
3082
+ encoding: "binary" | "text";
3083
+ mimeType?: string | null | undefined;
3084
+ resourceKey: string;
3085
+ type: "external_resource";
3086
+ uri: string;
3087
+ }>;
3088
+ messageId?: string | null | undefined;
3089
+ sessionUpdate: "agent_thought_chunk";
3090
+ }> | Readonly<{
3091
+ content?: readonly (Readonly<{
3092
+ content: Readonly<{
3093
+ annotations?: Readonly<{
3094
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3095
+ lastModified?: string | null | undefined;
3096
+ priority?: number | null | undefined;
3097
+ }> | null | undefined;
3098
+ text: string;
3099
+ type: "text";
3100
+ }> | Readonly<{
3101
+ annotations?: Readonly<{
3102
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3103
+ lastModified?: string | null | undefined;
3104
+ priority?: number | null | undefined;
3105
+ }> | null | undefined;
3106
+ data: string;
3107
+ mimeType: string;
3108
+ type: "image";
3109
+ uri?: string | null | undefined;
3110
+ }> | Readonly<{
3111
+ annotations?: Readonly<{
3112
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3113
+ lastModified?: string | null | undefined;
3114
+ priority?: number | null | undefined;
3115
+ }> | null | undefined;
3116
+ data: string;
3117
+ mimeType: string;
3118
+ type: "audio";
3119
+ }> | Readonly<{
3120
+ annotations?: Readonly<{
3121
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3122
+ lastModified?: string | null | undefined;
3123
+ priority?: number | null | undefined;
3124
+ }> | null | undefined;
3125
+ description?: string | null | undefined;
3126
+ mimeType?: string | null | undefined;
3127
+ name: string;
3128
+ size?: number | null | undefined;
3129
+ title?: string | null | undefined;
3130
+ type: "resource_link";
3131
+ uri: string;
3132
+ }> | Readonly<{
3133
+ annotations?: Readonly<{
3134
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3135
+ lastModified?: string | null | undefined;
3136
+ priority?: number | null | undefined;
3137
+ }> | null | undefined;
3138
+ resource: Readonly<{
3139
+ mimeType?: string | null | undefined;
3140
+ text: string;
3141
+ uri: string;
3142
+ }> | Readonly<{
3143
+ blob: string;
3144
+ mimeType?: string | null | undefined;
3145
+ uri: string;
3146
+ }>;
3147
+ type: "resource";
3148
+ }> | Readonly<{
3149
+ annotations?: Readonly<{
3150
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3151
+ lastModified?: string | null | undefined;
3152
+ priority?: number | null | undefined;
3153
+ }> | null | undefined;
3154
+ byteLength: number;
3155
+ imageKey: string;
3156
+ mimeType: string;
3157
+ type: "external_image";
3158
+ uri?: string | null | undefined;
3159
+ }> | Readonly<{
3160
+ annotations?: Readonly<{
3161
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3162
+ lastModified?: string | null | undefined;
3163
+ priority?: number | null | undefined;
3164
+ }> | null | undefined;
3165
+ audioKey: string;
3166
+ byteLength: number;
3167
+ mimeType: string;
3168
+ type: "external_audio";
3169
+ }> | Readonly<{
3170
+ annotations?: Readonly<{
3171
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3172
+ lastModified?: string | null | undefined;
3173
+ priority?: number | null | undefined;
3174
+ }> | null | undefined;
3175
+ byteLength: number;
3176
+ encoding: "binary" | "text";
3177
+ mimeType?: string | null | undefined;
3178
+ resourceKey: string;
3179
+ type: "external_resource";
3180
+ uri: string;
3181
+ }>;
3182
+ type: "content";
3183
+ }> | Readonly<{
3184
+ newText: string;
3185
+ oldText?: string | null | undefined;
3186
+ path: string;
3187
+ type: "diff";
3188
+ }> | Readonly<{
3189
+ terminalId: string;
3190
+ type: "terminal";
3191
+ }>)[] | undefined;
3192
+ kind?: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "switch_mode" | "think" | undefined;
3193
+ locations?: readonly Readonly<{
3194
+ line?: number | null | undefined;
3195
+ path: string;
3196
+ }>[] | undefined;
3197
+ name?: string | null | undefined;
3198
+ rawInput?: unknown;
3199
+ rawOutput?: unknown;
3200
+ sessionUpdate: "tool_call";
3201
+ status?: "completed" | "failed" | "in_progress" | "pending" | undefined;
3202
+ title: string;
3203
+ toolCallId: string;
3204
+ }> | Readonly<{
3205
+ content?: readonly (Readonly<{
3206
+ content: Readonly<{
3207
+ annotations?: Readonly<{
3208
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3209
+ lastModified?: string | null | undefined;
3210
+ priority?: number | null | undefined;
3211
+ }> | null | undefined;
3212
+ text: string;
3213
+ type: "text";
3214
+ }> | Readonly<{
3215
+ annotations?: Readonly<{
3216
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3217
+ lastModified?: string | null | undefined;
3218
+ priority?: number | null | undefined;
3219
+ }> | null | undefined;
3220
+ data: string;
3221
+ mimeType: string;
3222
+ type: "image";
3223
+ uri?: string | null | undefined;
3224
+ }> | Readonly<{
3225
+ annotations?: Readonly<{
3226
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3227
+ lastModified?: string | null | undefined;
3228
+ priority?: number | null | undefined;
3229
+ }> | null | undefined;
3230
+ data: string;
3231
+ mimeType: string;
3232
+ type: "audio";
3233
+ }> | Readonly<{
3234
+ annotations?: Readonly<{
3235
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3236
+ lastModified?: string | null | undefined;
3237
+ priority?: number | null | undefined;
3238
+ }> | null | undefined;
3239
+ description?: string | null | undefined;
3240
+ mimeType?: string | null | undefined;
3241
+ name: string;
3242
+ size?: number | null | undefined;
3243
+ title?: string | null | undefined;
3244
+ type: "resource_link";
3245
+ uri: string;
3246
+ }> | Readonly<{
3247
+ annotations?: Readonly<{
3248
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3249
+ lastModified?: string | null | undefined;
3250
+ priority?: number | null | undefined;
3251
+ }> | null | undefined;
3252
+ resource: Readonly<{
3253
+ mimeType?: string | null | undefined;
3254
+ text: string;
3255
+ uri: string;
3256
+ }> | Readonly<{
3257
+ blob: string;
3258
+ mimeType?: string | null | undefined;
3259
+ uri: string;
3260
+ }>;
3261
+ type: "resource";
3262
+ }> | Readonly<{
3263
+ annotations?: Readonly<{
3264
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3265
+ lastModified?: string | null | undefined;
3266
+ priority?: number | null | undefined;
3267
+ }> | null | undefined;
3268
+ byteLength: number;
3269
+ imageKey: string;
3270
+ mimeType: string;
3271
+ type: "external_image";
3272
+ uri?: string | null | undefined;
3273
+ }> | Readonly<{
3274
+ annotations?: Readonly<{
3275
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3276
+ lastModified?: string | null | undefined;
3277
+ priority?: number | null | undefined;
3278
+ }> | null | undefined;
3279
+ audioKey: string;
3280
+ byteLength: number;
3281
+ mimeType: string;
3282
+ type: "external_audio";
3283
+ }> | Readonly<{
3284
+ annotations?: Readonly<{
3285
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3286
+ lastModified?: string | null | undefined;
3287
+ priority?: number | null | undefined;
3288
+ }> | null | undefined;
3289
+ byteLength: number;
3290
+ encoding: "binary" | "text";
3291
+ mimeType?: string | null | undefined;
3292
+ resourceKey: string;
3293
+ type: "external_resource";
3294
+ uri: string;
3295
+ }>;
3296
+ type: "content";
3297
+ }> | Readonly<{
3298
+ newText: string;
3299
+ oldText?: string | null | undefined;
3300
+ path: string;
3301
+ type: "diff";
3302
+ }> | Readonly<{
3303
+ terminalId: string;
3304
+ type: "terminal";
3305
+ }>)[] | null | undefined;
3306
+ kind?: "delete" | "edit" | "execute" | "fetch" | "move" | "other" | "read" | "search" | "switch_mode" | "think" | null | undefined;
3307
+ locations?: readonly Readonly<{
3308
+ line?: number | null | undefined;
3309
+ path: string;
3310
+ }>[] | null | undefined;
3311
+ name?: string | null | undefined;
3312
+ rawInput?: unknown;
3313
+ rawOutput?: unknown;
3314
+ status?: "completed" | "failed" | "in_progress" | "pending" | null | undefined;
3315
+ title?: string | null | undefined;
3316
+ sessionUpdate: "tool_call_update";
3317
+ toolCallId: string;
3318
+ }> | Readonly<{
3319
+ entries: readonly Readonly<{
3320
+ content: string;
3321
+ priority: "high" | "low" | "medium";
3322
+ status: "completed" | "in_progress" | "pending";
3323
+ }>[];
3324
+ sessionUpdate: "plan";
3325
+ }> | Readonly<{
3326
+ plan: Readonly<{
3327
+ entries: readonly Readonly<{
3328
+ content: string;
3329
+ priority: "high" | "low" | "medium";
3330
+ status: "completed" | "in_progress" | "pending";
3331
+ }>[];
3332
+ planId: string;
3333
+ type: "items";
3334
+ }> | Readonly<{
3335
+ planId: string;
3336
+ type: "file";
3337
+ uri: string;
3338
+ }> | Readonly<{
3339
+ content: string;
3340
+ planId: string;
3341
+ type: "markdown";
3342
+ }>;
3343
+ sessionUpdate: "plan_update";
3344
+ }> | Readonly<{
3345
+ planId: string;
3346
+ sessionUpdate: "plan_removed";
3347
+ }> | Readonly<{
3348
+ availableCommands: readonly Readonly<{
3349
+ description: string;
3350
+ input?: Readonly<{
3351
+ hint: string;
3352
+ }> | null | undefined;
3353
+ name: string;
3354
+ }>[];
3355
+ sessionUpdate: "available_commands_update";
3356
+ }> | Readonly<{
3357
+ currentModeId: string;
3358
+ sessionUpdate: "current_mode_update";
3359
+ }> | Readonly<{
3360
+ configOptions: readonly (Readonly<{
3361
+ category?: string | null | undefined;
3362
+ description?: string | null | undefined;
3363
+ id: string;
3364
+ name: string;
3365
+ currentValue: string;
3366
+ options: readonly Readonly<{
3367
+ description?: string | null | undefined;
3368
+ name: string;
3369
+ value: string;
3370
+ }>[] | readonly Readonly<{
3371
+ group: string;
3372
+ name: string;
3373
+ options: readonly Readonly<{
3374
+ description?: string | null | undefined;
3375
+ name: string;
3376
+ value: string;
3377
+ }>[];
3378
+ }>[];
3379
+ type: "select";
3380
+ }> | Readonly<{
3381
+ category?: string | null | undefined;
3382
+ description?: string | null | undefined;
3383
+ id: string;
3384
+ name: string;
3385
+ currentValue: boolean;
3386
+ type: "boolean";
3387
+ }>)[];
3388
+ sessionUpdate: "config_option_update";
3389
+ }> | Readonly<{
3390
+ sessionUpdate: "session_info_update";
3391
+ title?: string | null | undefined;
3392
+ updatedAt?: string | null | undefined;
3393
+ }> | Readonly<{
3394
+ cost?: Readonly<{
3395
+ amount: number;
3396
+ currency: string;
3397
+ }> | null | undefined;
3398
+ sessionUpdate: "usage_update";
3399
+ size: number;
3400
+ used: number;
3401
+ }> | Readonly<{
3402
+ compactionId: string;
3403
+ error?: string | null | undefined;
3404
+ sessionUpdate: "compaction_update";
3405
+ status: string;
3406
+ summary?: readonly (Readonly<{
3407
+ annotations?: Readonly<{
3408
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3409
+ lastModified?: string | null | undefined;
3410
+ priority?: number | null | undefined;
3411
+ }> | null | undefined;
3412
+ text: string;
3413
+ type: "text";
3414
+ }> | Readonly<{
3415
+ annotations?: Readonly<{
3416
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3417
+ lastModified?: string | null | undefined;
3418
+ priority?: number | null | undefined;
3419
+ }> | null | undefined;
3420
+ data: string;
3421
+ mimeType: string;
3422
+ type: "image";
3423
+ uri?: string | null | undefined;
3424
+ }> | Readonly<{
3425
+ annotations?: Readonly<{
3426
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3427
+ lastModified?: string | null | undefined;
3428
+ priority?: number | null | undefined;
3429
+ }> | null | undefined;
3430
+ data: string;
3431
+ mimeType: string;
3432
+ type: "audio";
3433
+ }> | Readonly<{
3434
+ annotations?: Readonly<{
3435
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3436
+ lastModified?: string | null | undefined;
3437
+ priority?: number | null | undefined;
3438
+ }> | null | undefined;
3439
+ description?: string | null | undefined;
3440
+ mimeType?: string | null | undefined;
3441
+ name: string;
3442
+ size?: number | null | undefined;
3443
+ title?: string | null | undefined;
3444
+ type: "resource_link";
3445
+ uri: string;
3446
+ }> | Readonly<{
3447
+ annotations?: Readonly<{
3448
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3449
+ lastModified?: string | null | undefined;
3450
+ priority?: number | null | undefined;
3451
+ }> | null | undefined;
3452
+ resource: Readonly<{
3453
+ mimeType?: string | null | undefined;
3454
+ text: string;
3455
+ uri: string;
3456
+ }> | Readonly<{
3457
+ blob: string;
3458
+ mimeType?: string | null | undefined;
3459
+ uri: string;
3460
+ }>;
3461
+ type: "resource";
3462
+ }> | Readonly<{
3463
+ annotations?: Readonly<{
3464
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3465
+ lastModified?: string | null | undefined;
3466
+ priority?: number | null | undefined;
3467
+ }> | null | undefined;
3468
+ byteLength: number;
3469
+ imageKey: string;
3470
+ mimeType: string;
3471
+ type: "external_image";
3472
+ uri?: string | null | undefined;
3473
+ }> | Readonly<{
3474
+ annotations?: Readonly<{
3475
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3476
+ lastModified?: string | null | undefined;
3477
+ priority?: number | null | undefined;
3478
+ }> | null | undefined;
3479
+ audioKey: string;
3480
+ byteLength: number;
3481
+ mimeType: string;
3482
+ type: "external_audio";
3483
+ }> | Readonly<{
3484
+ annotations?: Readonly<{
3485
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3486
+ lastModified?: string | null | undefined;
3487
+ priority?: number | null | undefined;
3488
+ }> | null | undefined;
3489
+ byteLength: number;
3490
+ encoding: "binary" | "text";
3491
+ mimeType?: string | null | undefined;
3492
+ resourceKey: string;
3493
+ type: "external_resource";
3494
+ uri: string;
3495
+ }>)[] | null | undefined;
3496
+ }> | Readonly<{
3497
+ compactionId: string;
3498
+ content: Readonly<{
3499
+ annotations?: Readonly<{
3500
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3501
+ lastModified?: string | null | undefined;
3502
+ priority?: number | null | undefined;
3503
+ }> | null | undefined;
3504
+ text: string;
3505
+ type: "text";
3506
+ }> | Readonly<{
3507
+ annotations?: Readonly<{
3508
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3509
+ lastModified?: string | null | undefined;
3510
+ priority?: number | null | undefined;
3511
+ }> | null | undefined;
3512
+ data: string;
3513
+ mimeType: string;
3514
+ type: "image";
3515
+ uri?: string | null | undefined;
3516
+ }> | Readonly<{
3517
+ annotations?: Readonly<{
3518
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3519
+ lastModified?: string | null | undefined;
3520
+ priority?: number | null | undefined;
3521
+ }> | null | undefined;
3522
+ data: string;
3523
+ mimeType: string;
3524
+ type: "audio";
3525
+ }> | Readonly<{
3526
+ annotations?: Readonly<{
3527
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3528
+ lastModified?: string | null | undefined;
3529
+ priority?: number | null | undefined;
3530
+ }> | null | undefined;
3531
+ description?: string | null | undefined;
3532
+ mimeType?: string | null | undefined;
3533
+ name: string;
3534
+ size?: number | null | undefined;
3535
+ title?: string | null | undefined;
3536
+ type: "resource_link";
3537
+ uri: string;
3538
+ }> | Readonly<{
3539
+ annotations?: Readonly<{
3540
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3541
+ lastModified?: string | null | undefined;
3542
+ priority?: number | null | undefined;
3543
+ }> | null | undefined;
3544
+ resource: Readonly<{
3545
+ mimeType?: string | null | undefined;
3546
+ text: string;
3547
+ uri: string;
3548
+ }> | Readonly<{
3549
+ blob: string;
3550
+ mimeType?: string | null | undefined;
3551
+ uri: string;
3552
+ }>;
3553
+ type: "resource";
3554
+ }> | Readonly<{
3555
+ annotations?: Readonly<{
3556
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3557
+ lastModified?: string | null | undefined;
3558
+ priority?: number | null | undefined;
3559
+ }> | null | undefined;
3560
+ byteLength: number;
3561
+ imageKey: string;
3562
+ mimeType: string;
3563
+ type: "external_image";
3564
+ uri?: string | null | undefined;
3565
+ }> | Readonly<{
3566
+ annotations?: Readonly<{
3567
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3568
+ lastModified?: string | null | undefined;
3569
+ priority?: number | null | undefined;
3570
+ }> | null | undefined;
3571
+ audioKey: string;
3572
+ byteLength: number;
3573
+ mimeType: string;
3574
+ type: "external_audio";
3575
+ }> | Readonly<{
3576
+ annotations?: Readonly<{
3577
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3578
+ lastModified?: string | null | undefined;
3579
+ priority?: number | null | undefined;
3580
+ }> | null | undefined;
3581
+ byteLength: number;
3582
+ encoding: "binary" | "text";
3583
+ mimeType?: string | null | undefined;
3584
+ resourceKey: string;
3585
+ type: "external_resource";
3586
+ uri: string;
3587
+ }>;
3588
+ sessionUpdate: "compaction_summary_chunk";
3589
+ }>;
3590
+ type: "acp";
3591
+ }> | Readonly<{
3592
+ eventId: string;
3593
+ mobiusMetadata?: Readonly<{
3594
+ omitted?: true | undefined;
3595
+ }> | undefined;
3596
+ provenance?: Readonly<{
3597
+ kind: "original";
3598
+ }> | Readonly<{
3599
+ kind: "imported";
3600
+ sourceEventId: string;
3601
+ sourcePosition: string;
3602
+ sourceSessionId: string;
3603
+ }> | Readonly<{
3604
+ kind: "forked";
3605
+ sourceEventId: string;
3606
+ sourcePosition: string;
3607
+ sourceSessionId: string;
3608
+ }> | undefined;
3609
+ recordedAt: string;
3610
+ sessionGenerationId: string;
3611
+ sessionId: string;
3612
+ payload: Readonly<{
3613
+ kind: "session.queue.changed";
3614
+ }> | Readonly<{
3615
+ event: Readonly<{
3616
+ commandId: string;
3617
+ interactionId: string;
3618
+ kind: "session.permission.requested";
3619
+ options: readonly Readonly<{
3620
+ kind: "allow_always" | "allow_once" | "reject_always" | "reject_once";
3621
+ name: string;
3622
+ optionId: string;
3623
+ }>[];
3624
+ sessionId: string;
3625
+ title: string;
3626
+ toolCallId: string;
3627
+ toolKind: string;
3628
+ }>;
3629
+ kind: "session.permission.requested";
3630
+ }> | Readonly<{
3631
+ event: Readonly<{
3632
+ interactionId: string;
3633
+ kind: "session.permission.resolved";
3634
+ optionId: string;
3635
+ outcome: "cancelled" | "selected";
3636
+ sessionId: string;
3637
+ }>;
3638
+ kind: "session.permission.resolved";
3639
+ }> | Readonly<{
3640
+ event: Readonly<{
3641
+ accepted: boolean;
3642
+ commandId: string;
3643
+ elicitationId: string;
3644
+ fields: readonly Readonly<{
3645
+ defaultBooleanValue: boolean;
3646
+ defaultNumberValue: number;
3647
+ defaultStringValue: string;
3648
+ description: string;
3649
+ format: string;
3650
+ hasDefaultValue: boolean;
3651
+ maximum: string;
3652
+ maximumLength: string;
3653
+ minimum: string;
3654
+ minimumLength: string;
3655
+ name: string;
3656
+ options: readonly Readonly<{
3657
+ description: string;
3658
+ label: string;
3659
+ value: string;
3660
+ }>[];
3661
+ pattern: string;
3662
+ required: boolean;
3663
+ title: string;
3664
+ type: "boolean" | "integer" | "multiselect" | "number" | "select" | "string";
3665
+ }>[];
3666
+ interactionId: string;
3667
+ kind: "session.elicitation.requested";
3668
+ message: string;
3669
+ mode: "form" | "url";
3670
+ sessionId: string;
3671
+ url: string;
3672
+ }>;
3673
+ kind: "session.elicitation.requested";
3674
+ }> | Readonly<{
3675
+ event: Readonly<{
3676
+ action: "accept" | "cancel" | "complete" | "decline";
3677
+ interactionId: string;
3678
+ kind: "session.elicitation.resolved";
3679
+ sessionId: string;
3680
+ }>;
3681
+ kind: "session.elicitation.resolved";
3682
+ }> | Readonly<{
3683
+ commandId: string;
3684
+ content: readonly (Readonly<{
3685
+ annotations?: Readonly<{
3686
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3687
+ lastModified?: string | null | undefined;
3688
+ priority?: number | null | undefined;
3689
+ }> | null | undefined;
3690
+ text: string;
3691
+ type: "text";
3692
+ }> | Readonly<{
3693
+ annotations?: Readonly<{
3694
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3695
+ lastModified?: string | null | undefined;
3696
+ priority?: number | null | undefined;
3697
+ }> | null | undefined;
3698
+ data: string;
3699
+ mimeType: string;
3700
+ type: "image";
3701
+ uri?: string | null | undefined;
3702
+ }> | Readonly<{
3703
+ annotations?: Readonly<{
3704
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3705
+ lastModified?: string | null | undefined;
3706
+ priority?: number | null | undefined;
3707
+ }> | null | undefined;
3708
+ data: string;
3709
+ mimeType: string;
3710
+ type: "audio";
3711
+ }> | Readonly<{
3712
+ annotations?: Readonly<{
3713
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3714
+ lastModified?: string | null | undefined;
3715
+ priority?: number | null | undefined;
3716
+ }> | null | undefined;
3717
+ description?: string | null | undefined;
3718
+ mimeType?: string | null | undefined;
3719
+ name: string;
3720
+ size?: number | null | undefined;
3721
+ title?: string | null | undefined;
3722
+ type: "resource_link";
3723
+ uri: string;
3724
+ }> | Readonly<{
3725
+ annotations?: Readonly<{
3726
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3727
+ lastModified?: string | null | undefined;
3728
+ priority?: number | null | undefined;
3729
+ }> | null | undefined;
3730
+ resource: Readonly<{
3731
+ mimeType?: string | null | undefined;
3732
+ text: string;
3733
+ uri: string;
3734
+ }> | Readonly<{
3735
+ blob: string;
3736
+ mimeType?: string | null | undefined;
3737
+ uri: string;
3738
+ }>;
3739
+ type: "resource";
3740
+ }> | Readonly<{
3741
+ annotations?: Readonly<{
3742
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3743
+ lastModified?: string | null | undefined;
3744
+ priority?: number | null | undefined;
3745
+ }> | null | undefined;
3746
+ byteLength: number;
3747
+ imageKey: string;
3748
+ mimeType: string;
3749
+ type: "external_image";
3750
+ uri?: string | null | undefined;
3751
+ }> | Readonly<{
3752
+ annotations?: Readonly<{
3753
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3754
+ lastModified?: string | null | undefined;
3755
+ priority?: number | null | undefined;
3756
+ }> | null | undefined;
3757
+ audioKey: string;
3758
+ byteLength: number;
3759
+ mimeType: string;
3760
+ type: "external_audio";
3761
+ }> | Readonly<{
3762
+ annotations?: Readonly<{
3763
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3764
+ lastModified?: string | null | undefined;
3765
+ priority?: number | null | undefined;
3766
+ }> | null | undefined;
3767
+ byteLength: number;
3768
+ encoding: "binary" | "text";
3769
+ mimeType?: string | null | undefined;
3770
+ resourceKey: string;
3771
+ type: "external_resource";
3772
+ uri: string;
3773
+ }>)[];
3774
+ disposition?: string | undefined;
3775
+ kind: "prompt.requested";
3776
+ context?: import("./session-event-log.ts").PromptExecutionContext | undefined;
3777
+ targetCommandId?: string | undefined;
3778
+ }> | Readonly<{
3779
+ commandId: string;
3780
+ attemptId: string;
3781
+ epoch: string;
3782
+ kind: "prompt.started";
3783
+ }> | Readonly<{
3784
+ commandId: string;
3785
+ kind: "prompt.completed";
3786
+ stopReason: string;
3787
+ }> | Readonly<{
3788
+ commandId: string;
3789
+ code: string;
3790
+ kind: "prompt.failed-before-start";
3791
+ message: string;
3792
+ }> | Readonly<{
3793
+ commandId: string;
3794
+ attemptId: string;
3795
+ code: string;
3796
+ kind: "prompt.failed";
3797
+ message: string;
3798
+ }>;
3799
+ type: "lifecycle-metadata";
3800
+ }>)[];
3801
+ nextCursor: string | null;
3802
+ sessionGenerationId: string;
3803
+ tailCursor: string;
3804
+ truncated: boolean;
3805
+ version: 2;
3806
+ }>;
3807
+ queuedPromptRequests: readonly Readonly<{
3808
+ commandId: string;
3809
+ content: readonly (Readonly<{
3810
+ annotations?: Readonly<{
3811
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3812
+ lastModified?: string | null | undefined;
3813
+ priority?: number | null | undefined;
3814
+ }> | null | undefined;
3815
+ text: string;
3816
+ type: "text";
3817
+ }> | Readonly<{
3818
+ annotations?: Readonly<{
3819
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3820
+ lastModified?: string | null | undefined;
3821
+ priority?: number | null | undefined;
3822
+ }> | null | undefined;
3823
+ data: string;
3824
+ mimeType: string;
3825
+ type: "image";
3826
+ uri?: string | null | undefined;
3827
+ }> | Readonly<{
3828
+ annotations?: Readonly<{
3829
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3830
+ lastModified?: string | null | undefined;
3831
+ priority?: number | null | undefined;
3832
+ }> | null | undefined;
3833
+ data: string;
3834
+ mimeType: string;
3835
+ type: "audio";
3836
+ }> | Readonly<{
3837
+ annotations?: Readonly<{
3838
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3839
+ lastModified?: string | null | undefined;
3840
+ priority?: number | null | undefined;
3841
+ }> | null | undefined;
3842
+ description?: string | null | undefined;
3843
+ mimeType?: string | null | undefined;
3844
+ name: string;
3845
+ size?: number | null | undefined;
3846
+ title?: string | null | undefined;
3847
+ type: "resource_link";
3848
+ uri: string;
3849
+ }> | Readonly<{
3850
+ annotations?: Readonly<{
3851
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3852
+ lastModified?: string | null | undefined;
3853
+ priority?: number | null | undefined;
3854
+ }> | null | undefined;
3855
+ resource: Readonly<{
3856
+ mimeType?: string | null | undefined;
3857
+ text: string;
3858
+ uri: string;
3859
+ }> | Readonly<{
3860
+ blob: string;
3861
+ mimeType?: string | null | undefined;
3862
+ uri: string;
3863
+ }>;
3864
+ type: "resource";
3865
+ }> | Readonly<{
3866
+ annotations?: Readonly<{
3867
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3868
+ lastModified?: string | null | undefined;
3869
+ priority?: number | null | undefined;
3870
+ }> | null | undefined;
3871
+ byteLength: number;
3872
+ imageKey: string;
3873
+ mimeType: string;
3874
+ type: "external_image";
3875
+ uri?: string | null | undefined;
3876
+ }> | Readonly<{
3877
+ annotations?: Readonly<{
3878
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3879
+ lastModified?: string | null | undefined;
3880
+ priority?: number | null | undefined;
3881
+ }> | null | undefined;
3882
+ audioKey: string;
3883
+ byteLength: number;
3884
+ mimeType: string;
3885
+ type: "external_audio";
3886
+ }> | Readonly<{
3887
+ annotations?: Readonly<{
3888
+ audience?: readonly ("assistant" | "user")[] | null | undefined;
3889
+ lastModified?: string | null | undefined;
3890
+ priority?: number | null | undefined;
3891
+ }> | null | undefined;
3892
+ byteLength: number;
3893
+ encoding: "binary" | "text";
3894
+ mimeType?: string | null | undefined;
3895
+ resourceKey: string;
3896
+ type: "external_resource";
3897
+ uri: string;
3898
+ }>)[];
3899
+ disposition?: string | undefined;
3900
+ targetCommandId?: string | undefined;
3901
+ }>[];
3902
+ }>;
3903
+ requestId: string;
3904
+ sessionId: string;
3905
+ kind: "session.live-history.v2.page.loaded";
3906
+ }>>;
3907
+ readonly "session.ready": MessageSignature<Readonly<{
3908
+ additionalDirectories: readonly Readonly<{
3909
+ directoryId: string;
3910
+ name: string;
3911
+ }>[];
3912
+ agentId: string;
3913
+ agentName: string;
3914
+ agentVersion: string;
3915
+ capabilities: Readonly<{
3916
+ additionalDirectories: boolean;
3917
+ audioPrompt: boolean;
3918
+ closeSession: boolean;
3919
+ deleteSession: boolean;
3920
+ embeddedContextPrompt: boolean;
3921
+ imagePrompt: boolean;
3922
+ listSessions: boolean;
3923
+ loadSession: boolean;
3924
+ promptQueueing: boolean;
3925
+ renameSession: boolean;
3926
+ resumeSession: boolean;
3927
+ steering: boolean;
3928
+ unstableForkSession: boolean;
3929
+ }>;
3930
+ commands: readonly Readonly<{
3931
+ description: string;
3932
+ inputHint: string;
3933
+ name: string;
3934
+ }>[];
3935
+ configOptions: readonly Readonly<{
3936
+ booleanValue: boolean;
3937
+ category: string;
3938
+ currentValue: string;
3939
+ description: string;
3940
+ id: string;
3941
+ name: string;
3942
+ type: "boolean" | "select";
3943
+ values: readonly Readonly<{
3944
+ description: string;
3945
+ groupId: string;
3946
+ groupName: string;
3947
+ name: string;
3948
+ value: string;
3949
+ }>[];
3950
+ }>[];
3951
+ directoryId: string;
3952
+ directoryLabel: string;
3953
+ kind: "session.ready";
3954
+ requestId: string;
3955
+ restored: boolean;
3956
+ runtimeTimings?: readonly Readonly<{
3957
+ durationMilliseconds: number;
3958
+ name: string;
3959
+ }>[] | undefined;
3960
+ sessionId: string;
3961
+ }>>;
3962
+ readonly "workspace.entries": MessageSignature<Readonly<{
3963
+ bindingId: string;
3964
+ directoryId: string;
3965
+ directoryLabel: string;
3966
+ entries: readonly Readonly<{
3967
+ directoryId: string;
3968
+ name: string;
3969
+ }>[];
3970
+ kind: "workspace.entries";
3971
+ parentDirectoryId: string;
3972
+ requestId: string;
3973
+ }>>;
3974
+ };
3975
+ export type DaemonToServiceMessage = ReturnType<(typeof daemonToServiceSignatures)[keyof typeof daemonToServiceSignatures]["decoder"]>;
3976
+ export declare function decodeDaemonToServiceMessage(encoded: string): DaemonToServiceMessage;
3977
+ export declare function encodeDaemonToServiceMessage(message: DaemonToServiceMessage): string;
3978
+ export {};
3979
+ //# sourceMappingURL=daemon-transport.d.ts.map