effect-durable-agent 0.1.0-alpha.1 → 0.1.0-alpha.3
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/CHANGELOG.md +16 -1
- package/README.md +110 -108
- package/SECURITY.md +3 -4
- package/dist/{compaction-YayFKo_1.d.ts → compaction-1LSZR944.d.ts} +2 -2
- package/dist/{durable-object-runtime-pWv0ohlz.d.ts → durable-object-runtime-CiMKxGs6.d.ts} +7 -7
- package/dist/{durable-object-runtime-B7jwBY2R.js → durable-object-runtime-wKiqaAt2.js} +3 -3
- package/dist/durable-object-runtime-wKiqaAt2.js.map +1 -0
- package/dist/host/durable-object-runtime.d.ts +1 -1
- package/dist/host/durable-object-runtime.js +1 -1
- package/dist/host/durable-object.d.ts +3 -3
- package/dist/host/durable-object.js +1 -1
- package/dist/host/websocket-wire.d.ts +2 -2
- package/dist/host/websocket-wire.js +37 -20
- package/dist/host/websocket-wire.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{prompt-projector-9_02lk5-.d.ts → prompt-projector-DimXJPOJ.d.ts} +12 -13
- package/dist/{runtime-C56FQxiL.d.ts → runtime-DcdPOEuE.d.ts} +2 -2
- package/dist/services/compaction.d.ts +1 -1
- 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/runtime.d.ts +1 -1
- package/dist/services/runtime.js +1 -1
- package/dist/services/session-query.d.ts +1 -1
- package/dist/services/session-query.js +1 -1
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/{session-query-DOc1KanA.js → session-query-Cbf-e0rG.js} +26 -70
- package/dist/session-query-Cbf-e0rG.js.map +1 -0
- package/dist/{session-query-DlRo5Ufc.d.ts → session-query-hxfujxUH.d.ts} +9 -9
- package/dist/{sink-registry-CIU0LD3m.d.ts → sink-registry-BziFpxoE.d.ts} +2 -2
- package/dist/testkit/layers.d.ts +5 -5
- package/dist/testkit/layers.js +1 -1
- package/dist/websocket-wire-D3tLrhe2.d.ts +2172 -0
- package/docs/assets/architecture.svg +170 -60
- package/docs/assets/event-sequence.svg +68 -78
- package/docs/assets/hero.svg +33 -0
- package/docs/releasing.md +78 -39
- package/docs/spec.md +4 -1
- package/docs/websocket-protocol.md +31 -5
- package/package.json +1 -1
- package/dist/durable-object-runtime-B7jwBY2R.js.map +0 -1
- package/dist/session-query-DOc1KanA.js.map +0 -1
- package/dist/websocket-wire-DvOu_6BJ.d.ts +0 -16773
|
@@ -6,11 +6,11 @@ import { a as EDASessionStore, o as EDASessionStoreError, t as CommittedDurableE
|
|
|
6
6
|
import { S as ReducedState } from "./command-queues-CQ9cwRP7.js";
|
|
7
7
|
import { t as DurableTranscriptMessage } from "./message-transcript-BCHdHAe2.js";
|
|
8
8
|
import { i as EDAReducerStateSnapshot, n as EDAReducerRegistry } from "./reducer-registry-C0svUa63.js";
|
|
9
|
-
import { d as LiveEventBus, s as EDASinkRegistry } from "./sink-registry-
|
|
9
|
+
import { d as LiveEventBus, s as EDASinkRegistry } from "./sink-registry-BziFpxoE.js";
|
|
10
10
|
import { t as IdGenerator } from "./id-generator-C2Q15uZM.js";
|
|
11
11
|
import { i as SessionContext, n as EventFactory, t as EDAKeepAlive } from "./keep-alive-DYDsH6qN.js";
|
|
12
|
-
import { d as CompactionRunner } from "./compaction-
|
|
13
|
-
import {
|
|
12
|
+
import { d as CompactionRunner } from "./compaction-1LSZR944.js";
|
|
13
|
+
import { r as EDAPromptProjector } from "./prompt-projector-DimXJPOJ.js";
|
|
14
14
|
import { r as EDAToolRegistry } from "./tool-registry-CcnkAAQK.js";
|
|
15
15
|
import * as Context from "effect/Context";
|
|
16
16
|
import * as Effect from "effect/Effect";
|
|
@@ -146,7 +146,7 @@ interface ToolExecutorShape {
|
|
|
146
146
|
declare const ToolExecutor_base: Context.ServiceClass<ToolExecutor, "@effect-durable-agent/ToolExecutor", ToolExecutorShape>;
|
|
147
147
|
/** Executes sealed framework-owned tool calls and commits tool lifecycle boundaries. */
|
|
148
148
|
declare class ToolExecutor extends ToolExecutor_base {
|
|
149
|
-
static readonly Live: Layer.Layer<ToolExecutor, never,
|
|
149
|
+
static readonly Live: Layer.Layer<ToolExecutor, never, EventFactory | IdGenerator | SessionContext | EDAToolRegistry>;
|
|
150
150
|
}
|
|
151
151
|
//#endregion
|
|
152
152
|
//#region src/services/inference-runner.d.ts
|
|
@@ -294,7 +294,7 @@ interface InferenceRunnerShape {
|
|
|
294
294
|
declare const InferenceRunner_base: Context.ServiceClass<InferenceRunner, "@effect-durable-agent/InferenceRunner", InferenceRunnerShape>;
|
|
295
295
|
/** Owns provider inference streams and routes them into durable/live inference emissions. */
|
|
296
296
|
declare class InferenceRunner extends InferenceRunner_base {
|
|
297
|
-
static readonly Live: Layer.Layer<InferenceRunner, never,
|
|
297
|
+
static readonly Live: Layer.Layer<InferenceRunner, never, LanguageModel.LanguageModel | EventFactory | IdGenerator | EDAToolRegistry>;
|
|
298
298
|
}
|
|
299
299
|
//#endregion
|
|
300
300
|
//#region src/services/turn-runner.d.ts
|
|
@@ -547,7 +547,7 @@ interface TurnRunnerShape {
|
|
|
547
547
|
declare const TurnRunner_base: Context.ServiceClass<TurnRunner, "@effect-durable-agent/TurnRunner", TurnRunnerShape>;
|
|
548
548
|
/** Owns one turn: turn boundaries, inferences, tool handoff, and terminal turn events. */
|
|
549
549
|
declare class TurnRunner extends TurnRunner_base {
|
|
550
|
-
static readonly Live: Layer.Layer<TurnRunner, never,
|
|
550
|
+
static readonly Live: Layer.Layer<TurnRunner, never, EventFactory | IdGenerator | InferenceRunner | ToolExecutor>;
|
|
551
551
|
}
|
|
552
552
|
//#endregion
|
|
553
553
|
//#region src/services/session-state.d.ts
|
|
@@ -740,7 +740,7 @@ interface SessionStateShape extends SessionEventSink {
|
|
|
740
740
|
declare const SessionState_base: Context.ServiceClass<SessionState, "@effect-durable-agent/SessionState", SessionStateShape>;
|
|
741
741
|
/** Internal authoritative live state and root control loop for one session. */
|
|
742
742
|
declare class SessionState extends SessionState_base {
|
|
743
|
-
static readonly Live: Layer.Layer<SessionState, EDASessionStoreError,
|
|
743
|
+
static readonly Live: Layer.Layer<SessionState, EDASessionStoreError, CompactionRunner | EventFactory | IdGenerator | EDAKeepAlive | EDASinkRegistry | EDASessionStore | EDAReducerRegistry | LiveEventBus | SessionContext | EDAPromptProjector | TurnRunner>;
|
|
744
744
|
}
|
|
745
745
|
//#endregion
|
|
746
746
|
//#region src/services/session-query.d.ts
|
|
@@ -762,8 +762,8 @@ interface EDASessionQueryShape {
|
|
|
762
762
|
declare const EDASessionQuery_base: Context.ServiceClass<EDASessionQuery, "@effect-durable-agent/EDASessionQuery", EDASessionQueryShape>;
|
|
763
763
|
/** Read-only session query facade backed by authoritative SessionState plus durable backfill. */
|
|
764
764
|
declare class EDASessionQuery extends EDASessionQuery_base {
|
|
765
|
-
static readonly Live: Layer.Layer<EDASessionQuery, never,
|
|
765
|
+
static readonly Live: Layer.Layer<EDASessionQuery, never, EDASessionStore | LiveEventBus | SessionState>;
|
|
766
766
|
}
|
|
767
767
|
//#endregion
|
|
768
768
|
export { SessionCommandAdmissionError as a, InferenceRunner as c, EDASubmittable as i, InferenceRunnerStreamPart as l, EDASessionQueryShape as n, SessionState as o, EDASessionSnapshot as r, TurnRunner as s, EDASessionQuery as t, ToolExecutor as u };
|
|
769
|
-
//# sourceMappingURL=session-query-
|
|
769
|
+
//# sourceMappingURL=session-query-hxfujxUH.d.ts.map
|
|
@@ -151,8 +151,8 @@ declare const EDASinkRegistry_base: Context.ServiceClass<EDASinkRegistry, "@effe
|
|
|
151
151
|
/** Registry and runner for app-provided EDA sinks. */
|
|
152
152
|
declare class EDASinkRegistry extends EDASinkRegistry_base {
|
|
153
153
|
static readonly Empty: Layer.Layer<EDASinkRegistry, never, never>;
|
|
154
|
-
static readonly Live: (sinks: ReadonlyArray<EDASink>) => Layer.Layer<EDASinkRegistry, never,
|
|
154
|
+
static readonly Live: (sinks: ReadonlyArray<EDASink>) => Layer.Layer<EDASinkRegistry, never, EventFactory | IdGenerator | EDAKeepAlive | SinkCheckpointStore | EDASessionStore | EDAReducerRegistry | LiveEventBus | SessionContext>;
|
|
155
155
|
}
|
|
156
156
|
//#endregion
|
|
157
157
|
export { EDASinkContext as a, EDASinkRegistryShape as c, LiveEventBus as d, EDASinkCheckpoint as i, EDASinkRunnerStartInput as l, EDAEphemeralSinkDefinition as n, EDASinkDurableBatch as o, EDASink as r, EDASinkRegistry as s, EDADurableSinkDefinition as t, SinkCheckpointStore as u };
|
|
158
|
-
//# sourceMappingURL=sink-registry-
|
|
158
|
+
//# sourceMappingURL=sink-registry-BziFpxoE.d.ts.map
|
package/dist/testkit/layers.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { h as SessionId } from "../core-Hv3cFydL.js";
|
|
|
2
2
|
import { D as DurableEventEnvelope } from "../events-Bb9-Cu-7.js";
|
|
3
3
|
import { a as EDASessionStore, o as EDASessionStoreError, s as EDASessionStoreShape } from "../session-store-D2Ore1QC.js";
|
|
4
4
|
import { n as EDAReducerRegistry, t as EDAReducer } from "../reducer-registry-C0svUa63.js";
|
|
5
|
-
import { d as LiveEventBus, r as EDASink, s as EDASinkRegistry, u as SinkCheckpointStore } from "../sink-registry-
|
|
5
|
+
import { d as LiveEventBus, r as EDASink, s as EDASinkRegistry, u as SinkCheckpointStore } from "../sink-registry-BziFpxoE.js";
|
|
6
6
|
import { t as IdGenerator } from "../id-generator-C2Q15uZM.js";
|
|
7
7
|
import { i as SessionContext, n as EventFactory, t as EDAKeepAlive } from "../keep-alive-DYDsH6qN.js";
|
|
8
|
-
import { c as CompactionPolicy, d as CompactionRunner, r as CompactionExecutor } from "../compaction-
|
|
9
|
-
import {
|
|
10
|
-
import { c as InferenceRunner, l as InferenceRunnerStreamPart, o as SessionState, s as TurnRunner, t as EDASessionQuery, u as ToolExecutor } from "../session-query-
|
|
8
|
+
import { c as CompactionPolicy, d as CompactionRunner, r as CompactionExecutor } from "../compaction-1LSZR944.js";
|
|
9
|
+
import { r as EDAPromptProjector } from "../prompt-projector-DimXJPOJ.js";
|
|
10
|
+
import { c as InferenceRunner, l as InferenceRunnerStreamPart, o as SessionState, s as TurnRunner, t as EDASessionQuery, u as ToolExecutor } from "../session-query-hxfujxUH.js";
|
|
11
11
|
import { a as ToolParamsSchema, r as EDAToolRegistry, t as EDAModelToolkit } from "../tool-registry-CcnkAAQK.js";
|
|
12
12
|
import * as Layer from "effect/Layer";
|
|
13
13
|
import * as Stream from "effect/Stream";
|
|
@@ -95,7 +95,7 @@ interface EdaTestLayerOptions {
|
|
|
95
95
|
* EDA service plus the fixed Clock. Layer constants are shared by reference,
|
|
96
96
|
* so all services see the same store, bus, and ID counter.
|
|
97
97
|
*/
|
|
98
|
-
declare const makeEdaTestLayer: (options: EdaTestLayerOptions) => Layer.Layer<
|
|
98
|
+
declare const makeEdaTestLayer: (options: EdaTestLayerOptions) => Layer.Layer<CompactionPolicy | CompactionExecutor | LanguageModel.LanguageModel | CompactionRunner | EventFactory | IdGenerator | EDAKeepAlive | EDASinkRegistry | SinkCheckpointStore | EDASessionStore | EDAReducerRegistry | LiveEventBus | SessionContext | EDAToolRegistry | EDASessionQuery | SessionState | EDAPromptProjector | TurnRunner | InferenceRunner | ToolExecutor, EDASessionStoreError, never>;
|
|
99
99
|
//#endregion
|
|
100
100
|
export { EdaTestLayerOptions, FixedClock, TestLanguageModelOptions, TestModelParts, makeEdaTestLayer, makeFixedClock, makeLanguageModelLayer, testNowMs };
|
|
101
101
|
//# sourceMappingURL=layers.d.ts.map
|
package/dist/testkit/layers.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { gr as UnixEpochMillis } from "../durable-C3Rz7kg3.js";
|
|
2
|
-
import { a as ToolExecutor, i as InferenceRunner, n as SessionState, r as TurnRunner, t as EDASessionQuery } from "../session-query-
|
|
2
|
+
import { a as ToolExecutor, i as InferenceRunner, n as SessionState, r as TurnRunner, t as EDASessionQuery } from "../session-query-Cbf-e0rG.js";
|
|
3
3
|
import { i as EDASessionStore } from "../session-store-pYxQW9qh.js";
|
|
4
4
|
import { IdGenerator } from "../services/id-generator.js";
|
|
5
5
|
import { n as EventFactory, r as SessionContext, t as EDAKeepAlive } from "../keep-alive-p8dIcSVy.js";
|