effect-durable-agent 0.1.0-alpha.14 → 0.1.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{command-queues-CSEl1yrH.d.ts → command-queues-CtOtDZm3.d.ts} +2 -2
- package/dist/{compaction-DYAlYxx5.d.ts → compaction-BfzzyWko.d.ts} +4 -4
- package/dist/{compaction-0k8zCJgB.js → compaction-CCdfxYkq.js} +2 -2
- package/dist/{compaction-0k8zCJgB.js.map → compaction-CCdfxYkq.js.map} +1 -1
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/reduced-state-schema.js +1 -1
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/domain/reduced-state.js +1 -1
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/{durable-BPHVFVvV.js → durable-D_tjjz4B.js} +85 -4
- package/dist/{durable-BPHVFVvV.js.map → durable-D_tjjz4B.js.map} +1 -1
- package/dist/{durable-DeLCAvbw.d.ts → durable-RSiz3YBK.d.ts} +766 -5
- package/dist/{event-factory-EL4szNWm.d.ts → event-factory-CClLXzI9.d.ts} +3 -3
- package/dist/{event-factory-QuC_UvyP.js → event-factory-CX0_laE5.js} +2 -2
- package/dist/{event-factory-QuC_UvyP.js.map → event-factory-CX0_laE5.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/{message-transcript-CmCHC1Pg.d.ts → message-transcript-CEp0gCSQ.d.ts} +2 -2
- package/dist/{prompt-projector-_Zxe7dlE.d.ts → prompt-projector-Dh1-qvCH.d.ts} +2 -2
- package/dist/{reduced-state-Bz68V2H8.js → reduced-state-BAKvToAh.js} +3 -3
- package/dist/reduced-state-BAKvToAh.js.map +1 -0
- package/dist/{run-scheduler-BBqZ0Ate.d.ts → run-scheduler-CpPjFQD7.d.ts} +2 -2
- package/dist/{runtime-CH6Ll_Rv.d.ts → runtime-CX1M7jgX.d.ts} +4 -4
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/compaction.js +1 -1
- package/dist/services/prompt-projector.d.ts +1 -1
- package/dist/services/run-scheduler.d.ts +2 -2
- package/dist/services/runtime-layer.d.ts +6 -6
- package/dist/services/runtime-layer.js +4 -4
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +2 -2
- package/dist/services/session-query.d.ts +1 -1
- package/dist/services/session-query.js +2 -2
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-state.js +1 -1
- package/dist/services/session-store.js +1 -1
- package/dist/services/sink-registry.d.ts +2 -2
- package/dist/services/sink-registry.js +1 -1
- package/dist/{session-query-CMeJog1g.d.ts → session-query-BHB4OxR_.d.ts} +5 -5
- package/dist/{session-state-DtPwg_EP.js → session-state-CWKwjwdx.js} +6 -6
- package/dist/{session-state-DtPwg_EP.js.map → session-state-CWKwjwdx.js.map} +1 -1
- package/dist/{session-state-D4g0kV_K.d.ts → session-state-dE07Zzcr.d.ts} +12 -12
- package/dist/{sink-registry-CAtl5OWV.d.ts → sink-registry-CEBjrMd_.d.ts} +44 -15
- package/dist/{sink-registry-B7cG7gxK.js → sink-registry-DUkifMag.js} +43 -31
- package/dist/sink-registry-DUkifMag.js.map +1 -0
- package/dist/testkit/layers.d.ts +8 -8
- package/dist/testkit/layers.js +4 -4
- package/dist/types/events/durable.d.ts +2 -2
- package/dist/types/events/durable.js +2 -2
- package/dist/types/events.d.ts +2 -2
- package/dist/types/events.js +2 -2
- package/dist/websocket.d.ts +187 -1
- package/dist/websocket.js +1 -1
- package/package.json +1 -1
- package/dist/reduced-state-Bz68V2H8.js.map +0 -1
- package/dist/sink-registry-B7cG7gxK.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, EDADurableEvent, EDADurableEventV1, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, PendingMessagesPausedEvent, PendingMessagesPausedPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, messageQueuePausedEventType, pendingMessagesPausedEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runSchedulingDeliveredEventType, runSchedulingGrantedEventType, runSchedulingInvalidatedEventType, runSchedulingRequestedEventType, runStartedEventType, sessionConfiguredEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, summaryCreatedEventType, systemMessageCommittedEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
|
|
1
|
+
import { $ as LegacyTurnAttemptCompletedEvent, $n as runInterruptedEventType, $t as ToolCallRejectionReason, A as CompactionFailedEvent, An as baseStateRequestedEventType, At as SteeringMessageCancelledPayload, B as ContextRebasedPayload, Bn as contextProjectedEventType, Bt as SystemMessageCommittedEvent, C as CommandEvent, Cn as UserMessageSubmittedEvent, Cr as userMessagePromotedEventType, Ct as RunSchedulingInvalidatedPayload, D as CommandStartedPayload, Dn as assistantPartialCommittedEventType, Dt as RunStartedPayload, E as CommandStartedEvent, En as assistantMessageImportedEventType, Et as RunStartedEvent, F as CompactionStartedPayload, Fn as commandStartedEventType, Ft as StopTurnAppliedPayload, G as InferenceEvent, Gn as inferenceFailedEventType, Gt as ToolCallCreatedPayload, H as EDADurableEventV1, Hn as decodeUnknownEDADurableEvent, Ht as ToolCallCompletedEvent, I as ContextAndCompactionEvent, In as compactionCompletedEventType, It as StopTurnRequestedEvent, J as InferenceStartedEvent, Jn as messageQueuePausedEventType, Jt as ToolCallFailedPayload, K as InferenceFailedEvent, Kn as inferenceStartedEventType, Kt as ToolCallEvent, L as ContextProjectedEvent, Ln as compactionFailedEventType, Lt as StopTurnRequestedPayload, M as CompactionRequestedEvent, Mn as commandCancelledEventType, Mt as SteeringMessageQueuedPayload, N as CompactionRequestedPayload, Nn as commandCompletedEventType, Nt as StopControlEvent, O as CompactionCompletedEvent, On as baseStateCreatedEventType, Ot as SessionConfiguredEvent, P as CompactionStartedEvent, Pn as commandFailedEventType, Pt as StopTurnAppliedEvent, Q as LegacyToolCallCreatedEvent, Qn as runFailedEventType, Qt as ToolCallRejectionFeedback, R as ContextProjectedPayload, Rn as compactionRequestedEventType, Rt as SummaryCreatedEvent, S as CommandCompletedPayload, Sn as UserMessagePromotedPayload, Sr as userMessageCommittedEventType, St as RunSchedulingInvalidatedEvent, T as CommandFailedPayload, Tn as assistantMessageCommittedEventType, Tt as RunSchedulingRequestedPayload, U as InferenceCompletedEvent, Un as decodeUnknownEDADurableEventSync, Ut as ToolCallCompletedPayload, V as EDADurableEvent, Vn as contextRebasedEventType, Vt as SystemMessageCommittedPayload, W as InferenceCompletedPayload, Wn as inferenceCompletedEventType, Wt as ToolCallCreatedEvent, X as LegacyAssistantMessageCommittedEvent, Xn as recoveryCompletedEventType, Xt as ToolCallRejectedEvent, Y as InferenceStartedPayload, Yn as pendingMessagesPausedEventType, Yt as ToolCallPromptPart, Z as LegacyAttemptEvent, Zn as runCompletedEventType, Zt as ToolCallRejectedPayload, _ as CommandAdmittedEvent, _n as UserMessageCancelledPayload, _r as turnCompletedEventType, _t as RunSchedulingDeliveredEvent, a as AssistantMessageImportedPayload, an as ToolSuccessPromptPart, ar as sessionConfiguredEventType, at as PendingMessagesPausedPayload, b as CommandCancelledPayload, bn as UserMessageDisposition, br as turnStoppedEventType, bt as RunSchedulingGrantedEvent, c as AssistantPromptPart, cn as TurnEvent, cr as stopTurnAppliedEventType, ct as RecoveryContinuation, d as BaseStateCreatedPayload, dn as TurnStartedEvent, dr as systemMessageCommittedEventType, dt as RunCompletedPayload, en as ToolCallStartedEvent, er as runSchedulingDeliveredEventType, et as LegacyTurnAttemptStartedEvent, f as BaseStateEvent, fn as TurnStartedPayload, fr as toolCallCompletedEventType, ft as RunEvent, g as BaseStateRequestedPayload, gn as UserMessageCancelledEvent, gr as toolCallStartedEventType, gt as RunInterruptedPayload, h as BaseStateRequestedEvent, hn as UserMessageCancellationReason, hr as toolCallRejectedEventType, ht as RunInterruptedEvent, i as AssistantMessageImportedEvent, in as ToolRejectionPromptPart, ir as runStartedEventType, it as PendingMessagesPausedEvent, j as CompactionFailedPayload, jn as commandAdmittedEventType, jt as SteeringMessageQueuedEvent, k as CompactionCompletedPayload, kn as baseStateFailedEventType, kt as SteeringMessageCancelledEvent, l as AssistantPromptParts, ln as TurnFailedEvent, lr as stopTurnRequestedEventType, lt as RecoveryEvent, m as BaseStateFailedPayload, mn as TurnStoppedPayload, mr as toolCallFailedEventType, mt as RunFailedPayload, n as AssistantMessageCommittedPayload, nn as ToolFailurePromptPart, nr as runSchedulingInvalidatedEventType, nt as MessageQueuePausedEvent, o as AssistantPartialCommittedEvent, on as TurnCompletedEvent, or as steeringMessageCancelledEventType, ot as RecoveryCompletedEvent, p as BaseStateFailedEvent, pn as TurnStoppedEvent, pr as toolCallCreatedEventType, pt as RunFailedEvent, q as InferenceFailedPayload, qn as interpretLegacyAttemptForReduction, qt as ToolCallFailedEvent, r as AssistantMessageContent, rn as ToolPromptPart, rr as runSchedulingRequestedEventType, rt as MessageQueuePausedPayload, s as AssistantPartialCommittedPayload, sn as TurnCompletedPayload, sr as steeringMessageQueuedEventType, st as RecoveryCompletedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallStartedPayload, tr as runSchedulingGrantedEventType, tt as MessageEvent, u as BaseStateCreatedEvent, un as TurnFailedPayload, ur as summaryCreatedEventType, ut as RunCompletedEvent, v as CommandAdmittedPayload, vn as UserMessageCommittedEvent, vr as turnFailedEventType, vt as RunSchedulingDeliveredPayload, w as CommandFailedEvent, wn as UserMessageSubmittedPayload, wr as userMessageSubmittedEventType, wt as RunSchedulingRequestedEvent, x as CommandCompletedEvent, xn as UserMessagePromotedEvent, xr as userMessageCancelledEventType, xt as RunSchedulingGrantedPayload, y as CommandCancelledEvent, yn as UserMessageCommittedPayload, yr as turnStartedEventType, yt as RunSchedulingEvent, z as ContextRebasedEvent, zn as compactionStartedEventType, zt as SummaryCreatedPayload } from "../../durable-D_tjjz4B.js";
|
|
2
|
+
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, EDADurableEvent, EDADurableEventV1, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, LegacyAssistantMessageCommittedEvent, LegacyAttemptEvent, LegacyToolCallCreatedEvent, LegacyTurnAttemptCompletedEvent, LegacyTurnAttemptStartedEvent, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, PendingMessagesPausedEvent, PendingMessagesPausedPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, interpretLegacyAttemptForReduction, messageQueuePausedEventType, pendingMessagesPausedEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runSchedulingDeliveredEventType, runSchedulingGrantedEventType, runSchedulingInvalidatedEventType, runSchedulingRequestedEventType, runStartedEventType, sessionConfiguredEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, summaryCreatedEventType, systemMessageCommittedEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
|
package/dist/types/events.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as UsagePayload, a as EventNamespace, b as schemaV1, c as FailurePayload, d as PositionedEvent, f as ProviderPartId, g as UnixEpochMillis, h as ToolName, i as EventEnvelope, l as ModelSelectionPayload, m as SystemPromptText, n as EphemeralEventEnvelope, o as EventType, p as SchemaVersion, r as EventDurability, s as EventTypeName, t as DurableEventEnvelope, u as NonNegativeInt, v as effectDurableAgentNamespace, y as makeEventType } from "../envelope-DkZyMIgp.js";
|
|
2
2
|
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";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $ as LegacyTurnAttemptCompletedEvent, $n as runInterruptedEventType, $t as ToolCallRejectionReason, A as CompactionFailedEvent, An as baseStateRequestedEventType, At as SteeringMessageCancelledPayload, B as ContextRebasedPayload, Bn as contextProjectedEventType, Bt as SystemMessageCommittedEvent, C as CommandEvent, Cn as UserMessageSubmittedEvent, Cr as userMessagePromotedEventType, Ct as RunSchedulingInvalidatedPayload, D as CommandStartedPayload, Dn as assistantPartialCommittedEventType, Dt as RunStartedPayload, E as CommandStartedEvent, En as assistantMessageImportedEventType, Et as RunStartedEvent, F as CompactionStartedPayload, Fn as commandStartedEventType, Ft as StopTurnAppliedPayload, G as InferenceEvent, Gn as inferenceFailedEventType, Gt as ToolCallCreatedPayload, H as EDADurableEventV1, Hn as decodeUnknownEDADurableEvent, Ht as ToolCallCompletedEvent, I as ContextAndCompactionEvent, In as compactionCompletedEventType, It as StopTurnRequestedEvent, J as InferenceStartedEvent, Jn as messageQueuePausedEventType, Jt as ToolCallFailedPayload, K as InferenceFailedEvent, Kn as inferenceStartedEventType, Kt as ToolCallEvent, L as ContextProjectedEvent, Ln as compactionFailedEventType, Lt as StopTurnRequestedPayload, M as CompactionRequestedEvent, Mn as commandCancelledEventType, Mt as SteeringMessageQueuedPayload, N as CompactionRequestedPayload, Nn as commandCompletedEventType, Nt as StopControlEvent, O as CompactionCompletedEvent, On as baseStateCreatedEventType, Ot as SessionConfiguredEvent, P as CompactionStartedEvent, Pn as commandFailedEventType, Pt as StopTurnAppliedEvent, Q as LegacyToolCallCreatedEvent, Qn as runFailedEventType, Qt as ToolCallRejectionFeedback, R as ContextProjectedPayload, Rn as compactionRequestedEventType, Rt as SummaryCreatedEvent, S as CommandCompletedPayload, Sn as UserMessagePromotedPayload, Sr as userMessageCommittedEventType, St as RunSchedulingInvalidatedEvent, T as CommandFailedPayload, Tn as assistantMessageCommittedEventType, Tt as RunSchedulingRequestedPayload, U as InferenceCompletedEvent, Un as decodeUnknownEDADurableEventSync, Ut as ToolCallCompletedPayload, V as EDADurableEvent, Vn as contextRebasedEventType, Vt as SystemMessageCommittedPayload, W as InferenceCompletedPayload, Wn as inferenceCompletedEventType, Wt as ToolCallCreatedEvent, X as LegacyAssistantMessageCommittedEvent, Xn as recoveryCompletedEventType, Xt as ToolCallRejectedEvent, Y as InferenceStartedPayload, Yn as pendingMessagesPausedEventType, Yt as ToolCallPromptPart, Z as LegacyAttemptEvent, Zn as runCompletedEventType, Zt as ToolCallRejectedPayload, _ as CommandAdmittedEvent, _n as UserMessageCancelledPayload, _r as turnCompletedEventType, _t as RunSchedulingDeliveredEvent, a as AssistantMessageImportedPayload, an as ToolSuccessPromptPart, ar as sessionConfiguredEventType, at as PendingMessagesPausedPayload, b as CommandCancelledPayload, bn as UserMessageDisposition, br as turnStoppedEventType, bt as RunSchedulingGrantedEvent, c as AssistantPromptPart, cn as TurnEvent, cr as stopTurnAppliedEventType, ct as RecoveryContinuation, d as BaseStateCreatedPayload, dn as TurnStartedEvent, dr as systemMessageCommittedEventType, dt as RunCompletedPayload, en as ToolCallStartedEvent, er as runSchedulingDeliveredEventType, et as LegacyTurnAttemptStartedEvent, f as BaseStateEvent, fn as TurnStartedPayload, fr as toolCallCompletedEventType, ft as RunEvent, g as BaseStateRequestedPayload, gn as UserMessageCancelledEvent, gr as toolCallStartedEventType, gt as RunInterruptedPayload, h as BaseStateRequestedEvent, hn as UserMessageCancellationReason, hr as toolCallRejectedEventType, ht as RunInterruptedEvent, i as AssistantMessageImportedEvent, in as ToolRejectionPromptPart, ir as runStartedEventType, it as PendingMessagesPausedEvent, j as CompactionFailedPayload, jn as commandAdmittedEventType, jt as SteeringMessageQueuedEvent, k as CompactionCompletedPayload, kn as baseStateFailedEventType, kt as SteeringMessageCancelledEvent, l as AssistantPromptParts, ln as TurnFailedEvent, lr as stopTurnRequestedEventType, lt as RecoveryEvent, m as BaseStateFailedPayload, mn as TurnStoppedPayload, mr as toolCallFailedEventType, mt as RunFailedPayload, n as AssistantMessageCommittedPayload, nn as ToolFailurePromptPart, nr as runSchedulingInvalidatedEventType, nt as MessageQueuePausedEvent, o as AssistantPartialCommittedEvent, on as TurnCompletedEvent, or as steeringMessageCancelledEventType, ot as RecoveryCompletedEvent, p as BaseStateFailedEvent, pn as TurnStoppedEvent, pr as toolCallCreatedEventType, pt as RunFailedEvent, q as InferenceFailedPayload, qn as interpretLegacyAttemptForReduction, qt as ToolCallFailedEvent, r as AssistantMessageContent, rn as ToolPromptPart, rr as runSchedulingRequestedEventType, rt as MessageQueuePausedPayload, s as AssistantPartialCommittedPayload, sn as TurnCompletedPayload, sr as steeringMessageQueuedEventType, st as RecoveryCompletedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallStartedPayload, tr as runSchedulingGrantedEventType, tt as MessageEvent, u as BaseStateCreatedEvent, un as TurnFailedPayload, ur as summaryCreatedEventType, ut as RunCompletedEvent, v as CommandAdmittedPayload, vn as UserMessageCommittedEvent, vr as turnFailedEventType, vt as RunSchedulingDeliveredPayload, w as CommandFailedEvent, wn as UserMessageSubmittedPayload, wr as userMessageSubmittedEventType, wt as RunSchedulingRequestedEvent, x as CommandCompletedEvent, xn as UserMessagePromotedEvent, xr as userMessageCancelledEventType, xt as RunSchedulingGrantedPayload, y as CommandCancelledEvent, yn as UserMessageCommittedPayload, yr as turnStartedEventType, yt as RunSchedulingEvent, z as ContextRebasedEvent, zn as compactionStartedEventType, zt as SummaryCreatedPayload } from "../durable-RSiz3YBK.js";
|
|
4
4
|
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-LZFNoESe.js";
|
|
5
|
-
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, DurableEventEnvelope, EDADurableEvent, EDADurableEventV1, EDAEphemeralEvent, EDAEventTrace, EDARunTrace, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, EphemeralEventEnvelope, EventDurability, EventEnvelope, EventNamespace, EventType, EventTypeName, FailurePayload, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, ModelSelectionPayload, ModelStreamEvent, NonNegativeInt, PendingMessagesPausedEvent, PendingMessagesPausedPayload, PositionedEvent, ProviderPartId, ReasoningDeltaEvent, ReasoningDeltaPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, RuntimeStatusEvent, SchemaVersion, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SubscriberStatusEvent, SubscriberStatusKind, SubscriberStatusPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, SystemPromptText, TextDeltaEvent, TextDeltaPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, 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, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UnixEpochMillis, UsagePayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, buildEDATraceparent, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, effectDurableAgentNamespace, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, 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 };
|
|
5
|
+
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, DurableEventEnvelope, EDADurableEvent, EDADurableEventV1, EDAEphemeralEvent, EDAEventTrace, EDARunTrace, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, EphemeralEventEnvelope, EventDurability, EventEnvelope, EventNamespace, EventType, EventTypeName, FailurePayload, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, LegacyAssistantMessageCommittedEvent, LegacyAttemptEvent, LegacyToolCallCreatedEvent, LegacyTurnAttemptCompletedEvent, LegacyTurnAttemptStartedEvent, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, ModelSelectionPayload, ModelStreamEvent, NonNegativeInt, PendingMessagesPausedEvent, PendingMessagesPausedPayload, PositionedEvent, ProviderPartId, ReasoningDeltaEvent, ReasoningDeltaPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, RuntimeStatusEvent, SchemaVersion, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SubscriberStatusEvent, SubscriberStatusKind, SubscriberStatusPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, SystemPromptText, TextDeltaEvent, TextDeltaPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, 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, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UnixEpochMillis, UsagePayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, buildEDATraceparent, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, 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/types/events.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToolCallId } from "./core.js";
|
|
2
2
|
import { EDAEventTrace, EDARunTrace, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, buildEDATraceparent, makeEDAEventTrace, makeEDARunTrace, makeEDATraceContext, makeEDATraceMetadataFromParent, makeRootEDAEventTrace, makeRootEDATraceMetadata, parseEDATraceparent } from "./tracing.js";
|
|
3
3
|
import { _ as effectDurableAgentNamespace, a as EventNamespace, c as ModelSelectionPayload, d as ProviderPartId, f as SchemaVersion, g as UsagePayload, h as UnixEpochMillis, i as EventEnvelope, l as NonNegativeInt, m as ToolName, n as EphemeralEventEnvelope, o as EventType, p as SystemPromptText, r as EventDurability, s as FailurePayload, t as DurableEventEnvelope, u as PositionedEvent, v as makeEventType, y as schemaV1 } from "../envelope-DxQzo5rN.js";
|
|
4
|
-
import { $ as
|
|
4
|
+
import { $ as LegacyTurnAttemptCompletedEvent, $n as runInterruptedEventType, $t as ToolCallRejectionReason, A as CompactionFailedEvent, An as baseStateRequestedEventType, At as SteeringMessageCancelledPayload, B as ContextRebasedPayload, Bn as contextProjectedEventType, Bt as SystemMessageCommittedEvent, C as CommandEvent, Cn as UserMessageSubmittedEvent, Cr as userMessagePromotedEventType, Ct as RunSchedulingInvalidatedPayload, D as CommandStartedPayload, Dn as assistantPartialCommittedEventType, Dt as RunStartedPayload, E as CommandStartedEvent, En as assistantMessageImportedEventType, Et as RunStartedEvent, F as CompactionStartedPayload, Fn as commandStartedEventType, Ft as StopTurnAppliedPayload, G as InferenceEvent, Gn as inferenceFailedEventType, Gt as ToolCallCreatedPayload, H as EDADurableEventV1, Hn as decodeUnknownEDADurableEvent, Ht as ToolCallCompletedEvent, I as ContextAndCompactionEvent, In as compactionCompletedEventType, It as StopTurnRequestedEvent, J as InferenceStartedEvent, Jn as messageQueuePausedEventType, Jt as ToolCallFailedPayload, K as InferenceFailedEvent, Kn as inferenceStartedEventType, Kt as ToolCallEvent, L as ContextProjectedEvent, Ln as compactionFailedEventType, Lt as StopTurnRequestedPayload, M as CompactionRequestedEvent, Mn as commandCancelledEventType, Mt as SteeringMessageQueuedPayload, N as CompactionRequestedPayload, Nn as commandCompletedEventType, Nt as StopControlEvent, O as CompactionCompletedEvent, On as baseStateCreatedEventType, Ot as SessionConfiguredEvent, P as CompactionStartedEvent, Pn as commandFailedEventType, Pt as StopTurnAppliedEvent, Q as LegacyToolCallCreatedEvent, Qn as runFailedEventType, Qt as ToolCallRejectionFeedback, R as ContextProjectedPayload, Rn as compactionRequestedEventType, Rt as SummaryCreatedEvent, S as CommandCompletedPayload, Sn as UserMessagePromotedPayload, Sr as userMessageCommittedEventType, St as RunSchedulingInvalidatedEvent, T as CommandFailedPayload, Tn as assistantMessageCommittedEventType, Tr as ephemeralEventSchema, Tt as RunSchedulingRequestedPayload, U as InferenceCompletedEvent, Un as decodeUnknownEDADurableEventSync, Ut as ToolCallCompletedPayload, V as EDADurableEvent, Vn as contextRebasedEventType, Vt as SystemMessageCommittedPayload, W as InferenceCompletedPayload, Wn as inferenceCompletedEventType, Wt as ToolCallCreatedEvent, X as LegacyAssistantMessageCommittedEvent, Xn as recoveryCompletedEventType, Xt as ToolCallRejectedEvent, Y as InferenceStartedPayload, Yn as pendingMessagesPausedEventType, Yt as ToolCallPromptPart, Z as LegacyAttemptEvent, Zn as runCompletedEventType, Zt as ToolCallRejectedPayload, _ as CommandAdmittedEvent, _n as UserMessageCancelledPayload, _r as turnCompletedEventType, _t as RunSchedulingDeliveredEvent, a as AssistantMessageImportedPayload, an as ToolSuccessPromptPart, ar as sessionConfiguredEventType, at as PendingMessagesPausedPayload, b as CommandCancelledPayload, bn as UserMessageDisposition, br as turnStoppedEventType, bt as RunSchedulingGrantedEvent, c as AssistantPromptPart, cn as TurnEvent, cr as stopTurnAppliedEventType, ct as RecoveryContinuation, d as BaseStateCreatedPayload, dn as TurnStartedEvent, dr as systemMessageCommittedEventType, dt as RunCompletedPayload, en as ToolCallStartedEvent, er as runSchedulingDeliveredEventType, et as LegacyTurnAttemptStartedEvent, f as BaseStateEvent, fn as TurnStartedPayload, fr as toolCallCompletedEventType, ft as RunEvent, g as BaseStateRequestedPayload, gn as UserMessageCancelledEvent, gr as toolCallStartedEventType, gt as RunInterruptedPayload, h as BaseStateRequestedEvent, hn as UserMessageCancellationReason, hr as toolCallRejectedEventType, ht as RunInterruptedEvent, i as AssistantMessageImportedEvent, in as ToolRejectionPromptPart, ir as runStartedEventType, it as PendingMessagesPausedEvent, j as CompactionFailedPayload, jn as commandAdmittedEventType, jt as SteeringMessageQueuedEvent, k as CompactionCompletedPayload, kn as baseStateFailedEventType, kt as SteeringMessageCancelledEvent, l as AssistantPromptParts, ln as TurnFailedEvent, lr as stopTurnRequestedEventType, lt as RecoveryEvent, m as BaseStateFailedPayload, mn as TurnStoppedPayload, mr as toolCallFailedEventType, mt as RunFailedPayload, n as AssistantMessageCommittedPayload, nn as ToolFailurePromptPart, nr as runSchedulingInvalidatedEventType, nt as MessageQueuePausedEvent, o as AssistantPartialCommittedEvent, on as TurnCompletedEvent, or as steeringMessageCancelledEventType, ot as RecoveryCompletedEvent, p as BaseStateFailedEvent, pn as TurnStoppedEvent, pr as toolCallCreatedEventType, pt as RunFailedEvent, q as InferenceFailedPayload, qn as interpretLegacyAttemptForReduction, qt as ToolCallFailedEvent, r as AssistantMessageContent, rn as ToolPromptPart, rr as runSchedulingRequestedEventType, rt as MessageQueuePausedPayload, s as AssistantPartialCommittedPayload, sn as TurnCompletedPayload, sr as steeringMessageQueuedEventType, st as RecoveryCompletedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallStartedPayload, tr as runSchedulingGrantedEventType, tt as MessageEvent, u as BaseStateCreatedEvent, un as TurnFailedPayload, ur as summaryCreatedEventType, ut as RunCompletedEvent, v as CommandAdmittedPayload, vn as UserMessageCommittedEvent, vr as turnFailedEventType, vt as RunSchedulingDeliveredPayload, w as CommandFailedEvent, wn as UserMessageSubmittedPayload, wr as userMessageSubmittedEventType, wt as RunSchedulingRequestedEvent, x as CommandCompletedEvent, xn as UserMessagePromotedEvent, xr as userMessageCancelledEventType, xt as RunSchedulingGrantedPayload, y as CommandCancelledEvent, yn as UserMessageCommittedPayload, yr as turnStartedEventType, yt as RunSchedulingEvent, z as ContextRebasedEvent, zn as compactionStartedEventType, zt as SummaryCreatedPayload } from "../durable-D_tjjz4B.js";
|
|
5
5
|
import * as Schema from "effect/Schema";
|
|
6
6
|
//#region src/types/events/ephemeral.ts
|
|
7
7
|
/** Event type values for ephemeral model stream events. */
|
|
@@ -86,6 +86,6 @@ const RuntimeStatusEvent = Schema.Union([SubscriberStatusEvent, TraceStatusEvent
|
|
|
86
86
|
/** Built-in ephemeral event union for framework-owned live-only updates. */
|
|
87
87
|
const EDAEphemeralEvent = Schema.Union([ModelStreamEvent, RuntimeStatusEvent]);
|
|
88
88
|
//#endregion
|
|
89
|
-
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, DurableEventEnvelope, EDADurableEvent, EDADurableEventV1, EDAEphemeralEvent, EDAEventTrace, EDARunTrace, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, EphemeralEventEnvelope, EventDurability, EventEnvelope, EventNamespace, EventType, FailurePayload, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, ModelSelectionPayload, ModelStreamEvent, NonNegativeInt, PendingMessagesPausedEvent, PendingMessagesPausedPayload, PositionedEvent, ProviderPartId, ReasoningDeltaEvent, ReasoningDeltaPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, RuntimeStatusEvent, SchemaVersion, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SubscriberStatusEvent, SubscriberStatusKind, SubscriberStatusPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, SystemPromptText, TextDeltaEvent, TextDeltaPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, 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, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UnixEpochMillis, UsagePayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, buildEDATraceparent, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, effectDurableAgentNamespace, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, 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 };
|
|
89
|
+
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, DurableEventEnvelope, EDADurableEvent, EDADurableEventV1, EDAEphemeralEvent, EDAEventTrace, EDARunTrace, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, EphemeralEventEnvelope, EventDurability, EventEnvelope, EventNamespace, EventType, FailurePayload, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, LegacyAssistantMessageCommittedEvent, LegacyAttemptEvent, LegacyToolCallCreatedEvent, LegacyTurnAttemptCompletedEvent, LegacyTurnAttemptStartedEvent, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, ModelSelectionPayload, ModelStreamEvent, NonNegativeInt, PendingMessagesPausedEvent, PendingMessagesPausedPayload, PositionedEvent, ProviderPartId, ReasoningDeltaEvent, ReasoningDeltaPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, RuntimeStatusEvent, SchemaVersion, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SubscriberStatusEvent, SubscriberStatusKind, SubscriberStatusPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, SystemPromptText, TextDeltaEvent, TextDeltaPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, 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, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UnixEpochMillis, UsagePayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, buildEDATraceparent, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, 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 };
|
|
90
90
|
|
|
91
91
|
//# sourceMappingURL=events.js.map
|
package/dist/websocket.d.ts
CHANGED
|
@@ -89,7 +89,193 @@ type EDAWebSocketEventConsumerPolicy<Event extends {
|
|
|
89
89
|
readonly type: string;
|
|
90
90
|
}, Disposition> = Readonly<Record<Event["type"], Disposition>>;
|
|
91
91
|
/** Complete framework-owned event union present on every EDA WebSocket. */
|
|
92
|
-
declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
92
|
+
declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
93
|
+
readonly namespace: Schema.Literal<string>;
|
|
94
|
+
readonly type: Schema.Literal<"TurnAttemptStarted">;
|
|
95
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
96
|
+
readonly payload: Schema.Struct<{
|
|
97
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
98
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
99
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
100
|
+
}>;
|
|
101
|
+
readonly durability: Schema.Literal<"durable">;
|
|
102
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
103
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
104
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
105
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
106
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
107
|
+
readonly span: Schema.Struct<{
|
|
108
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
109
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
110
|
+
readonly sampled: Schema.Boolean;
|
|
111
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
112
|
+
}>;
|
|
113
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
114
|
+
readonly context: Schema.Struct<{
|
|
115
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
116
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
117
|
+
readonly sampled: Schema.Boolean;
|
|
118
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
119
|
+
}>;
|
|
120
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
121
|
+
}>>;
|
|
122
|
+
}>>;
|
|
123
|
+
}>, Schema.Struct<{
|
|
124
|
+
readonly namespace: Schema.Literal<string>;
|
|
125
|
+
readonly type: Schema.Literal<"TurnAttemptCompleted">;
|
|
126
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
127
|
+
readonly payload: Schema.Struct<{
|
|
128
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
129
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
130
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
131
|
+
readonly finishReason: Schema.optionalKey<Schema.String>;
|
|
132
|
+
readonly usage: Schema.optionalKey<Schema.Struct<{
|
|
133
|
+
readonly inputTokens: Schema.optionalKey<Schema.Int>;
|
|
134
|
+
readonly cachedInputTokens: Schema.optionalKey<Schema.Int>;
|
|
135
|
+
readonly cacheWriteInputTokens: Schema.optionalKey<Schema.Int>;
|
|
136
|
+
readonly outputTokens: Schema.optionalKey<Schema.Int>;
|
|
137
|
+
readonly textTokens: Schema.optionalKey<Schema.Int>;
|
|
138
|
+
readonly reasoningTokens: Schema.optionalKey<Schema.Int>;
|
|
139
|
+
}>>;
|
|
140
|
+
readonly responseMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
141
|
+
readonly finishMetadata: Schema.optionalKey<Schema.Unknown>;
|
|
142
|
+
}>;
|
|
143
|
+
readonly durability: Schema.Literal<"durable">;
|
|
144
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
145
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
146
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
147
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
148
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
149
|
+
readonly span: Schema.Struct<{
|
|
150
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
151
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
152
|
+
readonly sampled: Schema.Boolean;
|
|
153
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
154
|
+
}>;
|
|
155
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
156
|
+
readonly context: Schema.Struct<{
|
|
157
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
158
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
159
|
+
readonly sampled: Schema.Boolean;
|
|
160
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
161
|
+
}>;
|
|
162
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
163
|
+
}>>;
|
|
164
|
+
}>>;
|
|
165
|
+
}>, Schema.Struct<{
|
|
166
|
+
readonly namespace: Schema.Literal<string>;
|
|
167
|
+
readonly type: Schema.Literal<"AssistantMessageCommitted">;
|
|
168
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
169
|
+
readonly payload: Schema.Struct<{
|
|
170
|
+
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
171
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
172
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
173
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
174
|
+
readonly promptParts: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
175
|
+
readonly type: Schema.Literal<"text">;
|
|
176
|
+
readonly text: Schema.String;
|
|
177
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
178
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
179
|
+
}>, Schema.Struct<{
|
|
180
|
+
readonly type: Schema.Literal<"file">;
|
|
181
|
+
readonly mediaType: Schema.String;
|
|
182
|
+
readonly fileName: Schema.optional<Schema.String>;
|
|
183
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
184
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
185
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
186
|
+
}>, Schema.Struct<{
|
|
187
|
+
readonly type: Schema.Literal<"reasoning">;
|
|
188
|
+
readonly text: Schema.String;
|
|
189
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
190
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
191
|
+
}>, Schema.Struct<{
|
|
192
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
193
|
+
readonly id: Schema.String;
|
|
194
|
+
readonly name: Schema.String;
|
|
195
|
+
readonly params: Schema.Unknown;
|
|
196
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
197
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
198
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
199
|
+
}>, Schema.Struct<{
|
|
200
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
201
|
+
readonly id: Schema.String;
|
|
202
|
+
readonly name: Schema.String;
|
|
203
|
+
readonly isFailure: Schema.Boolean;
|
|
204
|
+
readonly result: Schema.Unknown;
|
|
205
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
206
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
207
|
+
}>, Schema.Struct<{
|
|
208
|
+
readonly type: Schema.Literal<"tool-approval-request">;
|
|
209
|
+
readonly approvalId: Schema.String;
|
|
210
|
+
readonly toolCallId: Schema.String;
|
|
211
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
212
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
213
|
+
}>]>>;
|
|
214
|
+
}>;
|
|
215
|
+
readonly durability: Schema.Literal<"durable">;
|
|
216
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
217
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
218
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
219
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
220
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
221
|
+
readonly span: Schema.Struct<{
|
|
222
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
223
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
224
|
+
readonly sampled: Schema.Boolean;
|
|
225
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
226
|
+
}>;
|
|
227
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
228
|
+
readonly context: Schema.Struct<{
|
|
229
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
230
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
231
|
+
readonly sampled: Schema.Boolean;
|
|
232
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
233
|
+
}>;
|
|
234
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
235
|
+
}>>;
|
|
236
|
+
}>>;
|
|
237
|
+
}>, Schema.Struct<{
|
|
238
|
+
readonly namespace: Schema.Literal<string>;
|
|
239
|
+
readonly type: Schema.Literal<"ToolCallCreated">;
|
|
240
|
+
readonly schemaVersion: Schema.Literal<number>;
|
|
241
|
+
readonly payload: Schema.Struct<{
|
|
242
|
+
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
243
|
+
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
244
|
+
readonly attemptId: Schema.brand<Schema.String, "InferenceId">;
|
|
245
|
+
readonly toolCallId: Schema.brand<Schema.String, "ToolCallId">;
|
|
246
|
+
readonly promptPart: Schema.Struct<{
|
|
247
|
+
readonly id: Schema.brand<Schema.NonEmptyString, "ProviderPartId">;
|
|
248
|
+
readonly name: Schema.NonEmptyString;
|
|
249
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
250
|
+
readonly params: Schema.Unknown;
|
|
251
|
+
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
252
|
+
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
253
|
+
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
254
|
+
}>;
|
|
255
|
+
}>;
|
|
256
|
+
readonly durability: Schema.Literal<"durable">;
|
|
257
|
+
readonly eventId: Schema.brand<Schema.String, "EventId">;
|
|
258
|
+
readonly sessionId: Schema.brand<Schema.String, "SessionId">;
|
|
259
|
+
readonly correlationId: Schema.optionalKey<Schema.brand<Schema.String, "CorrelationId">>;
|
|
260
|
+
readonly createdAtMs: Schema.brand<Schema.Int, "UnixEpochMillis">;
|
|
261
|
+
readonly trace: Schema.withConstructorDefault<Schema.Struct<{
|
|
262
|
+
readonly span: Schema.Struct<{
|
|
263
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
264
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
265
|
+
readonly sampled: Schema.Boolean;
|
|
266
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
267
|
+
}>;
|
|
268
|
+
readonly links: Schema.$Array<Schema.Struct<{
|
|
269
|
+
readonly context: Schema.Struct<{
|
|
270
|
+
readonly traceId: Schema.brand<Schema.String, "EDATraceId">;
|
|
271
|
+
readonly spanId: Schema.brand<Schema.String, "EDASpanId">;
|
|
272
|
+
readonly sampled: Schema.Boolean;
|
|
273
|
+
readonly tracestate: Schema.NullOr<Schema.String>;
|
|
274
|
+
}>;
|
|
275
|
+
readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
|
|
276
|
+
}>>;
|
|
277
|
+
}>>;
|
|
278
|
+
}>]>, Schema.Struct<{
|
|
93
279
|
readonly namespace: Schema.Literal<string>;
|
|
94
280
|
readonly type: Schema.Literal<"SessionConfigured">;
|
|
95
281
|
readonly schemaVersion: Schema.Literal<number>;
|
package/dist/websocket.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Position, SequenceNumber } from "./types/core.js";
|
|
2
2
|
import { h as UnixEpochMillis, i as EventEnvelope, u as PositionedEvent } from "./envelope-DxQzo5rN.js";
|
|
3
|
-
import { V as EDADurableEvent } from "./durable-
|
|
3
|
+
import { V as EDADurableEvent } from "./durable-D_tjjz4B.js";
|
|
4
4
|
import { EDAEphemeralEvent } from "./types/events.js";
|
|
5
5
|
import * as Effect from "effect/Effect";
|
|
6
6
|
import * as Schema from "effect/Schema";
|
package/package.json
CHANGED