effect-durable-agent 0.1.0-alpha.18 → 0.1.0-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/{commands-p8venTWs.d.ts → commands-3OD-p8dD.d.ts} +7 -8
  2. package/dist/{compaction-Db6eoLce.js → compaction-GD1cTPTZ.js} +5 -7
  3. package/dist/compaction-GD1cTPTZ.js.map +1 -0
  4. package/dist/{context-projection-Dr_kA41k.d.ts → context-projection-D_uRtK3r.d.ts} +15 -16
  5. package/dist/{core-C-6xHzRx.d.ts → core-BcimKMIv.d.ts} +1 -2
  6. package/dist/domain/command-queues.d.ts +3 -4
  7. package/dist/domain/command-queues.js.map +1 -1
  8. package/dist/domain/context-projection.d.ts +1 -1
  9. package/dist/domain/context-projection.js +1 -1
  10. package/dist/domain/context-projection.js.map +1 -1
  11. package/dist/domain/message-transcript.d.ts +1 -1
  12. package/dist/domain/message-transcript.js +1 -1
  13. package/dist/domain/message-transcript.js.map +1 -1
  14. package/dist/domain/model-usage.d.ts +1 -1
  15. package/dist/domain/reduced-state-schema.d.ts +2 -2
  16. package/dist/domain/reduced-state-schema.js +2 -2
  17. package/dist/domain/reduced-state-schema.js.map +1 -1
  18. package/dist/domain/reduced-state.d.ts +2 -2
  19. package/dist/domain/reduced-state.js +1 -1
  20. package/dist/domain/run-scheduling.d.ts +1 -1
  21. package/dist/domain/run-scheduling.js.map +1 -1
  22. package/dist/{durable-DRY7AcsF.js → durable-CD__3ztN.js} +67 -4
  23. package/dist/durable-CD__3ztN.js.map +1 -0
  24. package/dist/{durable-DeQBR5wA.d.ts → durable-CKdCCqhw.d.ts} +1548 -1496
  25. package/dist/envelope-BCzKUq_z.js.map +1 -1
  26. package/dist/{envelope-VXFEC8zr.d.ts → envelope-Che6KatU.d.ts} +29 -30
  27. package/dist/{event-factory-CKuWhjS4.js → event-factory-VAci3NJb.js} +2 -2
  28. package/dist/{event-factory-CKuWhjS4.js.map → event-factory-VAci3NJb.js.map} +1 -1
  29. package/dist/{events-D3OAPXgS.d.ts → events-BWuvzVml.d.ts} +124 -122
  30. package/dist/{id-generator--x6itQZ2.d.ts → id-generator-BKGoKjt-.d.ts} +2 -3
  31. package/dist/index.d.ts +7 -7
  32. package/dist/index.js +1 -1
  33. package/dist/{keep-alive-Chl5SJxy.d.ts → keep-alive-_zFCUvt3.d.ts} +1 -2
  34. package/dist/{model-resolver-ci5D5WQv.d.ts → model-resolver-BfM5YA6A.d.ts} +5 -5
  35. package/dist/{model-usage-CNcnhj72.d.ts → model-usage-0GeHwaaU.d.ts} +2 -3
  36. package/dist/{reduced-state-xY-tYuGo.d.ts → reduced-state-4FSWDdgT.d.ts} +8215 -8010
  37. package/dist/{reduced-state-DFIYylAq.js → reduced-state-Vuud6LCM.js} +2 -2
  38. package/dist/reduced-state-Vuud6LCM.js.map +1 -0
  39. package/dist/{reduced-state-schema-CgW0mzpS.d.ts → reduced-state-schema-jyZWJ0QS.d.ts} +170 -152
  40. package/dist/{reducer-registry-bRbc4COf.d.ts → reducer-registry-BIhncOHH.d.ts} +8 -7
  41. package/dist/{run-scheduling-wakeup-CY5hfgMR.d.ts → run-scheduling-wakeup-BH2pHE0U.d.ts} +2 -3
  42. package/dist/services/compaction.d.ts +1 -1
  43. package/dist/services/compaction.js +1 -1
  44. package/dist/services/id-generator.d.ts +1 -1
  45. package/dist/services/id-generator.js +2 -1
  46. package/dist/services/id-generator.js.map +1 -1
  47. package/dist/services/keep-alive.d.ts +1 -1
  48. package/dist/services/keep-alive.js.map +1 -1
  49. package/dist/services/model-resolver.d.ts +1 -1
  50. package/dist/services/model-resolver.js +1 -1
  51. package/dist/services/model-resolver.js.map +1 -1
  52. package/dist/services/prompt-projector.d.ts +1 -1
  53. package/dist/services/prompt-projector.js +1 -1
  54. package/dist/services/prompt-projector.js.map +1 -1
  55. package/dist/services/reducer-registry.d.ts +1 -1
  56. package/dist/services/reducer-registry.js.map +1 -1
  57. package/dist/services/run-scheduler.d.ts +1 -1
  58. package/dist/services/run-scheduler.js +1 -1
  59. package/dist/services/run-scheduler.js.map +1 -1
  60. package/dist/services/run-scheduling-wakeup.d.ts +1 -1
  61. package/dist/services/run-scheduling-wakeup.js.map +1 -1
  62. package/dist/services/runtime-layer.d.ts +14 -31
  63. package/dist/services/runtime-layer.js +6 -6
  64. package/dist/services/runtime-layer.js.map +1 -1
  65. package/dist/services/runtime.d.ts +1 -1
  66. package/dist/services/runtime.js +2 -2
  67. package/dist/services/runtime.js.map +1 -1
  68. package/dist/services/session-event-observer.d.ts +1 -1
  69. package/dist/services/session-event-observer.js.map +1 -1
  70. package/dist/services/session-query.d.ts +1 -1
  71. package/dist/services/session-query.js +6 -8
  72. package/dist/services/session-query.js.map +1 -1
  73. package/dist/services/session-state.d.ts +1 -1
  74. package/dist/services/session-state.js +1 -1
  75. package/dist/services/session-store.d.ts +1 -1
  76. package/dist/services/session-store.js +10 -8
  77. package/dist/services/session-store.js.map +1 -1
  78. package/dist/services/sink-checkpoint-store.d.ts +1 -1
  79. package/dist/services/sink-checkpoint-store.js +2 -1
  80. package/dist/services/sink-checkpoint-store.js.map +1 -1
  81. package/dist/services/sink-registry.d.ts +1 -1
  82. package/dist/services/sink-registry.js +1 -1
  83. package/dist/services/tool-registry.d.ts +1 -1
  84. package/dist/services/tool-registry.js +2 -2
  85. package/dist/services/tool-registry.js.map +1 -1
  86. package/dist/services/tracing.d.ts +3 -3
  87. package/dist/services/tracing.js +1 -1
  88. package/dist/services/tracing.js.map +1 -1
  89. package/dist/{session-event-observer-BWppl2Fr.d.ts → session-event-observer-BdZltdrK.d.ts} +3 -3
  90. package/dist/{session-state-8PJZvuR3.js → session-state-BAzdzqV4.js} +92 -59
  91. package/dist/session-state-BAzdzqV4.js.map +1 -0
  92. package/dist/{session-store-CERvTeaV.d.ts → session-store-BpitF4Wg.d.ts} +9 -9
  93. package/dist/{sink-checkpoint-store-DTiswoqy.d.ts → sink-checkpoint-store-C-SY0cG2.d.ts} +3 -4
  94. package/dist/{sink-registry-B4yxTmlI.js → sink-registry-BnWfMABI.js} +5 -5
  95. package/dist/sink-registry-BnWfMABI.js.map +1 -0
  96. package/dist/testkit/layers.d.ts +15 -15
  97. package/dist/testkit/layers.js +9 -6
  98. package/dist/testkit/layers.js.map +1 -1
  99. package/dist/{tool-registry-D4ALie3K.d.ts → tool-registry-wPsHagF_.d.ts} +7 -7
  100. package/dist/{tracing-BXHAkxkx.d.ts → tracing-BwjbF285.d.ts} +1 -2
  101. package/dist/types/commands.d.ts +1 -1
  102. package/dist/types/commands.js +1 -1
  103. package/dist/types/commands.js.map +1 -1
  104. package/dist/types/core.d.ts +1 -1
  105. package/dist/types/core.js.map +1 -1
  106. package/dist/types/events/durable.d.ts +1 -1
  107. package/dist/types/events/durable.js +1 -1
  108. package/dist/types/events.d.ts +4 -4
  109. package/dist/types/events.js +1 -1
  110. package/dist/types/tracing.d.ts +1 -1
  111. package/dist/types/tracing.js.map +1 -1
  112. package/dist/websocket.d.ts +204 -187
  113. package/dist/websocket.js +5 -4
  114. package/dist/websocket.js.map +1 -1
  115. package/package.json +12 -12
  116. package/dist/compaction-Db6eoLce.js.map +0 -1
  117. package/dist/durable-DRY7AcsF.js.map +0 -1
  118. package/dist/reduced-state-DFIYylAq.js.map +0 -1
  119. package/dist/session-state-8PJZvuR3.js.map +0 -1
  120. package/dist/sink-registry-B4yxTmlI.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { c as StopTurnCommand, l as SubmitMessageCommand, o as PromotePendingMessageCommand, s as ResumePendingMessagesCommand, t as CancelPendingMessageCommand } from "./commands-p8venTWs.js";
1
+ import { c as StopTurnCommand, l as SubmitMessageCommand, o as PromotePendingMessageCommand, s as ResumePendingMessagesCommand, t as CancelPendingMessageCommand } from "./commands-3OD-p8dD.js";
2
+ import "./model-usage-0GeHwaaU.js";
2
3
  import * as Schema from "effect/Schema";
3
-
4
4
  //#region src/domain/reduced-state-schema.d.ts
5
5
  /**
6
6
  * Canonical Effect Prompt file part with an explicit JSON string encoding.
@@ -16,12 +16,12 @@ declare const JsonPromptFilePart: Schema.decodeTo<Schema.Struct<{
16
16
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
17
17
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
18
18
  }>, Schema.Struct<{
19
- readonly data: Schema.String;
20
19
  readonly type: Schema.Literal<"file">;
21
20
  readonly mediaType: Schema.String;
22
21
  readonly fileName: Schema.optional<Schema.String>;
23
22
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
24
23
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
24
+ readonly data: Schema.String;
25
25
  }>, never, never>;
26
26
  declare const JsonUserMessagePart: Schema.Union<readonly [Schema.Struct<{
27
27
  readonly type: Schema.Literal<"text">;
@@ -36,12 +36,12 @@ declare const JsonUserMessagePart: Schema.Union<readonly [Schema.Struct<{
36
36
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
37
37
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
38
38
  }>, Schema.Struct<{
39
- readonly data: Schema.String;
40
39
  readonly type: Schema.Literal<"file">;
41
40
  readonly mediaType: Schema.String;
42
41
  readonly fileName: Schema.optional<Schema.String>;
43
42
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
44
43
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
44
+ readonly data: Schema.String;
45
45
  }>, never, never>]>;
46
46
  declare const JsonUserMessageContent: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
47
47
  readonly type: Schema.Literal<"text">;
@@ -61,12 +61,12 @@ declare const JsonUserMessageContent: Schema.Union<readonly [Schema.decodeTo<Sch
61
61
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
62
62
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
63
63
  }>, Schema.Struct<{
64
- readonly data: Schema.String;
65
64
  readonly type: Schema.Literal<"file">;
66
65
  readonly mediaType: Schema.String;
67
66
  readonly fileName: Schema.optional<Schema.String>;
68
67
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
69
68
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
69
+ readonly data: Schema.String;
70
70
  }>, never, never>]>>]>;
71
71
  declare const JsonAssistantMessagePart: Schema.Union<readonly [Schema.Struct<{
72
72
  readonly type: Schema.Literal<"text">;
@@ -81,12 +81,12 @@ declare const JsonAssistantMessagePart: Schema.Union<readonly [Schema.Struct<{
81
81
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
82
82
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
83
83
  }>, Schema.Struct<{
84
- readonly data: Schema.String;
85
84
  readonly type: Schema.Literal<"file">;
86
85
  readonly mediaType: Schema.String;
87
86
  readonly fileName: Schema.optional<Schema.String>;
88
87
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
89
88
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
89
+ readonly data: Schema.String;
90
90
  }>, never, never>, Schema.Struct<{
91
91
  readonly type: Schema.Literal<"reasoning">;
92
92
  readonly text: Schema.String;
@@ -106,6 +106,7 @@ declare const JsonAssistantMessagePart: Schema.Union<readonly [Schema.Struct<{
106
106
  readonly name: Schema.String;
107
107
  readonly isFailure: Schema.Boolean;
108
108
  readonly result: Schema.Unknown;
109
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
109
110
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
110
111
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
111
112
  }>, Schema.Struct<{
@@ -122,6 +123,11 @@ declare const JsonAssistantMessagePart: Schema.Union<readonly [Schema.Struct<{
122
123
  * replaces canonical Prompt file data with its explicit JSON string projection.
123
124
  */
124
125
  declare const JsonEDACommand: Schema.Union<readonly [Schema.Struct<{
126
+ readonly _tag: Schema.tag<"SubmitMessage">;
127
+ readonly commandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
128
+ readonly idempotencyKey: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "CommandIdempotencyKey">>;
129
+ readonly disposition: Schema.Literals<readonly ["queue", "steer", "interrupt"]>;
130
+ readonly expectedPausedMessageIdsToCancel: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "MessageId">>>;
125
131
  readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
126
132
  readonly type: Schema.Literal<"text">;
127
133
  readonly text: Schema.String;
@@ -140,18 +146,13 @@ declare const JsonEDACommand: Schema.Union<readonly [Schema.Struct<{
140
146
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
141
147
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
142
148
  }>, Schema.Struct<{
143
- readonly data: Schema.String;
144
149
  readonly type: Schema.Literal<"file">;
145
150
  readonly mediaType: Schema.String;
146
151
  readonly fileName: Schema.optional<Schema.String>;
147
152
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
148
153
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
154
+ readonly data: Schema.String;
149
155
  }>, never, never>]>>]>;
150
- readonly _tag: Schema.tag<"SubmitMessage">;
151
- readonly disposition: Schema.Literals<readonly ["queue", "steer", "interrupt"]>;
152
- readonly expectedPausedMessageIdsToCancel: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "MessageId">>>;
153
- readonly commandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
154
- readonly idempotencyKey: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "CommandIdempotencyKey">>;
155
156
  }>, typeof StopTurnCommand, typeof CancelPendingMessageCommand, typeof PromotePendingMessageCommand, typeof ResumePendingMessagesCommand]>;
156
157
  declare const CommandTerminalSchema: Schema.Union<readonly [Schema.Struct<{
157
158
  readonly _tag: Schema.Literal<"Completed">;
@@ -269,38 +270,6 @@ declare const CommandRecordSchema: Schema.Struct<{
269
270
  }>]>>;
270
271
  }>;
271
272
  declare const JsonCommandRecordSchema: Schema.Struct<{
272
- readonly command: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
273
- readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
274
- readonly type: Schema.Literal<"text">;
275
- readonly text: Schema.String;
276
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
277
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
278
- }>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
279
- readonly type: Schema.Literal<"text">;
280
- readonly text: Schema.String;
281
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
282
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
283
- }>, Schema.decodeTo<Schema.Struct<{
284
- readonly type: Schema.Literal<"file">;
285
- readonly mediaType: Schema.String;
286
- readonly fileName: Schema.optional<Schema.String>;
287
- readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
288
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
289
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
290
- }>, Schema.Struct<{
291
- readonly data: Schema.String;
292
- readonly type: Schema.Literal<"file">;
293
- readonly mediaType: Schema.String;
294
- readonly fileName: Schema.optional<Schema.String>;
295
- readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
296
- readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
297
- }>, never, never>]>>]>;
298
- readonly _tag: Schema.tag<"SubmitMessage">;
299
- readonly disposition: Schema.Literals<readonly ["queue", "steer", "interrupt"]>;
300
- readonly expectedPausedMessageIdsToCancel: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "MessageId">>>;
301
- readonly commandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
302
- readonly idempotencyKey: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "CommandIdempotencyKey">>;
303
- }>, typeof StopTurnCommand, typeof CancelPendingMessageCommand, typeof PromotePendingMessageCommand, typeof ResumePendingMessagesCommand]>>;
304
273
  readonly admittedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
305
274
  readonly admissionTrace: Schema.optionalKey<Schema.Struct<{
306
275
  readonly span: Schema.Struct<{
@@ -337,8 +306,48 @@ declare const JsonCommandRecordSchema: Schema.Struct<{
337
306
  readonly reason: Schema.String;
338
307
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
339
308
  }>]>>;
309
+ readonly command: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
310
+ readonly _tag: Schema.tag<"SubmitMessage">;
311
+ readonly commandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
312
+ readonly idempotencyKey: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "CommandIdempotencyKey">>;
313
+ readonly disposition: Schema.Literals<readonly ["queue", "steer", "interrupt"]>;
314
+ readonly expectedPausedMessageIdsToCancel: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "MessageId">>>;
315
+ readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
316
+ readonly type: Schema.Literal<"text">;
317
+ readonly text: Schema.String;
318
+ readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
319
+ readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
320
+ }>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
321
+ readonly type: Schema.Literal<"text">;
322
+ readonly text: Schema.String;
323
+ readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
324
+ readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
325
+ }>, Schema.decodeTo<Schema.Struct<{
326
+ readonly type: Schema.Literal<"file">;
327
+ readonly mediaType: Schema.String;
328
+ readonly fileName: Schema.optional<Schema.String>;
329
+ readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
330
+ readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
331
+ readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
332
+ }>, Schema.Struct<{
333
+ readonly type: Schema.Literal<"file">;
334
+ readonly mediaType: Schema.String;
335
+ readonly fileName: Schema.optional<Schema.String>;
336
+ readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
337
+ readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
338
+ readonly data: Schema.String;
339
+ }>, never, never>]>>]>;
340
+ }>, typeof StopTurnCommand, typeof CancelPendingMessageCommand, typeof PromotePendingMessageCommand, typeof ResumePendingMessagesCommand]>>;
340
341
  }>;
341
342
  declare const RunRecordSchema: Schema.Struct<{
343
+ readonly durationMs: Schema.optionalKey<Schema.Finite>;
344
+ readonly startedAtMs: Schema.optionalKey<Schema.Int>;
345
+ readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
346
+ readonly modelSelection: Schema.optionalKey<Schema.Struct<{
347
+ readonly provider: Schema.NonEmptyString;
348
+ readonly modelId: Schema.NonEmptyString;
349
+ readonly settings: Schema.optionalKey<Schema.Unknown>;
350
+ }>>;
342
351
  readonly commandIds: Schema.$Array<Schema.brand<Schema.String, "CommandId">>;
343
352
  readonly runId: Schema.brand<Schema.String, "RunId">;
344
353
  readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
@@ -375,16 +384,11 @@ declare const RunRecordSchema: Schema.Struct<{
375
384
  readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
376
385
  }>>;
377
386
  }>;
387
+ }>;
388
+ declare const TurnRecordSchema: Schema.Struct<{
378
389
  readonly durationMs: Schema.optionalKey<Schema.Finite>;
379
390
  readonly startedAtMs: Schema.optionalKey<Schema.Int>;
380
391
  readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
381
- readonly modelSelection: Schema.optionalKey<Schema.Struct<{
382
- readonly provider: Schema.NonEmptyString;
383
- readonly modelId: Schema.NonEmptyString;
384
- readonly settings: Schema.optionalKey<Schema.Unknown>;
385
- }>>;
386
- }>;
387
- declare const TurnRecordSchema: Schema.Struct<{
388
392
  readonly runId: Schema.brand<Schema.String, "RunId">;
389
393
  readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
390
394
  readonly terminal: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
@@ -412,11 +416,11 @@ declare const TurnRecordSchema: Schema.Struct<{
412
416
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
413
417
  }>]>>;
414
418
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
419
+ }>;
420
+ declare const InferenceRecordSchema: Schema.Struct<{
415
421
  readonly durationMs: Schema.optionalKey<Schema.Finite>;
416
422
  readonly startedAtMs: Schema.optionalKey<Schema.Int>;
417
423
  readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
418
- }>;
419
- declare const InferenceRecordSchema: Schema.Struct<{
420
424
  readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
421
425
  readonly runId: Schema.brand<Schema.String, "RunId">;
422
426
  readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
@@ -441,9 +445,6 @@ declare const InferenceRecordSchema: Schema.Struct<{
441
445
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
442
446
  }>]>>;
443
447
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
444
- readonly durationMs: Schema.optionalKey<Schema.Finite>;
445
- readonly startedAtMs: Schema.optionalKey<Schema.Int>;
446
- readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
447
448
  }>;
448
449
  declare const ToolDecisionSchema: Schema.Union<readonly [Schema.Struct<{
449
450
  readonly _tag: Schema.Literal<"Created">;
@@ -474,6 +475,7 @@ declare const ToolDecisionSchema: Schema.Union<readonly [Schema.Struct<{
474
475
  readonly name: Schema.String;
475
476
  readonly isFailure: Schema.Boolean;
476
477
  readonly result: Schema.Unknown;
478
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
477
479
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
478
480
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
479
481
  }>>;
@@ -492,6 +494,7 @@ declare const ToolTerminalSchema: Schema.Union<readonly [Schema.Struct<{
492
494
  readonly name: Schema.String;
493
495
  readonly isFailure: Schema.Boolean;
494
496
  readonly result: Schema.Unknown;
497
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
495
498
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
496
499
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
497
500
  }>>;
@@ -510,12 +513,16 @@ declare const ToolTerminalSchema: Schema.Union<readonly [Schema.Struct<{
510
513
  readonly name: Schema.String;
511
514
  readonly isFailure: Schema.Boolean;
512
515
  readonly result: Schema.Unknown;
516
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
513
517
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
514
518
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
515
519
  }>>;
516
520
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
517
521
  }>]>;
518
522
  declare const ToolCallRecordSchema: Schema.Struct<{
523
+ readonly durationMs: Schema.optionalKey<Schema.Finite>;
524
+ readonly startedAtMs: Schema.optionalKey<Schema.Int>;
525
+ readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
519
526
  readonly decision: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
520
527
  readonly _tag: Schema.Literal<"Created">;
521
528
  readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
@@ -545,6 +552,7 @@ declare const ToolCallRecordSchema: Schema.Struct<{
545
552
  readonly name: Schema.String;
546
553
  readonly isFailure: Schema.Boolean;
547
554
  readonly result: Schema.Unknown;
555
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
548
556
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
549
557
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
550
558
  }>>;
@@ -564,6 +572,7 @@ declare const ToolCallRecordSchema: Schema.Struct<{
564
572
  readonly name: Schema.String;
565
573
  readonly isFailure: Schema.Boolean;
566
574
  readonly result: Schema.Unknown;
575
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
567
576
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
568
577
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
569
578
  }>>;
@@ -582,23 +591,32 @@ declare const ToolCallRecordSchema: Schema.Struct<{
582
591
  readonly name: Schema.String;
583
592
  readonly isFailure: Schema.Boolean;
584
593
  readonly result: Schema.Unknown;
594
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
585
595
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
586
596
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
587
597
  }>>;
588
598
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
589
599
  }>]>>;
590
600
  readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
591
- readonly durationMs: Schema.optionalKey<Schema.Finite>;
592
- readonly startedAtMs: Schema.optionalKey<Schema.Int>;
593
- readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
594
601
  }>;
595
602
  declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
603
+ readonly createdAtMs: Schema.optionalKey<Schema.Int>;
604
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
605
+ readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
596
606
  readonly _tag: Schema.Literal<"System">;
597
607
  readonly content: Schema.NonEmptyString;
608
+ }>, Schema.Struct<{
598
609
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
599
610
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
600
611
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
601
- }>, Schema.Struct<{
612
+ readonly cancellationReason: Schema.optionalKey<Schema.String>;
613
+ readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
614
+ readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
615
+ readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
616
+ readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
617
+ readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
618
+ readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
619
+ readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
602
620
  readonly _tag: Schema.Literal<"User">;
603
621
  readonly commandId: Schema.brand<Schema.String, "CommandId">;
604
622
  readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
@@ -621,6 +639,10 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
621
639
  }>]>>]>;
622
640
  readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
623
641
  readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
642
+ }>, Schema.Struct<{
643
+ readonly createdAtMs: Schema.optionalKey<Schema.Int>;
644
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
645
+ readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
624
646
  readonly cancellationReason: Schema.optionalKey<Schema.String>;
625
647
  readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
626
648
  readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
@@ -629,10 +651,6 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
629
651
  readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
630
652
  readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
631
653
  readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
632
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
633
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
634
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
635
- }>, Schema.Struct<{
636
654
  readonly _tag: Schema.Literal<"Steering">;
637
655
  readonly commandId: Schema.brand<Schema.String, "CommandId">;
638
656
  readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
@@ -654,18 +672,10 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
654
672
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
655
673
  }>]>>]>;
656
674
  readonly runId: Schema.brand<Schema.String, "RunId">;
657
- readonly cancellationReason: Schema.optionalKey<Schema.String>;
658
- readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
659
- readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
660
- readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
661
- readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
662
- readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
663
- readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
664
- readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
675
+ }>, Schema.Struct<{
665
676
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
666
677
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
667
678
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
668
- }>, Schema.Struct<{
669
679
  readonly _tag: Schema.Literal<"Assistant">;
670
680
  readonly content: Schema.Struct<{
671
681
  readonly text: Schema.String;
@@ -704,6 +714,7 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
704
714
  readonly name: Schema.String;
705
715
  readonly isFailure: Schema.Boolean;
706
716
  readonly result: Schema.Unknown;
717
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
707
718
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
708
719
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
709
720
  }>, Schema.Struct<{
@@ -715,10 +726,10 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
715
726
  }>]>>>;
716
727
  readonly runId: Schema.brand<Schema.String, "RunId">;
717
728
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
729
+ }>, Schema.Struct<{
718
730
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
719
731
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
720
732
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
721
- }>, Schema.Struct<{
722
733
  readonly _tag: Schema.Literal<"AssistantPartial">;
723
734
  readonly content: Schema.Struct<{
724
735
  readonly text: Schema.String;
@@ -756,6 +767,7 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
756
767
  readonly name: Schema.String;
757
768
  readonly isFailure: Schema.Boolean;
758
769
  readonly result: Schema.Unknown;
770
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
759
771
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
760
772
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
761
773
  }>, Schema.Struct<{
@@ -768,9 +780,6 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
768
780
  readonly reason: Schema.String;
769
781
  readonly runId: Schema.brand<Schema.String, "RunId">;
770
782
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
771
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
772
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
773
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
774
783
  }>]>;
775
784
  /** Lossless structured-clone query content; admission string transforms do not apply. */
776
785
  declare const QueryUserMessageContent: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
@@ -793,12 +802,23 @@ declare const QueryUserMessageContent: Schema.toType<Schema.Union<readonly [Sche
793
802
  }>]>>]>>;
794
803
  /** Message query records preserve Prompt-part arrays and their structured-clone fields. */
795
804
  declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
805
+ readonly createdAtMs: Schema.optionalKey<Schema.Int>;
806
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
807
+ readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
796
808
  readonly _tag: Schema.Literal<"System">;
797
809
  readonly content: Schema.NonEmptyString;
810
+ }>, Schema.Struct<{
798
811
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
799
812
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
800
813
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
801
- }>, Schema.Struct<{
814
+ readonly cancellationReason: Schema.optionalKey<Schema.String>;
815
+ readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
816
+ readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
817
+ readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
818
+ readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
819
+ readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
820
+ readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
821
+ readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
802
822
  readonly _tag: Schema.Literal<"User">;
803
823
  readonly commandId: Schema.brand<Schema.String, "CommandId">;
804
824
  readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
@@ -821,6 +841,10 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
821
841
  }>]>>]>>;
822
842
  readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
823
843
  readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
844
+ }>, Schema.Struct<{
845
+ readonly createdAtMs: Schema.optionalKey<Schema.Int>;
846
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
847
+ readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
824
848
  readonly cancellationReason: Schema.optionalKey<Schema.String>;
825
849
  readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
826
850
  readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
@@ -829,10 +853,6 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
829
853
  readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
830
854
  readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
831
855
  readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
832
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
833
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
834
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
835
- }>, Schema.Struct<{
836
856
  readonly _tag: Schema.Literal<"Steering">;
837
857
  readonly commandId: Schema.brand<Schema.String, "CommandId">;
838
858
  readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
@@ -854,18 +874,10 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
854
874
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
855
875
  }>]>>]>>;
856
876
  readonly runId: Schema.brand<Schema.String, "RunId">;
857
- readonly cancellationReason: Schema.optionalKey<Schema.String>;
858
- readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
859
- readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
860
- readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
861
- readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
862
- readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
863
- readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
864
- readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
877
+ }>, Schema.Struct<{
865
878
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
866
879
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
867
880
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
868
- }>, Schema.Struct<{
869
881
  readonly _tag: Schema.Literal<"Assistant">;
870
882
  readonly content: Schema.Struct<{
871
883
  readonly text: Schema.String;
@@ -904,6 +916,7 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
904
916
  readonly name: Schema.String;
905
917
  readonly isFailure: Schema.Boolean;
906
918
  readonly result: Schema.Unknown;
919
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
907
920
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
908
921
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
909
922
  }>>, Schema.toType<Schema.Struct<{
@@ -915,10 +928,10 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
915
928
  }>>]>>>;
916
929
  readonly runId: Schema.brand<Schema.String, "RunId">;
917
930
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
931
+ }>, Schema.Struct<{
918
932
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
919
933
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
920
934
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
921
- }>, Schema.Struct<{
922
935
  readonly _tag: Schema.Literal<"AssistantPartial">;
923
936
  readonly content: Schema.Struct<{
924
937
  readonly text: Schema.String;
@@ -956,6 +969,7 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
956
969
  readonly name: Schema.String;
957
970
  readonly isFailure: Schema.Boolean;
958
971
  readonly result: Schema.Unknown;
972
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
959
973
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
960
974
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
961
975
  }>>, Schema.toType<Schema.Struct<{
@@ -968,17 +982,25 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
968
982
  readonly reason: Schema.String;
969
983
  readonly runId: Schema.brand<Schema.String, "RunId">;
970
984
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
985
+ }>]>;
986
+ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
971
987
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
972
988
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
973
989
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
974
- }>]>;
975
- declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
976
990
  readonly _tag: Schema.Literal<"System">;
977
991
  readonly content: Schema.NonEmptyString;
992
+ }>, Schema.Struct<{
978
993
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
979
994
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
980
995
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
981
- }>, Schema.Struct<{
996
+ readonly cancellationReason: Schema.optionalKey<Schema.String>;
997
+ readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
998
+ readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
999
+ readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1000
+ readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
1001
+ readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
1002
+ readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1003
+ readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
982
1004
  readonly _tag: Schema.Literal<"User">;
983
1005
  readonly commandId: Schema.brand<Schema.String, "CommandId">;
984
1006
  readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
@@ -999,15 +1021,19 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
999
1021
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1000
1022
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1001
1023
  }>, Schema.Struct<{
1002
- readonly data: Schema.String;
1003
1024
  readonly type: Schema.Literal<"file">;
1004
1025
  readonly mediaType: Schema.String;
1005
1026
  readonly fileName: Schema.optional<Schema.String>;
1006
1027
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1007
1028
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1029
+ readonly data: Schema.String;
1008
1030
  }>, never, never>]>>]>;
1009
1031
  readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
1010
1032
  readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
1033
+ }>, Schema.Struct<{
1034
+ readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1035
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
1036
+ readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1011
1037
  readonly cancellationReason: Schema.optionalKey<Schema.String>;
1012
1038
  readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
1013
1039
  readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
@@ -1016,10 +1042,6 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
1016
1042
  readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
1017
1043
  readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1018
1044
  readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1019
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1020
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
1021
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1022
- }>, Schema.Struct<{
1023
1045
  readonly _tag: Schema.Literal<"Steering">;
1024
1046
  readonly commandId: Schema.brand<Schema.String, "CommandId">;
1025
1047
  readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
@@ -1040,26 +1062,18 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
1040
1062
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1041
1063
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1042
1064
  }>, Schema.Struct<{
1043
- readonly data: Schema.String;
1044
1065
  readonly type: Schema.Literal<"file">;
1045
1066
  readonly mediaType: Schema.String;
1046
1067
  readonly fileName: Schema.optional<Schema.String>;
1047
1068
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1048
1069
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1070
+ readonly data: Schema.String;
1049
1071
  }>, never, never>]>>]>;
1050
1072
  readonly runId: Schema.brand<Schema.String, "RunId">;
1051
- readonly cancellationReason: Schema.optionalKey<Schema.String>;
1052
- readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
1053
- readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1054
- readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1055
- readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
1056
- readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
1057
- readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1058
- readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1073
+ }>, Schema.Struct<{
1059
1074
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1060
1075
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
1061
1076
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1062
- }>, Schema.Struct<{
1063
1077
  readonly _tag: Schema.Literal<"Assistant">;
1064
1078
  readonly content: Schema.Struct<{
1065
1079
  readonly text: Schema.String;
@@ -1080,12 +1094,12 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
1080
1094
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1081
1095
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1082
1096
  }>, Schema.Struct<{
1083
- readonly data: Schema.String;
1084
1097
  readonly type: Schema.Literal<"file">;
1085
1098
  readonly mediaType: Schema.String;
1086
1099
  readonly fileName: Schema.optional<Schema.String>;
1087
1100
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1088
1101
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1102
+ readonly data: Schema.String;
1089
1103
  }>, never, never>, Schema.Struct<{
1090
1104
  readonly type: Schema.Literal<"reasoning">;
1091
1105
  readonly text: Schema.String;
@@ -1105,6 +1119,7 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
1105
1119
  readonly name: Schema.String;
1106
1120
  readonly isFailure: Schema.Boolean;
1107
1121
  readonly result: Schema.Unknown;
1122
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
1108
1123
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1109
1124
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1110
1125
  }>, Schema.Struct<{
@@ -1116,10 +1131,10 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
1116
1131
  }>]>>>;
1117
1132
  readonly runId: Schema.brand<Schema.String, "RunId">;
1118
1133
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
1134
+ }>, Schema.Struct<{
1119
1135
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1120
1136
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
1121
1137
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1122
- }>, Schema.Struct<{
1123
1138
  readonly _tag: Schema.Literal<"AssistantPartial">;
1124
1139
  readonly content: Schema.Struct<{
1125
1140
  readonly text: Schema.String;
@@ -1139,12 +1154,12 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
1139
1154
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1140
1155
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1141
1156
  }>, Schema.Struct<{
1142
- readonly data: Schema.String;
1143
1157
  readonly type: Schema.Literal<"file">;
1144
1158
  readonly mediaType: Schema.String;
1145
1159
  readonly fileName: Schema.optional<Schema.String>;
1146
1160
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1147
1161
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1162
+ readonly data: Schema.String;
1148
1163
  }>, never, never>, Schema.Struct<{
1149
1164
  readonly type: Schema.Literal<"reasoning">;
1150
1165
  readonly text: Schema.String;
@@ -1164,6 +1179,7 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
1164
1179
  readonly name: Schema.String;
1165
1180
  readonly isFailure: Schema.Boolean;
1166
1181
  readonly result: Schema.Unknown;
1182
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
1167
1183
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1168
1184
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1169
1185
  }>, Schema.Struct<{
@@ -1176,9 +1192,6 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
1176
1192
  readonly reason: Schema.String;
1177
1193
  readonly runId: Schema.brand<Schema.String, "RunId">;
1178
1194
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
1179
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1180
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
1181
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1182
1195
  }>]>;
1183
1196
  declare const RecoveryContinuationRecordSchema: Schema.Struct<{
1184
1197
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
@@ -1505,8 +1518,6 @@ declare const CommandQueuesSchema: Schema.Struct<{
1505
1518
  /** Structured-clone schema for the existing ReducedState query representation. */
1506
1519
  declare const ReducedStateSchema: Schema.Struct<{
1507
1520
  readonly runSchedulingRequest: Schema.optionalKey<Schema.Struct<{
1508
- readonly requestedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
1509
- readonly deliveredSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1510
1521
  readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
1511
1522
  readonly work: Schema.Union<readonly [Schema.TaggedStruct<"Command", {
1512
1523
  readonly commandId: Schema.brand<Schema.String, "CommandId">;
@@ -1515,6 +1526,8 @@ declare const ReducedStateSchema: Schema.Struct<{
1515
1526
  readonly interruptedRunId: Schema.brand<Schema.String, "RunId">;
1516
1527
  readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
1517
1528
  }>]>;
1529
+ readonly requestedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
1530
+ readonly deliveredSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1518
1531
  }>>;
1519
1532
  readonly modelSelection: Schema.optionalKey<Schema.Struct<{
1520
1533
  readonly provider: Schema.NonEmptyString;
@@ -1562,6 +1575,14 @@ declare const ReducedStateSchema: Schema.Struct<{
1562
1575
  }>]>>;
1563
1576
  }>>;
1564
1577
  readonly runs: Schema.$ReadonlyMap<Schema.brand<Schema.String, "RunId">, Schema.Struct<{
1578
+ readonly durationMs: Schema.optionalKey<Schema.Finite>;
1579
+ readonly startedAtMs: Schema.optionalKey<Schema.Int>;
1580
+ readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
1581
+ readonly modelSelection: Schema.optionalKey<Schema.Struct<{
1582
+ readonly provider: Schema.NonEmptyString;
1583
+ readonly modelId: Schema.NonEmptyString;
1584
+ readonly settings: Schema.optionalKey<Schema.Unknown>;
1585
+ }>>;
1565
1586
  readonly commandIds: Schema.$Array<Schema.brand<Schema.String, "CommandId">>;
1566
1587
  readonly runId: Schema.brand<Schema.String, "RunId">;
1567
1588
  readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
@@ -1598,14 +1619,6 @@ declare const ReducedStateSchema: Schema.Struct<{
1598
1619
  readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
1599
1620
  }>>;
1600
1621
  }>;
1601
- readonly durationMs: Schema.optionalKey<Schema.Finite>;
1602
- readonly startedAtMs: Schema.optionalKey<Schema.Int>;
1603
- readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
1604
- readonly modelSelection: Schema.optionalKey<Schema.Struct<{
1605
- readonly provider: Schema.NonEmptyString;
1606
- readonly modelId: Schema.NonEmptyString;
1607
- readonly settings: Schema.optionalKey<Schema.Unknown>;
1608
- }>>;
1609
1622
  }>>;
1610
1623
  readonly recoveryContinuations: Schema.$ReadonlyMap<Schema.brand<Schema.String, "RunId">, Schema.Struct<{
1611
1624
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
@@ -1614,6 +1627,9 @@ declare const ReducedStateSchema: Schema.Struct<{
1614
1627
  readonly replacementRunId: Schema.brand<Schema.String, "RunId">;
1615
1628
  }>>;
1616
1629
  readonly turns: Schema.$ReadonlyMap<Schema.brand<Schema.String, "TurnId">, Schema.Struct<{
1630
+ readonly durationMs: Schema.optionalKey<Schema.Finite>;
1631
+ readonly startedAtMs: Schema.optionalKey<Schema.Int>;
1632
+ readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
1617
1633
  readonly runId: Schema.brand<Schema.String, "RunId">;
1618
1634
  readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
1619
1635
  readonly terminal: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
@@ -1641,11 +1657,11 @@ declare const ReducedStateSchema: Schema.Struct<{
1641
1657
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1642
1658
  }>]>>;
1643
1659
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
1660
+ }>>;
1661
+ readonly inferences: Schema.$ReadonlyMap<Schema.brand<Schema.String, "InferenceId">, Schema.Struct<{
1644
1662
  readonly durationMs: Schema.optionalKey<Schema.Finite>;
1645
1663
  readonly startedAtMs: Schema.optionalKey<Schema.Int>;
1646
1664
  readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
1647
- }>>;
1648
- readonly inferences: Schema.$ReadonlyMap<Schema.brand<Schema.String, "InferenceId">, Schema.Struct<{
1649
1665
  readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
1650
1666
  readonly runId: Schema.brand<Schema.String, "RunId">;
1651
1667
  readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
@@ -1670,11 +1686,11 @@ declare const ReducedStateSchema: Schema.Struct<{
1670
1686
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1671
1687
  }>]>>;
1672
1688
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
1689
+ }>>;
1690
+ readonly toolCalls: Schema.$ReadonlyMap<Schema.brand<Schema.String, "ToolCallId">, Schema.toType<Schema.Struct<{
1673
1691
  readonly durationMs: Schema.optionalKey<Schema.Finite>;
1674
1692
  readonly startedAtMs: Schema.optionalKey<Schema.Int>;
1675
1693
  readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
1676
- }>>;
1677
- readonly toolCalls: Schema.$ReadonlyMap<Schema.brand<Schema.String, "ToolCallId">, Schema.toType<Schema.Struct<{
1678
1694
  readonly decision: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
1679
1695
  readonly _tag: Schema.Literal<"Created">;
1680
1696
  readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
@@ -1704,6 +1720,7 @@ declare const ReducedStateSchema: Schema.Struct<{
1704
1720
  readonly name: Schema.String;
1705
1721
  readonly isFailure: Schema.Boolean;
1706
1722
  readonly result: Schema.Unknown;
1723
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
1707
1724
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1708
1725
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1709
1726
  }>>;
@@ -1723,6 +1740,7 @@ declare const ReducedStateSchema: Schema.Struct<{
1723
1740
  readonly name: Schema.String;
1724
1741
  readonly isFailure: Schema.Boolean;
1725
1742
  readonly result: Schema.Unknown;
1743
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
1726
1744
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1727
1745
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1728
1746
  }>>;
@@ -1741,23 +1759,32 @@ declare const ReducedStateSchema: Schema.Struct<{
1741
1759
  readonly name: Schema.String;
1742
1760
  readonly isFailure: Schema.Boolean;
1743
1761
  readonly result: Schema.Unknown;
1762
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
1744
1763
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1745
1764
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1746
1765
  }>>;
1747
1766
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1748
1767
  }>]>>;
1749
1768
  readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
1750
- readonly durationMs: Schema.optionalKey<Schema.Finite>;
1751
- readonly startedAtMs: Schema.optionalKey<Schema.Int>;
1752
- readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
1753
1769
  }>>>;
1754
1770
  readonly messages: Schema.$ReadonlyMap<Schema.brand<Schema.String, "MessageId">, Schema.Union<readonly [Schema.Struct<{
1771
+ readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1772
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
1773
+ readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1755
1774
  readonly _tag: Schema.Literal<"System">;
1756
1775
  readonly content: Schema.NonEmptyString;
1776
+ }>, Schema.Struct<{
1757
1777
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1758
1778
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
1759
1779
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1760
- }>, Schema.Struct<{
1780
+ readonly cancellationReason: Schema.optionalKey<Schema.String>;
1781
+ readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
1782
+ readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1783
+ readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1784
+ readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
1785
+ readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
1786
+ readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1787
+ readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1761
1788
  readonly _tag: Schema.Literal<"User">;
1762
1789
  readonly commandId: Schema.brand<Schema.String, "CommandId">;
1763
1790
  readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
@@ -1780,6 +1807,10 @@ declare const ReducedStateSchema: Schema.Struct<{
1780
1807
  }>]>>]>>;
1781
1808
  readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
1782
1809
  readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
1810
+ }>, Schema.Struct<{
1811
+ readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1812
+ readonly messageId: Schema.brand<Schema.String, "MessageId">;
1813
+ readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1783
1814
  readonly cancellationReason: Schema.optionalKey<Schema.String>;
1784
1815
  readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
1785
1816
  readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
@@ -1788,10 +1819,6 @@ declare const ReducedStateSchema: Schema.Struct<{
1788
1819
  readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
1789
1820
  readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1790
1821
  readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1791
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1792
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
1793
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1794
- }>, Schema.Struct<{
1795
1822
  readonly _tag: Schema.Literal<"Steering">;
1796
1823
  readonly commandId: Schema.brand<Schema.String, "CommandId">;
1797
1824
  readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
@@ -1813,18 +1840,10 @@ declare const ReducedStateSchema: Schema.Struct<{
1813
1840
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1814
1841
  }>]>>]>>;
1815
1842
  readonly runId: Schema.brand<Schema.String, "RunId">;
1816
- readonly cancellationReason: Schema.optionalKey<Schema.String>;
1817
- readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
1818
- readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1819
- readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1820
- readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
1821
- readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
1822
- readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1823
- readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
1843
+ }>, Schema.Struct<{
1824
1844
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1825
1845
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
1826
1846
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1827
- }>, Schema.Struct<{
1828
1847
  readonly _tag: Schema.Literal<"Assistant">;
1829
1848
  readonly content: Schema.Struct<{
1830
1849
  readonly text: Schema.String;
@@ -1863,6 +1882,7 @@ declare const ReducedStateSchema: Schema.Struct<{
1863
1882
  readonly name: Schema.String;
1864
1883
  readonly isFailure: Schema.Boolean;
1865
1884
  readonly result: Schema.Unknown;
1885
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
1866
1886
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1867
1887
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1868
1888
  }>>, Schema.toType<Schema.Struct<{
@@ -1874,10 +1894,10 @@ declare const ReducedStateSchema: Schema.Struct<{
1874
1894
  }>>]>>>;
1875
1895
  readonly runId: Schema.brand<Schema.String, "RunId">;
1876
1896
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
1897
+ }>, Schema.Struct<{
1877
1898
  readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1878
1899
  readonly messageId: Schema.brand<Schema.String, "MessageId">;
1879
1900
  readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1880
- }>, Schema.Struct<{
1881
1901
  readonly _tag: Schema.Literal<"AssistantPartial">;
1882
1902
  readonly content: Schema.Struct<{
1883
1903
  readonly text: Schema.String;
@@ -1915,6 +1935,7 @@ declare const ReducedStateSchema: Schema.Struct<{
1915
1935
  readonly name: Schema.String;
1916
1936
  readonly isFailure: Schema.Boolean;
1917
1937
  readonly result: Schema.Unknown;
1938
+ readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
1918
1939
  readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
1919
1940
  readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
1920
1941
  }>>, Schema.toType<Schema.Struct<{
@@ -1927,9 +1948,6 @@ declare const ReducedStateSchema: Schema.Struct<{
1927
1948
  readonly reason: Schema.String;
1928
1949
  readonly runId: Schema.brand<Schema.String, "RunId">;
1929
1950
  readonly turnId: Schema.brand<Schema.String, "TurnId">;
1930
- readonly createdAtMs: Schema.optionalKey<Schema.Int>;
1931
- readonly messageId: Schema.brand<Schema.String, "MessageId">;
1932
- readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
1933
1951
  }>]>>;
1934
1952
  readonly stopRequests: Schema.$ReadonlyMap<Schema.brand<Schema.String, "CommandId">, Schema.Struct<{
1935
1953
  readonly commandId: Schema.brand<Schema.String, "CommandId">;
@@ -2164,4 +2182,4 @@ declare const ReducedStateSchema: Schema.Struct<{
2164
2182
  }>;
2165
2183
  //#endregion
2166
2184
  export { ToolTerminalSchema as A, RecoveryContinuationRecordSchema as C, StopRequestRecordSchema as D, RunTerminalSchema as E, TurnTerminalSchema as M, ToolCallRecordSchema as O, QueryUserMessageContent as S, RunRecordSchema as T, MessageRecordSchema as _, CompactionRecordSchema as a, PendingUserMessageSchema as b, InferenceRecordSchema as c, JsonCommandRecordSchema as d, JsonEDACommand as f, JsonUserMessagePart as g, JsonUserMessageContent as h, CommandTerminalSchema as i, TurnRecordSchema as j, ToolDecisionSchema as k, InferenceTerminalSchema as l, JsonPromptFilePart as m, CommandQueuesSchema as n, CompactionTerminalSchema as o, JsonMessageRecordSchema as p, CommandRecordSchema as r, ContextRecordSchema as s, ActiveCommandEvidenceSchema as t, JsonAssistantMessagePart as u, PendingCommandSchema as v, ReducedStateSchema as w, QueryMessageRecordSchema as x, PendingSteeringMessageSchema as y };
2167
- //# sourceMappingURL=reduced-state-schema-CgW0mzpS.d.ts.map
2185
+ //# sourceMappingURL=reduced-state-schema-jyZWJ0QS.d.ts.map