effect-durable-agent 0.1.0-alpha.21 → 0.1.0-alpha.22
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/README.md +2 -2
- package/dist/assert-never-CoyUpoRB.js +18 -0
- package/dist/assert-never-CoyUpoRB.js.map +1 -0
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/domain/reduced-state.js +927 -2
- package/dist/domain/reduced-state.js.map +1 -0
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{reduced-state-BGd_yCBT.d.ts → reduced-state-PJdig48e.d.ts} +4171 -4171
- package/dist/{reducer-registry-BIhncOHH.d.ts → reducer-registry-BAbhZs6d.d.ts} +2 -2
- package/dist/{run-scheduling-wakeup-BH2pHE0U.d.ts → run-scheduling-wakeup-QLK87OqG.d.ts} +2 -2
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/model-call.d.ts +1 -1
- package/dist/services/prompt-projector.d.ts +1 -1
- package/dist/services/reducer-registry.d.ts +1 -1
- package/dist/services/reducer-registry.js +1 -1
- package/dist/services/run-scheduler.d.ts +1 -1
- package/dist/services/run-scheduling-wakeup.d.ts +1 -1
- package/dist/services/runtime-layer.d.ts +6 -6
- package/dist/services/runtime-layer.js +3 -3
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +1 -1
- package/dist/services/session-query.d.ts +1 -1
- package/dist/services/session-query.js +2 -2
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-state.js +1 -1
- package/dist/services/session-store.d.ts +2 -2
- package/dist/services/session-store.js +1 -251
- package/dist/services/sink-checkpoint-store.d.ts +1 -1
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/sink-registry.js +1 -1
- package/dist/services/tool-registry.d.ts +1 -1
- package/dist/{session-state-C_1XxhvE.js → session-state-StlO5B2N.js} +5 -4
- package/dist/{session-state-C_1XxhvE.js.map → session-state-StlO5B2N.js.map} +1 -1
- package/dist/session-store-ByDjS03N.d.ts +3184 -0
- package/dist/session-store-DcJjs4Fd.js +413 -0
- package/dist/session-store-DcJjs4Fd.js.map +1 -0
- package/dist/{sink-checkpoint-store-C-SY0cG2.d.ts → sink-checkpoint-store-BHb8YRTw.d.ts} +2 -2
- package/dist/{sink-registry-CjK5MC90.js → sink-registry-DEneTH8u.js} +3 -3
- package/dist/{sink-registry-CjK5MC90.js.map → sink-registry-DEneTH8u.js.map} +1 -1
- package/dist/testkit/layers.d.ts +6 -6
- package/dist/testkit/layers.js +3 -3
- package/dist/{tool-registry-wPsHagF_.d.ts → tool-registry-CxZ0iuYb.d.ts} +2 -2
- package/dist/transcript.d.ts +137 -0
- package/dist/transcript.js +178 -0
- package/dist/transcript.js.map +1 -0
- package/dist/websocket.d.ts +1 -1
- package/dist/window-read-B8aF_hDq.js +2173 -0
- package/dist/window-read-B8aF_hDq.js.map +1 -0
- package/package.json +5 -1
- package/dist/reduced-state-Vuud6LCM.js +0 -942
- package/dist/reduced-state-Vuud6LCM.js.map +0 -1
- package/dist/services/session-store.js.map +0 -1
- package/dist/session-store-BpitF4Wg.d.ts +0 -191
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as DurableEventEnvelope } from "./envelope-Che6KatU.js";
|
|
2
2
|
import { H as DecodedDurableEvent } from "./durable-CKdCCqhw.js";
|
|
3
3
|
import "./events-BWuvzVml.js";
|
|
4
|
-
import { t as CommittedDurableEvent } from "./session-store-
|
|
4
|
+
import { t as CommittedDurableEvent } from "./session-store-ByDjS03N.js";
|
|
5
5
|
import * as Context from "effect/Context";
|
|
6
6
|
import * as Layer from "effect/Layer";
|
|
7
7
|
import * as Schema from "effect/Schema";
|
|
@@ -82,4 +82,4 @@ declare class EDAReducerRegistry extends EDAReducerRegistry_base {
|
|
|
82
82
|
declare const getEDAReducerState: <State, Name extends string>(snapshot: EDAReducerStateSnapshot, reducer: EDAReducer<State, Name>) => State;
|
|
83
83
|
//#endregion
|
|
84
84
|
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 };
|
|
85
|
-
//# sourceMappingURL=reducer-registry-
|
|
85
|
+
//# sourceMappingURL=reducer-registry-BAbhZs6d.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as EDASessionStoreError } from "./session-store-
|
|
1
|
+
import { s as EDASessionStoreError } from "./session-store-ByDjS03N.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";
|
|
@@ -21,4 +21,4 @@ declare class RunSchedulingWakeup extends RunSchedulingWakeup_base {
|
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
23
|
export { RunSchedulingWakeupShape as n, RunSchedulingWakeup as t };
|
|
24
|
-
//# sourceMappingURL=run-scheduling-wakeup-
|
|
24
|
+
//# sourceMappingURL=run-scheduling-wakeup-QLK87OqG.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { An as defaultCompactionRetainTailTokens, Cn as CompactionRunner, Dn as PromptPrefixSummaryCompactionExecutorOptions, En as LanguageModelSummaryCompactionExecutorOptions, Mn as defaultCompactionThresholdTokens, Nn as promptPrefixSummaryCompactionExecutor, On as defaultCompactionCharsPerToken, Sn as CompactionPolicyShape, Tn as CompactionRunnerShape, _n as CompactionExecutorShape, bn as CompactionPolicy, gn as CompactionExecutorInput, hn as CompactionExecutor, jn as defaultCompactionSummaryInstructions, kn as defaultCompactionMinSummarizableTokens, mn as CompactionError, pn as ApproximateTokenThresholdCompactionPolicyOptions, vn as CompactionOutput, wn as CompactionRunnerInput, xn as CompactionPolicyInput, yn as CompactionPlan } from "../reduced-state-
|
|
1
|
+
import { An as defaultCompactionRetainTailTokens, Cn as CompactionRunner, Dn as PromptPrefixSummaryCompactionExecutorOptions, En as LanguageModelSummaryCompactionExecutorOptions, Mn as defaultCompactionThresholdTokens, Nn as promptPrefixSummaryCompactionExecutor, On as defaultCompactionCharsPerToken, Sn as CompactionPolicyShape, Tn as CompactionRunnerShape, _n as CompactionExecutorShape, bn as CompactionPolicy, gn as CompactionExecutorInput, hn as CompactionExecutor, jn as defaultCompactionSummaryInstructions, kn as defaultCompactionMinSummarizableTokens, mn as CompactionError, pn as ApproximateTokenThresholdCompactionPolicyOptions, vn as CompactionOutput, wn as CompactionRunnerInput, xn as CompactionPolicyInput, yn as CompactionPlan } from "../reduced-state-PJdig48e.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,4 +1,4 @@
|
|
|
1
|
-
import { t as EDAModelToolkit } from "../tool-registry-
|
|
1
|
+
import { t as EDAModelToolkit } from "../tool-registry-CxZ0iuYb.js";
|
|
2
2
|
import * as Effect from "effect/Effect";
|
|
3
3
|
import * as LanguageModel from "effect/ai/LanguageModel";
|
|
4
4
|
import * as Prompt from "effect/ai/Prompt";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bn as EDAPromptProjectorShape, Gn as nativeCompactionSummaryMessage, Hn as buildEDAPrompt, In as EDANativeCompaction, Ln as EDAProjectedPromptContext, Rn as EDAPromptProjectionInput, Un as getNativeCompaction, Vn as EDA_PROMPT_OPTIONS_KEY, Wn as isEDACacheBreakpoint, zn as EDAPromptProjector } from "../reduced-state-
|
|
1
|
+
import { Bn as EDAPromptProjectorShape, Gn as nativeCompactionSummaryMessage, Hn as buildEDAPrompt, In as EDANativeCompaction, Ln as EDAProjectedPromptContext, Rn as EDAPromptProjectionInput, Un as getNativeCompaction, Vn as EDA_PROMPT_OPTIONS_KEY, Wn as isEDACacheBreakpoint, zn as EDAPromptProjector } from "../reduced-state-PJdig48e.js";
|
|
2
2
|
export { EDANativeCompaction, EDAProjectedPromptContext, EDAPromptProjectionInput, EDAPromptProjector, EDAPromptProjectorShape, EDA_PROMPT_OPTIONS_KEY, buildEDAPrompt, getNativeCompaction, isEDACacheBreakpoint, nativeCompactionSummaryMessage };
|
|
@@ -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-
|
|
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-BAbhZs6d.js";
|
|
2
2
|
export { EDAReducer, EDAReducerDefinition, EDAReducerRegistry, EDAReducerRegistryShape, EDAReducerStateSnapshot, EDAReducersFor, EDATypedReducerRegistry, decodeReducerState, defineEDAReducerRegistry, edaReservedReducerNamePrefix, encodeReducerState, getEDAReducerState, reducerSchemaVersion };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bt as RunResolution, Ft as RunSchedulingDeliveryError, Ht as RunSchedulingInput, It as DeferredRunResolution, Lt as LocalRunResolution, Mt as RunScheduler, Nt as RunSchedulerShape, Pt as RunSchedulingDelivery } from "../reduced-state-
|
|
1
|
+
import { Bt as RunResolution, Ft as RunSchedulingDeliveryError, Ht as RunSchedulingInput, It as DeferredRunResolution, Lt as LocalRunResolution, Mt as RunScheduler, Nt as RunSchedulerShape, Pt as RunSchedulingDelivery } from "../reduced-state-PJdig48e.js";
|
|
2
2
|
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-
|
|
1
|
+
import { n as RunSchedulingWakeupShape, t as RunSchedulingWakeup } from "../run-scheduling-wakeup-QLK87OqG.js";
|
|
2
2
|
export { RunSchedulingWakeup, RunSchedulingWakeupShape };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { g as SessionId } from "../core-BcimKMIv.js";
|
|
2
|
-
import { i as EDAAppEvents, o as EDASessionStore, s as EDASessionStoreError } from "../session-store-
|
|
2
|
+
import { i as EDAAppEvents, o as EDASessionStore, s as EDASessionStoreError } from "../session-store-ByDjS03N.js";
|
|
3
3
|
import { t as ModelResolver } from "../model-resolver-DUms5p6X.js";
|
|
4
|
-
import { r as EDAReducerRegistry } from "../reducer-registry-
|
|
5
|
-
import { K as EDARuntime, Mt as RunScheduler, bn as CompactionPolicy, ft as SessionCommandAdmissionError, hn as CompactionExecutor, q as EDARuntimeConfig, rn as EDASink, zn as EDAPromptProjector } from "../reduced-state-
|
|
6
|
-
import { i as EDAToolRegistryShape, t as EDAModelToolkit } from "../tool-registry-
|
|
4
|
+
import { r as EDAReducerRegistry } from "../reducer-registry-BAbhZs6d.js";
|
|
5
|
+
import { K as EDARuntime, Mt as RunScheduler, bn as CompactionPolicy, ft as SessionCommandAdmissionError, hn as CompactionExecutor, q as EDARuntimeConfig, rn as EDASink, zn as EDAPromptProjector } from "../reduced-state-PJdig48e.js";
|
|
6
|
+
import { i as EDAToolRegistryShape, t as EDAModelToolkit } from "../tool-registry-CxZ0iuYb.js";
|
|
7
7
|
import { t as IdGenerator } from "../id-generator-BKGoKjt-.js";
|
|
8
8
|
import { t as EDAKeepAlive } from "../keep-alive-_zFCUvt3.js";
|
|
9
9
|
import { t as SessionEventObserver } from "../session-event-observer-BdZltdrK.js";
|
|
10
|
-
import { n as SinkCheckpointStore } from "../sink-checkpoint-store-
|
|
11
|
-
import { t as RunSchedulingWakeup } from "../run-scheduling-wakeup-
|
|
10
|
+
import { n as SinkCheckpointStore } from "../sink-checkpoint-store-BHb8YRTw.js";
|
|
11
|
+
import { t as RunSchedulingWakeup } from "../run-scheduling-wakeup-QLK87OqG.js";
|
|
12
12
|
import * as Layer from "effect/Layer";
|
|
13
13
|
import * as Tracer from "effect/Tracer";
|
|
14
14
|
//#region src/services/runtime-layer.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
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, m as LiveEventBus, p as ToolExecutor, u as SessionState } from "../session-state-
|
|
4
|
-
import { EDASessionStore, registerAppEvents } from "
|
|
3
|
+
import { d as TurnRunner, f as InferenceRunner, m as LiveEventBus, p as ToolExecutor, u as SessionState } from "../session-state-StlO5B2N.js";
|
|
4
|
+
import { i as EDASessionStore, l as registerAppEvents } from "../session-store-DcJjs4Fd.js";
|
|
5
5
|
import { a as CompactionPolicy, n as CompactionExecutor, o as CompactionRunner } from "../compaction-ajHZ5l7f.js";
|
|
6
6
|
import { EDAPromptProjector } from "./prompt-projector.js";
|
|
7
7
|
import { n as SessionContext, t as EventFactory } from "../event-factory-VAci3NJb.js";
|
|
@@ -10,7 +10,7 @@ import { IdGenerator } from "./id-generator.js";
|
|
|
10
10
|
import { EDAKeepAlive } from "./keep-alive.js";
|
|
11
11
|
import { SessionEventObserver } from "./session-event-observer.js";
|
|
12
12
|
import { EDAReducerRegistry } from "./reducer-registry.js";
|
|
13
|
-
import { n as EDASinkRegistry } from "../sink-registry-
|
|
13
|
+
import { n as EDASinkRegistry } from "../sink-registry-DEneTH8u.js";
|
|
14
14
|
import { EDASessionQuery } from "./session-query.js";
|
|
15
15
|
import { EDARuntime } from "./runtime.js";
|
|
16
16
|
import * as Effect from "effect/Effect";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-PJdig48e.js";
|
|
2
2
|
export { CommittedCommandTerminalEvent, EDACommandTerminalEvent, EDARuntime, EDARuntimeConfig, EDARuntimeError, EDARuntimeShape, EDARuntimeSubmit };
|
package/dist/services/runtime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DurablePosition, SequenceNumber, durablePosition } from "../types/core.js";
|
|
2
2
|
import { l as ModelSelectionPayload, m as SystemPromptText, u as NonNegativeInt } from "../envelope-BCzKUq_z.js";
|
|
3
3
|
import { w as CommandFailedEvent, x as CommandCompletedEvent, y as CommandCancelledEvent } from "../durable-CD__3ztN.js";
|
|
4
|
-
import { u as SessionState } from "../session-state-
|
|
4
|
+
import { u as SessionState } from "../session-state-StlO5B2N.js";
|
|
5
5
|
import { annotateEdaSpan, committedBatchAttributes } from "./tracing.js";
|
|
6
6
|
import { EDASessionQuery } from "./session-query.js";
|
|
7
7
|
import * as Context from "effect/Context";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as EDASessionQuery, Q as EDASessionEventPage, Z as DurableTranscriptMessages, et as EDASessionQueryShape, tt as EDASessionSnapshot } from "../reduced-state-
|
|
1
|
+
import { $ as EDASessionQuery, Q as EDASessionEventPage, Z as DurableTranscriptMessages, et as EDASessionQueryShape, tt as EDASessionSnapshot } from "../reduced-state-PJdig48e.js";
|
|
2
2
|
export { DurableTranscriptMessages, EDASessionEventPage, EDASessionQuery, EDASessionQueryShape, EDASessionSnapshot };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { SequenceNumber } from "../types/core.js";
|
|
2
2
|
import { d as PositionedEvent } from "../envelope-BCzKUq_z.js";
|
|
3
3
|
import { qn as durableEventEnvelope } from "../durable-CD__3ztN.js";
|
|
4
|
-
import { m as LiveEventBus, u as SessionState } from "../session-state-
|
|
4
|
+
import { m as LiveEventBus, u as SessionState } from "../session-state-StlO5B2N.js";
|
|
5
5
|
import { QueryMessageRecordSchema, ReducedStateSchema } from "../domain/reduced-state-schema.js";
|
|
6
|
-
import { EDASessionStore } from "
|
|
6
|
+
import { i as EDASessionStore } from "../session-store-DcJjs4Fd.js";
|
|
7
7
|
import { durableMessageTranscript } from "../domain/message-transcript.js";
|
|
8
8
|
import { annotateEdaSpan } from "./tracing.js";
|
|
9
9
|
import * as Context from "effect/Context";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ct as SessionRunInput, Dt as SessionStateSnapshotData, Et as SessionStateShape, St as SessionNoRunnableReason, Tt as SessionStateError, _t as SessionCommandResult, bt as SessionForkedCommand, dt as SessionCommandAdmissionConflict, ft as SessionCommandAdmissionError, gt as SessionCommandOutcome, ht as SessionCommandFailed, mt as SessionCommandCompleted, pt as SessionCommandCancelled, ut as EDASubmittable, vt as SessionDrainProcessed, wt as SessionState, xt as SessionNoRunnableCommand, yt as SessionDrainResult } from "../reduced-state-
|
|
1
|
+
import { Ct as SessionRunInput, Dt as SessionStateSnapshotData, Et as SessionStateShape, St as SessionNoRunnableReason, Tt as SessionStateError, _t as SessionCommandResult, bt as SessionForkedCommand, dt as SessionCommandAdmissionConflict, ft as SessionCommandAdmissionError, gt as SessionCommandOutcome, ht as SessionCommandFailed, mt as SessionCommandCompleted, pt as SessionCommandCancelled, ut as EDASubmittable, vt as SessionDrainProcessed, wt as SessionState, xt as SessionNoRunnableCommand, yt as SessionDrainResult } from "../reduced-state-PJdig48e.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-
|
|
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-StlO5B2N.js";
|
|
2
2
|
export { SessionCommandAdmissionConflict, SessionCommandCancelled, SessionCommandCompleted, SessionCommandFailed, SessionCommandOutcome, SessionForkedCommand, SessionNoRunnableCommand, SessionNoRunnableReason, SessionRunInput, SessionState };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as EDAReducerCheckpoint, c as EDASessionStoreShape, d as
|
|
2
|
-
export { CommittedDurableEvent, DurableAppendBatch, DurableAppendEntry, EDAAppEvents, EDAReducerCheckpoint, EDASessionStore, EDASessionStoreError, EDASessionStoreShape, FindCommandAdmissionInput, SaveReducerCheckpointInput, hasEDASessionStoreError, queryCommittedEvents, registerAppEvents, selectCommittedEvent };
|
|
1
|
+
import { a as EDAReducerCheckpoint, c as EDASessionStoreShape, d as SaveReducerCheckpointInput, f as hasEDASessionStoreError, h as selectCommittedEvent, i as EDAAppEvents, l as FindCommandAdmissionInput, m as registerAppEvents, n as DurableAppendBatch, o as EDASessionStore, p as queryCommittedEvents, r as DurableAppendEntry, s as EDASessionStoreError, t as CommittedDurableEvent, u as InMemoryStoreOptions } from "../session-store-ByDjS03N.js";
|
|
2
|
+
export { CommittedDurableEvent, DurableAppendBatch, DurableAppendEntry, EDAAppEvents, EDAReducerCheckpoint, EDASessionStore, EDASessionStoreError, EDASessionStoreShape, FindCommandAdmissionInput, InMemoryStoreOptions, SaveReducerCheckpointInput, hasEDASessionStoreError, queryCommittedEvents, registerAppEvents, selectCommittedEvent };
|
|
@@ -1,252 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as DurableEventEnvelope } from "../envelope-BCzKUq_z.js";
|
|
3
|
-
import { H as DecodedDurableEvent, Nn as commandAdmittedEventType, Un as contextRebasedEventType, Wn as decodeDurableEventSync, kr as decodeRetainingExcess, mr as summaryCreatedEventType, qn as durableEventEnvelope } from "../durable-CD__3ztN.js";
|
|
4
|
-
import { CompactionSummaryArtifact } from "../domain/context-projection.js";
|
|
5
|
-
import * as Context from "effect/Context";
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
|
-
import * as Layer from "effect/Layer";
|
|
8
|
-
import * as Schema from "effect/Schema";
|
|
9
|
-
import * as Stream from "effect/Stream";
|
|
10
|
-
import * as Cause from "effect/Cause";
|
|
11
|
-
import * as Ref from "effect/Ref";
|
|
12
|
-
import * as SchemaGetter from "effect/SchemaGetter";
|
|
13
|
-
//#region src/services/session-store.ts
|
|
14
|
-
/** A durable event after the store has assigned its replay position. */
|
|
15
|
-
const CommittedDurableEvent = Schema.Struct({
|
|
16
|
-
position: DurablePosition,
|
|
17
|
-
event: DurableEventEnvelope.pipe(Schema.decodeTo(Schema.declare(Schema.is(DecodedDurableEvent)), {
|
|
18
|
-
decode: SchemaGetter.transform(decodeDurableEventSync),
|
|
19
|
-
encode: SchemaGetter.transform(durableEventEnvelope)
|
|
20
|
-
}))
|
|
21
|
-
});
|
|
22
|
-
/**
|
|
23
|
-
* Store-level failure surfaced by durable append, replay, and hydration APIs.
|
|
24
|
-
*
|
|
25
|
-
* The error intentionally stays storage-semantic rather than SQL-specific so
|
|
26
|
-
* framework services can treat SQL-backed hosts, in-memory tests, and future adapters
|
|
27
|
-
* as the same durability boundary.
|
|
28
|
-
*/
|
|
29
|
-
var EDASessionStoreError = class extends Schema.TaggedError()("EDASessionStoreError", { message: Schema.String }) {};
|
|
30
|
-
/** True when a Cause contains an escaped durable-store failure. */
|
|
31
|
-
const hasEDASessionStoreError = (cause) => cause.reasons.some((reason) => Cause.isFailReason(reason) && reason.error instanceof EDASessionStoreError);
|
|
32
|
-
/**
|
|
33
|
-
* One logical event to persist in the durable session log.
|
|
34
|
-
*
|
|
35
|
-
* Store adapters may split large logical payload fields into sidecar rows after
|
|
36
|
-
* the event insert assigns `seq`, but callers still provide one fat event.
|
|
37
|
-
*/
|
|
38
|
-
const DurableAppendEntry = Schema.Struct({ event: DurableEventEnvelope });
|
|
39
|
-
/**
|
|
40
|
-
* Ordered durable append intent. Adapters assign positions in entry order.
|
|
41
|
-
*
|
|
42
|
-
* This is the single write shape exposed to framework services. It avoids raw
|
|
43
|
-
* SQL and public transaction callbacks while still expressing the full atomic
|
|
44
|
-
* transition EDA needs for events, normalized bodies, and metadata.
|
|
45
|
-
*/
|
|
46
|
-
const DurableAppendBatch = Schema.Struct({ entries: Schema.Array(DurableAppendEntry) });
|
|
47
|
-
/** Indexed command-admission lookup used for idempotent ingress. */
|
|
48
|
-
const FindCommandAdmissionInput = Schema.Struct({
|
|
49
|
-
commandId: Schema.optionalKey(CommandId),
|
|
50
|
-
idempotencyKey: Schema.optionalKey(Schema.String)
|
|
51
|
-
});
|
|
52
|
-
/**
|
|
53
|
-
* SQL-agnostic durable storage port for one EDA session.
|
|
54
|
-
*
|
|
55
|
-
* Framework services depend on this semantic port rather than raw SQL. Host
|
|
56
|
-
* adapters own physical tables and synchronous transaction mechanics; callers
|
|
57
|
-
* only express durable append/replay/lookup intent.
|
|
58
|
-
*/
|
|
59
|
-
var EDASessionStore = class EDASessionStore extends Context.Service()("@effect-durable-agent/EDASessionStore") {
|
|
60
|
-
/** Deterministic in-memory implementation used by runtime and recovery tests. */
|
|
61
|
-
static InMemory = (sessionId) => Layer.effect(EDASessionStore, Effect.gen(function* () {
|
|
62
|
-
const data = yield* Ref.make(emptyInMemoryStoreData());
|
|
63
|
-
return makeInMemoryStore(sessionId, data);
|
|
64
|
-
}));
|
|
65
|
-
/** In-memory store seeded with a durable prefix; intended for recovery tests. */
|
|
66
|
-
static InMemorySeeded = (sessionId, events) => Layer.effect(EDASessionStore, Effect.gen(function* () {
|
|
67
|
-
const committed = seedCommittedEvents(sessionId, events);
|
|
68
|
-
const data = yield* Ref.make({
|
|
69
|
-
...emptyInMemoryStoreData(),
|
|
70
|
-
committed,
|
|
71
|
-
summaries: summariesFromCommittedEvents(committed)
|
|
72
|
-
});
|
|
73
|
-
return makeInMemoryStore(sessionId, data);
|
|
74
|
-
}));
|
|
75
|
-
};
|
|
76
|
-
const emptyInMemoryStoreData = () => ({
|
|
77
|
-
committed: [],
|
|
78
|
-
summaries: /* @__PURE__ */ new Map(),
|
|
79
|
-
reducerCheckpoints: /* @__PURE__ */ new Map()
|
|
80
|
-
});
|
|
81
|
-
const seedCommittedEvents = (sessionId, events) => {
|
|
82
|
-
const seen = /* @__PURE__ */ new Set();
|
|
83
|
-
return events.map((event, index) => {
|
|
84
|
-
if (event.sessionId !== sessionId) throw new Error(`EDASessionStore.InMemorySeeded is scoped to session ${sessionId}; received ${event.sessionId}`);
|
|
85
|
-
if (seen.has(event.eventId)) throw new Error(`Duplicate seed eventId ${event.eventId}`);
|
|
86
|
-
seen.add(event.eventId);
|
|
87
|
-
return {
|
|
88
|
-
position: durablePosition(SequenceNumber.make(index + 1)),
|
|
89
|
-
event: decodeDurableEventSync(DurableEventEnvelope.make(event))
|
|
90
|
-
};
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
const summariesFromCommittedEvents = (events) => {
|
|
94
|
-
const summaries = /* @__PURE__ */ new Map();
|
|
95
|
-
for (const { event } of events) {
|
|
96
|
-
if (event.type !== summaryCreatedEventType) continue;
|
|
97
|
-
const payload = event.payload;
|
|
98
|
-
if (payload.summary !== void 0) {
|
|
99
|
-
const summary = Schema.decodeUnknownSync(CompactionSummaryArtifact)(payload.summary);
|
|
100
|
-
summaries.set(summary.summaryId, summary);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return summaries;
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Build an in-memory store with one `Ref.modify` append critical section.
|
|
107
|
-
*
|
|
108
|
-
* The fake models the semantic atomicity of the production adapter without
|
|
109
|
-
* exposing SQL, so runtime tests exercise the same store contract.
|
|
110
|
-
*/
|
|
111
|
-
const makeInMemoryStore = (sessionId, data) => {
|
|
112
|
-
const ensureSession = (event) => Effect.gen(function* () {
|
|
113
|
-
if (event.sessionId === sessionId) return;
|
|
114
|
-
return yield* new EDASessionStoreError({ message: `EDASessionStore.InMemory is scoped to session ${sessionId}; received ${event.sessionId}` });
|
|
115
|
-
});
|
|
116
|
-
const append = (batch) => Effect.gen(function* () {
|
|
117
|
-
for (const entry of batch.entries) yield* ensureSession(entry.event);
|
|
118
|
-
return yield* Ref.modify(data, (current) => {
|
|
119
|
-
const nextEntries = [...current.committed];
|
|
120
|
-
const nextSummaries = new Map(current.summaries);
|
|
121
|
-
const committedEvents = [];
|
|
122
|
-
for (const entry of batch.entries) {
|
|
123
|
-
const { event } = entry;
|
|
124
|
-
const existing = nextEntries.find((entry) => entry.event.eventId === event.eventId);
|
|
125
|
-
if (existing !== void 0) {
|
|
126
|
-
committedEvents.push(existing);
|
|
127
|
-
continue;
|
|
128
|
-
}
|
|
129
|
-
const committed = {
|
|
130
|
-
position: durablePosition(SequenceNumber.make(nextEntries.length + 1)),
|
|
131
|
-
event: decodeDurableEventSync(DurableEventEnvelope.make(event))
|
|
132
|
-
};
|
|
133
|
-
nextEntries.push(committed);
|
|
134
|
-
committedEvents.push(committed);
|
|
135
|
-
if (committed.event.type === summaryCreatedEventType) {
|
|
136
|
-
const payload = committed.event.payload;
|
|
137
|
-
if (payload.summary === void 0) throw new Error("SummaryCreated requires summary payload");
|
|
138
|
-
const summary = Schema.decodeUnknownSync(CompactionSummaryArtifact)(payload.summary);
|
|
139
|
-
if (payload.summaryId !== void 0 && summary.summaryId !== payload.summaryId) throw new Error("SummaryCreated summaryId does not match summary payload");
|
|
140
|
-
nextSummaries.set(summary.summaryId, summary);
|
|
141
|
-
}
|
|
142
|
-
if (committed.event.type === contextRebasedEventType) {
|
|
143
|
-
const payload = committed.event.payload;
|
|
144
|
-
if (payload.summaryId === void 0 || !nextSummaries.has(payload.summaryId)) throw new Error(`ContextRebased references unknown summaryId ${String(payload.summaryId)}`);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return [committedEvents, {
|
|
148
|
-
committed: nextEntries,
|
|
149
|
-
summaries: nextSummaries,
|
|
150
|
-
reducerCheckpoints: current.reducerCheckpoints
|
|
151
|
-
}];
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
return {
|
|
155
|
-
append,
|
|
156
|
-
eventsAfter: (afterSeq) => Stream.fromIterableEffect(Ref.get(data).pipe(Effect.map(({ committed }) => committed.filter((entry) => entry.position.seq > afterSeq)))),
|
|
157
|
-
loadCommittedEventsBySeq: (seqs) => Ref.get(data).pipe(Effect.map(({ committed }) => {
|
|
158
|
-
const requested = new Set(seqs.map((seq) => Number(seq)));
|
|
159
|
-
return committed.filter((entry) => requested.has(Number(entry.position.seq)));
|
|
160
|
-
})),
|
|
161
|
-
findCommandAdmission: (input) => Ref.get(data).pipe(Effect.map(({ committed }) => committed.find((entry) => commandAdmissionMatches(entry, input)))),
|
|
162
|
-
loadSummaryArtifact: (summaryId) => Ref.get(data).pipe(Effect.map(({ summaries }) => summaries.get(summaryId))),
|
|
163
|
-
loadReducerCheckpoint: (name) => Ref.get(data).pipe(Effect.map(({ reducerCheckpoints }) => reducerCheckpoints.get(name))),
|
|
164
|
-
saveReducerCheckpoint: (checkpoint) => Ref.update(data, (current) => ({
|
|
165
|
-
...current,
|
|
166
|
-
reducerCheckpoints: new Map(current.reducerCheckpoints).set(checkpoint.name, checkpoint)
|
|
167
|
-
})),
|
|
168
|
-
saveReducerCheckpoints: (checkpoints) => Ref.update(data, (current) => {
|
|
169
|
-
const reducerCheckpoints = new Map(current.reducerCheckpoints);
|
|
170
|
-
for (const checkpoint of checkpoints) reducerCheckpoints.set(checkpoint.name, checkpoint);
|
|
171
|
-
return {
|
|
172
|
-
...current,
|
|
173
|
-
reducerCheckpoints
|
|
174
|
-
};
|
|
175
|
-
})
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
const commandAdmissionMatches = (entry, input) => {
|
|
179
|
-
if (entry.event.type !== commandAdmittedEventType) return false;
|
|
180
|
-
const admitted = entry.event.payload.command;
|
|
181
|
-
if (admitted === void 0) return false;
|
|
182
|
-
if (input.idempotencyKey !== void 0 && admitted.idempotencyKey === input.idempotencyKey) return true;
|
|
183
|
-
return input.commandId !== void 0 && admitted.commandId === input.commandId;
|
|
184
|
-
};
|
|
185
|
-
const eventNamespaces = (ast) => {
|
|
186
|
-
if (ast._tag === "Union") return ast.types.flatMap(eventNamespaces);
|
|
187
|
-
if (ast._tag === "Objects") {
|
|
188
|
-
const namespace = ast.propertySignatures.find((field) => field.name === "namespace")?.type;
|
|
189
|
-
if (namespace?._tag === "Literal" && typeof namespace.literal === "string") return [namespace.literal];
|
|
190
|
-
}
|
|
191
|
-
throw new Error("App event schemas must be a union of structs with literal namespaces");
|
|
192
|
-
};
|
|
193
|
-
/** Attach the app decoder to every event-returning store operation without changing storage bytes. */
|
|
194
|
-
const registerAppEvents = (store, schema) => {
|
|
195
|
-
const namespaces = new Set(eventNamespaces(schema.ast));
|
|
196
|
-
const decode = decodeRetainingExcess(schema);
|
|
197
|
-
const envelopeKey = (event) => JSON.stringify(Schema.encodeSync(DurableEventEnvelope)(event));
|
|
198
|
-
const decodeEntry = (entry, prepared) => {
|
|
199
|
-
if (entry.event.namespace !== "__foreign" || !namespaces.has(entry.event.envelope.namespace)) return entry;
|
|
200
|
-
return {
|
|
201
|
-
...entry,
|
|
202
|
-
event: {
|
|
203
|
-
...entry.event,
|
|
204
|
-
decoded: prepared?.get(envelopeKey(entry.event.envelope)) ?? decode(entry.event.envelope)
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
const decodeEntryEffect = (entry) => Effect.try({
|
|
209
|
-
try: () => decodeEntry(entry),
|
|
210
|
-
catch: (cause) => new EDASessionStoreError({ message: `Registered app event decode failed: ${String(cause)}` })
|
|
211
|
-
});
|
|
212
|
-
const decodeEntries = (entries) => Effect.forEach(entries, decodeEntryEffect);
|
|
213
|
-
return {
|
|
214
|
-
...store,
|
|
215
|
-
append: (batch) => Effect.gen(function* () {
|
|
216
|
-
const prepared = yield* Effect.try({
|
|
217
|
-
try: () => {
|
|
218
|
-
const decoded = /* @__PURE__ */ new Map();
|
|
219
|
-
for (const { event } of batch.entries) {
|
|
220
|
-
if (!namespaces.has(event.namespace)) continue;
|
|
221
|
-
const key = envelopeKey(event);
|
|
222
|
-
if (!decoded.has(key)) decoded.set(key, decode(event));
|
|
223
|
-
}
|
|
224
|
-
return decoded;
|
|
225
|
-
},
|
|
226
|
-
catch: (cause) => new EDASessionStoreError({ message: `Registered app event decode failed: ${String(cause)}` })
|
|
227
|
-
});
|
|
228
|
-
const committed = yield* store.append(batch);
|
|
229
|
-
return yield* Effect.forEach(committed, (entry) => Effect.try({
|
|
230
|
-
try: () => decodeEntry(entry, prepared),
|
|
231
|
-
catch: (cause) => new EDASessionStoreError({ message: `Registered app event decode failed: ${String(cause)}` })
|
|
232
|
-
}));
|
|
233
|
-
}),
|
|
234
|
-
eventsAfter: (seq) => store.eventsAfter(seq).pipe(Stream.mapEffect(decodeEntryEffect)),
|
|
235
|
-
loadCommittedEventsBySeq: (seqs) => store.loadCommittedEventsBySeq(seqs).pipe(Effect.flatMap(decodeEntries)),
|
|
236
|
-
findCommandAdmission: (input) => store.findCommandAdmission(input).pipe(Effect.flatMap((entry) => entry === void 0 ? Effect.succeed(void 0) : decodeEntryEffect(entry)))
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
|
-
/** Narrow an already decoded fact from one schema, without decoding its payload again. */
|
|
240
|
-
const selectCommittedEvent = (schema, entry) => {
|
|
241
|
-
const event = entry.event.namespace === "__foreign" ? entry.event.decoded ?? entry.event.envelope : entry.event;
|
|
242
|
-
return Schema.is(schema)(event) ? {
|
|
243
|
-
position: entry.position,
|
|
244
|
-
event
|
|
245
|
-
} : void 0;
|
|
246
|
-
};
|
|
247
|
-
/** Typed journal read available to tools and application services without private SQL access. */
|
|
248
|
-
const queryCommittedEvents = (store, schema, options = {}) => store.eventsAfter(options.afterSeq ?? SequenceNumber.make(0)).pipe(Stream.map((entry) => selectCommittedEvent(schema, entry)), Stream.filter((entry) => entry !== void 0), Stream.take(options.limit ?? Number.MAX_SAFE_INTEGER), Stream.runCollect);
|
|
249
|
-
//#endregion
|
|
1
|
+
import { a as EDASessionStoreError, c as queryCommittedEvents, i as EDASessionStore, l as registerAppEvents, n as DurableAppendBatch, o as FindCommandAdmissionInput, r as DurableAppendEntry, s as hasEDASessionStoreError, t as CommittedDurableEvent, u as selectCommittedEvent } from "../session-store-DcJjs4Fd.js";
|
|
250
2
|
export { CommittedDurableEvent, DurableAppendBatch, DurableAppendEntry, EDASessionStore, EDASessionStoreError, FindCommandAdmissionInput, hasEDASessionStoreError, queryCommittedEvents, registerAppEvents, selectCommittedEvent };
|
|
251
|
-
|
|
252
|
-
//# sourceMappingURL=session-store.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as StoredSinkCheckpoint, n as SinkCheckpointStore, r as SinkCheckpointStoreShape, t as EDASinkName } from "../sink-checkpoint-store-
|
|
1
|
+
import { i as StoredSinkCheckpoint, n as SinkCheckpointStore, r as SinkCheckpointStoreShape, t as EDASinkName } from "../sink-checkpoint-store-BHb8YRTw.js";
|
|
2
2
|
export { EDASinkName, SinkCheckpointStore, SinkCheckpointStoreShape, StoredSinkCheckpoint };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $t as EDAProjectedDurableSinkDefinition, Qt as EDAEphemeralSinkDefinition, Zt as EDADurableSinkDefinition, an as EDASinkContext, cn as EDASinkRawDurableBatch, dn as EDASinkRunnerStartInput, en as EDAProjectedSink, in as EDASinkCheckpoint, ln as EDASinkRegistry, nn as EDARawSink, on as EDASinkDurableBatch, rn as EDASink, sn as EDASinkInterests, tn as EDARawDurableSinkDefinition, un as EDASinkRegistryShape } from "../reduced-state-
|
|
1
|
+
import { $t as EDAProjectedDurableSinkDefinition, Qt as EDAEphemeralSinkDefinition, Zt as EDADurableSinkDefinition, an as EDASinkContext, cn as EDASinkRawDurableBatch, dn as EDASinkRunnerStartInput, en as EDAProjectedSink, in as EDASinkCheckpoint, ln as EDASinkRegistry, nn as EDARawSink, on as EDASinkDurableBatch, rn as EDASink, sn as EDASinkInterests, tn as EDARawDurableSinkDefinition, un as EDASinkRegistryShape } from "../reduced-state-PJdig48e.js";
|
|
2
2
|
export { EDADurableSinkDefinition, EDAEphemeralSinkDefinition, EDAProjectedDurableSinkDefinition, EDAProjectedSink, EDARawDurableSinkDefinition, EDARawSink, EDASink, EDASinkCheckpoint, EDASinkContext, EDASinkDurableBatch, EDASinkInterests, EDASinkRawDurableBatch, EDASinkRegistry, EDASinkRegistryShape, EDASinkRunnerStartInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as EDASinkRegistry, t as EDASink } from "../sink-registry-
|
|
1
|
+
import { n as EDASinkRegistry, t as EDASink } from "../sink-registry-DEneTH8u.js";
|
|
2
2
|
export { EDASink, EDASinkRegistry };
|
|
@@ -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-
|
|
1
|
+
import { a as ToolParamsSchema, i as EDAToolRegistryShape, n as EDAToolExecutionContext, o as makeEDAToolkit, r as EDAToolRegistry, t as EDAModelToolkit } from "../tool-registry-CxZ0iuYb.js";
|
|
2
2
|
export { EDAModelToolkit, EDAToolExecutionContext, EDAToolRegistry, EDAToolRegistryShape, ToolParamsSchema, makeEDAToolkit };
|
|
@@ -7,9 +7,10 @@ import { makeEDARunTrace } from "./types/tracing.js";
|
|
|
7
7
|
import { d as PositionedEvent, f as ProviderPartId, h as ToolName, l as ModelSelectionPayload, m as SystemPromptText, s as FailurePayload, u as NonNegativeInt } from "./envelope-BCzKUq_z.js";
|
|
8
8
|
import { CancelPendingMessageCommand, PromotePendingMessageCommand, ResumePendingMessagesCommand, StopTurnCommand, SubmitMessageCommand } from "./types/commands.js";
|
|
9
9
|
import { Jn as inferenceCompletedEventType, Kt as ToolCallCreatedEvent, Sr as turnFailedEventType, Yn as inferenceFailedEventType, _ as CommandAdmittedEvent, _r as toolCallCreatedEventType, cn as TurnCompletedEvent, dn as TurnFailedEvent, hn as TurnStoppedEvent, pn as TurnStartedEvent, qn as durableEventEnvelope, yr as toolCallRejectedEventType } from "./durable-CD__3ztN.js";
|
|
10
|
-
import {
|
|
10
|
+
import { n as assertNeverError, t as assertNever } from "./assert-never-CoyUpoRB.js";
|
|
11
|
+
import { activeTurnIdentityForCommand, classifyRecoverableWork, decodeReducedStateCheckpoint, encodeReducedStateCheckpoint, foldReducedState, frameworkReducedStateReducerName, initialReducedState, reducedStateCheckpointEventSeqs } from "./domain/reduced-state.js";
|
|
11
12
|
import { ContextProjection, emptyContextProjection } from "./domain/context-projection.js";
|
|
12
|
-
import {
|
|
13
|
+
import { a as EDASessionStoreError, c as queryCommittedEvents, i as EDASessionStore, s as hasEDASessionStoreError, t as CommittedDurableEvent } from "./session-store-DcJjs4Fd.js";
|
|
13
14
|
import { o as CompactionRunner, p as makeUsagePayload } from "./compaction-ajHZ5l7f.js";
|
|
14
15
|
import { EDAPromptProjector, buildEDAPrompt } from "./services/prompt-projector.js";
|
|
15
16
|
import { n as SessionContext, t as EventFactory } from "./event-factory-VAci3NJb.js";
|
|
@@ -19,7 +20,7 @@ import { annotateEdaSpan, committedBatchAttributes, edaTraceContextFromSpan, eve
|
|
|
19
20
|
import { EDAKeepAlive } from "./services/keep-alive.js";
|
|
20
21
|
import { SessionEventObserver } from "./services/session-event-observer.js";
|
|
21
22
|
import { EDAReducerRegistry, decodeReducerState, encodeReducerState, reducerSchemaVersion } from "./services/reducer-registry.js";
|
|
22
|
-
import { n as EDASinkRegistry } from "./sink-registry-
|
|
23
|
+
import { n as EDASinkRegistry } from "./sink-registry-DEneTH8u.js";
|
|
23
24
|
import * as Context from "effect/Context";
|
|
24
25
|
import * as Effect from "effect/Effect";
|
|
25
26
|
import * as Layer from "effect/Layer";
|
|
@@ -3229,4 +3230,4 @@ const isSessionNoRunnableCommand = (result) => "_tag" in result && result._tag =
|
|
|
3229
3230
|
//#endregion
|
|
3230
3231
|
export { SessionCommandOutcome as a, SessionNoRunnableReason as c, TurnRunner as d, InferenceRunner as f, SessionCommandFailed as i, SessionRunInput as l, LiveEventBus as m, SessionCommandCancelled as n, SessionForkedCommand as o, ToolExecutor as p, SessionCommandCompleted as r, SessionNoRunnableCommand as s, SessionCommandAdmissionConflict as t, SessionState as u };
|
|
3231
3232
|
|
|
3232
|
-
//# sourceMappingURL=session-state-
|
|
3233
|
+
//# sourceMappingURL=session-state-StlO5B2N.js.map
|