effect-durable-agent 0.1.0-alpha.1 → 0.1.0-alpha.11
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 +140 -136
- package/dist/{command-queues-CQ9cwRP7.d.ts → command-queues-B45Xa1Dl.d.ts} +109 -21
- package/dist/{commands-Ce1ec6kH.d.ts → commands-p8venTWs.d.ts} +10 -2
- package/dist/compaction-0k8zCJgB.js +473 -0
- package/dist/compaction-0k8zCJgB.js.map +1 -0
- package/dist/{compaction-YayFKo_1.d.ts → compaction-DoTyQf6k.d.ts} +28 -7
- package/dist/context-projection-CCoN8m9W.d.ts +140 -0
- package/dist/{core-Hv3cFydL.d.ts → core-C-6xHzRx.d.ts} +6 -3
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/command-queues.js +1 -1
- package/dist/domain/command-queues.js.map +1 -1
- package/dist/domain/context-projection.d.ts +2 -0
- package/dist/domain/context-projection.js +32 -0
- package/dist/domain/context-projection.js.map +1 -0
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/model-usage.d.ts +2 -0
- package/dist/domain/model-usage.js +59 -0
- package/dist/domain/model-usage.js.map +1 -0
- package/dist/domain/reduced-state-schema.d.ts +14 -18
- package/dist/domain/reduced-state-schema.js +7 -11
- package/dist/domain/reduced-state-schema.js.map +1 -1
- package/dist/domain/reduced-state.d.ts +3 -2
- package/dist/domain/reduced-state.js +3 -2
- package/dist/domain/run-scheduling.d.ts +2 -0
- package/dist/domain/run-scheduling.js +127 -0
- package/dist/domain/run-scheduling.js.map +1 -0
- package/dist/{durable-C3Rz7kg3.js → durable-BPHVFVvV.js} +74 -83
- package/dist/durable-BPHVFVvV.js.map +1 -0
- package/dist/{durable-DlScwmCy.d.ts → durable-DeLCAvbw.d.ts} +1256 -104
- package/dist/envelope-DkZyMIgp.d.ts +191 -0
- package/dist/envelope-DxQzo5rN.js +82 -0
- package/dist/envelope-DxQzo5rN.js.map +1 -0
- package/dist/{keep-alive-DYDsH6qN.d.ts → event-factory-EL4szNWm.d.ts} +10 -30
- package/dist/{keep-alive-p8dIcSVy.js → event-factory-QuC_UvyP.js} +8 -10
- package/dist/event-factory-QuC_UvyP.js.map +1 -0
- package/dist/{events-Bb9-Cu-7.d.ts → events-LZFNoESe.d.ts} +2 -188
- package/dist/{id-generator-C2Q15uZM.d.ts → id-generator--x6itQZ2.d.ts} +3 -2
- package/dist/index.d.ts +7 -6
- package/dist/index.js +5 -4
- package/dist/keep-alive-Chl5SJxy.d.ts +29 -0
- package/dist/{message-transcript-BCHdHAe2.d.ts → message-transcript-Dr6Rk-re.d.ts} +4 -4
- package/dist/model-resolver-BPPJAsuh.d.ts +18 -0
- package/dist/model-usage-CdBEkTwU.d.ts +55 -0
- package/dist/{prompt-projector-9_02lk5-.d.ts → prompt-projector-BpRH-Ec-.d.ts} +15 -16
- package/dist/{reduced-state-C4nVVzz9.js → reduced-state-Bz68V2H8.js} +65 -32
- package/dist/reduced-state-Bz68V2H8.js.map +1 -0
- package/dist/{reducer-registry-C0svUa63.d.ts → reducer-registry-DjP1qqbs.d.ts} +16 -6
- package/dist/run-scheduler-DvHWwWBJ.d.ts +43 -0
- package/dist/run-scheduling-wakeup-CGgJ7RNe.d.ts +25 -0
- package/dist/{runtime-C56FQxiL.d.ts → runtime-BFsU92E7.d.ts} +15 -6
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/compaction.js +1 -425
- package/dist/services/id-generator.d.ts +1 -1
- package/dist/services/id-generator.js +2 -1
- package/dist/services/id-generator.js.map +1 -1
- package/dist/services/keep-alive.d.ts +2 -0
- package/dist/services/keep-alive.js +13 -0
- package/dist/services/keep-alive.js.map +1 -0
- package/dist/services/model-resolver.d.ts +2 -0
- package/dist/services/model-resolver.js +17 -0
- package/dist/services/model-resolver.js.map +1 -0
- package/dist/services/prompt-projector.d.ts +2 -2
- package/dist/services/prompt-projector.js +20 -10
- package/dist/services/prompt-projector.js.map +1 -1
- package/dist/services/reducer-registry.d.ts +2 -2
- package/dist/services/reducer-registry.js +7 -3
- package/dist/services/reducer-registry.js.map +1 -1
- package/dist/services/run-scheduler.d.ts +3 -0
- package/dist/services/run-scheduler.js +25 -0
- package/dist/services/run-scheduler.js.map +1 -0
- package/dist/services/run-scheduling-wakeup.d.ts +2 -0
- package/dist/services/run-scheduling-wakeup.js +13 -0
- package/dist/services/run-scheduling-wakeup.js.map +1 -0
- package/dist/services/runtime-layer.d.ts +67 -0
- package/dist/services/runtime-layer.js +47 -0
- package/dist/services/runtime-layer.js.map +1 -0
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +21 -14
- package/dist/services/runtime.js.map +1 -1
- package/dist/services/session-event-observer.d.ts +2 -0
- package/dist/services/session-event-observer.js +13 -0
- package/dist/services/session-event-observer.js.map +1 -0
- package/dist/services/session-query.d.ts +2 -2
- package/dist/services/session-query.js +140 -1
- package/dist/services/session-query.js.map +1 -0
- package/dist/services/session-state.d.ts +2 -0
- package/dist/services/session-state.js +2 -0
- package/dist/services/session-store.d.ts +2 -2
- package/dist/services/session-store.js +182 -2
- package/dist/services/session-store.js.map +1 -0
- package/dist/services/sink-checkpoint-store.d.ts +2 -0
- package/dist/services/sink-checkpoint-store.js +49 -0
- package/dist/services/sink-checkpoint-store.js.map +1 -0
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/sink-registry.js +1 -1
- package/dist/services/span-names.d.ts +1 -1
- package/dist/services/span-names.js +3 -0
- package/dist/services/span-names.js.map +1 -1
- package/dist/services/tool-registry.d.ts +1 -1
- package/dist/services/tracing.d.ts +1 -1
- package/dist/services/tracing.js +23 -2
- package/dist/services/tracing.js.map +1 -1
- package/dist/session-event-observer-DaFMKKNc.d.ts +24 -0
- package/dist/session-query-Bo_wroPS.d.ts +47 -0
- package/dist/{session-query-DlRo5Ufc.d.ts → session-state-5uD0FqQ8.d.ts} +143 -45
- package/dist/{session-query-DOc1KanA.js → session-state-CN7DcLal.js} +353 -186
- package/dist/session-state-CN7DcLal.js.map +1 -0
- package/dist/{session-store-D2Ore1QC.d.ts → session-store-BIr-xfJ7.d.ts} +7 -96
- package/dist/sink-checkpoint-store-Cr9_GmOw.d.ts +40 -0
- package/dist/{sink-registry-CFC6xjsN.js → sink-registry-6CNeeRTt.js} +41 -82
- package/dist/sink-registry-6CNeeRTt.js.map +1 -0
- package/dist/{sink-registry-CIU0LD3m.d.ts → sink-registry-Bz4bBJaC.d.ts} +24 -49
- package/dist/testkit/layers.d.ts +24 -14
- package/dist/testkit/layers.js +18 -11
- package/dist/testkit/layers.js.map +1 -1
- package/dist/{tool-registry-CcnkAAQK.d.ts → tool-registry-Dhs2KmYK.d.ts} +4 -4
- package/dist/types/commands.d.ts +2 -2
- package/dist/types/commands.js +7 -2
- package/dist/types/commands.js.map +1 -1
- package/dist/types/core.d.ts +2 -2
- package/dist/types/core.js +4 -2
- package/dist/types/core.js.map +1 -1
- package/dist/types/events/durable.d.ts +2 -2
- package/dist/types/events/durable.js +2 -2
- package/dist/types/events.d.ts +4 -3
- package/dist/types/events.js +3 -2
- package/dist/types/events.js.map +1 -1
- package/dist/websocket.d.ts +2776 -0
- package/dist/websocket.js +498 -0
- package/dist/websocket.js.map +1 -0
- package/package.json +68 -43
- package/testing/offline-trace/README.md +2 -1
- package/CHANGELOG.md +0 -10
- package/CONTRIBUTING.md +0 -26
- package/SECURITY.md +0 -8
- package/dist/durable-C3Rz7kg3.js.map +0 -1
- package/dist/durable-object-runtime-B7jwBY2R.js +0 -1494
- package/dist/durable-object-runtime-B7jwBY2R.js.map +0 -1
- package/dist/durable-object-runtime-pWv0ohlz.d.ts +0 -257
- package/dist/durable-object-storage-Czy7IPrh.d.ts +0 -41
- package/dist/host/durable-object-runtime.d.ts +0 -2
- package/dist/host/durable-object-runtime.js +0 -2
- package/dist/host/durable-object-storage.d.ts +0 -2
- package/dist/host/durable-object-storage.js +0 -0
- package/dist/host/durable-object.d.ts +0 -83
- package/dist/host/durable-object.js +0 -191
- package/dist/host/durable-object.js.map +0 -1
- package/dist/host/websocket-wire.d.ts +0 -2
- package/dist/host/websocket-wire.js +0 -88
- package/dist/host/websocket-wire.js.map +0 -1
- package/dist/keep-alive-p8dIcSVy.js.map +0 -1
- package/dist/reduced-state-C4nVVzz9.js.map +0 -1
- package/dist/services/compaction.js.map +0 -1
- package/dist/session-query-DOc1KanA.js.map +0 -1
- package/dist/session-store-pYxQW9qh.js +0 -214
- package/dist/session-store-pYxQW9qh.js.map +0 -1
- package/dist/sink-registry-CFC6xjsN.js.map +0 -1
- package/dist/websocket-wire-DvOu_6BJ.d.ts +0 -16773
- package/docs/assets/architecture.svg +0 -106
- package/docs/assets/event-sequence.svg +0 -143
- package/docs/assets/gcp-trace.png +0 -0
- package/docs/message-steering.md +0 -831
- package/docs/releasing.md +0 -57
- package/docs/spec.md +0 -774
- package/docs/subagents.md +0 -725
- package/docs/testing.md +0 -64
- package/docs/ui-projection.md +0 -742
- package/docs/websocket-protocol.md +0 -613
- package/examples/001-no-tools/README.md +0 -65
- package/examples/001-no-tools/worker.ts +0 -79
- package/examples/002-slack-bridge/README.md +0 -134
- package/examples/002-slack-bridge/events.ts +0 -115
- package/examples/002-slack-bridge/reducer.ts +0 -216
- package/examples/002-slack-bridge/scenario.test.ts +0 -223
- package/examples/002-slack-bridge/sinks.ts +0 -109
- package/examples/002-slack-bridge/worker.ts +0 -140
- package/examples/003-sandbox-lifecycle/README.md +0 -78
- package/examples/003-sandbox-lifecycle/events.ts +0 -203
- package/examples/003-sandbox-lifecycle/reducer.ts +0 -305
- package/examples/003-sandbox-lifecycle/scenario.test.ts +0 -202
- package/examples/_shared/event-id.ts +0 -12
- package/examples/_shared/http.ts +0 -27
- package/examples/_shared/openai.ts +0 -33
package/dist/testkit/layers.d.ts
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { a as EDASessionStore, o as EDASessionStoreError, s as EDASessionStoreShape } from "../session-store-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { c as CompactionPolicy, d as CompactionRunner, r as CompactionExecutor } from "../compaction-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { g as SessionId } from "../core-C-6xHzRx.js";
|
|
2
|
+
import { t as DurableEventEnvelope } from "../envelope-DkZyMIgp.js";
|
|
3
|
+
import { a as EDASessionStore, o as EDASessionStoreError, s as EDASessionStoreShape } from "../session-store-BIr-xfJ7.js";
|
|
4
|
+
import { t as ModelResolver } from "../model-resolver-BPPJAsuh.js";
|
|
5
|
+
import { t as IdGenerator } from "../id-generator--x6itQZ2.js";
|
|
6
|
+
import { r as SessionContext, t as EventFactory } from "../event-factory-EL4szNWm.js";
|
|
7
|
+
import { t as EDAKeepAlive } from "../keep-alive-Chl5SJxy.js";
|
|
8
|
+
import { c as CompactionPolicy, d as CompactionRunner, r as CompactionExecutor } from "../compaction-DoTyQf6k.js";
|
|
9
|
+
import { r as EDASink, s as EDASinkRegistry, u as LiveEventBus } from "../sink-registry-Bz4bBJaC.js";
|
|
10
|
+
import { r as EDAReducerRegistry, t as EDAReducer } from "../reducer-registry-DjP1qqbs.js";
|
|
11
|
+
import { r as EDAPromptProjector } from "../prompt-projector-BpRH-Ec-.js";
|
|
12
|
+
import { n as SinkCheckpointStore } from "../sink-checkpoint-store-Cr9_GmOw.js";
|
|
13
|
+
import { t as RunScheduler } from "../run-scheduler-DvHWwWBJ.js";
|
|
14
|
+
import { t as RunSchedulingWakeup } from "../run-scheduling-wakeup-CGgJ7RNe.js";
|
|
15
|
+
import { S as ToolExecutor, b as InferenceRunner, h as SessionState, x as InferenceRunnerStreamPart, y as TurnRunner } from "../session-state-5uD0FqQ8.js";
|
|
16
|
+
import { a as ToolParamsSchema, r as EDAToolRegistry, t as EDAModelToolkit } from "../tool-registry-Dhs2KmYK.js";
|
|
17
|
+
import { n as EDASessionQuery } from "../session-query-Bo_wroPS.js";
|
|
12
18
|
import * as Layer from "effect/Layer";
|
|
19
|
+
import * as LanguageModel from "effect/unstable/ai/LanguageModel";
|
|
13
20
|
import * as Stream from "effect/Stream";
|
|
14
21
|
import * as Prompt from "effect/unstable/ai/Prompt";
|
|
15
22
|
import * as Clock from "effect/Clock";
|
|
16
|
-
import * as LanguageModel from "effect/unstable/ai/LanguageModel";
|
|
17
23
|
|
|
18
24
|
//#region src/testkit/layers.d.ts
|
|
19
25
|
/** Default fixed test wall-clock; matches the historical CREATED_AT_MS test constant. */
|
|
@@ -44,11 +50,15 @@ interface TestLanguageModelOptions {
|
|
|
44
50
|
declare const makeLanguageModelLayer: (options: TestModelParts | TestLanguageModelOptions) => Layer.Layer<LanguageModel.LanguageModel, never, never>;
|
|
45
51
|
/** Single-session in-memory layer graph options for EDA service tests. */
|
|
46
52
|
interface EdaTestLayerOptions {
|
|
53
|
+
readonly runSchedulerLayer?: Layer.Layer<RunScheduler>;
|
|
54
|
+
readonly runSchedulingWakeupLayer?: Layer.Layer<RunSchedulingWakeup>;
|
|
47
55
|
readonly sessionId: SessionId;
|
|
48
56
|
/** Explicit ID sequence (Deterministic); omit for counter-based Sequential IDs. */
|
|
49
57
|
readonly ids?: ReadonlyArray<string>;
|
|
50
58
|
/** Real/alternate provider layer; when absent, the fake stream provider is used. */
|
|
51
59
|
readonly modelLayer?: Layer.Layer<LanguageModel.LanguageModel>;
|
|
60
|
+
/** Replaces the external model-selection boundary when testing execution policy. */
|
|
61
|
+
readonly modelResolverLayer?: Layer.Layer<ModelResolver>;
|
|
52
62
|
/** Fake provider stream parts; defaults to an empty stream. Ignored when `modelLayer` is provided. */
|
|
53
63
|
readonly parts?: TestModelParts;
|
|
54
64
|
/** Optional fake generateText output for compaction/summarization tests. */
|
|
@@ -82,7 +92,7 @@ interface EdaTestLayerOptions {
|
|
|
82
92
|
/** Override compaction policy; defaults to disabled. */
|
|
83
93
|
readonly compactionPolicyLayer?: Layer.Layer<CompactionPolicy>;
|
|
84
94
|
/** Override compaction executor; defaults to disabled. */
|
|
85
|
-
readonly compactionExecutorLayer?: Layer.Layer<CompactionExecutor
|
|
95
|
+
readonly compactionExecutorLayer?: Layer.Layer<CompactionExecutor>;
|
|
86
96
|
/** App-specific durable metadata reducers. */
|
|
87
97
|
readonly reducers?: ReadonlyArray<EDAReducer<any>>;
|
|
88
98
|
/** Override state-to-LLM context projection. */
|
|
@@ -95,7 +105,7 @@ interface EdaTestLayerOptions {
|
|
|
95
105
|
* EDA service plus the fixed Clock. Layer constants are shared by reference,
|
|
96
106
|
* so all services see the same store, bus, and ID counter.
|
|
97
107
|
*/
|
|
98
|
-
declare const makeEdaTestLayer: (options: EdaTestLayerOptions) => Layer.Layer<
|
|
108
|
+
declare const makeEdaTestLayer: (options: EdaTestLayerOptions) => Layer.Layer<RunSchedulingWakeup | EDASessionQuery | SessionState | RunScheduler | ModelResolver | CompactionExecutor | CompactionPolicy | EDAKeepAlive | EDAPromptProjector | EDAReducerRegistry | EDASessionStore | SinkCheckpointStore | LiveEventBus | EDAToolRegistry | IdGenerator | EventFactory | TurnRunner | CompactionRunner | SessionContext | EDASinkRegistry | InferenceRunner | ToolExecutor, EDASessionStoreError, never>;
|
|
99
109
|
//#endregion
|
|
100
110
|
export { EdaTestLayerOptions, FixedClock, TestLanguageModelOptions, TestModelParts, makeEdaTestLayer, makeFixedClock, makeLanguageModelLayer, testNowMs };
|
|
101
111
|
//# sourceMappingURL=layers.d.ts.map
|
package/dist/testkit/layers.js
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { RunSchedulingWakeup } from "../services/run-scheduling-wakeup.js";
|
|
2
|
+
import { RunScheduler } from "../services/run-scheduler.js";
|
|
3
|
+
import { ModelResolver } from "../services/model-resolver.js";
|
|
4
|
+
import { h as UnixEpochMillis } from "../envelope-DxQzo5rN.js";
|
|
5
|
+
import { d as TurnRunner, f as InferenceRunner, p as ToolExecutor, u as SessionState } from "../session-state-CN7DcLal.js";
|
|
6
|
+
import { EDASessionStore } from "../services/session-store.js";
|
|
7
|
+
import { a as CompactionPolicy, n as CompactionExecutor, o as CompactionRunner } from "../compaction-0k8zCJgB.js";
|
|
4
8
|
import { IdGenerator } from "../services/id-generator.js";
|
|
5
|
-
import { n as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
9
|
+
import { n as SessionContext, t as EventFactory } from "../event-factory-QuC_UvyP.js";
|
|
10
|
+
import { EDAKeepAlive } from "../services/keep-alive.js";
|
|
11
|
+
import { n as EDASinkRegistry, r as LiveEventBus } from "../sink-registry-6CNeeRTt.js";
|
|
8
12
|
import { EDAPromptProjector } from "../services/prompt-projector.js";
|
|
9
13
|
import { EDAReducerRegistry } from "../services/reducer-registry.js";
|
|
14
|
+
import { SinkCheckpointStore } from "../services/sink-checkpoint-store.js";
|
|
10
15
|
import { EDAToolRegistry } from "../services/tool-registry.js";
|
|
16
|
+
import { EDASessionQuery } from "../services/session-query.js";
|
|
11
17
|
import * as Effect from "effect/Effect";
|
|
12
18
|
import * as Layer from "effect/Layer";
|
|
19
|
+
import * as LanguageModel from "effect/unstable/ai/LanguageModel";
|
|
13
20
|
import * as Stream from "effect/Stream";
|
|
14
21
|
import * as Clock from "effect/Clock";
|
|
15
22
|
import * as Ref from "effect/Ref";
|
|
16
|
-
import * as LanguageModel from "effect/unstable/ai/LanguageModel";
|
|
17
23
|
import * as Response from "effect/unstable/ai/Response";
|
|
18
24
|
//#region src/testkit/layers.ts
|
|
19
25
|
/** Default fixed test wall-clock; matches the historical CREATED_AT_MS test constant. */
|
|
@@ -74,7 +80,7 @@ const makeEdaTestLayer = (options) => {
|
|
|
74
80
|
const inner = yield* EDASessionStore;
|
|
75
81
|
return options.wrapStore(inner);
|
|
76
82
|
})).pipe(Layer.provide(BaseStore));
|
|
77
|
-
const Bus = LiveEventBus.
|
|
83
|
+
const Bus = LiveEventBus.Noop;
|
|
78
84
|
const KeepAlive = options.keepAliveLayer ?? EDAKeepAlive.Noop;
|
|
79
85
|
const SinkCheckpoints = SinkCheckpointStore.InMemory;
|
|
80
86
|
const Ids = options.ids === void 0 ? IdGenerator.Sequential : IdGenerator.Deterministic(options.ids);
|
|
@@ -90,12 +96,13 @@ const makeEdaTestLayer = (options) => {
|
|
|
90
96
|
parts: options.parts ?? Stream.empty
|
|
91
97
|
});
|
|
92
98
|
const CompactionPolicyLayer = options.compactionPolicyLayer ?? CompactionPolicy.Disabled;
|
|
99
|
+
const Models = options.modelResolverLayer ?? ModelResolver.Fixed.pipe(Layer.provideMerge(Model));
|
|
93
100
|
const CompactionExecutorLayer = options.compactionExecutorLayer ?? CompactionExecutor.Disabled;
|
|
94
|
-
const Compaction = CompactionRunner.Live.pipe(Layer.provideMerge(Layer.mergeAll(Store, Factory, Ids, KeepAlive,
|
|
101
|
+
const Compaction = CompactionRunner.Live.pipe(Layer.provideMerge(Layer.mergeAll(Store, Factory, Ids, KeepAlive, Models, CompactionPolicyLayer, CompactionExecutorLayer)));
|
|
95
102
|
const SinkRegistry = EDASinkRegistry.Live(options.sinks ?? []).pipe(Layer.provideMerge(Layer.mergeAll(Session, Store, Bus, SinkCheckpoints, Factory, Ids, ReducerRegistry, KeepAlive)));
|
|
96
|
-
const State = SessionState.Live.pipe(Layer.provideMerge(Layer.mergeAll(Store, Bus, Session, ReducerRegistry, SinkRegistry, KeepAlive, Compaction, PromptProjector)));
|
|
103
|
+
const State = SessionState.Live.pipe(Layer.provideMerge(Layer.mergeAll(Store, Bus, Session, ReducerRegistry, SinkRegistry, KeepAlive, Compaction, PromptProjector, options.runSchedulerLayer ?? RunScheduler.Immediate, options.runSchedulingWakeupLayer ?? RunSchedulingWakeup.Unsupported)));
|
|
97
104
|
const Registry = options.toolkit !== void 0 ? EDAToolRegistry.FromToolkit(options.toolkit) : options.toolSchemas === void 0 ? EDAToolRegistry.Empty : EDAToolRegistry.FromSchemas(options.toolSchemas);
|
|
98
|
-
const InferenceRunnerLayer = InferenceRunner.Live.pipe(Layer.provideMerge(Layer.mergeAll(Factory,
|
|
105
|
+
const InferenceRunnerLayer = InferenceRunner.Live.pipe(Layer.provideMerge(Layer.mergeAll(Factory, Models, Registry, Ids)));
|
|
99
106
|
const ToolExec = ToolExecutor.Live.pipe(Layer.provideMerge(Layer.mergeAll(Factory, Registry, Ids, Session)));
|
|
100
107
|
const Turn = TurnRunner.Live.pipe(Layer.provideMerge(Layer.mergeAll(InferenceRunnerLayer, ToolExec, Factory, Ids)));
|
|
101
108
|
const StateWithRun = State.pipe(Layer.provideMerge(Layer.mergeAll(Turn, Factory, Ids)));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layers.js","names":[],"sources":["../../src/testkit/layers.ts"],"sourcesContent":["import * as Clock from \"effect/Clock\";\nimport * as Effect from \"effect/Effect\";\nimport * as Layer from \"effect/Layer\";\nimport * as Ref from \"effect/Ref\";\nimport * as Stream from \"effect/Stream\";\nimport * as LanguageModel from \"effect/unstable/ai/LanguageModel\";\nimport type * as Prompt from \"effect/unstable/ai/Prompt\";\nimport * as Response from \"effect/unstable/ai/Response\";\n\nimport { SessionId } from \"../types/core\";\nimport { type DurableEventEnvelope, UnixEpochMillis } from \"../types/events\";\n\nimport { EDASessionStore } from \"../services/session-store\";\nimport { CompactionExecutor, CompactionPolicy, CompactionRunner } from \"../services/compaction\";\nimport type { EDASessionStoreShape } from \"../services/session-store\";\nimport { EventFactory } from \"../services/event-factory\";\nimport { IdGenerator } from \"../services/id-generator\";\nimport { EDAKeepAlive } from \"../services/keep-alive\";\nimport { LiveEventBus } from \"../services/live-event-bus\";\nimport { EDAPromptProjector } from \"../services/prompt-projector\";\nimport { EDAReducerRegistry, type EDAReducer } from \"../services/reducer-registry\";\nimport { EDASinkRegistry, type EDASink } from \"../services/sink-registry\";\nimport { SinkCheckpointStore } from \"../services/sink-checkpoint-store\";\nimport { SessionContext } from \"../services/session-context\";\nimport { EDASessionQuery } from \"../services/session-query\";\nimport { SessionState } from \"../services/session-state\";\nimport { ToolExecutor } from \"../services/tool-executor\";\nimport { EDAToolRegistry } from \"../services/tool-registry\";\nimport type { EDAModelToolkit, ToolParamsSchema } from \"../services/tool-registry\";\nimport { InferenceRunner } from \"../services/inference-runner\";\nimport type { InferenceRunnerStreamPart } from \"../services/inference-runner\";\nimport { TurnRunner } from \"../services/turn-runner\";\n\n/** Default fixed test wall-clock; matches the historical CREATED_AT_MS test constant. */\nexport const testNowMs = UnixEpochMillis.make(1_715_000_000_000);\n\n/** A Clock whose current time never advances; sleep resolves immediately. */\nexport const makeFixedClock = (nowMs: number): Clock.Clock => ({\n currentTimeMillisUnsafe: () => nowMs,\n currentTimeMillis: Effect.sync(() => nowMs),\n currentTimeNanosUnsafe: () => BigInt(nowMs) * 1_000_000n,\n currentTimeNanos: Effect.sync(() => BigInt(nowMs) * 1_000_000n),\n sleep: () => Effect.void,\n});\n\n/** Layer pinning the ambient Clock reference to a fixed instant. */\nexport const FixedClock = (nowMs: number) => Layer.succeed(Clock.Clock, makeFixedClock(nowMs));\n\n/** Fake provider stream input; arrays are consumed one streamText call at a time. */\nexport type TestModelParts =\n | Stream.Stream<InferenceRunnerStreamPart, unknown>\n | ReadonlyArray<Stream.Stream<InferenceRunnerStreamPart, unknown>>;\n\n/** Options for the fake Effect AI LanguageModel used by EDA runtime tests. */\nexport interface TestLanguageModelOptions {\n readonly parts: TestModelParts;\n /** Optional fake generateText output for compaction/summarization tests. */\n readonly generateText?: string | ((input: { readonly prompt: Prompt.RawInput }) => string);\n readonly onGenerateText?: (input: { readonly prompt: Prompt.RawInput }) => void;\n readonly onStreamText?: (input: {\n readonly index: number;\n readonly prompt: Prompt.RawInput;\n readonly toolNames: ReadonlyArray<string>;\n }) => void;\n}\n\n/** Fake provider whose streamText returns configured test streams; other methods die. */\nexport const makeLanguageModelLayer = (options: TestModelParts | TestLanguageModelOptions) => {\n const config = isTestLanguageModelOptions(options) ? options : { parts: options };\n const unused = () => Effect.die(new Error(\"unused fake LanguageModel method\"));\n return Layer.effect(\n LanguageModel.LanguageModel,\n Effect.gen(function* () {\n const nextIndex = yield* Ref.make(0);\n const streamText = ((input: { readonly prompt: Prompt.RawInput }) =>\n Stream.unwrap(\n Effect.gen(function* () {\n const index = yield* Ref.getAndUpdate(nextIndex, (current) => current + 1);\n config.onStreamText?.({\n index,\n prompt: input.prompt,\n toolNames: Object.keys(inputToolkit(input)?.tools ?? {}),\n });\n if (!Array.isArray(config.parts)) {\n return config.parts;\n }\n const stream = config.parts[index];\n return stream === undefined\n ? yield* Effect.die(\n new Error(`No fake LanguageModel stream configured for call ${index}`),\n )\n : stream;\n }),\n )) as LanguageModel.Service[\"streamText\"];\n const generateText = ((input: { readonly prompt: Prompt.RawInput }) =>\n Effect.sync(() => {\n config.onGenerateText?.({ prompt: input.prompt });\n if (config.generateText === undefined) {\n return Effect.runSync(unused()) as never;\n }\n const text =\n typeof config.generateText === \"function\"\n ? config.generateText({ prompt: input.prompt })\n : config.generateText;\n return new LanguageModel.GenerateTextResponse([Response.makePart(\"text\", { text })]);\n })) as LanguageModel.Service[\"generateText\"];\n return {\n generateText,\n generateObject: unused as LanguageModel.Service[\"generateObject\"],\n streamText,\n };\n }),\n );\n};\n\nconst inputToolkit = (input: {\n readonly prompt: Prompt.RawInput;\n readonly toolkit?: unknown;\n}): { readonly tools: Record<string, unknown> } | undefined => {\n const toolkit = input.toolkit;\n return typeof toolkit === \"object\" && toolkit !== null && \"tools\" in toolkit\n ? (toolkit as { readonly tools: Record<string, unknown> })\n : undefined;\n};\n\nconst isTestLanguageModelOptions = (\n options: TestModelParts | TestLanguageModelOptions,\n): options is TestLanguageModelOptions =>\n typeof options === \"object\" &&\n options !== null &&\n \"parts\" in options &&\n !Stream.isStream(options);\n\n/** Single-session in-memory layer graph options for EDA service tests. */\nexport interface EdaTestLayerOptions {\n readonly sessionId: SessionId;\n /** Explicit ID sequence (Deterministic); omit for counter-based Sequential IDs. */\n readonly ids?: ReadonlyArray<string>;\n /** Real/alternate provider layer; when absent, the fake stream provider is used. */\n readonly modelLayer?: Layer.Layer<LanguageModel.LanguageModel>;\n /** Fake provider stream parts; defaults to an empty stream. Ignored when `modelLayer` is provided. */\n readonly parts?: TestModelParts;\n /** Optional fake generateText output for compaction/summarization tests. */\n readonly generateText?: string | ((input: { readonly prompt: Prompt.RawInput }) => string);\n /** Test hook for inspecting each fake generateText call. */\n readonly onGenerateText?: (input: { readonly prompt: Prompt.RawInput }) => void;\n /** Test hook for inspecting each fake streamText call. */\n readonly onStreamText?: (input: {\n readonly index: number;\n readonly prompt: Prompt.RawInput;\n readonly toolNames: ReadonlyArray<string>;\n }) => void;\n /** Handler-backed Effect Toolkit; overrides `toolSchemas` when present. */\n readonly toolkit?: EDAModelToolkit;\n /** Test/convenience schema-only tools; execution fails unless `toolkit` is provided. */\n readonly toolSchemas?: ReadonlyMap<string, ToolParamsSchema>;\n /** Durable prefix used when constructing a fresh in-memory runtime for recovery tests. */\n readonly seedEvents?: ReadonlyArray<DurableEventEnvelope>;\n /** Fixed wall-clock for event timestamps; defaults to `testNowMs`. */\n readonly nowMs?: number;\n /** Use the ambient live Clock instead of pinning test time. Intended for offline trace latency runs. */\n readonly clock?: \"fixed\" | \"live\";\n /** Wrap the in-memory store shape, e.g. to inject one-shot failures. Test-only. */\n readonly wrapStore?: (inner: EDASessionStoreShape) => EDASessionStoreShape;\n /** Override host keepAlive tracking. Test-only. */\n readonly keepAliveLayer?: Layer.Layer<EDAKeepAlive>;\n /** Override compaction policy; defaults to disabled. */\n readonly compactionPolicyLayer?: Layer.Layer<CompactionPolicy>;\n /** Override compaction executor; defaults to disabled. */\n readonly compactionExecutorLayer?: Layer.Layer<\n CompactionExecutor,\n never,\n LanguageModel.LanguageModel\n >;\n /** App-specific durable metadata reducers. */\n readonly reducers?: ReadonlyArray<EDAReducer<any>>;\n /** Override state-to-LLM context projection. */\n readonly promptProjectorLayer?: Layer.Layer<EDAPromptProjector>;\n /** App-provided EDA sinks. */\n readonly sinks?: ReadonlyArray<EDASink>;\n}\n\n/**\n * One in-memory layer graph for the whole session runtime, exposing every\n * EDA service plus the fixed Clock. Layer constants are shared by reference,\n * so all services see the same store, bus, and ID counter.\n */\nexport const makeEdaTestLayer = (options: EdaTestLayerOptions) => {\n const BaseStore =\n options.seedEvents === undefined\n ? EDASessionStore.InMemory(options.sessionId)\n : EDASessionStore.InMemorySeeded(options.sessionId, options.seedEvents);\n const Store =\n options.wrapStore === undefined\n ? BaseStore\n : Layer.effect(\n EDASessionStore,\n Effect.gen(function* () {\n const inner = yield* EDASessionStore;\n return options.wrapStore!(inner);\n }),\n ).pipe(Layer.provide(BaseStore));\n const Bus = LiveEventBus.Live;\n const KeepAlive = options.keepAliveLayer ?? EDAKeepAlive.Noop;\n const SinkCheckpoints = SinkCheckpointStore.InMemory;\n const Ids =\n options.ids === undefined ? IdGenerator.Sequential : IdGenerator.Deterministic(options.ids);\n const Session = SessionContext.Live(options.sessionId);\n const TestClock = options.clock === \"live\" ? Layer.empty : FixedClock(options.nowMs ?? testNowMs);\n const Factory = EventFactory.Live.pipe(Layer.provideMerge(Layer.mergeAll(Session, Ids)));\n const ReducerRegistry = EDAReducerRegistry.Live(options.reducers ?? []);\n const PromptProjector = options.promptProjectorLayer ?? EDAPromptProjector.Default;\n const Model =\n options.modelLayer ??\n makeLanguageModelLayer({\n generateText: options.generateText,\n onGenerateText: options.onGenerateText,\n onStreamText: options.onStreamText,\n parts: options.parts ?? Stream.empty,\n });\n const CompactionPolicyLayer = options.compactionPolicyLayer ?? CompactionPolicy.Disabled;\n const CompactionExecutorLayer = options.compactionExecutorLayer ?? CompactionExecutor.Disabled;\n const Compaction = CompactionRunner.Live.pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Store,\n Factory,\n Ids,\n KeepAlive,\n Model,\n CompactionPolicyLayer,\n CompactionExecutorLayer,\n ),\n ),\n );\n const SinkRegistry = EDASinkRegistry.Live(options.sinks ?? []).pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Session,\n Store,\n Bus,\n SinkCheckpoints,\n Factory,\n Ids,\n ReducerRegistry,\n KeepAlive,\n ),\n ),\n );\n const State = SessionState.Live.pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Store,\n Bus,\n Session,\n ReducerRegistry,\n SinkRegistry,\n KeepAlive,\n Compaction,\n PromptProjector,\n ),\n ),\n );\n const Registry =\n options.toolkit !== undefined\n ? EDAToolRegistry.FromToolkit(options.toolkit)\n : options.toolSchemas === undefined\n ? EDAToolRegistry.Empty\n : EDAToolRegistry.FromSchemas(options.toolSchemas);\n const InferenceRunnerLayer = InferenceRunner.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(Factory, Model, Registry, Ids)),\n );\n const ToolExec = ToolExecutor.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(Factory, Registry, Ids, Session)),\n );\n const Turn = TurnRunner.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(InferenceRunnerLayer, ToolExec, Factory, Ids)),\n );\n const StateWithRun = State.pipe(Layer.provideMerge(Layer.mergeAll(Turn, Factory, Ids)));\n const Query = EDASessionQuery.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(StateWithRun, Store, Bus)),\n );\n\n return Layer.mergeAll(StateWithRun, Query, InferenceRunnerLayer, ToolExec, TestClock);\n};\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"layers.js","names":[],"sources":["../../src/testkit/layers.ts"],"sourcesContent":["import * as Clock from \"effect/Clock\";\nimport * as Effect from \"effect/Effect\";\nimport * as Layer from \"effect/Layer\";\nimport * as Ref from \"effect/Ref\";\nimport * as Stream from \"effect/Stream\";\nimport * as LanguageModel from \"effect/unstable/ai/LanguageModel\";\nimport type * as Prompt from \"effect/unstable/ai/Prompt\";\nimport * as Response from \"effect/unstable/ai/Response\";\n\nimport { SessionId } from \"../types/core\";\nimport { type DurableEventEnvelope, UnixEpochMillis } from \"../types/events\";\n\nimport { EDASessionStore } from \"../services/session-store\";\nimport { CompactionExecutor, CompactionPolicy, CompactionRunner } from \"../services/compaction\";\nimport type { EDASessionStoreShape } from \"../services/session-store\";\nimport { EventFactory } from \"../services/event-factory\";\nimport { IdGenerator } from \"../services/id-generator\";\nimport { EDAKeepAlive } from \"../services/keep-alive\";\nimport { LiveEventBus } from \"../services/live-event-bus\";\nimport { EDAPromptProjector } from \"../services/prompt-projector\";\nimport { EDAReducerRegistry, type EDAReducer } from \"../services/reducer-registry\";\nimport { EDASinkRegistry, type EDASink } from \"../services/sink-registry\";\nimport { SinkCheckpointStore } from \"../services/sink-checkpoint-store\";\nimport { RunScheduler } from \"../services/run-scheduler\";\nimport { RunSchedulingWakeup } from \"../services/run-scheduling-wakeup\";\nimport { SessionContext } from \"../services/session-context\";\nimport { EDASessionQuery } from \"../services/session-query\";\nimport { SessionState } from \"../services/session-state\";\nimport { ToolExecutor } from \"../services/tool-executor\";\nimport { EDAToolRegistry } from \"../services/tool-registry\";\nimport type { EDAModelToolkit, ToolParamsSchema } from \"../services/tool-registry\";\nimport { InferenceRunner } from \"../services/inference-runner\";\nimport { ModelResolver } from \"../services/model-resolver\";\nimport type { InferenceRunnerStreamPart } from \"../services/inference-runner\";\nimport { TurnRunner } from \"../services/turn-runner\";\n\n/** Default fixed test wall-clock; matches the historical CREATED_AT_MS test constant. */\nexport const testNowMs = UnixEpochMillis.make(1_715_000_000_000);\n\n/** A Clock whose current time never advances; sleep resolves immediately. */\nexport const makeFixedClock = (nowMs: number): Clock.Clock => ({\n currentTimeMillisUnsafe: () => nowMs,\n currentTimeMillis: Effect.sync(() => nowMs),\n currentTimeNanosUnsafe: () => BigInt(nowMs) * 1_000_000n,\n currentTimeNanos: Effect.sync(() => BigInt(nowMs) * 1_000_000n),\n sleep: () => Effect.void,\n});\n\n/** Layer pinning the ambient Clock reference to a fixed instant. */\nexport const FixedClock = (nowMs: number) => Layer.succeed(Clock.Clock, makeFixedClock(nowMs));\n\n/** Fake provider stream input; arrays are consumed one streamText call at a time. */\nexport type TestModelParts =\n | Stream.Stream<InferenceRunnerStreamPart, unknown>\n | ReadonlyArray<Stream.Stream<InferenceRunnerStreamPart, unknown>>;\n\n/** Options for the fake Effect AI LanguageModel used by EDA runtime tests. */\nexport interface TestLanguageModelOptions {\n readonly parts: TestModelParts;\n /** Optional fake generateText output for compaction/summarization tests. */\n readonly generateText?: string | ((input: { readonly prompt: Prompt.RawInput }) => string);\n readonly onGenerateText?: (input: { readonly prompt: Prompt.RawInput }) => void;\n readonly onStreamText?: (input: {\n readonly index: number;\n readonly prompt: Prompt.RawInput;\n readonly toolNames: ReadonlyArray<string>;\n }) => void;\n}\n\n/** Fake provider whose streamText returns configured test streams; other methods die. */\nexport const makeLanguageModelLayer = (options: TestModelParts | TestLanguageModelOptions) => {\n const config = isTestLanguageModelOptions(options) ? options : { parts: options };\n const unused = () => Effect.die(new Error(\"unused fake LanguageModel method\"));\n return Layer.effect(\n LanguageModel.LanguageModel,\n Effect.gen(function* () {\n const nextIndex = yield* Ref.make(0);\n const streamText = ((input: { readonly prompt: Prompt.RawInput }) =>\n Stream.unwrap(\n Effect.gen(function* () {\n const index = yield* Ref.getAndUpdate(nextIndex, (current) => current + 1);\n config.onStreamText?.({\n index,\n prompt: input.prompt,\n toolNames: Object.keys(inputToolkit(input)?.tools ?? {}),\n });\n if (!Array.isArray(config.parts)) {\n return config.parts;\n }\n const stream = config.parts[index];\n return stream === undefined\n ? yield* Effect.die(\n new Error(`No fake LanguageModel stream configured for call ${index}`),\n )\n : stream;\n }),\n )) as LanguageModel.Service[\"streamText\"];\n const generateText = ((input: { readonly prompt: Prompt.RawInput }) =>\n Effect.sync(() => {\n config.onGenerateText?.({ prompt: input.prompt });\n if (config.generateText === undefined) {\n return Effect.runSync(unused()) as never;\n }\n const text =\n typeof config.generateText === \"function\"\n ? config.generateText({ prompt: input.prompt })\n : config.generateText;\n return new LanguageModel.GenerateTextResponse([Response.makePart(\"text\", { text })]);\n })) as LanguageModel.Service[\"generateText\"];\n return {\n generateText,\n generateObject: unused as LanguageModel.Service[\"generateObject\"],\n streamText,\n };\n }),\n );\n};\n\nconst inputToolkit = (input: {\n readonly prompt: Prompt.RawInput;\n readonly toolkit?: unknown;\n}): { readonly tools: Record<string, unknown> } | undefined => {\n const toolkit = input.toolkit;\n return typeof toolkit === \"object\" && toolkit !== null && \"tools\" in toolkit\n ? (toolkit as { readonly tools: Record<string, unknown> })\n : undefined;\n};\n\nconst isTestLanguageModelOptions = (\n options: TestModelParts | TestLanguageModelOptions,\n): options is TestLanguageModelOptions =>\n typeof options === \"object\" &&\n options !== null &&\n \"parts\" in options &&\n !Stream.isStream(options);\n\n/** Single-session in-memory layer graph options for EDA service tests. */\nexport interface EdaTestLayerOptions {\n readonly runSchedulerLayer?: Layer.Layer<RunScheduler>;\n readonly runSchedulingWakeupLayer?: Layer.Layer<RunSchedulingWakeup>;\n readonly sessionId: SessionId;\n /** Explicit ID sequence (Deterministic); omit for counter-based Sequential IDs. */\n readonly ids?: ReadonlyArray<string>;\n /** Real/alternate provider layer; when absent, the fake stream provider is used. */\n readonly modelLayer?: Layer.Layer<LanguageModel.LanguageModel>;\n /** Replaces the external model-selection boundary when testing execution policy. */\n readonly modelResolverLayer?: Layer.Layer<ModelResolver>;\n /** Fake provider stream parts; defaults to an empty stream. Ignored when `modelLayer` is provided. */\n readonly parts?: TestModelParts;\n /** Optional fake generateText output for compaction/summarization tests. */\n readonly generateText?: string | ((input: { readonly prompt: Prompt.RawInput }) => string);\n /** Test hook for inspecting each fake generateText call. */\n readonly onGenerateText?: (input: { readonly prompt: Prompt.RawInput }) => void;\n /** Test hook for inspecting each fake streamText call. */\n readonly onStreamText?: (input: {\n readonly index: number;\n readonly prompt: Prompt.RawInput;\n readonly toolNames: ReadonlyArray<string>;\n }) => void;\n /** Handler-backed Effect Toolkit; overrides `toolSchemas` when present. */\n readonly toolkit?: EDAModelToolkit;\n /** Test/convenience schema-only tools; execution fails unless `toolkit` is provided. */\n readonly toolSchemas?: ReadonlyMap<string, ToolParamsSchema>;\n /** Durable prefix used when constructing a fresh in-memory runtime for recovery tests. */\n readonly seedEvents?: ReadonlyArray<DurableEventEnvelope>;\n /** Fixed wall-clock for event timestamps; defaults to `testNowMs`. */\n readonly nowMs?: number;\n /** Use the ambient live Clock instead of pinning test time. Intended for offline trace latency runs. */\n readonly clock?: \"fixed\" | \"live\";\n /** Wrap the in-memory store shape, e.g. to inject one-shot failures. Test-only. */\n readonly wrapStore?: (inner: EDASessionStoreShape) => EDASessionStoreShape;\n /** Override host keepAlive tracking. Test-only. */\n readonly keepAliveLayer?: Layer.Layer<EDAKeepAlive>;\n /** Override compaction policy; defaults to disabled. */\n readonly compactionPolicyLayer?: Layer.Layer<CompactionPolicy>;\n /** Override compaction executor; defaults to disabled. */\n readonly compactionExecutorLayer?: Layer.Layer<CompactionExecutor>;\n /** App-specific durable metadata reducers. */\n readonly reducers?: ReadonlyArray<EDAReducer<any>>;\n /** Override state-to-LLM context projection. */\n readonly promptProjectorLayer?: Layer.Layer<EDAPromptProjector>;\n /** App-provided EDA sinks. */\n readonly sinks?: ReadonlyArray<EDASink>;\n}\n\n/**\n * One in-memory layer graph for the whole session runtime, exposing every\n * EDA service plus the fixed Clock. Layer constants are shared by reference,\n * so all services see the same store, bus, and ID counter.\n */\nexport const makeEdaTestLayer = (options: EdaTestLayerOptions) => {\n const BaseStore =\n options.seedEvents === undefined\n ? EDASessionStore.InMemory(options.sessionId)\n : EDASessionStore.InMemorySeeded(options.sessionId, options.seedEvents);\n const Store =\n options.wrapStore === undefined\n ? BaseStore\n : Layer.effect(\n EDASessionStore,\n Effect.gen(function* () {\n const inner = yield* EDASessionStore;\n return options.wrapStore!(inner);\n }),\n ).pipe(Layer.provide(BaseStore));\n const Bus = LiveEventBus.Noop;\n const KeepAlive = options.keepAliveLayer ?? EDAKeepAlive.Noop;\n const SinkCheckpoints = SinkCheckpointStore.InMemory;\n const Ids =\n options.ids === undefined ? IdGenerator.Sequential : IdGenerator.Deterministic(options.ids);\n const Session = SessionContext.Live(options.sessionId);\n const TestClock = options.clock === \"live\" ? Layer.empty : FixedClock(options.nowMs ?? testNowMs);\n const Factory = EventFactory.Live.pipe(Layer.provideMerge(Layer.mergeAll(Session, Ids)));\n const ReducerRegistry = EDAReducerRegistry.Live(options.reducers ?? []);\n const PromptProjector = options.promptProjectorLayer ?? EDAPromptProjector.Default;\n const Model =\n options.modelLayer ??\n makeLanguageModelLayer({\n generateText: options.generateText,\n onGenerateText: options.onGenerateText,\n onStreamText: options.onStreamText,\n parts: options.parts ?? Stream.empty,\n });\n const CompactionPolicyLayer = options.compactionPolicyLayer ?? CompactionPolicy.Disabled;\n const Models = options.modelResolverLayer ?? ModelResolver.Fixed.pipe(Layer.provideMerge(Model));\n const CompactionExecutorLayer = options.compactionExecutorLayer ?? CompactionExecutor.Disabled;\n const Compaction = CompactionRunner.Live.pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Store,\n Factory,\n Ids,\n KeepAlive,\n Models,\n CompactionPolicyLayer,\n CompactionExecutorLayer,\n ),\n ),\n );\n const SinkRegistry = EDASinkRegistry.Live(options.sinks ?? []).pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Session,\n Store,\n Bus,\n SinkCheckpoints,\n Factory,\n Ids,\n ReducerRegistry,\n KeepAlive,\n ),\n ),\n );\n const State = SessionState.Live.pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Store,\n Bus,\n Session,\n ReducerRegistry,\n SinkRegistry,\n KeepAlive,\n Compaction,\n PromptProjector,\n options.runSchedulerLayer ?? RunScheduler.Immediate,\n options.runSchedulingWakeupLayer ?? RunSchedulingWakeup.Unsupported,\n ),\n ),\n );\n const Registry =\n options.toolkit !== undefined\n ? EDAToolRegistry.FromToolkit(options.toolkit)\n : options.toolSchemas === undefined\n ? EDAToolRegistry.Empty\n : EDAToolRegistry.FromSchemas(options.toolSchemas);\n const InferenceRunnerLayer = InferenceRunner.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(Factory, Models, Registry, Ids)),\n );\n const ToolExec = ToolExecutor.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(Factory, Registry, Ids, Session)),\n );\n const Turn = TurnRunner.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(InferenceRunnerLayer, ToolExec, Factory, Ids)),\n );\n const StateWithRun = State.pipe(Layer.provideMerge(Layer.mergeAll(Turn, Factory, Ids)));\n const Query = EDASessionQuery.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(StateWithRun, Store, Bus)),\n );\n\n return Layer.mergeAll(StateWithRun, Query, InferenceRunnerLayer, ToolExec, TestClock);\n};\n"],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as EventId,
|
|
2
|
-
import {
|
|
3
|
-
import { o as EDASessionStoreError, t as CommittedDurableEvent } from "./session-store-
|
|
1
|
+
import { c as EventId, g as SessionId, y as ToolCallId } from "./core-C-6xHzRx.js";
|
|
2
|
+
import { h as ToolName, t as DurableEventEnvelope } from "./envelope-DkZyMIgp.js";
|
|
3
|
+
import { o as EDASessionStoreError, t as CommittedDurableEvent } from "./session-store-BIr-xfJ7.js";
|
|
4
4
|
import * as Context from "effect/Context";
|
|
5
5
|
import * as Effect from "effect/Effect";
|
|
6
6
|
import * as Layer from "effect/Layer";
|
|
@@ -48,4 +48,4 @@ declare class EDAToolRegistry extends EDAToolRegistry_base {
|
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
50
|
export { ToolParamsSchema as a, EDAToolRegistryShape as i, EDAToolExecutionContext as n, makeEDAToolkit as o, EDAToolRegistry as r, EDAModelToolkit as t };
|
|
51
|
-
//# sourceMappingURL=tool-registry-
|
|
51
|
+
//# sourceMappingURL=tool-registry-Dhs2KmYK.d.ts.map
|
package/dist/types/commands.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { CancelPendingMessageCommand, CommandIdempotencyKey, EDACommand, PendingMessageCancellationReason, PromotePendingMessageCommand, ResumePendingMessagesCommand, StopTurnCommand, SubmitMessageCommand, SubmitMessageDisposition, UserMessageContent, UserMessagePart };
|
|
1
|
+
import { a as PendingMessageCancellationReason, c as StopTurnCommand, d as UserMessageContent, f as UserMessagePart, i as GrantRunCommand, l as SubmitMessageCommand, n as CommandIdempotencyKey, o as PromotePendingMessageCommand, r as EDACommand, s as ResumePendingMessagesCommand, t as CancelPendingMessageCommand, u as SubmitMessageDisposition } from "../commands-p8venTWs.js";
|
|
2
|
+
export { CancelPendingMessageCommand, CommandIdempotencyKey, EDACommand, GrantRunCommand, PendingMessageCancellationReason, PromotePendingMessageCommand, ResumePendingMessagesCommand, StopTurnCommand, SubmitMessageCommand, SubmitMessageDisposition, UserMessageContent, UserMessagePart };
|
package/dist/types/commands.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommandId, MessageId } from "./core.js";
|
|
1
|
+
import { CommandId, MessageId, RunRequestId } from "./core.js";
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import * as Prompt from "effect/unstable/ai/Prompt";
|
|
4
4
|
//#region src/types/commands.ts
|
|
@@ -54,7 +54,12 @@ const EDACommand = Schema.Union([
|
|
|
54
54
|
PromotePendingMessageCommand,
|
|
55
55
|
ResumePendingMessagesCommand
|
|
56
56
|
]);
|
|
57
|
+
/**
|
|
58
|
+
* Trusted scheduler permission, accepted only through the separate grantRun API.
|
|
59
|
+
* Excluded from EDACommand so ordinary session ingress cannot authorize itself.
|
|
60
|
+
*/
|
|
61
|
+
var GrantRunCommand = class extends Schema.TaggedClass()("GrantRun", { requestId: RunRequestId }) {};
|
|
57
62
|
//#endregion
|
|
58
|
-
export { CancelPendingMessageCommand, CommandIdempotencyKey, EDACommand, PendingMessageCancellationReason, PromotePendingMessageCommand, ResumePendingMessagesCommand, StopTurnCommand, SubmitMessageCommand, SubmitMessageDisposition, UserMessageContent, UserMessagePart };
|
|
63
|
+
export { CancelPendingMessageCommand, CommandIdempotencyKey, EDACommand, GrantRunCommand, PendingMessageCancellationReason, PromotePendingMessageCommand, ResumePendingMessagesCommand, StopTurnCommand, SubmitMessageCommand, SubmitMessageDisposition, UserMessageContent, UserMessagePart };
|
|
59
64
|
|
|
60
65
|
//# sourceMappingURL=commands.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.js","names":[],"sources":["../../src/types/commands.ts"],"sourcesContent":["import * as Prompt from \"effect/unstable/ai/Prompt\";\nimport * as Schema from \"effect/Schema\";\n\nimport { CommandId, MessageId } from \"./core\";\n\n/** Caller-owned stable retry/correlation key for a submitted command. */\nexport const CommandIdempotencyKey = Schema.NonEmptyString.pipe(\n Schema.brand(\"CommandIdempotencyKey\"),\n);\nexport type CommandIdempotencyKey = typeof CommandIdempotencyKey.Type;\n\nconst CommandSubmissionFields = {\n /**\n * Optional low-level lifecycle id. Normal app code should omit this and let EDA mint it.\n */\n commandId: Schema.optionalKey(CommandId),\n /** Caller-owned stable retry/correlation key. Not required to be a UUID. */\n idempotencyKey: Schema.optionalKey(CommandIdempotencyKey),\n};\n\n/** How a submitted user message interacts with an active run. */\nexport const SubmitMessageDisposition = Schema.Literals([\"queue\", \"steer\", \"interrupt\"]);\nexport type SubmitMessageDisposition = typeof SubmitMessageDisposition.Type;\n\n/** User-authored content parts accepted into the durable command stream. */\nexport const UserMessagePart = Schema.Union([Prompt.TextPart, Prompt.FilePart]);\nexport type UserMessagePart = typeof UserMessagePart.Type;\n\n/** Non-empty user-authored content, aligned to Effect AI `Prompt.UserMessage` content. */\nexport const UserMessageContent = Schema.Union([\n Prompt.ContentFromString,\n Schema.NonEmptyArray(UserMessagePart),\n]);\nexport type UserMessageContent = typeof UserMessageContent.Type;\n\n/** Submit a user message to the session command stream. */\nexport class SubmitMessageCommand extends Schema.TaggedClass<SubmitMessageCommand>()(\n \"SubmitMessage\",\n {\n ...CommandSubmissionFields,\n disposition: SubmitMessageDisposition,\n content: UserMessageContent,\n expectedPausedMessageIdsToCancel: Schema.optionalKey(Schema.Array(MessageId)),\n },\n) {}\n\nexport const PendingMessageCancellationReason = Schema.Literals([\"edit\", \"user-cancel\"]);\nexport type PendingMessageCancellationReason = typeof PendingMessageCancellationReason.Type;\n\nexport class CancelPendingMessageCommand extends Schema.TaggedClass<CancelPendingMessageCommand>()(\n \"CancelPendingMessage\",\n {\n ...CommandSubmissionFields,\n messageId: MessageId,\n reason: PendingMessageCancellationReason,\n },\n) {}\n\nexport class PromotePendingMessageCommand extends Schema.TaggedClass<PromotePendingMessageCommand>()(\n \"PromotePendingMessage\",\n {\n ...CommandSubmissionFields,\n messageId: MessageId,\n },\n) {}\n\n/** Framework-internal owner for restarting unconsumed messages after unexpected failure. */\nexport class ResumePendingMessagesCommand extends Schema.TaggedClass<ResumePendingMessagesCommand>()(\n \"ResumePendingMessages\",\n {\n ...CommandSubmissionFields,\n messageIds: Schema.NonEmptyArray(MessageId),\n },\n) {}\n\n/** Request interruption/finalization of the active turn. */\nexport class StopTurnCommand extends Schema.TaggedClass<StopTurnCommand>()(\"StopTurn\", {\n ...CommandSubmissionFields,\n}) {}\n\n/** Mutating input accepted by effect-durable-agent before runtime processing. */\nexport const EDACommand = Schema.Union([\n SubmitMessageCommand,\n StopTurnCommand,\n CancelPendingMessageCommand,\n PromotePendingMessageCommand,\n ResumePendingMessagesCommand,\n]);\nexport type EDACommand = typeof EDACommand.Type;\n"],"mappings":";;;;;AAMA,MAAa,wBAAwB,OAAO,eAAe,KACzD,OAAO,MAAM,uBAAuB,CACtC;AAGA,MAAM,0BAA0B;;;;CAI9B,WAAW,OAAO,YAAY,SAAS;;CAEvC,gBAAgB,OAAO,YAAY,qBAAqB;AAC1D;;AAGA,MAAa,2BAA2B,OAAO,SAAS;CAAC;CAAS;CAAS;AAAW,CAAC;;AAIvF,MAAa,kBAAkB,OAAO,MAAM,CAAC,OAAO,UAAU,OAAO,QAAQ,CAAC;;AAI9E,MAAa,qBAAqB,OAAO,MAAM,CAC7C,OAAO,mBACP,OAAO,cAAc,eAAe,CACtC,CAAC;;AAID,IAAa,uBAAb,cAA0C,OAAO,YAAkC,EACjF,iBACA;CACE,GAAG;CACH,aAAa;CACb,SAAS;CACT,kCAAkC,OAAO,YAAY,OAAO,MAAM,SAAS,CAAC;AAC9E,CACF,EAAE,CAAC;AAEH,MAAa,mCAAmC,OAAO,SAAS,CAAC,QAAQ,aAAa,CAAC;AAGvF,IAAa,8BAAb,cAAiD,OAAO,YAAyC,EAC/F,wBACA;CACE,GAAG;CACH,WAAW;CACX,QAAQ;AACV,CACF,EAAE,CAAC;AAEH,IAAa,+BAAb,cAAkD,OAAO,YAA0C,EACjG,yBACA;CACE,GAAG;CACH,WAAW;AACb,CACF,EAAE,CAAC;;AAGH,IAAa,+BAAb,cAAkD,OAAO,YAA0C,EACjG,yBACA;CACE,GAAG;CACH,YAAY,OAAO,cAAc,SAAS;AAC5C,CACF,EAAE,CAAC;;AAGH,IAAa,kBAAb,cAAqC,OAAO,YAA6B,EAAE,YAAY,EACrF,GAAG,wBACL,CAAC,EAAE,CAAC;;AAGJ,MAAa,aAAa,OAAO,MAAM;CACrC;CACA;CACA;CACA;CACA;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"commands.js","names":[],"sources":["../../src/types/commands.ts"],"sourcesContent":["import * as Prompt from \"effect/unstable/ai/Prompt\";\nimport * as Schema from \"effect/Schema\";\n\nimport { CommandId, MessageId, RunRequestId } from \"./core\";\n\n/** Caller-owned stable retry/correlation key for a submitted command. */\nexport const CommandIdempotencyKey = Schema.NonEmptyString.pipe(\n Schema.brand(\"CommandIdempotencyKey\"),\n);\nexport type CommandIdempotencyKey = typeof CommandIdempotencyKey.Type;\n\nconst CommandSubmissionFields = {\n /**\n * Optional low-level lifecycle id. Normal app code should omit this and let EDA mint it.\n */\n commandId: Schema.optionalKey(CommandId),\n /** Caller-owned stable retry/correlation key. Not required to be a UUID. */\n idempotencyKey: Schema.optionalKey(CommandIdempotencyKey),\n};\n\n/** How a submitted user message interacts with an active run. */\nexport const SubmitMessageDisposition = Schema.Literals([\"queue\", \"steer\", \"interrupt\"]);\nexport type SubmitMessageDisposition = typeof SubmitMessageDisposition.Type;\n\n/** User-authored content parts accepted into the durable command stream. */\nexport const UserMessagePart = Schema.Union([Prompt.TextPart, Prompt.FilePart]);\nexport type UserMessagePart = typeof UserMessagePart.Type;\n\n/** Non-empty user-authored content, aligned to Effect AI `Prompt.UserMessage` content. */\nexport const UserMessageContent = Schema.Union([\n Prompt.ContentFromString,\n Schema.NonEmptyArray(UserMessagePart),\n]);\nexport type UserMessageContent = typeof UserMessageContent.Type;\n\n/** Submit a user message to the session command stream. */\nexport class SubmitMessageCommand extends Schema.TaggedClass<SubmitMessageCommand>()(\n \"SubmitMessage\",\n {\n ...CommandSubmissionFields,\n disposition: SubmitMessageDisposition,\n content: UserMessageContent,\n expectedPausedMessageIdsToCancel: Schema.optionalKey(Schema.Array(MessageId)),\n },\n) {}\n\nexport const PendingMessageCancellationReason = Schema.Literals([\"edit\", \"user-cancel\"]);\nexport type PendingMessageCancellationReason = typeof PendingMessageCancellationReason.Type;\n\nexport class CancelPendingMessageCommand extends Schema.TaggedClass<CancelPendingMessageCommand>()(\n \"CancelPendingMessage\",\n {\n ...CommandSubmissionFields,\n messageId: MessageId,\n reason: PendingMessageCancellationReason,\n },\n) {}\n\nexport class PromotePendingMessageCommand extends Schema.TaggedClass<PromotePendingMessageCommand>()(\n \"PromotePendingMessage\",\n {\n ...CommandSubmissionFields,\n messageId: MessageId,\n },\n) {}\n\n/** Framework-internal owner for restarting unconsumed messages after unexpected failure. */\nexport class ResumePendingMessagesCommand extends Schema.TaggedClass<ResumePendingMessagesCommand>()(\n \"ResumePendingMessages\",\n {\n ...CommandSubmissionFields,\n messageIds: Schema.NonEmptyArray(MessageId),\n },\n) {}\n\n/** Request interruption/finalization of the active turn. */\nexport class StopTurnCommand extends Schema.TaggedClass<StopTurnCommand>()(\"StopTurn\", {\n ...CommandSubmissionFields,\n}) {}\n\n/** Mutating input accepted by effect-durable-agent before runtime processing. */\nexport const EDACommand = Schema.Union([\n SubmitMessageCommand,\n StopTurnCommand,\n CancelPendingMessageCommand,\n PromotePendingMessageCommand,\n ResumePendingMessagesCommand,\n]);\nexport type EDACommand = typeof EDACommand.Type;\n\n/**\n * Trusted scheduler permission, accepted only through the separate grantRun API.\n * Excluded from EDACommand so ordinary session ingress cannot authorize itself.\n */\nexport class GrantRunCommand extends Schema.TaggedClass<GrantRunCommand>()(\"GrantRun\", {\n requestId: RunRequestId,\n}) {}\n"],"mappings":";;;;;AAMA,MAAa,wBAAwB,OAAO,eAAe,KACzD,OAAO,MAAM,uBAAuB,CACtC;AAGA,MAAM,0BAA0B;;;;CAI9B,WAAW,OAAO,YAAY,SAAS;;CAEvC,gBAAgB,OAAO,YAAY,qBAAqB;AAC1D;;AAGA,MAAa,2BAA2B,OAAO,SAAS;CAAC;CAAS;CAAS;AAAW,CAAC;;AAIvF,MAAa,kBAAkB,OAAO,MAAM,CAAC,OAAO,UAAU,OAAO,QAAQ,CAAC;;AAI9E,MAAa,qBAAqB,OAAO,MAAM,CAC7C,OAAO,mBACP,OAAO,cAAc,eAAe,CACtC,CAAC;;AAID,IAAa,uBAAb,cAA0C,OAAO,YAAkC,EACjF,iBACA;CACE,GAAG;CACH,aAAa;CACb,SAAS;CACT,kCAAkC,OAAO,YAAY,OAAO,MAAM,SAAS,CAAC;AAC9E,CACF,EAAE,CAAC;AAEH,MAAa,mCAAmC,OAAO,SAAS,CAAC,QAAQ,aAAa,CAAC;AAGvF,IAAa,8BAAb,cAAiD,OAAO,YAAyC,EAC/F,wBACA;CACE,GAAG;CACH,WAAW;CACX,QAAQ;AACV,CACF,EAAE,CAAC;AAEH,IAAa,+BAAb,cAAkD,OAAO,YAA0C,EACjG,yBACA;CACE,GAAG;CACH,WAAW;AACb,CACF,EAAE,CAAC;;AAGH,IAAa,+BAAb,cAAkD,OAAO,YAA0C,EACjG,yBACA;CACE,GAAG;CACH,YAAY,OAAO,cAAc,SAAS;AAC5C,CACF,EAAE,CAAC;;AAGH,IAAa,kBAAb,cAAqC,OAAO,YAA6B,EAAE,YAAY,EACrF,GAAG,wBACL,CAAC,EAAE,CAAC;;AAGJ,MAAa,aAAa,OAAO,MAAM;CACrC;CACA;CACA;CACA;CACA;AACF,CAAC;;;;;AAOD,IAAa,kBAAb,cAAqC,OAAO,YAA6B,EAAE,YAAY,EACrF,WAAW,aACb,CAAC,EAAE,CAAC"}
|
package/dist/types/core.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { BaseStateId, CommandId, CompactionId, ContextVersion, CorrelationId, DurablePosition, DurableSubSequenceNumber, EventId, InferenceId, MessageId, Position, PositionOrder, RunId, SequenceNumber, SessionId, SubSequenceNumber, SummaryId, ToolCallId, TurnId, comparePosition, durablePosition };
|
|
1
|
+
import { S as durablePosition, _ as SubSequenceNumber, a as CorrelationId, b as TurnId, c as EventId, d as Position, f as PositionOrder, g as SessionId, h as SequenceNumber, i as ContextVersion, l as InferenceId, m as RunRequestId, n as CommandId, o as DurablePosition, p as RunId, r as CompactionId, s as DurableSubSequenceNumber, t as BaseStateId, u as MessageId, v as SummaryId, x as comparePosition, y as ToolCallId } from "../core-C-6xHzRx.js";
|
|
2
|
+
export { BaseStateId, CommandId, CompactionId, ContextVersion, CorrelationId, DurablePosition, DurableSubSequenceNumber, EventId, InferenceId, MessageId, Position, PositionOrder, RunId, RunRequestId, SequenceNumber, SessionId, SubSequenceNumber, SummaryId, ToolCallId, TurnId, comparePosition, durablePosition };
|
package/dist/types/core.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as Order from "effect/Order";
|
|
|
3
3
|
//#region src/types/core.ts
|
|
4
4
|
const UuidString = Schema.String.check(Schema.isUUID(void 0, { identifier: "Uuid" }));
|
|
5
5
|
const UuidV7String = Schema.String.check(Schema.isUUID(7));
|
|
6
|
-
/** Durable conversation identity; one
|
|
6
|
+
/** Durable conversation identity; one host isolation unit stores one session.
|
|
7
7
|
*
|
|
8
8
|
* New EDA sessions are minted as UUIDv7. Migrated sessions may retain UUIDv4
|
|
9
9
|
* identities, so runtime identity accepts any RFC UUID without changing app
|
|
@@ -16,6 +16,8 @@ const EventId = UuidV7String.pipe(Schema.brand("EventId"));
|
|
|
16
16
|
const CommandId = UuidV7String.pipe(Schema.brand("CommandId"));
|
|
17
17
|
/** Processing lifecycle identity triggered by one or more commands. */
|
|
18
18
|
const RunId = UuidV7String.pipe(Schema.brand("RunId"));
|
|
19
|
+
/** Stable deduplication identity for one durable request to authorize a new run. */
|
|
20
|
+
const RunRequestId = UuidV7String.pipe(Schema.brand("RunRequestId"));
|
|
19
21
|
/** One LLM invocation within a run. */
|
|
20
22
|
const TurnId = UuidV7String.pipe(Schema.brand("TurnId"));
|
|
21
23
|
/** One concrete model inference for a turn. */
|
|
@@ -63,6 +65,6 @@ const PositionOrder = Order.Struct({
|
|
|
63
65
|
/** Compare live positions lexicographically. */
|
|
64
66
|
const comparePosition = PositionOrder;
|
|
65
67
|
//#endregion
|
|
66
|
-
export { BaseStateId, CommandId, CompactionId, ContextVersion, CorrelationId, DurablePosition, DurableSubSequenceNumber, EventId, InferenceId, MessageId, Position, PositionOrder, RunId, SequenceNumber, SessionId, SubSequenceNumber, SummaryId, ToolCallId, TurnId, comparePosition, durablePosition };
|
|
68
|
+
export { BaseStateId, CommandId, CompactionId, ContextVersion, CorrelationId, DurablePosition, DurableSubSequenceNumber, EventId, InferenceId, MessageId, Position, PositionOrder, RunId, RunRequestId, SequenceNumber, SessionId, SubSequenceNumber, SummaryId, ToolCallId, TurnId, comparePosition, durablePosition };
|
|
67
69
|
|
|
68
70
|
//# sourceMappingURL=core.js.map
|
package/dist/types/core.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.js","names":[],"sources":["../../src/types/core.ts"],"sourcesContent":["import * as Order from \"effect/Order\";\nimport * as Schema from \"effect/Schema\";\n\nconst UuidString = Schema.String.check(Schema.isUUID(undefined, { identifier: \"Uuid\" }));\nconst UuidV7String = Schema.String.check(Schema.isUUID(7));\n\n/** Durable conversation identity; one
|
|
1
|
+
{"version":3,"file":"core.js","names":[],"sources":["../../src/types/core.ts"],"sourcesContent":["import * as Order from \"effect/Order\";\nimport * as Schema from \"effect/Schema\";\n\nconst UuidString = Schema.String.check(Schema.isUUID(undefined, { identifier: \"Uuid\" }));\nconst UuidV7String = Schema.String.check(Schema.isUUID(7));\n\n/** Durable conversation identity; one host isolation unit stores one session.\n *\n * New EDA sessions are minted as UUIDv7. Migrated sessions may retain UUIDv4\n * identities, so runtime identity accepts any RFC UUID without changing app\n * URLs or R2 keys.\n */\nexport const SessionId = UuidString.pipe(Schema.brand(\"SessionId\"));\nexport type SessionId = typeof SessionId.Type;\n\n/** Durable event identity; `(sessionId, eventId)` is the idempotency key. */\nexport const EventId = UuidV7String.pipe(Schema.brand(\"EventId\"));\nexport type EventId = typeof EventId.Type;\n\n/** User input command identity. */\nexport const CommandId = UuidV7String.pipe(Schema.brand(\"CommandId\"));\nexport type CommandId = typeof CommandId.Type;\n\n/** Processing lifecycle identity triggered by one or more commands. */\nexport const RunId = UuidV7String.pipe(Schema.brand(\"RunId\"));\nexport type RunId = typeof RunId.Type;\n\n/** Stable deduplication identity for one durable request to authorize a new run. */\nexport const RunRequestId = UuidV7String.pipe(Schema.brand(\"RunRequestId\"));\nexport type RunRequestId = typeof RunRequestId.Type;\n\n/** One LLM invocation within a run. */\nexport const TurnId = UuidV7String.pipe(Schema.brand(\"TurnId\"));\nexport type TurnId = typeof TurnId.Type;\n\n/** One concrete model inference for a turn. */\nexport const InferenceId = UuidV7String.pipe(Schema.brand(\"InferenceId\"));\nexport type InferenceId = typeof InferenceId.Type;\n\n/** One framework-owned tool invocation requested by the model. */\nexport const ToolCallId = UuidV7String.pipe(Schema.brand(\"ToolCallId\"));\nexport type ToolCallId = typeof ToolCallId.Type;\n\n/** Retained message body identity. */\nexport const MessageId = UuidV7String.pipe(Schema.brand(\"MessageId\"));\nexport type MessageId = typeof MessageId.Type;\n\n/** Optional live-stream demux identity, such as a `toolCallId`. */\nexport const CorrelationId = UuidV7String.pipe(Schema.brand(\"CorrelationId\"));\nexport type CorrelationId = typeof CorrelationId.Type;\n\n/** One compaction workflow identity. */\nexport const CompactionId = UuidV7String.pipe(Schema.brand(\"CompactionId\"));\nexport type CompactionId = typeof CompactionId.Type;\n\n/** One retained summary artifact identity. */\nexport const SummaryId = UuidV7String.pipe(Schema.brand(\"SummaryId\"));\nexport type SummaryId = typeof SummaryId.Type;\n\n/** One BaseState lifecycle identity. */\nexport const BaseStateId = UuidV7String.pipe(Schema.brand(\"BaseStateId\"));\nexport type BaseStateId = typeof BaseStateId.Type;\n\n/** Durable context projection version. */\nexport const ContextVersion = Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)).pipe(\n Schema.brand(\"ContextVersion\"),\n);\nexport type ContextVersion = typeof ContextVersion.Type;\n\n/** Durable sequence number; `0` is the genesis/resume-before-first-event position. */\nexport const SequenceNumber = Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)).pipe(\n Schema.brand(\"SequenceNumber\"),\n);\nexport type SequenceNumber = typeof SequenceNumber.Type;\n\n/** In-memory ordering slot for ephemeral events anchored to a durable sequence. */\nexport const SubSequenceNumber = Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)).pipe(\n Schema.brand(\"SubSequenceNumber\"),\n);\nexport type SubSequenceNumber = typeof SubSequenceNumber.Type;\n\n/** The only valid sub-sequence for durable events. */\nexport const DurableSubSequenceNumber = Schema.Literal(0).pipe(Schema.brand(\"SubSequenceNumber\"));\nexport type DurableSubSequenceNumber = typeof DurableSubSequenceNumber.Type;\n\n/** Total live-stream order: durable events are `(seq, 0)`, ephemerals are `(anchorSeq, subSeq > 0)`. */\nexport const Position = Schema.Struct({\n seq: SequenceNumber,\n subSeq: SubSequenceNumber,\n});\nexport type Position = typeof Position.Type;\n\n/** Position for committed durable events; `subSeq` is literally zero. */\nexport const DurablePosition = Schema.Struct({\n seq: SequenceNumber,\n subSeq: DurableSubSequenceNumber,\n});\nexport type DurablePosition = typeof DurablePosition.Type;\n\n/** Construct the live position for a committed durable event. */\nexport const durablePosition = (seq: SequenceNumber): DurablePosition =>\n DurablePosition.make({ seq, subSeq: DurableSubSequenceNumber.make(0) });\n\n/** Total ordering for live positions: compare durable `seq` first, then live `subSeq`. */\nexport const PositionOrder: Order.Order<Position> = Order.Struct({\n seq: Order.Number,\n subSeq: Order.Number,\n});\n\n/** Compare live positions lexicographically. */\nexport const comparePosition = PositionOrder;\n"],"mappings":";;;AAGA,MAAM,aAAa,OAAO,OAAO,MAAM,OAAO,OAAO,KAAA,GAAW,EAAE,YAAY,OAAO,CAAC,CAAC;AACvF,MAAM,eAAe,OAAO,OAAO,MAAM,OAAO,OAAO,CAAC,CAAC;;;;;;;AAQzD,MAAa,YAAY,WAAW,KAAK,OAAO,MAAM,WAAW,CAAC;;AAIlE,MAAa,UAAU,aAAa,KAAK,OAAO,MAAM,SAAS,CAAC;;AAIhE,MAAa,YAAY,aAAa,KAAK,OAAO,MAAM,WAAW,CAAC;;AAIpE,MAAa,QAAQ,aAAa,KAAK,OAAO,MAAM,OAAO,CAAC;;AAI5D,MAAa,eAAe,aAAa,KAAK,OAAO,MAAM,cAAc,CAAC;;AAI1E,MAAa,SAAS,aAAa,KAAK,OAAO,MAAM,QAAQ,CAAC;;AAI9D,MAAa,cAAc,aAAa,KAAK,OAAO,MAAM,aAAa,CAAC;;AAIxE,MAAa,aAAa,aAAa,KAAK,OAAO,MAAM,YAAY,CAAC;;AAItE,MAAa,YAAY,aAAa,KAAK,OAAO,MAAM,WAAW,CAAC;;AAIpE,MAAa,gBAAgB,aAAa,KAAK,OAAO,MAAM,eAAe,CAAC;;AAI5E,MAAa,eAAe,aAAa,KAAK,OAAO,MAAM,cAAc,CAAC;;AAI1E,MAAa,YAAY,aAAa,KAAK,OAAO,MAAM,WAAW,CAAC;;AAIpE,MAAa,cAAc,aAAa,KAAK,OAAO,MAAM,aAAa,CAAC;;AAIxE,MAAa,iBAAiB,OAAO,IAAI,MAAM,OAAO,uBAAuB,CAAC,CAAC,EAAE,KAC/E,OAAO,MAAM,gBAAgB,CAC/B;;AAIA,MAAa,iBAAiB,OAAO,IAAI,MAAM,OAAO,uBAAuB,CAAC,CAAC,EAAE,KAC/E,OAAO,MAAM,gBAAgB,CAC/B;;AAIA,MAAa,oBAAoB,OAAO,IAAI,MAAM,OAAO,uBAAuB,CAAC,CAAC,EAAE,KAClF,OAAO,MAAM,mBAAmB,CAClC;;AAIA,MAAa,2BAA2B,OAAO,QAAQ,CAAC,EAAE,KAAK,OAAO,MAAM,mBAAmB,CAAC;;AAIhG,MAAa,WAAW,OAAO,OAAO;CACpC,KAAK;CACL,QAAQ;AACV,CAAC;;AAID,MAAa,kBAAkB,OAAO,OAAO;CAC3C,KAAK;CACL,QAAQ;AACV,CAAC;;AAID,MAAa,mBAAmB,QAC9B,gBAAgB,KAAK;CAAE;CAAK,QAAQ,yBAAyB,KAAK,CAAC;AAAE,CAAC;;AAGxE,MAAa,gBAAuC,MAAM,OAAO;CAC/D,KAAK,MAAM;CACX,QAAQ,MAAM;AAChB,CAAC;;AAGD,MAAa,kBAAkB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, EDADurableEvent, EDADurableEventV1, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, PendingMessagesPausedEvent, PendingMessagesPausedPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunStartedEvent, RunStartedPayload, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, messageQueuePausedEventType, pendingMessagesPausedEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runStartedEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, summaryCreatedEventType, systemMessageCommittedEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
|
|
1
|
+
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";
|
|
2
|
+
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, EDADurableEvent, EDADurableEventV1, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, PendingMessagesPausedEvent, PendingMessagesPausedPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, messageQueuePausedEventType, pendingMessagesPausedEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runSchedulingDeliveredEventType, runSchedulingGrantedEventType, runSchedulingInvalidatedEventType, runSchedulingRequestedEventType, runStartedEventType, sessionConfiguredEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, summaryCreatedEventType, systemMessageCommittedEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, EDADurableEvent, EDADurableEventV1, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, PendingMessagesPausedEvent, PendingMessagesPausedPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunStartedEvent, RunStartedPayload, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, messageQueuePausedEventType, pendingMessagesPausedEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runStartedEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, summaryCreatedEventType, systemMessageCommittedEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
|
|
1
|
+
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-BPHVFVvV.js";
|
|
2
|
+
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, EDADurableEvent, EDADurableEventV1, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, PendingMessagesPausedEvent, PendingMessagesPausedPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, messageQueuePausedEventType, pendingMessagesPausedEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runSchedulingDeliveredEventType, runSchedulingGrantedEventType, runSchedulingInvalidatedEventType, runSchedulingRequestedEventType, runStartedEventType, sessionConfiguredEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, summaryCreatedEventType, systemMessageCommittedEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
|
package/dist/types/events.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { _ as UsagePayload, a as EventNamespace, b as schemaV1, c as FailurePayload, d as PositionedEvent, f as ProviderPartId, g as UnixEpochMillis, h as ToolName, i as EventEnvelope, l as ModelSelectionPayload, m as SystemPromptText, n as EphemeralEventEnvelope, o as EventType, p as SchemaVersion, r as EventDurability, s as EventTypeName, t as DurableEventEnvelope, u as NonNegativeInt, v as effectDurableAgentNamespace, y as makeEventType } from "../envelope-DkZyMIgp.js";
|
|
1
2
|
import { _ as parseEDATraceparent, a as EDATraceAttributes, c as EDATraceLink, d as makeEDAEventTrace, f as makeEDARunTrace, g as makeRootEDATraceMetadata, h as makeRootEDAEventTrace, i as EDATraceAttributeValue, l as EDATraceMetadata, m as makeEDATraceMetadataFromParent, n as EDARunTrace, o as EDATraceContext, p as makeEDATraceContext, r as EDASpanId, s as EDATraceId, t as EDAEventTrace, u as buildEDATraceparent } from "../tracing-BXHAkxkx.js";
|
|
2
|
-
import { A as
|
|
3
|
-
import {
|
|
4
|
-
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, DurableEventEnvelope, EDADurableEvent, EDADurableEventV1, EDAEphemeralEvent, EDAEventTrace, EDARunTrace, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, EphemeralEventEnvelope, EventDurability, EventEnvelope, EventNamespace, EventType, EventTypeName, FailurePayload, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, ModelSelectionPayload, ModelStreamEvent, NonNegativeInt, PendingMessagesPausedEvent, PendingMessagesPausedPayload, PositionedEvent, ProviderPartId, ReasoningDeltaEvent, ReasoningDeltaPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunStartedEvent, RunStartedPayload, RuntimeStatusEvent, SchemaVersion, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SubscriberStatusEvent, SubscriberStatusKind, SubscriberStatusPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, SystemPromptText, TextDeltaEvent, TextDeltaPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolName, ToolParamsDeltaEvent, ToolParamsDeltaPayload, ToolParamsEndEvent, ToolParamsEndPayload, ToolParamsStartEvent, ToolParamsStartPayload, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TraceStatusEvent, TraceStatusKind, TraceStatusPayload, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UnixEpochMillis, UsagePayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, buildEDATraceparent, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, effectDurableAgentNamespace, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, makeEDAEventTrace, makeEDARunTrace, makeEDATraceContext, makeEDATraceMetadataFromParent, makeEventType, makeRootEDAEventTrace, makeRootEDATraceMetadata, messageQueuePausedEventType, parseEDATraceparent, pendingMessagesPausedEventType, reasoningDeltaEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runStartedEventType, schemaV1, 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 };
|
|
3
|
+
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";
|
|
4
|
+
import { C as toolParamsDeltaEventType, E as traceStatusEventType, S as textDeltaEventType, T as toolParamsStartEventType, _ as TraceStatusEvent, a as RuntimeStatusEvent, b as reasoningDeltaEventType, c as SubscriberStatusPayload, d as ToolParamsDeltaEvent, f as ToolParamsDeltaPayload, g as ToolParamsStartPayload, h as ToolParamsStartEvent, i as ReasoningDeltaPayload, l as TextDeltaEvent, m as ToolParamsEndPayload, n as ModelStreamEvent, o as SubscriberStatusEvent, p as ToolParamsEndEvent, r as ReasoningDeltaEvent, s as SubscriberStatusKind, t as EDAEphemeralEvent, u as TextDeltaPayload, v as TraceStatusKind, w as toolParamsEndEventType, x as subscriberStatusEventType, y as TraceStatusPayload } from "../events-LZFNoESe.js";
|
|
5
|
+
export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, DurableEventEnvelope, EDADurableEvent, EDADurableEventV1, EDAEphemeralEvent, EDAEventTrace, EDARunTrace, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, EphemeralEventEnvelope, EventDurability, EventEnvelope, EventNamespace, EventType, EventTypeName, FailurePayload, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, ModelSelectionPayload, ModelStreamEvent, NonNegativeInt, PendingMessagesPausedEvent, PendingMessagesPausedPayload, PositionedEvent, ProviderPartId, ReasoningDeltaEvent, ReasoningDeltaPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, RuntimeStatusEvent, SchemaVersion, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SubscriberStatusEvent, SubscriberStatusKind, SubscriberStatusPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, SystemPromptText, TextDeltaEvent, TextDeltaPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolName, ToolParamsDeltaEvent, ToolParamsDeltaPayload, ToolParamsEndEvent, ToolParamsEndPayload, ToolParamsStartEvent, ToolParamsStartPayload, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TraceStatusEvent, TraceStatusKind, TraceStatusPayload, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UnixEpochMillis, UsagePayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, buildEDATraceparent, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, effectDurableAgentNamespace, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, makeEDAEventTrace, makeEDARunTrace, makeEDATraceContext, makeEDATraceMetadataFromParent, makeEventType, makeRootEDAEventTrace, makeRootEDATraceMetadata, messageQueuePausedEventType, parseEDATraceparent, pendingMessagesPausedEventType, reasoningDeltaEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runSchedulingDeliveredEventType, runSchedulingGrantedEventType, runSchedulingInvalidatedEventType, runSchedulingRequestedEventType, runStartedEventType, schemaV1, sessionConfiguredEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, subscriberStatusEventType, summaryCreatedEventType, systemMessageCommittedEventType, textDeltaEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, toolParamsDeltaEventType, toolParamsEndEventType, toolParamsStartEventType, traceStatusEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
|