effect-durable-agent 0.1.0-alpha.12 → 0.1.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/{command-queues-B45Xa1Dl.d.ts → command-queues-CSEl1yrH.d.ts} +2 -2
  2. package/dist/{compaction-CLCDOR1t.d.ts → compaction-CYItD6di.d.ts} +5 -5
  3. package/dist/{context-projection-CCoN8m9W.d.ts → context-projection-C43pyxn2.d.ts} +4 -4
  4. package/dist/domain/command-queues.d.ts +1 -1
  5. package/dist/domain/context-projection.d.ts +1 -1
  6. package/dist/domain/message-transcript.d.ts +1 -1
  7. package/dist/domain/reduced-state.d.ts +1 -1
  8. package/dist/domain/run-scheduling.d.ts +1 -1
  9. package/dist/index.d.ts +1 -1
  10. package/dist/{message-transcript-Dr6Rk-re.d.ts → message-transcript-CmCHC1Pg.d.ts} +3 -3
  11. package/dist/{prompt-projector-CGo1TGyZ.d.ts → prompt-projector-_Zxe7dlE.d.ts} +4 -4
  12. package/dist/{reducer-registry-DqljrD58.d.ts → reducer-registry-BgtK0NuX.d.ts} +2 -2
  13. package/dist/{run-scheduler-DvHWwWBJ.d.ts → run-scheduler-BBqZ0Ate.d.ts} +2 -2
  14. package/dist/{run-scheduling-wakeup-CGgJ7RNe.d.ts → run-scheduling-wakeup-DRYZztL6.d.ts} +2 -2
  15. package/dist/{runtime-j93ZOBnG.d.ts → runtime-BRURBOyt.d.ts} +4 -4
  16. package/dist/services/compaction.d.ts +1 -1
  17. package/dist/services/prompt-projector.d.ts +1 -1
  18. package/dist/services/reducer-registry.d.ts +1 -1
  19. package/dist/services/run-scheduler.d.ts +2 -2
  20. package/dist/services/run-scheduling-wakeup.d.ts +1 -1
  21. package/dist/services/runtime-layer.d.ts +11 -11
  22. package/dist/services/runtime-layer.js +2 -2
  23. package/dist/services/runtime.d.ts +1 -1
  24. package/dist/services/runtime.js +1 -1
  25. package/dist/services/session-query.d.ts +1 -1
  26. package/dist/services/session-query.js +2 -2
  27. package/dist/services/session-state.d.ts +1 -1
  28. package/dist/services/session-state.js +1 -1
  29. package/dist/services/session-store.d.ts +1 -1
  30. package/dist/services/sink-checkpoint-store.d.ts +1 -1
  31. package/dist/services/sink-registry.d.ts +1 -1
  32. package/dist/services/sink-registry.js +1 -1
  33. package/dist/services/span-names.d.ts +1 -1
  34. package/dist/services/span-names.js +2 -0
  35. package/dist/services/span-names.js.map +1 -1
  36. package/dist/services/tool-registry.d.ts +1 -1
  37. package/dist/services/tracing.js +1 -1
  38. package/dist/services/tracing.js.map +1 -1
  39. package/dist/{session-query-DYuJXhMQ.d.ts → session-query-Dzdcr2xL.d.ts} +7 -7
  40. package/dist/{session-state-13z-3YaF.d.ts → session-state-Cm5sXbZW.d.ts} +14 -14
  41. package/dist/{session-state-xXXyniwU.js → session-state-DfYX21mA.js} +19 -4
  42. package/dist/session-state-DfYX21mA.js.map +1 -0
  43. package/dist/{session-store-BIr-xfJ7.d.ts → session-store-DCs--1kc.d.ts} +2 -2
  44. package/dist/{sink-checkpoint-store-Cr9_GmOw.d.ts → sink-checkpoint-store-CasqHvDz.d.ts} +2 -2
  45. package/dist/{sink-registry-CUIrrkXU.js → sink-registry-CT3C3N5R.js} +28 -12
  46. package/dist/{sink-registry-CUIrrkXU.js.map → sink-registry-CT3C3N5R.js.map} +1 -1
  47. package/dist/{sink-registry-C2t3DI_g.d.ts → sink-registry-CU-WMK96.d.ts} +6 -6
  48. package/dist/testkit/layers.d.ts +12 -12
  49. package/dist/testkit/layers.js +2 -2
  50. package/dist/{tool-registry-Dhs2KmYK.d.ts → tool-registry-CHMtDCJ5.d.ts} +2 -2
  51. package/package.json +1 -1
  52. package/dist/session-state-xXXyniwU.js.map +0 -1
@@ -4,7 +4,7 @@ import { n as TokenConsumptionState } from "./model-usage-CdBEkTwU.js";
4
4
  import { d as UserMessageContent, r as EDACommand } from "./commands-p8venTWs.js";
5
5
  import { n as EDARunTrace, t as EDAEventTrace } from "./tracing-BXHAkxkx.js";
6
6
  import { r as AssistantMessageContent, rt as RecoveryContinuation } from "./durable-DeLCAvbw.js";
7
- import { t as CommittedDurableEvent } from "./session-store-BIr-xfJ7.js";
7
+ import { t as CommittedDurableEvent } from "./session-store-DCs--1kc.js";
8
8
  import * as Schema from "effect/Schema";
9
9
  import * as Prompt from "effect/unstable/ai/Prompt";
10
10
 
@@ -553,4 +553,4 @@ declare const emptyCommandQueues: CommandQueues;
553
553
  declare const deriveCommandQueues: (state: CommandQueueSource) => CommandQueues;
554
554
  //#endregion
555
555
  export { RunRequestOutcome as $, RunTerminal as A, decodeReducedStateCheckpoint as B, ReducedStateCheckpointCommandRecord as C, ReducedStateCheckpointToolDecision as D, ReducedStateCheckpointToolCallRecord as E, TurnRecord as F, initialReducedState as G, foldReducedState as H, TurnTerminal as I, reduceCommittedEvents as J, pendingCommands as K, activeCommand as L, ToolCallRecord as M, ToolDecision as N, ReducedStateCheckpointToolTerminal as O, ToolTerminal as P, RunGrantResult as Q, activeTurnIdentityForCommand as R, ReducedState as S, ReducedStateCheckpointPayload as T, frameworkReducedStateReducerName as U, encodeReducedStateCheckpoint as V, frameworkReducedStateReducerSchemaVersion as W, DeferredRunResolution as X, reducedStateCheckpointEventSeqs as Y, LocalRunResolution as Z, LifecycleTiming as _, deriveCommandQueues as a, RunSchedulingWork as at, RecoverableWork as b, ActiveTurnIdentity as c, planWaitingRunInterruption as ct, CompactionRecord as d, RunResolution as et, CompactionTerminal as f, LifecycleFailure as g, InferenceTerminal as h, PendingUserMessage as i, RunSchedulingRequestRecord as it, StopRequestRecord as j, RunRecord as k, CommandRecord as l, runSchedulingInputMessageIds as lt, InferenceRecord as m, CommandQueues as n, RunSchedulingInput as nt, emptyCommandQueues as o, canGrantRun as ot, ContextRecord as p, pendingStopCommand as q, PendingSteeringMessage as r, RunSchedulingRequest as rt, ActiveCommandEvidence as s, planRunSchedulingCancellation as st, CommandQueueSource as t, RunSchedulingCancellationPlan as tt, CommandTerminal as u, waitingRunControl as ut, MessageRecord as v, ReducedStateCheckpointMessageRecord as w, RecoveryContinuationRecord as x, PendingCommand as y, classifyRecoverableWork as z };
556
- //# sourceMappingURL=command-queues-B45Xa1Dl.d.ts.map
556
+ //# sourceMappingURL=command-queues-CSEl1yrH.d.ts.map
@@ -1,6 +1,6 @@
1
- import { S as ReducedState } from "./command-queues-B45Xa1Dl.js";
2
- import { i as ContextProjection, n as CompactionPolicyId, t as CompactionExecutorId } from "./context-projection-CCoN8m9W.js";
3
- import { o as EDASessionStoreError, r as DurableAppendEntry, t as CommittedDurableEvent } from "./session-store-BIr-xfJ7.js";
1
+ import { S as ReducedState } from "./command-queues-CSEl1yrH.js";
2
+ import { i as ContextProjection, n as CompactionPolicyId, t as CompactionExecutorId } from "./context-projection-C43pyxn2.js";
3
+ import { o as EDASessionStoreError, r as DurableAppendEntry, t as CommittedDurableEvent } from "./session-store-DCs--1kc.js";
4
4
  import { t as ModelResolver } from "./model-resolver-BPPJAsuh.js";
5
5
  import { t as IdGenerator } from "./id-generator--x6itQZ2.js";
6
6
  import { t as EventFactory } from "./event-factory-EL4szNWm.js";
@@ -158,8 +158,8 @@ interface CompactionRunnerShape {
158
158
  declare const CompactionRunner_base: Context.ServiceClass<CompactionRunner, "@effect-durable-agent/CompactionRunner", CompactionRunnerShape>;
159
159
  /** Framework-owned compaction lifecycle runner. */
160
160
  declare class CompactionRunner extends CompactionRunner_base {
161
- static readonly Live: Layer.Layer<CompactionRunner, never, ModelResolver | CompactionPolicy | CompactionExecutor | EventFactory | IdGenerator | EDAKeepAlive>;
161
+ static readonly Live: Layer.Layer<CompactionRunner, never, EDAKeepAlive | ModelResolver | CompactionExecutor | CompactionPolicy | IdGenerator | EventFactory>;
162
162
  }
163
163
  //#endregion
164
164
  export { defaultCompactionRetainTailTokens as _, CompactionExecutorShape as a, CompactionPolicy as c, CompactionRunner as d, CompactionRunnerInput as f, defaultCompactionMinSummarizableTokens as g, defaultCompactionCharsPerToken as h, CompactionExecutorInput as i, CompactionPolicyInput as l, LanguageModelSummaryCompactionExecutorOptions as m, CompactionError as n, CompactionOutput as o, CompactionRunnerShape as p, CompactionExecutor as r, CompactionPlan as s, ApproximateTokenThresholdCompactionPolicyOptions as t, CompactionPolicyShape as u, defaultCompactionThresholdTokens as v };
165
- //# sourceMappingURL=compaction-CLCDOR1t.d.ts.map
165
+ //# sourceMappingURL=compaction-CYItD6di.d.ts.map
@@ -86,12 +86,12 @@ type ContextProjection = typeof ContextProjection.Type;
86
86
  declare const emptyContextProjection: {
87
87
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
88
88
  readonly currentSummary?: {
89
- readonly text: string;
90
89
  readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
91
90
  readonly summaryId: string & import("effect/Brand").Brand<"SummaryId">;
92
91
  readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
93
92
  readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
94
93
  readonly retainedFromContextSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
94
+ readonly text: string;
95
95
  readonly promptMessage: {
96
96
  readonly role: "user";
97
97
  readonly content: readonly [{
@@ -117,12 +117,12 @@ declare const emptyContextProjection: {
117
117
  };
118
118
  } | {
119
119
  readonly type: "file";
120
- readonly mediaType: string;
121
- readonly data: string | Uint8Array<ArrayBufferLike> | URL;
122
120
  readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
123
121
  readonly options: {
124
122
  readonly [x: string]: Schema.Json;
125
123
  };
124
+ readonly mediaType: string;
125
+ readonly data: string | Uint8Array<ArrayBufferLike> | URL;
126
126
  readonly fileName?: string | undefined;
127
127
  })[];
128
128
  readonly "~effect/ai/Prompt/Message": "~effect/ai/Prompt/Message";
@@ -137,4 +137,4 @@ declare const emptyContextProjection: {
137
137
  };
138
138
  //#endregion
139
139
  export { emptyContextProjection as a, ContextProjection as i, CompactionPolicyId as n, CompactionSummaryArtifact as r, CompactionExecutorId as t };
140
- //# sourceMappingURL=context-projection-CCoN8m9W.d.ts.map
140
+ //# sourceMappingURL=context-projection-C43pyxn2.d.ts.map
@@ -1,2 +1,2 @@
1
- import { a as deriveCommandQueues, i as PendingUserMessage, n as CommandQueues, o as emptyCommandQueues, r as PendingSteeringMessage, t as CommandQueueSource } from "../command-queues-B45Xa1Dl.js";
1
+ import { a as deriveCommandQueues, i as PendingUserMessage, n as CommandQueues, o as emptyCommandQueues, r as PendingSteeringMessage, t as CommandQueueSource } from "../command-queues-CSEl1yrH.js";
2
2
  export { CommandQueueSource, CommandQueues, PendingSteeringMessage, PendingUserMessage, deriveCommandQueues, emptyCommandQueues };
@@ -1,2 +1,2 @@
1
- import { a as emptyContextProjection, i as ContextProjection, n as CompactionPolicyId, r as CompactionSummaryArtifact, t as CompactionExecutorId } from "../context-projection-CCoN8m9W.js";
1
+ import { a as emptyContextProjection, i as ContextProjection, n as CompactionPolicyId, r as CompactionSummaryArtifact, t as CompactionExecutorId } from "../context-projection-C43pyxn2.js";
2
2
  export { CompactionExecutorId, CompactionPolicyId, CompactionSummaryArtifact, ContextProjection, emptyContextProjection };
@@ -1,2 +1,2 @@
1
- import { a as durableMessageTranscript, i as contextProjectionPromptWithUserContents, n as contextProjectionPrompt, o as durableTranscriptPrompt, r as contextProjectionPromptWithUserContent, s as durableTranscriptPromptWithUserContent, t as DurableTranscriptMessage } from "../message-transcript-Dr6Rk-re.js";
1
+ import { a as durableMessageTranscript, i as contextProjectionPromptWithUserContents, n as contextProjectionPrompt, o as durableTranscriptPrompt, r as contextProjectionPromptWithUserContent, s as durableTranscriptPromptWithUserContent, t as DurableTranscriptMessage } from "../message-transcript-CmCHC1Pg.js";
2
2
  export { DurableTranscriptMessage, contextProjectionPrompt, contextProjectionPromptWithUserContent, contextProjectionPromptWithUserContents, durableMessageTranscript, durableTranscriptPrompt, durableTranscriptPromptWithUserContent };
@@ -1,3 +1,3 @@
1
- import { A as RunTerminal, B as decodeReducedStateCheckpoint, C as ReducedStateCheckpointCommandRecord, D as ReducedStateCheckpointToolDecision, E as ReducedStateCheckpointToolCallRecord, F as TurnRecord, G as initialReducedState, H as foldReducedState, I as TurnTerminal, J as reduceCommittedEvents, K as pendingCommands, L as activeCommand, M as ToolCallRecord, N as ToolDecision, O as ReducedStateCheckpointToolTerminal, P as ToolTerminal, R as activeTurnIdentityForCommand, S as ReducedState, T as ReducedStateCheckpointPayload, U as frameworkReducedStateReducerName, V as encodeReducedStateCheckpoint, W as frameworkReducedStateReducerSchemaVersion, Y as reducedStateCheckpointEventSeqs, _ as LifecycleTiming, b as RecoverableWork, c as ActiveTurnIdentity, d as CompactionRecord, f as CompactionTerminal, g as LifecycleFailure, h as InferenceTerminal, j as StopRequestRecord, k as RunRecord, l as CommandRecord, m as InferenceRecord, p as ContextRecord, q as pendingStopCommand, s as ActiveCommandEvidence, u as CommandTerminal, v as MessageRecord, w as ReducedStateCheckpointMessageRecord, x as RecoveryContinuationRecord, y as PendingCommand, z as classifyRecoverableWork } from "../command-queues-B45Xa1Dl.js";
1
+ import { A as RunTerminal, B as decodeReducedStateCheckpoint, C as ReducedStateCheckpointCommandRecord, D as ReducedStateCheckpointToolDecision, E as ReducedStateCheckpointToolCallRecord, F as TurnRecord, G as initialReducedState, H as foldReducedState, I as TurnTerminal, J as reduceCommittedEvents, K as pendingCommands, L as activeCommand, M as ToolCallRecord, N as ToolDecision, O as ReducedStateCheckpointToolTerminal, P as ToolTerminal, R as activeTurnIdentityForCommand, S as ReducedState, T as ReducedStateCheckpointPayload, U as frameworkReducedStateReducerName, V as encodeReducedStateCheckpoint, W as frameworkReducedStateReducerSchemaVersion, Y as reducedStateCheckpointEventSeqs, _ as LifecycleTiming, b as RecoverableWork, c as ActiveTurnIdentity, d as CompactionRecord, f as CompactionTerminal, g as LifecycleFailure, h as InferenceTerminal, j as StopRequestRecord, k as RunRecord, l as CommandRecord, m as InferenceRecord, p as ContextRecord, q as pendingStopCommand, s as ActiveCommandEvidence, u as CommandTerminal, v as MessageRecord, w as ReducedStateCheckpointMessageRecord, x as RecoveryContinuationRecord, y as PendingCommand, z as classifyRecoverableWork } from "../command-queues-CSEl1yrH.js";
2
2
  import { n as TokenConsumptionState, r as TokenUsageTotals } from "../model-usage-CdBEkTwU.js";
3
3
  export { ActiveCommandEvidence, ActiveTurnIdentity, CommandRecord, CommandTerminal, CompactionRecord, CompactionTerminal, ContextRecord, InferenceRecord, InferenceTerminal, LifecycleFailure, LifecycleTiming, MessageRecord, PendingCommand, RecoverableWork, RecoveryContinuationRecord, ReducedState, ReducedStateCheckpointCommandRecord, ReducedStateCheckpointMessageRecord, ReducedStateCheckpointPayload, ReducedStateCheckpointToolCallRecord, ReducedStateCheckpointToolDecision, ReducedStateCheckpointToolTerminal, RunRecord, RunTerminal, StopRequestRecord, TokenConsumptionState, type TokenUsageTotals, ToolCallRecord, ToolDecision, ToolTerminal, TurnRecord, TurnTerminal, activeCommand, activeTurnIdentityForCommand, classifyRecoverableWork, decodeReducedStateCheckpoint, encodeReducedStateCheckpoint, foldReducedState, frameworkReducedStateReducerName, frameworkReducedStateReducerSchemaVersion, initialReducedState, pendingCommands, pendingStopCommand, reduceCommittedEvents, reducedStateCheckpointEventSeqs };
@@ -1,2 +1,2 @@
1
- import { $ as RunRequestOutcome, Q as RunGrantResult, X as DeferredRunResolution, Z as LocalRunResolution, at as RunSchedulingWork, ct as planWaitingRunInterruption, et as RunResolution, it as RunSchedulingRequestRecord, lt as runSchedulingInputMessageIds, nt as RunSchedulingInput, ot as canGrantRun, rt as RunSchedulingRequest, st as planRunSchedulingCancellation, tt as RunSchedulingCancellationPlan, ut as waitingRunControl } from "../command-queues-B45Xa1Dl.js";
1
+ import { $ as RunRequestOutcome, Q as RunGrantResult, X as DeferredRunResolution, Z as LocalRunResolution, at as RunSchedulingWork, ct as planWaitingRunInterruption, et as RunResolution, it as RunSchedulingRequestRecord, lt as runSchedulingInputMessageIds, nt as RunSchedulingInput, ot as canGrantRun, rt as RunSchedulingRequest, st as planRunSchedulingCancellation, tt as RunSchedulingCancellationPlan, ut as waitingRunControl } from "../command-queues-CSEl1yrH.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 { a as PendingMessageCancellationReason, c as StopTurnCommand, d as UserM
4
4
  import { _ as parseEDATraceparent, a as EDATraceAttributes, c as EDATraceLink, d as makeEDAEventTrace, f as makeEDARunTrace, g as makeRootEDATraceMetadata, h as makeRootEDAEventTrace, i as EDATraceAttributeValue, l as EDATraceMetadata, m as makeEDATraceMetadataFromParent, n as EDARunTrace, o as EDATraceContext, p as makeEDATraceContext, r as EDASpanId, s as EDATraceId, t as EDAEventTrace, u as buildEDATraceparent } from "./tracing-BXHAkxkx.js";
5
5
  import { $ as PendingMessagesPausedEvent, $n as sessionConfiguredEventType, $t as ToolRejectionPromptPart, A as CompactionFailedEvent, An as commandStartedEventType, At as StopTurnAppliedPayload, B as ContextRebasedPayload, Bn as inferenceFailedEventType, Bt as ToolCallCreatedPayload, C as CommandEvent, Cn as baseStateCreatedEventType, Ct as SessionConfiguredEvent, D as CommandStartedPayload, Dn as commandCancelledEventType, Dt as SteeringMessageQueuedPayload, E as CommandStartedEvent, En as commandAdmittedEventType, Et as SteeringMessageQueuedEvent, F as CompactionStartedPayload, Fn as contextProjectedEventType, Ft as SystemMessageCommittedEvent, G as InferenceEvent, Gn as runCompletedEventType, Gt as ToolCallRejectedEvent, H as EDADurableEventV1, Hn as messageQueuePausedEventType, Ht as ToolCallFailedEvent, I as ContextAndCompactionEvent, In as contextRebasedEventType, It as SystemMessageCommittedPayload, J as InferenceStartedEvent, Jn as runSchedulingDeliveredEventType, Jt as ToolCallRejectionReason, K as InferenceFailedEvent, Kn as runFailedEventType, Kt as ToolCallRejectedPayload, L as ContextProjectedEvent, Ln as decodeUnknownEDADurableEvent, Lt as ToolCallCompletedEvent, M as CompactionRequestedEvent, Mn as compactionFailedEventType, Mt as StopTurnRequestedPayload, N as CompactionRequestedPayload, Nn as compactionRequestedEventType, Nt as SummaryCreatedEvent, O as CompactionCompletedEvent, On as commandCompletedEventType, Ot as StopControlEvent, P as CompactionStartedEvent, Pn as compactionStartedEventType, Pt as SummaryCreatedPayload, Q as MessageQueuePausedPayload, Qn as runStartedEventType, Qt as ToolPromptPart, R as ContextProjectedPayload, Rn as decodeUnknownEDADurableEventSync, Rt as ToolCallCompletedPayload, S as CommandCompletedPayload, Sn as assistantPartialCommittedEventType, St as RunStartedPayload, T as CommandFailedPayload, Tn as baseStateRequestedEventType, Tt as SteeringMessageCancelledPayload, U as InferenceCompletedEvent, Un as pendingMessagesPausedEventType, Ut as ToolCallFailedPayload, V as EDADurableEvent, Vn as inferenceStartedEventType, Vt as ToolCallEvent, W as InferenceCompletedPayload, Wn as recoveryCompletedEventType, Wt as ToolCallPromptPart, X as MessageEvent, Xn as runSchedulingInvalidatedEventType, Xt as ToolCallStartedPayload, Y as InferenceStartedPayload, Yn as runSchedulingGrantedEventType, Yt as ToolCallStartedEvent, Z as MessageQueuePausedEvent, Zn as runSchedulingRequestedEventType, Zt as ToolFailurePromptPart, _ as CommandAdmittedEvent, _n as UserMessagePromotedPayload, _r as userMessagePromotedEventType, _t as RunSchedulingInvalidatedEvent, a as AssistantMessageImportedPayload, an as TurnFailedPayload, ar as systemMessageCommittedEventType, at as RunCompletedEvent, b as CommandCancelledPayload, bn as assistantMessageCommittedEventType, bt as RunSchedulingRequestedPayload, c as AssistantPromptPart, cn as TurnStoppedEvent, cr as toolCallFailedEventType, ct as RunFailedEvent, d as BaseStateCreatedPayload, dn as UserMessageCancelledEvent, dr as turnCompletedEventType, dt as RunInterruptedPayload, en as ToolSuccessPromptPart, er as steeringMessageCancelledEventType, et as PendingMessagesPausedPayload, f as BaseStateEvent, fn as UserMessageCancelledPayload, fr as turnFailedEventType, ft as RunSchedulingDeliveredEvent, g as BaseStateRequestedPayload, gn as UserMessagePromotedEvent, gr as userMessageCommittedEventType, gt as RunSchedulingGrantedPayload, h as BaseStateRequestedEvent, hn as UserMessageDisposition, hr as userMessageCancelledEventType, ht as RunSchedulingGrantedEvent, i as AssistantMessageImportedEvent, in as TurnFailedEvent, ir as summaryCreatedEventType, it as RecoveryEvent, j as CompactionFailedPayload, jn as compactionCompletedEventType, jt as StopTurnRequestedEvent, k as CompactionCompletedPayload, kn as commandFailedEventType, kt as StopTurnAppliedEvent, l as AssistantPromptParts, ln as TurnStoppedPayload, lr as toolCallRejectedEventType, lt as RunFailedPayload, m as BaseStateFailedPayload, mn as UserMessageCommittedPayload, mr as turnStoppedEventType, mt as RunSchedulingEvent, n as AssistantMessageCommittedPayload, nn as TurnCompletedPayload, nr as stopTurnAppliedEventType, nt as RecoveryCompletedPayload, o as AssistantPartialCommittedEvent, on as TurnStartedEvent, or as toolCallCompletedEventType, ot as RunCompletedPayload, p as BaseStateFailedEvent, pn as UserMessageCommittedEvent, pr as turnStartedEventType, pt as RunSchedulingDeliveredPayload, q as InferenceFailedPayload, qn as runInterruptedEventType, qt as ToolCallRejectionFeedback, r as AssistantMessageContent, rn as TurnEvent, rr as stopTurnRequestedEventType, rt as RecoveryContinuation, s as AssistantPartialCommittedPayload, sn as TurnStartedPayload, sr as toolCallCreatedEventType, st as RunEvent, t as AssistantMessageCommittedEvent, tn as TurnCompletedEvent, tr as steeringMessageQueuedEventType, tt as RecoveryCompletedEvent, u as BaseStateCreatedEvent, un as UserMessageCancellationReason, ur as toolCallStartedEventType, ut as RunInterruptedEvent, v as CommandAdmittedPayload, vn as UserMessageSubmittedEvent, vr as userMessageSubmittedEventType, vt as RunSchedulingInvalidatedPayload, w as CommandFailedEvent, wn as baseStateFailedEventType, wt as SteeringMessageCancelledEvent, x as CommandCompletedEvent, xn as assistantMessageImportedEventType, xt as RunStartedEvent, y as CommandCancelledEvent, yn as UserMessageSubmittedPayload, yt as RunSchedulingRequestedEvent, z as ContextRebasedEvent, zn as inferenceCompletedEventType, zt as ToolCallCreatedEvent } from "./durable-DeLCAvbw.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-LZFNoESe.js";
7
- import { a as EDARuntimeError, i as EDARuntimeConfig, n as EDACommandTerminalEvent, o as EDARuntimeShape, r as EDARuntime, s as EDARuntimeSubmit, t as CommittedCommandTerminalEvent } from "./runtime-j93ZOBnG.js";
7
+ import { a as EDARuntimeError, i as EDARuntimeConfig, n as EDACommandTerminalEvent, o as EDARuntimeShape, r as EDARuntime, s as EDARuntimeSubmit, t as CommittedCommandTerminalEvent } from "./runtime-BRURBOyt.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, 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, GrantRunCommand, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceId, InferenceStartedEvent, InferenceStartedPayload, 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, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, durablePosition, 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 };
@@ -1,6 +1,6 @@
1
- import { S as ReducedState, v as MessageRecord } from "./command-queues-B45Xa1Dl.js";
1
+ import { S as ReducedState, v as MessageRecord } from "./command-queues-CSEl1yrH.js";
2
2
  import { d as UserMessageContent } from "./commands-p8venTWs.js";
3
- import { i as ContextProjection } from "./context-projection-CCoN8m9W.js";
3
+ import { i as ContextProjection } from "./context-projection-C43pyxn2.js";
4
4
  import * as Prompt from "effect/unstable/ai/Prompt";
5
5
 
6
6
  //#region src/domain/message-transcript.d.ts
@@ -29,4 +29,4 @@ declare const contextProjectionPromptWithUserContent: (state: PromptProjectionSt
29
29
  declare const contextProjectionPromptWithUserContents: (state: PromptProjectionState, context: ContextProjection | undefined, contents: ReadonlyArray<UserMessageContent>) => Prompt.Prompt;
30
30
  //#endregion
31
31
  export { durableMessageTranscript as a, contextProjectionPromptWithUserContents as i, contextProjectionPrompt as n, durableTranscriptPrompt as o, contextProjectionPromptWithUserContent as r, durableTranscriptPromptWithUserContent as s, DurableTranscriptMessage as t };
32
- //# sourceMappingURL=message-transcript-Dr6Rk-re.d.ts.map
32
+ //# sourceMappingURL=message-transcript-CmCHC1Pg.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { g as SessionId } from "./core-C-6xHzRx.js";
2
- import { S as ReducedState } from "./command-queues-B45Xa1Dl.js";
3
- import { i as ContextProjection } from "./context-projection-CCoN8m9W.js";
4
- import { a as EDAReducerStateSnapshot } from "./reducer-registry-DqljrD58.js";
2
+ import { S as ReducedState } from "./command-queues-CSEl1yrH.js";
3
+ import { i as ContextProjection } from "./context-projection-C43pyxn2.js";
4
+ import { a as EDAReducerStateSnapshot } from "./reducer-registry-BgtK0NuX.js";
5
5
  import * as Context from "effect/Context";
6
6
  import * as Effect from "effect/Effect";
7
7
  import * as Layer from "effect/Layer";
@@ -36,4 +36,4 @@ declare class EDAPromptProjector extends EDAPromptProjector_base {
36
36
  }
37
37
  //#endregion
38
38
  export { buildEDAPrompt as a, EDAPromptProjectorShape as i, EDAPromptProjectionInput as n, EDAPromptProjector as r, EDAProjectedPromptContext as t };
39
- //# sourceMappingURL=prompt-projector-CGo1TGyZ.d.ts.map
39
+ //# sourceMappingURL=prompt-projector-_Zxe7dlE.d.ts.map
@@ -1,4 +1,4 @@
1
- import { t as CommittedDurableEvent } from "./session-store-BIr-xfJ7.js";
1
+ import { t as CommittedDurableEvent } from "./session-store-DCs--1kc.js";
2
2
  import * as Context from "effect/Context";
3
3
  import * as Layer from "effect/Layer";
4
4
  import * as Schema from "effect/Schema";
@@ -78,4 +78,4 @@ declare class EDAReducerRegistry extends EDAReducerRegistry_base {
78
78
  declare const getEDAReducerState: <State, Name extends string>(snapshot: EDAReducerStateSnapshot, reducer: EDAReducer<State, Name>) => State;
79
79
  //#endregion
80
80
  export { EDAReducerStateSnapshot as a, decodeReducerState as c, encodeReducerState as d, getEDAReducerState as f, EDAReducerRegistryShape as i, defineEDAReducerRegistry as l, EDAReducerDefinition as n, EDAReducersFor as o, reducerSchemaVersion as p, EDAReducerRegistry as r, EDATypedReducerRegistry as s, EDAReducer as t, edaReservedReducerNamePrefix as u };
81
- //# sourceMappingURL=reducer-registry-DqljrD58.d.ts.map
81
+ //# sourceMappingURL=reducer-registry-BgtK0NuX.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { g as SessionId } from "./core-C-6xHzRx.js";
2
- import { et as RunResolution, nt as RunSchedulingInput, rt as RunSchedulingRequest } from "./command-queues-B45Xa1Dl.js";
2
+ import { et as RunResolution, nt as RunSchedulingInput, rt as RunSchedulingRequest } from "./command-queues-CSEl1yrH.js";
3
3
  import * as Context from "effect/Context";
4
4
  import * as Effect from "effect/Effect";
5
5
  import * as Layer from "effect/Layer";
@@ -40,4 +40,4 @@ declare class RunScheduler extends RunScheduler_base {
40
40
  }
41
41
  //#endregion
42
42
  export { RunSchedulingDeliveryError as i, RunSchedulerShape as n, RunSchedulingDelivery as r, RunScheduler as t };
43
- //# sourceMappingURL=run-scheduler-DvHWwWBJ.d.ts.map
43
+ //# sourceMappingURL=run-scheduler-BBqZ0Ate.d.ts.map
@@ -1,4 +1,4 @@
1
- import { o as EDASessionStoreError } from "./session-store-BIr-xfJ7.js";
1
+ import { o as EDASessionStoreError } from "./session-store-DCs--1kc.js";
2
2
  import * as Context from "effect/Context";
3
3
  import * as Effect from "effect/Effect";
4
4
  import * as Layer from "effect/Layer";
@@ -22,4 +22,4 @@ declare class RunSchedulingWakeup extends RunSchedulingWakeup_base {
22
22
  }
23
23
  //#endregion
24
24
  export { RunSchedulingWakeupShape as n, RunSchedulingWakeup as t };
25
- //# sourceMappingURL=run-scheduling-wakeup-CGgJ7RNe.d.ts.map
25
+ //# sourceMappingURL=run-scheduling-wakeup-DRYZztL6.d.ts.map
@@ -1,9 +1,9 @@
1
1
  import { h as SequenceNumber, n as CommandId } from "./core-C-6xHzRx.js";
2
2
  import { i as GrantRunCommand, r as EDACommand } from "./commands-p8venTWs.js";
3
3
  import { w as CommandFailedEvent, x as CommandCompletedEvent, y as CommandCancelledEvent } from "./durable-DeLCAvbw.js";
4
- import { t as CommittedDurableEvent } from "./session-store-BIr-xfJ7.js";
5
- import { _ as SessionStateShape, h as SessionState, r as SessionCommandAdmissionError, t as EDASubmittable } from "./session-state-13z-3YaF.js";
6
- import { n as EDASessionQuery, r as EDASessionQueryShape } from "./session-query-DYuJXhMQ.js";
4
+ import { t as CommittedDurableEvent } from "./session-store-DCs--1kc.js";
5
+ import { _ as SessionStateShape, h as SessionState, r as SessionCommandAdmissionError, t as EDASubmittable } from "./session-state-Cm5sXbZW.js";
6
+ import { n as EDASessionQuery, r as EDASessionQueryShape } from "./session-query-Dzdcr2xL.js";
7
7
  import * as Context from "effect/Context";
8
8
  import * as Effect from "effect/Effect";
9
9
  import * as Layer from "effect/Layer";
@@ -66,4 +66,4 @@ declare class EDARuntime extends EDARuntime_base {
66
66
  }
67
67
  //#endregion
68
68
  export { EDARuntimeError as a, EDARuntimeConfig as i, EDACommandTerminalEvent as n, EDARuntimeShape as o, EDARuntime as r, EDARuntimeSubmit as s, CommittedCommandTerminalEvent as t };
69
- //# sourceMappingURL=runtime-j93ZOBnG.d.ts.map
69
+ //# sourceMappingURL=runtime-BRURBOyt.d.ts.map
@@ -1,2 +1,2 @@
1
- import { _ as defaultCompactionRetainTailTokens, a as CompactionExecutorShape, c as CompactionPolicy, d as CompactionRunner, f as CompactionRunnerInput, g as defaultCompactionMinSummarizableTokens, h as defaultCompactionCharsPerToken, i as CompactionExecutorInput, l as CompactionPolicyInput, m as LanguageModelSummaryCompactionExecutorOptions, n as CompactionError, o as CompactionOutput, p as CompactionRunnerShape, r as CompactionExecutor, s as CompactionPlan, t as ApproximateTokenThresholdCompactionPolicyOptions, u as CompactionPolicyShape, v as defaultCompactionThresholdTokens } from "../compaction-CLCDOR1t.js";
1
+ import { _ as defaultCompactionRetainTailTokens, a as CompactionExecutorShape, c as CompactionPolicy, d as CompactionRunner, f as CompactionRunnerInput, g as defaultCompactionMinSummarizableTokens, h as defaultCompactionCharsPerToken, i as CompactionExecutorInput, l as CompactionPolicyInput, m as LanguageModelSummaryCompactionExecutorOptions, n as CompactionError, o as CompactionOutput, p as CompactionRunnerShape, r as CompactionExecutor, s as CompactionPlan, t as ApproximateTokenThresholdCompactionPolicyOptions, u as CompactionPolicyShape, v as defaultCompactionThresholdTokens } from "../compaction-CYItD6di.js";
2
2
  export { ApproximateTokenThresholdCompactionPolicyOptions, CompactionError, CompactionExecutor, CompactionExecutorInput, CompactionExecutorShape, CompactionOutput, CompactionPlan, CompactionPolicy, CompactionPolicyInput, CompactionPolicyShape, CompactionRunner, CompactionRunnerInput, CompactionRunnerShape, LanguageModelSummaryCompactionExecutorOptions, defaultCompactionCharsPerToken, defaultCompactionMinSummarizableTokens, defaultCompactionRetainTailTokens, defaultCompactionThresholdTokens };
@@ -1,2 +1,2 @@
1
- import { a as buildEDAPrompt, i as EDAPromptProjectorShape, n as EDAPromptProjectionInput, r as EDAPromptProjector, t as EDAProjectedPromptContext } from "../prompt-projector-CGo1TGyZ.js";
1
+ import { a as buildEDAPrompt, i as EDAPromptProjectorShape, n as EDAPromptProjectionInput, r as EDAPromptProjector, t as EDAProjectedPromptContext } from "../prompt-projector-_Zxe7dlE.js";
2
2
  export { EDAProjectedPromptContext, EDAPromptProjectionInput, EDAPromptProjector, EDAPromptProjectorShape, buildEDAPrompt };
@@ -1,2 +1,2 @@
1
- import { a as EDAReducerStateSnapshot, c as decodeReducerState, d as encodeReducerState, f as getEDAReducerState, i as EDAReducerRegistryShape, l as defineEDAReducerRegistry, n as EDAReducerDefinition, o as EDAReducersFor, p as reducerSchemaVersion, r as EDAReducerRegistry, s as EDATypedReducerRegistry, t as EDAReducer, u as edaReservedReducerNamePrefix } from "../reducer-registry-DqljrD58.js";
1
+ import { a as EDAReducerStateSnapshot, c as decodeReducerState, d as encodeReducerState, f as getEDAReducerState, i as EDAReducerRegistryShape, l as defineEDAReducerRegistry, n as EDAReducerDefinition, o as EDAReducersFor, p as reducerSchemaVersion, r as EDAReducerRegistry, s as EDATypedReducerRegistry, t as EDAReducer, u as edaReservedReducerNamePrefix } from "../reducer-registry-BgtK0NuX.js";
2
2
  export { EDAReducer, EDAReducerDefinition, EDAReducerRegistry, EDAReducerRegistryShape, EDAReducerStateSnapshot, EDAReducersFor, EDATypedReducerRegistry, decodeReducerState, defineEDAReducerRegistry, edaReservedReducerNamePrefix, encodeReducerState, getEDAReducerState, reducerSchemaVersion };
@@ -1,3 +1,3 @@
1
- import { X as DeferredRunResolution, Z as LocalRunResolution, et as RunResolution, nt as RunSchedulingInput } from "../command-queues-B45Xa1Dl.js";
2
- import { i as RunSchedulingDeliveryError, n as RunSchedulerShape, r as RunSchedulingDelivery, t as RunScheduler } from "../run-scheduler-DvHWwWBJ.js";
1
+ import { X as DeferredRunResolution, Z as LocalRunResolution, et as RunResolution, nt as RunSchedulingInput } from "../command-queues-CSEl1yrH.js";
2
+ import { i as RunSchedulingDeliveryError, n as RunSchedulerShape, r as RunSchedulingDelivery, t as RunScheduler } from "../run-scheduler-BBqZ0Ate.js";
3
3
  export { DeferredRunResolution, LocalRunResolution, type RunResolution, RunScheduler, RunSchedulerShape, RunSchedulingDelivery, RunSchedulingDeliveryError, type RunSchedulingInput };
@@ -1,2 +1,2 @@
1
- import { n as RunSchedulingWakeupShape, t as RunSchedulingWakeup } from "../run-scheduling-wakeup-CGgJ7RNe.js";
1
+ import { n as RunSchedulingWakeupShape, t as RunSchedulingWakeup } from "../run-scheduling-wakeup-DRYZztL6.js";
2
2
  export { RunSchedulingWakeup, RunSchedulingWakeupShape };
@@ -1,18 +1,18 @@
1
1
  import { g as SessionId } from "../core-C-6xHzRx.js";
2
- import { a as EDASessionStore, o as EDASessionStoreError } from "../session-store-BIr-xfJ7.js";
2
+ import { a as EDASessionStore, o as EDASessionStoreError } from "../session-store-DCs--1kc.js";
3
3
  import { t as ModelResolver } from "../model-resolver-BPPJAsuh.js";
4
4
  import { t as EDAKeepAlive } from "../keep-alive-Chl5SJxy.js";
5
- import { c as CompactionPolicy, r as CompactionExecutor } from "../compaction-CLCDOR1t.js";
5
+ import { c as CompactionPolicy, r as CompactionExecutor } from "../compaction-CYItD6di.js";
6
6
  import { t as SessionEventObserver } from "../session-event-observer-DaFMKKNc.js";
7
- import { r as EDASink } from "../sink-registry-C2t3DI_g.js";
8
- import { r as EDAReducerRegistry } from "../reducer-registry-DqljrD58.js";
9
- import { r as EDAPromptProjector } from "../prompt-projector-CGo1TGyZ.js";
10
- import { n as SinkCheckpointStore } from "../sink-checkpoint-store-Cr9_GmOw.js";
11
- import { t as RunScheduler } from "../run-scheduler-DvHWwWBJ.js";
12
- import { t as RunSchedulingWakeup } from "../run-scheduling-wakeup-CGgJ7RNe.js";
13
- import { r as SessionCommandAdmissionError } from "../session-state-13z-3YaF.js";
14
- import { i as EDAToolRegistryShape, t as EDAModelToolkit } from "../tool-registry-Dhs2KmYK.js";
15
- import { i as EDARuntimeConfig, r as EDARuntime } from "../runtime-j93ZOBnG.js";
7
+ import { r as EDASink } from "../sink-registry-CU-WMK96.js";
8
+ import { r as EDAReducerRegistry } from "../reducer-registry-BgtK0NuX.js";
9
+ import { r as EDAPromptProjector } from "../prompt-projector-_Zxe7dlE.js";
10
+ import { n as SinkCheckpointStore } from "../sink-checkpoint-store-CasqHvDz.js";
11
+ import { t as RunScheduler } from "../run-scheduler-BBqZ0Ate.js";
12
+ import { t as RunSchedulingWakeup } from "../run-scheduling-wakeup-DRYZztL6.js";
13
+ import { r as SessionCommandAdmissionError } from "../session-state-Cm5sXbZW.js";
14
+ import { i as EDAToolRegistryShape, t as EDAModelToolkit } from "../tool-registry-CHMtDCJ5.js";
15
+ import { i as EDARuntimeConfig, r as EDARuntime } from "../runtime-BRURBOyt.js";
16
16
  import * as Layer from "effect/Layer";
17
17
  import * as Tracer from "effect/Tracer";
18
18
 
@@ -1,12 +1,12 @@
1
1
  import { RunSchedulingWakeup } from "./run-scheduling-wakeup.js";
2
2
  import { RunScheduler } from "./run-scheduler.js";
3
- import { d as TurnRunner, f as InferenceRunner, p as ToolExecutor, u as SessionState } from "../session-state-xXXyniwU.js";
3
+ import { d as TurnRunner, f as InferenceRunner, p as ToolExecutor, u as SessionState } from "../session-state-DfYX21mA.js";
4
4
  import { a as CompactionPolicy, n as CompactionExecutor, o as CompactionRunner } from "../compaction-0k8zCJgB.js";
5
5
  import { IdGenerator } from "./id-generator.js";
6
6
  import { n as SessionContext, t as EventFactory } from "../event-factory-QuC_UvyP.js";
7
7
  import { EDAKeepAlive } from "./keep-alive.js";
8
8
  import { SessionEventObserver } from "./session-event-observer.js";
9
- import { n as EDASinkRegistry, r as LiveEventBus } from "../sink-registry-CUIrrkXU.js";
9
+ import { n as EDASinkRegistry, r as LiveEventBus } from "../sink-registry-CT3C3N5R.js";
10
10
  import { EDAPromptProjector } from "./prompt-projector.js";
11
11
  import { EDAReducerRegistry } from "./reducer-registry.js";
12
12
  import { EDAToolRegistry } from "./tool-registry.js";
@@ -1,2 +1,2 @@
1
- import { a as EDARuntimeError, i as EDARuntimeConfig, n as EDACommandTerminalEvent, o as EDARuntimeShape, r as EDARuntime, s as EDARuntimeSubmit, t as CommittedCommandTerminalEvent } from "../runtime-j93ZOBnG.js";
1
+ import { a as EDARuntimeError, i as EDARuntimeConfig, n as EDACommandTerminalEvent, o as EDARuntimeShape, r as EDARuntime, s as EDARuntimeSubmit, t as CommittedCommandTerminalEvent } from "../runtime-BRURBOyt.js";
2
2
  export { CommittedCommandTerminalEvent, EDACommandTerminalEvent, EDARuntime, EDARuntimeConfig, EDARuntimeError, EDARuntimeShape, EDARuntimeSubmit };
@@ -1,7 +1,7 @@
1
1
  import { SequenceNumber, durablePosition } from "../types/core.js";
2
2
  import { c as ModelSelectionPayload, l as NonNegativeInt, p as SystemPromptText } from "../envelope-DxQzo5rN.js";
3
3
  import { Dn as commandCancelledEventType, On as commandCompletedEventType, kn as commandFailedEventType } from "../durable-BPHVFVvV.js";
4
- import { u as SessionState } from "../session-state-xXXyniwU.js";
4
+ import { u as SessionState } from "../session-state-DfYX21mA.js";
5
5
  import { CommittedDurableEvent } from "./session-store.js";
6
6
  import { annotateEdaSpan, committedBatchAttributes } from "./tracing.js";
7
7
  import { EDASessionQuery } from "./session-query.js";
@@ -1,2 +1,2 @@
1
- import { i as EDASessionSnapshot, n as EDASessionQuery, r as EDASessionQueryShape, t as EDASessionEventPage } from "../session-query-DYuJXhMQ.js";
1
+ import { i as EDASessionSnapshot, n as EDASessionQuery, r as EDASessionQueryShape, t as EDASessionEventPage } from "../session-query-Dzdcr2xL.js";
2
2
  export { EDASessionEventPage, EDASessionQuery, EDASessionQueryShape, EDASessionSnapshot };
@@ -1,11 +1,11 @@
1
1
  import { SequenceNumber } from "../types/core.js";
2
2
  import { _ as effectDurableAgentNamespace, u as PositionedEvent } from "../envelope-DxQzo5rN.js";
3
3
  import { bt as RunSchedulingRequestedPayload, dt as RunInterruptedPayload, gt as RunSchedulingGrantedPayload, lt as RunFailedPayload, ot as RunCompletedPayload, vt as RunSchedulingInvalidatedPayload } from "../durable-BPHVFVvV.js";
4
- import { u as SessionState } from "../session-state-xXXyniwU.js";
4
+ import { u as SessionState } from "../session-state-DfYX21mA.js";
5
5
  import { EDASessionStore } from "./session-store.js";
6
6
  import { durableMessageTranscript } from "../domain/message-transcript.js";
7
7
  import { annotateEdaSpan } from "./tracing.js";
8
- import { r as LiveEventBus } from "../sink-registry-CUIrrkXU.js";
8
+ import { r as LiveEventBus } from "../sink-registry-CT3C3N5R.js";
9
9
  import * as Context from "effect/Context";
10
10
  import * as Effect from "effect/Effect";
11
11
  import * as Layer from "effect/Layer";
@@ -1,2 +1,2 @@
1
- import { _ as SessionStateShape, a as SessionCommandCompleted, c as SessionCommandResult, d as SessionForkedCommand, f as SessionNoRunnableCommand, g as SessionStateError, h as SessionState, i as SessionCommandCancelled, l as SessionDrainProcessed, m as SessionRunInput, n as SessionCommandAdmissionConflict, o as SessionCommandFailed, p as SessionNoRunnableReason, r as SessionCommandAdmissionError, s as SessionCommandOutcome, t as EDASubmittable, u as SessionDrainResult, v as SessionStateSnapshotData } from "../session-state-13z-3YaF.js";
1
+ import { _ as SessionStateShape, a as SessionCommandCompleted, c as SessionCommandResult, d as SessionForkedCommand, f as SessionNoRunnableCommand, g as SessionStateError, h as SessionState, i as SessionCommandCancelled, l as SessionDrainProcessed, m as SessionRunInput, n as SessionCommandAdmissionConflict, o as SessionCommandFailed, p as SessionNoRunnableReason, r as SessionCommandAdmissionError, s as SessionCommandOutcome, t as EDASubmittable, u as SessionDrainResult, v as SessionStateSnapshotData } from "../session-state-Cm5sXbZW.js";
2
2
  export { EDASubmittable, SessionCommandAdmissionConflict, SessionCommandAdmissionError, SessionCommandCancelled, SessionCommandCompleted, SessionCommandFailed, SessionCommandOutcome, SessionCommandResult, SessionDrainProcessed, SessionDrainResult, SessionForkedCommand, SessionNoRunnableCommand, SessionNoRunnableReason, SessionRunInput, SessionState, SessionStateError, SessionStateShape, SessionStateSnapshotData };
@@ -1,2 +1,2 @@
1
- import { a as SessionCommandOutcome, c as SessionNoRunnableReason, i as SessionCommandFailed, l as SessionRunInput, n as SessionCommandCancelled, o as SessionForkedCommand, r as SessionCommandCompleted, s as SessionNoRunnableCommand, t as SessionCommandAdmissionConflict, u as SessionState } from "../session-state-xXXyniwU.js";
1
+ import { a as SessionCommandOutcome, c as SessionNoRunnableReason, i as SessionCommandFailed, l as SessionRunInput, n as SessionCommandCancelled, o as SessionForkedCommand, r as SessionCommandCompleted, s as SessionNoRunnableCommand, t as SessionCommandAdmissionConflict, u as SessionState } from "../session-state-DfYX21mA.js";
2
2
  export { SessionCommandAdmissionConflict, SessionCommandCancelled, SessionCommandCompleted, SessionCommandFailed, SessionCommandOutcome, SessionForkedCommand, SessionNoRunnableCommand, SessionNoRunnableReason, SessionRunInput, SessionState };
@@ -1,2 +1,2 @@
1
- import { a as EDASessionStore, c as FindCommandAdmissionInput, i as EDAReducerCheckpoint, l as SaveReducerCheckpointInput, n as DurableAppendBatch, o as EDASessionStoreError, r as DurableAppendEntry, s as EDASessionStoreShape, t as CommittedDurableEvent, u as hasEDASessionStoreError } from "../session-store-BIr-xfJ7.js";
1
+ import { a as EDASessionStore, c as FindCommandAdmissionInput, i as EDAReducerCheckpoint, l as SaveReducerCheckpointInput, n as DurableAppendBatch, o as EDASessionStoreError, r as DurableAppendEntry, s as EDASessionStoreShape, t as CommittedDurableEvent, u as hasEDASessionStoreError } from "../session-store-DCs--1kc.js";
2
2
  export { CommittedDurableEvent, DurableAppendBatch, DurableAppendEntry, EDAReducerCheckpoint, EDASessionStore, EDASessionStoreError, EDASessionStoreShape, FindCommandAdmissionInput, SaveReducerCheckpointInput, hasEDASessionStoreError };
@@ -1,2 +1,2 @@
1
- import { i as StoredSinkCheckpoint, n as SinkCheckpointStore, r as SinkCheckpointStoreShape, t as EDASinkName } from "../sink-checkpoint-store-Cr9_GmOw.js";
1
+ import { i as StoredSinkCheckpoint, n as SinkCheckpointStore, r as SinkCheckpointStoreShape, t as EDASinkName } from "../sink-checkpoint-store-CasqHvDz.js";
2
2
  export { EDASinkName, SinkCheckpointStore, SinkCheckpointStoreShape, StoredSinkCheckpoint };
@@ -1,2 +1,2 @@
1
- import { a as EDASinkContext, c as EDASinkRegistryShape, i as EDASinkCheckpoint, l as EDASinkRunnerStartInput, n as EDAEphemeralSinkDefinition, o as EDASinkDurableBatch, r as EDASink, s as EDASinkRegistry, t as EDADurableSinkDefinition } from "../sink-registry-C2t3DI_g.js";
1
+ import { a as EDASinkContext, c as EDASinkRegistryShape, i as EDASinkCheckpoint, l as EDASinkRunnerStartInput, n as EDAEphemeralSinkDefinition, o as EDASinkDurableBatch, r as EDASink, s as EDASinkRegistry, t as EDADurableSinkDefinition } from "../sink-registry-CU-WMK96.js";
2
2
  export { EDADurableSinkDefinition, EDAEphemeralSinkDefinition, EDASink, EDASinkCheckpoint, EDASinkContext, EDASinkDurableBatch, EDASinkRegistry, EDASinkRegistryShape, EDASinkRunnerStartInput };
@@ -1,2 +1,2 @@
1
- import { n as EDASinkRegistry, t as EDASink } from "../sink-registry-CUIrrkXU.js";
1
+ import { n as EDASinkRegistry, t as EDASink } from "../sink-registry-CT3C3N5R.js";
2
2
  export { EDASink, EDASinkRegistry };
@@ -20,7 +20,7 @@
20
20
  *
21
21
  * Application-specific operations belong in the application catalog, not this reusable catalog.
22
22
  */
23
- declare const SpanNames: readonly ["agent.command.submit", "agent.command.submit.wait", "agent.command.wait", "agent.compaction", "agent.events.follow", "agent.events.page", "agent.events.stream", "agent.inference", "agent.messages.list", "agent.run", "agent.run.grant", "agent.run.request.outcome", "agent.session.snapshot", "agent.sink.drain", "agent.tool", "agent.turn"];
23
+ declare const SpanNames: readonly ["agent.command.submit", "agent.command.submit.wait", "agent.command.wait", "agent.compaction", "agent.events.follow", "agent.events.page", "agent.events.stream", "agent.inference", "agent.messages.list", "agent.run", "agent.run.grant", "agent.run.request.outcome", "agent.session.hydrate", "agent.session.snapshot", "agent.sink.drain", "agent.sinks.initialize", "agent.tool", "agent.turn"];
24
24
  /** Union of values admitted by the centralized EDA span-name catalog. */
25
25
  type SpanName = (typeof SpanNames)[number];
26
26
  //#endregion
@@ -34,8 +34,10 @@ const SpanNames = defineSpanNames([
34
34
  "agent.run",
35
35
  "agent.run.grant",
36
36
  "agent.run.request.outcome",
37
+ "agent.session.hydrate",
37
38
  "agent.session.snapshot",
38
39
  "agent.sink.drain",
40
+ "agent.sinks.initialize",
39
41
  "agent.tool",
40
42
  "agent.turn"
41
43
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"span-names.js","names":[],"sources":["../../src/services/span-names.ts"],"sourcesContent":["type CanonicalSpanName = `${string}.${string}`;\n\nconst defineSpanNames = <const Names extends ReadonlyArray<CanonicalSpanName>>(\n names: Names,\n): Names => names;\n\n/**\n * Allowlist of meaningful spans owned by the reusable durable-agent runtime.\n *\n * Add a name only when the span:\n * - represents a recognizable agent operation in the end-to-end execution flow;\n * - owns non-trivial work whose duration, failure, or interruption is useful to diagnose; and\n * - has a lifetime that matches that work rather than acting as an instantaneous marker.\n *\n * Names are stable, lowercase, dot-separated semantic paths. Start with the owning subsystem and\n * move from general to specific, ending with the operation, for example `agent.command.submit`.\n * Describe domain work, not TypeScript symbols, class names, EDA prefixes, or helper mechanics.\n * Keep names low-cardinality: IDs, tool or sink names, providers, models, attempts, and outcomes are\n * span attributes, never name segments.\n *\n * Prefer `Effect.fn(\"...\")` when a function owns the operation and `Effect.withSpan(\"...\")` around\n * an existing effect boundary. Do not add spans for pure transforms, bookkeeping, condition checks,\n * retry-delay calculations, or other near-zero-width implementation steps. Use unnamed `Effect.fn`\n * when a function benefits from Effect structure but would not add a useful node to the trace.\n *\n * Application-specific operations belong in the application catalog, not this reusable catalog.\n */\nexport const SpanNames = defineSpanNames([\n \"agent.command.submit\",\n \"agent.command.submit.wait\",\n \"agent.command.wait\",\n \"agent.compaction\",\n \"agent.events.follow\",\n \"agent.events.page\",\n \"agent.events.stream\",\n \"agent.inference\",\n \"agent.messages.list\",\n \"agent.run\",\n \"agent.run.grant\",\n \"agent.run.request.outcome\",\n \"agent.session.snapshot\",\n \"agent.sink.drain\",\n \"agent.tool\",\n \"agent.turn\",\n]);\n\n/** Union of values admitted by the centralized EDA span-name catalog. */\nexport type SpanName = (typeof SpanNames)[number];\n"],"mappings":";AAEA,MAAM,mBACJ,UACU;;;;;;;;;;;;;;;;;;;;;;AAuBZ,MAAa,YAAY,gBAAgB;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC"}
1
+ {"version":3,"file":"span-names.js","names":[],"sources":["../../src/services/span-names.ts"],"sourcesContent":["type CanonicalSpanName = `${string}.${string}`;\n\nconst defineSpanNames = <const Names extends ReadonlyArray<CanonicalSpanName>>(\n names: Names,\n): Names => names;\n\n/**\n * Allowlist of meaningful spans owned by the reusable durable-agent runtime.\n *\n * Add a name only when the span:\n * - represents a recognizable agent operation in the end-to-end execution flow;\n * - owns non-trivial work whose duration, failure, or interruption is useful to diagnose; and\n * - has a lifetime that matches that work rather than acting as an instantaneous marker.\n *\n * Names are stable, lowercase, dot-separated semantic paths. Start with the owning subsystem and\n * move from general to specific, ending with the operation, for example `agent.command.submit`.\n * Describe domain work, not TypeScript symbols, class names, EDA prefixes, or helper mechanics.\n * Keep names low-cardinality: IDs, tool or sink names, providers, models, attempts, and outcomes are\n * span attributes, never name segments.\n *\n * Prefer `Effect.fn(\"...\")` when a function owns the operation and `Effect.withSpan(\"...\")` around\n * an existing effect boundary. Do not add spans for pure transforms, bookkeeping, condition checks,\n * retry-delay calculations, or other near-zero-width implementation steps. Use unnamed `Effect.fn`\n * when a function benefits from Effect structure but would not add a useful node to the trace.\n *\n * Application-specific operations belong in the application catalog, not this reusable catalog.\n */\nexport const SpanNames = defineSpanNames([\n \"agent.command.submit\",\n \"agent.command.submit.wait\",\n \"agent.command.wait\",\n \"agent.compaction\",\n \"agent.events.follow\",\n \"agent.events.page\",\n \"agent.events.stream\",\n \"agent.inference\",\n \"agent.messages.list\",\n \"agent.run\",\n \"agent.run.grant\",\n \"agent.run.request.outcome\",\n \"agent.session.hydrate\",\n \"agent.session.snapshot\",\n \"agent.sink.drain\",\n \"agent.sinks.initialize\",\n \"agent.tool\",\n \"agent.turn\",\n]);\n\n/** Union of values admitted by the centralized EDA span-name catalog. */\nexport type SpanName = (typeof SpanNames)[number];\n"],"mappings":";AAEA,MAAM,mBACJ,UACU;;;;;;;;;;;;;;;;;;;;;;AAuBZ,MAAa,YAAY,gBAAgB;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC"}
@@ -1,2 +1,2 @@
1
- import { a as ToolParamsSchema, i as EDAToolRegistryShape, n as EDAToolExecutionContext, o as makeEDAToolkit, r as EDAToolRegistry, t as EDAModelToolkit } from "../tool-registry-Dhs2KmYK.js";
1
+ import { a as ToolParamsSchema, i as EDAToolRegistryShape, n as EDAToolExecutionContext, o as makeEDAToolkit, r as EDAToolRegistry, t as EDAModelToolkit } from "../tool-registry-CHMtDCJ5.js";
2
2
  export { EDAModelToolkit, EDAToolExecutionContext, EDAToolRegistry, EDAToolRegistryShape, ToolParamsSchema, makeEDAToolkit };
@@ -72,7 +72,7 @@ var ExportingNativeSpan = class extends Tracer.NativeSpan {
72
72
  }
73
73
  end(endTime, exit) {
74
74
  super.end(endTime, exit);
75
- if (endTime <= this.startTime) return;
75
+ if (endTime <= this.startTime && this.name !== "agent.session.hydrate" && this.name !== "agent.sinks.initialize") return;
76
76
  const parent = Option.getOrUndefined(this.parent);
77
77
  this.#emit({
78
78
  attributes: compactUnknownAttributes(this.attributes),
@@ -1 +1 @@
1
- {"version":3,"file":"tracing.js","names":["#emit"],"sources":["../../src/services/tracing.ts"],"sourcesContent":["import * as Cause from \"effect/Cause\";\nimport * as Effect from \"effect/Effect\";\nimport * as Exit from \"effect/Exit\";\nimport * as Option from \"effect/Option\";\nimport * as Tracer from \"effect/Tracer\";\n\nimport type { UsagePayload } from \"../types/events\";\nimport {\n EDATraceContext,\n type EDAEventTrace,\n type EDATraceAttributeValue,\n type EDATraceMetadata,\n makeEDAEventTrace,\n makeEDATraceContext,\n makeRootEDAEventTrace,\n} from \"../types/tracing\";\n\nexport {\n EDATraceContext,\n EDARunTrace,\n EDATraceLink,\n EDATraceMetadata,\n EDAEventTrace,\n makeEDAEventTrace,\n makeEDARunTrace,\n makeEDATraceContext,\n makeEDATraceMetadataFromParent,\n makeRootEDAEventTrace,\n makeRootEDATraceMetadata,\n} from \"../types/tracing\";\n\nexport { buildEDATraceparent, parseEDATraceparent } from \"../types/tracing\";\n\n/** Attribute value types accepted by Effect span annotations after compaction. */\nexport type EdaSpanAttributeValue = EDATraceAttributeValue | undefined;\n\n/** EDA span attribute map; undefined values are intentionally dropped before annotation. */\nexport type EdaSpanAttributes = Record<string, EdaSpanAttributeValue>;\n\nexport interface EDATracingOptions {\n readonly disableTracing?: boolean;\n readonly disableSpanPropagation?: boolean;\n readonly spanAttributes?: EdaSpanAttributes;\n readonly spanPrefix?: string;\n}\n\nexport interface EDAExportedSpanLink {\n readonly attributes: Record<string, string | number | boolean>;\n readonly sampled: boolean;\n readonly spanId: string;\n readonly traceId: string;\n}\n\nexport interface EDAExportedSpan {\n readonly attributes: Record<string, string | number | boolean>;\n readonly endedAtMs: number;\n readonly endedAtUnixNano: string;\n readonly kind: Tracer.SpanKind;\n readonly links: ReadonlyArray<EDAExportedSpanLink>;\n readonly name: string;\n readonly outcome: \"ok\" | \"error\" | \"timeout\" | \"canceled\";\n readonly parentSpanId?: string;\n readonly sampled: boolean;\n readonly spanId: string;\n readonly startedAtMs: number;\n readonly startedAtUnixNano: string;\n readonly statusCode: \"OK\" | \"ERROR\";\n readonly statusMessage?: string;\n readonly traceId: string;\n}\n\n/** Maximum primitive attributes copied from one native Effect span or link. */\nconst MAX_EXPORTED_SPAN_ATTRIBUTES = 256;\n\ninterface EventLike {\n readonly event?: { readonly type?: unknown; readonly durability?: unknown };\n readonly type?: unknown;\n}\n\ninterface PositionedEventLike {\n readonly position?: { readonly seq?: unknown; readonly subSeq?: unknown };\n readonly event?: { readonly type?: unknown; readonly durability?: unknown };\n}\n\n/** Compact undefined tracing attributes before handing them to Effect spans. */\nexport const compactSpanAttributes = (\n attributes: EdaSpanAttributes,\n): Record<string, string | number | boolean> => {\n const compacted: Record<string, string | number | boolean> = {};\n for (const [key, value] of Object.entries(attributes)) {\n if (value !== undefined) {\n compacted[key] = value;\n }\n }\n return compacted;\n};\n\nconst compactUnknownAttributes = (\n attributes: Readonly<Record<string, unknown>> | ReadonlyMap<string, unknown>,\n): Record<string, string | number | boolean> => {\n const compacted: Record<string, string | number | boolean> = {};\n try {\n if (attributes instanceof Map) {\n let count = 0;\n for (const [key, value] of attributes) {\n if (count >= MAX_EXPORTED_SPAN_ATTRIBUTES) {\n break;\n }\n count += 1;\n if (typeof value === \"string\" || typeof value === \"number\" || typeof value === \"boolean\") {\n compacted[key] = value;\n }\n }\n return compacted;\n }\n\n const keys = Object.keys(attributes).slice(0, MAX_EXPORTED_SPAN_ATTRIBUTES);\n for (const key of keys) {\n let value: unknown;\n try {\n value = Reflect.get(attributes, key);\n } catch {\n continue;\n }\n if (typeof value === \"string\" || typeof value === \"number\" || typeof value === \"boolean\") {\n compacted[key] = value;\n }\n }\n } catch {\n // Tracing diagnostics must not replace the operation whose span is ending.\n }\n return compacted;\n};\n\nexport const toEdaExternalSpan = (context: EDATraceContext): Tracer.ExternalSpan =>\n Tracer.externalSpan({\n traceId: context.traceId,\n spanId: context.spanId,\n sampled: context.sampled,\n });\n\nexport const edaTraceContextFromSpan = (span: Tracer.AnySpan): EDATraceContext =>\n makeEDATraceContext({\n traceId: span.traceId,\n spanId: span.spanId,\n sampled: span.sampled,\n tracestate: null,\n });\n\nexport const currentEDATraceContext: Effect.Effect<EDATraceContext, unknown> =\n Effect.currentSpan.pipe(Effect.map(edaTraceContextFromSpan));\n\nexport const currentOrRootEDAEventTrace: Effect.Effect<EDAEventTrace> = Effect.currentSpan.pipe(\n Effect.map((span) => makeEDAEventTrace(edaTraceContextFromSpan(span))),\n Effect.catch(() => Effect.sync(makeRootEDAEventTrace)),\n);\n\nexport const withEdaTraceMetadata =\n (metadata: EDATraceMetadata) =>\n <A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R> =>\n effect.pipe(Effect.annotateSpans(metadata.attributes));\n\n/** Add EDA attributes to the currently active span. */\nexport const annotateEdaSpan = (attributes: EdaSpanAttributes): Effect.Effect<void> =>\n Effect.annotateCurrentSpan(compactSpanAttributes(attributes));\n\nconst nanosToMillis = (nanos: bigint): number => Number(nanos / 1_000_000n);\n\nconst outcomeFromExit = (exit: Exit.Exit<unknown, unknown>): EDAExportedSpan[\"outcome\"] => {\n if (Exit.isSuccess(exit)) {\n return \"ok\";\n }\n return Cause.hasInterruptsOnly(exit.cause) ? \"canceled\" : \"error\";\n};\n\nconst statusMessageFromExit = (exit: Exit.Exit<unknown, unknown>): string | undefined => {\n if (Exit.isSuccess(exit)) {\n return undefined;\n }\n const error = Cause.squash(exit.cause);\n return error instanceof Error ? error.message : String(error);\n};\n\nclass ExportingNativeSpan extends Tracer.NativeSpan {\n readonly #emit: (span: EDAExportedSpan) => void;\n\n constructor(\n options: ConstructorParameters<typeof Tracer.NativeSpan>[0],\n emit: (span: EDAExportedSpan) => void,\n ) {\n super(options);\n this.#emit = emit;\n }\n\n override end(endTime: bigint, exit: Exit.Exit<unknown, unknown>): void {\n super.end(endTime, exit);\n // Workers can report the same clock tick for very fast operations. Such spans\n // add noise without describing execution, so keep them out of exported traces.\n if (endTime <= this.startTime) {\n return;\n }\n const parent = Option.getOrUndefined(this.parent);\n this.#emit({\n attributes: compactUnknownAttributes(this.attributes),\n endedAtMs: nanosToMillis(endTime),\n endedAtUnixNano: endTime.toString(),\n kind: this.kind,\n links: this.links.map((link) => ({\n attributes: compactUnknownAttributes(link.attributes),\n traceId: link.span.traceId,\n spanId: link.span.spanId,\n sampled: link.span.sampled,\n })),\n name: this.name,\n outcome: outcomeFromExit(exit),\n ...(parent === undefined ? {} : { parentSpanId: parent.spanId }),\n sampled: this.sampled,\n spanId: this.spanId,\n startedAtMs: nanosToMillis(this.startTime),\n startedAtUnixNano: this.startTime.toString(),\n statusCode: Exit.isSuccess(exit) ? \"OK\" : \"ERROR\",\n ...(statusMessageFromExit(exit) === undefined\n ? {}\n : { statusMessage: statusMessageFromExit(exit) }),\n traceId: this.traceId,\n });\n }\n}\n\n/** Create an Effect tracer that exports only spans with observable duration. */\nexport const makeEdaExportingTracer = (emit: (span: EDAExportedSpan) => void): Tracer.Tracer =>\n Tracer.make({\n span: (options) => new ExportingNativeSpan(options, emit),\n });\n\n/** Summarize a durable/logical event collection for span attributes. */\nexport const eventBatchAttributes = (events: ReadonlyArray<EventLike>): EdaSpanAttributes => ({\n \"eda.event.count\": events.length,\n \"eda.event.types\": eventTypeSummary(events),\n});\n\n/** Summarize a committed positioned event collection for span attributes. */\nexport const committedBatchAttributes = (\n events: ReadonlyArray<PositionedEventLike>,\n): EdaSpanAttributes => {\n const seqs = events\n .map((entry) => entry.position?.seq)\n .filter((seq): seq is number => typeof seq === \"number\");\n return {\n ...eventBatchAttributes(events),\n \"eda.seq.min\": seqs.length === 0 ? undefined : Math.min(...seqs),\n \"eda.seq.max\": seqs.length === 0 ? undefined : Math.max(...seqs),\n };\n};\n\n/** Stable, low-cardinality usage attributes for model lifecycle spans. */\nexport const usageAttributes = (usage: UsagePayload | undefined): EdaSpanAttributes => ({\n \"eda.usage.input_tokens\": usage?.inputTokens,\n \"eda.usage.cached_input_tokens\": usage?.cachedInputTokens,\n \"eda.usage.output_tokens\": usage?.outputTokens,\n \"eda.usage.text_tokens\": usage?.textTokens,\n \"eda.usage.reasoning_tokens\": usage?.reasoningTokens,\n});\n\nconst eventTypeSummary = (events: ReadonlyArray<EventLike>): string | undefined => {\n if (events.length === 0) {\n return undefined;\n }\n const seen = new Set<string>();\n for (const event of events) {\n const type = event.event?.type ?? event.type;\n if (typeof type === \"string\") {\n seen.add(type);\n }\n }\n return seen.size === 0 ? undefined : Array.from(seen).join(\",\");\n};\n"],"mappings":"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"}
1
+ {"version":3,"file":"tracing.js","names":["#emit"],"sources":["../../src/services/tracing.ts"],"sourcesContent":["import * as Cause from \"effect/Cause\";\nimport * as Effect from \"effect/Effect\";\nimport * as Exit from \"effect/Exit\";\nimport * as Option from \"effect/Option\";\nimport * as Tracer from \"effect/Tracer\";\n\nimport type { UsagePayload } from \"../types/events\";\nimport {\n EDATraceContext,\n type EDAEventTrace,\n type EDATraceAttributeValue,\n type EDATraceMetadata,\n makeEDAEventTrace,\n makeEDATraceContext,\n makeRootEDAEventTrace,\n} from \"../types/tracing\";\n\nexport {\n EDATraceContext,\n EDARunTrace,\n EDATraceLink,\n EDATraceMetadata,\n EDAEventTrace,\n makeEDAEventTrace,\n makeEDARunTrace,\n makeEDATraceContext,\n makeEDATraceMetadataFromParent,\n makeRootEDAEventTrace,\n makeRootEDATraceMetadata,\n} from \"../types/tracing\";\n\nexport { buildEDATraceparent, parseEDATraceparent } from \"../types/tracing\";\n\n/** Attribute value types accepted by Effect span annotations after compaction. */\nexport type EdaSpanAttributeValue = EDATraceAttributeValue | undefined;\n\n/** EDA span attribute map; undefined values are intentionally dropped before annotation. */\nexport type EdaSpanAttributes = Record<string, EdaSpanAttributeValue>;\n\nexport interface EDATracingOptions {\n readonly disableTracing?: boolean;\n readonly disableSpanPropagation?: boolean;\n readonly spanAttributes?: EdaSpanAttributes;\n readonly spanPrefix?: string;\n}\n\nexport interface EDAExportedSpanLink {\n readonly attributes: Record<string, string | number | boolean>;\n readonly sampled: boolean;\n readonly spanId: string;\n readonly traceId: string;\n}\n\nexport interface EDAExportedSpan {\n readonly attributes: Record<string, string | number | boolean>;\n readonly endedAtMs: number;\n readonly endedAtUnixNano: string;\n readonly kind: Tracer.SpanKind;\n readonly links: ReadonlyArray<EDAExportedSpanLink>;\n readonly name: string;\n readonly outcome: \"ok\" | \"error\" | \"timeout\" | \"canceled\";\n readonly parentSpanId?: string;\n readonly sampled: boolean;\n readonly spanId: string;\n readonly startedAtMs: number;\n readonly startedAtUnixNano: string;\n readonly statusCode: \"OK\" | \"ERROR\";\n readonly statusMessage?: string;\n readonly traceId: string;\n}\n\n/** Maximum primitive attributes copied from one native Effect span or link. */\nconst MAX_EXPORTED_SPAN_ATTRIBUTES = 256;\n\ninterface EventLike {\n readonly event?: { readonly type?: unknown; readonly durability?: unknown };\n readonly type?: unknown;\n}\n\ninterface PositionedEventLike {\n readonly position?: { readonly seq?: unknown; readonly subSeq?: unknown };\n readonly event?: { readonly type?: unknown; readonly durability?: unknown };\n}\n\n/** Compact undefined tracing attributes before handing them to Effect spans. */\nexport const compactSpanAttributes = (\n attributes: EdaSpanAttributes,\n): Record<string, string | number | boolean> => {\n const compacted: Record<string, string | number | boolean> = {};\n for (const [key, value] of Object.entries(attributes)) {\n if (value !== undefined) {\n compacted[key] = value;\n }\n }\n return compacted;\n};\n\nconst compactUnknownAttributes = (\n attributes: Readonly<Record<string, unknown>> | ReadonlyMap<string, unknown>,\n): Record<string, string | number | boolean> => {\n const compacted: Record<string, string | number | boolean> = {};\n try {\n if (attributes instanceof Map) {\n let count = 0;\n for (const [key, value] of attributes) {\n if (count >= MAX_EXPORTED_SPAN_ATTRIBUTES) {\n break;\n }\n count += 1;\n if (typeof value === \"string\" || typeof value === \"number\" || typeof value === \"boolean\") {\n compacted[key] = value;\n }\n }\n return compacted;\n }\n\n const keys = Object.keys(attributes).slice(0, MAX_EXPORTED_SPAN_ATTRIBUTES);\n for (const key of keys) {\n let value: unknown;\n try {\n value = Reflect.get(attributes, key);\n } catch {\n continue;\n }\n if (typeof value === \"string\" || typeof value === \"number\" || typeof value === \"boolean\") {\n compacted[key] = value;\n }\n }\n } catch {\n // Tracing diagnostics must not replace the operation whose span is ending.\n }\n return compacted;\n};\n\nexport const toEdaExternalSpan = (context: EDATraceContext): Tracer.ExternalSpan =>\n Tracer.externalSpan({\n traceId: context.traceId,\n spanId: context.spanId,\n sampled: context.sampled,\n });\n\nexport const edaTraceContextFromSpan = (span: Tracer.AnySpan): EDATraceContext =>\n makeEDATraceContext({\n traceId: span.traceId,\n spanId: span.spanId,\n sampled: span.sampled,\n tracestate: null,\n });\n\nexport const currentEDATraceContext: Effect.Effect<EDATraceContext, unknown> =\n Effect.currentSpan.pipe(Effect.map(edaTraceContextFromSpan));\n\nexport const currentOrRootEDAEventTrace: Effect.Effect<EDAEventTrace> = Effect.currentSpan.pipe(\n Effect.map((span) => makeEDAEventTrace(edaTraceContextFromSpan(span))),\n Effect.catch(() => Effect.sync(makeRootEDAEventTrace)),\n);\n\nexport const withEdaTraceMetadata =\n (metadata: EDATraceMetadata) =>\n <A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R> =>\n effect.pipe(Effect.annotateSpans(metadata.attributes));\n\n/** Add EDA attributes to the currently active span. */\nexport const annotateEdaSpan = (attributes: EdaSpanAttributes): Effect.Effect<void> =>\n Effect.annotateCurrentSpan(compactSpanAttributes(attributes));\n\nconst nanosToMillis = (nanos: bigint): number => Number(nanos / 1_000_000n);\n\nconst outcomeFromExit = (exit: Exit.Exit<unknown, unknown>): EDAExportedSpan[\"outcome\"] => {\n if (Exit.isSuccess(exit)) {\n return \"ok\";\n }\n return Cause.hasInterruptsOnly(exit.cause) ? \"canceled\" : \"error\";\n};\n\nconst statusMessageFromExit = (exit: Exit.Exit<unknown, unknown>): string | undefined => {\n if (Exit.isSuccess(exit)) {\n return undefined;\n }\n const error = Cause.squash(exit.cause);\n return error instanceof Error ? error.message : String(error);\n};\n\nclass ExportingNativeSpan extends Tracer.NativeSpan {\n readonly #emit: (span: EDAExportedSpan) => void;\n\n constructor(\n options: ConstructorParameters<typeof Tracer.NativeSpan>[0],\n emit: (span: EDAExportedSpan) => void,\n ) {\n super(options);\n this.#emit = emit;\n }\n\n override end(endTime: bigint, exit: Exit.Exit<unknown, unknown>): void {\n super.end(endTime, exit);\n // Keep the two startup summaries even within one clock tick: their checkpoint\n // and reuse counts explain why initialization was fast. Other zero-duration\n // spans add noise without describing execution.\n if (\n endTime <= this.startTime &&\n this.name !== \"agent.session.hydrate\" &&\n this.name !== \"agent.sinks.initialize\"\n ) {\n return;\n }\n const parent = Option.getOrUndefined(this.parent);\n this.#emit({\n attributes: compactUnknownAttributes(this.attributes),\n endedAtMs: nanosToMillis(endTime),\n endedAtUnixNano: endTime.toString(),\n kind: this.kind,\n links: this.links.map((link) => ({\n attributes: compactUnknownAttributes(link.attributes),\n traceId: link.span.traceId,\n spanId: link.span.spanId,\n sampled: link.span.sampled,\n })),\n name: this.name,\n outcome: outcomeFromExit(exit),\n ...(parent === undefined ? {} : { parentSpanId: parent.spanId }),\n sampled: this.sampled,\n spanId: this.spanId,\n startedAtMs: nanosToMillis(this.startTime),\n startedAtUnixNano: this.startTime.toString(),\n statusCode: Exit.isSuccess(exit) ? \"OK\" : \"ERROR\",\n ...(statusMessageFromExit(exit) === undefined\n ? {}\n : { statusMessage: statusMessageFromExit(exit) }),\n traceId: this.traceId,\n });\n }\n}\n\n/** Create an Effect tracer that exports only spans with observable duration. */\nexport const makeEdaExportingTracer = (emit: (span: EDAExportedSpan) => void): Tracer.Tracer =>\n Tracer.make({\n span: (options) => new ExportingNativeSpan(options, emit),\n });\n\n/** Summarize a durable/logical event collection for span attributes. */\nexport const eventBatchAttributes = (events: ReadonlyArray<EventLike>): EdaSpanAttributes => ({\n \"eda.event.count\": events.length,\n \"eda.event.types\": eventTypeSummary(events),\n});\n\n/** Summarize a committed positioned event collection for span attributes. */\nexport const committedBatchAttributes = (\n events: ReadonlyArray<PositionedEventLike>,\n): EdaSpanAttributes => {\n const seqs = events\n .map((entry) => entry.position?.seq)\n .filter((seq): seq is number => typeof seq === \"number\");\n return {\n ...eventBatchAttributes(events),\n \"eda.seq.min\": seqs.length === 0 ? undefined : Math.min(...seqs),\n \"eda.seq.max\": seqs.length === 0 ? undefined : Math.max(...seqs),\n };\n};\n\n/** Stable, low-cardinality usage attributes for model lifecycle spans. */\nexport const usageAttributes = (usage: UsagePayload | undefined): EdaSpanAttributes => ({\n \"eda.usage.input_tokens\": usage?.inputTokens,\n \"eda.usage.cached_input_tokens\": usage?.cachedInputTokens,\n \"eda.usage.output_tokens\": usage?.outputTokens,\n \"eda.usage.text_tokens\": usage?.textTokens,\n \"eda.usage.reasoning_tokens\": usage?.reasoningTokens,\n});\n\nconst eventTypeSummary = (events: ReadonlyArray<EventLike>): string | undefined => {\n if (events.length === 0) {\n return undefined;\n }\n const seen = new Set<string>();\n for (const event of events) {\n const type = event.event?.type ?? event.type;\n if (typeof type === \"string\") {\n seen.add(type);\n }\n }\n return seen.size === 0 ? undefined : Array.from(seen).join(\",\");\n};\n"],"mappings":"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"}
@@ -1,11 +1,11 @@
1
1
  import { h as SequenceNumber, m as RunRequestId } from "./core-C-6xHzRx.js";
2
- import { $ as RunRequestOutcome, S as ReducedState } from "./command-queues-B45Xa1Dl.js";
2
+ import { $ as RunRequestOutcome, S as ReducedState } from "./command-queues-CSEl1yrH.js";
3
3
  import { d as PositionedEvent } from "./envelope-DkZyMIgp.js";
4
- import { a as EDASessionStore, o as EDASessionStoreError } from "./session-store-BIr-xfJ7.js";
5
- import { t as DurableTranscriptMessage } from "./message-transcript-Dr6Rk-re.js";
6
- import { u as LiveEventBus } from "./sink-registry-C2t3DI_g.js";
7
- import { a as EDAReducerStateSnapshot } from "./reducer-registry-DqljrD58.js";
8
- import { h as SessionState } from "./session-state-13z-3YaF.js";
4
+ import { a as EDASessionStore, o as EDASessionStoreError } from "./session-store-DCs--1kc.js";
5
+ import { t as DurableTranscriptMessage } from "./message-transcript-CmCHC1Pg.js";
6
+ import { u as LiveEventBus } from "./sink-registry-CU-WMK96.js";
7
+ import { a as EDAReducerStateSnapshot } from "./reducer-registry-BgtK0NuX.js";
8
+ import { h as SessionState } from "./session-state-Cm5sXbZW.js";
9
9
  import * as Context from "effect/Context";
10
10
  import * as Effect from "effect/Effect";
11
11
  import * as Layer from "effect/Layer";
@@ -44,4 +44,4 @@ declare class EDASessionQuery extends EDASessionQuery_base {
44
44
  }
45
45
  //#endregion
46
46
  export { EDASessionSnapshot as i, EDASessionQuery as n, EDASessionQueryShape as r, EDASessionEventPage as t };
47
- //# sourceMappingURL=session-query-DYuJXhMQ.d.ts.map
47
+ //# sourceMappingURL=session-query-Dzdcr2xL.d.ts.map