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

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 (50) hide show
  1. package/dist/{context-projection-n6Rdup0N.d.ts → context-projection-Dr_kA41k.d.ts} +4 -4
  2. package/dist/domain/command-queues.d.ts +82 -2
  3. package/dist/domain/context-projection.d.ts +1 -1
  4. package/dist/domain/message-transcript.d.ts +1 -1
  5. package/dist/domain/reduced-state-schema.d.ts +2 -991
  6. package/dist/domain/reduced-state-schema.js +114 -2
  7. package/dist/domain/reduced-state-schema.js.map +1 -1
  8. package/dist/domain/reduced-state.d.ts +1 -1
  9. package/dist/domain/run-scheduling.d.ts +1 -1
  10. package/dist/{durable-Ceu9SC2D.d.ts → durable-DeQBR5wA.d.ts} +2 -2
  11. package/dist/index.d.ts +4 -4
  12. package/dist/index.js +2 -2
  13. package/dist/reduced-state-DFIYylAq.js.map +1 -1
  14. package/dist/reduced-state-schema-CgW0mzpS.d.ts +2167 -0
  15. package/dist/{index-DWC70Fsi.d.ts → reduced-state-xY-tYuGo.d.ts} +4155 -1279
  16. package/dist/{reducer-registry-nO4biZlg.d.ts → reducer-registry-bRbc4COf.d.ts} +3 -3
  17. package/dist/{run-scheduling-wakeup-CXT5_CkI.d.ts → run-scheduling-wakeup-CY5hfgMR.d.ts} +2 -2
  18. package/dist/services/compaction.d.ts +1 -1
  19. package/dist/services/prompt-projector.d.ts +1 -1
  20. package/dist/services/reducer-registry.d.ts +1 -1
  21. package/dist/services/run-scheduler.d.ts +1 -2
  22. package/dist/services/run-scheduling-wakeup.d.ts +1 -1
  23. package/dist/services/runtime-layer.d.ts +6 -10
  24. package/dist/services/runtime.d.ts +1 -1
  25. package/dist/services/runtime.js +11 -2
  26. package/dist/services/runtime.js.map +1 -1
  27. package/dist/services/session-query.d.ts +2 -2
  28. package/dist/services/session-query.js +19 -1
  29. package/dist/services/session-query.js.map +1 -1
  30. package/dist/services/session-state.d.ts +1 -1
  31. package/dist/services/session-store.d.ts +1 -1
  32. package/dist/services/sink-checkpoint-store.d.ts +1 -1
  33. package/dist/services/sink-registry.d.ts +1 -1
  34. package/dist/services/tool-registry.d.ts +1 -1
  35. package/dist/services/tracing.d.ts +1 -1
  36. package/dist/{session-store-DBa-TOVH.d.ts → session-store-CERvTeaV.d.ts} +4 -4
  37. package/dist/{sink-checkpoint-store-BZGfJLve.d.ts → sink-checkpoint-store-DTiswoqy.d.ts} +2 -2
  38. package/dist/testkit/layers.d.ts +7 -12
  39. package/dist/{tool-registry-NOP9aTHT.d.ts → tool-registry-D4ALie3K.d.ts} +2 -2
  40. package/dist/types/events/durable.d.ts +1 -1
  41. package/dist/types/events.d.ts +2 -2
  42. package/dist/websocket.d.ts +1 -1
  43. package/package.json +1 -1
  44. package/dist/command-queues-w9WUKTpM.d.ts +0 -556
  45. package/dist/compaction-DhIJ-sAH.d.ts +0 -165
  46. package/dist/event-factory-CHP1-DAF.d.ts +0 -91
  47. package/dist/message-transcript-BfuGCZhP.d.ts +0 -32
  48. package/dist/prompt-projector-DvNHsoEN.d.ts +0 -39
  49. package/dist/run-scheduler-DFBqIRzF.d.ts +0 -43
  50. package/dist/sink-registry-tpmJ-Dhf.d.ts +0 -148
@@ -1,4 +1,5 @@
1
- import { CommandId, InferenceId, MessageId, RunId, SequenceNumber, ToolCallId, TurnId } from "../types/core.js";
1
+ import { CommandId, CompactionId, ContextVersion, InferenceId, MessageId, RunId, SequenceNumber, SummaryId, ToolCallId, TurnId } from "../types/core.js";
2
+ import { RunSchedulingRequestRecord } from "./run-scheduling.js";
2
3
  import { EDAEventTrace, EDARunTrace } from "../types/tracing.js";
3
4
  import { _ as UsagePayload, f as ProviderPartId, h as ToolName, l as ModelSelectionPayload, m as SystemPromptText, s as FailurePayload } from "../envelope-BCzKUq_z.js";
4
5
  import { TokenConsumptionState, TokenUsageTotals } from "./model-usage.js";
@@ -271,12 +272,123 @@ const MessageRecordSchema = messageRecordSchema(UserMessageContent, Schema.Union
271
272
  PromptToolResultPart,
272
273
  PromptToolApprovalRequestPart
273
274
  ]));
275
+ /** Lossless structured-clone query content; admission string transforms do not apply. */
276
+ const QueryUserMessageContent = Schema.toType(UserMessageContent);
277
+ /** Message query records preserve Prompt-part arrays and their structured-clone fields. */
278
+ const QueryMessageRecordSchema = messageRecordSchema(QueryUserMessageContent, Schema.Union([
279
+ Schema.toType(PromptTextPart),
280
+ Schema.toType(PromptFilePart),
281
+ Schema.toType(PromptReasoningPart),
282
+ Schema.toType(PromptToolCallPart),
283
+ Schema.toType(PromptToolResultPart),
284
+ Schema.toType(PromptToolApprovalRequestPart)
285
+ ]));
274
286
  const JsonMessageRecordSchema = messageRecordSchema(JsonUserMessageContent, JsonAssistantMessagePart);
275
287
  const RecoveryContinuationRecordSchema = Schema.Struct({
276
288
  ...RecoveryContinuation.fields,
277
289
  seq: SequenceNumber
278
290
  });
291
+ /** Structured-clone schema for the existing StopRequestRecord query representation. */
292
+ const StopRequestRecordSchema = Schema.Struct({
293
+ commandId: CommandId,
294
+ requestedSeq: SequenceNumber,
295
+ requestedRunId: Schema.optionalKey(RunId),
296
+ requestedTurnId: Schema.optionalKey(TurnId),
297
+ appliedSeq: Schema.optionalKey(SequenceNumber),
298
+ appliedRunId: Schema.optionalKey(RunId),
299
+ appliedTurnId: Schema.optionalKey(TurnId),
300
+ appliedInferenceId: Schema.optionalKey(InferenceId)
301
+ });
302
+ /** Structured-clone schema for the existing CompactionTerminal query representation. */
303
+ const CompactionTerminalSchema = Schema.Union([Schema.Struct({
304
+ _tag: Schema.Literal("Completed"),
305
+ seq: SequenceNumber
306
+ }), Schema.Struct({
307
+ _tag: Schema.Literal("Failed"),
308
+ seq: SequenceNumber,
309
+ error: FailurePayload
310
+ })]);
311
+ /** Structured-clone schema for the existing CompactionRecord query representation. */
312
+ const CompactionRecordSchema = Schema.Struct({
313
+ compactionId: CompactionId,
314
+ requestedSeq: Schema.optionalKey(SequenceNumber),
315
+ startedSeq: Schema.optionalKey(SequenceNumber),
316
+ summaryCreatedSeq: Schema.optionalKey(SequenceNumber),
317
+ summaryId: Schema.optionalKey(SummaryId),
318
+ sourceFromSeq: Schema.optionalKey(SequenceNumber),
319
+ sourceToSeq: Schema.optionalKey(SequenceNumber),
320
+ rebasedSeq: Schema.optionalKey(SequenceNumber),
321
+ contextVersion: Schema.optionalKey(ContextVersion),
322
+ terminal: Schema.optionalKey(CompactionTerminalSchema)
323
+ });
324
+ /** Structured-clone schema for the existing ContextRecord query representation. */
325
+ const ContextRecordSchema = Schema.Struct({
326
+ version: ContextVersion,
327
+ currentSummaryId: Schema.optionalKey(SummaryId)
328
+ });
329
+ /** Structured-clone schema for the existing ActiveCommandEvidence query representation. */
330
+ const ActiveCommandEvidenceSchema = Schema.Struct({
331
+ commandId: CommandId,
332
+ runId: Schema.optionalKey(RunId)
333
+ });
334
+ /** Structured-clone schema for the existing PendingCommand query representation. */
335
+ const PendingCommandSchema = Schema.Struct({
336
+ commandId: CommandId,
337
+ command: EDACommand,
338
+ admittedSeq: SequenceNumber,
339
+ admissionTrace: Schema.optionalKey(EDAEventTrace)
340
+ });
341
+ /** Structured-clone schema for the existing PendingSteeringMessage query representation. */
342
+ const PendingSteeringMessageSchema = Schema.Struct({
343
+ messageId: MessageId,
344
+ commandId: CommandId,
345
+ runId: RunId,
346
+ content: QueryUserMessageContent,
347
+ queuedSeq: SequenceNumber,
348
+ consumedSeq: Schema.optionalKey(SequenceNumber),
349
+ consumedTurnId: Schema.optionalKey(TurnId)
350
+ });
351
+ /** Structured-clone schema for the existing PendingUserMessage query representation. */
352
+ const PendingUserMessageSchema = Schema.Struct({
353
+ messageId: MessageId,
354
+ commandId: CommandId,
355
+ content: QueryUserMessageContent,
356
+ submittedSeq: SequenceNumber,
357
+ effectiveSeq: SequenceNumber,
358
+ disposition: Schema.Union([Schema.Literal("queue"), Schema.Literal("steer")]),
359
+ targetRunId: Schema.optionalKey(RunId),
360
+ pausedByCommandId: Schema.optionalKey(CommandId)
361
+ });
362
+ /** Structured-clone schema for the existing CommandQueues query representation. */
363
+ const CommandQueuesSchema = Schema.Struct({
364
+ active: Schema.optional(ActiveCommandEvidenceSchema),
365
+ pendingCommands: Schema.Array(PendingCommandSchema),
366
+ queuedCommands: Schema.Array(PendingCommandSchema),
367
+ activeControlCommands: Schema.Array(PendingCommandSchema),
368
+ steeringByRun: Schema.ReadonlyMap(RunId, Schema.Array(PendingSteeringMessageSchema)),
369
+ pendingQueue: Schema.Array(PendingUserMessageSchema),
370
+ pendingSteers: Schema.Array(PendingUserMessageSchema),
371
+ pausedQueue: Schema.Array(PendingUserMessageSchema)
372
+ });
373
+ /** Structured-clone schema for the existing ReducedState query representation. */
374
+ const ReducedStateSchema = Schema.Struct({
375
+ runSchedulingRequest: Schema.optionalKey(RunSchedulingRequestRecord),
376
+ modelSelection: Schema.optionalKey(ModelSelectionPayload),
377
+ lastSeq: SequenceNumber,
378
+ commands: Schema.ReadonlyMap(CommandId, CommandRecordSchema),
379
+ runs: Schema.ReadonlyMap(RunId, RunRecordSchema),
380
+ recoveryContinuations: Schema.ReadonlyMap(RunId, RecoveryContinuationRecordSchema),
381
+ turns: Schema.ReadonlyMap(TurnId, TurnRecordSchema),
382
+ inferences: Schema.ReadonlyMap(InferenceId, InferenceRecordSchema),
383
+ toolCalls: Schema.ReadonlyMap(ToolCallId, Schema.toType(ToolCallRecordSchema)),
384
+ messages: Schema.ReadonlyMap(MessageId, QueryMessageRecordSchema),
385
+ stopRequests: Schema.ReadonlyMap(CommandId, StopRequestRecordSchema),
386
+ compactions: Schema.ReadonlyMap(CompactionId, CompactionRecordSchema),
387
+ context: ContextRecordSchema,
388
+ tokenConsumption: TokenConsumptionState,
389
+ commandQueues: CommandQueuesSchema
390
+ });
279
391
  //#endregion
280
- export { CommandRecordSchema, CommandTerminalSchema, InferenceRecordSchema, InferenceTerminalSchema, JsonAssistantMessagePart, JsonCommandRecordSchema, JsonEDACommand, JsonMessageRecordSchema, JsonPromptFilePart, JsonUserMessageContent, JsonUserMessagePart, MessageRecordSchema, RecoveryContinuationRecordSchema, RunRecordSchema, RunTerminalSchema, TokenConsumptionState as TokenConsumptionStateSchema, TokenUsageTotals as TokenUsageTotalsSchema, ToolCallRecordSchema, ToolDecisionSchema, ToolTerminalSchema, TurnRecordSchema, TurnTerminalSchema };
392
+ export { ActiveCommandEvidenceSchema, CommandQueuesSchema, CommandRecordSchema, CommandTerminalSchema, CompactionRecordSchema, CompactionTerminalSchema, ContextRecordSchema, InferenceRecordSchema, InferenceTerminalSchema, JsonAssistantMessagePart, JsonCommandRecordSchema, JsonEDACommand, JsonMessageRecordSchema, JsonPromptFilePart, JsonUserMessageContent, JsonUserMessagePart, MessageRecordSchema, PendingCommandSchema, PendingSteeringMessageSchema, PendingUserMessageSchema, QueryMessageRecordSchema, QueryUserMessageContent, RecoveryContinuationRecordSchema, ReducedStateSchema, RunRecordSchema, RunTerminalSchema, StopRequestRecordSchema, TokenConsumptionState as TokenConsumptionStateSchema, TokenUsageTotals as TokenUsageTotalsSchema, ToolCallRecordSchema, ToolDecisionSchema, ToolTerminalSchema, TurnRecordSchema, TurnTerminalSchema };
281
393
 
282
394
  //# sourceMappingURL=reduced-state-schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reduced-state-schema.js","names":[],"sources":["../../src/domain/reduced-state-schema.ts"],"sourcesContent":["import * as Prompt from \"effect/unstable/ai/Prompt\";\nimport * as Schema from \"effect/Schema\";\nimport * as SchemaTransformation from \"effect/SchemaTransformation\";\nexport {\n TokenConsumptionState as TokenConsumptionStateSchema,\n TokenUsageTotals as TokenUsageTotalsSchema,\n} from \"./model-usage\";\n\nimport {\n CancelPendingMessageCommand,\n EDACommand,\n PromotePendingMessageCommand,\n ResumePendingMessagesCommand,\n StopTurnCommand,\n SubmitMessageCommand,\n UserMessageContent,\n} from \"../types/commands\";\nimport {\n CommandId,\n InferenceId,\n MessageId,\n RunId,\n SequenceNumber,\n ToolCallId,\n TurnId,\n} from \"../types/core\";\nimport {\n AssistantMessageContent,\n EDAEventTrace,\n EDARunTrace,\n FailurePayload,\n ProviderPartId,\n RecoveryContinuation,\n SystemPromptText,\n ToolName,\n UsagePayload,\n ModelSelectionPayload,\n} from \"../types/events\";\n\nconst PromptFilePart = Schema.Struct(Prompt.FilePart.fields);\nconst PromptReasoningPart = Schema.Struct(Prompt.ReasoningPart.fields);\nconst PromptTextPart = Schema.Struct(Prompt.TextPart.fields);\nconst PromptToolApprovalRequestPart = Schema.Struct(Prompt.ToolApprovalRequestPart.fields);\nconst PromptToolCallPart = Schema.Struct(Prompt.ToolCallPart.fields);\nconst PromptToolResultPart = Schema.Struct(Prompt.ToolResultPart.fields);\n\nconst JsonPromptFilePartEncoded = Schema.Struct({\n ...PromptFilePart.fields,\n data: Schema.String,\n});\n\nconst byteArrayDataUrl = (data: Uint8Array, mediaType: string): string => {\n let binary = \"\";\n for (const byte of data) {\n binary += String.fromCharCode(byte);\n }\n return `data:${mediaType};base64,${btoa(binary)}`;\n};\n\n/**\n * Canonical Effect Prompt file part with an explicit JSON string encoding.\n *\n * Strings pass through unchanged, URLs use their href, and bytes become a data\n * URL. Decoding produces the normal Prompt.FilePart type.\n */\nexport const JsonPromptFilePart = JsonPromptFilePartEncoded.pipe(\n Schema.decodeTo(\n Prompt.FilePart,\n SchemaTransformation.transform<Prompt.FilePartEncoded, typeof JsonPromptFilePartEncoded.Type>({\n decode: (part) => part,\n encode: (part) => ({\n ...part,\n \"~effect/ai/Prompt/Part\": \"~effect/ai/Prompt/Part\",\n data:\n typeof part.data === \"string\"\n ? part.data\n : part.data instanceof URL\n ? part.data.href\n : byteArrayDataUrl(part.data, part.mediaType),\n options: part.options ?? {},\n }),\n }),\n ),\n);\n\nexport const JsonUserMessagePart = Schema.Union([PromptTextPart, JsonPromptFilePart]);\nexport const JsonUserMessageContent = Schema.Union([\n Prompt.ContentFromString,\n Schema.NonEmptyArray(JsonUserMessagePart),\n]);\n\nexport const JsonAssistantMessagePart = Schema.Union([\n PromptTextPart,\n JsonPromptFilePart,\n PromptReasoningPart,\n PromptToolCallPart,\n PromptToolResultPart,\n PromptToolApprovalRequestPart,\n]);\n\n/**\n * Command schema for JSON snapshots.\n *\n * Every command except SubmitMessage is reused directly. SubmitMessage only\n * replaces canonical Prompt file data with its explicit JSON string projection.\n */\nexport const JsonEDACommand = Schema.Union([\n Schema.Struct({\n ...SubmitMessageCommand.fields,\n content: JsonUserMessageContent,\n }),\n StopTurnCommand,\n CancelPendingMessageCommand,\n PromotePendingMessageCommand,\n ResumePendingMessagesCommand,\n]);\n\nexport const CommandTerminalSchema = Schema.Union([\n Schema.Struct({ _tag: Schema.Literal(\"Completed\"), seq: SequenceNumber }),\n Schema.Struct({\n _tag: Schema.Literal(\"Failed\"),\n error: FailurePayload,\n seq: SequenceNumber,\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Cancelled\"),\n reason: Schema.String,\n seq: SequenceNumber,\n }),\n]);\n\nexport const RunTerminalSchema = Schema.Union([\n Schema.Struct({ _tag: Schema.Literal(\"Completed\"), seq: SequenceNumber }),\n Schema.Struct({\n _tag: Schema.Literal(\"Failed\"),\n error: FailurePayload,\n seq: SequenceNumber,\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Interrupted\"),\n reason: Schema.String,\n seq: SequenceNumber,\n }),\n]);\n\nexport const TurnTerminalSchema = Schema.Union([\n Schema.Struct({\n _tag: Schema.Literal(\"Completed\"),\n seq: SequenceNumber,\n usage: Schema.optionalKey(UsagePayload),\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Failed\"),\n error: FailurePayload,\n seq: SequenceNumber,\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Stopped\"),\n reason: Schema.String,\n seq: SequenceNumber,\n }),\n]);\n\nexport const InferenceTerminalSchema = Schema.Union([\n Schema.Struct({\n _tag: Schema.Literal(\"Completed\"),\n seq: SequenceNumber,\n usage: Schema.optionalKey(UsagePayload),\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Failed\"),\n error: FailurePayload,\n seq: SequenceNumber,\n }),\n]);\n\nconst LifecycleTimingFields = {\n durationMs: Schema.optionalKey(Schema.Finite.check(Schema.isGreaterThanOrEqualTo(0))),\n startedAtMs: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))),\n terminalAtMs: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))),\n};\n\nexport const CommandRecordSchema = Schema.Struct({\n admittedSeq: Schema.optionalKey(SequenceNumber),\n admissionTrace: Schema.optionalKey(EDAEventTrace),\n command: Schema.optionalKey(EDACommand),\n commandId: CommandId,\n startedSeq: Schema.optionalKey(SequenceNumber),\n terminal: Schema.optionalKey(CommandTerminalSchema),\n});\n\nexport const JsonCommandRecordSchema = Schema.Struct({\n ...CommandRecordSchema.fields,\n command: Schema.optionalKey(JsonEDACommand),\n});\n\nexport const RunRecordSchema = Schema.Struct({\n modelSelection: Schema.optionalKey(ModelSelectionPayload),\n ...LifecycleTimingFields,\n commandIds: Schema.Array(CommandId),\n runId: RunId,\n startedSeq: SequenceNumber,\n terminal: Schema.optionalKey(RunTerminalSchema),\n trace: EDARunTrace,\n});\n\nexport const TurnRecordSchema = Schema.Struct({\n ...LifecycleTimingFields,\n runId: RunId,\n startedSeq: SequenceNumber,\n terminal: Schema.optionalKey(TurnTerminalSchema),\n turnId: TurnId,\n});\n\nexport const InferenceRecordSchema = Schema.Struct({\n ...LifecycleTimingFields,\n inferenceId: InferenceId,\n runId: RunId,\n startedSeq: SequenceNumber,\n terminal: Schema.optionalKey(InferenceTerminalSchema),\n turnId: TurnId,\n});\n\nexport const ToolDecisionSchema = Schema.Union([\n Schema.Struct({\n _tag: Schema.Literal(\"Created\"),\n inferenceId: InferenceId,\n params: Schema.Unknown,\n promptPart: Schema.optionalKey(PromptToolCallPart),\n providerExecuted: Schema.Boolean,\n providerPartId: ProviderPartId,\n runId: RunId,\n seq: SequenceNumber,\n toolName: ToolName,\n turnId: TurnId,\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Rejected\"),\n inferenceId: InferenceId,\n modelFeedback: Schema.String,\n promptPart: Schema.optionalKey(PromptToolResultPart),\n providerPartId: ProviderPartId,\n reason: Schema.Literals([\"unknown-tool\", \"invalid-params\"]),\n runId: RunId,\n seq: SequenceNumber,\n toolName: ToolName,\n turnId: TurnId,\n }),\n]);\n\nexport const ToolTerminalSchema = Schema.Union([\n Schema.Struct({\n _tag: Schema.Literal(\"Completed\"),\n promptPart: Schema.optionalKey(PromptToolResultPart),\n result: Schema.Unknown,\n seq: SequenceNumber,\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Failed\"),\n error: FailurePayload,\n promptPart: Schema.optionalKey(PromptToolResultPart),\n seq: SequenceNumber,\n }),\n]);\n\nexport const ToolCallRecordSchema = Schema.Struct({\n ...LifecycleTimingFields,\n decision: Schema.optionalKey(ToolDecisionSchema),\n startedSeq: Schema.optionalKey(SequenceNumber),\n terminal: Schema.optionalKey(ToolTerminalSchema),\n toolCallId: ToolCallId,\n});\n\nconst MessageIdentityFields = {\n createdAtMs: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))),\n messageId: MessageId,\n seq: SequenceNumber,\n};\n\nconst PendingMessageStateFields = {\n cancellationReason: Schema.optionalKey(Schema.String),\n cancelledByCommandId: Schema.optionalKey(CommandId),\n cancelledSeq: Schema.optionalKey(SequenceNumber),\n consumedSeq: Schema.optionalKey(SequenceNumber),\n consumedTurnId: Schema.optionalKey(TurnId),\n pausedByCommandId: Schema.optionalKey(CommandId),\n pausedSeq: Schema.optionalKey(SequenceNumber),\n promotedSeq: Schema.optionalKey(SequenceNumber),\n};\n\nconst messageRecordSchema = <UserContent extends Schema.Top, AssistantPart extends Schema.Top>(\n userContent: UserContent,\n assistantPart: AssistantPart,\n) =>\n Schema.Union([\n Schema.Struct({\n ...MessageIdentityFields,\n _tag: Schema.Literal(\"System\"),\n content: SystemPromptText,\n }),\n Schema.Struct({\n ...MessageIdentityFields,\n ...PendingMessageStateFields,\n _tag: Schema.Literal(\"User\"),\n commandId: CommandId,\n content: userContent,\n disposition: Schema.optionalKey(Schema.Literals([\"queue\", \"steer\"])),\n requestedDisposition: Schema.optionalKey(Schema.Literals([\"queue\", \"steer\"])),\n }),\n Schema.Struct({\n ...MessageIdentityFields,\n ...PendingMessageStateFields,\n _tag: Schema.Literal(\"Steering\"),\n commandId: CommandId,\n content: userContent,\n runId: RunId,\n }),\n Schema.Struct({\n ...MessageIdentityFields,\n _tag: Schema.Literal(\"Assistant\"),\n content: AssistantMessageContent,\n imported: Schema.optionalKey(Schema.Literal(true)),\n inferenceId: InferenceId,\n promptParts: Schema.optionalKey(Schema.Array(assistantPart)),\n runId: RunId,\n turnId: TurnId,\n }),\n Schema.Struct({\n ...MessageIdentityFields,\n _tag: Schema.Literal(\"AssistantPartial\"),\n content: AssistantMessageContent,\n inferenceId: InferenceId,\n promptParts: Schema.optionalKey(Schema.Array(assistantPart)),\n reason: Schema.String,\n runId: RunId,\n turnId: TurnId,\n }),\n ]);\n\nexport const MessageRecordSchema = messageRecordSchema(\n UserMessageContent,\n Schema.Union([\n PromptTextPart,\n PromptFilePart,\n PromptReasoningPart,\n PromptToolCallPart,\n PromptToolResultPart,\n PromptToolApprovalRequestPart,\n ]),\n);\n\nexport const JsonMessageRecordSchema = messageRecordSchema(\n JsonUserMessageContent,\n JsonAssistantMessagePart,\n);\n\nexport const RecoveryContinuationRecordSchema = Schema.Struct({\n ...RecoveryContinuation.fields,\n seq: SequenceNumber,\n});\n"],"mappings":";;;;;;;;;;AAuCA,MAAM,iBAAiB,OAAO,OAAO,OAAO,SAAS,MAAM;AAC3D,MAAM,sBAAsB,OAAO,OAAO,OAAO,cAAc,MAAM;AACrE,MAAM,iBAAiB,OAAO,OAAO,OAAO,SAAS,MAAM;AAC3D,MAAM,gCAAgC,OAAO,OAAO,OAAO,wBAAwB,MAAM;AACzF,MAAM,qBAAqB,OAAO,OAAO,OAAO,a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OAAO,OAAO;EACZ,GAAG;EACH,MAAM,OAAO,QAAQ,WAAW;EAChC,SAAS;EACT,UAAU,OAAO,YAAY,OAAO,QAAQ,IAAI,CAAC;EACjD,aAAa;EACb,aAAa,OAAO,YAAY,OAAO,MAAM,aAAa,CAAC;EAC3D,OAAO;EACP,QAAQ;CACV,CAAC;CACD,OAAO,OAAO;EACZ,GAAG;EACH,MAAM,OAAO,QAAQ,kBAAkB;EACvC,SAAS;EACT,aAAa;EACb,aAAa,OAAO,YAAY,OAAO,MAAM,aAAa,CAAC;EAC3D,QAAQ,OAAO;EACf,OAAO;EACP,QAAQ;CACV,CAAC;AACH,CAAC;AAEH,MAAa,sBAAsB,oBACjC,oBACA,OAAO,MAAM;CACX;CACA;CACA;CACA;CACA;CACA;AACF,CAAC,CACH;AAEA,MAAa,0BAA0B,oBACrC,wBACA,wBACF;AAEA,MAAa,mCAAmC,OAAO,OAAO;CAC5D,GAAG,qBAAqB;CACxB,KAAK;AACP,CAAC"}
1
+ {"version":3,"file":"reduced-state-schema.js","names":[],"sources":["../../src/domain/reduced-state-schema.ts"],"sourcesContent":["import { TokenConsumptionState } from \"./model-usage\";\nimport { RunSchedulingRequestRecord } from \"./run-scheduling\";\nimport * as Prompt from \"effect/unstable/ai/Prompt\";\nimport * as Schema from \"effect/Schema\";\nimport * as SchemaTransformation from \"effect/SchemaTransformation\";\nexport {\n TokenConsumptionState as TokenConsumptionStateSchema,\n TokenUsageTotals as TokenUsageTotalsSchema,\n} from \"./model-usage\";\n\nimport {\n CancelPendingMessageCommand,\n EDACommand,\n PromotePendingMessageCommand,\n ResumePendingMessagesCommand,\n StopTurnCommand,\n SubmitMessageCommand,\n UserMessageContent,\n} from \"../types/commands\";\nimport {\n CommandId,\n CompactionId,\n ContextVersion,\n SummaryId,\n InferenceId,\n MessageId,\n RunId,\n SequenceNumber,\n ToolCallId,\n TurnId,\n} from \"../types/core\";\nimport {\n AssistantMessageContent,\n EDAEventTrace,\n EDARunTrace,\n FailurePayload,\n ProviderPartId,\n RecoveryContinuation,\n SystemPromptText,\n ToolName,\n UsagePayload,\n ModelSelectionPayload,\n} from \"../types/events\";\n\nconst PromptFilePart = Schema.Struct(Prompt.FilePart.fields);\nconst PromptReasoningPart = Schema.Struct(Prompt.ReasoningPart.fields);\nconst PromptTextPart = Schema.Struct(Prompt.TextPart.fields);\nconst PromptToolApprovalRequestPart = Schema.Struct(Prompt.ToolApprovalRequestPart.fields);\nconst PromptToolCallPart = Schema.Struct(Prompt.ToolCallPart.fields);\nconst PromptToolResultPart = Schema.Struct(Prompt.ToolResultPart.fields);\n\nconst JsonPromptFilePartEncoded = Schema.Struct({\n ...PromptFilePart.fields,\n data: Schema.String,\n});\n\nconst byteArrayDataUrl = (data: Uint8Array, mediaType: string): string => {\n let binary = \"\";\n for (const byte of data) {\n binary += String.fromCharCode(byte);\n }\n return `data:${mediaType};base64,${btoa(binary)}`;\n};\n\n/**\n * Canonical Effect Prompt file part with an explicit JSON string encoding.\n *\n * Strings pass through unchanged, URLs use their href, and bytes become a data\n * URL. Decoding produces the normal Prompt.FilePart type.\n */\nexport const JsonPromptFilePart = JsonPromptFilePartEncoded.pipe(\n Schema.decodeTo(\n Prompt.FilePart,\n SchemaTransformation.transform<Prompt.FilePartEncoded, typeof JsonPromptFilePartEncoded.Type>({\n decode: (part) => part,\n encode: (part) => ({\n ...part,\n \"~effect/ai/Prompt/Part\": \"~effect/ai/Prompt/Part\",\n data:\n typeof part.data === \"string\"\n ? part.data\n : part.data instanceof URL\n ? part.data.href\n : byteArrayDataUrl(part.data, part.mediaType),\n options: part.options ?? {},\n }),\n }),\n ),\n);\n\nexport const JsonUserMessagePart = Schema.Union([PromptTextPart, JsonPromptFilePart]);\nexport const JsonUserMessageContent = Schema.Union([\n Prompt.ContentFromString,\n Schema.NonEmptyArray(JsonUserMessagePart),\n]);\n\nexport const JsonAssistantMessagePart = Schema.Union([\n PromptTextPart,\n JsonPromptFilePart,\n PromptReasoningPart,\n PromptToolCallPart,\n PromptToolResultPart,\n PromptToolApprovalRequestPart,\n]);\n\n/**\n * Command schema for JSON snapshots.\n *\n * Every command except SubmitMessage is reused directly. SubmitMessage only\n * replaces canonical Prompt file data with its explicit JSON string projection.\n */\nexport const JsonEDACommand = Schema.Union([\n Schema.Struct({\n ...SubmitMessageCommand.fields,\n content: JsonUserMessageContent,\n }),\n StopTurnCommand,\n CancelPendingMessageCommand,\n PromotePendingMessageCommand,\n ResumePendingMessagesCommand,\n]);\n\nexport const CommandTerminalSchema = Schema.Union([\n Schema.Struct({ _tag: Schema.Literal(\"Completed\"), seq: SequenceNumber }),\n Schema.Struct({\n _tag: Schema.Literal(\"Failed\"),\n error: FailurePayload,\n seq: SequenceNumber,\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Cancelled\"),\n reason: Schema.String,\n seq: SequenceNumber,\n }),\n]);\n\nexport const RunTerminalSchema = Schema.Union([\n Schema.Struct({ _tag: Schema.Literal(\"Completed\"), seq: SequenceNumber }),\n Schema.Struct({\n _tag: Schema.Literal(\"Failed\"),\n error: FailurePayload,\n seq: SequenceNumber,\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Interrupted\"),\n reason: Schema.String,\n seq: SequenceNumber,\n }),\n]);\n\nexport const TurnTerminalSchema = Schema.Union([\n Schema.Struct({\n _tag: Schema.Literal(\"Completed\"),\n seq: SequenceNumber,\n usage: Schema.optionalKey(UsagePayload),\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Failed\"),\n error: FailurePayload,\n seq: SequenceNumber,\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Stopped\"),\n reason: Schema.String,\n seq: SequenceNumber,\n }),\n]);\n\nexport const InferenceTerminalSchema = Schema.Union([\n Schema.Struct({\n _tag: Schema.Literal(\"Completed\"),\n seq: SequenceNumber,\n usage: Schema.optionalKey(UsagePayload),\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Failed\"),\n error: FailurePayload,\n seq: SequenceNumber,\n }),\n]);\n\nconst LifecycleTimingFields = {\n durationMs: Schema.optionalKey(Schema.Finite.check(Schema.isGreaterThanOrEqualTo(0))),\n startedAtMs: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))),\n terminalAtMs: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))),\n};\n\nexport const CommandRecordSchema = Schema.Struct({\n admittedSeq: Schema.optionalKey(SequenceNumber),\n admissionTrace: Schema.optionalKey(EDAEventTrace),\n command: Schema.optionalKey(EDACommand),\n commandId: CommandId,\n startedSeq: Schema.optionalKey(SequenceNumber),\n terminal: Schema.optionalKey(CommandTerminalSchema),\n});\n\nexport const JsonCommandRecordSchema = Schema.Struct({\n ...CommandRecordSchema.fields,\n command: Schema.optionalKey(JsonEDACommand),\n});\n\nexport const RunRecordSchema = Schema.Struct({\n modelSelection: Schema.optionalKey(ModelSelectionPayload),\n ...LifecycleTimingFields,\n commandIds: Schema.Array(CommandId),\n runId: RunId,\n startedSeq: SequenceNumber,\n terminal: Schema.optionalKey(RunTerminalSchema),\n trace: EDARunTrace,\n});\n\nexport const TurnRecordSchema = Schema.Struct({\n ...LifecycleTimingFields,\n runId: RunId,\n startedSeq: SequenceNumber,\n terminal: Schema.optionalKey(TurnTerminalSchema),\n turnId: TurnId,\n});\n\nexport const InferenceRecordSchema = Schema.Struct({\n ...LifecycleTimingFields,\n inferenceId: InferenceId,\n runId: RunId,\n startedSeq: SequenceNumber,\n terminal: Schema.optionalKey(InferenceTerminalSchema),\n turnId: TurnId,\n});\n\nexport const ToolDecisionSchema = Schema.Union([\n Schema.Struct({\n _tag: Schema.Literal(\"Created\"),\n inferenceId: InferenceId,\n params: Schema.Unknown,\n promptPart: Schema.optionalKey(PromptToolCallPart),\n providerExecuted: Schema.Boolean,\n providerPartId: ProviderPartId,\n runId: RunId,\n seq: SequenceNumber,\n toolName: ToolName,\n turnId: TurnId,\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Rejected\"),\n inferenceId: InferenceId,\n modelFeedback: Schema.String,\n promptPart: Schema.optionalKey(PromptToolResultPart),\n providerPartId: ProviderPartId,\n reason: Schema.Literals([\"unknown-tool\", \"invalid-params\"]),\n runId: RunId,\n seq: SequenceNumber,\n toolName: ToolName,\n turnId: TurnId,\n }),\n]);\n\nexport const ToolTerminalSchema = Schema.Union([\n Schema.Struct({\n _tag: Schema.Literal(\"Completed\"),\n promptPart: Schema.optionalKey(PromptToolResultPart),\n result: Schema.Unknown,\n seq: SequenceNumber,\n }),\n Schema.Struct({\n _tag: Schema.Literal(\"Failed\"),\n error: FailurePayload,\n promptPart: Schema.optionalKey(PromptToolResultPart),\n seq: SequenceNumber,\n }),\n]);\n\nexport const ToolCallRecordSchema = Schema.Struct({\n ...LifecycleTimingFields,\n decision: Schema.optionalKey(ToolDecisionSchema),\n startedSeq: Schema.optionalKey(SequenceNumber),\n terminal: Schema.optionalKey(ToolTerminalSchema),\n toolCallId: ToolCallId,\n});\n\nconst MessageIdentityFields = {\n createdAtMs: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))),\n messageId: MessageId,\n seq: SequenceNumber,\n};\n\nconst PendingMessageStateFields = {\n cancellationReason: Schema.optionalKey(Schema.String),\n cancelledByCommandId: Schema.optionalKey(CommandId),\n cancelledSeq: Schema.optionalKey(SequenceNumber),\n consumedSeq: Schema.optionalKey(SequenceNumber),\n consumedTurnId: Schema.optionalKey(TurnId),\n pausedByCommandId: Schema.optionalKey(CommandId),\n pausedSeq: Schema.optionalKey(SequenceNumber),\n promotedSeq: Schema.optionalKey(SequenceNumber),\n};\n\nconst messageRecordSchema = <UserContent extends Schema.Top, AssistantPart extends Schema.Top>(\n userContent: UserContent,\n assistantPart: AssistantPart,\n) =>\n Schema.Union([\n Schema.Struct({\n ...MessageIdentityFields,\n _tag: Schema.Literal(\"System\"),\n content: SystemPromptText,\n }),\n Schema.Struct({\n ...MessageIdentityFields,\n ...PendingMessageStateFields,\n _tag: Schema.Literal(\"User\"),\n commandId: CommandId,\n content: userContent,\n disposition: Schema.optionalKey(Schema.Literals([\"queue\", \"steer\"])),\n requestedDisposition: Schema.optionalKey(Schema.Literals([\"queue\", \"steer\"])),\n }),\n Schema.Struct({\n ...MessageIdentityFields,\n ...PendingMessageStateFields,\n _tag: Schema.Literal(\"Steering\"),\n commandId: CommandId,\n content: userContent,\n runId: RunId,\n }),\n Schema.Struct({\n ...MessageIdentityFields,\n _tag: Schema.Literal(\"Assistant\"),\n content: AssistantMessageContent,\n imported: Schema.optionalKey(Schema.Literal(true)),\n inferenceId: InferenceId,\n promptParts: Schema.optionalKey(Schema.Array(assistantPart)),\n runId: RunId,\n turnId: TurnId,\n }),\n Schema.Struct({\n ...MessageIdentityFields,\n _tag: Schema.Literal(\"AssistantPartial\"),\n content: AssistantMessageContent,\n inferenceId: InferenceId,\n promptParts: Schema.optionalKey(Schema.Array(assistantPart)),\n reason: Schema.String,\n runId: RunId,\n turnId: TurnId,\n }),\n ]);\n\nexport const MessageRecordSchema = messageRecordSchema(\n UserMessageContent,\n Schema.Union([\n PromptTextPart,\n PromptFilePart,\n PromptReasoningPart,\n PromptToolCallPart,\n PromptToolResultPart,\n PromptToolApprovalRequestPart,\n ]),\n);\n\n/** Lossless structured-clone query content; admission string transforms do not apply. */\nexport const QueryUserMessageContent = Schema.toType(UserMessageContent);\n\n/** Message query records preserve Prompt-part arrays and their structured-clone fields. */\nexport const QueryMessageRecordSchema = messageRecordSchema(\n QueryUserMessageContent,\n Schema.Union([\n Schema.toType(PromptTextPart),\n Schema.toType(PromptFilePart),\n Schema.toType(PromptReasoningPart),\n Schema.toType(PromptToolCallPart),\n Schema.toType(PromptToolResultPart),\n Schema.toType(PromptToolApprovalRequestPart),\n ]),\n);\n\nexport const JsonMessageRecordSchema = messageRecordSchema(\n JsonUserMessageContent,\n JsonAssistantMessagePart,\n);\n\nexport const RecoveryContinuationRecordSchema = Schema.Struct({\n ...RecoveryContinuation.fields,\n seq: SequenceNumber,\n});\n\n/** Structured-clone schema for the existing StopRequestRecord query representation. */\nexport const StopRequestRecordSchema = Schema.Struct({\n commandId: CommandId,\n requestedSeq: SequenceNumber,\n requestedRunId: Schema.optionalKey(RunId),\n requestedTurnId: Schema.optionalKey(TurnId),\n appliedSeq: Schema.optionalKey(SequenceNumber),\n appliedRunId: Schema.optionalKey(RunId),\n appliedTurnId: Schema.optionalKey(TurnId),\n appliedInferenceId: Schema.optionalKey(InferenceId),\n});\n\n/** Structured-clone schema for the existing CompactionTerminal query representation. */\nexport const CompactionTerminalSchema = Schema.Union([\n Schema.Struct({ _tag: Schema.Literal(\"Completed\"), seq: SequenceNumber }),\n Schema.Struct({ _tag: Schema.Literal(\"Failed\"), seq: SequenceNumber, error: FailurePayload }),\n]);\n\n/** Structured-clone schema for the existing CompactionRecord query representation. */\nexport const CompactionRecordSchema = Schema.Struct({\n compactionId: CompactionId,\n requestedSeq: Schema.optionalKey(SequenceNumber),\n startedSeq: Schema.optionalKey(SequenceNumber),\n summaryCreatedSeq: Schema.optionalKey(SequenceNumber),\n summaryId: Schema.optionalKey(SummaryId),\n sourceFromSeq: Schema.optionalKey(SequenceNumber),\n sourceToSeq: Schema.optionalKey(SequenceNumber),\n rebasedSeq: Schema.optionalKey(SequenceNumber),\n contextVersion: Schema.optionalKey(ContextVersion),\n terminal: Schema.optionalKey(CompactionTerminalSchema),\n});\n\n/** Structured-clone schema for the existing ContextRecord query representation. */\nexport const ContextRecordSchema = Schema.Struct({\n version: ContextVersion,\n currentSummaryId: Schema.optionalKey(SummaryId),\n});\n\n/** Structured-clone schema for the existing ActiveCommandEvidence query representation. */\nexport const ActiveCommandEvidenceSchema = Schema.Struct({\n commandId: CommandId,\n runId: Schema.optionalKey(RunId),\n});\n\n/** Structured-clone schema for the existing PendingCommand query representation. */\nexport const PendingCommandSchema = Schema.Struct({\n commandId: CommandId,\n command: EDACommand,\n admittedSeq: SequenceNumber,\n admissionTrace: Schema.optionalKey(EDAEventTrace),\n});\n\n/** Structured-clone schema for the existing PendingSteeringMessage query representation. */\nexport const PendingSteeringMessageSchema = Schema.Struct({\n messageId: MessageId,\n commandId: CommandId,\n runId: RunId,\n content: QueryUserMessageContent,\n queuedSeq: SequenceNumber,\n consumedSeq: Schema.optionalKey(SequenceNumber),\n consumedTurnId: Schema.optionalKey(TurnId),\n});\n\n/** Structured-clone schema for the existing PendingUserMessage query representation. */\nexport const PendingUserMessageSchema = Schema.Struct({\n messageId: MessageId,\n commandId: CommandId,\n content: QueryUserMessageContent,\n submittedSeq: SequenceNumber,\n effectiveSeq: SequenceNumber,\n disposition: Schema.Union([Schema.Literal(\"queue\"), Schema.Literal(\"steer\")]),\n targetRunId: Schema.optionalKey(RunId),\n pausedByCommandId: Schema.optionalKey(CommandId),\n});\n\n/** Structured-clone schema for the existing CommandQueues query representation. */\nexport const CommandQueuesSchema = Schema.Struct({\n active: Schema.optional(ActiveCommandEvidenceSchema),\n pendingCommands: Schema.Array(PendingCommandSchema),\n queuedCommands: Schema.Array(PendingCommandSchema),\n activeControlCommands: Schema.Array(PendingCommandSchema),\n steeringByRun: Schema.ReadonlyMap(RunId, Schema.Array(PendingSteeringMessageSchema)),\n pendingQueue: Schema.Array(PendingUserMessageSchema),\n pendingSteers: Schema.Array(PendingUserMessageSchema),\n pausedQueue: Schema.Array(PendingUserMessageSchema),\n});\n\n/** Structured-clone schema for the existing ReducedState query representation. */\nexport const ReducedStateSchema = Schema.Struct({\n runSchedulingRequest: Schema.optionalKey(RunSchedulingRequestRecord),\n modelSelection: Schema.optionalKey(ModelSelectionPayload),\n lastSeq: SequenceNumber,\n commands: Schema.ReadonlyMap(CommandId, CommandRecordSchema),\n runs: Schema.ReadonlyMap(RunId, RunRecordSchema),\n recoveryContinuations: Schema.ReadonlyMap(RunId, RecoveryContinuationRecordSchema),\n turns: Schema.ReadonlyMap(TurnId, TurnRecordSchema),\n inferences: Schema.ReadonlyMap(InferenceId, InferenceRecordSchema),\n toolCalls: Schema.ReadonlyMap(ToolCallId, Schema.toType(ToolCallRecordSchema)),\n messages: Schema.ReadonlyMap(MessageId, QueryMessageRecordSchema),\n stopRequests: Schema.ReadonlyMap(CommandId, StopRequestRecordSchema),\n compactions: Schema.ReadonlyMap(CompactionId, CompactionRecordSchema),\n context: ContextRecordSchema,\n tokenConsumption: TokenConsumptionState,\n commandQueues: CommandQueuesSchema,\n});\n"],"mappings":";;;;;;;;;;;AA4CA,MAAM,iBAAiB,OAAO,OAAO,OAAO,SAAS,MAAM;AAC3D,MAAM,sBAAsB,OAAO,OAAO,OAAO,cAAc,MAAM;AACrE,MAAM,iBAAiB,OAAO,OAAO,OAAO,SAAS,MAAM;AAC3D,MAAM,gCAAgC,OAAO,OAAO,OAAO,wBAAwB,MAAM;AACzF,MAAM,qBAAqB,OAAO,OAAO,OAAO,aAAa,MAAM;AACnE,MAAM,uBAAuB,OAAO,OAAO,OAAO,eAAe,MAAM;AAEvE,MAAM,4BAA4B,OAAO,OAAO;CAC9C,GAAG,eAAe;CAClB,MAAM,OAAO;AACf,CAAC;AAED,MAAM,oBAAoB,MAAkB,cAA8B;CACxE,IAAI,SAAS;CACb,KAAK,MAAM,QAAQ,MACjB,UAAU,OAAO,aAAa,IAAI;CAEpC,OAAO,QAAQ,UAAU,UAAU,KAAK,MAAM;AAChD;;;;;;;AAQA,MAAa,qBAAqB,0BAA0B,KAC1D,OAAO,SACL,OAAO,UACP,qBAAqB,UAAyE;CAC5F,SAAS,SAAS;CAClB,SAAS,UAAU;EACjB,GAAG;EACH,0BAA0B;EAC1B,MACE,OAAO,KAAK,SAAS,WACjB,KAAK,OACL,KAAK,gBAAgB,MACnB,KAAK,KAAK,OACV,iBAAiB,KAAK,MAAM,KAAK,SAAS;EAClD,SAAS,KAAK,WAAW,CAAC;CAC5B;AACF,CAAC,CACH,CACF;AAEA,MAAa,sBAAsB,OAAO,MAAM,CAAC,gBAAgB,kBAAkB,CAAC;AACpF,MAAa,yBAAyB,OAAO,MAAM,CACjD,OAAO,mBACP,OAAO,cAAc,mBAAmB,CAC1C,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ACT,kBAAkB;CAClB,eAAe;AACjB,CAAC"}
@@ -1,3 +1,3 @@
1
- import { A as RunTerminal, B as decodeReducedStateCheckpoint, C as ReducedStateCheckpointCommandRecord, D as ReducedStateCheckpointToolDecision, E as ReducedStateCheckpointToolCallRecord, F as TurnRecord, G as initialReducedState, H as foldReducedState, I as TurnTerminal, J as reduceCommittedEvents, K as pendingCommands, L as activeCommand, M as ToolCallRecord, N as ToolDecision, O as ReducedStateCheckpointToolTerminal, P as ToolTerminal, R as activeTurnIdentityForCommand, S as ReducedState, T as ReducedStateCheckpointPayload, U as frameworkReducedStateReducerName, V as encodeReducedStateCheckpoint, W as frameworkReducedStateReducerSchemaVersion, Y as reducedStateCheckpointEventSeqs, _ as LifecycleTiming, b as RecoverableWork, c as ActiveTurnIdentity, d as CompactionRecord, f as CompactionTerminal, g as LifecycleFailure, h as InferenceTerminal, j as StopRequestRecord, k as RunRecord, l as CommandRecord, m as InferenceRecord, p as ContextRecord, q as pendingStopCommand, s as ActiveCommandEvidence, u as CommandTerminal, v as MessageRecord, w as ReducedStateCheckpointMessageRecord, x as RecoveryContinuationRecord, y as PendingCommand, z as classifyRecoverableWork } from "../command-queues-w9WUKTpM.js";
1
+ import { A as TurnTerminal, B as pendingCommands, C as RunRecord, D as ToolDecision, E as ToolCallRecord, F as encodeReducedStateCheckpoint, H as reduceCommittedEvents, I as foldReducedState, L as frameworkReducedStateReducerName, M as activeTurnIdentityForCommand, N as classifyRecoverableWork, O as ToolTerminal, P as decodeReducedStateCheckpoint, R as frameworkReducedStateReducerSchemaVersion, S as ReducedStateCheckpointToolTerminal, T as StopRequestRecord, U as reducedStateCheckpointEventSeqs, V as pendingStopCommand, _ as ReducedStateCheckpointCommandRecord, a as CompactionRecord, b as ReducedStateCheckpointToolCallRecord, c as InferenceRecord, d as LifecycleTiming, f as MessageRecord, g as ReducedState, h as RecoveryContinuationRecord, i as CommandTerminal, j as activeCommand, k as TurnRecord, l as InferenceTerminal, m as RecoverableWork, n as ActiveTurnIdentity, o as CompactionTerminal, p as PendingCommand, r as CommandRecord, s as ContextRecord, t as ActiveCommandEvidence, u as LifecycleFailure, v as ReducedStateCheckpointMessageRecord, w as RunTerminal, x as ReducedStateCheckpointToolDecision, y as ReducedStateCheckpointPayload, z as initialReducedState } from "../reduced-state-xY-tYuGo.js";
2
2
  import { n as TokenConsumptionState, r as TokenUsageTotals } from "../model-usage-CNcnhj72.js";
3
3
  export { ActiveCommandEvidence, ActiveTurnIdentity, CommandRecord, CommandTerminal, CompactionRecord, CompactionTerminal, ContextRecord, InferenceRecord, InferenceTerminal, LifecycleFailure, LifecycleTiming, MessageRecord, PendingCommand, RecoverableWork, RecoveryContinuationRecord, ReducedState, ReducedStateCheckpointCommandRecord, ReducedStateCheckpointMessageRecord, ReducedStateCheckpointPayload, ReducedStateCheckpointToolCallRecord, ReducedStateCheckpointToolDecision, ReducedStateCheckpointToolTerminal, RunRecord, RunTerminal, StopRequestRecord, TokenConsumptionState, type TokenUsageTotals, ToolCallRecord, ToolDecision, ToolTerminal, TurnRecord, TurnTerminal, activeCommand, activeTurnIdentityForCommand, classifyRecoverableWork, decodeReducedStateCheckpoint, encodeReducedStateCheckpoint, foldReducedState, frameworkReducedStateReducerName, frameworkReducedStateReducerSchemaVersion, initialReducedState, pendingCommands, pendingStopCommand, reduceCommittedEvents, reducedStateCheckpointEventSeqs };
@@ -1,2 +1,2 @@
1
- import { $ as RunRequestOutcome, Q as RunGrantResult, X as DeferredRunResolution, Z as LocalRunResolution, at as RunSchedulingWork, ct as planWaitingRunInterruption, et as RunResolution, it as RunSchedulingRequestRecord, lt as runSchedulingInputMessageIds, nt as RunSchedulingInput, ot as canGrantRun, rt as RunSchedulingRequest, st as planRunSchedulingCancellation, tt as RunSchedulingCancellationPlan, ut as waitingRunControl } from "../command-queues-w9WUKTpM.js";
1
+ import { Bt as RunSchedulingCancellationPlan, Ft as DeferredRunResolution, Gt as canGrantRun, Ht as RunSchedulingRequest, It as LocalRunResolution, Jt as runSchedulingInputMessageIds, Kt as planRunSchedulingCancellation, Lt as RunGrantResult, Rt as RunRequestOutcome, Ut as RunSchedulingRequestRecord, Vt as RunSchedulingInput, Wt as RunSchedulingWork, Yt as waitingRunControl, qt as planWaitingRunInterruption, zt as RunResolution } from "../reduced-state-xY-tYuGo.js";
2
2
  export { DeferredRunResolution, LocalRunResolution, RunGrantResult, RunRequestOutcome, RunResolution, RunSchedulingCancellationPlan, RunSchedulingInput, RunSchedulingRequest, RunSchedulingRequestRecord, RunSchedulingWork, canGrantRun, planRunSchedulingCancellation, planWaitingRunInterruption, runSchedulingInputMessageIds, waitingRunControl };
@@ -1,5 +1,5 @@
1
- import { t as DurableEventEnvelope } from "./envelope-VXFEC8zr.js";
2
1
  import { c as StopTurnCommand, l as SubmitMessageCommand, o as PromotePendingMessageCommand, s as ResumePendingMessagesCommand, t as CancelPendingMessageCommand } from "./commands-p8venTWs.js";
2
+ import { t as DurableEventEnvelope } from "./envelope-VXFEC8zr.js";
3
3
  import * as Effect from "effect/Effect";
4
4
  import * as Schema from "effect/Schema";
5
5
 
@@ -13365,4 +13365,4 @@ declare const durableEventEnvelope: (event: DecodedDurableEvent | DurableEventEn
13365
13365
  declare const decodeDurableEventSync: (input: unknown) => DecodedDurableEvent;
13366
13366
  //#endregion
13367
13367
  export { LegacyAttemptEvent as $, pendingMessagesPausedEventType as $n, ToolCallRejectedPayload as $t, CompactionFailedEvent as A, baseStateCreatedEventType as An, SessionConfiguredEvent as At, ContextRebasedPayload as B, compactionRequestedEventType as Bn, SummaryCreatedEvent as Bt, CommandEvent as C, UserMessagePromotedEvent as Cn, turnStartedEventType as Cr, RunSchedulingGrantedPayload as Ct, CommandStartedPayload as D, assistantMessageCommittedEventType as Dn, userMessagePromotedEventType as Dr, RunSchedulingRequestedPayload as Dt, CommandStartedEvent as E, UserMessageSubmittedPayload as En, userMessageCommittedEventType as Er, RunSchedulingRequestedEvent as Et, CompactionStartedPayload as F, commandCompletedEventType as Fn, StopControlEvent as Ft, InferenceCompletedEvent as G, decodeUnknownEDADurableEvent as Gn, ToolCallCompletedPayload as Gt, DecodedDurableEvent as H, contextProjectedEventType as Hn, SystemMessageCommittedEvent as Ht, ContextAndCompactionEvent as I, commandFailedEventType as In, StopTurnAppliedEvent as It, InferenceFailedEvent as J, inferenceCompletedEventType as Jn, ToolCallEvent as Jt, InferenceCompletedPayload as K, decodeUnknownEDADurableEventSync as Kn, ToolCallCreatedEvent as Kt, ContextProjectedEvent as L, commandStartedEventType as Ln, StopTurnAppliedPayload as Lt, CompactionRequestedEvent as M, baseStateRequestedEventType as Mn, SteeringMessageCancelledPayload as Mt, CompactionRequestedPayload as N, commandAdmittedEventType as Nn, SteeringMessageQueuedEvent as Nt, CompactionCompletedEvent as O, assistantMessageImportedEventType as On, userMessageSubmittedEventType as Or, RunStartedEvent as Ot, CompactionStartedEvent as P, commandCancelledEventType as Pn, SteeringMessageQueuedPayload as Pt, LegacyAssistantMessageCommittedEvent as Q, messageQueuePausedEventType as Qn, ToolCallRejectedEvent as Qt, ContextProjectedPayload as R, compactionCompletedEventType as Rn, StopTurnRequestedEvent as Rt, CommandCompletedPayload as S, UserMessageDisposition as Sn, turnFailedEventType as Sr, RunSchedulingGrantedEvent as St, CommandFailedPayload as T, UserMessageSubmittedEvent as Tn, userMessageCancelledEventType as Tr, RunSchedulingInvalidatedPayload as Tt, EDADurableEvent as U, contextRebasedEventType as Un, SystemMessageCommittedPayload as Ut, CurrentEDADurableEvent as V, compactionStartedEventType as Vn, SummaryCreatedPayload as Vt, EDADurableEventV1 as W, decodeDurableEventSync as Wn, ToolCallCompletedEvent as Wt, InferenceStartedEvent as X, inferenceStartedEventType as Xn, ToolCallFailedPayload as Xt, InferenceFailedPayload as Y, inferenceFailedEventType as Yn, ToolCallFailedEvent as Yt, InferenceStartedPayload as Z, interpretLegacyAttemptForReduction as Zn, ToolCallPromptPart as Zt, CommandAdmittedEvent as _, UserMessageCancellationReason as _n, toolCallCreatedEventType as _r, RunInterruptedEvent as _t, AssistantMessageImportedPayload as a, ToolPromptPart as an, runSchedulingGrantedEventType as ar, MessageQueuePausedPayload as at, CommandCancelledPayload as b, UserMessageCommittedEvent as bn, toolCallStartedEventType as br, RunSchedulingDeliveredPayload as bt, AssistantPromptPart as c, TurnCompletedEvent as cn, runStartedEventType as cr, RecoveryCompletedEvent as ct, BaseStateCreatedPayload as d, TurnFailedEvent as dn, steeringMessageQueuedEventType as dr, RecoveryEvent as dt, ToolCallRejectionFeedback as en, recoveryCompletedEventType as er, LegacyToolCallCreatedEvent as et, BaseStateEvent as f, TurnFailedPayload as fn, stopTurnAppliedEventType as fr, RunCompletedEvent as ft, BaseStateRequestedPayload as g, TurnStoppedPayload as gn, toolCallCompletedEventType as gr, RunFailedPayload as gt, BaseStateRequestedEvent as h, TurnStoppedEvent as hn, systemMessageCommittedEventType as hr, RunFailedEvent as ht, AssistantMessageImportedEvent as i, ToolFailurePromptPart as in, runSchedulingDeliveredEventType as ir, MessageQueuePausedEvent as it, CompactionFailedPayload as j, baseStateFailedEventType as jn, SteeringMessageCancelledEvent as jt, CompactionCompletedPayload as k, assistantPartialCommittedEventType as kn, RunStartedPayload as kt, AssistantPromptParts as l, TurnCompletedPayload as ln, sessionConfiguredEventType as lr, RecoveryCompletedPayload as lt, BaseStateFailedPayload as m, TurnStartedPayload as mn, summaryCreatedEventType as mr, RunEvent as mt, AssistantMessageCommittedPayload as n, ToolCallStartedEvent as nn, runFailedEventType as nr, LegacyTurnAttemptStartedEvent as nt, AssistantPartialCommittedEvent as o, ToolRejectionPromptPart as on, runSchedulingInvalidatedEventType as or, PendingMessagesPausedEvent as ot, BaseStateFailedEvent as p, TurnStartedEvent as pn, stopTurnRequestedEventType as pr, RunCompletedPayload as pt, InferenceEvent as q, durableEventEnvelope as qn, ToolCallCreatedPayload as qt, AssistantMessageContent as r, ToolCallStartedPayload as rn, runInterruptedEventType as rr, MessageEvent as rt, AssistantPartialCommittedPayload as s, ToolSuccessPromptPart as sn, runSchedulingRequestedEventType as sr, PendingMessagesPausedPayload as st, AssistantMessageCommittedEvent as t, ToolCallRejectionReason as tn, runCompletedEventType as tr, LegacyTurnAttemptCompletedEvent as tt, BaseStateCreatedEvent as u, TurnEvent as un, steeringMessageCancelledEventType as ur, RecoveryContinuation as ut, CommandAdmittedPayload as v, UserMessageCancelledEvent as vn, toolCallFailedEventType as vr, RunInterruptedPayload as vt, CommandFailedEvent as w, UserMessagePromotedPayload as wn, turnStoppedEventType as wr, RunSchedulingInvalidatedEvent as wt, CommandCompletedEvent as x, UserMessageCommittedPayload as xn, turnCompletedEventType as xr, RunSchedulingEvent as xt, CommandCancelledEvent as y, UserMessageCancelledPayload as yn, toolCallRejectedEventType as yr, RunSchedulingDeliveredEvent as yt, ContextRebasedEvent as z, compactionFailedEventType as zn, StopTurnRequestedPayload as zt };
13368
- //# sourceMappingURL=durable-Ceu9SC2D.d.ts.map
13368
+ //# sourceMappingURL=durable-DeQBR5wA.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { S as durablePosition, _ as SubSequenceNumber, a as CorrelationId, b as TurnId, c as EventId, d as Position, f as PositionOrder, g as SessionId, h as SequenceNumber, i as ContextVersion, l as InferenceId, m as RunRequestId, n as CommandId, o as DurablePosition, p as RunId, r as CompactionId, s as DurableSubSequenceNumber, t as BaseStateId, u as MessageId, v as SummaryId, x as comparePosition, y as ToolCallId } from "./core-C-6xHzRx.js";
2
- import { _ as UnixEpochMillis, a as EventNamespace, b as makeEventType, c as FailurePayload, d as NonNegativeInt, f as PositionedEvent, g as ToolName, h as SystemPromptText, i as EventEnvelope, l as ForeignDurableEvent, m as SchemaVersion, n as EphemeralEventEnvelope, o as EventType, p as ProviderPartId, r as EventDurability, s as EventTypeName, t as DurableEventEnvelope, u as ModelSelectionPayload, v as UsagePayload, x as schemaV1, y as effectDurableAgentNamespace } from "./envelope-VXFEC8zr.js";
3
1
  import { a as PendingMessageCancellationReason, c as StopTurnCommand, d as UserMessageContent, f as UserMessagePart, i as GrantRunCommand, l as SubmitMessageCommand, n as CommandIdempotencyKey, o as PromotePendingMessageCommand, r as EDACommand, s as ResumePendingMessagesCommand, t as CancelPendingMessageCommand, u as SubmitMessageDisposition } from "./commands-p8venTWs.js";
2
+ import { S as durablePosition, _ as SubSequenceNumber, a as CorrelationId, b as TurnId, c as EventId, d as Position, f as PositionOrder, g as SessionId, h as SequenceNumber, i as ContextVersion, l as InferenceId, m as RunRequestId, n as CommandId, o as DurablePosition, p as RunId, r as CompactionId, s as DurableSubSequenceNumber, t as BaseStateId, u as MessageId, v as SummaryId, x as comparePosition, y as ToolCallId } from "./core-C-6xHzRx.js";
4
3
  import { _ as parseEDATraceparent, a as EDATraceAttributes, c as EDATraceLink, d as makeEDAEventTrace, f as makeEDARunTrace, g as makeRootEDATraceMetadata, h as makeRootEDAEventTrace, i as EDATraceAttributeValue, l as EDATraceMetadata, m as makeEDATraceMetadataFromParent, n as EDARunTrace, o as EDATraceContext, p as makeEDATraceContext, r as EDASpanId, s as EDATraceId, t as EDAEventTrace, u as buildEDATraceparent } from "./tracing-BXHAkxkx.js";
5
- import { $ as LegacyAttemptEvent, $n as pendingMessagesPausedEventType, $t as ToolCallRejectedPayload, A as CompactionFailedEvent, An as baseStateCreatedEventType, At as SessionConfiguredEvent, B as ContextRebasedPayload, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, C as CommandEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Ct as RunSchedulingGrantedPayload, D as CommandStartedPayload, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, Dt as RunSchedulingRequestedPayload, E as CommandStartedEvent, En as UserMessageSubmittedPayload, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, F as CompactionStartedPayload, Fn as commandCompletedEventType, Ft as StopControlEvent, G as InferenceCompletedEvent, Gn as decodeUnknownEDADurableEvent, Gt as ToolCallCompletedPayload, H as DecodedDurableEvent, Hn as contextProjectedEventType, Ht as SystemMessageCommittedEvent, I as ContextAndCompactionEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Jt as ToolCallEvent, K as InferenceCompletedPayload, Kn as decodeUnknownEDADurableEventSync, Kt as ToolCallCreatedEvent, L as ContextProjectedEvent, Ln as commandStartedEventType, Lt as StopTurnAppliedPayload, M as CompactionRequestedEvent, Mn as baseStateRequestedEventType, Mt as SteeringMessageCancelledPayload, N as CompactionRequestedPayload, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, On as assistantMessageImportedEventType, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Pt as SteeringMessageQueuedPayload, Q as LegacyAssistantMessageCommittedEvent, Qn as messageQueuePausedEventType, Qt as ToolCallRejectedEvent, R as ContextProjectedPayload, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, S as CommandCompletedPayload, Sn as UserMessageDisposition, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, T as CommandFailedPayload, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Tt as RunSchedulingInvalidatedPayload, U as EDADurableEvent, Un as contextRebasedEventType, Ut as SystemMessageCommittedPayload, V as CurrentEDADurableEvent, Vn as compactionStartedEventType, Vt as SummaryCreatedPayload, W as EDADurableEventV1, Wn as decodeDurableEventSync, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Xt as ToolCallFailedPayload, Y as InferenceFailedPayload, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, Z as InferenceStartedPayload, Zn as interpretLegacyAttemptForReduction, Zt as ToolCallPromptPart, _ as CommandAdmittedEvent, _n as UserMessageCancellationReason, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, a as AssistantMessageImportedPayload, an as ToolPromptPart, ar as runSchedulingGrantedEventType, at as MessageQueuePausedPayload, b as CommandCancelledPayload, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, bt as RunSchedulingDeliveredPayload, c as AssistantPromptPart, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, d as BaseStateCreatedPayload, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, dt as RecoveryEvent, en as ToolCallRejectionFeedback, er as recoveryCompletedEventType, et as LegacyToolCallCreatedEvent, f as BaseStateEvent, fn as TurnFailedPayload, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, g as BaseStateRequestedPayload, gn as TurnStoppedPayload, gr as toolCallCompletedEventType, gt as RunFailedPayload, h as BaseStateRequestedEvent, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, i as AssistantMessageImportedEvent, in as ToolFailurePromptPart, ir as runSchedulingDeliveredEventType, it as MessageQueuePausedEvent, j as CompactionFailedPayload, jn as baseStateFailedEventType, jt as SteeringMessageCancelledEvent, k as CompactionCompletedPayload, kn as assistantPartialCommittedEventType, kt as RunStartedPayload, l as AssistantPromptParts, ln as TurnCompletedPayload, lr as sessionConfiguredEventType, lt as RecoveryCompletedPayload, m as BaseStateFailedPayload, mn as TurnStartedPayload, mr as summaryCreatedEventType, mt as RunEvent, n as AssistantMessageCommittedPayload, nn as ToolCallStartedEvent, nr as runFailedEventType, nt as LegacyTurnAttemptStartedEvent, o as AssistantPartialCommittedEvent, on as ToolRejectionPromptPart, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, p as BaseStateFailedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, pt as RunCompletedPayload, q as InferenceEvent, qn as durableEventEnvelope, qt as ToolCallCreatedPayload, r as AssistantMessageContent, rn as ToolCallStartedPayload, rr as runInterruptedEventType, rt as MessageEvent, s as AssistantPartialCommittedPayload, sn as ToolSuccessPromptPart, sr as runSchedulingRequestedEventType, st as PendingMessagesPausedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallRejectionReason, tr as runCompletedEventType, tt as LegacyTurnAttemptCompletedEvent, u as BaseStateCreatedEvent, un as TurnEvent, ur as steeringMessageCancelledEventType, ut as RecoveryContinuation, v as CommandAdmittedPayload, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, vt as RunInterruptedPayload, w as CommandFailedEvent, wn as UserMessagePromotedPayload, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xn as UserMessageCommittedPayload, xr as turnCompletedEventType, xt as RunSchedulingEvent, y as CommandCancelledEvent, yn as UserMessageCancelledPayload, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType, zt as StopTurnRequestedPayload } from "./durable-Ceu9SC2D.js";
4
+ import { _ as UnixEpochMillis, a as EventNamespace, b as makeEventType, c as FailurePayload, d as NonNegativeInt, f as PositionedEvent, g as ToolName, h as SystemPromptText, i as EventEnvelope, l as ForeignDurableEvent, m as SchemaVersion, n as EphemeralEventEnvelope, o as EventType, p as ProviderPartId, r as EventDurability, s as EventTypeName, t as DurableEventEnvelope, u as ModelSelectionPayload, v as UsagePayload, x as schemaV1, y as effectDurableAgentNamespace } from "./envelope-VXFEC8zr.js";
5
+ import { $ as LegacyAttemptEvent, $n as pendingMessagesPausedEventType, $t as ToolCallRejectedPayload, A as CompactionFailedEvent, An as baseStateCreatedEventType, At as SessionConfiguredEvent, B as ContextRebasedPayload, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, C as CommandEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Ct as RunSchedulingGrantedPayload, D as CommandStartedPayload, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, Dt as RunSchedulingRequestedPayload, E as CommandStartedEvent, En as UserMessageSubmittedPayload, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, F as CompactionStartedPayload, Fn as commandCompletedEventType, Ft as StopControlEvent, G as InferenceCompletedEvent, Gn as decodeUnknownEDADurableEvent, Gt as ToolCallCompletedPayload, H as DecodedDurableEvent, Hn as contextProjectedEventType, Ht as SystemMessageCommittedEvent, I as ContextAndCompactionEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Jt as ToolCallEvent, K as InferenceCompletedPayload, Kn as decodeUnknownEDADurableEventSync, Kt as ToolCallCreatedEvent, L as ContextProjectedEvent, Ln as commandStartedEventType, Lt as StopTurnAppliedPayload, M as CompactionRequestedEvent, Mn as baseStateRequestedEventType, Mt as SteeringMessageCancelledPayload, N as CompactionRequestedPayload, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, On as assistantMessageImportedEventType, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Pt as SteeringMessageQueuedPayload, Q as LegacyAssistantMessageCommittedEvent, Qn as messageQueuePausedEventType, Qt as ToolCallRejectedEvent, R as ContextProjectedPayload, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, S as CommandCompletedPayload, Sn as UserMessageDisposition, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, T as CommandFailedPayload, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Tt as RunSchedulingInvalidatedPayload, U as EDADurableEvent, Un as contextRebasedEventType, Ut as SystemMessageCommittedPayload, V as CurrentEDADurableEvent, Vn as compactionStartedEventType, Vt as SummaryCreatedPayload, W as EDADurableEventV1, Wn as decodeDurableEventSync, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Xt as ToolCallFailedPayload, Y as InferenceFailedPayload, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, Z as InferenceStartedPayload, Zn as interpretLegacyAttemptForReduction, Zt as ToolCallPromptPart, _ as CommandAdmittedEvent, _n as UserMessageCancellationReason, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, a as AssistantMessageImportedPayload, an as ToolPromptPart, ar as runSchedulingGrantedEventType, at as MessageQueuePausedPayload, b as CommandCancelledPayload, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, bt as RunSchedulingDeliveredPayload, c as AssistantPromptPart, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, d as BaseStateCreatedPayload, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, dt as RecoveryEvent, en as ToolCallRejectionFeedback, er as recoveryCompletedEventType, et as LegacyToolCallCreatedEvent, f as BaseStateEvent, fn as TurnFailedPayload, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, g as BaseStateRequestedPayload, gn as TurnStoppedPayload, gr as toolCallCompletedEventType, gt as RunFailedPayload, h as BaseStateRequestedEvent, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, i as AssistantMessageImportedEvent, in as ToolFailurePromptPart, ir as runSchedulingDeliveredEventType, it as MessageQueuePausedEvent, j as CompactionFailedPayload, jn as baseStateFailedEventType, jt as SteeringMessageCancelledEvent, k as CompactionCompletedPayload, kn as assistantPartialCommittedEventType, kt as RunStartedPayload, l as AssistantPromptParts, ln as TurnCompletedPayload, lr as sessionConfiguredEventType, lt as RecoveryCompletedPayload, m as BaseStateFailedPayload, mn as TurnStartedPayload, mr as summaryCreatedEventType, mt as RunEvent, n as AssistantMessageCommittedPayload, nn as ToolCallStartedEvent, nr as runFailedEventType, nt as LegacyTurnAttemptStartedEvent, o as AssistantPartialCommittedEvent, on as ToolRejectionPromptPart, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, p as BaseStateFailedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, pt as RunCompletedPayload, q as InferenceEvent, qn as durableEventEnvelope, qt as ToolCallCreatedPayload, r as AssistantMessageContent, rn as ToolCallStartedPayload, rr as runInterruptedEventType, rt as MessageEvent, s as AssistantPartialCommittedPayload, sn as ToolSuccessPromptPart, sr as runSchedulingRequestedEventType, st as PendingMessagesPausedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallRejectionReason, tr as runCompletedEventType, tt as LegacyTurnAttemptCompletedEvent, u as BaseStateCreatedEvent, un as TurnEvent, ur as steeringMessageCancelledEventType, ut as RecoveryContinuation, v as CommandAdmittedPayload, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, vt as RunInterruptedPayload, w as CommandFailedEvent, wn as UserMessagePromotedPayload, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xn as UserMessageCommittedPayload, xr as turnCompletedEventType, xt as RunSchedulingEvent, y as CommandCancelledEvent, yn as UserMessageCancelledPayload, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType, zt as StopTurnRequestedPayload } from "./durable-DeQBR5wA.js";
6
6
  import { C as toolParamsDeltaEventType, E as traceStatusEventType, S as textDeltaEventType, T as toolParamsStartEventType, _ as TraceStatusEvent, a as RuntimeStatusEvent, b as reasoningDeltaEventType, c as SubscriberStatusPayload, d as ToolParamsDeltaEvent, f as ToolParamsDeltaPayload, g as ToolParamsStartPayload, h as ToolParamsStartEvent, i as ReasoningDeltaPayload, l as TextDeltaEvent, m as ToolParamsEndPayload, n as ModelStreamEvent, o as SubscriberStatusEvent, p as ToolParamsEndEvent, r as ReasoningDeltaEvent, s as SubscriberStatusKind, t as EDAEphemeralEvent, u as TextDeltaPayload, v as TraceStatusKind, w as toolParamsEndEventType, x as subscriberStatusEventType, y as TraceStatusPayload } from "./events-D3OAPXgS.js";
7
- import { a as EDARuntimeError, i as EDARuntimeConfig, n as EDACommandTerminalEvent, o as EDARuntimeShape, r as EDARuntime, s as EDARuntimeSubmit, t as CommittedCommandTerminalEvent } from "./index-DWC70Fsi.js";
7
+ import { G as EDACommandTerminalEvent, J as EDARuntimeError, K as EDARuntime, W as CommittedCommandTerminalEvent, X as EDARuntimeSubmit, Y as EDARuntimeShape, q as EDARuntimeConfig } from "./reduced-state-xY-tYuGo.js";
8
8
  export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateId, BaseStateRequestedEvent, BaseStateRequestedPayload, CancelPendingMessageCommand, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandId, CommandIdempotencyKey, CommandStartedEvent, CommandStartedPayload, CommittedCommandTerminalEvent, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionId, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, ContextVersion, CorrelationId, CurrentEDADurableEvent, DecodedDurableEvent, DurableEventEnvelope, DurablePosition, DurableSubSequenceNumber, EDACommand, EDACommandTerminalEvent, EDADurableEvent, EDADurableEventV1, EDAEphemeralEvent, EDAEventTrace, EDARunTrace, EDARuntime, EDARuntimeConfig, EDARuntimeError, EDARuntimeShape, EDARuntimeSubmit, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, EphemeralEventEnvelope, EventDurability, EventEnvelope, EventId, EventNamespace, EventType, EventTypeName, FailurePayload, ForeignDurableEvent, GrantRunCommand, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceId, InferenceStartedEvent, InferenceStartedPayload, LegacyAssistantMessageCommittedEvent, LegacyAttemptEvent, LegacyToolCallCreatedEvent, LegacyTurnAttemptCompletedEvent, LegacyTurnAttemptStartedEvent, MessageEvent, MessageId, MessageQueuePausedEvent, MessageQueuePausedPayload, ModelSelectionPayload, ModelStreamEvent, NonNegativeInt, PendingMessageCancellationReason, PendingMessagesPausedEvent, PendingMessagesPausedPayload, Position, PositionOrder, PositionedEvent, PromotePendingMessageCommand, ProviderPartId, ReasoningDeltaEvent, ReasoningDeltaPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, ResumePendingMessagesCommand, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunId, RunInterruptedEvent, RunInterruptedPayload, RunRequestId, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, RuntimeStatusEvent, SchemaVersion, SequenceNumber, SessionConfiguredEvent, SessionId, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnCommand, StopTurnRequestedEvent, StopTurnRequestedPayload, SubSequenceNumber, SubmitMessageCommand, SubmitMessageDisposition, SubscriberStatusEvent, SubscriberStatusKind, SubscriberStatusPayload, SummaryCreatedEvent, SummaryCreatedPayload, SummaryId, SystemMessageCommittedEvent, SystemMessageCommittedPayload, SystemPromptText, TextDeltaEvent, TextDeltaPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallId, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolName, ToolParamsDeltaEvent, ToolParamsDeltaPayload, ToolParamsEndEvent, ToolParamsEndPayload, ToolParamsStartEvent, ToolParamsStartPayload, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TraceStatusEvent, TraceStatusKind, TraceStatusPayload, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnId, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UnixEpochMillis, UsagePayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageContent, UserMessageDisposition, UserMessagePart, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, buildEDATraceparent, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, comparePosition, contextProjectedEventType, contextRebasedEventType, decodeDurableEventSync, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, durableEventEnvelope, durablePosition, effectDurableAgentNamespace, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, interpretLegacyAttemptForReduction, makeEDAEventTrace, makeEDARunTrace, makeEDATraceContext, makeEDATraceMetadataFromParent, makeEventType, makeRootEDAEventTrace, makeRootEDATraceMetadata, messageQueuePausedEventType, parseEDATraceparent, pendingMessagesPausedEventType, reasoningDeltaEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runSchedulingDeliveredEventType, runSchedulingGrantedEventType, runSchedulingInvalidatedEventType, runSchedulingRequestedEventType, runStartedEventType, schemaV1, sessionConfiguredEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, subscriberStatusEventType, summaryCreatedEventType, systemMessageCommittedEventType, textDeltaEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, toolParamsDeltaEventType, toolParamsEndEventType, toolParamsStartEventType, traceStatusEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
package/dist/index.js CHANGED
@@ -4,5 +4,5 @@ import { _ as UsagePayload, a as EventNamespace, b as schemaV1, c as ForeignDura
4
4
  import { CancelPendingMessageCommand, CommandIdempotencyKey, EDACommand, GrantRunCommand, PendingMessageCancellationReason, PromotePendingMessageCommand, ResumePendingMessagesCommand, StopTurnCommand, SubmitMessageCommand, SubmitMessageDisposition, UserMessageContent, UserMessagePart } from "./types/commands.js";
5
5
  import { $ as LegacyAttemptEvent, $n as pendingMessagesPausedEventType, $t as ToolCallRejectedPayload, A as CompactionFailedEvent, An as baseStateCreatedEventType, At as SessionConfiguredEvent, B as ContextRebasedPayload, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, C as CommandEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Ct as RunSchedulingGrantedPayload, D as CommandStartedPayload, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, Dt as RunSchedulingRequestedPayload, E as CommandStartedEvent, En as UserMessageSubmittedPayload, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, F as CompactionStartedPayload, Fn as commandCompletedEventType, Ft as StopControlEvent, G as InferenceCompletedEvent, Gn as decodeUnknownEDADurableEvent, Gt as ToolCallCompletedPayload, H as DecodedDurableEvent, Hn as contextProjectedEventType, Ht as SystemMessageCommittedEvent, I as ContextAndCompactionEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Jt as ToolCallEvent, K as InferenceCompletedPayload, Kn as decodeUnknownEDADurableEventSync, Kt as ToolCallCreatedEvent, L as ContextProjectedEvent, Ln as commandStartedEventType, Lt as StopTurnAppliedPayload, M as CompactionRequestedEvent, Mn as baseStateRequestedEventType, Mt as SteeringMessageCancelledPayload, N as CompactionRequestedPayload, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, On as assistantMessageImportedEventType, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Pt as SteeringMessageQueuedPayload, Q as LegacyAssistantMessageCommittedEvent, Qn as messageQueuePausedEventType, Qt as ToolCallRejectedEvent, R as ContextProjectedPayload, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, S as CommandCompletedPayload, Sn as UserMessageDisposition, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, T as CommandFailedPayload, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Tt as RunSchedulingInvalidatedPayload, U as EDADurableEvent, Un as contextRebasedEventType, Ut as SystemMessageCommittedPayload, V as CurrentEDADurableEvent, Vn as compactionStartedEventType, Vt as SummaryCreatedPayload, W as EDADurableEventV1, Wn as decodeDurableEventSync, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Xt as ToolCallFailedPayload, Y as InferenceFailedPayload, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, Z as InferenceStartedPayload, Zn as interpretLegacyAttemptForReduction, Zt as ToolCallPromptPart, _ as CommandAdmittedEvent, _n as UserMessageCancellationReason, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, a as AssistantMessageImportedPayload, an as ToolPromptPart, ar as runSchedulingGrantedEventType, at as MessageQueuePausedPayload, b as CommandCancelledPayload, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, bt as RunSchedulingDeliveredPayload, c as AssistantPromptPart, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, d as BaseStateCreatedPayload, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, dt as RecoveryEvent, en as ToolCallRejectionFeedback, er as recoveryCompletedEventType, et as LegacyToolCallCreatedEvent, f as BaseStateEvent, fn as TurnFailedPayload, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, g as BaseStateRequestedPayload, gn as TurnStoppedPayload, gr as toolCallCompletedEventType, gt as RunFailedPayload, h as BaseStateRequestedEvent, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, i as AssistantMessageImportedEvent, in as ToolFailurePromptPart, ir as runSchedulingDeliveredEventType, it as MessageQueuePausedEvent, j as CompactionFailedPayload, jn as baseStateFailedEventType, jt as SteeringMessageCancelledEvent, k as CompactionCompletedPayload, kn as assistantPartialCommittedEventType, kt as RunStartedPayload, l as AssistantPromptParts, ln as TurnCompletedPayload, lr as sessionConfiguredEventType, lt as RecoveryCompletedPayload, m as BaseStateFailedPayload, mn as TurnStartedPayload, mr as summaryCreatedEventType, mt as RunEvent, n as AssistantMessageCommittedPayload, nn as ToolCallStartedEvent, nr as runFailedEventType, nt as LegacyTurnAttemptStartedEvent, o as AssistantPartialCommittedEvent, on as ToolRejectionPromptPart, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, p as BaseStateFailedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, pt as RunCompletedPayload, q as InferenceEvent, qn as durableEventEnvelope, qt as ToolCallCreatedPayload, r as AssistantMessageContent, rn as ToolCallStartedPayload, rr as runInterruptedEventType, rt as MessageEvent, s as AssistantPartialCommittedPayload, sn as ToolSuccessPromptPart, sr as runSchedulingRequestedEventType, st as PendingMessagesPausedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallRejectionReason, tr as runCompletedEventType, tt as LegacyTurnAttemptCompletedEvent, u as BaseStateCreatedEvent, un as TurnEvent, ur as steeringMessageCancelledEventType, ut as RecoveryContinuation, v as CommandAdmittedPayload, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, vt as RunInterruptedPayload, w as CommandFailedEvent, wn as UserMessagePromotedPayload, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xn as UserMessageCommittedPayload, xr as turnCompletedEventType, xt as RunSchedulingEvent, y as CommandCancelledEvent, yn as UserMessageCancelledPayload, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType, zt as StopTurnRequestedPayload } from "./durable-DRY7AcsF.js";
6
6
  import { EDAEphemeralEvent, ModelStreamEvent, ReasoningDeltaEvent, ReasoningDeltaPayload, RuntimeStatusEvent, SubscriberStatusEvent, SubscriberStatusKind, SubscriberStatusPayload, TextDeltaEvent, TextDeltaPayload, ToolParamsDeltaEvent, ToolParamsDeltaPayload, ToolParamsEndEvent, ToolParamsEndPayload, ToolParamsStartEvent, ToolParamsStartPayload, TraceStatusEvent, TraceStatusKind, TraceStatusPayload, reasoningDeltaEventType, subscriberStatusEventType, textDeltaEventType, toolParamsDeltaEventType, toolParamsEndEventType, toolParamsStartEventType, traceStatusEventType } from "./types/events.js";
7
- import { EDARuntime, EDARuntimeConfig } from "./services/runtime.js";
8
- export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateId, BaseStateRequestedEvent, BaseStateRequestedPayload, CancelPendingMessageCommand, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandId, CommandIdempotencyKey, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionId, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, ContextVersion, CorrelationId, CurrentEDADurableEvent, DecodedDurableEvent, DurableEventEnvelope, DurablePosition, DurableSubSequenceNumber, EDACommand, EDADurableEvent, EDADurableEventV1, EDAEphemeralEvent, EDAEventTrace, EDARunTrace, EDARuntime, EDARuntimeConfig, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, EphemeralEventEnvelope, EventDurability, EventEnvelope, EventId, EventNamespace, EventType, FailurePayload, ForeignDurableEvent, GrantRunCommand, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceId, InferenceStartedEvent, InferenceStartedPayload, LegacyAssistantMessageCommittedEvent, LegacyAttemptEvent, LegacyToolCallCreatedEvent, LegacyTurnAttemptCompletedEvent, LegacyTurnAttemptStartedEvent, MessageEvent, MessageId, MessageQueuePausedEvent, MessageQueuePausedPayload, ModelSelectionPayload, ModelStreamEvent, NonNegativeInt, PendingMessageCancellationReason, PendingMessagesPausedEvent, PendingMessagesPausedPayload, Position, PositionOrder, PositionedEvent, PromotePendingMessageCommand, ProviderPartId, ReasoningDeltaEvent, ReasoningDeltaPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, ResumePendingMessagesCommand, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunId, RunInterruptedEvent, RunInterruptedPayload, RunRequestId, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, RuntimeStatusEvent, SchemaVersion, SequenceNumber, SessionConfiguredEvent, SessionId, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnCommand, StopTurnRequestedEvent, StopTurnRequestedPayload, SubSequenceNumber, SubmitMessageCommand, SubmitMessageDisposition, SubscriberStatusEvent, SubscriberStatusKind, SubscriberStatusPayload, SummaryCreatedEvent, SummaryCreatedPayload, SummaryId, SystemMessageCommittedEvent, SystemMessageCommittedPayload, SystemPromptText, TextDeltaEvent, TextDeltaPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallId, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolName, ToolParamsDeltaEvent, ToolParamsDeltaPayload, ToolParamsEndEvent, ToolParamsEndPayload, ToolParamsStartEvent, ToolParamsStartPayload, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TraceStatusEvent, TraceStatusKind, TraceStatusPayload, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnId, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UnixEpochMillis, UsagePayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageContent, UserMessageDisposition, UserMessagePart, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, buildEDATraceparent, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, comparePosition, contextProjectedEventType, contextRebasedEventType, decodeDurableEventSync, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, durableEventEnvelope, durablePosition, effectDurableAgentNamespace, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, interpretLegacyAttemptForReduction, makeEDAEventTrace, makeEDARunTrace, makeEDATraceContext, makeEDATraceMetadataFromParent, makeEventType, makeRootEDAEventTrace, makeRootEDATraceMetadata, messageQueuePausedEventType, parseEDATraceparent, pendingMessagesPausedEventType, reasoningDeltaEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runSchedulingDeliveredEventType, runSchedulingGrantedEventType, runSchedulingInvalidatedEventType, runSchedulingRequestedEventType, runStartedEventType, schemaV1, sessionConfiguredEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, subscriberStatusEventType, summaryCreatedEventType, systemMessageCommittedEventType, textDeltaEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, toolParamsDeltaEventType, toolParamsEndEventType, toolParamsStartEventType, traceStatusEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
7
+ import { CommittedCommandTerminalEvent, EDARuntime, EDARuntimeConfig } from "./services/runtime.js";
8
+ export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateId, BaseStateRequestedEvent, BaseStateRequestedPayload, CancelPendingMessageCommand, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandId, CommandIdempotencyKey, CommandStartedEvent, CommandStartedPayload, CommittedCommandTerminalEvent, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionId, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, ContextVersion, CorrelationId, CurrentEDADurableEvent, DecodedDurableEvent, DurableEventEnvelope, DurablePosition, DurableSubSequenceNumber, EDACommand, EDADurableEvent, EDADurableEventV1, EDAEphemeralEvent, EDAEventTrace, EDARunTrace, EDARuntime, EDARuntimeConfig, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, EphemeralEventEnvelope, EventDurability, EventEnvelope, EventId, EventNamespace, EventType, FailurePayload, ForeignDurableEvent, GrantRunCommand, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceId, InferenceStartedEvent, InferenceStartedPayload, LegacyAssistantMessageCommittedEvent, LegacyAttemptEvent, LegacyToolCallCreatedEvent, LegacyTurnAttemptCompletedEvent, LegacyTurnAttemptStartedEvent, MessageEvent, MessageId, MessageQueuePausedEvent, MessageQueuePausedPayload, ModelSelectionPayload, ModelStreamEvent, NonNegativeInt, PendingMessageCancellationReason, PendingMessagesPausedEvent, PendingMessagesPausedPayload, Position, PositionOrder, PositionedEvent, PromotePendingMessageCommand, ProviderPartId, ReasoningDeltaEvent, ReasoningDeltaPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, ResumePendingMessagesCommand, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunId, RunInterruptedEvent, RunInterruptedPayload, RunRequestId, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, RuntimeStatusEvent, SchemaVersion, SequenceNumber, SessionConfiguredEvent, SessionId, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnCommand, StopTurnRequestedEvent, StopTurnRequestedPayload, SubSequenceNumber, SubmitMessageCommand, SubmitMessageDisposition, SubscriberStatusEvent, SubscriberStatusKind, SubscriberStatusPayload, SummaryCreatedEvent, SummaryCreatedPayload, SummaryId, SystemMessageCommittedEvent, SystemMessageCommittedPayload, SystemPromptText, TextDeltaEvent, TextDeltaPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallId, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolName, ToolParamsDeltaEvent, ToolParamsDeltaPayload, ToolParamsEndEvent, ToolParamsEndPayload, ToolParamsStartEvent, ToolParamsStartPayload, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TraceStatusEvent, TraceStatusKind, TraceStatusPayload, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnId, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UnixEpochMillis, UsagePayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageContent, UserMessageDisposition, UserMessagePart, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, buildEDATraceparent, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, comparePosition, contextProjectedEventType, contextRebasedEventType, decodeDurableEventSync, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, durableEventEnvelope, durablePosition, effectDurableAgentNamespace, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, interpretLegacyAttemptForReduction, makeEDAEventTrace, makeEDARunTrace, makeEDATraceContext, makeEDATraceMetadataFromParent, makeEventType, makeRootEDAEventTrace, makeRootEDATraceMetadata, messageQueuePausedEventType, parseEDATraceparent, pendingMessagesPausedEventType, reasoningDeltaEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runSchedulingDeliveredEventType, runSchedulingGrantedEventType, runSchedulingInvalidatedEventType, runSchedulingRequestedEventType, runStartedEventType, schemaV1, sessionConfiguredEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, subscriberStatusEventType, summaryCreatedEventType, systemMessageCommittedEventType, textDeltaEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, toolParamsDeltaEventType, toolParamsEndEventType, toolParamsStartEventType, traceStatusEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };