effect-durable-agent-cloudflare 0.1.0-alpha.18 → 0.1.0-alpha.19

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.
@@ -1,10 +1,9 @@
1
- import { a as SessionOutcomeInput, i as SessionGrantRunInput, n as SessionBlockInput, o as SessionScopedInput, r as SessionCommandInput, s as edaSessionRpc, t as SessionBatchInput } from "./rpc-spec-DZjBBd0T.js";
2
- import { i as EDASessionControllerOptions, l as EDAWebSocketProjection } from "./session-controller-xdQPy0NX.js";
1
+ import { a as SessionOutcomeInput, i as SessionGrantRunInput, n as SessionBlockInput, o as SessionScopedInput, r as SessionCommandInput, s as edaSessionRpc, t as SessionBatchInput } from "./rpc-spec-Cko7gaMg.js";
2
+ import { i as EDASessionControllerOptions, l as EDAWebSocketProjection } from "./session-controller-BfA5NAuY.js";
3
3
  import * as Schema from "effect/Schema";
4
4
  import { CommittedDurableEvent } from "effect-durable-agent/services/session-store";
5
5
  import { EDARuntimeConfig } from "effect-durable-agent/services/runtime";
6
6
  import { DurableObject } from "cloudflare:workers";
7
-
8
7
  //#region src/durable-object.d.ts
9
8
  /** Internal Worker-to-object header selecting an app-owned WebSocket projection. */
10
9
  declare const EDA_WEB_SOCKET_PROJECTION_HEADER = "x-eda-websocket-projection";
@@ -76,14 +75,287 @@ declare const encodeEdaRpcCommittedDurableEvent: (entry: CommittedDurableEvent)
76
75
  /** Encode query snapshots without asserting that encoded command values are decoded classes. */
77
76
  declare const encodeEdaRpcSessionSnapshot: (input: {
78
77
  readonly state: {
78
+ readonly runSchedulingRequest?: {
79
+ readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
80
+ readonly work: {
81
+ readonly _tag: "Command";
82
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
83
+ } | {
84
+ readonly _tag: "Recovery";
85
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
86
+ readonly interruptedRunId: string & import("effect/Brand").Brand<"RunId">;
87
+ readonly inputMessageIds: readonly (string & import("effect/Brand").Brand<"MessageId">)[];
88
+ };
89
+ readonly requestedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
90
+ readonly deliveredSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
91
+ } | undefined;
92
+ readonly modelSelection?: {
93
+ readonly provider: string;
94
+ readonly modelId: string;
95
+ readonly settings?: unknown;
96
+ } | undefined;
97
+ readonly lastSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
98
+ readonly commands: ReadonlyMap<string & import("effect/Brand").Brand<"CommandId">, {
99
+ readonly admittedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
100
+ readonly admissionTrace?: {
101
+ readonly span: {
102
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
103
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
104
+ readonly sampled: boolean;
105
+ readonly tracestate: string | null;
106
+ };
107
+ readonly links: readonly {
108
+ readonly context: {
109
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
110
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
111
+ readonly sampled: boolean;
112
+ readonly tracestate: string | null;
113
+ };
114
+ readonly attributes: {
115
+ readonly [x: string]: string | number | boolean;
116
+ };
117
+ }[];
118
+ } | undefined;
119
+ readonly command?: import("effect-durable-agent/types/commands").CancelPendingMessageCommand | import("effect-durable-agent/types/commands").PromotePendingMessageCommand | import("effect-durable-agent/types/commands").ResumePendingMessagesCommand | import("effect-durable-agent/types/commands").StopTurnCommand | import("effect-durable-agent/types/commands").SubmitMessageCommand | undefined;
120
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
121
+ readonly startedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
122
+ readonly terminal?: {
123
+ readonly _tag: "Completed";
124
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
125
+ } | {
126
+ readonly _tag: "Failed";
127
+ readonly error: {
128
+ readonly message: string;
129
+ readonly code?: string | undefined;
130
+ readonly details?: unknown;
131
+ };
132
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
133
+ } | {
134
+ readonly _tag: "Cancelled";
135
+ readonly reason: string;
136
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
137
+ } | undefined;
138
+ }>;
139
+ readonly runs: ReadonlyMap<string & import("effect/Brand").Brand<"RunId">, {
140
+ readonly durationMs?: number | undefined;
141
+ readonly startedAtMs?: number | undefined;
142
+ readonly terminalAtMs?: number | undefined;
143
+ readonly modelSelection?: {
144
+ readonly provider: string;
145
+ readonly modelId: string;
146
+ readonly settings?: unknown;
147
+ } | undefined;
148
+ readonly commandIds: readonly (string & import("effect/Brand").Brand<"CommandId">)[];
149
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
150
+ readonly startedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
151
+ readonly terminal?: {
152
+ readonly _tag: "Completed";
153
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
154
+ } | {
155
+ readonly _tag: "Failed";
156
+ readonly error: {
157
+ readonly message: string;
158
+ readonly code?: string | undefined;
159
+ readonly details?: unknown;
160
+ };
161
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
162
+ } | {
163
+ readonly _tag: "Interrupted";
164
+ readonly reason: string;
165
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
166
+ } | undefined;
167
+ readonly trace: {
168
+ readonly root: {
169
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
170
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
171
+ readonly sampled: boolean;
172
+ readonly tracestate: string | null;
173
+ };
174
+ readonly links: readonly {
175
+ readonly context: {
176
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
177
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
178
+ readonly sampled: boolean;
179
+ readonly tracestate: string | null;
180
+ };
181
+ readonly attributes: {
182
+ readonly [x: string]: string | number | boolean;
183
+ };
184
+ }[];
185
+ };
186
+ }>;
187
+ readonly recoveryContinuations: ReadonlyMap<string & import("effect/Brand").Brand<"RunId">, {
188
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
189
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
190
+ readonly interruptedRunId: string & import("effect/Brand").Brand<"RunId">;
191
+ readonly replacementRunId: string & import("effect/Brand").Brand<"RunId">;
192
+ }>;
193
+ readonly turns: ReadonlyMap<string & import("effect/Brand").Brand<"TurnId">, {
194
+ readonly durationMs?: number | undefined;
195
+ readonly startedAtMs?: number | undefined;
196
+ readonly terminalAtMs?: number | undefined;
197
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
198
+ readonly startedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
199
+ readonly terminal?: {
200
+ readonly _tag: "Completed";
201
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
202
+ readonly usage?: {
203
+ readonly inputTokens?: number | undefined;
204
+ readonly cachedInputTokens?: number | undefined;
205
+ readonly cacheWriteInputTokens?: number | undefined;
206
+ readonly outputTokens?: number | undefined;
207
+ readonly textTokens?: number | undefined;
208
+ readonly reasoningTokens?: number | undefined;
209
+ } | undefined;
210
+ } | {
211
+ readonly _tag: "Failed";
212
+ readonly error: {
213
+ readonly message: string;
214
+ readonly code?: string | undefined;
215
+ readonly details?: unknown;
216
+ };
217
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
218
+ } | {
219
+ readonly _tag: "Stopped";
220
+ readonly reason: string;
221
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
222
+ } | undefined;
223
+ readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
224
+ }>;
225
+ readonly inferences: ReadonlyMap<string & import("effect/Brand").Brand<"InferenceId">, {
226
+ readonly durationMs?: number | undefined;
227
+ readonly startedAtMs?: number | undefined;
228
+ readonly terminalAtMs?: number | undefined;
229
+ readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
230
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
231
+ readonly startedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
232
+ readonly terminal?: {
233
+ readonly _tag: "Completed";
234
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
235
+ readonly usage?: {
236
+ readonly inputTokens?: number | undefined;
237
+ readonly cachedInputTokens?: number | undefined;
238
+ readonly cacheWriteInputTokens?: number | undefined;
239
+ readonly outputTokens?: number | undefined;
240
+ readonly textTokens?: number | undefined;
241
+ readonly reasoningTokens?: number | undefined;
242
+ } | undefined;
243
+ } | {
244
+ readonly _tag: "Failed";
245
+ readonly error: {
246
+ readonly message: string;
247
+ readonly code?: string | undefined;
248
+ readonly details?: unknown;
249
+ };
250
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
251
+ } | undefined;
252
+ readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
253
+ }>;
254
+ readonly toolCalls: ReadonlyMap<string & import("effect/Brand").Brand<"ToolCallId">, {
255
+ readonly durationMs?: number | undefined;
256
+ readonly startedAtMs?: number | undefined;
257
+ readonly terminalAtMs?: number | undefined;
258
+ readonly decision?: {
259
+ readonly _tag: "Created";
260
+ readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
261
+ readonly params: unknown;
262
+ readonly promptPart?: {
263
+ readonly type: "tool-call";
264
+ readonly id: string;
265
+ readonly name: string;
266
+ readonly params: unknown;
267
+ readonly providerExecuted: boolean;
268
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
269
+ readonly options: {
270
+ readonly [x: string]: Schema.Json;
271
+ };
272
+ } | undefined;
273
+ readonly providerExecuted: boolean;
274
+ readonly providerPartId: string & import("effect/Brand").Brand<"ProviderPartId">;
275
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
276
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
277
+ readonly toolName: string;
278
+ readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
279
+ } | {
280
+ readonly _tag: "Rejected";
281
+ readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
282
+ readonly modelFeedback: string;
283
+ readonly promptPart?: {
284
+ readonly type: "tool-result";
285
+ readonly id: string;
286
+ readonly name: string;
287
+ readonly isFailure: boolean;
288
+ readonly result: unknown;
289
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
290
+ readonly options: {
291
+ readonly [x: string]: Schema.Json;
292
+ };
293
+ } | undefined;
294
+ readonly providerPartId: string & import("effect/Brand").Brand<"ProviderPartId">;
295
+ readonly reason: "invalid-params" | "unknown-tool";
296
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
297
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
298
+ readonly toolName: string;
299
+ readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
300
+ } | undefined;
301
+ readonly startedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
302
+ readonly terminal?: {
303
+ readonly _tag: "Completed";
304
+ readonly promptPart?: {
305
+ readonly type: "tool-result";
306
+ readonly id: string;
307
+ readonly name: string;
308
+ readonly isFailure: boolean;
309
+ readonly result: unknown;
310
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
311
+ readonly options: {
312
+ readonly [x: string]: Schema.Json;
313
+ };
314
+ } | undefined;
315
+ readonly result: unknown;
316
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
317
+ } | {
318
+ readonly _tag: "Failed";
319
+ readonly error: {
320
+ readonly message: string;
321
+ readonly code?: string | undefined;
322
+ readonly details?: unknown;
323
+ };
324
+ readonly promptPart?: {
325
+ readonly type: "tool-result";
326
+ readonly id: string;
327
+ readonly name: string;
328
+ readonly isFailure: boolean;
329
+ readonly result: unknown;
330
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
331
+ readonly options: {
332
+ readonly [x: string]: Schema.Json;
333
+ };
334
+ } | undefined;
335
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
336
+ } | undefined;
337
+ readonly toolCallId: string & import("effect/Brand").Brand<"ToolCallId">;
338
+ }>;
79
339
  readonly messages: ReadonlyMap<string & import("effect/Brand").Brand<"MessageId">, {
340
+ readonly createdAtMs?: number | undefined;
341
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
342
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
80
343
  readonly _tag: "System";
81
344
  readonly content: string;
345
+ } | {
346
+ readonly createdAtMs?: number | undefined;
82
347
  readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
83
348
  readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
84
- readonly createdAtMs?: number | undefined;
85
- } | {
349
+ readonly cancellationReason?: string | undefined;
350
+ readonly cancelledByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
351
+ readonly cancelledSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
352
+ readonly consumedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
353
+ readonly consumedTurnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
354
+ readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
355
+ readonly pausedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
356
+ readonly promotedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
86
357
  readonly _tag: "User";
358
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
87
359
  readonly content: readonly [{
88
360
  readonly type: "text";
89
361
  readonly text: string;
@@ -107,13 +379,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
107
379
  };
108
380
  } | {
109
381
  readonly type: "file";
382
+ readonly mediaType: string;
383
+ readonly fileName?: string | undefined;
384
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
110
385
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
111
386
  readonly options: {
112
387
  readonly [x: string]: Schema.Json;
113
388
  };
114
- readonly mediaType: string;
115
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
116
- readonly fileName?: string | undefined;
117
389
  }, ...({
118
390
  readonly type: "text";
119
391
  readonly text: string;
@@ -123,20 +395,20 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
123
395
  };
124
396
  } | {
125
397
  readonly type: "file";
398
+ readonly mediaType: string;
399
+ readonly fileName?: string | undefined;
400
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
126
401
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
127
402
  readonly options: {
128
403
  readonly [x: string]: Schema.Json;
129
404
  };
130
- readonly mediaType: string;
131
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
132
- readonly fileName?: string | undefined;
133
405
  })[]];
134
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
135
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
136
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
137
- readonly createdAtMs?: number | undefined;
138
406
  readonly disposition?: "queue" | "steer" | undefined;
139
407
  readonly requestedDisposition?: "queue" | "steer" | undefined;
408
+ } | {
409
+ readonly createdAtMs?: number | undefined;
410
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
411
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
140
412
  readonly cancellationReason?: string | undefined;
141
413
  readonly cancelledByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
142
414
  readonly cancelledSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
@@ -145,8 +417,8 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
145
417
  readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
146
418
  readonly pausedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
147
419
  readonly promotedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
148
- } | {
149
420
  readonly _tag: "Steering";
421
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
150
422
  readonly content: readonly [{
151
423
  readonly type: "text";
152
424
  readonly text: string;
@@ -170,13 +442,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
170
442
  };
171
443
  } | {
172
444
  readonly type: "file";
445
+ readonly mediaType: string;
446
+ readonly fileName?: string | undefined;
447
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
173
448
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
174
449
  readonly options: {
175
450
  readonly [x: string]: Schema.Json;
176
451
  };
177
- readonly mediaType: string;
178
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
179
- readonly fileName?: string | undefined;
180
452
  }, ...({
181
453
  readonly type: "text";
182
454
  readonly text: string;
@@ -186,40 +458,26 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
186
458
  };
187
459
  } | {
188
460
  readonly type: "file";
461
+ readonly mediaType: string;
462
+ readonly fileName?: string | undefined;
463
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
189
464
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
190
465
  readonly options: {
191
466
  readonly [x: string]: Schema.Json;
192
467
  };
193
- readonly mediaType: string;
194
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
195
- readonly fileName?: string | undefined;
196
468
  })[]];
197
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
198
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
199
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
200
469
  readonly runId: string & import("effect/Brand").Brand<"RunId">;
201
- readonly createdAtMs?: number | undefined;
202
- readonly cancellationReason?: string | undefined;
203
- readonly cancelledByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
204
- readonly cancelledSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
205
- readonly consumedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
206
- readonly consumedTurnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
207
- readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
208
- readonly pausedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
209
- readonly promotedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
210
470
  } | {
471
+ readonly createdAtMs?: number | undefined;
472
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
473
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
211
474
  readonly _tag: "Assistant";
212
475
  readonly content: {
213
476
  readonly text: string;
214
477
  readonly reasoning?: string | undefined;
215
478
  };
216
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
217
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
218
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
219
- readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
220
- readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
221
- readonly createdAtMs?: number | undefined;
222
479
  readonly imported?: true | undefined;
480
+ readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
223
481
  readonly promptParts?: readonly ({
224
482
  readonly type: "text";
225
483
  readonly text: string;
@@ -229,78 +487,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
229
487
  };
230
488
  } | {
231
489
  readonly type: "file";
232
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
233
- readonly options: {
234
- readonly [x: string]: Schema.Json;
235
- };
236
490
  readonly mediaType: string;
237
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
238
491
  readonly fileName?: string | undefined;
239
- } | {
240
- readonly type: "reasoning";
241
- readonly text: string;
242
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
243
- readonly options: {
244
- readonly [x: string]: Schema.Json;
245
- };
246
- } | {
247
- readonly type: "tool-call";
248
- readonly id: string;
249
- readonly name: string;
250
- readonly params: unknown;
251
- readonly providerExecuted: boolean;
252
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
253
- readonly options: {
254
- readonly [x: string]: Schema.Json;
255
- };
256
- } | {
257
- readonly type: "tool-result";
258
- readonly id: string;
259
- readonly name: string;
260
- readonly isFailure: boolean;
261
- readonly result: unknown;
262
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
263
- readonly options: {
264
- readonly [x: string]: Schema.Json;
265
- };
266
- } | {
267
- readonly type: "tool-approval-request";
268
- readonly approvalId: string;
269
- readonly toolCallId: string;
270
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
271
- readonly options: {
272
- readonly [x: string]: Schema.Json;
273
- };
274
- })[] | undefined;
275
- } | {
276
- readonly _tag: "AssistantPartial";
277
- readonly content: {
278
- readonly text: string;
279
- readonly reasoning?: string | undefined;
280
- };
281
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
282
- readonly reason: string;
283
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
284
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
285
- readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
286
- readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
287
- readonly createdAtMs?: number | undefined;
288
- readonly promptParts?: readonly ({
289
- readonly type: "text";
290
- readonly text: string;
291
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
292
- readonly options: {
293
- readonly [x: string]: Schema.Json;
294
- };
295
- } | {
296
- readonly type: "file";
492
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
297
493
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
298
494
  readonly options: {
299
495
  readonly [x: string]: Schema.Json;
300
496
  };
301
- readonly mediaType: string;
302
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
303
- readonly fileName?: string | undefined;
304
497
  } | {
305
498
  readonly type: "reasoning";
306
499
  readonly text: string;
@@ -334,251 +527,76 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
334
527
  readonly toolCallId: string;
335
528
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
336
529
  readonly options: {
337
- readonly [x: string]: Schema.Json;
338
- };
339
- })[] | undefined;
340
- }>;
341
- readonly lastSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
342
- readonly commands: ReadonlyMap<string & import("effect/Brand").Brand<"CommandId">, {
343
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
344
- readonly command?: import("effect-durable-agent/types/commands").SubmitMessageCommand | import("effect-durable-agent/types/commands").StopTurnCommand | import("effect-durable-agent/types/commands").CancelPendingMessageCommand | import("effect-durable-agent/types/commands").PromotePendingMessageCommand | import("effect-durable-agent/types/commands").ResumePendingMessagesCommand | undefined;
345
- readonly admittedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
346
- readonly admissionTrace?: {
347
- readonly span: {
348
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
349
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
350
- readonly sampled: boolean;
351
- readonly tracestate: string | null;
352
- };
353
- readonly links: readonly {
354
- readonly context: {
355
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
356
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
357
- readonly sampled: boolean;
358
- readonly tracestate: string | null;
359
- };
360
- readonly attributes: {
361
- readonly [x: string]: string | number | boolean;
362
- };
363
- }[];
364
- } | undefined;
365
- readonly startedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
366
- readonly terminal?: {
367
- readonly _tag: "Completed";
368
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
369
- } | {
370
- readonly _tag: "Failed";
371
- readonly error: {
372
- readonly message: string;
373
- readonly code?: string | undefined;
374
- readonly details?: unknown;
375
- };
376
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
377
- } | {
378
- readonly _tag: "Cancelled";
379
- readonly reason: string;
380
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
381
- } | undefined;
382
- }>;
383
- readonly runs: ReadonlyMap<string & import("effect/Brand").Brand<"RunId">, {
384
- readonly trace: {
385
- readonly root: {
386
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
387
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
388
- readonly sampled: boolean;
389
- readonly tracestate: string | null;
390
- };
391
- readonly links: readonly {
392
- readonly context: {
393
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
394
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
395
- readonly sampled: boolean;
396
- readonly tracestate: string | null;
397
- };
398
- readonly attributes: {
399
- readonly [x: string]: string | number | boolean;
400
- };
401
- }[];
402
- };
403
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
404
- readonly startedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
405
- readonly commandIds: readonly (string & import("effect/Brand").Brand<"CommandId">)[];
406
- readonly modelSelection?: {
407
- readonly provider: string;
408
- readonly modelId: string;
409
- readonly settings?: unknown;
410
- } | undefined;
411
- readonly terminal?: {
412
- readonly _tag: "Completed";
413
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
414
- } | {
415
- readonly _tag: "Failed";
416
- readonly error: {
417
- readonly message: string;
418
- readonly code?: string | undefined;
419
- readonly details?: unknown;
420
- };
421
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
422
- } | {
423
- readonly _tag: "Interrupted";
424
- readonly reason: string;
425
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
426
- } | undefined;
427
- readonly durationMs?: number | undefined;
428
- readonly startedAtMs?: number | undefined;
429
- readonly terminalAtMs?: number | undefined;
430
- }>;
431
- readonly recoveryContinuations: ReadonlyMap<string & import("effect/Brand").Brand<"RunId">, {
432
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
433
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
434
- readonly interruptedRunId: string & import("effect/Brand").Brand<"RunId">;
435
- readonly replacementRunId: string & import("effect/Brand").Brand<"RunId">;
436
- }>;
437
- readonly turns: ReadonlyMap<string & import("effect/Brand").Brand<"TurnId">, {
438
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
439
- readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
440
- readonly startedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
441
- readonly terminal?: {
442
- readonly _tag: "Completed";
443
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
444
- readonly usage?: {
445
- readonly inputTokens?: number | undefined;
446
- readonly cachedInputTokens?: number | undefined;
447
- readonly cacheWriteInputTokens?: number | undefined;
448
- readonly outputTokens?: number | undefined;
449
- readonly textTokens?: number | undefined;
450
- readonly reasoningTokens?: number | undefined;
451
- } | undefined;
452
- } | {
453
- readonly _tag: "Failed";
454
- readonly error: {
455
- readonly message: string;
456
- readonly code?: string | undefined;
457
- readonly details?: unknown;
530
+ readonly [x: string]: Schema.Json;
458
531
  };
459
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
460
- } | {
461
- readonly _tag: "Stopped";
462
- readonly reason: string;
463
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
464
- } | undefined;
465
- readonly durationMs?: number | undefined;
466
- readonly startedAtMs?: number | undefined;
467
- readonly terminalAtMs?: number | undefined;
468
- }>;
469
- readonly inferences: ReadonlyMap<string & import("effect/Brand").Brand<"InferenceId">, {
532
+ })[] | undefined;
470
533
  readonly runId: string & import("effect/Brand").Brand<"RunId">;
471
- readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
472
534
  readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
473
- readonly startedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
474
- readonly terminal?: {
475
- readonly _tag: "Completed";
476
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
477
- readonly usage?: {
478
- readonly inputTokens?: number | undefined;
479
- readonly cachedInputTokens?: number | undefined;
480
- readonly cacheWriteInputTokens?: number | undefined;
481
- readonly outputTokens?: number | undefined;
482
- readonly textTokens?: number | undefined;
483
- readonly reasoningTokens?: number | undefined;
484
- } | undefined;
535
+ } | {
536
+ readonly createdAtMs?: number | undefined;
537
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
538
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
539
+ readonly _tag: "AssistantPartial";
540
+ readonly content: {
541
+ readonly text: string;
542
+ readonly reasoning?: string | undefined;
543
+ };
544
+ readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
545
+ readonly promptParts?: readonly ({
546
+ readonly type: "text";
547
+ readonly text: string;
548
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
549
+ readonly options: {
550
+ readonly [x: string]: Schema.Json;
551
+ };
485
552
  } | {
486
- readonly _tag: "Failed";
487
- readonly error: {
488
- readonly message: string;
489
- readonly code?: string | undefined;
490
- readonly details?: unknown;
553
+ readonly type: "file";
554
+ readonly mediaType: string;
555
+ readonly fileName?: string | undefined;
556
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
557
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
558
+ readonly options: {
559
+ readonly [x: string]: Schema.Json;
491
560
  };
492
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
493
- } | undefined;
494
- readonly durationMs?: number | undefined;
495
- readonly startedAtMs?: number | undefined;
496
- readonly terminalAtMs?: number | undefined;
497
- }>;
498
- readonly toolCalls: ReadonlyMap<string & import("effect/Brand").Brand<"ToolCallId">, {
499
- readonly toolCallId: string & import("effect/Brand").Brand<"ToolCallId">;
500
- readonly startedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
501
- readonly terminal?: {
502
- readonly _tag: "Completed";
503
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
504
- readonly result: unknown;
505
- readonly promptPart?: {
506
- readonly type: "tool-result";
507
- readonly id: string;
508
- readonly name: string;
509
- readonly isFailure: boolean;
510
- readonly result: unknown;
511
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
512
- readonly options: {
513
- readonly [x: string]: Schema.Json;
514
- };
515
- } | undefined;
516
561
  } | {
517
- readonly _tag: "Failed";
518
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
519
- readonly error: {
520
- readonly message: string;
521
- readonly code?: string | undefined;
522
- readonly details?: unknown;
562
+ readonly type: "reasoning";
563
+ readonly text: string;
564
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
565
+ readonly options: {
566
+ readonly [x: string]: Schema.Json;
523
567
  };
524
- readonly promptPart?: {
525
- readonly type: "tool-result";
526
- readonly id: string;
527
- readonly name: string;
528
- readonly isFailure: boolean;
529
- readonly result: unknown;
530
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
531
- readonly options: {
532
- readonly [x: string]: Schema.Json;
533
- };
534
- } | undefined;
535
- } | undefined;
536
- readonly durationMs?: number | undefined;
537
- readonly startedAtMs?: number | undefined;
538
- readonly terminalAtMs?: number | undefined;
539
- readonly decision?: {
540
- readonly _tag: "Created";
541
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
542
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
543
- readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
544
- readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
568
+ } | {
569
+ readonly type: "tool-call";
570
+ readonly id: string;
571
+ readonly name: string;
545
572
  readonly params: unknown;
546
573
  readonly providerExecuted: boolean;
547
- readonly providerPartId: string & import("effect/Brand").Brand<"ProviderPartId">;
548
- readonly toolName: string;
549
- readonly promptPart?: {
550
- readonly type: "tool-call";
551
- readonly id: string;
552
- readonly name: string;
553
- readonly params: unknown;
554
- readonly providerExecuted: boolean;
555
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
556
- readonly options: {
557
- readonly [x: string]: Schema.Json;
558
- };
559
- } | undefined;
574
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
575
+ readonly options: {
576
+ readonly [x: string]: Schema.Json;
577
+ };
560
578
  } | {
561
- readonly _tag: "Rejected";
562
- readonly reason: "unknown-tool" | "invalid-params";
563
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
564
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
565
- readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
566
- readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
567
- readonly providerPartId: string & import("effect/Brand").Brand<"ProviderPartId">;
568
- readonly toolName: string;
569
- readonly modelFeedback: string;
570
- readonly promptPart?: {
571
- readonly type: "tool-result";
572
- readonly id: string;
573
- readonly name: string;
574
- readonly isFailure: boolean;
575
- readonly result: unknown;
576
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
577
- readonly options: {
578
- readonly [x: string]: Schema.Json;
579
- };
580
- } | undefined;
581
- } | undefined;
579
+ readonly type: "tool-result";
580
+ readonly id: string;
581
+ readonly name: string;
582
+ readonly isFailure: boolean;
583
+ readonly result: unknown;
584
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
585
+ readonly options: {
586
+ readonly [x: string]: Schema.Json;
587
+ };
588
+ } | {
589
+ readonly type: "tool-approval-request";
590
+ readonly approvalId: string;
591
+ readonly toolCallId: string;
592
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
593
+ readonly options: {
594
+ readonly [x: string]: Schema.Json;
595
+ };
596
+ })[] | undefined;
597
+ readonly reason: string;
598
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
599
+ readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
582
600
  }>;
583
601
  readonly stopRequests: ReadonlyMap<string & import("effect/Brand").Brand<"CommandId">, {
584
602
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
@@ -594,6 +612,12 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
594
612
  readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
595
613
  readonly requestedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
596
614
  readonly startedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
615
+ readonly summaryCreatedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
616
+ readonly summaryId?: (string & import("effect/Brand").Brand<"SummaryId">) | undefined;
617
+ readonly sourceFromSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
618
+ readonly sourceToSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
619
+ readonly rebasedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
620
+ readonly contextVersion?: (number & import("effect/Brand").Brand<"ContextVersion">) | undefined;
597
621
  readonly terminal?: {
598
622
  readonly _tag: "Completed";
599
623
  readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
@@ -606,12 +630,6 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
606
630
  readonly details?: unknown;
607
631
  };
608
632
  } | undefined;
609
- readonly summaryCreatedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
610
- readonly summaryId?: (string & import("effect/Brand").Brand<"SummaryId">) | undefined;
611
- readonly sourceFromSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
612
- readonly sourceToSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
613
- readonly rebasedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
614
- readonly contextVersion?: (number & import("effect/Brand").Brand<"ContextVersion">) | undefined;
615
633
  }>;
616
634
  readonly context: {
617
635
  readonly version: number & import("effect/Brand").Brand<"ContextVersion">;
@@ -632,9 +650,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
632
650
  }[];
633
651
  };
634
652
  readonly commandQueues: {
653
+ readonly active?: {
654
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
655
+ readonly runId?: (string & import("effect/Brand").Brand<"RunId">) | undefined;
656
+ } | undefined;
635
657
  readonly pendingCommands: readonly {
636
658
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
637
- readonly command: import("effect-durable-agent/types/commands").SubmitMessageCommand | import("effect-durable-agent/types/commands").StopTurnCommand | import("effect-durable-agent/types/commands").CancelPendingMessageCommand | import("effect-durable-agent/types/commands").PromotePendingMessageCommand | import("effect-durable-agent/types/commands").ResumePendingMessagesCommand;
659
+ readonly command: import("effect-durable-agent/types/commands").CancelPendingMessageCommand | import("effect-durable-agent/types/commands").PromotePendingMessageCommand | import("effect-durable-agent/types/commands").ResumePendingMessagesCommand | import("effect-durable-agent/types/commands").StopTurnCommand | import("effect-durable-agent/types/commands").SubmitMessageCommand;
638
660
  readonly admittedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
639
661
  readonly admissionTrace?: {
640
662
  readonly span: {
@@ -658,7 +680,7 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
658
680
  }[];
659
681
  readonly queuedCommands: readonly {
660
682
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
661
- readonly command: import("effect-durable-agent/types/commands").SubmitMessageCommand | import("effect-durable-agent/types/commands").StopTurnCommand | import("effect-durable-agent/types/commands").CancelPendingMessageCommand | import("effect-durable-agent/types/commands").PromotePendingMessageCommand | import("effect-durable-agent/types/commands").ResumePendingMessagesCommand;
683
+ readonly command: import("effect-durable-agent/types/commands").CancelPendingMessageCommand | import("effect-durable-agent/types/commands").PromotePendingMessageCommand | import("effect-durable-agent/types/commands").ResumePendingMessagesCommand | import("effect-durable-agent/types/commands").StopTurnCommand | import("effect-durable-agent/types/commands").SubmitMessageCommand;
662
684
  readonly admittedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
663
685
  readonly admissionTrace?: {
664
686
  readonly span: {
@@ -682,7 +704,7 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
682
704
  }[];
683
705
  readonly activeControlCommands: readonly {
684
706
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
685
- readonly command: import("effect-durable-agent/types/commands").SubmitMessageCommand | import("effect-durable-agent/types/commands").StopTurnCommand | import("effect-durable-agent/types/commands").CancelPendingMessageCommand | import("effect-durable-agent/types/commands").PromotePendingMessageCommand | import("effect-durable-agent/types/commands").ResumePendingMessagesCommand;
707
+ readonly command: import("effect-durable-agent/types/commands").CancelPendingMessageCommand | import("effect-durable-agent/types/commands").PromotePendingMessageCommand | import("effect-durable-agent/types/commands").ResumePendingMessagesCommand | import("effect-durable-agent/types/commands").StopTurnCommand | import("effect-durable-agent/types/commands").SubmitMessageCommand;
686
708
  readonly admittedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
687
709
  readonly admissionTrace?: {
688
710
  readonly span: {
@@ -705,6 +727,9 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
705
727
  } | undefined;
706
728
  }[];
707
729
  readonly steeringByRun: ReadonlyMap<string & import("effect/Brand").Brand<"RunId">, readonly {
730
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
731
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
732
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
708
733
  readonly content: readonly [{
709
734
  readonly type: "text";
710
735
  readonly text: string;
@@ -728,13 +753,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
728
753
  };
729
754
  } | {
730
755
  readonly type: "file";
756
+ readonly mediaType: string;
757
+ readonly fileName?: string | undefined;
758
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
731
759
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
732
760
  readonly options: {
733
761
  readonly [x: string]: Schema.Json;
734
762
  };
735
- readonly mediaType: string;
736
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
737
- readonly fileName?: string | undefined;
738
763
  }, ...({
739
764
  readonly type: "text";
740
765
  readonly text: string;
@@ -744,23 +769,21 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
744
769
  };
745
770
  } | {
746
771
  readonly type: "file";
772
+ readonly mediaType: string;
773
+ readonly fileName?: string | undefined;
774
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
747
775
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
748
776
  readonly options: {
749
777
  readonly [x: string]: Schema.Json;
750
778
  };
751
- readonly mediaType: string;
752
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
753
- readonly fileName?: string | undefined;
754
779
  })[]];
755
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
756
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
757
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
758
780
  readonly queuedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
759
781
  readonly consumedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
760
782
  readonly consumedTurnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
761
783
  }[]>;
762
784
  readonly pendingQueue: readonly {
763
- readonly disposition: "queue" | "steer";
785
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
786
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
764
787
  readonly content: readonly [{
765
788
  readonly type: "text";
766
789
  readonly text: string;
@@ -784,13 +807,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
784
807
  };
785
808
  } | {
786
809
  readonly type: "file";
810
+ readonly mediaType: string;
811
+ readonly fileName?: string | undefined;
812
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
787
813
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
788
814
  readonly options: {
789
815
  readonly [x: string]: Schema.Json;
790
816
  };
791
- readonly mediaType: string;
792
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
793
- readonly fileName?: string | undefined;
794
817
  }, ...({
795
818
  readonly type: "text";
796
819
  readonly text: string;
@@ -800,23 +823,23 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
800
823
  };
801
824
  } | {
802
825
  readonly type: "file";
826
+ readonly mediaType: string;
827
+ readonly fileName?: string | undefined;
828
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
803
829
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
804
830
  readonly options: {
805
831
  readonly [x: string]: Schema.Json;
806
832
  };
807
- readonly mediaType: string;
808
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
809
- readonly fileName?: string | undefined;
810
833
  })[]];
811
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
812
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
813
834
  readonly submittedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
814
835
  readonly effectiveSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
815
- readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
836
+ readonly disposition: "queue" | "steer";
816
837
  readonly targetRunId?: (string & import("effect/Brand").Brand<"RunId">) | undefined;
838
+ readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
817
839
  }[];
818
840
  readonly pendingSteers: readonly {
819
- readonly disposition: "queue" | "steer";
841
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
842
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
820
843
  readonly content: readonly [{
821
844
  readonly type: "text";
822
845
  readonly text: string;
@@ -840,13 +863,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
840
863
  };
841
864
  } | {
842
865
  readonly type: "file";
866
+ readonly mediaType: string;
867
+ readonly fileName?: string | undefined;
868
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
843
869
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
844
870
  readonly options: {
845
871
  readonly [x: string]: Schema.Json;
846
872
  };
847
- readonly mediaType: string;
848
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
849
- readonly fileName?: string | undefined;
850
873
  }, ...({
851
874
  readonly type: "text";
852
875
  readonly text: string;
@@ -856,23 +879,23 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
856
879
  };
857
880
  } | {
858
881
  readonly type: "file";
882
+ readonly mediaType: string;
883
+ readonly fileName?: string | undefined;
884
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
859
885
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
860
886
  readonly options: {
861
887
  readonly [x: string]: Schema.Json;
862
888
  };
863
- readonly mediaType: string;
864
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
865
- readonly fileName?: string | undefined;
866
889
  })[]];
867
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
868
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
869
890
  readonly submittedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
870
891
  readonly effectiveSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
871
- readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
892
+ readonly disposition: "queue" | "steer";
872
893
  readonly targetRunId?: (string & import("effect/Brand").Brand<"RunId">) | undefined;
894
+ readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
873
895
  }[];
874
896
  readonly pausedQueue: readonly {
875
- readonly disposition: "queue" | "steer";
897
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
898
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
876
899
  readonly content: readonly [{
877
900
  readonly type: "text";
878
901
  readonly text: string;
@@ -896,13 +919,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
896
919
  };
897
920
  } | {
898
921
  readonly type: "file";
922
+ readonly mediaType: string;
923
+ readonly fileName?: string | undefined;
924
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
899
925
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
900
926
  readonly options: {
901
927
  readonly [x: string]: Schema.Json;
902
928
  };
903
- readonly mediaType: string;
904
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
905
- readonly fileName?: string | undefined;
906
929
  }, ...({
907
930
  readonly type: "text";
908
931
  readonly text: string;
@@ -912,49 +935,37 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
912
935
  };
913
936
  } | {
914
937
  readonly type: "file";
938
+ readonly mediaType: string;
939
+ readonly fileName?: string | undefined;
940
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
915
941
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
916
942
  readonly options: {
917
943
  readonly [x: string]: Schema.Json;
918
944
  };
919
- readonly mediaType: string;
920
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
921
- readonly fileName?: string | undefined;
922
945
  })[]];
923
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
924
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
925
946
  readonly submittedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
926
947
  readonly effectiveSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
927
- readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
948
+ readonly disposition: "queue" | "steer";
928
949
  readonly targetRunId?: (string & import("effect/Brand").Brand<"RunId">) | undefined;
950
+ readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
929
951
  }[];
930
- readonly active?: {
931
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
932
- readonly runId?: (string & import("effect/Brand").Brand<"RunId">) | undefined;
933
- } | undefined;
934
952
  };
935
- readonly modelSelection?: {
936
- readonly provider: string;
937
- readonly modelId: string;
938
- readonly settings?: unknown;
939
- } | undefined;
940
- readonly runSchedulingRequest?: {
941
- readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
942
- readonly requestedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
943
- readonly work: {
944
- readonly _tag: "Command";
945
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
946
- } | {
947
- readonly _tag: "Recovery";
948
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
949
- readonly interruptedRunId: string & import("effect/Brand").Brand<"RunId">;
950
- readonly inputMessageIds: readonly (string & import("effect/Brand").Brand<"MessageId">)[];
951
- };
952
- readonly deliveredSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
953
- } | undefined;
954
953
  };
955
954
  readonly reducerStates: ReadonlyMap<string, unknown>;
956
955
  readonly messages: readonly ({
956
+ readonly createdAtMs?: number | undefined;
957
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
958
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
959
+ readonly cancellationReason?: string | undefined;
960
+ readonly cancelledByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
961
+ readonly cancelledSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
962
+ readonly consumedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
963
+ readonly consumedTurnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
964
+ readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
965
+ readonly pausedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
966
+ readonly promotedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
957
967
  readonly _tag: "User";
968
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
958
969
  readonly content: readonly [{
959
970
  readonly type: "text";
960
971
  readonly text: string;
@@ -978,13 +989,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
978
989
  };
979
990
  } | {
980
991
  readonly type: "file";
992
+ readonly mediaType: string;
993
+ readonly fileName?: string | undefined;
994
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
981
995
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
982
996
  readonly options: {
983
997
  readonly [x: string]: Schema.Json;
984
998
  };
985
- readonly mediaType: string;
986
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
987
- readonly fileName?: string | undefined;
988
999
  }, ...({
989
1000
  readonly type: "text";
990
1001
  readonly text: string;
@@ -994,41 +1005,27 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
994
1005
  };
995
1006
  } | {
996
1007
  readonly type: "file";
1008
+ readonly mediaType: string;
1009
+ readonly fileName?: string | undefined;
1010
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
997
1011
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
998
1012
  readonly options: {
999
1013
  readonly [x: string]: Schema.Json;
1000
1014
  };
1001
- readonly mediaType: string;
1002
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1003
- readonly fileName?: string | undefined;
1004
1015
  })[]];
1005
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
1006
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1007
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1008
- readonly createdAtMs?: number | undefined;
1009
1016
  readonly disposition?: "queue" | "steer" | undefined;
1010
1017
  readonly requestedDisposition?: "queue" | "steer" | undefined;
1011
- readonly cancellationReason?: string | undefined;
1012
- readonly cancelledByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
1013
- readonly cancelledSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1014
- readonly consumedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1015
- readonly consumedTurnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
1016
- readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
1017
- readonly pausedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1018
- readonly promotedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1019
1018
  } | {
1019
+ readonly createdAtMs?: number | undefined;
1020
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1021
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1020
1022
  readonly _tag: "Assistant";
1021
1023
  readonly content: {
1022
1024
  readonly text: string;
1023
1025
  readonly reasoning?: string | undefined;
1024
1026
  };
1025
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1026
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1027
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
1028
- readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
1029
- readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
1030
- readonly createdAtMs?: number | undefined;
1031
1027
  readonly imported?: true | undefined;
1028
+ readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
1032
1029
  readonly promptParts?: readonly ({
1033
1030
  readonly type: "text";
1034
1031
  readonly text: string;
@@ -1038,13 +1035,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1038
1035
  };
1039
1036
  } | {
1040
1037
  readonly type: "file";
1038
+ readonly mediaType: string;
1039
+ readonly fileName?: string | undefined;
1040
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1041
1041
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1042
1042
  readonly options: {
1043
1043
  readonly [x: string]: Schema.Json;
1044
1044
  };
1045
- readonly mediaType: string;
1046
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1047
- readonly fileName?: string | undefined;
1048
1045
  } | {
1049
1046
  readonly type: "reasoning";
1050
1047
  readonly text: string;
@@ -1081,19 +1078,18 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1081
1078
  readonly [x: string]: Schema.Json;
1082
1079
  };
1083
1080
  })[] | undefined;
1081
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
1082
+ readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
1084
1083
  } | {
1084
+ readonly createdAtMs?: number | undefined;
1085
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1086
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1085
1087
  readonly _tag: "AssistantPartial";
1086
1088
  readonly content: {
1087
1089
  readonly text: string;
1088
1090
  readonly reasoning?: string | undefined;
1089
1091
  };
1090
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1091
- readonly reason: string;
1092
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1093
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
1094
1092
  readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
1095
- readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
1096
- readonly createdAtMs?: number | undefined;
1097
1093
  readonly promptParts?: readonly ({
1098
1094
  readonly type: "text";
1099
1095
  readonly text: string;
@@ -1103,13 +1099,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1103
1099
  };
1104
1100
  } | {
1105
1101
  readonly type: "file";
1102
+ readonly mediaType: string;
1103
+ readonly fileName?: string | undefined;
1104
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1106
1105
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1107
1106
  readonly options: {
1108
1107
  readonly [x: string]: Schema.Json;
1109
1108
  };
1110
- readonly mediaType: string;
1111
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1112
- readonly fileName?: string | undefined;
1113
1109
  } | {
1114
1110
  readonly type: "reasoning";
1115
1111
  readonly text: string;
@@ -1146,8 +1142,22 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1146
1142
  readonly [x: string]: Schema.Json;
1147
1143
  };
1148
1144
  })[] | undefined;
1145
+ readonly reason: string;
1146
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
1147
+ readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
1149
1148
  } | {
1149
+ readonly createdAtMs?: number | undefined;
1150
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1151
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1152
+ readonly cancellationReason?: string | undefined;
1153
+ readonly cancelledByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
1154
+ readonly cancelledSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1155
+ readonly consumedTurnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
1156
+ readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
1157
+ readonly pausedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1158
+ readonly promotedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1150
1159
  readonly _tag: "Steering";
1160
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
1151
1161
  readonly content: readonly [{
1152
1162
  readonly type: "text";
1153
1163
  readonly text: string;
@@ -1171,13 +1181,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1171
1181
  };
1172
1182
  } | {
1173
1183
  readonly type: "file";
1184
+ readonly mediaType: string;
1185
+ readonly fileName?: string | undefined;
1186
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1174
1187
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1175
1188
  readonly options: {
1176
1189
  readonly [x: string]: Schema.Json;
1177
1190
  };
1178
- readonly mediaType: string;
1179
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1180
- readonly fileName?: string | undefined;
1181
1191
  }, ...({
1182
1192
  readonly type: "text";
1183
1193
  readonly text: string;
@@ -1187,91 +1197,349 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1187
1197
  };
1188
1198
  } | {
1189
1199
  readonly type: "file";
1200
+ readonly mediaType: string;
1201
+ readonly fileName?: string | undefined;
1202
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1190
1203
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1191
1204
  readonly options: {
1192
1205
  readonly [x: string]: Schema.Json;
1193
1206
  };
1194
- readonly mediaType: string;
1195
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1196
- readonly fileName?: string | undefined;
1197
1207
  })[]];
1198
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
1199
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
1200
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1201
- readonly consumedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
1202
1208
  readonly runId: string & import("effect/Brand").Brand<"RunId">;
1203
- readonly createdAtMs?: number | undefined;
1204
- readonly cancellationReason?: string | undefined;
1205
- readonly cancelledByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
1206
- readonly cancelledSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1207
- readonly consumedTurnId?: (string & import("effect/Brand").Brand<"TurnId">) | undefined;
1208
- readonly pausedByCommandId?: (string & import("effect/Brand").Brand<"CommandId">) | undefined;
1209
- readonly pausedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1210
- readonly promotedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1209
+ readonly consumedSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
1211
1210
  })[];
1212
1211
  }, options?: import("effect/SchemaAST").ParseOptions) => {
1213
1212
  readonly state: {
1214
- readonly messages: ReadonlyMap<string, {
1215
- readonly _tag: "System";
1216
- readonly content: string;
1217
- readonly messageId: string;
1218
- readonly seq: number;
1219
- readonly createdAtMs?: number | undefined;
1220
- } | {
1221
- readonly _tag: "User";
1222
- readonly content: readonly [{
1223
- readonly type: "text";
1224
- readonly text: string;
1225
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1226
- readonly options: {
1227
- readonly [x: string]: Schema.Json;
1213
+ readonly runSchedulingRequest?: {
1214
+ readonly requestId: string;
1215
+ readonly work: {
1216
+ readonly _tag: "Command";
1217
+ readonly commandId: string;
1218
+ } | {
1219
+ readonly _tag: "Recovery";
1220
+ readonly commandId: string;
1221
+ readonly interruptedRunId: string;
1222
+ readonly inputMessageIds: readonly string[];
1223
+ };
1224
+ readonly requestedSeq: number;
1225
+ readonly deliveredSeq?: number | undefined;
1226
+ } | undefined;
1227
+ readonly modelSelection?: {
1228
+ readonly provider: string;
1229
+ readonly modelId: string;
1230
+ readonly settings?: unknown;
1231
+ } | undefined;
1232
+ readonly lastSeq: number;
1233
+ readonly commands: ReadonlyMap<string, {
1234
+ readonly admittedSeq?: number | undefined;
1235
+ readonly admissionTrace?: {
1236
+ readonly span: {
1237
+ readonly traceId: string;
1238
+ readonly spanId: string;
1239
+ readonly sampled: boolean;
1240
+ readonly tracestate: string | null;
1241
+ };
1242
+ readonly links: readonly {
1243
+ readonly context: {
1244
+ readonly traceId: string;
1245
+ readonly spanId: string;
1246
+ readonly sampled: boolean;
1247
+ readonly tracestate: string | null;
1248
+ };
1249
+ readonly attributes: {
1250
+ readonly [x: string]: string | number | boolean;
1251
+ };
1252
+ }[];
1253
+ } | undefined;
1254
+ readonly command?: {
1255
+ readonly _tag: "SubmitMessage";
1256
+ readonly commandId?: string | undefined;
1257
+ readonly idempotencyKey?: string | undefined;
1258
+ readonly disposition: "interrupt" | "queue" | "steer";
1259
+ readonly content: string | readonly [{
1260
+ readonly type: "text";
1261
+ readonly text: string;
1262
+ readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1263
+ readonly options?: {
1264
+ readonly [x: string]: Schema.Json;
1265
+ } | undefined;
1266
+ } | {
1267
+ readonly type: "file";
1268
+ readonly mediaType: string;
1269
+ readonly fileName?: string | undefined;
1270
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1271
+ readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1272
+ readonly options?: {
1273
+ readonly [x: string]: Schema.Json;
1274
+ } | undefined;
1275
+ }, ...({
1276
+ readonly type: "text";
1277
+ readonly text: string;
1278
+ readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1279
+ readonly options?: {
1280
+ readonly [x: string]: Schema.Json;
1281
+ } | undefined;
1282
+ } | {
1283
+ readonly type: "file";
1284
+ readonly mediaType: string;
1285
+ readonly fileName?: string | undefined;
1286
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1287
+ readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1288
+ readonly options?: {
1289
+ readonly [x: string]: Schema.Json;
1290
+ } | undefined;
1291
+ })[]];
1292
+ readonly expectedPausedMessageIdsToCancel?: readonly string[] | undefined;
1293
+ } | {
1294
+ readonly _tag: "StopTurn";
1295
+ readonly commandId?: string | undefined;
1296
+ readonly idempotencyKey?: string | undefined;
1297
+ } | {
1298
+ readonly _tag: "CancelPendingMessage";
1299
+ readonly commandId?: string | undefined;
1300
+ readonly idempotencyKey?: string | undefined;
1301
+ readonly messageId: string;
1302
+ readonly reason: "edit" | "user-cancel";
1303
+ } | {
1304
+ readonly _tag: "PromotePendingMessage";
1305
+ readonly commandId?: string | undefined;
1306
+ readonly idempotencyKey?: string | undefined;
1307
+ readonly messageId: string;
1308
+ } | {
1309
+ readonly _tag: "ResumePendingMessages";
1310
+ readonly commandId?: string | undefined;
1311
+ readonly idempotencyKey?: string | undefined;
1312
+ readonly messageIds: readonly [string, ...string[]];
1313
+ } | undefined;
1314
+ readonly commandId: string;
1315
+ readonly startedSeq?: number | undefined;
1316
+ readonly terminal?: {
1317
+ readonly _tag: "Completed";
1318
+ readonly seq: number;
1319
+ } | {
1320
+ readonly _tag: "Failed";
1321
+ readonly error: {
1322
+ readonly message: string;
1323
+ readonly code?: string | undefined;
1324
+ readonly details?: unknown;
1228
1325
  };
1229
- }, ...{
1230
- readonly type: "text";
1231
- readonly text: string;
1232
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1233
- readonly options: {
1234
- readonly [x: string]: Schema.Json;
1326
+ readonly seq: number;
1327
+ } | {
1328
+ readonly _tag: "Cancelled";
1329
+ readonly reason: string;
1330
+ readonly seq: number;
1331
+ } | undefined;
1332
+ }>;
1333
+ readonly runs: ReadonlyMap<string, {
1334
+ readonly durationMs?: number | undefined;
1335
+ readonly startedAtMs?: number | undefined;
1336
+ readonly terminalAtMs?: number | undefined;
1337
+ readonly modelSelection?: {
1338
+ readonly provider: string;
1339
+ readonly modelId: string;
1340
+ readonly settings?: unknown;
1341
+ } | undefined;
1342
+ readonly commandIds: readonly string[];
1343
+ readonly runId: string;
1344
+ readonly startedSeq: number;
1345
+ readonly terminal?: {
1346
+ readonly _tag: "Completed";
1347
+ readonly seq: number;
1348
+ } | {
1349
+ readonly _tag: "Failed";
1350
+ readonly error: {
1351
+ readonly message: string;
1352
+ readonly code?: string | undefined;
1353
+ readonly details?: unknown;
1235
1354
  };
1236
- }[]] | readonly [{
1237
- readonly type: "text";
1238
- readonly text: string;
1239
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1240
- readonly options: {
1241
- readonly [x: string]: Schema.Json;
1355
+ readonly seq: number;
1356
+ } | {
1357
+ readonly _tag: "Interrupted";
1358
+ readonly reason: string;
1359
+ readonly seq: number;
1360
+ } | undefined;
1361
+ readonly trace: {
1362
+ readonly root: {
1363
+ readonly traceId: string;
1364
+ readonly spanId: string;
1365
+ readonly sampled: boolean;
1366
+ readonly tracestate: string | null;
1242
1367
  };
1368
+ readonly links: readonly {
1369
+ readonly context: {
1370
+ readonly traceId: string;
1371
+ readonly spanId: string;
1372
+ readonly sampled: boolean;
1373
+ readonly tracestate: string | null;
1374
+ };
1375
+ readonly attributes: {
1376
+ readonly [x: string]: string | number | boolean;
1377
+ };
1378
+ }[];
1379
+ };
1380
+ }>;
1381
+ readonly recoveryContinuations: ReadonlyMap<string, {
1382
+ readonly seq: number;
1383
+ readonly commandId: string;
1384
+ readonly interruptedRunId: string;
1385
+ readonly replacementRunId: string;
1386
+ }>;
1387
+ readonly turns: ReadonlyMap<string, {
1388
+ readonly durationMs?: number | undefined;
1389
+ readonly startedAtMs?: number | undefined;
1390
+ readonly terminalAtMs?: number | undefined;
1391
+ readonly runId: string;
1392
+ readonly startedSeq: number;
1393
+ readonly terminal?: {
1394
+ readonly _tag: "Completed";
1395
+ readonly seq: number;
1396
+ readonly usage?: {
1397
+ readonly inputTokens?: number | undefined;
1398
+ readonly cachedInputTokens?: number | undefined;
1399
+ readonly cacheWriteInputTokens?: number | undefined;
1400
+ readonly outputTokens?: number | undefined;
1401
+ readonly textTokens?: number | undefined;
1402
+ readonly reasoningTokens?: number | undefined;
1403
+ } | undefined;
1243
1404
  } | {
1244
- readonly type: "file";
1245
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1246
- readonly options: {
1247
- readonly [x: string]: Schema.Json;
1405
+ readonly _tag: "Failed";
1406
+ readonly error: {
1407
+ readonly message: string;
1408
+ readonly code?: string | undefined;
1409
+ readonly details?: unknown;
1248
1410
  };
1249
- readonly mediaType: string;
1250
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1251
- readonly fileName?: string | undefined;
1252
- }, ...({
1253
- readonly type: "text";
1254
- readonly text: string;
1255
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1256
- readonly options: {
1257
- readonly [x: string]: Schema.Json;
1411
+ readonly seq: number;
1412
+ } | {
1413
+ readonly _tag: "Stopped";
1414
+ readonly reason: string;
1415
+ readonly seq: number;
1416
+ } | undefined;
1417
+ readonly turnId: string;
1418
+ }>;
1419
+ readonly inferences: ReadonlyMap<string, {
1420
+ readonly durationMs?: number | undefined;
1421
+ readonly startedAtMs?: number | undefined;
1422
+ readonly terminalAtMs?: number | undefined;
1423
+ readonly inferenceId: string;
1424
+ readonly runId: string;
1425
+ readonly startedSeq: number;
1426
+ readonly terminal?: {
1427
+ readonly _tag: "Completed";
1428
+ readonly seq: number;
1429
+ readonly usage?: {
1430
+ readonly inputTokens?: number | undefined;
1431
+ readonly cachedInputTokens?: number | undefined;
1432
+ readonly cacheWriteInputTokens?: number | undefined;
1433
+ readonly outputTokens?: number | undefined;
1434
+ readonly textTokens?: number | undefined;
1435
+ readonly reasoningTokens?: number | undefined;
1436
+ } | undefined;
1437
+ } | {
1438
+ readonly _tag: "Failed";
1439
+ readonly error: {
1440
+ readonly message: string;
1441
+ readonly code?: string | undefined;
1442
+ readonly details?: unknown;
1258
1443
  };
1444
+ readonly seq: number;
1445
+ } | undefined;
1446
+ readonly turnId: string;
1447
+ }>;
1448
+ readonly toolCalls: ReadonlyMap<string, {
1449
+ readonly durationMs?: number | undefined;
1450
+ readonly startedAtMs?: number | undefined;
1451
+ readonly terminalAtMs?: number | undefined;
1452
+ readonly decision?: {
1453
+ readonly _tag: "Created";
1454
+ readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
1455
+ readonly params: unknown;
1456
+ readonly promptPart?: {
1457
+ readonly type: "tool-call";
1458
+ readonly id: string;
1459
+ readonly name: string;
1460
+ readonly params: unknown;
1461
+ readonly providerExecuted: boolean;
1462
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1463
+ readonly options: {
1464
+ readonly [x: string]: Schema.Json;
1465
+ };
1466
+ } | undefined;
1467
+ readonly providerExecuted: boolean;
1468
+ readonly providerPartId: string & import("effect/Brand").Brand<"ProviderPartId">;
1469
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
1470
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1471
+ readonly toolName: string;
1472
+ readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
1259
1473
  } | {
1260
- readonly type: "file";
1261
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1262
- readonly options: {
1263
- readonly [x: string]: Schema.Json;
1474
+ readonly _tag: "Rejected";
1475
+ readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
1476
+ readonly modelFeedback: string;
1477
+ readonly promptPart?: {
1478
+ readonly type: "tool-result";
1479
+ readonly id: string;
1480
+ readonly name: string;
1481
+ readonly isFailure: boolean;
1482
+ readonly result: unknown;
1483
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1484
+ readonly options: {
1485
+ readonly [x: string]: Schema.Json;
1486
+ };
1487
+ } | undefined;
1488
+ readonly providerPartId: string & import("effect/Brand").Brand<"ProviderPartId">;
1489
+ readonly reason: "invalid-params" | "unknown-tool";
1490
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
1491
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1492
+ readonly toolName: string;
1493
+ readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
1494
+ } | undefined;
1495
+ readonly startedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1496
+ readonly terminal?: {
1497
+ readonly _tag: "Completed";
1498
+ readonly promptPart?: {
1499
+ readonly type: "tool-result";
1500
+ readonly id: string;
1501
+ readonly name: string;
1502
+ readonly isFailure: boolean;
1503
+ readonly result: unknown;
1504
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1505
+ readonly options: {
1506
+ readonly [x: string]: Schema.Json;
1507
+ };
1508
+ } | undefined;
1509
+ readonly result: unknown;
1510
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1511
+ } | {
1512
+ readonly _tag: "Failed";
1513
+ readonly error: {
1514
+ readonly message: string;
1515
+ readonly code?: string | undefined;
1516
+ readonly details?: unknown;
1264
1517
  };
1265
- readonly mediaType: string;
1266
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1267
- readonly fileName?: string | undefined;
1268
- })[]];
1269
- readonly commandId: string;
1518
+ readonly promptPart?: {
1519
+ readonly type: "tool-result";
1520
+ readonly id: string;
1521
+ readonly name: string;
1522
+ readonly isFailure: boolean;
1523
+ readonly result: unknown;
1524
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1525
+ readonly options: {
1526
+ readonly [x: string]: Schema.Json;
1527
+ };
1528
+ } | undefined;
1529
+ readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1530
+ } | undefined;
1531
+ readonly toolCallId: string & import("effect/Brand").Brand<"ToolCallId">;
1532
+ }>;
1533
+ readonly messages: ReadonlyMap<string, {
1534
+ readonly createdAtMs?: number | undefined;
1270
1535
  readonly messageId: string;
1271
1536
  readonly seq: number;
1537
+ readonly _tag: "System";
1538
+ readonly content: string;
1539
+ } | {
1272
1540
  readonly createdAtMs?: number | undefined;
1273
- readonly disposition?: "queue" | "steer" | undefined;
1274
- readonly requestedDisposition?: "queue" | "steer" | undefined;
1541
+ readonly messageId: string;
1542
+ readonly seq: number;
1275
1543
  readonly cancellationReason?: string | undefined;
1276
1544
  readonly cancelledByCommandId?: string | undefined;
1277
1545
  readonly cancelledSeq?: number | undefined;
@@ -1280,8 +1548,8 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1280
1548
  readonly pausedByCommandId?: string | undefined;
1281
1549
  readonly pausedSeq?: number | undefined;
1282
1550
  readonly promotedSeq?: number | undefined;
1283
- } | {
1284
- readonly _tag: "Steering";
1551
+ readonly _tag: "User";
1552
+ readonly commandId: string;
1285
1553
  readonly content: readonly [{
1286
1554
  readonly type: "text";
1287
1555
  readonly text: string;
@@ -1305,13 +1573,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1305
1573
  };
1306
1574
  } | {
1307
1575
  readonly type: "file";
1576
+ readonly mediaType: string;
1577
+ readonly fileName?: string | undefined;
1578
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1308
1579
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1309
1580
  readonly options: {
1310
1581
  readonly [x: string]: Schema.Json;
1311
1582
  };
1312
- readonly mediaType: string;
1313
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1314
- readonly fileName?: string | undefined;
1315
1583
  }, ...({
1316
1584
  readonly type: "text";
1317
1585
  readonly text: string;
@@ -1321,19 +1589,20 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1321
1589
  };
1322
1590
  } | {
1323
1591
  readonly type: "file";
1592
+ readonly mediaType: string;
1593
+ readonly fileName?: string | undefined;
1594
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1324
1595
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1325
1596
  readonly options: {
1326
1597
  readonly [x: string]: Schema.Json;
1327
1598
  };
1328
- readonly mediaType: string;
1329
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1330
- readonly fileName?: string | undefined;
1331
1599
  })[]];
1332
- readonly commandId: string;
1600
+ readonly disposition?: "queue" | "steer" | undefined;
1601
+ readonly requestedDisposition?: "queue" | "steer" | undefined;
1602
+ } | {
1603
+ readonly createdAtMs?: number | undefined;
1333
1604
  readonly messageId: string;
1334
1605
  readonly seq: number;
1335
- readonly runId: string;
1336
- readonly createdAtMs?: number | undefined;
1337
1606
  readonly cancellationReason?: string | undefined;
1338
1607
  readonly cancelledByCommandId?: string | undefined;
1339
1608
  readonly cancelledSeq?: number | undefined;
@@ -1342,84 +1611,67 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1342
1611
  readonly pausedByCommandId?: string | undefined;
1343
1612
  readonly pausedSeq?: number | undefined;
1344
1613
  readonly promotedSeq?: number | undefined;
1345
- } | {
1346
- readonly _tag: "Assistant";
1347
- readonly content: {
1348
- readonly text: string;
1349
- readonly reasoning?: string | undefined;
1350
- };
1351
- readonly messageId: string;
1352
- readonly seq: number;
1353
- readonly runId: string;
1354
- readonly inferenceId: string;
1355
- readonly turnId: string;
1356
- readonly createdAtMs?: number | undefined;
1357
- readonly imported?: true | undefined;
1358
- readonly promptParts?: readonly ({
1614
+ readonly _tag: "Steering";
1615
+ readonly commandId: string;
1616
+ readonly content: readonly [{
1359
1617
  readonly type: "text";
1360
1618
  readonly text: string;
1361
1619
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1362
1620
  readonly options: {
1363
1621
  readonly [x: string]: Schema.Json;
1364
1622
  };
1365
- } | {
1366
- readonly type: "file";
1623
+ }, ...{
1624
+ readonly type: "text";
1625
+ readonly text: string;
1367
1626
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1368
1627
  readonly options: {
1369
1628
  readonly [x: string]: Schema.Json;
1370
1629
  };
1371
- readonly mediaType: string;
1372
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1373
- readonly fileName?: string | undefined;
1374
- } | {
1375
- readonly type: "reasoning";
1630
+ }[]] | readonly [{
1631
+ readonly type: "text";
1376
1632
  readonly text: string;
1377
1633
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1378
1634
  readonly options: {
1379
1635
  readonly [x: string]: Schema.Json;
1380
1636
  };
1381
1637
  } | {
1382
- readonly type: "tool-call";
1383
- readonly id: string;
1384
- readonly name: string;
1385
- readonly params: unknown;
1386
- readonly providerExecuted: boolean;
1638
+ readonly type: "file";
1639
+ readonly mediaType: string;
1640
+ readonly fileName?: string | undefined;
1641
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1387
1642
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1388
1643
  readonly options: {
1389
1644
  readonly [x: string]: Schema.Json;
1390
1645
  };
1391
- } | {
1392
- readonly type: "tool-result";
1393
- readonly id: string;
1394
- readonly name: string;
1395
- readonly isFailure: boolean;
1396
- readonly result: unknown;
1646
+ }, ...({
1647
+ readonly type: "text";
1648
+ readonly text: string;
1397
1649
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1398
1650
  readonly options: {
1399
1651
  readonly [x: string]: Schema.Json;
1400
1652
  };
1401
1653
  } | {
1402
- readonly type: "tool-approval-request";
1403
- readonly approvalId: string;
1404
- readonly toolCallId: string;
1654
+ readonly type: "file";
1655
+ readonly mediaType: string;
1656
+ readonly fileName?: string | undefined;
1657
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1405
1658
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1406
1659
  readonly options: {
1407
1660
  readonly [x: string]: Schema.Json;
1408
1661
  };
1409
- })[] | undefined;
1662
+ })[]];
1663
+ readonly runId: string;
1410
1664
  } | {
1411
- readonly _tag: "AssistantPartial";
1665
+ readonly createdAtMs?: number | undefined;
1666
+ readonly messageId: string;
1667
+ readonly seq: number;
1668
+ readonly _tag: "Assistant";
1412
1669
  readonly content: {
1413
1670
  readonly text: string;
1414
1671
  readonly reasoning?: string | undefined;
1415
1672
  };
1416
- readonly messageId: string;
1417
- readonly reason: string;
1418
- readonly seq: number;
1419
- readonly runId: string;
1673
+ readonly imported?: true | undefined;
1420
1674
  readonly inferenceId: string;
1421
- readonly turnId: string;
1422
- readonly createdAtMs?: number | undefined;
1423
1675
  readonly promptParts?: readonly ({
1424
1676
  readonly type: "text";
1425
1677
  readonly text: string;
@@ -1429,13 +1681,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1429
1681
  };
1430
1682
  } | {
1431
1683
  readonly type: "file";
1684
+ readonly mediaType: string;
1685
+ readonly fileName?: string | undefined;
1686
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1432
1687
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1433
1688
  readonly options: {
1434
1689
  readonly [x: string]: Schema.Json;
1435
1690
  };
1436
- readonly mediaType: string;
1437
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1438
- readonly fileName?: string | undefined;
1439
1691
  } | {
1440
1692
  readonly type: "reasoning";
1441
1693
  readonly text: string;
@@ -1449,330 +1701,96 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1449
1701
  readonly name: string;
1450
1702
  readonly params: unknown;
1451
1703
  readonly providerExecuted: boolean;
1452
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1453
- readonly options: {
1454
- readonly [x: string]: Schema.Json;
1455
- };
1456
- } | {
1457
- readonly type: "tool-result";
1458
- readonly id: string;
1459
- readonly name: string;
1460
- readonly isFailure: boolean;
1461
- readonly result: unknown;
1462
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1463
- readonly options: {
1464
- readonly [x: string]: Schema.Json;
1465
- };
1466
- } | {
1467
- readonly type: "tool-approval-request";
1468
- readonly approvalId: string;
1469
- readonly toolCallId: string;
1470
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1471
- readonly options: {
1472
- readonly [x: string]: Schema.Json;
1473
- };
1474
- })[] | undefined;
1475
- }>;
1476
- readonly lastSeq: number;
1477
- readonly commands: ReadonlyMap<string, {
1478
- readonly commandId: string;
1479
- readonly command?: {
1480
- readonly _tag: "SubmitMessage";
1481
- readonly disposition: "queue" | "steer" | "interrupt";
1482
- readonly content: string | readonly [{
1483
- readonly text: string;
1484
- readonly type: "text";
1485
- readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1486
- readonly options?: {
1487
- readonly [x: string]: Schema.Json;
1488
- } | undefined;
1489
- } | {
1490
- readonly type: "file";
1491
- readonly mediaType: string;
1492
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1493
- readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1494
- readonly options?: {
1495
- readonly [x: string]: Schema.Json;
1496
- } | undefined;
1497
- readonly fileName?: string | undefined;
1498
- }, ...({
1499
- readonly text: string;
1500
- readonly type: "text";
1501
- readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1502
- readonly options?: {
1503
- readonly [x: string]: Schema.Json;
1504
- } | undefined;
1505
- } | {
1506
- readonly type: "file";
1507
- readonly mediaType: string;
1508
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1509
- readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1510
- readonly options?: {
1511
- readonly [x: string]: Schema.Json;
1512
- } | undefined;
1513
- readonly fileName?: string | undefined;
1514
- })[]];
1515
- readonly expectedPausedMessageIdsToCancel?: readonly string[] | undefined;
1516
- readonly commandId?: string | undefined;
1517
- readonly idempotencyKey?: string | undefined;
1518
- } | {
1519
- readonly _tag: "StopTurn";
1520
- readonly commandId?: string | undefined;
1521
- readonly idempotencyKey?: string | undefined;
1522
- } | {
1523
- readonly _tag: "CancelPendingMessage";
1524
- readonly messageId: string;
1525
- readonly reason: "edit" | "user-cancel";
1526
- readonly commandId?: string | undefined;
1527
- readonly idempotencyKey?: string | undefined;
1528
- } | {
1529
- readonly _tag: "PromotePendingMessage";
1530
- readonly messageId: string;
1531
- readonly commandId?: string | undefined;
1532
- readonly idempotencyKey?: string | undefined;
1533
- } | {
1534
- readonly _tag: "ResumePendingMessages";
1535
- readonly messageIds: readonly [string, ...string[]];
1536
- readonly commandId?: string | undefined;
1537
- readonly idempotencyKey?: string | undefined;
1538
- } | undefined;
1539
- readonly admittedSeq?: number | undefined;
1540
- readonly admissionTrace?: {
1541
- readonly span: {
1542
- readonly traceId: string;
1543
- readonly spanId: string;
1544
- readonly sampled: boolean;
1545
- readonly tracestate: string | null;
1546
- };
1547
- readonly links: readonly {
1548
- readonly context: {
1549
- readonly traceId: string;
1550
- readonly spanId: string;
1551
- readonly sampled: boolean;
1552
- readonly tracestate: string | null;
1553
- };
1554
- readonly attributes: {
1555
- readonly [x: string]: string | number | boolean;
1556
- };
1557
- }[];
1558
- } | undefined;
1559
- readonly startedSeq?: number | undefined;
1560
- readonly terminal?: {
1561
- readonly _tag: "Completed";
1562
- readonly seq: number;
1563
- } | {
1564
- readonly _tag: "Failed";
1565
- readonly error: {
1566
- readonly message: string;
1567
- readonly code?: string | undefined;
1568
- readonly details?: unknown;
1569
- };
1570
- readonly seq: number;
1571
- } | {
1572
- readonly _tag: "Cancelled";
1573
- readonly reason: string;
1574
- readonly seq: number;
1575
- } | undefined;
1576
- }>;
1577
- readonly runs: ReadonlyMap<string, {
1578
- readonly trace: {
1579
- readonly root: {
1580
- readonly traceId: string;
1581
- readonly spanId: string;
1582
- readonly sampled: boolean;
1583
- readonly tracestate: string | null;
1584
- };
1585
- readonly links: readonly {
1586
- readonly context: {
1587
- readonly traceId: string;
1588
- readonly spanId: string;
1589
- readonly sampled: boolean;
1590
- readonly tracestate: string | null;
1591
- };
1592
- readonly attributes: {
1593
- readonly [x: string]: string | number | boolean;
1594
- };
1595
- }[];
1596
- };
1597
- readonly runId: string;
1598
- readonly startedSeq: number;
1599
- readonly commandIds: readonly string[];
1600
- readonly modelSelection?: {
1601
- readonly provider: string;
1602
- readonly modelId: string;
1603
- readonly settings?: unknown;
1604
- } | undefined;
1605
- readonly terminal?: {
1606
- readonly _tag: "Completed";
1607
- readonly seq: number;
1608
- } | {
1609
- readonly _tag: "Failed";
1610
- readonly error: {
1611
- readonly message: string;
1612
- readonly code?: string | undefined;
1613
- readonly details?: unknown;
1704
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1705
+ readonly options: {
1706
+ readonly [x: string]: Schema.Json;
1614
1707
  };
1615
- readonly seq: number;
1616
- } | {
1617
- readonly _tag: "Interrupted";
1618
- readonly reason: string;
1619
- readonly seq: number;
1620
- } | undefined;
1621
- readonly durationMs?: number | undefined;
1622
- readonly startedAtMs?: number | undefined;
1623
- readonly terminalAtMs?: number | undefined;
1624
- }>;
1625
- readonly recoveryContinuations: ReadonlyMap<string, {
1626
- readonly seq: number;
1627
- readonly commandId: string;
1628
- readonly interruptedRunId: string;
1629
- readonly replacementRunId: string;
1630
- }>;
1631
- readonly turns: ReadonlyMap<string, {
1632
- readonly runId: string;
1633
- readonly turnId: string;
1634
- readonly startedSeq: number;
1635
- readonly terminal?: {
1636
- readonly _tag: "Completed";
1637
- readonly seq: number;
1638
- readonly usage?: {
1639
- readonly inputTokens?: number | undefined;
1640
- readonly cachedInputTokens?: number | undefined;
1641
- readonly cacheWriteInputTokens?: number | undefined;
1642
- readonly outputTokens?: number | undefined;
1643
- readonly textTokens?: number | undefined;
1644
- readonly reasoningTokens?: number | undefined;
1645
- } | undefined;
1646
1708
  } | {
1647
- readonly _tag: "Failed";
1648
- readonly error: {
1649
- readonly message: string;
1650
- readonly code?: string | undefined;
1651
- readonly details?: unknown;
1709
+ readonly type: "tool-result";
1710
+ readonly id: string;
1711
+ readonly name: string;
1712
+ readonly isFailure: boolean;
1713
+ readonly result: unknown;
1714
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1715
+ readonly options: {
1716
+ readonly [x: string]: Schema.Json;
1652
1717
  };
1653
- readonly seq: number;
1654
1718
  } | {
1655
- readonly _tag: "Stopped";
1656
- readonly reason: string;
1657
- readonly seq: number;
1658
- } | undefined;
1659
- readonly durationMs?: number | undefined;
1660
- readonly startedAtMs?: number | undefined;
1661
- readonly terminalAtMs?: number | undefined;
1662
- }>;
1663
- readonly inferences: ReadonlyMap<string, {
1719
+ readonly type: "tool-approval-request";
1720
+ readonly approvalId: string;
1721
+ readonly toolCallId: string;
1722
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1723
+ readonly options: {
1724
+ readonly [x: string]: Schema.Json;
1725
+ };
1726
+ })[] | undefined;
1664
1727
  readonly runId: string;
1665
- readonly inferenceId: string;
1666
1728
  readonly turnId: string;
1667
- readonly startedSeq: number;
1668
- readonly terminal?: {
1669
- readonly _tag: "Completed";
1670
- readonly seq: number;
1671
- readonly usage?: {
1672
- readonly inputTokens?: number | undefined;
1673
- readonly cachedInputTokens?: number | undefined;
1674
- readonly cacheWriteInputTokens?: number | undefined;
1675
- readonly outputTokens?: number | undefined;
1676
- readonly textTokens?: number | undefined;
1677
- readonly reasoningTokens?: number | undefined;
1678
- } | undefined;
1729
+ } | {
1730
+ readonly createdAtMs?: number | undefined;
1731
+ readonly messageId: string;
1732
+ readonly seq: number;
1733
+ readonly _tag: "AssistantPartial";
1734
+ readonly content: {
1735
+ readonly text: string;
1736
+ readonly reasoning?: string | undefined;
1737
+ };
1738
+ readonly inferenceId: string;
1739
+ readonly promptParts?: readonly ({
1740
+ readonly type: "text";
1741
+ readonly text: string;
1742
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1743
+ readonly options: {
1744
+ readonly [x: string]: Schema.Json;
1745
+ };
1679
1746
  } | {
1680
- readonly _tag: "Failed";
1681
- readonly error: {
1682
- readonly message: string;
1683
- readonly code?: string | undefined;
1684
- readonly details?: unknown;
1747
+ readonly type: "file";
1748
+ readonly mediaType: string;
1749
+ readonly fileName?: string | undefined;
1750
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1751
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1752
+ readonly options: {
1753
+ readonly [x: string]: Schema.Json;
1685
1754
  };
1686
- readonly seq: number;
1687
- } | undefined;
1688
- readonly durationMs?: number | undefined;
1689
- readonly startedAtMs?: number | undefined;
1690
- readonly terminalAtMs?: number | undefined;
1691
- }>;
1692
- readonly toolCalls: ReadonlyMap<string, {
1693
- readonly toolCallId: string & import("effect/Brand").Brand<"ToolCallId">;
1694
- readonly startedSeq?: (number & import("effect/Brand").Brand<"SequenceNumber">) | undefined;
1695
- readonly terminal?: {
1696
- readonly _tag: "Completed";
1697
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1698
- readonly result: unknown;
1699
- readonly promptPart?: {
1700
- readonly type: "tool-result";
1701
- readonly id: string;
1702
- readonly name: string;
1703
- readonly isFailure: boolean;
1704
- readonly result: unknown;
1705
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1706
- readonly options: {
1707
- readonly [x: string]: Schema.Json;
1708
- };
1709
- } | undefined;
1710
1755
  } | {
1711
- readonly _tag: "Failed";
1712
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1713
- readonly error: {
1714
- readonly message: string;
1715
- readonly code?: string | undefined;
1716
- readonly details?: unknown;
1756
+ readonly type: "reasoning";
1757
+ readonly text: string;
1758
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1759
+ readonly options: {
1760
+ readonly [x: string]: Schema.Json;
1717
1761
  };
1718
- readonly promptPart?: {
1719
- readonly type: "tool-result";
1720
- readonly id: string;
1721
- readonly name: string;
1722
- readonly isFailure: boolean;
1723
- readonly result: unknown;
1724
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1725
- readonly options: {
1726
- readonly [x: string]: Schema.Json;
1727
- };
1728
- } | undefined;
1729
- } | undefined;
1730
- readonly durationMs?: number | undefined;
1731
- readonly startedAtMs?: number | undefined;
1732
- readonly terminalAtMs?: number | undefined;
1733
- readonly decision?: {
1734
- readonly _tag: "Created";
1735
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1736
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
1737
- readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
1738
- readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
1762
+ } | {
1763
+ readonly type: "tool-call";
1764
+ readonly id: string;
1765
+ readonly name: string;
1739
1766
  readonly params: unknown;
1740
1767
  readonly providerExecuted: boolean;
1741
- readonly providerPartId: string & import("effect/Brand").Brand<"ProviderPartId">;
1742
- readonly toolName: string;
1743
- readonly promptPart?: {
1744
- readonly type: "tool-call";
1745
- readonly id: string;
1746
- readonly name: string;
1747
- readonly params: unknown;
1748
- readonly providerExecuted: boolean;
1749
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1750
- readonly options: {
1751
- readonly [x: string]: Schema.Json;
1752
- };
1753
- } | undefined;
1768
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1769
+ readonly options: {
1770
+ readonly [x: string]: Schema.Json;
1771
+ };
1754
1772
  } | {
1755
- readonly _tag: "Rejected";
1756
- readonly reason: "unknown-tool" | "invalid-params";
1757
- readonly seq: number & import("effect/Brand").Brand<"SequenceNumber">;
1758
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
1759
- readonly inferenceId: string & import("effect/Brand").Brand<"InferenceId">;
1760
- readonly turnId: string & import("effect/Brand").Brand<"TurnId">;
1761
- readonly providerPartId: string & import("effect/Brand").Brand<"ProviderPartId">;
1762
- readonly toolName: string;
1763
- readonly modelFeedback: string;
1764
- readonly promptPart?: {
1765
- readonly type: "tool-result";
1766
- readonly id: string;
1767
- readonly name: string;
1768
- readonly isFailure: boolean;
1769
- readonly result: unknown;
1770
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1771
- readonly options: {
1772
- readonly [x: string]: Schema.Json;
1773
- };
1774
- } | undefined;
1775
- } | undefined;
1773
+ readonly type: "tool-result";
1774
+ readonly id: string;
1775
+ readonly name: string;
1776
+ readonly isFailure: boolean;
1777
+ readonly result: unknown;
1778
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1779
+ readonly options: {
1780
+ readonly [x: string]: Schema.Json;
1781
+ };
1782
+ } | {
1783
+ readonly type: "tool-approval-request";
1784
+ readonly approvalId: string;
1785
+ readonly toolCallId: string;
1786
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
1787
+ readonly options: {
1788
+ readonly [x: string]: Schema.Json;
1789
+ };
1790
+ })[] | undefined;
1791
+ readonly reason: string;
1792
+ readonly runId: string;
1793
+ readonly turnId: string;
1776
1794
  }>;
1777
1795
  readonly stopRequests: ReadonlyMap<string, {
1778
1796
  readonly commandId: string;
@@ -1788,6 +1806,12 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1788
1806
  readonly compactionId: string;
1789
1807
  readonly requestedSeq?: number | undefined;
1790
1808
  readonly startedSeq?: number | undefined;
1809
+ readonly summaryCreatedSeq?: number | undefined;
1810
+ readonly summaryId?: string | undefined;
1811
+ readonly sourceFromSeq?: number | undefined;
1812
+ readonly sourceToSeq?: number | undefined;
1813
+ readonly rebasedSeq?: number | undefined;
1814
+ readonly contextVersion?: number | undefined;
1791
1815
  readonly terminal?: {
1792
1816
  readonly _tag: "Completed";
1793
1817
  readonly seq: number;
@@ -1800,12 +1824,6 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1800
1824
  readonly details?: unknown;
1801
1825
  };
1802
1826
  } | undefined;
1803
- readonly summaryCreatedSeq?: number | undefined;
1804
- readonly summaryId?: string | undefined;
1805
- readonly sourceFromSeq?: number | undefined;
1806
- readonly sourceToSeq?: number | undefined;
1807
- readonly rebasedSeq?: number | undefined;
1808
- readonly contextVersion?: number | undefined;
1809
1827
  }>;
1810
1828
  readonly context: {
1811
1829
  readonly version: number;
@@ -1826,14 +1844,20 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1826
1844
  }[];
1827
1845
  };
1828
1846
  readonly commandQueues: {
1847
+ readonly active?: {
1848
+ readonly commandId: string;
1849
+ readonly runId?: string | undefined;
1850
+ } | undefined;
1829
1851
  readonly pendingCommands: readonly {
1830
1852
  readonly commandId: string;
1831
1853
  readonly command: {
1832
1854
  readonly _tag: "SubmitMessage";
1833
- readonly disposition: "queue" | "steer" | "interrupt";
1855
+ readonly commandId?: string | undefined;
1856
+ readonly idempotencyKey?: string | undefined;
1857
+ readonly disposition: "interrupt" | "queue" | "steer";
1834
1858
  readonly content: string | readonly [{
1835
- readonly text: string;
1836
1859
  readonly type: "text";
1860
+ readonly text: string;
1837
1861
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1838
1862
  readonly options?: {
1839
1863
  readonly [x: string]: Schema.Json;
@@ -1841,15 +1865,15 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1841
1865
  } | {
1842
1866
  readonly type: "file";
1843
1867
  readonly mediaType: string;
1868
+ readonly fileName?: string | undefined;
1844
1869
  readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1845
1870
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1846
1871
  readonly options?: {
1847
1872
  readonly [x: string]: Schema.Json;
1848
1873
  } | undefined;
1849
- readonly fileName?: string | undefined;
1850
1874
  }, ...({
1851
- readonly text: string;
1852
1875
  readonly type: "text";
1876
+ readonly text: string;
1853
1877
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1854
1878
  readonly options?: {
1855
1879
  readonly [x: string]: Schema.Json;
@@ -1857,36 +1881,34 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1857
1881
  } | {
1858
1882
  readonly type: "file";
1859
1883
  readonly mediaType: string;
1884
+ readonly fileName?: string | undefined;
1860
1885
  readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1861
1886
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1862
1887
  readonly options?: {
1863
1888
  readonly [x: string]: Schema.Json;
1864
1889
  } | undefined;
1865
- readonly fileName?: string | undefined;
1866
1890
  })[]];
1867
1891
  readonly expectedPausedMessageIdsToCancel?: readonly string[] | undefined;
1868
- readonly commandId?: string | undefined;
1869
- readonly idempotencyKey?: string | undefined;
1870
1892
  } | {
1871
1893
  readonly _tag: "StopTurn";
1872
1894
  readonly commandId?: string | undefined;
1873
1895
  readonly idempotencyKey?: string | undefined;
1874
1896
  } | {
1875
- readonly _tag: "CancelPendingMessage";
1876
- readonly messageId: string;
1877
- readonly reason: "edit" | "user-cancel";
1897
+ readonly _tag: "CancelPendingMessage";
1878
1898
  readonly commandId?: string | undefined;
1879
1899
  readonly idempotencyKey?: string | undefined;
1900
+ readonly messageId: string;
1901
+ readonly reason: "edit" | "user-cancel";
1880
1902
  } | {
1881
1903
  readonly _tag: "PromotePendingMessage";
1882
- readonly messageId: string;
1883
1904
  readonly commandId?: string | undefined;
1884
1905
  readonly idempotencyKey?: string | undefined;
1906
+ readonly messageId: string;
1885
1907
  } | {
1886
1908
  readonly _tag: "ResumePendingMessages";
1887
- readonly messageIds: readonly [string, ...string[]];
1888
1909
  readonly commandId?: string | undefined;
1889
1910
  readonly idempotencyKey?: string | undefined;
1911
+ readonly messageIds: readonly [string, ...string[]];
1890
1912
  };
1891
1913
  readonly admittedSeq: number;
1892
1914
  readonly admissionTrace?: {
@@ -1913,10 +1935,12 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1913
1935
  readonly commandId: string;
1914
1936
  readonly command: {
1915
1937
  readonly _tag: "SubmitMessage";
1916
- readonly disposition: "queue" | "steer" | "interrupt";
1938
+ readonly commandId?: string | undefined;
1939
+ readonly idempotencyKey?: string | undefined;
1940
+ readonly disposition: "interrupt" | "queue" | "steer";
1917
1941
  readonly content: string | readonly [{
1918
- readonly text: string;
1919
1942
  readonly type: "text";
1943
+ readonly text: string;
1920
1944
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1921
1945
  readonly options?: {
1922
1946
  readonly [x: string]: Schema.Json;
@@ -1924,15 +1948,15 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1924
1948
  } | {
1925
1949
  readonly type: "file";
1926
1950
  readonly mediaType: string;
1951
+ readonly fileName?: string | undefined;
1927
1952
  readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1928
1953
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1929
1954
  readonly options?: {
1930
1955
  readonly [x: string]: Schema.Json;
1931
1956
  } | undefined;
1932
- readonly fileName?: string | undefined;
1933
1957
  }, ...({
1934
- readonly text: string;
1935
1958
  readonly type: "text";
1959
+ readonly text: string;
1936
1960
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1937
1961
  readonly options?: {
1938
1962
  readonly [x: string]: Schema.Json;
@@ -1940,36 +1964,34 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1940
1964
  } | {
1941
1965
  readonly type: "file";
1942
1966
  readonly mediaType: string;
1967
+ readonly fileName?: string | undefined;
1943
1968
  readonly data: string | URL | Uint8Array<ArrayBufferLike>;
1944
1969
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
1945
1970
  readonly options?: {
1946
1971
  readonly [x: string]: Schema.Json;
1947
1972
  } | undefined;
1948
- readonly fileName?: string | undefined;
1949
1973
  })[]];
1950
1974
  readonly expectedPausedMessageIdsToCancel?: readonly string[] | undefined;
1951
- readonly commandId?: string | undefined;
1952
- readonly idempotencyKey?: string | undefined;
1953
1975
  } | {
1954
1976
  readonly _tag: "StopTurn";
1955
1977
  readonly commandId?: string | undefined;
1956
1978
  readonly idempotencyKey?: string | undefined;
1957
1979
  } | {
1958
1980
  readonly _tag: "CancelPendingMessage";
1959
- readonly messageId: string;
1960
- readonly reason: "edit" | "user-cancel";
1961
1981
  readonly commandId?: string | undefined;
1962
1982
  readonly idempotencyKey?: string | undefined;
1983
+ readonly messageId: string;
1984
+ readonly reason: "edit" | "user-cancel";
1963
1985
  } | {
1964
1986
  readonly _tag: "PromotePendingMessage";
1965
- readonly messageId: string;
1966
1987
  readonly commandId?: string | undefined;
1967
1988
  readonly idempotencyKey?: string | undefined;
1989
+ readonly messageId: string;
1968
1990
  } | {
1969
1991
  readonly _tag: "ResumePendingMessages";
1970
- readonly messageIds: readonly [string, ...string[]];
1971
1992
  readonly commandId?: string | undefined;
1972
1993
  readonly idempotencyKey?: string | undefined;
1994
+ readonly messageIds: readonly [string, ...string[]];
1973
1995
  };
1974
1996
  readonly admittedSeq: number;
1975
1997
  readonly admissionTrace?: {
@@ -1996,10 +2018,12 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
1996
2018
  readonly commandId: string;
1997
2019
  readonly command: {
1998
2020
  readonly _tag: "SubmitMessage";
1999
- readonly disposition: "queue" | "steer" | "interrupt";
2021
+ readonly commandId?: string | undefined;
2022
+ readonly idempotencyKey?: string | undefined;
2023
+ readonly disposition: "interrupt" | "queue" | "steer";
2000
2024
  readonly content: string | readonly [{
2001
- readonly text: string;
2002
2025
  readonly type: "text";
2026
+ readonly text: string;
2003
2027
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
2004
2028
  readonly options?: {
2005
2029
  readonly [x: string]: Schema.Json;
@@ -2007,15 +2031,15 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2007
2031
  } | {
2008
2032
  readonly type: "file";
2009
2033
  readonly mediaType: string;
2034
+ readonly fileName?: string | undefined;
2010
2035
  readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2011
2036
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
2012
2037
  readonly options?: {
2013
2038
  readonly [x: string]: Schema.Json;
2014
2039
  } | undefined;
2015
- readonly fileName?: string | undefined;
2016
2040
  }, ...({
2017
- readonly text: string;
2018
2041
  readonly type: "text";
2042
+ readonly text: string;
2019
2043
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
2020
2044
  readonly options?: {
2021
2045
  readonly [x: string]: Schema.Json;
@@ -2023,36 +2047,34 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2023
2047
  } | {
2024
2048
  readonly type: "file";
2025
2049
  readonly mediaType: string;
2050
+ readonly fileName?: string | undefined;
2026
2051
  readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2027
2052
  readonly "~effect/ai/Prompt/Part"?: "~effect/ai/Prompt/Part" | undefined;
2028
2053
  readonly options?: {
2029
2054
  readonly [x: string]: Schema.Json;
2030
2055
  } | undefined;
2031
- readonly fileName?: string | undefined;
2032
2056
  })[]];
2033
2057
  readonly expectedPausedMessageIdsToCancel?: readonly string[] | undefined;
2034
- readonly commandId?: string | undefined;
2035
- readonly idempotencyKey?: string | undefined;
2036
2058
  } | {
2037
2059
  readonly _tag: "StopTurn";
2038
2060
  readonly commandId?: string | undefined;
2039
2061
  readonly idempotencyKey?: string | undefined;
2040
2062
  } | {
2041
2063
  readonly _tag: "CancelPendingMessage";
2042
- readonly messageId: string;
2043
- readonly reason: "edit" | "user-cancel";
2044
2064
  readonly commandId?: string | undefined;
2045
2065
  readonly idempotencyKey?: string | undefined;
2066
+ readonly messageId: string;
2067
+ readonly reason: "edit" | "user-cancel";
2046
2068
  } | {
2047
2069
  readonly _tag: "PromotePendingMessage";
2048
- readonly messageId: string;
2049
2070
  readonly commandId?: string | undefined;
2050
2071
  readonly idempotencyKey?: string | undefined;
2072
+ readonly messageId: string;
2051
2073
  } | {
2052
2074
  readonly _tag: "ResumePendingMessages";
2053
- readonly messageIds: readonly [string, ...string[]];
2054
2075
  readonly commandId?: string | undefined;
2055
2076
  readonly idempotencyKey?: string | undefined;
2077
+ readonly messageIds: readonly [string, ...string[]];
2056
2078
  };
2057
2079
  readonly admittedSeq: number;
2058
2080
  readonly admissionTrace?: {
@@ -2076,6 +2098,9 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2076
2098
  } | undefined;
2077
2099
  }[];
2078
2100
  readonly steeringByRun: ReadonlyMap<string, readonly {
2101
+ readonly messageId: string;
2102
+ readonly commandId: string;
2103
+ readonly runId: string;
2079
2104
  readonly content: readonly [{
2080
2105
  readonly type: "text";
2081
2106
  readonly text: string;
@@ -2099,13 +2124,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2099
2124
  };
2100
2125
  } | {
2101
2126
  readonly type: "file";
2127
+ readonly mediaType: string;
2128
+ readonly fileName?: string | undefined;
2129
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2102
2130
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2103
2131
  readonly options: {
2104
2132
  readonly [x: string]: Schema.Json;
2105
2133
  };
2106
- readonly mediaType: string;
2107
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2108
- readonly fileName?: string | undefined;
2109
2134
  }, ...({
2110
2135
  readonly type: "text";
2111
2136
  readonly text: string;
@@ -2115,23 +2140,21 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2115
2140
  };
2116
2141
  } | {
2117
2142
  readonly type: "file";
2143
+ readonly mediaType: string;
2144
+ readonly fileName?: string | undefined;
2145
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2118
2146
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2119
2147
  readonly options: {
2120
2148
  readonly [x: string]: Schema.Json;
2121
2149
  };
2122
- readonly mediaType: string;
2123
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2124
- readonly fileName?: string | undefined;
2125
2150
  })[]];
2126
- readonly commandId: string;
2127
- readonly messageId: string;
2128
- readonly runId: string;
2129
2151
  readonly queuedSeq: number;
2130
2152
  readonly consumedSeq?: number | undefined;
2131
2153
  readonly consumedTurnId?: string | undefined;
2132
2154
  }[]>;
2133
2155
  readonly pendingQueue: readonly {
2134
- readonly disposition: "queue" | "steer";
2156
+ readonly messageId: string;
2157
+ readonly commandId: string;
2135
2158
  readonly content: readonly [{
2136
2159
  readonly type: "text";
2137
2160
  readonly text: string;
@@ -2155,13 +2178,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2155
2178
  };
2156
2179
  } | {
2157
2180
  readonly type: "file";
2181
+ readonly mediaType: string;
2182
+ readonly fileName?: string | undefined;
2183
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2158
2184
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2159
2185
  readonly options: {
2160
2186
  readonly [x: string]: Schema.Json;
2161
2187
  };
2162
- readonly mediaType: string;
2163
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2164
- readonly fileName?: string | undefined;
2165
2188
  }, ...({
2166
2189
  readonly type: "text";
2167
2190
  readonly text: string;
@@ -2171,23 +2194,23 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2171
2194
  };
2172
2195
  } | {
2173
2196
  readonly type: "file";
2197
+ readonly mediaType: string;
2198
+ readonly fileName?: string | undefined;
2199
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2174
2200
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2175
2201
  readonly options: {
2176
2202
  readonly [x: string]: Schema.Json;
2177
2203
  };
2178
- readonly mediaType: string;
2179
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2180
- readonly fileName?: string | undefined;
2181
2204
  })[]];
2182
- readonly commandId: string;
2183
- readonly messageId: string;
2184
2205
  readonly submittedSeq: number;
2185
2206
  readonly effectiveSeq: number;
2186
- readonly pausedByCommandId?: string | undefined;
2207
+ readonly disposition: "queue" | "steer";
2187
2208
  readonly targetRunId?: string | undefined;
2209
+ readonly pausedByCommandId?: string | undefined;
2188
2210
  }[];
2189
2211
  readonly pendingSteers: readonly {
2190
- readonly disposition: "queue" | "steer";
2212
+ readonly messageId: string;
2213
+ readonly commandId: string;
2191
2214
  readonly content: readonly [{
2192
2215
  readonly type: "text";
2193
2216
  readonly text: string;
@@ -2211,13 +2234,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2211
2234
  };
2212
2235
  } | {
2213
2236
  readonly type: "file";
2237
+ readonly mediaType: string;
2238
+ readonly fileName?: string | undefined;
2239
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2214
2240
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2215
2241
  readonly options: {
2216
2242
  readonly [x: string]: Schema.Json;
2217
2243
  };
2218
- readonly mediaType: string;
2219
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2220
- readonly fileName?: string | undefined;
2221
2244
  }, ...({
2222
2245
  readonly type: "text";
2223
2246
  readonly text: string;
@@ -2227,23 +2250,23 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2227
2250
  };
2228
2251
  } | {
2229
2252
  readonly type: "file";
2253
+ readonly mediaType: string;
2254
+ readonly fileName?: string | undefined;
2255
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2230
2256
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2231
2257
  readonly options: {
2232
2258
  readonly [x: string]: Schema.Json;
2233
2259
  };
2234
- readonly mediaType: string;
2235
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2236
- readonly fileName?: string | undefined;
2237
2260
  })[]];
2238
- readonly commandId: string;
2239
- readonly messageId: string;
2240
2261
  readonly submittedSeq: number;
2241
2262
  readonly effectiveSeq: number;
2242
- readonly pausedByCommandId?: string | undefined;
2263
+ readonly disposition: "queue" | "steer";
2243
2264
  readonly targetRunId?: string | undefined;
2265
+ readonly pausedByCommandId?: string | undefined;
2244
2266
  }[];
2245
2267
  readonly pausedQueue: readonly {
2246
- readonly disposition: "queue" | "steer";
2268
+ readonly messageId: string;
2269
+ readonly commandId: string;
2247
2270
  readonly content: readonly [{
2248
2271
  readonly type: "text";
2249
2272
  readonly text: string;
@@ -2267,13 +2290,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2267
2290
  };
2268
2291
  } | {
2269
2292
  readonly type: "file";
2293
+ readonly mediaType: string;
2294
+ readonly fileName?: string | undefined;
2295
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2270
2296
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2271
2297
  readonly options: {
2272
2298
  readonly [x: string]: Schema.Json;
2273
2299
  };
2274
- readonly mediaType: string;
2275
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2276
- readonly fileName?: string | undefined;
2277
2300
  }, ...({
2278
2301
  readonly type: "text";
2279
2302
  readonly text: string;
@@ -2283,49 +2306,37 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2283
2306
  };
2284
2307
  } | {
2285
2308
  readonly type: "file";
2309
+ readonly mediaType: string;
2310
+ readonly fileName?: string | undefined;
2311
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2286
2312
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2287
2313
  readonly options: {
2288
2314
  readonly [x: string]: Schema.Json;
2289
2315
  };
2290
- readonly mediaType: string;
2291
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2292
- readonly fileName?: string | undefined;
2293
2316
  })[]];
2294
- readonly commandId: string;
2295
- readonly messageId: string;
2296
2317
  readonly submittedSeq: number;
2297
2318
  readonly effectiveSeq: number;
2298
- readonly pausedByCommandId?: string | undefined;
2319
+ readonly disposition: "queue" | "steer";
2299
2320
  readonly targetRunId?: string | undefined;
2321
+ readonly pausedByCommandId?: string | undefined;
2300
2322
  }[];
2301
- readonly active?: {
2302
- readonly commandId: string;
2303
- readonly runId?: string | undefined;
2304
- } | undefined;
2305
2323
  };
2306
- readonly modelSelection?: {
2307
- readonly provider: string;
2308
- readonly modelId: string;
2309
- readonly settings?: unknown;
2310
- } | undefined;
2311
- readonly runSchedulingRequest?: {
2312
- readonly requestId: string;
2313
- readonly requestedSeq: number;
2314
- readonly work: {
2315
- readonly _tag: "Command";
2316
- readonly commandId: string;
2317
- } | {
2318
- readonly _tag: "Recovery";
2319
- readonly commandId: string;
2320
- readonly interruptedRunId: string;
2321
- readonly inputMessageIds: readonly string[];
2322
- };
2323
- readonly deliveredSeq?: number | undefined;
2324
- } | undefined;
2325
2324
  };
2326
2325
  readonly reducerStates: ReadonlyMap<string, unknown>;
2327
2326
  readonly messages: readonly ({
2327
+ readonly createdAtMs?: number | undefined;
2328
+ readonly messageId: string;
2329
+ readonly seq: number;
2330
+ readonly cancellationReason?: string | undefined;
2331
+ readonly cancelledByCommandId?: string | undefined;
2332
+ readonly cancelledSeq?: number | undefined;
2333
+ readonly consumedSeq?: number | undefined;
2334
+ readonly consumedTurnId?: string | undefined;
2335
+ readonly pausedByCommandId?: string | undefined;
2336
+ readonly pausedSeq?: number | undefined;
2337
+ readonly promotedSeq?: number | undefined;
2328
2338
  readonly _tag: "User";
2339
+ readonly commandId: string;
2329
2340
  readonly content: readonly [{
2330
2341
  readonly type: "text";
2331
2342
  readonly text: string;
@@ -2349,13 +2360,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2349
2360
  };
2350
2361
  } | {
2351
2362
  readonly type: "file";
2363
+ readonly mediaType: string;
2364
+ readonly fileName?: string | undefined;
2365
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2352
2366
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2353
2367
  readonly options: {
2354
2368
  readonly [x: string]: Schema.Json;
2355
2369
  };
2356
- readonly mediaType: string;
2357
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2358
- readonly fileName?: string | undefined;
2359
2370
  }, ...({
2360
2371
  readonly type: "text";
2361
2372
  readonly text: string;
@@ -2365,41 +2376,27 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2365
2376
  };
2366
2377
  } | {
2367
2378
  readonly type: "file";
2379
+ readonly mediaType: string;
2380
+ readonly fileName?: string | undefined;
2381
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2368
2382
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2369
2383
  readonly options: {
2370
2384
  readonly [x: string]: Schema.Json;
2371
2385
  };
2372
- readonly mediaType: string;
2373
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2374
- readonly fileName?: string | undefined;
2375
2386
  })[]];
2376
- readonly commandId: string;
2377
- readonly messageId: string;
2378
- readonly seq: number;
2379
- readonly createdAtMs?: number | undefined;
2380
2387
  readonly disposition?: "queue" | "steer" | undefined;
2381
2388
  readonly requestedDisposition?: "queue" | "steer" | undefined;
2382
- readonly cancellationReason?: string | undefined;
2383
- readonly cancelledByCommandId?: string | undefined;
2384
- readonly cancelledSeq?: number | undefined;
2385
- readonly consumedSeq?: number | undefined;
2386
- readonly consumedTurnId?: string | undefined;
2387
- readonly pausedByCommandId?: string | undefined;
2388
- readonly pausedSeq?: number | undefined;
2389
- readonly promotedSeq?: number | undefined;
2390
2389
  } | {
2390
+ readonly createdAtMs?: number | undefined;
2391
+ readonly messageId: string;
2392
+ readonly seq: number;
2391
2393
  readonly _tag: "Assistant";
2392
2394
  readonly content: {
2393
2395
  readonly text: string;
2394
2396
  readonly reasoning?: string | undefined;
2395
2397
  };
2396
- readonly messageId: string;
2397
- readonly seq: number;
2398
- readonly runId: string;
2399
- readonly inferenceId: string;
2400
- readonly turnId: string;
2401
- readonly createdAtMs?: number | undefined;
2402
2398
  readonly imported?: true | undefined;
2399
+ readonly inferenceId: string;
2403
2400
  readonly promptParts?: readonly ({
2404
2401
  readonly type: "text";
2405
2402
  readonly text: string;
@@ -2409,13 +2406,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2409
2406
  };
2410
2407
  } | {
2411
2408
  readonly type: "file";
2409
+ readonly mediaType: string;
2410
+ readonly fileName?: string | undefined;
2411
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2412
2412
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2413
2413
  readonly options: {
2414
2414
  readonly [x: string]: Schema.Json;
2415
2415
  };
2416
- readonly mediaType: string;
2417
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2418
- readonly fileName?: string | undefined;
2419
2416
  } | {
2420
2417
  readonly type: "reasoning";
2421
2418
  readonly text: string;
@@ -2452,19 +2449,18 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2452
2449
  readonly [x: string]: Schema.Json;
2453
2450
  };
2454
2451
  })[] | undefined;
2452
+ readonly runId: string;
2453
+ readonly turnId: string;
2455
2454
  } | {
2455
+ readonly createdAtMs?: number | undefined;
2456
+ readonly messageId: string;
2457
+ readonly seq: number;
2456
2458
  readonly _tag: "AssistantPartial";
2457
2459
  readonly content: {
2458
2460
  readonly text: string;
2459
2461
  readonly reasoning?: string | undefined;
2460
2462
  };
2461
- readonly messageId: string;
2462
- readonly reason: string;
2463
- readonly seq: number;
2464
- readonly runId: string;
2465
2463
  readonly inferenceId: string;
2466
- readonly turnId: string;
2467
- readonly createdAtMs?: number | undefined;
2468
2464
  readonly promptParts?: readonly ({
2469
2465
  readonly type: "text";
2470
2466
  readonly text: string;
@@ -2474,13 +2470,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2474
2470
  };
2475
2471
  } | {
2476
2472
  readonly type: "file";
2473
+ readonly mediaType: string;
2474
+ readonly fileName?: string | undefined;
2475
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2477
2476
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2478
2477
  readonly options: {
2479
2478
  readonly [x: string]: Schema.Json;
2480
2479
  };
2481
- readonly mediaType: string;
2482
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2483
- readonly fileName?: string | undefined;
2484
2480
  } | {
2485
2481
  readonly type: "reasoning";
2486
2482
  readonly text: string;
@@ -2517,8 +2513,22 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2517
2513
  readonly [x: string]: Schema.Json;
2518
2514
  };
2519
2515
  })[] | undefined;
2516
+ readonly reason: string;
2517
+ readonly runId: string;
2518
+ readonly turnId: string;
2520
2519
  } | {
2520
+ readonly createdAtMs?: number | undefined;
2521
+ readonly messageId: string;
2522
+ readonly seq: number;
2523
+ readonly cancellationReason?: string | undefined;
2524
+ readonly cancelledByCommandId?: string | undefined;
2525
+ readonly cancelledSeq?: number | undefined;
2526
+ readonly consumedTurnId?: string | undefined;
2527
+ readonly pausedByCommandId?: string | undefined;
2528
+ readonly pausedSeq?: number | undefined;
2529
+ readonly promotedSeq?: number | undefined;
2521
2530
  readonly _tag: "Steering";
2531
+ readonly commandId: string;
2522
2532
  readonly content: readonly [{
2523
2533
  readonly type: "text";
2524
2534
  readonly text: string;
@@ -2542,13 +2552,13 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2542
2552
  };
2543
2553
  } | {
2544
2554
  readonly type: "file";
2555
+ readonly mediaType: string;
2556
+ readonly fileName?: string | undefined;
2557
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2545
2558
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2546
2559
  readonly options: {
2547
2560
  readonly [x: string]: Schema.Json;
2548
2561
  };
2549
- readonly mediaType: string;
2550
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2551
- readonly fileName?: string | undefined;
2552
2562
  }, ...({
2553
2563
  readonly type: "text";
2554
2564
  readonly text: string;
@@ -2558,27 +2568,16 @@ declare const encodeEdaRpcSessionSnapshot: (input: {
2558
2568
  };
2559
2569
  } | {
2560
2570
  readonly type: "file";
2571
+ readonly mediaType: string;
2572
+ readonly fileName?: string | undefined;
2573
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2561
2574
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
2562
2575
  readonly options: {
2563
2576
  readonly [x: string]: Schema.Json;
2564
2577
  };
2565
- readonly mediaType: string;
2566
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
2567
- readonly fileName?: string | undefined;
2568
2578
  })[]];
2569
- readonly commandId: string;
2570
- readonly messageId: string;
2571
- readonly seq: number;
2572
- readonly consumedSeq: number;
2573
2579
  readonly runId: string;
2574
- readonly createdAtMs?: number | undefined;
2575
- readonly cancellationReason?: string | undefined;
2576
- readonly cancelledByCommandId?: string | undefined;
2577
- readonly cancelledSeq?: number | undefined;
2578
- readonly consumedTurnId?: string | undefined;
2579
- readonly pausedByCommandId?: string | undefined;
2580
- readonly pausedSeq?: number | undefined;
2581
- readonly promotedSeq?: number | undefined;
2580
+ readonly consumedSeq: number;
2582
2581
  })[];
2583
2582
  };
2584
2583
  //#endregion