effect-durable-agent 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.
- package/dist/{commands-p8venTWs.d.ts → commands-3OD-p8dD.d.ts} +7 -8
- package/dist/{compaction-Db6eoLce.js → compaction-Bell28K8.js} +2 -4
- package/dist/{compaction-Db6eoLce.js.map → compaction-Bell28K8.js.map} +1 -1
- package/dist/{context-projection-Dr_kA41k.d.ts → context-projection-D_uRtK3r.d.ts} +15 -16
- package/dist/{core-C-6xHzRx.d.ts → core-BcimKMIv.d.ts} +1 -2
- package/dist/domain/command-queues.d.ts +3 -4
- package/dist/domain/command-queues.js.map +1 -1
- package/dist/domain/context-projection.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/message-transcript.js.map +1 -1
- package/dist/domain/model-usage.d.ts +1 -1
- package/dist/domain/reduced-state-schema.d.ts +2 -2
- package/dist/domain/reduced-state.d.ts +2 -2
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/domain/run-scheduling.js.map +1 -1
- package/dist/durable-DRY7AcsF.js.map +1 -1
- package/dist/{durable-DeQBR5wA.d.ts → durable-DoG_e4iL.d.ts} +1486 -1487
- package/dist/envelope-BCzKUq_z.js.map +1 -1
- package/dist/{envelope-VXFEC8zr.d.ts → envelope-Che6KatU.d.ts} +29 -30
- package/dist/event-factory-CKuWhjS4.js.map +1 -1
- package/dist/{events-D3OAPXgS.d.ts → events-sxIzJY26.d.ts} +124 -122
- package/dist/{id-generator--x6itQZ2.d.ts → id-generator-BKGoKjt-.d.ts} +2 -3
- package/dist/index.d.ts +7 -7
- package/dist/{keep-alive-Chl5SJxy.d.ts → keep-alive-_zFCUvt3.d.ts} +1 -2
- package/dist/{model-resolver-ci5D5WQv.d.ts → model-resolver-BHYVHsam.d.ts} +3 -3
- package/dist/{model-usage-CNcnhj72.d.ts → model-usage-0GeHwaaU.d.ts} +2 -3
- package/dist/reduced-state-DFIYylAq.js.map +1 -1
- package/dist/{reduced-state-xY-tYuGo.d.ts → reduced-state-DrSHn_47.d.ts} +8023 -8019
- package/dist/{reduced-state-schema-CgW0mzpS.d.ts → reduced-state-schema-CPEmuHLY.d.ts} +152 -152
- package/dist/{reducer-registry-bRbc4COf.d.ts → reducer-registry-C3ZidOI1.d.ts} +8 -7
- package/dist/{run-scheduling-wakeup-CY5hfgMR.d.ts → run-scheduling-wakeup-COUj3r_B.d.ts} +2 -3
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/compaction.js +1 -1
- package/dist/services/id-generator.d.ts +1 -1
- package/dist/services/id-generator.js +2 -1
- package/dist/services/id-generator.js.map +1 -1
- package/dist/services/keep-alive.d.ts +1 -1
- package/dist/services/keep-alive.js.map +1 -1
- package/dist/services/model-resolver.d.ts +1 -1
- package/dist/services/model-resolver.js.map +1 -1
- package/dist/services/prompt-projector.d.ts +1 -1
- package/dist/services/prompt-projector.js.map +1 -1
- package/dist/services/reducer-registry.d.ts +1 -1
- package/dist/services/reducer-registry.js.map +1 -1
- package/dist/services/run-scheduler.d.ts +1 -1
- package/dist/services/run-scheduler.js.map +1 -1
- package/dist/services/run-scheduling-wakeup.d.ts +1 -1
- package/dist/services/run-scheduling-wakeup.js.map +1 -1
- package/dist/services/runtime-layer.d.ts +11 -31
- package/dist/services/runtime-layer.js +3 -3
- package/dist/services/runtime-layer.js.map +1 -1
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +1 -1
- package/dist/services/runtime.js.map +1 -1
- package/dist/services/session-event-observer.d.ts +1 -1
- package/dist/services/session-event-observer.js.map +1 -1
- package/dist/services/session-query.d.ts +1 -1
- package/dist/services/session-query.js +5 -7
- package/dist/services/session-query.js.map +1 -1
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-state.js +1 -1
- package/dist/services/session-store.d.ts +1 -1
- package/dist/services/session-store.js +5 -3
- package/dist/services/session-store.js.map +1 -1
- package/dist/services/sink-checkpoint-store.d.ts +1 -1
- package/dist/services/sink-checkpoint-store.js +2 -1
- package/dist/services/sink-checkpoint-store.js.map +1 -1
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/sink-registry.js +1 -1
- package/dist/services/tool-registry.d.ts +1 -1
- package/dist/services/tool-registry.js.map +1 -1
- package/dist/services/tracing.d.ts +3 -3
- package/dist/services/tracing.js.map +1 -1
- package/dist/{session-event-observer-BWppl2Fr.d.ts → session-event-observer-BDwja1jX.d.ts} +3 -3
- package/dist/{session-state-8PJZvuR3.js → session-state-BBzzJrDC.js} +78 -50
- package/dist/{session-state-8PJZvuR3.js.map → session-state-BBzzJrDC.js.map} +1 -1
- package/dist/{session-store-CERvTeaV.d.ts → session-store-B_vh581h.d.ts} +9 -9
- package/dist/{sink-checkpoint-store-DTiswoqy.d.ts → sink-checkpoint-store-2SxoNMbI.d.ts} +3 -4
- package/dist/{sink-registry-B4yxTmlI.js → sink-registry-ogHu2Sw7.js} +2 -2
- package/dist/{sink-registry-B4yxTmlI.js.map → sink-registry-ogHu2Sw7.js.map} +1 -1
- package/dist/testkit/layers.d.ts +13 -13
- package/dist/testkit/layers.js +3 -3
- package/dist/testkit/layers.js.map +1 -1
- package/dist/{tool-registry-D4ALie3K.d.ts → tool-registry-DDxbmMpY.d.ts} +5 -5
- package/dist/{tracing-BXHAkxkx.d.ts → tracing-BwjbF285.d.ts} +1 -2
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/commands.js.map +1 -1
- package/dist/types/core.d.ts +1 -1
- package/dist/types/core.js.map +1 -1
- package/dist/types/events/durable.d.ts +1 -1
- package/dist/types/events.d.ts +4 -4
- package/dist/types/tracing.d.ts +1 -1
- package/dist/types/tracing.js.map +1 -1
- package/dist/websocket.d.ts +197 -187
- package/dist/websocket.js +4 -3
- package/dist/websocket.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as StopTurnCommand, l as SubmitMessageCommand, o as PromotePendingMessageCommand, s as ResumePendingMessagesCommand, t as CancelPendingMessageCommand } from "./commands-
|
|
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;
|
|
@@ -122,6 +122,11 @@ declare const JsonAssistantMessagePart: Schema.Union<readonly [Schema.Struct<{
|
|
|
122
122
|
* replaces canonical Prompt file data with its explicit JSON string projection.
|
|
123
123
|
*/
|
|
124
124
|
declare const JsonEDACommand: Schema.Union<readonly [Schema.Struct<{
|
|
125
|
+
readonly _tag: Schema.tag<"SubmitMessage">;
|
|
126
|
+
readonly commandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
127
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "CommandIdempotencyKey">>;
|
|
128
|
+
readonly disposition: Schema.Literals<readonly ["queue", "steer", "interrupt"]>;
|
|
129
|
+
readonly expectedPausedMessageIdsToCancel: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "MessageId">>>;
|
|
125
130
|
readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
126
131
|
readonly type: Schema.Literal<"text">;
|
|
127
132
|
readonly text: Schema.String;
|
|
@@ -140,18 +145,13 @@ declare const JsonEDACommand: Schema.Union<readonly [Schema.Struct<{
|
|
|
140
145
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
141
146
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
142
147
|
}>, Schema.Struct<{
|
|
143
|
-
readonly data: Schema.String;
|
|
144
148
|
readonly type: Schema.Literal<"file">;
|
|
145
149
|
readonly mediaType: Schema.String;
|
|
146
150
|
readonly fileName: Schema.optional<Schema.String>;
|
|
147
151
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
148
152
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
153
|
+
readonly data: Schema.String;
|
|
149
154
|
}>, 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
155
|
}>, typeof StopTurnCommand, typeof CancelPendingMessageCommand, typeof PromotePendingMessageCommand, typeof ResumePendingMessagesCommand]>;
|
|
156
156
|
declare const CommandTerminalSchema: Schema.Union<readonly [Schema.Struct<{
|
|
157
157
|
readonly _tag: Schema.Literal<"Completed">;
|
|
@@ -269,38 +269,6 @@ declare const CommandRecordSchema: Schema.Struct<{
|
|
|
269
269
|
}>]>>;
|
|
270
270
|
}>;
|
|
271
271
|
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
272
|
readonly admittedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
305
273
|
readonly admissionTrace: Schema.optionalKey<Schema.Struct<{
|
|
306
274
|
readonly span: Schema.Struct<{
|
|
@@ -337,8 +305,48 @@ declare const JsonCommandRecordSchema: Schema.Struct<{
|
|
|
337
305
|
readonly reason: Schema.String;
|
|
338
306
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
339
307
|
}>]>>;
|
|
308
|
+
readonly command: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
309
|
+
readonly _tag: Schema.tag<"SubmitMessage">;
|
|
310
|
+
readonly commandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
311
|
+
readonly idempotencyKey: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "CommandIdempotencyKey">>;
|
|
312
|
+
readonly disposition: Schema.Literals<readonly ["queue", "steer", "interrupt"]>;
|
|
313
|
+
readonly expectedPausedMessageIdsToCancel: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "MessageId">>>;
|
|
314
|
+
readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
315
|
+
readonly type: Schema.Literal<"text">;
|
|
316
|
+
readonly text: Schema.String;
|
|
317
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
318
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
319
|
+
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
320
|
+
readonly type: Schema.Literal<"text">;
|
|
321
|
+
readonly text: Schema.String;
|
|
322
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
323
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
324
|
+
}>, Schema.decodeTo<Schema.Struct<{
|
|
325
|
+
readonly type: Schema.Literal<"file">;
|
|
326
|
+
readonly mediaType: Schema.String;
|
|
327
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
328
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
329
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
330
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
331
|
+
}>, Schema.Struct<{
|
|
332
|
+
readonly type: Schema.Literal<"file">;
|
|
333
|
+
readonly mediaType: Schema.String;
|
|
334
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
335
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
336
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
337
|
+
readonly data: Schema.String;
|
|
338
|
+
}>, never, never>]>>]>;
|
|
339
|
+
}>, typeof StopTurnCommand, typeof CancelPendingMessageCommand, typeof PromotePendingMessageCommand, typeof ResumePendingMessagesCommand]>>;
|
|
340
340
|
}>;
|
|
341
341
|
declare const RunRecordSchema: Schema.Struct<{
|
|
342
|
+
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
343
|
+
readonly startedAtMs: Schema.optionalKey<Schema.Int>;
|
|
344
|
+
readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
|
|
345
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
346
|
+
readonly provider: Schema.NonEmptyString;
|
|
347
|
+
readonly modelId: Schema.NonEmptyString;
|
|
348
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
349
|
+
}>>;
|
|
342
350
|
readonly commandIds: Schema.$Array<Schema.brand<Schema.String, "CommandId">>;
|
|
343
351
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
344
352
|
readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
@@ -375,16 +383,11 @@ declare const RunRecordSchema: Schema.Struct<{
|
|
|
375
383
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
376
384
|
}>>;
|
|
377
385
|
}>;
|
|
386
|
+
}>;
|
|
387
|
+
declare const TurnRecordSchema: Schema.Struct<{
|
|
378
388
|
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
379
389
|
readonly startedAtMs: Schema.optionalKey<Schema.Int>;
|
|
380
390
|
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
391
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
389
392
|
readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
390
393
|
readonly terminal: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -412,11 +415,11 @@ declare const TurnRecordSchema: Schema.Struct<{
|
|
|
412
415
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
413
416
|
}>]>>;
|
|
414
417
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
418
|
+
}>;
|
|
419
|
+
declare const InferenceRecordSchema: Schema.Struct<{
|
|
415
420
|
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
416
421
|
readonly startedAtMs: Schema.optionalKey<Schema.Int>;
|
|
417
422
|
readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
|
|
418
|
-
}>;
|
|
419
|
-
declare const InferenceRecordSchema: Schema.Struct<{
|
|
420
423
|
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
421
424
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
422
425
|
readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
@@ -441,9 +444,6 @@ declare const InferenceRecordSchema: Schema.Struct<{
|
|
|
441
444
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
442
445
|
}>]>>;
|
|
443
446
|
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
447
|
}>;
|
|
448
448
|
declare const ToolDecisionSchema: Schema.Union<readonly [Schema.Struct<{
|
|
449
449
|
readonly _tag: Schema.Literal<"Created">;
|
|
@@ -516,6 +516,9 @@ declare const ToolTerminalSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
516
516
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
517
517
|
}>]>;
|
|
518
518
|
declare const ToolCallRecordSchema: Schema.Struct<{
|
|
519
|
+
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
520
|
+
readonly startedAtMs: Schema.optionalKey<Schema.Int>;
|
|
521
|
+
readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
|
|
519
522
|
readonly decision: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
520
523
|
readonly _tag: Schema.Literal<"Created">;
|
|
521
524
|
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
@@ -588,17 +591,25 @@ declare const ToolCallRecordSchema: Schema.Struct<{
|
|
|
588
591
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
589
592
|
}>]>>;
|
|
590
593
|
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
594
|
}>;
|
|
595
595
|
declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
596
|
+
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
597
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
598
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
596
599
|
readonly _tag: Schema.Literal<"System">;
|
|
597
600
|
readonly content: Schema.NonEmptyString;
|
|
601
|
+
}>, Schema.Struct<{
|
|
598
602
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
599
603
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
600
604
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
601
|
-
|
|
605
|
+
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
606
|
+
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
607
|
+
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
608
|
+
readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
609
|
+
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
610
|
+
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
611
|
+
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
612
|
+
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
602
613
|
readonly _tag: Schema.Literal<"User">;
|
|
603
614
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
604
615
|
readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
@@ -621,6 +632,10 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
621
632
|
}>]>>]>;
|
|
622
633
|
readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
623
634
|
readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
635
|
+
}>, Schema.Struct<{
|
|
636
|
+
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
637
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
638
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
624
639
|
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
625
640
|
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
626
641
|
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
@@ -629,10 +644,6 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
629
644
|
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
630
645
|
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
631
646
|
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
647
|
readonly _tag: Schema.Literal<"Steering">;
|
|
637
648
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
638
649
|
readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
@@ -654,18 +665,10 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
654
665
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
655
666
|
}>]>>]>;
|
|
656
667
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
657
|
-
|
|
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">>;
|
|
668
|
+
}>, Schema.Struct<{
|
|
665
669
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
666
670
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
667
671
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
668
|
-
}>, Schema.Struct<{
|
|
669
672
|
readonly _tag: Schema.Literal<"Assistant">;
|
|
670
673
|
readonly content: Schema.Struct<{
|
|
671
674
|
readonly text: Schema.String;
|
|
@@ -715,10 +718,10 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
715
718
|
}>]>>>;
|
|
716
719
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
717
720
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
721
|
+
}>, Schema.Struct<{
|
|
718
722
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
719
723
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
720
724
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
721
|
-
}>, Schema.Struct<{
|
|
722
725
|
readonly _tag: Schema.Literal<"AssistantPartial">;
|
|
723
726
|
readonly content: Schema.Struct<{
|
|
724
727
|
readonly text: Schema.String;
|
|
@@ -768,9 +771,6 @@ declare const MessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
768
771
|
readonly reason: Schema.String;
|
|
769
772
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
770
773
|
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
774
|
}>]>;
|
|
775
775
|
/** Lossless structured-clone query content; admission string transforms do not apply. */
|
|
776
776
|
declare const QueryUserMessageContent: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
@@ -793,12 +793,23 @@ declare const QueryUserMessageContent: Schema.toType<Schema.Union<readonly [Sche
|
|
|
793
793
|
}>]>>]>>;
|
|
794
794
|
/** Message query records preserve Prompt-part arrays and their structured-clone fields. */
|
|
795
795
|
declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
796
|
+
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
797
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
798
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
796
799
|
readonly _tag: Schema.Literal<"System">;
|
|
797
800
|
readonly content: Schema.NonEmptyString;
|
|
801
|
+
}>, Schema.Struct<{
|
|
798
802
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
799
803
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
800
804
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
801
|
-
|
|
805
|
+
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
806
|
+
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
807
|
+
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
808
|
+
readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
809
|
+
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
810
|
+
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
811
|
+
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
812
|
+
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
802
813
|
readonly _tag: Schema.Literal<"User">;
|
|
803
814
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
804
815
|
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
@@ -821,6 +832,10 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
821
832
|
}>]>>]>>;
|
|
822
833
|
readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
823
834
|
readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
835
|
+
}>, Schema.Struct<{
|
|
836
|
+
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
837
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
838
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
824
839
|
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
825
840
|
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
826
841
|
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
@@ -829,10 +844,6 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
829
844
|
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
830
845
|
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
831
846
|
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
847
|
readonly _tag: Schema.Literal<"Steering">;
|
|
837
848
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
838
849
|
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
@@ -854,18 +865,10 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
854
865
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
855
866
|
}>]>>]>>;
|
|
856
867
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
857
|
-
|
|
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">>;
|
|
868
|
+
}>, Schema.Struct<{
|
|
865
869
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
866
870
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
867
871
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
868
|
-
}>, Schema.Struct<{
|
|
869
872
|
readonly _tag: Schema.Literal<"Assistant">;
|
|
870
873
|
readonly content: Schema.Struct<{
|
|
871
874
|
readonly text: Schema.String;
|
|
@@ -915,10 +918,10 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
915
918
|
}>>]>>>;
|
|
916
919
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
917
920
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
921
|
+
}>, Schema.Struct<{
|
|
918
922
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
919
923
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
920
924
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
921
|
-
}>, Schema.Struct<{
|
|
922
925
|
readonly _tag: Schema.Literal<"AssistantPartial">;
|
|
923
926
|
readonly content: Schema.Struct<{
|
|
924
927
|
readonly text: Schema.String;
|
|
@@ -968,17 +971,25 @@ declare const QueryMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
968
971
|
readonly reason: Schema.String;
|
|
969
972
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
970
973
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
974
|
+
}>]>;
|
|
975
|
+
declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
971
976
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
972
977
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
973
978
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
974
|
-
}>]>;
|
|
975
|
-
declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
976
979
|
readonly _tag: Schema.Literal<"System">;
|
|
977
980
|
readonly content: Schema.NonEmptyString;
|
|
981
|
+
}>, Schema.Struct<{
|
|
978
982
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
979
983
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
980
984
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
981
|
-
|
|
985
|
+
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
986
|
+
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
987
|
+
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
988
|
+
readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
989
|
+
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
990
|
+
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
991
|
+
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
992
|
+
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
982
993
|
readonly _tag: Schema.Literal<"User">;
|
|
983
994
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
984
995
|
readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
@@ -999,15 +1010,19 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
999
1010
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1000
1011
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1001
1012
|
}>, Schema.Struct<{
|
|
1002
|
-
readonly data: Schema.String;
|
|
1003
1013
|
readonly type: Schema.Literal<"file">;
|
|
1004
1014
|
readonly mediaType: Schema.String;
|
|
1005
1015
|
readonly fileName: Schema.optional<Schema.String>;
|
|
1006
1016
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1007
1017
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1018
|
+
readonly data: Schema.String;
|
|
1008
1019
|
}>, never, never>]>>]>;
|
|
1009
1020
|
readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
1010
1021
|
readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
1022
|
+
}>, Schema.Struct<{
|
|
1023
|
+
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
1024
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1025
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1011
1026
|
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
1012
1027
|
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
1013
1028
|
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
@@ -1016,10 +1031,6 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
1016
1031
|
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
1017
1032
|
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
1018
1033
|
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
1034
|
readonly _tag: Schema.Literal<"Steering">;
|
|
1024
1035
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
1025
1036
|
readonly content: Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
@@ -1040,26 +1051,18 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
1040
1051
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1041
1052
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1042
1053
|
}>, Schema.Struct<{
|
|
1043
|
-
readonly data: Schema.String;
|
|
1044
1054
|
readonly type: Schema.Literal<"file">;
|
|
1045
1055
|
readonly mediaType: Schema.String;
|
|
1046
1056
|
readonly fileName: Schema.optional<Schema.String>;
|
|
1047
1057
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1048
1058
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1059
|
+
readonly data: Schema.String;
|
|
1049
1060
|
}>, never, never>]>>]>;
|
|
1050
1061
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1051
|
-
|
|
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">>;
|
|
1062
|
+
}>, Schema.Struct<{
|
|
1059
1063
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
1060
1064
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1061
1065
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1062
|
-
}>, Schema.Struct<{
|
|
1063
1066
|
readonly _tag: Schema.Literal<"Assistant">;
|
|
1064
1067
|
readonly content: Schema.Struct<{
|
|
1065
1068
|
readonly text: Schema.String;
|
|
@@ -1080,12 +1083,12 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
1080
1083
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1081
1084
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1082
1085
|
}>, Schema.Struct<{
|
|
1083
|
-
readonly data: Schema.String;
|
|
1084
1086
|
readonly type: Schema.Literal<"file">;
|
|
1085
1087
|
readonly mediaType: Schema.String;
|
|
1086
1088
|
readonly fileName: Schema.optional<Schema.String>;
|
|
1087
1089
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1088
1090
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1091
|
+
readonly data: Schema.String;
|
|
1089
1092
|
}>, never, never>, Schema.Struct<{
|
|
1090
1093
|
readonly type: Schema.Literal<"reasoning">;
|
|
1091
1094
|
readonly text: Schema.String;
|
|
@@ -1116,10 +1119,10 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
1116
1119
|
}>]>>>;
|
|
1117
1120
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1118
1121
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1122
|
+
}>, Schema.Struct<{
|
|
1119
1123
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
1120
1124
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1121
1125
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1122
|
-
}>, Schema.Struct<{
|
|
1123
1126
|
readonly _tag: Schema.Literal<"AssistantPartial">;
|
|
1124
1127
|
readonly content: Schema.Struct<{
|
|
1125
1128
|
readonly text: Schema.String;
|
|
@@ -1139,12 +1142,12 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
1139
1142
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1140
1143
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1141
1144
|
}>, Schema.Struct<{
|
|
1142
|
-
readonly data: Schema.String;
|
|
1143
1145
|
readonly type: Schema.Literal<"file">;
|
|
1144
1146
|
readonly mediaType: Schema.String;
|
|
1145
1147
|
readonly fileName: Schema.optional<Schema.String>;
|
|
1146
1148
|
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
1147
1149
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1150
|
+
readonly data: Schema.String;
|
|
1148
1151
|
}>, never, never>, Schema.Struct<{
|
|
1149
1152
|
readonly type: Schema.Literal<"reasoning">;
|
|
1150
1153
|
readonly text: Schema.String;
|
|
@@ -1176,9 +1179,6 @@ declare const JsonMessageRecordSchema: Schema.Union<readonly [Schema.Struct<{
|
|
|
1176
1179
|
readonly reason: Schema.String;
|
|
1177
1180
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1178
1181
|
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
1182
|
}>]>;
|
|
1183
1183
|
declare const RecoveryContinuationRecordSchema: Schema.Struct<{
|
|
1184
1184
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
@@ -1505,8 +1505,6 @@ declare const CommandQueuesSchema: Schema.Struct<{
|
|
|
1505
1505
|
/** Structured-clone schema for the existing ReducedState query representation. */
|
|
1506
1506
|
declare const ReducedStateSchema: Schema.Struct<{
|
|
1507
1507
|
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
1508
|
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
1511
1509
|
readonly work: Schema.Union<readonly [Schema.TaggedStruct<"Command", {
|
|
1512
1510
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
@@ -1515,6 +1513,8 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1515
1513
|
readonly interruptedRunId: Schema.brand<Schema.String, "RunId">;
|
|
1516
1514
|
readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
1517
1515
|
}>]>;
|
|
1516
|
+
readonly requestedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1517
|
+
readonly deliveredSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
1518
1518
|
}>>;
|
|
1519
1519
|
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
1520
1520
|
readonly provider: Schema.NonEmptyString;
|
|
@@ -1562,6 +1562,14 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1562
1562
|
}>]>>;
|
|
1563
1563
|
}>>;
|
|
1564
1564
|
readonly runs: Schema.$ReadonlyMap<Schema.brand<Schema.String, "RunId">, Schema.Struct<{
|
|
1565
|
+
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
1566
|
+
readonly startedAtMs: Schema.optionalKey<Schema.Int>;
|
|
1567
|
+
readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
|
|
1568
|
+
readonly modelSelection: Schema.optionalKey<Schema.Struct<{
|
|
1569
|
+
readonly provider: Schema.NonEmptyString;
|
|
1570
|
+
readonly modelId: Schema.NonEmptyString;
|
|
1571
|
+
readonly settings: Schema.optionalKey<Schema.Unknown>;
|
|
1572
|
+
}>>;
|
|
1565
1573
|
readonly commandIds: Schema.$Array<Schema.brand<Schema.String, "CommandId">>;
|
|
1566
1574
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1567
1575
|
readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
@@ -1598,14 +1606,6 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1598
1606
|
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
1599
1607
|
}>>;
|
|
1600
1608
|
}>;
|
|
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
1609
|
}>>;
|
|
1610
1610
|
readonly recoveryContinuations: Schema.$ReadonlyMap<Schema.brand<Schema.String, "RunId">, Schema.Struct<{
|
|
1611
1611
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
@@ -1614,6 +1614,9 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1614
1614
|
readonly replacementRunId: Schema.brand<Schema.String, "RunId">;
|
|
1615
1615
|
}>>;
|
|
1616
1616
|
readonly turns: Schema.$ReadonlyMap<Schema.brand<Schema.String, "TurnId">, Schema.Struct<{
|
|
1617
|
+
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
1618
|
+
readonly startedAtMs: Schema.optionalKey<Schema.Int>;
|
|
1619
|
+
readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
|
|
1617
1620
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1618
1621
|
readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1619
1622
|
readonly terminal: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1641,11 +1644,11 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1641
1644
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1642
1645
|
}>]>>;
|
|
1643
1646
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1647
|
+
}>>;
|
|
1648
|
+
readonly inferences: Schema.$ReadonlyMap<Schema.brand<Schema.String, "InferenceId">, Schema.Struct<{
|
|
1644
1649
|
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
1645
1650
|
readonly startedAtMs: Schema.optionalKey<Schema.Int>;
|
|
1646
1651
|
readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
|
|
1647
|
-
}>>;
|
|
1648
|
-
readonly inferences: Schema.$ReadonlyMap<Schema.brand<Schema.String, "InferenceId">, Schema.Struct<{
|
|
1649
1652
|
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
1650
1653
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1651
1654
|
readonly startedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
@@ -1670,11 +1673,11 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1670
1673
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1671
1674
|
}>]>>;
|
|
1672
1675
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1676
|
+
}>>;
|
|
1677
|
+
readonly toolCalls: Schema.$ReadonlyMap<Schema.brand<Schema.String, "ToolCallId">, Schema.toType<Schema.Struct<{
|
|
1673
1678
|
readonly durationMs: Schema.optionalKey<Schema.Finite>;
|
|
1674
1679
|
readonly startedAtMs: Schema.optionalKey<Schema.Int>;
|
|
1675
1680
|
readonly terminalAtMs: Schema.optionalKey<Schema.Int>;
|
|
1676
|
-
}>>;
|
|
1677
|
-
readonly toolCalls: Schema.$ReadonlyMap<Schema.brand<Schema.String, "ToolCallId">, Schema.toType<Schema.Struct<{
|
|
1678
1681
|
readonly decision: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
1679
1682
|
readonly _tag: Schema.Literal<"Created">;
|
|
1680
1683
|
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
@@ -1747,17 +1750,25 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1747
1750
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1748
1751
|
}>]>>;
|
|
1749
1752
|
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
1753
|
}>>>;
|
|
1754
1754
|
readonly messages: Schema.$ReadonlyMap<Schema.brand<Schema.String, "MessageId">, Schema.Union<readonly [Schema.Struct<{
|
|
1755
|
+
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
1756
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1757
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1755
1758
|
readonly _tag: Schema.Literal<"System">;
|
|
1756
1759
|
readonly content: Schema.NonEmptyString;
|
|
1760
|
+
}>, Schema.Struct<{
|
|
1757
1761
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
1758
1762
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1759
1763
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1760
|
-
|
|
1764
|
+
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
1765
|
+
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
1766
|
+
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
1767
|
+
readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
1768
|
+
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
1769
|
+
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
1770
|
+
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
1771
|
+
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
1761
1772
|
readonly _tag: Schema.Literal<"User">;
|
|
1762
1773
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
1763
1774
|
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
@@ -1780,6 +1791,10 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1780
1791
|
}>]>>]>>;
|
|
1781
1792
|
readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
1782
1793
|
readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
1794
|
+
}>, Schema.Struct<{
|
|
1795
|
+
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
1796
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1797
|
+
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1783
1798
|
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
1784
1799
|
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
1785
1800
|
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
@@ -1788,10 +1803,6 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1788
1803
|
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
1789
1804
|
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
1790
1805
|
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
1806
|
readonly _tag: Schema.Literal<"Steering">;
|
|
1796
1807
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
1797
1808
|
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
@@ -1813,18 +1824,10 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1813
1824
|
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
1814
1825
|
}>]>>]>>;
|
|
1815
1826
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1816
|
-
|
|
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">>;
|
|
1827
|
+
}>, Schema.Struct<{
|
|
1824
1828
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
1825
1829
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1826
1830
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1827
|
-
}>, Schema.Struct<{
|
|
1828
1831
|
readonly _tag: Schema.Literal<"Assistant">;
|
|
1829
1832
|
readonly content: Schema.Struct<{
|
|
1830
1833
|
readonly text: Schema.String;
|
|
@@ -1874,10 +1877,10 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1874
1877
|
}>>]>>>;
|
|
1875
1878
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1876
1879
|
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
1880
|
+
}>, Schema.Struct<{
|
|
1877
1881
|
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
1878
1882
|
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
1879
1883
|
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
1880
|
-
}>, Schema.Struct<{
|
|
1881
1884
|
readonly _tag: Schema.Literal<"AssistantPartial">;
|
|
1882
1885
|
readonly content: Schema.Struct<{
|
|
1883
1886
|
readonly text: Schema.String;
|
|
@@ -1927,9 +1930,6 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
1927
1930
|
readonly reason: Schema.String;
|
|
1928
1931
|
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
1929
1932
|
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
1933
|
}>]>>;
|
|
1934
1934
|
readonly stopRequests: Schema.$ReadonlyMap<Schema.brand<Schema.String, "CommandId">, Schema.Struct<{
|
|
1935
1935
|
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
@@ -2164,4 +2164,4 @@ declare const ReducedStateSchema: Schema.Struct<{
|
|
|
2164
2164
|
}>;
|
|
2165
2165
|
//#endregion
|
|
2166
2166
|
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-
|
|
2167
|
+
//# sourceMappingURL=reduced-state-schema-CPEmuHLY.d.ts.map
|