effect-durable-agent 0.1.0-alpha.25 → 0.1.0-alpha.27
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/{delivery-o6sDIiwO.d.ts → delivery-C0aN3Oza.d.ts} +2 -2
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +36 -2
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{reduced-state-B5WxKSM5.d.ts → reduced-state-D50SR0qM.d.ts} +4 -391
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/prompt-projector.d.ts +1 -1
- package/dist/services/run-scheduler.d.ts +1 -1
- package/dist/services/runtime-layer.d.ts +1 -1
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +0 -1
- package/dist/services/runtime.js.map +1 -1
- package/dist/services/session-query.d.ts +2 -2
- package/dist/services/session-query.js +5 -19
- package/dist/services/session-query.js.map +1 -1
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-store.js +2 -2
- package/dist/services/session-store.js.map +1 -1
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/span-names.d.ts +1 -1
- package/dist/services/span-names.js +0 -1
- package/dist/services/span-names.js.map +1 -1
- package/dist/{subscription-Dzr5LqPX.js → subscription-hkD4M3xp.js} +9 -4
- package/dist/subscription-hkD4M3xp.js.map +1 -0
- package/dist/testkit/layers.d.ts +1 -1
- package/dist/testkit/transcript.d.ts +1 -1
- package/dist/transcript.d.ts +2 -2
- package/dist/transcript.js +3 -3
- package/dist/websocket/events.d.ts +1 -1
- package/dist/websocket.d.ts +1 -1
- package/dist/websocket.js +1 -1
- package/dist/{window-read-DBf1Iktt.d.ts → window-read-BG8lxMVB.d.ts} +11 -2
- package/dist/{window-read-U55aAeuz.js → window-read-C8anZVdl.js} +102 -22
- package/dist/window-read-C8anZVdl.js.map +1 -0
- package/package.json +1 -1
- package/dist/subscription-Dzr5LqPX.js.map +0 -1
- package/dist/window-read-U55aAeuz.js.map +0 -1
|
@@ -2,7 +2,7 @@ import { c as StopTurnCommand, l as SubmitMessageCommand, o as PromotePendingMes
|
|
|
2
2
|
import { h as SequenceNumber } from "./core-BcimKMIv.js";
|
|
3
3
|
import { f as PositionedEvent, i as EventEnvelope } from "./envelope-Che6KatU.js";
|
|
4
4
|
import "./events-BWuvzVml.js";
|
|
5
|
-
import "./reduced-state-
|
|
5
|
+
import "./reduced-state-D50SR0qM.js";
|
|
6
6
|
import * as Effect from "effect/Effect";
|
|
7
7
|
import * as Schema from "effect/Schema";
|
|
8
8
|
//#region src/websocket/protocol.d.ts
|
|
@@ -2987,4 +2987,4 @@ declare const onClientAck: (state: EDAWebSocketDeliveryState, ack: EDAWebSocketA
|
|
|
2987
2987
|
declare const onHostSuppressedFrame: (state: EDAWebSocketDeliveryState, frame: Pick<EDAWebSocketEventsFrame, "durableThroughSeq" | "frameId">, nowMs: number) => EDAWebSocketDeliveryResult;
|
|
2988
2988
|
//#endregion
|
|
2989
2989
|
export { EDAWebSocketWireProtocol as $, EDA_WS_CLOSE_LAGGED as A, EDAFrameworkWebSocketEvent as B, EDAWebSocketHelloFrame as C, EDAWebSocketServerFrame as D, EDAWebSocketPongFrame as E, SubscriberId as F, EDAWebSocketWireClientFrame as G, EDAWebSocketServerFrameEncoder as H, decodeEDAWebSocketClientMessage as I, EDAWebSocketWireHeartbeatFrame as J, EDAWebSocketWireErrorFrame as K, defaultEDAWebSocketFlowControl as L, EDA_WS_CLOSE_SEND_FAILED as M, EDA_WS_CLOSE_UNSUPPORTED_DATA as N, EDA_WEB_SOCKET_PROTOCOL_VERSION as O, FrameId as P, EDAWebSocketWirePongFrame as Q, encodeEDAWebSocketServerFrame as R, EDAWebSocketHeartbeatFrame as S, EDAWebSocketPingFrame as T, EDAWebSocketServerFrameInput as U, EDAWebSocketEventConsumerPolicy as V, EDAWebSocketWireAckFrame as W, EDAWebSocketWireLaggedFrame as X, EDAWebSocketWireHelloFrame as Y, EDAWebSocketWirePingFrame as Z, EDAWebSocketAckFrame as _, EDAWebSocketInFlightFrame as a, EDAWebSocketEventsFrame as b, SubscriberLagReason as c, makeWebSocketDeliveryState as d, EDA_WEB_SOCKET_PING_MESSAGE as et, onClientAck as f, restoreWebSocketDeliveryState as g, onHostSuppressedFrame as h, EDAWebSocketDeliveryState as i, makeEDAWebSocketWireProtocol as it, EDA_WS_CLOSE_PROTOCOL_ERROR as j, EDA_WS_CLOSE_GOING_AWAY as k, checkpointWebSocketDeliveryState as l, onEphemeralEvent as m, EDAWebSocketDeliveryCheckpoint as n, EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION as nt, EDAWebSocketSuppressedRange as o, onDurableEvents as p, EDAWebSocketWireFlowControl as q, EDAWebSocketDeliveryResult as r, edaFrameworkWebSocketWireProtocol as rt, MakeDeliveryStateInput as s, EDAWebSocketDeliveryAction as t, EDA_WEB_SOCKET_PONG_MESSAGE as tt, deliveryHelloFrame as u, EDAWebSocketClientFrame as v, EDAWebSocketLaggedFrame as w, EDAWebSocketFlowControl as x, EDAWebSocketErrorFrame as y, laggedCloseReason as z };
|
|
2990
|
-
//# sourceMappingURL=delivery-
|
|
2990
|
+
//# sourceMappingURL=delivery-C0aN3Oza.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as UserMessageContent } from "../commands-3OD-p8dD.js";
|
|
2
2
|
import { b as TurnId, h as SequenceNumber, p as RunId, u as MessageId } from "../core-BcimKMIv.js";
|
|
3
|
-
import { C as RunRecord, f as MessageRecord, p as PendingCommand, r as CommandRecord, t as ActiveCommandEvidence } from "../reduced-state-
|
|
3
|
+
import { C as RunRecord, f as MessageRecord, p as PendingCommand, r as CommandRecord, t as ActiveCommandEvidence } from "../reduced-state-D50SR0qM.js";
|
|
4
4
|
//#region src/domain/command-queues.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* A steering message admitted for an active run but not necessarily consumed
|
|
@@ -1,2 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { d as UserMessageContent } from "../commands-3OD-p8dD.js";
|
|
2
|
+
import { i as ContextProjection } from "../context-projection-D_uRtK3r.js";
|
|
3
|
+
import { f as MessageRecord, g as ReducedState } from "../reduced-state-D50SR0qM.js";
|
|
4
|
+
import * as Prompt from "effect/ai/Prompt";
|
|
5
|
+
//#region src/domain/message-transcript.d.ts
|
|
6
|
+
/** Durable user/assistant message records suitable for a session transcript. */
|
|
7
|
+
type DurableTranscriptMessage = Extract<MessageRecord, {
|
|
8
|
+
readonly _tag: "User" | "Assistant" | "AssistantPartial";
|
|
9
|
+
}> | (Extract<MessageRecord, {
|
|
10
|
+
readonly _tag: "Steering";
|
|
11
|
+
}> & {
|
|
12
|
+
readonly consumedSeq: NonNullable<Extract<MessageRecord, {
|
|
13
|
+
readonly _tag: "Steering";
|
|
14
|
+
}>["consumedSeq"]>;
|
|
15
|
+
});
|
|
16
|
+
/** Derive the durable user/assistant transcript in committed sequence order. */
|
|
17
|
+
declare const durableMessageTranscript: (state: Pick<ReducedState, "messages">) => ReadonlyArray<DurableTranscriptMessage>;
|
|
18
|
+
/**
|
|
19
|
+
* Prompt state as of `throughSeq`: transcript messages that entered the prompt at or before that
|
|
20
|
+
* sequence. Compaction uses it to rebuild the exact prompt of an earlier request.
|
|
21
|
+
*/
|
|
22
|
+
declare const projectionStateThrough: <S extends Pick<ReducedState, "messages">>(state: S, throughSeq: number) => S;
|
|
23
|
+
type PromptProjectionState = Pick<ReducedState, "messages"> & Partial<Pick<ReducedState, "toolCalls">>;
|
|
24
|
+
/** Convert all durable transcript messages and exact tool-result parts into provider prompt history. */
|
|
25
|
+
declare const durableTranscriptPrompt: (state: PromptProjectionState) => Prompt.Prompt;
|
|
26
|
+
/** Convert the current compacted context into provider prompt history. */
|
|
27
|
+
declare const contextProjectionPrompt: (state: PromptProjectionState, context: ContextProjection | undefined) => Prompt.Prompt;
|
|
28
|
+
/** Build a provider prompt with extra user content selected by the scheduler but not yet folded. */
|
|
29
|
+
declare const durableTranscriptPromptWithUserContent: (state: PromptProjectionState, content: UserMessageContent) => Prompt.Prompt;
|
|
30
|
+
/** Build a compacted provider prompt with extra user content selected by the scheduler. */
|
|
31
|
+
declare const contextProjectionPromptWithUserContent: (state: PromptProjectionState, context: ContextProjection | undefined, content: UserMessageContent) => Prompt.Prompt;
|
|
32
|
+
/** Build a compacted provider prompt with multiple scheduler-selected user messages. */
|
|
33
|
+
declare const contextProjectionPromptWithUserContents: (state: PromptProjectionState, context: ContextProjection | undefined, contents: ReadonlyArray<UserMessageContent>) => Prompt.Prompt;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { DurableTranscriptMessage, contextProjectionPrompt, contextProjectionPromptWithUserContent, contextProjectionPromptWithUserContents, durableMessageTranscript, durableTranscriptPrompt, durableTranscriptPromptWithUserContent, projectionStateThrough };
|
|
36
|
+
//# sourceMappingURL=message-transcript.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
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-
|
|
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-D50SR0qM.js";
|
|
2
2
|
import { n as TokenConsumptionState, r as TokenUsageTotals } from "../model-usage-0GeHwaaU.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 {
|
|
1
|
+
import { At as RunRequestOutcome, Bt as runSchedulingInputMessageIds, Dt as DeferredRunResolution, Ft as RunSchedulingRequestRecord, It as RunSchedulingWork, Lt as canGrantRun, Mt as RunSchedulingCancellationPlan, Nt as RunSchedulingInput, Ot as LocalRunResolution, Pt as RunSchedulingRequest, Rt as planRunSchedulingCancellation, Vt as waitingRunControl, jt as RunResolution, kt as RunGrantResult, zt as planWaitingRunInterruption } from "../reduced-state-D50SR0qM.js";
|
|
2
2
|
export { DeferredRunResolution, LocalRunResolution, RunGrantResult, RunRequestOutcome, RunResolution, RunSchedulingCancellationPlan, RunSchedulingInput, RunSchedulingRequest, RunSchedulingRequestRecord, RunSchedulingWork, canGrantRun, planRunSchedulingCancellation, planWaitingRunInterruption, runSchedulingInputMessageIds, waitingRunControl };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ import { _ as parseEDATraceparent, a as EDATraceAttributes, c as EDATraceLink, d
|
|
|
4
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-Che6KatU.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-CKdCCqhw.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-BWuvzVml.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-
|
|
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-D50SR0qM.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 };
|
|
@@ -45693,215 +45693,8 @@ declare class SessionState extends SessionState_base {
|
|
|
45693
45693
|
static readonly Live: Layer.Layer<SessionState, EDASessionStoreError, CompactionRunner | EDAKeepAlive | EDAPromptProjector | EDAReducerRegistry | EDASessionStore | EDASinkRegistry | EventFactory | IdGenerator | LiveEventBus | RunScheduler | RunSchedulingWakeup | SessionContext | TurnRunner>;
|
|
45694
45694
|
}
|
|
45695
45695
|
//#endregion
|
|
45696
|
-
//#region src/domain/message-transcript.d.ts
|
|
45697
|
-
/** Durable user/assistant message records suitable for a session transcript. */
|
|
45698
|
-
type DurableTranscriptMessage = Extract<MessageRecord, {
|
|
45699
|
-
readonly _tag: "User" | "Assistant" | "AssistantPartial";
|
|
45700
|
-
}> | (Extract<MessageRecord, {
|
|
45701
|
-
readonly _tag: "Steering";
|
|
45702
|
-
}> & {
|
|
45703
|
-
readonly consumedSeq: NonNullable<Extract<MessageRecord, {
|
|
45704
|
-
readonly _tag: "Steering";
|
|
45705
|
-
}>["consumedSeq"]>;
|
|
45706
|
-
});
|
|
45707
|
-
/** Derive the durable user/assistant transcript in committed sequence order. */
|
|
45708
|
-
declare const durableMessageTranscript: (state: Pick<ReducedState, "messages">) => ReadonlyArray<DurableTranscriptMessage>;
|
|
45709
|
-
/**
|
|
45710
|
-
* Prompt state as of `throughSeq`: transcript messages that entered the prompt at or before that
|
|
45711
|
-
* sequence. Compaction uses it to rebuild the exact prompt of an earlier request.
|
|
45712
|
-
*/
|
|
45713
|
-
declare const projectionStateThrough: <S extends Pick<ReducedState, "messages">>(state: S, throughSeq: number) => S;
|
|
45714
|
-
type PromptProjectionState = Pick<ReducedState, "messages"> & Partial<Pick<ReducedState, "toolCalls">>;
|
|
45715
|
-
/** Convert all durable transcript messages and exact tool-result parts into provider prompt history. */
|
|
45716
|
-
declare const durableTranscriptPrompt: (state: PromptProjectionState) => Prompt.Prompt;
|
|
45717
|
-
/** Convert the current compacted context into provider prompt history. */
|
|
45718
|
-
declare const contextProjectionPrompt: (state: PromptProjectionState, context: ContextProjection | undefined) => Prompt.Prompt;
|
|
45719
|
-
/** Build a provider prompt with extra user content selected by the scheduler but not yet folded. */
|
|
45720
|
-
declare const durableTranscriptPromptWithUserContent: (state: PromptProjectionState, content: UserMessageContent) => Prompt.Prompt;
|
|
45721
|
-
/** Build a compacted provider prompt with extra user content selected by the scheduler. */
|
|
45722
|
-
declare const contextProjectionPromptWithUserContent: (state: PromptProjectionState, context: ContextProjection | undefined, content: UserMessageContent) => Prompt.Prompt;
|
|
45723
|
-
/** Build a compacted provider prompt with multiple scheduler-selected user messages. */
|
|
45724
|
-
declare const contextProjectionPromptWithUserContents: (state: PromptProjectionState, context: ContextProjection | undefined, contents: ReadonlyArray<UserMessageContent>) => Prompt.Prompt;
|
|
45725
|
-
//#endregion
|
|
45726
45696
|
//#region src/services/session-query.d.ts
|
|
45727
|
-
/**
|
|
45728
|
-
declare const DurableTranscriptMessages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
45729
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
45730
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
45731
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
45732
|
-
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
45733
|
-
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
45734
|
-
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45735
|
-
readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45736
|
-
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
45737
|
-
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
45738
|
-
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45739
|
-
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45740
|
-
readonly _tag: Schema.Literal<"User">;
|
|
45741
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
45742
|
-
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
45743
|
-
readonly type: Schema.Literal<"text">;
|
|
45744
|
-
readonly text: Schema.String;
|
|
45745
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45746
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45747
|
-
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
45748
|
-
readonly type: Schema.Literal<"text">;
|
|
45749
|
-
readonly text: Schema.String;
|
|
45750
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45751
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45752
|
-
}>, Schema.Struct<{
|
|
45753
|
-
readonly type: Schema.Literal<"file">;
|
|
45754
|
-
readonly mediaType: Schema.String;
|
|
45755
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
45756
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
45757
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45758
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45759
|
-
}>]>>]>>;
|
|
45760
|
-
readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
45761
|
-
readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
45762
|
-
}>, Schema.Struct<{
|
|
45763
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
45764
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
45765
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
45766
|
-
readonly _tag: Schema.Literal<"Assistant">;
|
|
45767
|
-
readonly content: Schema.Struct<{
|
|
45768
|
-
readonly text: Schema.String;
|
|
45769
|
-
readonly reasoning: Schema.optionalKey<Schema.String>;
|
|
45770
|
-
}>;
|
|
45771
|
-
readonly imported: Schema.optionalKey<Schema.Literal<true>>;
|
|
45772
|
-
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
45773
|
-
readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
|
|
45774
|
-
readonly type: Schema.Literal<"text">;
|
|
45775
|
-
readonly text: Schema.String;
|
|
45776
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45777
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45778
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45779
|
-
readonly type: Schema.Literal<"file">;
|
|
45780
|
-
readonly mediaType: Schema.String;
|
|
45781
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
45782
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
45783
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45784
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45785
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45786
|
-
readonly type: Schema.Literal<"reasoning">;
|
|
45787
|
-
readonly text: Schema.String;
|
|
45788
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45789
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45790
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45791
|
-
readonly type: Schema.Literal<"tool-call">;
|
|
45792
|
-
readonly id: Schema.String;
|
|
45793
|
-
readonly name: Schema.String;
|
|
45794
|
-
readonly params: Schema.Unknown;
|
|
45795
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
45796
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45797
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45798
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45799
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
45800
|
-
readonly id: Schema.String;
|
|
45801
|
-
readonly name: Schema.String;
|
|
45802
|
-
readonly isFailure: Schema.Boolean;
|
|
45803
|
-
readonly result: Schema.Unknown;
|
|
45804
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
45805
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45806
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45807
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45808
|
-
readonly type: Schema.Literal<"tool-approval-request">;
|
|
45809
|
-
readonly approvalId: Schema.String;
|
|
45810
|
-
readonly toolCallId: Schema.String;
|
|
45811
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45812
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45813
|
-
}>>]>>>;
|
|
45814
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
45815
|
-
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
45816
|
-
}>, Schema.Struct<{
|
|
45817
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
45818
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
45819
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
45820
|
-
readonly _tag: Schema.Literal<"AssistantPartial">;
|
|
45821
|
-
readonly content: Schema.Struct<{
|
|
45822
|
-
readonly text: Schema.String;
|
|
45823
|
-
readonly reasoning: Schema.optionalKey<Schema.String>;
|
|
45824
|
-
}>;
|
|
45825
|
-
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
45826
|
-
readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
|
|
45827
|
-
readonly type: Schema.Literal<"text">;
|
|
45828
|
-
readonly text: Schema.String;
|
|
45829
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45830
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45831
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45832
|
-
readonly type: Schema.Literal<"file">;
|
|
45833
|
-
readonly mediaType: Schema.String;
|
|
45834
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
45835
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
45836
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45837
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45838
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45839
|
-
readonly type: Schema.Literal<"reasoning">;
|
|
45840
|
-
readonly text: Schema.String;
|
|
45841
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45842
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45843
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45844
|
-
readonly type: Schema.Literal<"tool-call">;
|
|
45845
|
-
readonly id: Schema.String;
|
|
45846
|
-
readonly name: Schema.String;
|
|
45847
|
-
readonly params: Schema.Unknown;
|
|
45848
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
45849
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45850
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45851
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45852
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
45853
|
-
readonly id: Schema.String;
|
|
45854
|
-
readonly name: Schema.String;
|
|
45855
|
-
readonly isFailure: Schema.Boolean;
|
|
45856
|
-
readonly result: Schema.Unknown;
|
|
45857
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
45858
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45859
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45860
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
45861
|
-
readonly type: Schema.Literal<"tool-approval-request">;
|
|
45862
|
-
readonly approvalId: Schema.String;
|
|
45863
|
-
readonly toolCallId: Schema.String;
|
|
45864
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45865
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45866
|
-
}>>]>>>;
|
|
45867
|
-
readonly reason: Schema.String;
|
|
45868
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
45869
|
-
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
45870
|
-
}>, Schema.Struct<{
|
|
45871
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
45872
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
45873
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
45874
|
-
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
45875
|
-
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
45876
|
-
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45877
|
-
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
45878
|
-
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
45879
|
-
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45880
|
-
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
45881
|
-
readonly _tag: Schema.Literal<"Steering">;
|
|
45882
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
45883
|
-
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
45884
|
-
readonly type: Schema.Literal<"text">;
|
|
45885
|
-
readonly text: Schema.String;
|
|
45886
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45887
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45888
|
-
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
45889
|
-
readonly type: Schema.Literal<"text">;
|
|
45890
|
-
readonly text: Schema.String;
|
|
45891
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45892
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45893
|
-
}>, Schema.Struct<{
|
|
45894
|
-
readonly type: Schema.Literal<"file">;
|
|
45895
|
-
readonly mediaType: Schema.String;
|
|
45896
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
45897
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
45898
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
45899
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
45900
|
-
}>]>>]>>;
|
|
45901
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
45902
|
-
readonly consumedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
45903
|
-
}>]>>;
|
|
45904
|
-
/** Authoritative live snapshot for one EDA session plus its derived durable transcript. */
|
|
45697
|
+
/** Authoritative live snapshot for one EDA session: reduced state plus app reducer states. */
|
|
45905
45698
|
declare const EDASessionSnapshot: Schema.Struct<{
|
|
45906
45699
|
readonly state: Schema.Struct<{
|
|
45907
45700
|
readonly runSchedulingRequest: Schema.optionalKey<Schema.Struct<{
|
|
@@ -46568,192 +46361,14 @@ declare const EDASessionSnapshot: Schema.Struct<{
|
|
|
46568
46361
|
}>;
|
|
46569
46362
|
}>;
|
|
46570
46363
|
readonly reducerStates: Schema.$ReadonlyMap<Schema.String, Schema.Unknown>;
|
|
46571
|
-
readonly messages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
46572
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
46573
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
46574
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
46575
|
-
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
46576
|
-
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
46577
|
-
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46578
|
-
readonly consumedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46579
|
-
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
46580
|
-
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
46581
|
-
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46582
|
-
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46583
|
-
readonly _tag: Schema.Literal<"User">;
|
|
46584
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
46585
|
-
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
46586
|
-
readonly type: Schema.Literal<"text">;
|
|
46587
|
-
readonly text: Schema.String;
|
|
46588
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46589
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46590
|
-
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
46591
|
-
readonly type: Schema.Literal<"text">;
|
|
46592
|
-
readonly text: Schema.String;
|
|
46593
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46594
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46595
|
-
}>, Schema.Struct<{
|
|
46596
|
-
readonly type: Schema.Literal<"file">;
|
|
46597
|
-
readonly mediaType: Schema.String;
|
|
46598
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
46599
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
46600
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46601
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46602
|
-
}>]>>]>>;
|
|
46603
|
-
readonly disposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
46604
|
-
readonly requestedDisposition: Schema.optionalKey<Schema.Literals<readonly ["queue", "steer"]>>;
|
|
46605
|
-
}>, Schema.Struct<{
|
|
46606
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
46607
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
46608
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
46609
|
-
readonly _tag: Schema.Literal<"Assistant">;
|
|
46610
|
-
readonly content: Schema.Struct<{
|
|
46611
|
-
readonly text: Schema.String;
|
|
46612
|
-
readonly reasoning: Schema.optionalKey<Schema.String>;
|
|
46613
|
-
}>;
|
|
46614
|
-
readonly imported: Schema.optionalKey<Schema.Literal<true>>;
|
|
46615
|
-
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
46616
|
-
readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
|
|
46617
|
-
readonly type: Schema.Literal<"text">;
|
|
46618
|
-
readonly text: Schema.String;
|
|
46619
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46620
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46621
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46622
|
-
readonly type: Schema.Literal<"file">;
|
|
46623
|
-
readonly mediaType: Schema.String;
|
|
46624
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
46625
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
46626
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46627
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46628
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46629
|
-
readonly type: Schema.Literal<"reasoning">;
|
|
46630
|
-
readonly text: Schema.String;
|
|
46631
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46632
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46633
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46634
|
-
readonly type: Schema.Literal<"tool-call">;
|
|
46635
|
-
readonly id: Schema.String;
|
|
46636
|
-
readonly name: Schema.String;
|
|
46637
|
-
readonly params: Schema.Unknown;
|
|
46638
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
46639
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46640
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46641
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46642
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
46643
|
-
readonly id: Schema.String;
|
|
46644
|
-
readonly name: Schema.String;
|
|
46645
|
-
readonly isFailure: Schema.Boolean;
|
|
46646
|
-
readonly result: Schema.Unknown;
|
|
46647
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
46648
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46649
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46650
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46651
|
-
readonly type: Schema.Literal<"tool-approval-request">;
|
|
46652
|
-
readonly approvalId: Schema.String;
|
|
46653
|
-
readonly toolCallId: Schema.String;
|
|
46654
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46655
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46656
|
-
}>>]>>>;
|
|
46657
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
46658
|
-
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
46659
|
-
}>, Schema.Struct<{
|
|
46660
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
46661
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
46662
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
46663
|
-
readonly _tag: Schema.Literal<"AssistantPartial">;
|
|
46664
|
-
readonly content: Schema.Struct<{
|
|
46665
|
-
readonly text: Schema.String;
|
|
46666
|
-
readonly reasoning: Schema.optionalKey<Schema.String>;
|
|
46667
|
-
}>;
|
|
46668
|
-
readonly inferenceId: Schema.brand<Schema.String, "InferenceId">;
|
|
46669
|
-
readonly promptParts: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.toType<Schema.Struct<{
|
|
46670
|
-
readonly type: Schema.Literal<"text">;
|
|
46671
|
-
readonly text: Schema.String;
|
|
46672
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46673
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46674
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46675
|
-
readonly type: Schema.Literal<"file">;
|
|
46676
|
-
readonly mediaType: Schema.String;
|
|
46677
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
46678
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
46679
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46680
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46681
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46682
|
-
readonly type: Schema.Literal<"reasoning">;
|
|
46683
|
-
readonly text: Schema.String;
|
|
46684
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46685
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46686
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46687
|
-
readonly type: Schema.Literal<"tool-call">;
|
|
46688
|
-
readonly id: Schema.String;
|
|
46689
|
-
readonly name: Schema.String;
|
|
46690
|
-
readonly params: Schema.Unknown;
|
|
46691
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
46692
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46693
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46694
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46695
|
-
readonly type: Schema.Literal<"tool-result">;
|
|
46696
|
-
readonly id: Schema.String;
|
|
46697
|
-
readonly name: Schema.String;
|
|
46698
|
-
readonly isFailure: Schema.Boolean;
|
|
46699
|
-
readonly result: Schema.Unknown;
|
|
46700
|
-
readonly providerExecuted: Schema.withDecodingDefault<Schema.Boolean>;
|
|
46701
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46702
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46703
|
-
}>>, Schema.toType<Schema.Struct<{
|
|
46704
|
-
readonly type: Schema.Literal<"tool-approval-request">;
|
|
46705
|
-
readonly approvalId: Schema.String;
|
|
46706
|
-
readonly toolCallId: Schema.String;
|
|
46707
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46708
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46709
|
-
}>>]>>>;
|
|
46710
|
-
readonly reason: Schema.String;
|
|
46711
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
46712
|
-
readonly turnId: Schema.brand<Schema.String, "TurnId">;
|
|
46713
|
-
}>, Schema.Struct<{
|
|
46714
|
-
readonly createdAtMs: Schema.optionalKey<Schema.Int>;
|
|
46715
|
-
readonly messageId: Schema.brand<Schema.String, "MessageId">;
|
|
46716
|
-
readonly seq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
46717
|
-
readonly cancellationReason: Schema.optionalKey<Schema.String>;
|
|
46718
|
-
readonly cancelledByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
46719
|
-
readonly cancelledSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46720
|
-
readonly consumedTurnId: Schema.optionalKey<Schema.brand<Schema.String, "TurnId">>;
|
|
46721
|
-
readonly pausedByCommandId: Schema.optionalKey<Schema.brand<Schema.String, "CommandId">>;
|
|
46722
|
-
readonly pausedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46723
|
-
readonly promotedSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
46724
|
-
readonly _tag: Schema.Literal<"Steering">;
|
|
46725
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
46726
|
-
readonly content: Schema.toType<Schema.Union<readonly [Schema.decodeTo<Schema.NonEmptyArray<Schema.toType<Schema.Struct<{
|
|
46727
|
-
readonly type: Schema.Literal<"text">;
|
|
46728
|
-
readonly text: Schema.String;
|
|
46729
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46730
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46731
|
-
}>>>, Schema.String, never, never>, Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
46732
|
-
readonly type: Schema.Literal<"text">;
|
|
46733
|
-
readonly text: Schema.String;
|
|
46734
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46735
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46736
|
-
}>, Schema.Struct<{
|
|
46737
|
-
readonly type: Schema.Literal<"file">;
|
|
46738
|
-
readonly mediaType: Schema.String;
|
|
46739
|
-
readonly fileName: Schema.optional<Schema.String>;
|
|
46740
|
-
readonly data: Schema.Union<readonly [Schema.String, Schema.Uint8Array, Schema.URL]>;
|
|
46741
|
-
readonly "~effect/ai/Prompt/Part": Schema.withDecodingDefaultKey<Schema.Literal<"~effect/ai/Prompt/Part">>;
|
|
46742
|
-
readonly options: Schema.withDecodingDefault<Schema.$Record<Schema.String, Schema.NullOr<Schema.Codec<Schema.Json>>>>;
|
|
46743
|
-
}>]>>]>>;
|
|
46744
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
46745
|
-
readonly consumedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
46746
|
-
}>]>>;
|
|
46747
46364
|
}>;
|
|
46748
46365
|
type EDASessionSnapshot = typeof EDASessionSnapshot.Type;
|
|
46749
46366
|
/** Read-only query facade over authoritative live state and reconnect-safe event streams. */
|
|
46750
46367
|
interface EDASessionQueryShape {
|
|
46751
46368
|
/** Reconcile one request against committed facts, including after reducer history pruning. */
|
|
46752
46369
|
readonly runRequestOutcome: (requestId: RunRequestId) => Effect.Effect<RunRequestOutcome, EDASessionStoreError>;
|
|
46753
|
-
/** Read the authoritative live state and
|
|
46370
|
+
/** Read the authoritative live state and app reducer states. */
|
|
46754
46371
|
readonly snapshot: () => Effect.Effect<EDASessionSnapshot, EDASessionStoreError>;
|
|
46755
|
-
/** Read durable user/assistant messages in committed sequence order from the live snapshot. */
|
|
46756
|
-
readonly messages: () => Effect.Effect<ReadonlyArray<DurableTranscriptMessage>, EDASessionStoreError>;
|
|
46757
46372
|
/** Backfill durable events after `afterSeq`, then follow live durable/ephemeral events. */
|
|
46758
46373
|
readonly eventsAfter: (afterSeq: SequenceNumber) => Effect.Effect<Stream.Stream<PositionedEvent, EDASessionStoreError>, EDASessionStoreError, Scope.Scope>;
|
|
46759
46374
|
/** Read one bounded committed durable slice after `afterSeq` plus the committed head. */
|
|
@@ -46912,8 +46527,6 @@ interface EDARuntimeShape {
|
|
|
46912
46527
|
readonly submitAndBlock: (command: EDACommand) => Effect.Effect<CommittedCommandTerminalEvent, EDARuntimeError>;
|
|
46913
46528
|
/** Read the authoritative live session snapshot. */
|
|
46914
46529
|
readonly snapshot: EDASessionQueryShape["snapshot"];
|
|
46915
|
-
/** Read durable user/assistant messages in committed order. */
|
|
46916
|
-
readonly messages: EDASessionQueryShape["messages"];
|
|
46917
46530
|
/** Backfill durable events after a committed sequence, then follow live events. */
|
|
46918
46531
|
readonly eventsAfter: EDASessionQueryShape["eventsAfter"];
|
|
46919
46532
|
/** Read one bounded page of committed durable events plus the committed head. */
|
|
@@ -48165,5 +47778,5 @@ declare const activeTurnIdentityForCommand: (state: ReducedState, commandId: Com
|
|
|
48165
47778
|
/** Classify unfinished durable lifecycles that recovery may need to repair. */
|
|
48166
47779
|
declare const classifyRecoverableWork: (state: ReducedState) => RecoverableWork;
|
|
48167
47780
|
//#endregion
|
|
48168
|
-
export {
|
|
48169
|
-
//# sourceMappingURL=reduced-state-
|
|
47781
|
+
export { EDASessionQueryShape as $, EDASinkRawDurableBatch as $t, TurnTerminal as A, EDAPromptProjector as An, RunRequestOutcome as At, pendingCommands as B, runSchedulingInputMessageIds as Bt, RunRecord as C, defaultCompactionThresholdTokens as Cn, RunScheduler as Ct, ToolDecision as D, EDANativeCompaction as Dn, DeferredRunResolution as Dt, ToolCallRecord as E, SessionContext as En, RunSchedulingDeliveryError as Et, encodeReducedStateCheckpoint as F, isEDACacheBreakpoint as Fn, RunSchedulingRequestRecord as Ft, EDACommandTerminalEvent as G, EDAProjectedSink as Gt, reduceCommittedEvents as H, EDADurableSinkDefinition as Ht, foldReducedState as I, nativeCompactionSummaryMessage as In, RunSchedulingWork as It, EDARuntimeError as J, EDASink as Jt, EDARuntime as K, EDARawDurableSinkDefinition as Kt, frameworkReducedStateReducerName as L, canGrantRun as Lt, activeTurnIdentityForCommand as M, EDA_PROMPT_OPTIONS_KEY as Mn, RunSchedulingCancellationPlan as Mt, classifyRecoverableWork as N, buildEDAPrompt as Nn, RunSchedulingInput as Nt, ToolTerminal as O, EDAProjectedPromptContext as On, LocalRunResolution as Ot, decodeReducedStateCheckpoint as P, getNativeCompaction as Pn, RunSchedulingRequest as Pt, EDASessionQuery as Q, EDASinkInterests as Qt, frameworkReducedStateReducerSchemaVersion as R, planRunSchedulingCancellation as Rt, ReducedStateCheckpointToolTerminal as S, defaultCompactionSummaryInstructions as Sn, ToolExecutor as St, StopRequestRecord as T, EventFactory as Tn, RunSchedulingDelivery as Tt, reducedStateCheckpointEventSeqs as U, EDAEphemeralSinkDefinition as Ut, pendingStopCommand as V, waitingRunControl as Vt, CommittedCommandTerminalEvent as W, EDAProjectedDurableSinkDefinition as Wt, EDARuntimeSubmit as X, EDASinkContext as Xt, EDARuntimeShape as Y, EDASinkCheckpoint as Yt, EDASessionEventPage as Z, EDASinkDurableBatch as Zt, ReducedStateCheckpointCommandRecord as _, LanguageModelSummaryCompactionExecutorOptions as _n, SessionStateShape as _t, CompactionRecord as a, CompactionError as an, SessionCommandCompleted as at, ReducedStateCheckpointToolCallRecord as b, defaultCompactionMinSummarizableTokens as bn, InferenceRunner as bt, InferenceRecord as c, CompactionExecutorShape as cn, SessionCommandResult as ct, LifecycleTiming as d, CompactionPolicy as dn, SessionForkedCommand as dt, EDASinkRegistry as en, EDASessionSnapshot as et, MessageRecord as f, CompactionPolicyInput as fn, SessionNoRunnableCommand as ft, ReducedState as g, CompactionRunnerShape as gn, SessionStateError as gt, RecoveryContinuationRecord as h, CompactionRunnerInput as hn, SessionState as ht, CommandTerminal as i, ApproximateTokenThresholdCompactionPolicyOptions as in, SessionCommandCancelled as it, activeCommand as j, EDAPromptProjectorShape as jn, RunResolution as jt, TurnRecord as k, EDAPromptProjectionInput as kn, RunGrantResult as kt, InferenceTerminal as l, CompactionOutput as ln, SessionDrainProcessed as lt, RecoverableWork as m, CompactionRunner as mn, SessionRunInput as mt, ActiveTurnIdentity as n, EDASinkRunnerStartInput as nn, SessionCommandAdmissionConflict as nt, CompactionTerminal as o, CompactionExecutor as on, SessionCommandFailed as ot, PendingCommand as p, CompactionPolicyShape as pn, SessionNoRunnableReason as pt, EDARuntimeConfig as q, EDARawSink as qt, CommandRecord as r, LiveEventBus as rn, SessionCommandAdmissionError as rt, ContextRecord as s, CompactionExecutorInput as sn, SessionCommandOutcome as st, ActiveCommandEvidence as t, EDASinkRegistryShape as tn, EDASubmittable as tt, LifecycleFailure as u, CompactionPlan as un, SessionDrainResult as ut, ReducedStateCheckpointMessageRecord as v, PromptPrefixSummaryCompactionExecutorOptions as vn, SessionStateSnapshotData as vt, RunTerminal as w, promptPrefixSummaryCompactionExecutor as wn, RunSchedulerShape as wt, ReducedStateCheckpointToolDecision as x, defaultCompactionRetainTailTokens as xn, InferenceRunnerStreamPart as xt, ReducedStateCheckpointPayload as y, defaultCompactionCharsPerToken as yn, TurnRunner as yt, initialReducedState as z, planWaitingRunInterruption as zt };
|
|
47782
|
+
//# sourceMappingURL=reduced-state-D50SR0qM.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cn as defaultCompactionThresholdTokens, Sn as defaultCompactionSummaryInstructions, _n as LanguageModelSummaryCompactionExecutorOptions, an as CompactionError, bn as defaultCompactionMinSummarizableTokens, cn as CompactionExecutorShape, dn as CompactionPolicy, fn as CompactionPolicyInput, gn as CompactionRunnerShape, hn as CompactionRunnerInput, in as ApproximateTokenThresholdCompactionPolicyOptions, ln as CompactionOutput, mn as CompactionRunner, on as CompactionExecutor, pn as CompactionPolicyShape, sn as CompactionExecutorInput, un as CompactionPlan, vn as PromptPrefixSummaryCompactionExecutorOptions, wn as promptPrefixSummaryCompactionExecutor, xn as defaultCompactionRetainTailTokens, yn as defaultCompactionCharsPerToken } from "../reduced-state-D50SR0qM.js";
|
|
2
2
|
export { ApproximateTokenThresholdCompactionPolicyOptions, CompactionError, CompactionExecutor, CompactionExecutorInput, CompactionExecutorShape, CompactionOutput, CompactionPlan, CompactionPolicy, CompactionPolicyInput, CompactionPolicyShape, CompactionRunner, CompactionRunnerInput, CompactionRunnerShape, LanguageModelSummaryCompactionExecutorOptions, PromptPrefixSummaryCompactionExecutorOptions, defaultCompactionCharsPerToken, defaultCompactionMinSummarizableTokens, defaultCompactionRetainTailTokens, defaultCompactionSummaryInstructions, defaultCompactionThresholdTokens, promptPrefixSummaryCompactionExecutor };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { An as EDAPromptProjector, Dn as EDANativeCompaction, Fn as isEDACacheBreakpoint, In as nativeCompactionSummaryMessage, Mn as EDA_PROMPT_OPTIONS_KEY, Nn as buildEDAPrompt, On as EDAProjectedPromptContext, Pn as getNativeCompaction, jn as EDAPromptProjectorShape, kn as EDAPromptProjectionInput } from "../reduced-state-D50SR0qM.js";
|
|
2
2
|
export { EDANativeCompaction, EDAProjectedPromptContext, EDAPromptProjectionInput, EDAPromptProjector, EDAPromptProjectorShape, EDA_PROMPT_OPTIONS_KEY, buildEDAPrompt, getNativeCompaction, isEDACacheBreakpoint, nativeCompactionSummaryMessage };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ct as RunScheduler, Dt as DeferredRunResolution, Et as RunSchedulingDeliveryError, Nt as RunSchedulingInput, Ot as LocalRunResolution, Tt as RunSchedulingDelivery, jt as RunResolution, wt as RunSchedulerShape } from "../reduced-state-D50SR0qM.js";
|
|
2
2
|
export { DeferredRunResolution, LocalRunResolution, type RunResolution, RunScheduler, RunSchedulerShape, RunSchedulingDelivery, RunSchedulingDeliveryError, type RunSchedulingInput };
|