effect-durable-agent 0.1.0-alpha.3 → 0.1.0-alpha.5
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 +43 -41
- package/dist/{command-queues-CQ9cwRP7.d.ts → command-queues-Dwdf41mq.d.ts} +7 -6
- package/dist/{compaction-1LSZR944.d.ts → compaction-DpHOf-g7.d.ts} +8 -6
- package/dist/context-projection-B4DWOZgi.d.ts +140 -0
- package/dist/{core-Hv3cFydL.d.ts → core-CYT6DBaS.d.ts} +2 -2
- package/dist/domain/command-queues.d.ts +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/reduced-state-schema.d.ts +2 -0
- package/dist/domain/reduced-state-schema.js +2 -1
- package/dist/domain/reduced-state-schema.js.map +1 -1
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/domain/reduced-state.js +1 -1
- package/dist/{durable-DlScwmCy.d.ts → durable-B7M6TD_0.d.ts} +341 -2
- package/dist/{durable-C3Rz7kg3.js → durable-DsV9PxZC.js} +13 -2
- package/dist/durable-DsV9PxZC.js.map +1 -0
- package/dist/{keep-alive-DYDsH6qN.d.ts → event-factory-CLJcyymV.d.ts} +5 -29
- package/dist/{keep-alive-p8dIcSVy.js → event-factory-tcpLgdMN.js} +3 -10
- package/dist/event-factory-tcpLgdMN.js.map +1 -0
- package/dist/host/websocket-protocol.d.ts +252 -0
- package/dist/host/websocket-protocol.js +111 -0
- package/dist/host/websocket-protocol.js.map +1 -0
- package/dist/host/websocket-wire.d.ts +2 -2
- package/dist/host/websocket-wire.js +21 -4
- package/dist/host/websocket-wire.js.map +1 -1
- package/dist/{id-generator-C2Q15uZM.d.ts → id-generator-Ckl8_XWW.d.ts} +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/keep-alive-Chl5SJxy.d.ts +29 -0
- package/dist/{message-transcript-BCHdHAe2.d.ts → message-transcript-CFn_D3MH.d.ts} +3 -3
- package/dist/{prompt-projector-DimXJPOJ.d.ts → prompt-projector-C2meuNrV.d.ts} +5 -5
- package/dist/{reduced-state-C4nVVzz9.js → reduced-state-TMi7ISla.js} +20 -4
- package/dist/reduced-state-TMi7ISla.js.map +1 -0
- package/dist/{reducer-registry-C0svUa63.d.ts → reducer-registry-K9FqZq5-.d.ts} +2 -2
- package/dist/{runtime-DcdPOEuE.d.ts → runtime-5NEJngu3.d.ts} +12 -6
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/compaction.js +4 -3
- package/dist/services/compaction.js.map +1 -1
- package/dist/services/id-generator.d.ts +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/prompt-projector.d.ts +1 -1
- package/dist/services/reducer-registry.d.ts +1 -1
- package/dist/services/runtime-layer.d.ts +58 -0
- package/dist/services/runtime-layer.js +42 -0
- package/dist/services/runtime-layer.js.map +1 -0
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +9 -4
- package/dist/services/runtime.js.map +1 -1
- package/dist/services/session-query.d.ts +2 -2
- package/dist/services/session-query.js +93 -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 +181 -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 +1 -0
- package/dist/services/span-names.js.map +1 -1
- package/dist/services/tool-registry.d.ts +1 -1
- package/dist/services/websocket-delivery.d.ts +90 -0
- package/dist/services/websocket-delivery.js +221 -0
- package/dist/services/websocket-delivery.js.map +1 -0
- package/dist/session-query-5oyZRaQL.d.ts +45 -0
- package/dist/{session-query-hxfujxUH.d.ts → session-state-CI1xeT6f.d.ts} +134 -42
- package/dist/{session-query-Cbf-e0rG.js → session-state-D7dqko7r.js} +19 -78
- package/dist/session-state-D7dqko7r.js.map +1 -0
- package/dist/{session-store-D2Ore1QC.d.ts → session-store-BLg6UvZa.d.ts} +5 -94
- package/dist/sink-checkpoint-store-B9WNvDtY.d.ts +40 -0
- package/dist/{sink-registry-CFC6xjsN.js → sink-registry-BbmoI9uv.js} +25 -70
- package/dist/sink-registry-BbmoI9uv.js.map +1 -0
- package/dist/{sink-registry-BziFpxoE.d.ts → sink-registry-CO3YPS1p.d.ts} +31 -48
- package/dist/testkit/layers.d.ts +14 -11
- package/dist/testkit/layers.js +9 -6
- package/dist/testkit/layers.js.map +1 -1
- package/dist/{tool-registry-CcnkAAQK.d.ts → tool-registry-B8H1P6Pu.d.ts} +3 -3
- package/dist/types/core.d.ts +1 -1
- package/dist/types/core.js +1 -1
- 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 +2 -2
- package/dist/types/events.js +2 -2
- package/dist/{websocket-wire-D3tLrhe2.d.ts → websocket-wire-DPxwY4G5.d.ts} +112 -11
- package/package.json +48 -40
- package/testing/offline-trace/README.md +2 -1
- package/CHANGELOG.md +0 -25
- package/CONTRIBUTING.md +0 -26
- package/SECURITY.md +0 -7
- package/dist/durable-C3Rz7kg3.js.map +0 -1
- package/dist/durable-object-runtime-CiMKxGs6.d.ts +0 -257
- package/dist/durable-object-runtime-wKiqaAt2.js +0 -1494
- package/dist/durable-object-runtime-wKiqaAt2.js.map +0 -1
- 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/keep-alive-p8dIcSVy.js.map +0 -1
- package/dist/reduced-state-C4nVVzz9.js.map +0 -1
- package/dist/session-query-Cbf-e0rG.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/docs/assets/architecture.svg +0 -216
- package/docs/assets/event-sequence.svg +0 -133
- package/docs/assets/gcp-trace.png +0 -0
- package/docs/assets/hero.svg +0 -33
- package/docs/message-steering.md +0 -831
- package/docs/releasing.md +0 -96
- package/docs/spec.md +0 -777
- 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 -639
- 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.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { yr as UnixEpochMillis } from "../durable-DsV9PxZC.js";
|
|
2
|
+
import { n as EDASinkRegistry, r as LiveEventBus } from "../sink-registry-BbmoI9uv.js";
|
|
3
|
+
import { d as TurnRunner, f as InferenceRunner, p as ToolExecutor, u as SessionState } from "../session-state-D7dqko7r.js";
|
|
4
|
+
import { EDASessionStore } from "../services/session-store.js";
|
|
4
5
|
import { IdGenerator } from "../services/id-generator.js";
|
|
5
|
-
import { n as
|
|
6
|
+
import { n as SessionContext, t as EventFactory } from "../event-factory-tcpLgdMN.js";
|
|
7
|
+
import { EDAKeepAlive } from "../services/keep-alive.js";
|
|
6
8
|
import { CompactionExecutor, CompactionPolicy, CompactionRunner } from "../services/compaction.js";
|
|
7
|
-
import { i as LiveEventBus, n as EDASinkRegistry, r as SinkCheckpointStore } from "../sink-registry-CFC6xjsN.js";
|
|
8
9
|
import { EDAPromptProjector } from "../services/prompt-projector.js";
|
|
9
10
|
import { EDAReducerRegistry } from "../services/reducer-registry.js";
|
|
11
|
+
import { SinkCheckpointStore } from "../services/sink-checkpoint-store.js";
|
|
10
12
|
import { EDAToolRegistry } from "../services/tool-registry.js";
|
|
13
|
+
import { EDASessionQuery } from "../services/session-query.js";
|
|
11
14
|
import * as Effect from "effect/Effect";
|
|
12
15
|
import * as Layer from "effect/Layer";
|
|
13
16
|
import * as Stream from "effect/Stream";
|
|
14
|
-
import * as Clock from "effect/Clock";
|
|
15
17
|
import * as Ref from "effect/Ref";
|
|
18
|
+
import * as Clock from "effect/Clock";
|
|
16
19
|
import * as LanguageModel from "effect/unstable/ai/LanguageModel";
|
|
17
20
|
import * as Response from "effect/unstable/ai/Response";
|
|
18
21
|
//#region src/testkit/layers.ts
|
|
@@ -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 { 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,6 +1,6 @@
|
|
|
1
|
-
import { c as EventId, h as SessionId, v as ToolCallId } from "./core-
|
|
1
|
+
import { c as EventId, h as SessionId, v as ToolCallId } from "./core-CYT6DBaS.js";
|
|
2
2
|
import { D as DurableEventEnvelope, V as ToolName } from "./events-Bb9-Cu-7.js";
|
|
3
|
-
import { o as EDASessionStoreError, t as CommittedDurableEvent } from "./session-store-
|
|
3
|
+
import { o as EDASessionStoreError, t as CommittedDurableEvent } from "./session-store-BLg6UvZa.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-B8H1P6Pu.d.ts.map
|
package/dist/types/core.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SummaryId, a as CorrelationId, b as comparePosition, c as EventId, d as Position, f as PositionOrder, g as SubSequenceNumber, h as SessionId, i as ContextVersion, l as InferenceId, m as SequenceNumber, n as CommandId, o as DurablePosition, p as RunId, r as CompactionId, s as DurableSubSequenceNumber, t as BaseStateId, u as MessageId, v as ToolCallId, x as durablePosition, y as TurnId } from "../core-
|
|
1
|
+
import { _ as SummaryId, a as CorrelationId, b as comparePosition, c as EventId, d as Position, f as PositionOrder, g as SubSequenceNumber, h as SessionId, i as ContextVersion, l as InferenceId, m as SequenceNumber, n as CommandId, o as DurablePosition, p as RunId, r as CompactionId, s as DurableSubSequenceNumber, t as BaseStateId, u as MessageId, v as ToolCallId, x as durablePosition, y as TurnId } from "../core-CYT6DBaS.js";
|
|
2
2
|
export { BaseStateId, CommandId, CompactionId, ContextVersion, CorrelationId, DurablePosition, DurableSubSequenceNumber, EventId, InferenceId, MessageId, Position, PositionOrder, RunId, 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
|
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/** 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,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 turnStoppedEventType, $t as TurnStoppedPayload, A as CompactionFailedEvent, An as inferenceFailedEventType, At as ToolCallCreatedPayload, B as ContextRebasedPayload, Bn as steeringMessageQueuedEventType, Bt as ToolCallStartedPayload, C as CommandEvent, Cn as compactionRequestedEventType, Ct as SummaryCreatedEvent, D as CommandStartedPayload, Dn as decodeUnknownEDADurableEvent, Dt as ToolCallCompletedEvent, E as CommandStartedEvent, En as contextRebasedEventType, Et as SystemMessageCommittedPayload, F as CompactionStartedPayload, Fn as runCompletedEventType, Ft as ToolCallRejectedEvent, G as InferenceEvent, Gn as toolCallCompletedEventType, Gt as TurnCompletedEvent, H as EDADurableEventV1, Hn as stopTurnRequestedEventType, Ht as ToolPromptPart, I as ContextAndCompactionEvent, In as runFailedEventType, It as ToolCallRejectedPayload, J as InferenceStartedEvent, Jn as toolCallRejectedEventType, Jt as TurnFailedEvent, K as InferenceFailedEvent, Kn as toolCallCreatedEventType, Kt as TurnCompletedPayload, L as ContextProjectedEvent, Ln as runInterruptedEventType, Lt as ToolCallRejectionFeedback, M as CompactionRequestedEvent, Mn as messageQueuePausedEventType, Mt as ToolCallFailedEvent, N as CompactionRequestedPayload, Nn as pendingMessagesPausedEventType, Nt as ToolCallFailedPayload, O as CompactionCompletedEvent, On as decodeUnknownEDADurableEventSync, Ot as ToolCallCompletedPayload, P as CompactionStartedEvent, Pn as recoveryCompletedEventType, Pt as ToolCallPromptPart, Q as MessageQueuePausedPayload, Qn as turnStartedEventType, Qt as TurnStoppedEvent, R as ContextProjectedPayload, Rn as runStartedEventType, Rt as ToolCallRejectionReason, S as CommandCompletedPayload, Sn as compactionFailedEventType, St as StopTurnRequestedPayload, T as CommandFailedPayload, Tn as contextProjectedEventType, Tt as SystemMessageCommittedEvent, U as InferenceCompletedEvent, Un as summaryCreatedEventType, Ut as ToolRejectionPromptPart, V as EDADurableEvent, Vn as stopTurnAppliedEventType, Vt as ToolFailurePromptPart, W as InferenceCompletedPayload, Wn as systemMessageCommittedEventType, Wt as ToolSuccessPromptPart, X as MessageEvent, Xn as turnCompletedEventType, Xt as TurnStartedEvent, Y as InferenceStartedPayload, Yn as toolCallStartedEventType, Yt as TurnFailedPayload, Z as MessageQueuePausedEvent, Zn as turnFailedEventType, Zt as TurnStartedPayload, _ as CommandAdmittedEvent, _n as commandCancelledEventType, _t as SteeringMessageQueuedPayload, a as AssistantMessageImportedPayload, an as UserMessageDisposition, at as RunCompletedEvent, b as CommandCancelledPayload, bn as commandStartedEventType, bt as StopTurnAppliedPayload, c as AssistantPromptPart, cn as UserMessageSubmittedEvent, ct as RunFailedEvent, d as BaseStateCreatedPayload, dn as assistantMessageImportedEventType, dt as RunInterruptedPayload, en as UserMessageCancellationReason, er as userMessageCancelledEventType, et as PendingMessagesPausedPayload, f as BaseStateEvent, fn as assistantPartialCommittedEventType, ft as RunStartedEvent, g as BaseStateRequestedPayload, gn as commandAdmittedEventType, gt as SteeringMessageQueuedEvent, h as BaseStateRequestedEvent, hn as baseStateRequestedEventType, ht as SteeringMessageCancelledPayload, i as AssistantMessageImportedEvent, in as UserMessageCommittedPayload, it as RecoveryEvent, j as CompactionFailedPayload, jn as inferenceStartedEventType, jt as ToolCallEvent, k as CompactionCompletedPayload, kn as inferenceCompletedEventType, kt as ToolCallCreatedEvent, l as AssistantPromptParts, ln as UserMessageSubmittedPayload, lt as RunFailedPayload, m as BaseStateFailedPayload, mn as baseStateFailedEventType, mt as SteeringMessageCancelledEvent, n as AssistantMessageCommittedPayload, nn as UserMessageCancelledPayload, nr as userMessagePromotedEventType, nt as RecoveryCompletedPayload, o as AssistantPartialCommittedEvent, on as UserMessagePromotedEvent, ot as RunCompletedPayload, p as BaseStateFailedEvent, pn as baseStateCreatedEventType, pt as RunStartedPayload, q as InferenceFailedPayload, qn as toolCallFailedEventType, qt as TurnEvent, r as AssistantMessageContent, rn as UserMessageCommittedEvent, rr as userMessageSubmittedEventType, rt as RecoveryContinuation, s as AssistantPartialCommittedPayload, sn as UserMessagePromotedPayload, st as RunEvent, t as AssistantMessageCommittedEvent, tn as UserMessageCancelledEvent, tr as userMessageCommittedEventType, tt as RecoveryCompletedEvent, u as BaseStateCreatedEvent, un as assistantMessageCommittedEventType, ut as RunInterruptedEvent, v as CommandAdmittedPayload, vn as commandCompletedEventType, vt as StopControlEvent, w as CommandFailedEvent, wn as compactionStartedEventType, wt as SummaryCreatedPayload, x as CommandCompletedEvent, xn as compactionCompletedEventType, xt as StopTurnRequestedEvent, y as CommandCancelledEvent, yn as commandFailedEventType, yt as StopTurnAppliedEvent, z as ContextRebasedEvent, zn as steeringMessageCancelledEventType, zt as ToolCallStartedEvent } from "../../durable-B7M6TD_0.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, 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, 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, runStartedEventType, 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 turnStoppedEventType, $t as TurnStoppedPayload, A as CompactionFailedEvent, An as inferenceFailedEventType, At as ToolCallCreatedPayload, B as ContextRebasedPayload, Bn as steeringMessageQueuedEventType, Bt as ToolCallStartedPayload, C as CommandEvent, Cn as compactionRequestedEventType, Ct as SummaryCreatedEvent, D as CommandStartedPayload, Dn as decodeUnknownEDADurableEvent, Dt as ToolCallCompletedEvent, E as CommandStartedEvent, En as contextRebasedEventType, Et as SystemMessageCommittedPayload, F as CompactionStartedPayload, Fn as runCompletedEventType, Ft as ToolCallRejectedEvent, G as InferenceEvent, Gn as toolCallCompletedEventType, Gt as TurnCompletedEvent, H as EDADurableEventV1, Hn as stopTurnRequestedEventType, Ht as ToolPromptPart, I as ContextAndCompactionEvent, In as runFailedEventType, It as ToolCallRejectedPayload, J as InferenceStartedEvent, Jn as toolCallRejectedEventType, Jt as TurnFailedEvent, K as InferenceFailedEvent, Kn as toolCallCreatedEventType, Kt as TurnCompletedPayload, L as ContextProjectedEvent, Ln as runInterruptedEventType, Lt as ToolCallRejectionFeedback, M as CompactionRequestedEvent, Mn as messageQueuePausedEventType, Mt as ToolCallFailedEvent, N as CompactionRequestedPayload, Nn as pendingMessagesPausedEventType, Nt as ToolCallFailedPayload, O as CompactionCompletedEvent, On as decodeUnknownEDADurableEventSync, Ot as ToolCallCompletedPayload, P as CompactionStartedEvent, Pn as recoveryCompletedEventType, Pt as ToolCallPromptPart, Q as MessageQueuePausedPayload, Qn as turnStartedEventType, Qt as TurnStoppedEvent, R as ContextProjectedPayload, Rn as runStartedEventType, Rt as ToolCallRejectionReason, S as CommandCompletedPayload, Sn as compactionFailedEventType, St as StopTurnRequestedPayload, T as CommandFailedPayload, Tn as contextProjectedEventType, Tt as SystemMessageCommittedEvent, U as InferenceCompletedEvent, Un as summaryCreatedEventType, Ut as ToolRejectionPromptPart, V as EDADurableEvent, Vn as stopTurnAppliedEventType, Vt as ToolFailurePromptPart, W as InferenceCompletedPayload, Wn as systemMessageCommittedEventType, Wt as ToolSuccessPromptPart, X as MessageEvent, Xn as turnCompletedEventType, Xt as TurnStartedEvent, Y as InferenceStartedPayload, Yn as toolCallStartedEventType, Yt as TurnFailedPayload, Z as MessageQueuePausedEvent, Zn as turnFailedEventType, Zt as TurnStartedPayload, _ as CommandAdmittedEvent, _n as commandCancelledEventType, _t as SteeringMessageQueuedPayload, a as AssistantMessageImportedPayload, an as UserMessageDisposition, at as RunCompletedEvent, b as CommandCancelledPayload, bn as commandStartedEventType, bt as StopTurnAppliedPayload, c as AssistantPromptPart, cn as UserMessageSubmittedEvent, ct as RunFailedEvent, d as BaseStateCreatedPayload, dn as assistantMessageImportedEventType, dt as RunInterruptedPayload, en as UserMessageCancellationReason, er as userMessageCancelledEventType, et as PendingMessagesPausedPayload, f as BaseStateEvent, fn as assistantPartialCommittedEventType, ft as RunStartedEvent, g as BaseStateRequestedPayload, gn as commandAdmittedEventType, gt as SteeringMessageQueuedEvent, h as BaseStateRequestedEvent, hn as baseStateRequestedEventType, ht as SteeringMessageCancelledPayload, i as AssistantMessageImportedEvent, in as UserMessageCommittedPayload, it as RecoveryEvent, j as CompactionFailedPayload, jn as inferenceStartedEventType, jt as ToolCallEvent, k as CompactionCompletedPayload, kn as inferenceCompletedEventType, kt as ToolCallCreatedEvent, l as AssistantPromptParts, ln as UserMessageSubmittedPayload, lt as RunFailedPayload, m as BaseStateFailedPayload, mn as baseStateFailedEventType, mt as SteeringMessageCancelledEvent, n as AssistantMessageCommittedPayload, nn as UserMessageCancelledPayload, nr as userMessagePromotedEventType, nt as RecoveryCompletedPayload, o as AssistantPartialCommittedEvent, on as UserMessagePromotedEvent, ot as RunCompletedPayload, p as BaseStateFailedEvent, pn as baseStateCreatedEventType, pt as RunStartedPayload, q as InferenceFailedPayload, qn as toolCallFailedEventType, qt as TurnEvent, r as AssistantMessageContent, rn as UserMessageCommittedEvent, rr as userMessageSubmittedEventType, rt as RecoveryContinuation, s as AssistantPartialCommittedPayload, sn as UserMessagePromotedPayload, st as RunEvent, t as AssistantMessageCommittedEvent, tn as UserMessageCancelledEvent, tr as userMessageCommittedEventType, tt as RecoveryCompletedEvent, u as BaseStateCreatedEvent, un as assistantMessageCommittedEventType, ut as RunInterruptedEvent, v as CommandAdmittedPayload, vn as commandCompletedEventType, vt as StopControlEvent, w as CommandFailedEvent, wn as compactionStartedEventType, wt as SummaryCreatedPayload, x as CommandCompletedEvent, xn as compactionCompletedEventType, xt as StopTurnRequestedEvent, y as CommandCancelledEvent, yn as commandFailedEventType, yt as StopTurnAppliedEvent, z as ContextRebasedEvent, zn as steeringMessageCancelledEventType, zt as ToolCallStartedEvent } from "../../durable-DsV9PxZC.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, 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, 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, runStartedEventType, 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,4 @@
|
|
|
1
1
|
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
2
|
import { A as EventEnvelope, B as SystemPromptText, C as toolParamsDeltaEventType, D as DurableEventEnvelope, E as traceStatusEventType, F as ModelSelectionPayload, G as makeEventType, H as UnixEpochMillis, I as NonNegativeInt, K as schemaV1, L as PositionedEvent, M as EventType, N as EventTypeName, O as EphemeralEventEnvelope, P as FailurePayload, R as ProviderPartId, S as textDeltaEventType, T as toolParamsStartEventType, U as UsagePayload, V as ToolName, W as effectDurableAgentNamespace, _ 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, j as EventNamespace, k as EventDurability, 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, z as SchemaVersion } from "../events-Bb9-Cu-7.js";
|
|
3
|
-
import { $ as
|
|
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 turnStoppedEventType, $t as TurnStoppedPayload, A as CompactionFailedEvent, An as inferenceFailedEventType, At as ToolCallCreatedPayload, B as ContextRebasedPayload, Bn as steeringMessageQueuedEventType, Bt as ToolCallStartedPayload, C as CommandEvent, Cn as compactionRequestedEventType, Ct as SummaryCreatedEvent, D as CommandStartedPayload, Dn as decodeUnknownEDADurableEvent, Dt as ToolCallCompletedEvent, E as CommandStartedEvent, En as contextRebasedEventType, Et as SystemMessageCommittedPayload, F as CompactionStartedPayload, Fn as runCompletedEventType, Ft as ToolCallRejectedEvent, G as InferenceEvent, Gn as toolCallCompletedEventType, Gt as TurnCompletedEvent, H as EDADurableEventV1, Hn as stopTurnRequestedEventType, Ht as ToolPromptPart, I as ContextAndCompactionEvent, In as runFailedEventType, It as ToolCallRejectedPayload, J as InferenceStartedEvent, Jn as toolCallRejectedEventType, Jt as TurnFailedEvent, K as InferenceFailedEvent, Kn as toolCallCreatedEventType, Kt as TurnCompletedPayload, L as ContextProjectedEvent, Ln as runInterruptedEventType, Lt as ToolCallRejectionFeedback, M as CompactionRequestedEvent, Mn as messageQueuePausedEventType, Mt as ToolCallFailedEvent, N as CompactionRequestedPayload, Nn as pendingMessagesPausedEventType, Nt as ToolCallFailedPayload, O as CompactionCompletedEvent, On as decodeUnknownEDADurableEventSync, Ot as ToolCallCompletedPayload, P as CompactionStartedEvent, Pn as recoveryCompletedEventType, Pt as ToolCallPromptPart, Q as MessageQueuePausedPayload, Qn as turnStartedEventType, Qt as TurnStoppedEvent, R as ContextProjectedPayload, Rn as runStartedEventType, Rt as ToolCallRejectionReason, S as CommandCompletedPayload, Sn as compactionFailedEventType, St as StopTurnRequestedPayload, T as CommandFailedPayload, Tn as contextProjectedEventType, Tt as SystemMessageCommittedEvent, U as InferenceCompletedEvent, Un as summaryCreatedEventType, Ut as ToolRejectionPromptPart, V as EDADurableEvent, Vn as stopTurnAppliedEventType, Vt as ToolFailurePromptPart, W as InferenceCompletedPayload, Wn as systemMessageCommittedEventType, Wt as ToolSuccessPromptPart, X as MessageEvent, Xn as turnCompletedEventType, Xt as TurnStartedEvent, Y as InferenceStartedPayload, Yn as toolCallStartedEventType, Yt as TurnFailedPayload, Z as MessageQueuePausedEvent, Zn as turnFailedEventType, Zt as TurnStartedPayload, _ as CommandAdmittedEvent, _n as commandCancelledEventType, _t as SteeringMessageQueuedPayload, a as AssistantMessageImportedPayload, an as UserMessageDisposition, at as RunCompletedEvent, b as CommandCancelledPayload, bn as commandStartedEventType, bt as StopTurnAppliedPayload, c as AssistantPromptPart, cn as UserMessageSubmittedEvent, ct as RunFailedEvent, d as BaseStateCreatedPayload, dn as assistantMessageImportedEventType, dt as RunInterruptedPayload, en as UserMessageCancellationReason, er as userMessageCancelledEventType, et as PendingMessagesPausedPayload, f as BaseStateEvent, fn as assistantPartialCommittedEventType, ft as RunStartedEvent, g as BaseStateRequestedPayload, gn as commandAdmittedEventType, gt as SteeringMessageQueuedEvent, h as BaseStateRequestedEvent, hn as baseStateRequestedEventType, ht as SteeringMessageCancelledPayload, i as AssistantMessageImportedEvent, in as UserMessageCommittedPayload, it as RecoveryEvent, j as CompactionFailedPayload, jn as inferenceStartedEventType, jt as ToolCallEvent, k as CompactionCompletedPayload, kn as inferenceCompletedEventType, kt as ToolCallCreatedEvent, l as AssistantPromptParts, ln as UserMessageSubmittedPayload, lt as RunFailedPayload, m as BaseStateFailedPayload, mn as baseStateFailedEventType, mt as SteeringMessageCancelledEvent, n as AssistantMessageCommittedPayload, nn as UserMessageCancelledPayload, nr as userMessagePromotedEventType, nt as RecoveryCompletedPayload, o as AssistantPartialCommittedEvent, on as UserMessagePromotedEvent, ot as RunCompletedPayload, p as BaseStateFailedEvent, pn as baseStateCreatedEventType, pt as RunStartedPayload, q as InferenceFailedPayload, qn as toolCallFailedEventType, qt as TurnEvent, r as AssistantMessageContent, rn as UserMessageCommittedEvent, rr as userMessageSubmittedEventType, rt as RecoveryContinuation, s as AssistantPartialCommittedPayload, sn as UserMessagePromotedPayload, st as RunEvent, t as AssistantMessageCommittedEvent, tn as UserMessageCancelledEvent, tr as userMessageCommittedEventType, tt as RecoveryCompletedEvent, u as BaseStateCreatedEvent, un as assistantMessageCommittedEventType, ut as RunInterruptedEvent, v as CommandAdmittedPayload, vn as commandCompletedEventType, vt as StopControlEvent, w as CommandFailedEvent, wn as compactionStartedEventType, wt as SummaryCreatedPayload, x as CommandCompletedEvent, xn as compactionCompletedEventType, xt as StopTurnRequestedEvent, y as CommandCancelledEvent, yn as commandFailedEventType, yt as StopTurnAppliedEvent, z as ContextRebasedEvent, zn as steeringMessageCancelledEventType, zt as ToolCallStartedEvent } from "../durable-B7M6TD_0.js";
|
|
4
|
+
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, 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, 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, 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 };
|
package/dist/types/events.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToolCallId } from "./core.js";
|
|
2
2
|
import { EDAEventTrace, EDARunTrace, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, buildEDATraceparent, makeEDAEventTrace, makeEDARunTrace, makeEDATraceContext, makeEDATraceMetadataFromParent, makeRootEDAEventTrace, makeRootEDATraceMetadata, parseEDATraceparent } from "./tracing.js";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $ as PendingMessagesPausedEvent, $n as turnStoppedEventType, $t as TurnStoppedPayload, A as CompactionFailedEvent, An as inferenceFailedEventType, At as ToolCallCreatedPayload, B as ContextRebasedPayload, Bn as steeringMessageQueuedEventType, Bt as ToolCallStartedPayload, C as CommandEvent, Cn as compactionRequestedEventType, Cr as schemaV1, Ct as SummaryCreatedEvent, D as CommandStartedPayload, Dn as decodeUnknownEDADurableEvent, Dt as ToolCallCompletedEvent, E as CommandStartedEvent, En as contextRebasedEventType, Et as SystemMessageCommittedPayload, F as CompactionStartedPayload, Fn as runCompletedEventType, Ft as ToolCallRejectedEvent, G as InferenceEvent, Gn as toolCallCompletedEventType, Gt as TurnCompletedEvent, H as EDADurableEventV1, Hn as stopTurnRequestedEventType, Ht as ToolPromptPart, I as ContextAndCompactionEvent, In as runFailedEventType, It as ToolCallRejectedPayload, J as InferenceStartedEvent, Jn as toolCallRejectedEventType, Jt as TurnFailedEvent, K as InferenceFailedEvent, Kn as toolCallCreatedEventType, Kt as TurnCompletedPayload, L as ContextProjectedEvent, Ln as runInterruptedEventType, Lt as ToolCallRejectionFeedback, M as CompactionRequestedEvent, Mn as messageQueuePausedEventType, Mt as ToolCallFailedEvent, N as CompactionRequestedPayload, Nn as pendingMessagesPausedEventType, Nt as ToolCallFailedPayload, O as CompactionCompletedEvent, On as decodeUnknownEDADurableEventSync, Ot as ToolCallCompletedPayload, P as CompactionStartedEvent, Pn as recoveryCompletedEventType, Pt as ToolCallPromptPart, Q as MessageQueuePausedPayload, Qn as turnStartedEventType, Qt as TurnStoppedEvent, R as ContextProjectedPayload, Rn as runStartedEventType, Rt as ToolCallRejectionReason, S as CommandCompletedPayload, Sn as compactionFailedEventType, Sr as makeEventType, St as StopTurnRequestedPayload, T as CommandFailedPayload, Tn as contextProjectedEventType, Tt as SystemMessageCommittedEvent, U as InferenceCompletedEvent, Un as summaryCreatedEventType, Ut as ToolRejectionPromptPart, V as EDADurableEvent, Vn as stopTurnAppliedEventType, Vt as ToolFailurePromptPart, W as InferenceCompletedPayload, Wn as systemMessageCommittedEventType, Wt as ToolSuccessPromptPart, X as MessageEvent, Xn as turnCompletedEventType, Xt as TurnStartedEvent, Y as InferenceStartedPayload, Yn as toolCallStartedEventType, Yt as TurnFailedPayload, Z as MessageQueuePausedEvent, Zn as turnFailedEventType, Zt as TurnStartedPayload, _ as CommandAdmittedEvent, _n as commandCancelledEventType, _r as SystemPromptText, _t as SteeringMessageQueuedPayload, a as AssistantMessageImportedPayload, an as UserMessageDisposition, ar as DurableEventEnvelope, at as RunCompletedEvent, b as CommandCancelledPayload, bn as commandStartedEventType, br as UsagePayload, bt as StopTurnAppliedPayload, c as AssistantPromptPart, cn as UserMessageSubmittedEvent, cr as EventEnvelope, ct as RunFailedEvent, d as BaseStateCreatedPayload, dn as assistantMessageImportedEventType, dr as FailurePayload, dt as RunInterruptedPayload, en as UserMessageCancellationReason, er as userMessageCancelledEventType, et as PendingMessagesPausedPayload, f as BaseStateEvent, fn as assistantPartialCommittedEventType, fr as ModelSelectionPayload, ft as RunStartedEvent, g as BaseStateRequestedPayload, gn as commandAdmittedEventType, gr as SchemaVersion, gt as SteeringMessageQueuedEvent, h as BaseStateRequestedEvent, hn as baseStateRequestedEventType, hr as ProviderPartId, ht as SteeringMessageCancelledPayload, i as AssistantMessageImportedEvent, in as UserMessageCommittedPayload, ir as ephemeralEventSchema, it as RecoveryEvent, j as CompactionFailedPayload, jn as inferenceStartedEventType, jt as ToolCallEvent, k as CompactionCompletedPayload, kn as inferenceCompletedEventType, kt as ToolCallCreatedEvent, l as AssistantPromptParts, ln as UserMessageSubmittedPayload, lr as EventNamespace, lt as RunFailedPayload, m as BaseStateFailedPayload, mn as baseStateFailedEventType, mr as PositionedEvent, mt as SteeringMessageCancelledEvent, n as AssistantMessageCommittedPayload, nn as UserMessageCancelledPayload, nr as userMessagePromotedEventType, nt as RecoveryCompletedPayload, o as AssistantPartialCommittedEvent, on as UserMessagePromotedEvent, or as EphemeralEventEnvelope, ot as RunCompletedPayload, p as BaseStateFailedEvent, pn as baseStateCreatedEventType, pr as NonNegativeInt, pt as RunStartedPayload, q as InferenceFailedPayload, qn as toolCallFailedEventType, qt as TurnEvent, r as AssistantMessageContent, rn as UserMessageCommittedEvent, rr as userMessageSubmittedEventType, rt as RecoveryContinuation, s as AssistantPartialCommittedPayload, sn as UserMessagePromotedPayload, sr as EventDurability, st as RunEvent, t as AssistantMessageCommittedEvent, tn as UserMessageCancelledEvent, tr as userMessageCommittedEventType, tt as RecoveryCompletedEvent, u as BaseStateCreatedEvent, un as assistantMessageCommittedEventType, ur as EventType, ut as RunInterruptedEvent, v as CommandAdmittedPayload, vn as commandCompletedEventType, vr as ToolName, vt as StopControlEvent, w as CommandFailedEvent, wn as compactionStartedEventType, wt as SummaryCreatedPayload, x as CommandCompletedEvent, xn as compactionCompletedEventType, xr as effectDurableAgentNamespace, xt as StopTurnRequestedEvent, y as CommandCancelledEvent, yn as commandFailedEventType, yr as UnixEpochMillis, yt as StopTurnAppliedEvent, z as ContextRebasedEvent, zn as steeringMessageCancelledEventType, zt as ToolCallStartedEvent } from "../durable-DsV9PxZC.js";
|
|
4
4
|
import * as Schema from "effect/Schema";
|
|
5
5
|
//#region src/types/events/ephemeral.ts
|
|
6
6
|
/** Event type values for ephemeral model stream events. */
|
|
@@ -85,6 +85,6 @@ const RuntimeStatusEvent = Schema.Union([SubscriberStatusEvent, TraceStatusEvent
|
|
|
85
85
|
/** Built-in ephemeral event union for framework-owned live-only updates. */
|
|
86
86
|
const EDAEphemeralEvent = Schema.Union([ModelStreamEvent, RuntimeStatusEvent]);
|
|
87
87
|
//#endregion
|
|
88
|
-
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, 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 };
|
|
88
|
+
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, 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, 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, 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 };
|
|
89
89
|
|
|
90
90
|
//# sourceMappingURL=events.js.map
|