effect-durable-agent 0.1.0-alpha.29 → 0.1.0-alpha.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/{compaction-ajHZ5l7f.js → compaction-63iEDHHl.js} +2 -2
  2. package/dist/{compaction-ajHZ5l7f.js.map → compaction-63iEDHHl.js.map} +1 -1
  3. package/dist/{delivery-Bb7pkQ9o.js → delivery-2ZILvoRD.js} +2 -2
  4. package/dist/{delivery-Bb7pkQ9o.js.map → delivery-2ZILvoRD.js.map} +1 -1
  5. package/dist/{delivery-C0aN3Oza.d.ts → delivery-RjM1_NAE.d.ts} +4 -3
  6. package/dist/domain/command-queues.d.ts +1 -1
  7. package/dist/domain/message-transcript.d.ts +1 -1
  8. package/dist/domain/reduced-state-schema.d.ts +1 -1
  9. package/dist/domain/reduced-state-schema.js +2 -1
  10. package/dist/domain/reduced-state-schema.js.map +1 -1
  11. package/dist/domain/reduced-state.d.ts +1 -1
  12. package/dist/domain/reduced-state.js +13 -4
  13. package/dist/domain/reduced-state.js.map +1 -1
  14. package/dist/domain/run-scheduling.d.ts +1 -1
  15. package/dist/{durable-CKdCCqhw.d.ts → durable-Cqv5ZRFA.d.ts} +14 -2
  16. package/dist/{durable-CD__3ztN.js → durable-D13w1Qr3.js} +11 -3
  17. package/dist/{durable-CD__3ztN.js.map → durable-D13w1Qr3.js.map} +1 -1
  18. package/dist/{event-factory-VAci3NJb.js → event-factory-_vF1bIJ7.js} +2 -2
  19. package/dist/{event-factory-VAci3NJb.js.map → event-factory-_vF1bIJ7.js.map} +1 -1
  20. package/dist/{events-BWuvzVml.d.ts → events-Dg0o5wWs.d.ts} +2 -2
  21. package/dist/{in-memory-IgxnTbGb.js → in-memory-CeODnZhE.js} +3 -3
  22. package/dist/{in-memory-IgxnTbGb.js.map → in-memory-CeODnZhE.js.map} +1 -1
  23. package/dist/index.d.ts +3 -3
  24. package/dist/index.js +1 -1
  25. package/dist/{interpreter-BdRoYrfL.js → interpreter-DKGJ1sSx.js} +4 -4
  26. package/dist/{interpreter-BdRoYrfL.js.map → interpreter-DKGJ1sSx.js.map} +1 -1
  27. package/dist/{model-resolver-DUms5p6X.d.ts → model-resolver-D0vcDZsU.d.ts} +2 -2
  28. package/dist/{records-DWKEjuqb.js → records--54mZEBx.js} +2 -2
  29. package/dist/{records-DWKEjuqb.js.map → records--54mZEBx.js.map} +1 -1
  30. package/dist/{reduced-state-D50SR0qM.d.ts → reduced-state-DU2ECOUp.d.ts} +1600 -1561
  31. package/dist/{reduced-state-schema-jyZWJ0QS.d.ts → reduced-state-schema-B2t3cobf.d.ts} +3 -1
  32. package/dist/{reducer-registry-CPObI3cs.d.ts → reducer-registry-JLU1yptN.d.ts} +4 -4
  33. package/dist/{run-scheduling-wakeup-B19JTeyq.d.ts → run-scheduling-wakeup-D_bGdicf.d.ts} +2 -2
  34. package/dist/services/compaction.d.ts +1 -1
  35. package/dist/services/compaction.js +1 -1
  36. package/dist/services/model-call.d.ts +1 -1
  37. package/dist/services/model-resolver.d.ts +1 -1
  38. package/dist/services/prompt-projector.d.ts +1 -1
  39. package/dist/services/reducer-registry.d.ts +1 -1
  40. package/dist/services/run-scheduler.d.ts +1 -1
  41. package/dist/services/run-scheduling-wakeup.d.ts +1 -1
  42. package/dist/services/runtime-layer.d.ts +8 -8
  43. package/dist/services/runtime-layer.js +4 -4
  44. package/dist/services/runtime.d.ts +1 -1
  45. package/dist/services/runtime.js +2 -2
  46. package/dist/services/session-event-observer.d.ts +1 -1
  47. package/dist/services/session-query.d.ts +1 -1
  48. package/dist/services/session-query.js +2 -2
  49. package/dist/services/session-state.d.ts +1 -1
  50. package/dist/services/session-state.js +1 -1
  51. package/dist/services/session-store.d.ts +1 -1
  52. package/dist/services/session-store.js +5 -5
  53. package/dist/services/sink-checkpoint-store.d.ts +1 -1
  54. package/dist/services/sink-registry.d.ts +1 -1
  55. package/dist/services/sink-registry.js +1 -1
  56. package/dist/services/span-names.d.ts +1 -1
  57. package/dist/services/span-names.js +1 -0
  58. package/dist/services/span-names.js.map +1 -1
  59. package/dist/services/tool-registry.d.ts +2 -2
  60. package/dist/services/tool-registry.js +10 -1
  61. package/dist/services/tool-registry.js.map +1 -1
  62. package/dist/services/tracing.d.ts +1 -1
  63. package/dist/{session-event-observer-BdZltdrK.d.ts → session-event-observer-HvrRckbC.d.ts} +2 -2
  64. package/dist/{session-state-BW0l2aNk.js → session-state-BQYsuBqi.js} +154 -59
  65. package/dist/session-state-BQYsuBqi.js.map +1 -0
  66. package/dist/{session-store-CWYZ29CV.d.ts → session-store-CQxg9U82.d.ts} +3 -3
  67. package/dist/{sink-checkpoint-store-B8Ky5nfW.d.ts → sink-checkpoint-store-DWGifxp0.d.ts} +2 -2
  68. package/dist/{sink-registry-D0MetcNq.js → sink-registry-DskRcyOS.js} +2 -2
  69. package/dist/{sink-registry-D0MetcNq.js.map → sink-registry-DskRcyOS.js.map} +1 -1
  70. package/dist/{subscription-hkD4M3xp.js → subscription-DmO3BcdT.js} +2 -2
  71. package/dist/{subscription-hkD4M3xp.js.map → subscription-DmO3BcdT.js.map} +1 -1
  72. package/dist/{subscription-DelB8L87.d.ts → subscription-rC35dAWn.d.ts} +2 -2
  73. package/dist/testkit/layers.d.ts +11 -9
  74. package/dist/testkit/layers.js +5 -5
  75. package/dist/testkit/layers.js.map +1 -1
  76. package/dist/testkit/transcript.d.ts +2 -2
  77. package/dist/testkit/transcript.js +4 -4
  78. package/dist/{tool-registry-B_WE2ZwK.d.ts → tool-registry-BzlMhwzj.d.ts} +35 -6
  79. package/dist/transcript.d.ts +4 -4
  80. package/dist/transcript.js +5 -5
  81. package/dist/types/events/durable.d.ts +1 -1
  82. package/dist/types/events/durable.js +1 -1
  83. package/dist/types/events.d.ts +2 -2
  84. package/dist/types/events.js +1 -1
  85. package/dist/websocket/events.d.ts +1 -1
  86. package/dist/websocket/events.js +1 -1
  87. package/dist/websocket.d.ts +3 -3
  88. package/dist/websocket.js +3 -3
  89. package/dist/{window-read-BG8lxMVB.d.ts → window-read-CBZEJ84M.d.ts} +2 -2
  90. package/dist/{window-read-C8anZVdl.js → window-read-DPFAA1hM.js} +2 -2
  91. package/dist/{window-read-C8anZVdl.js.map → window-read-DPFAA1hM.js.map} +1 -1
  92. package/package.json +1 -1
  93. package/dist/session-state-BW0l2aNk.js.map +0 -1
@@ -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/ai/LanguageModel\";\nimport type * as Prompt from \"effect/ai/Prompt\";\nimport * as Response from \"effect/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 type { SessionEventObserver } from \"../services/session-event-observer\";\nimport { EDAPromptProjector } from \"../services/prompt-projector\";\nimport { EDAReducerRegistry, type EDAReducer } from \"../services/reducer-registry\";\nimport { EDASinkRegistry, type EDASink } from \"../services/sink-registry\";\nimport { SinkCheckpointStore } from \"../services/sink-checkpoint-store\";\nimport { RunScheduler } from \"../services/run-scheduler\";\nimport { RunSchedulingWakeup } from \"../services/run-scheduling-wakeup\";\nimport { SessionContext } from \"../services/session-context\";\nimport { EDASessionQuery } from \"../services/session-query\";\nimport { SessionState } from \"../services/session-state\";\nimport { ToolExecutor } from \"../services/tool-executor\";\nimport { EDAToolRegistry } from \"../services/tool-registry\";\nimport type { EDAModelToolkit, ToolParamsSchema } from \"../services/tool-registry\";\nimport { InferenceRunner } from \"../services/inference-runner\";\nimport { ModelResolver } from \"../services/model-resolver\";\nimport type { InferenceRunnerStreamPart } from \"../services/inference-runner\";\nimport { TurnRunner } from \"../services/turn-runner\";\n\n/** Default fixed test wall-clock; matches the historical CREATED_AT_MS test constant. */\nexport const testNowMs = UnixEpochMillis.make(1_715_000_000_000);\n\n/** A Clock whose current time never advances; sleep resolves immediately. */\nexport const makeFixedClock = (nowMs: number): Clock.Clock => ({\n currentTimeMillisUnsafe: () => nowMs,\n currentTimeMillis: Effect.sync(() => nowMs),\n currentTimeNanosUnsafe: () => BigInt(nowMs) * 1_000_000n,\n currentTimeNanos: Effect.sync(() => BigInt(nowMs) * 1_000_000n),\n monotonicTimeNanosUnsafe: () => BigInt(nowMs) * 1_000_000n,\n monotonicTimeNanos: 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/**\n * Fake provider stream input; arrays are consumed one streamText call at a time, and a function\n * chooses each call's stream from its prompt (for hosts serving many sessions at once).\n */\nexport type TestModelParts =\n | Stream.Stream<InferenceRunnerStreamPart, unknown>\n | ReadonlyArray<Stream.Stream<InferenceRunnerStreamPart, unknown>>\n | ((input: {\n readonly index: number;\n readonly prompt: Prompt.RawInput;\n }) => 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 (typeof config.parts === \"function\") {\n return config.parts({ index, prompt: input.prompt });\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.LanguageModel[\"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 unknown as LanguageModel.LanguageModel[\"generateText\"];\n return {\n [LanguageModel.TypeId]: LanguageModel.TypeId,\n generateText,\n generateObject: unused as LanguageModel.LanguageModel[\"generateObject\"],\n streamText,\n };\n }),\n );\n};\n\nconst inputToolkit = (input: {\n readonly prompt: Prompt.RawInput;\n readonly toolkit?: unknown;\n}): { readonly tools: Record<string, unknown> } | undefined => {\n const toolkit = input.toolkit;\n return typeof toolkit === \"object\" && toolkit !== null && \"tools\" in toolkit\n ? (toolkit as { readonly tools: Record<string, unknown> })\n : undefined;\n};\n\nconst isTestLanguageModelOptions = (\n options: TestModelParts | TestLanguageModelOptions,\n): options is TestLanguageModelOptions =>\n typeof options === \"object\" &&\n options !== null &&\n \"parts\" in options &&\n !Stream.isStream(options);\n\n/** Single-session in-memory layer graph options for EDA service tests. */\nexport interface EdaTestLayerOptions {\n readonly runSchedulerLayer?: Layer.Layer<RunScheduler>;\n readonly runSchedulingWakeupLayer?: Layer.Layer<RunSchedulingWakeup>;\n readonly sessionId: SessionId;\n /** Explicit ID sequence (Deterministic); omit for counter-based Sequential IDs. */\n readonly ids?: ReadonlyArray<string>;\n /** Real/alternate provider layer; when absent, the fake stream provider is used. */\n readonly modelLayer?: Layer.Layer<LanguageModel.LanguageModel>;\n /** Replaces the external model-selection boundary when testing execution policy. */\n readonly modelResolverLayer?: Layer.Layer<ModelResolver>;\n /** Fake provider stream parts; defaults to an empty stream. Ignored when `modelLayer` is provided. */\n readonly parts?: TestModelParts;\n /** Optional fake generateText output for compaction/summarization tests. */\n readonly generateText?: string | ((input: { readonly prompt: Prompt.RawInput }) => string);\n /** Test hook for inspecting each fake generateText call. */\n readonly onGenerateText?: (input: { readonly prompt: Prompt.RawInput }) => void;\n /** Test hook for inspecting each fake streamText call. */\n readonly onStreamText?: (input: {\n readonly index: number;\n readonly prompt: Prompt.RawInput;\n readonly toolNames: ReadonlyArray<string>;\n }) => void;\n /** Handler-backed Effect Toolkit; overrides `toolSchemas` when present. */\n readonly toolkit?: EDAModelToolkit;\n /** Test/convenience schema-only tools; execution fails unless `toolkit` is provided. */\n readonly toolSchemas?: ReadonlyMap<string, ToolParamsSchema>;\n /** Durable prefix used when constructing a fresh in-memory runtime for recovery tests. */\n readonly seedEvents?: ReadonlyArray<DurableEventEnvelope>;\n /** Fixed wall-clock for event timestamps; defaults to `testNowMs`. */\n readonly nowMs?: number;\n /** Use the ambient live Clock instead of pinning test time. Intended for offline trace latency runs. */\n readonly clock?: \"fixed\" | \"live\";\n /** Wrap the in-memory store shape, e.g. to inject one-shot failures. Test-only. */\n readonly wrapStore?: (inner: EDASessionStoreShape) => EDASessionStoreShape;\n /** Override host keepAlive tracking. Test-only. */\n readonly keepAliveLayer?: Layer.Layer<EDAKeepAlive>;\n /** Override compaction policy; defaults to disabled. */\n readonly compactionPolicyLayer?: Layer.Layer<CompactionPolicy>;\n /** Override compaction executor; defaults to disabled. */\n readonly compactionExecutorLayer?: Layer.Layer<CompactionExecutor>;\n /** App-specific durable metadata reducers. */\n readonly reducers?: ReadonlyArray<EDAReducer>;\n /** Override state-to-LLM context projection. */\n readonly promptProjectorLayer?: Layer.Layer<EDAPromptProjector>;\n /** App-provided EDA sinks. */\n readonly sinks?: ReadonlyArray<EDASink>;\n /** Host publication observer, such as a WebSocket connection manager. */\n readonly sessionEventObserverLayer?: Layer.Layer<SessionEventObserver>;\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 =\n options.sessionEventObserverLayer === undefined\n ? LiveEventBus.Noop\n : LiveEventBus.Live.pipe(Layer.provide(options.sessionEventObserverLayer));\n const KeepAlive = options.keepAliveLayer ?? EDAKeepAlive.Noop;\n const SinkCheckpoints = SinkCheckpointStore.InMemory;\n const Ids =\n options.ids === undefined ? IdGenerator.Sequential : IdGenerator.Deterministic(options.ids);\n const Session = SessionContext.Live(options.sessionId);\n const TestClock = options.clock === \"live\" ? Layer.empty : FixedClock(options.nowMs ?? testNowMs);\n const Factory = EventFactory.Live.pipe(Layer.provideMerge(Layer.mergeAll(Session, Ids)));\n const ReducerRegistry = EDAReducerRegistry.Live(options.reducers ?? []);\n const PromptProjector = options.promptProjectorLayer ?? EDAPromptProjector.Default;\n const Model =\n options.modelLayer ??\n makeLanguageModelLayer({\n generateText: options.generateText,\n onGenerateText: options.onGenerateText,\n onStreamText: options.onStreamText,\n parts: options.parts ?? Stream.empty,\n });\n const CompactionPolicyLayer = options.compactionPolicyLayer ?? CompactionPolicy.Disabled;\n const Models = options.modelResolverLayer ?? ModelResolver.Fixed.pipe(Layer.provideMerge(Model));\n const CompactionExecutorLayer = options.compactionExecutorLayer ?? CompactionExecutor.Disabled;\n const Registry =\n options.toolkit !== undefined\n ? EDAToolRegistry.FromToolkit(options.toolkit)\n : options.toolSchemas === undefined\n ? EDAToolRegistry.Empty\n : EDAToolRegistry.FromSchemas(options.toolSchemas);\n const Compaction = CompactionRunner.Live.pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Store,\n Factory,\n Ids,\n KeepAlive,\n Models,\n Session,\n PromptProjector,\n Registry,\n CompactionPolicyLayer,\n CompactionExecutorLayer,\n ),\n ),\n );\n const SinkRegistry = EDASinkRegistry.Live(options.sinks ?? []).pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Session,\n Store,\n Bus,\n SinkCheckpoints,\n Factory,\n Ids,\n ReducerRegistry,\n KeepAlive,\n ),\n ),\n );\n const State = SessionState.Live.pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Store,\n Bus,\n Session,\n ReducerRegistry,\n SinkRegistry,\n KeepAlive,\n Compaction,\n PromptProjector,\n options.runSchedulerLayer ?? RunScheduler.Immediate,\n options.runSchedulingWakeupLayer ?? RunSchedulingWakeup.Unsupported,\n ),\n ),\n );\n const InferenceRunnerLayer = InferenceRunner.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(Factory, Models, Registry, Ids)),\n );\n const ToolExec = ToolExecutor.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(Factory, Registry, Ids, Session, Store)),\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/ai/LanguageModel\";\nimport type * as Prompt from \"effect/ai/Prompt\";\nimport * as Response from \"effect/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 type { SessionEventObserver } from \"../services/session-event-observer\";\nimport { EDAPromptProjector } from \"../services/prompt-projector\";\nimport { EDAReducerRegistry, type EDAReducer } from \"../services/reducer-registry\";\nimport { EDASinkRegistry, type EDASink } from \"../services/sink-registry\";\nimport { SinkCheckpointStore } from \"../services/sink-checkpoint-store\";\nimport { RunScheduler } from \"../services/run-scheduler\";\nimport { RunSchedulingWakeup } from \"../services/run-scheduling-wakeup\";\nimport { SessionContext } from \"../services/session-context\";\nimport { EDASessionQuery } from \"../services/session-query\";\nimport { SessionState } from \"../services/session-state\";\nimport { ToolExecutor } from \"../services/tool-executor\";\nimport { EDAToolRegistry } from \"../services/tool-registry\";\nimport type {\n EDAModelToolkit,\n EDAToolRegistryShape,\n ToolParamsSchema,\n} from \"../services/tool-registry\";\nimport { InferenceRunner } from \"../services/inference-runner\";\nimport { ModelResolver } from \"../services/model-resolver\";\nimport type { InferenceRunnerStreamPart } from \"../services/inference-runner\";\nimport { TurnRunner } from \"../services/turn-runner\";\n\n/** Default fixed test wall-clock; matches the historical CREATED_AT_MS test constant. */\nexport const testNowMs = UnixEpochMillis.make(1_715_000_000_000);\n\n/** A Clock whose current time never advances; sleep resolves immediately. */\nexport const makeFixedClock = (nowMs: number): Clock.Clock => ({\n currentTimeMillisUnsafe: () => nowMs,\n currentTimeMillis: Effect.sync(() => nowMs),\n currentTimeNanosUnsafe: () => BigInt(nowMs) * 1_000_000n,\n currentTimeNanos: Effect.sync(() => BigInt(nowMs) * 1_000_000n),\n monotonicTimeNanosUnsafe: () => BigInt(nowMs) * 1_000_000n,\n monotonicTimeNanos: 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/**\n * Fake provider stream input; arrays are consumed one streamText call at a time, and a function\n * chooses each call's stream from its prompt (for hosts serving many sessions at once).\n */\nexport type TestModelParts =\n | Stream.Stream<InferenceRunnerStreamPart, unknown>\n | ReadonlyArray<Stream.Stream<InferenceRunnerStreamPart, unknown>>\n | ((input: {\n readonly index: number;\n readonly prompt: Prompt.RawInput;\n }) => 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 (typeof config.parts === \"function\") {\n return config.parts({ index, prompt: input.prompt });\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.LanguageModel[\"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 unknown as LanguageModel.LanguageModel[\"generateText\"];\n return {\n [LanguageModel.TypeId]: LanguageModel.TypeId,\n generateText,\n generateObject: unused as LanguageModel.LanguageModel[\"generateObject\"],\n streamText,\n };\n }),\n );\n};\n\nconst inputToolkit = (input: {\n readonly prompt: Prompt.RawInput;\n readonly toolkit?: unknown;\n}): { readonly tools: Record<string, unknown> } | undefined => {\n const toolkit = input.toolkit;\n return typeof toolkit === \"object\" && toolkit !== null && \"tools\" in toolkit\n ? (toolkit as { readonly tools: Record<string, unknown> })\n : undefined;\n};\n\nconst isTestLanguageModelOptions = (\n options: TestModelParts | TestLanguageModelOptions,\n): options is TestLanguageModelOptions =>\n typeof options === \"object\" &&\n options !== null &&\n \"parts\" in options &&\n !Stream.isStream(options);\n\n/** Single-session in-memory layer graph options for EDA service tests. */\nexport interface EdaTestLayerOptions {\n readonly runSchedulerLayer?: Layer.Layer<RunScheduler>;\n readonly runSchedulingWakeupLayer?: Layer.Layer<RunSchedulingWakeup>;\n readonly sessionId: SessionId;\n /** Explicit ID sequence (Deterministic); omit for counter-based Sequential IDs. */\n readonly ids?: ReadonlyArray<string>;\n /** Real/alternate provider layer; when absent, the fake stream provider is used. */\n readonly modelLayer?: Layer.Layer<LanguageModel.LanguageModel>;\n /** Replaces the external model-selection boundary when testing execution policy. */\n readonly modelResolverLayer?: Layer.Layer<ModelResolver>;\n /** Fake provider stream parts; defaults to an empty stream. Ignored when `modelLayer` is provided. */\n readonly parts?: TestModelParts;\n /** Optional fake generateText output for compaction/summarization tests. */\n readonly generateText?: string | ((input: { readonly prompt: Prompt.RawInput }) => string);\n /** Test hook for inspecting each fake generateText call. */\n readonly onGenerateText?: (input: { readonly prompt: Prompt.RawInput }) => void;\n /** Test hook for inspecting each fake streamText call. */\n readonly onStreamText?: (input: {\n readonly index: number;\n readonly prompt: Prompt.RawInput;\n readonly toolNames: ReadonlyArray<string>;\n }) => void;\n /** Handler-backed Effect Toolkit; overrides `toolSchemas` when present. */\n readonly toolkit?: EDAModelToolkit;\n /** Full registry shape (handlers receive the EDA execution context); overrides `toolkit`. */\n readonly toolRegistry?: EDAToolRegistryShape;\n /** Test/convenience schema-only tools; execution fails unless `toolkit` is provided. */\n readonly toolSchemas?: ReadonlyMap<string, ToolParamsSchema>;\n /** Durable prefix used when constructing a fresh in-memory runtime for recovery tests. */\n readonly seedEvents?: ReadonlyArray<DurableEventEnvelope>;\n /** Fixed wall-clock for event timestamps; defaults to `testNowMs`. */\n readonly nowMs?: number;\n /** Use the ambient live Clock instead of pinning test time. Intended for offline trace latency runs. */\n readonly clock?: \"fixed\" | \"live\";\n /** Wrap the in-memory store shape, e.g. to inject one-shot failures. Test-only. */\n readonly wrapStore?: (inner: EDASessionStoreShape) => EDASessionStoreShape;\n /** Override host keepAlive tracking. Test-only. */\n readonly keepAliveLayer?: Layer.Layer<EDAKeepAlive>;\n /** Override compaction policy; defaults to disabled. */\n readonly compactionPolicyLayer?: Layer.Layer<CompactionPolicy>;\n /** Override compaction executor; defaults to disabled. */\n readonly compactionExecutorLayer?: Layer.Layer<CompactionExecutor>;\n /** App-specific durable metadata reducers. */\n readonly reducers?: ReadonlyArray<EDAReducer>;\n /** Override state-to-LLM context projection. */\n readonly promptProjectorLayer?: Layer.Layer<EDAPromptProjector>;\n /** App-provided EDA sinks. */\n readonly sinks?: ReadonlyArray<EDASink>;\n /** Host publication observer, such as a WebSocket connection manager. */\n readonly sessionEventObserverLayer?: Layer.Layer<SessionEventObserver>;\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 =\n options.sessionEventObserverLayer === undefined\n ? LiveEventBus.Noop\n : LiveEventBus.Live.pipe(Layer.provide(options.sessionEventObserverLayer));\n const KeepAlive = options.keepAliveLayer ?? EDAKeepAlive.Noop;\n const SinkCheckpoints = SinkCheckpointStore.InMemory;\n const Ids =\n options.ids === undefined ? IdGenerator.Sequential : IdGenerator.Deterministic(options.ids);\n const Session = SessionContext.Live(options.sessionId);\n const TestClock = options.clock === \"live\" ? Layer.empty : FixedClock(options.nowMs ?? testNowMs);\n const Factory = EventFactory.Live.pipe(Layer.provideMerge(Layer.mergeAll(Session, Ids)));\n const ReducerRegistry = EDAReducerRegistry.Live(options.reducers ?? []);\n const PromptProjector = options.promptProjectorLayer ?? EDAPromptProjector.Default;\n const Model =\n options.modelLayer ??\n makeLanguageModelLayer({\n generateText: options.generateText,\n onGenerateText: options.onGenerateText,\n onStreamText: options.onStreamText,\n parts: options.parts ?? Stream.empty,\n });\n const CompactionPolicyLayer = options.compactionPolicyLayer ?? CompactionPolicy.Disabled;\n const Models = options.modelResolverLayer ?? ModelResolver.Fixed.pipe(Layer.provideMerge(Model));\n const CompactionExecutorLayer = options.compactionExecutorLayer ?? CompactionExecutor.Disabled;\n const Registry =\n options.toolRegistry !== undefined\n ? EDAToolRegistry.FromShape(options.toolRegistry)\n : options.toolkit !== undefined\n ? EDAToolRegistry.FromToolkit(options.toolkit)\n : options.toolSchemas === undefined\n ? EDAToolRegistry.Empty\n : EDAToolRegistry.FromSchemas(options.toolSchemas);\n const Compaction = CompactionRunner.Live.pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Store,\n Factory,\n Ids,\n KeepAlive,\n Models,\n Session,\n PromptProjector,\n Registry,\n CompactionPolicyLayer,\n CompactionExecutorLayer,\n ),\n ),\n );\n const SinkRegistry = EDASinkRegistry.Live(options.sinks ?? []).pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Session,\n Store,\n Bus,\n SinkCheckpoints,\n Factory,\n Ids,\n ReducerRegistry,\n KeepAlive,\n ),\n ),\n );\n const State = SessionState.Live.pipe(\n Layer.provideMerge(\n Layer.mergeAll(\n Store,\n Bus,\n Session,\n ReducerRegistry,\n SinkRegistry,\n KeepAlive,\n Compaction,\n PromptProjector,\n options.runSchedulerLayer ?? RunScheduler.Immediate,\n options.runSchedulingWakeupLayer ?? RunSchedulingWakeup.Unsupported,\n ),\n ),\n );\n const InferenceRunnerLayer = InferenceRunner.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(Factory, Models, Registry, Ids)),\n );\n const ToolExec = ToolExecutor.Live.pipe(\n Layer.provideMerge(Layer.mergeAll(Factory, Registry, Ids, Session, Store)),\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
1
  import { t as DurableEventEnvelope } from "../envelope-Che6KatU.js";
2
- import { A as TranscriptDefinition, C as TranscriptVersionMeta, L as TranscriptMappings, t as CommittedDurableEvent, vt as TranscriptRecord, xt as TranscriptRecordId } from "../session-store-CWYZ29CV.js";
3
- import "../window-read-BG8lxMVB.js";
2
+ import { A as TranscriptDefinition, C as TranscriptVersionMeta, L as TranscriptMappings, t as CommittedDurableEvent, vt as TranscriptRecord, xt as TranscriptRecordId } from "../session-store-CQxg9U82.js";
3
+ import "../window-read-CBZEJ84M.js";
4
4
  //#region src/transcript/transcript-scenarios.d.ts
5
5
  /**
6
6
  * The fixed scenario corpus: one named log per interpretation rule the transcript must get
@@ -1,10 +1,10 @@
1
1
  import { SequenceNumber, SessionId, durablePosition } from "../types/core.js";
2
2
  import { makeEDATraceContext } from "../types/tracing.js";
3
3
  import { v as effectDurableAgentNamespace } from "../envelope-BCzKUq_z.js";
4
- import { Wn as decodeDurableEventSync } from "../durable-CD__3ztN.js";
5
- import { m as makeTranscriptDefinition, p as emptyTranscriptMappings } from "../interpreter-BdRoYrfL.js";
6
- import { A as TranscriptRecordFromEnvelope } from "../records-DWKEjuqb.js";
7
- import { n as emptyTranscriptVersion, t as advanceTranscriptVersion } from "../in-memory-IgxnTbGb.js";
4
+ import { Wn as decodeDurableEventSync } from "../durable-D13w1Qr3.js";
5
+ import { m as makeTranscriptDefinition, p as emptyTranscriptMappings } from "../interpreter-DKGJ1sSx.js";
6
+ import { A as TranscriptRecordFromEnvelope } from "../records--54mZEBx.js";
7
+ import { n as emptyTranscriptVersion, t as advanceTranscriptVersion } from "../in-memory-CeODnZhE.js";
8
8
  import * as Effect from "effect/Effect";
9
9
  import * as Schema from "effect/Schema";
10
10
  import * as Prompt from "effect/ai/Prompt";
@@ -1,7 +1,7 @@
1
- import { b as TurnId, c as EventId, g as SessionId, p as RunId, y as ToolCallId } from "./core-BcimKMIv.js";
1
+ import { b as TurnId, c as EventId, g as SessionId, h as SequenceNumber, p as RunId, y as ToolCallId } from "./core-BcimKMIv.js";
2
2
  import { g as ToolName, t as DurableEventEnvelope } from "./envelope-Che6KatU.js";
3
- import "./events-BWuvzVml.js";
4
- import { s as EDASessionStoreError, t as CommittedDurableEvent } from "./session-store-CWYZ29CV.js";
3
+ import "./events-Dg0o5wWs.js";
4
+ import { s as EDASessionStoreError, t as CommittedDurableEvent } from "./session-store-CQxg9U82.js";
5
5
  import * as Context from "effect/Context";
6
6
  import * as Effect from "effect/Effect";
7
7
  import * as Layer from "effect/Layer";
@@ -9,6 +9,23 @@ import * as Schema from "effect/Schema";
9
9
  import * as Tool from "effect/ai/Tool";
10
10
  import * as Toolkit from "effect/ai/Toolkit";
11
11
  //#region src/services/tool-registry.d.ts
12
+ /**
13
+ * What startup recovery does with a call to this tool that had started when the runtime died.
14
+ *
15
+ * - `fail` (default): record the call as failed; the model sees the interruption and decides.
16
+ * - `reinvoke`: run the handler again with the same tool-call id and params, passing
17
+ * {@link EDAToolExecutionContext.recovery}. Declare it only when a second invocation of the
18
+ * same call is safe: it must attach to, or return the outcome of, the original execution
19
+ * rather than repeat its side effects (for example an idempotency key derived from the
20
+ * tool-call id). Recovery re-invokes at most {@link maxToolCallAttempts} times in total.
21
+ */
22
+ type ToolRecoveryPolicy = "fail" | "reinvoke";
23
+ /** Effect AI tool annotation declaring a tool's {@link ToolRecoveryPolicy}. */
24
+ declare const ToolRecovery: Context.Reference<ToolRecoveryPolicy>;
25
+ /** Total execution attempts, including the first, that recovery allows one tool call. */
26
+ declare const maxToolCallAttempts = 3;
27
+ /** The recovery policy a toolkit declares for `toolName`; `fail` for unknown tools. */
28
+ declare const toolRecoveryPolicy: (toolkit: EDAModelToolkit | undefined, toolName: string) => ToolRecoveryPolicy;
12
29
  /** Runtime parameter schema associated with a provider-visible tool name. */
13
30
  type ToolParamsSchema = Schema.Top;
14
31
  /** Provider-visible Effect AI toolkit with handlers available for local execution. */
@@ -20,9 +37,10 @@ interface EDAToolExecutionContext {
20
37
  /** Run and turn that durably created this tool call. */
21
38
  readonly runId: RunId;
22
39
  readonly turnId: TurnId;
23
- /** Read typed facts from this session journal. */
40
+ /** Read typed facts from this session journal, optionally only those after `afterSeq`. */
24
41
  readonly queryEvents: <E extends DurableEventEnvelope>(schema: Schema.Codec<E, unknown, never, never>, options?: {
25
42
  readonly limit?: number;
43
+ readonly afterSeq?: SequenceNumber;
26
44
  }) => Effect.Effect<ReadonlyArray<CommittedDurableEvent<E>>, EDASessionStoreError>;
27
45
  /** Session identity fixed for this runtime instance. */
28
46
  readonly sessionId: SessionId;
@@ -30,6 +48,17 @@ interface EDAToolExecutionContext {
30
48
  readonly makeEventId: () => Effect.Effect<EventId>;
31
49
  /** Emit an app durable event through `SessionState`, never directly through the store. */
32
50
  readonly emitDurable: (event: DurableEventEnvelope) => Effect.Effect<CommittedDurableEvent, EDASessionStoreError>;
51
+ /**
52
+ * Present when startup recovery re-invokes a call that had started before the runtime died
53
+ * (its tool declares `ToolRecovery: "reinvoke"`). Facts the first attempt committed are in the
54
+ * journal after `firstStartedSeq`.
55
+ */
56
+ readonly recovery?: {
57
+ /** This attempt, 2 or more. */
58
+ readonly attempt: number;
59
+ readonly firstStartedAtMs: number;
60
+ readonly firstStartedSeq: SequenceNumber;
61
+ };
33
62
  }
34
63
  /** Registry contract used by model streaming and post-finish tool execution. */
35
64
  interface EDAToolRegistryShape {
@@ -54,5 +83,5 @@ declare class EDAToolRegistry extends EDAToolRegistry_base {
54
83
  static readonly FromSchemas: (schemas: ReadonlyMap<string, ToolParamsSchema>) => Layer.Layer<EDAToolRegistry, never, never>;
55
84
  }
56
85
  //#endregion
57
- export { ToolParamsSchema as a, EDAToolRegistryShape as i, EDAToolExecutionContext as n, makeEDAToolkit as o, EDAToolRegistry as r, EDAModelToolkit as t };
58
- //# sourceMappingURL=tool-registry-B_WE2ZwK.d.ts.map
86
+ export { ToolParamsSchema as a, makeEDAToolkit as c, EDAToolRegistryShape as i, maxToolCallAttempts as l, EDAToolExecutionContext as n, ToolRecovery as o, EDAToolRegistry as r, ToolRecoveryPolicy as s, EDAModelToolkit as t, toolRecoveryPolicy as u };
87
+ //# sourceMappingURL=tool-registry-BzlMhwzj.d.ts.map
@@ -1,9 +1,9 @@
1
1
  import { b as TurnId, h as SequenceNumber, l as InferenceId } from "./core-BcimKMIv.js";
2
2
  import { f as PositionedEvent } from "./envelope-Che6KatU.js";
3
- import "./events-BWuvzVml.js";
4
- import { $ as TranscriptAssistantPart, A as TranscriptDefinition, At as TranscriptToolRecord, B as makeTranscriptDefinition, Bt as transcriptDecorationBufferLimit, C as TranscriptVersionMeta, Ct as TranscriptRecordView, D as TranscriptWindowSelector, Dt as TranscriptRunOutcome, E as TranscriptWindowLimits, Et as TranscriptRunMember, F as TranscriptMappingOperation, Ft as TranscriptVersion, G as DecorationBufferRecordId, H as AssistantRecordId, Ht as transcriptRecordId, I as TranscriptMappingTarget, It as UserRecordId, J as PendingTranscriptUserRecord, K as ImportAssistantRecordId, L as TranscriptMappings, Lt as isPendingTranscriptUserRecord, M as TranscriptListEntryKey, Mt as TranscriptUnknownRecord, N as TranscriptMappedEvent, Nt as TranscriptUserRecord, O as defaultTranscriptWindowLimits, Ot as TranscriptSessionContextRecord, P as TranscriptMapping, Pt as TranscriptUserState, Q as TranscriptAssistantLifecycle, R as TranscriptUserFallback, Rt as isTopLevelTranscriptRecord, S as TranscriptReadiness, St as TranscriptRecordKind, T as TranscriptWindow, Tt as TranscriptRunGroupRecord, U as CompactionRecordId, Ut as transcriptStoredInlineBodyLimit, V as transcriptMappingBounds, Vt as transcriptRecordEnvelopeFormat, W as ConsumedTranscriptUserRecord, X as SessionContextRecordId, Y as RunGroupRecordId, Z as ToolRecordId, _ as EDATranscriptStoreShape, _t as TranscriptPosition, at as TranscriptCompactionRecord, b as TranscriptActiveContent, bt as TranscriptRecordFromEnvelope, ct as TranscriptDecorationBufferRecord, dt as TranscriptDecorationKey, et as TranscriptAssistantRecord, ft as TranscriptDecorations, g as EDATranscriptStore, gt as TranscriptOrderKey, ht as TranscriptOrder, it as TranscriptClassification, j as TranscriptDefinitionError, jt as TranscriptTopLevelRecord, k as transcriptCursorOf, kt as TranscriptToolLifecycle, lt as TranscriptDecorationEntryId, mt as TranscriptLogIncarnation, nt as TranscriptBodySource, ot as TranscriptCursor, pt as TranscriptFieldPath, q as InferenceAssistantRecordId, rt as TranscriptBufferedDecoration, st as TranscriptDecoration, tt as TranscriptBody, ut as TranscriptDecorationEntryKey, v as TranscriptCursorMismatch, vt as TranscriptRecord, w as TranscriptVersionStatus, wt as TranscriptRecordViewFromEnvelope, x as TranscriptActivePart, xt as TranscriptRecordId, y as TranscriptMaintenanceConfig, yt as TranscriptRecordEnvelope, z as emptyTranscriptMappings, zt as runGroupStatus } from "./session-store-CWYZ29CV.js";
5
- import { a as transcriptReadiness, c as TranscriptAliasNamespace, d as TranscriptProjectionError, i as readTranscriptWindowFrom, l as TranscriptChangePlan, n as buildingTranscriptWindow, o as PlanTranscriptBatch, r as inactiveTranscriptWindow, s as TranscriptAlias, t as TranscriptWindowSource, u as TranscriptLookup } from "./window-read-BG8lxMVB.js";
6
- import { a as TranscriptSubscriptionRead, c as defaultTranscriptSubscriptionPolicy, d as transcriptCoverageOf, f as transcriptSubscriptionBaseOf, i as TranscriptSubscriptionPolicy, l as planTranscriptUpdate, n as TranscriptRequestId, o as TranscriptSubscriptionRequest, r as TranscriptSubscriptionBase, s as TranscriptUpdate, t as TranscriptCoverage, u as readTranscriptSubscription } from "./subscription-DelB8L87.js";
3
+ import "./events-Dg0o5wWs.js";
4
+ import { $ as TranscriptAssistantPart, A as TranscriptDefinition, At as TranscriptToolRecord, B as makeTranscriptDefinition, Bt as transcriptDecorationBufferLimit, C as TranscriptVersionMeta, Ct as TranscriptRecordView, D as TranscriptWindowSelector, Dt as TranscriptRunOutcome, E as TranscriptWindowLimits, Et as TranscriptRunMember, F as TranscriptMappingOperation, Ft as TranscriptVersion, G as DecorationBufferRecordId, H as AssistantRecordId, Ht as transcriptRecordId, I as TranscriptMappingTarget, It as UserRecordId, J as PendingTranscriptUserRecord, K as ImportAssistantRecordId, L as TranscriptMappings, Lt as isPendingTranscriptUserRecord, M as TranscriptListEntryKey, Mt as TranscriptUnknownRecord, N as TranscriptMappedEvent, Nt as TranscriptUserRecord, O as defaultTranscriptWindowLimits, Ot as TranscriptSessionContextRecord, P as TranscriptMapping, Pt as TranscriptUserState, Q as TranscriptAssistantLifecycle, R as TranscriptUserFallback, Rt as isTopLevelTranscriptRecord, S as TranscriptReadiness, St as TranscriptRecordKind, T as TranscriptWindow, Tt as TranscriptRunGroupRecord, U as CompactionRecordId, Ut as transcriptStoredInlineBodyLimit, V as transcriptMappingBounds, Vt as transcriptRecordEnvelopeFormat, W as ConsumedTranscriptUserRecord, X as SessionContextRecordId, Y as RunGroupRecordId, Z as ToolRecordId, _ as EDATranscriptStoreShape, _t as TranscriptPosition, at as TranscriptCompactionRecord, b as TranscriptActiveContent, bt as TranscriptRecordFromEnvelope, ct as TranscriptDecorationBufferRecord, dt as TranscriptDecorationKey, et as TranscriptAssistantRecord, ft as TranscriptDecorations, g as EDATranscriptStore, gt as TranscriptOrderKey, ht as TranscriptOrder, it as TranscriptClassification, j as TranscriptDefinitionError, jt as TranscriptTopLevelRecord, k as transcriptCursorOf, kt as TranscriptToolLifecycle, lt as TranscriptDecorationEntryId, mt as TranscriptLogIncarnation, nt as TranscriptBodySource, ot as TranscriptCursor, pt as TranscriptFieldPath, q as InferenceAssistantRecordId, rt as TranscriptBufferedDecoration, st as TranscriptDecoration, tt as TranscriptBody, ut as TranscriptDecorationEntryKey, v as TranscriptCursorMismatch, vt as TranscriptRecord, w as TranscriptVersionStatus, wt as TranscriptRecordViewFromEnvelope, x as TranscriptActivePart, xt as TranscriptRecordId, y as TranscriptMaintenanceConfig, yt as TranscriptRecordEnvelope, z as emptyTranscriptMappings, zt as runGroupStatus } from "./session-store-CQxg9U82.js";
5
+ import { a as transcriptReadiness, c as TranscriptAliasNamespace, d as TranscriptProjectionError, i as readTranscriptWindowFrom, l as TranscriptChangePlan, n as buildingTranscriptWindow, o as PlanTranscriptBatch, r as inactiveTranscriptWindow, s as TranscriptAlias, t as TranscriptWindowSource, u as TranscriptLookup } from "./window-read-CBZEJ84M.js";
6
+ import { a as TranscriptSubscriptionRead, c as defaultTranscriptSubscriptionPolicy, d as transcriptCoverageOf, f as transcriptSubscriptionBaseOf, i as TranscriptSubscriptionPolicy, l as planTranscriptUpdate, n as TranscriptRequestId, o as TranscriptSubscriptionRequest, r as TranscriptSubscriptionBase, s as TranscriptUpdate, t as TranscriptCoverage, u as readTranscriptSubscription } from "./subscription-rC35dAWn.js";
7
7
  import * as Schema from "effect/Schema";
8
8
  //#region src/transcript/interpreter.d.ts
9
9
  /**
@@ -1,10 +1,10 @@
1
1
  import { SequenceNumber } from "./types/core.js";
2
- import { G as InferenceCompletedEvent, J as InferenceFailedEvent, X as InferenceStartedEvent, cn as TurnCompletedEvent, dn as TurnFailedEvent, hn as TurnStoppedEvent } from "./durable-CD__3ztN.js";
2
+ import { G as InferenceCompletedEvent, J as InferenceFailedEvent, X as InferenceStartedEvent, cn as TurnCompletedEvent, dn as TurnFailedEvent, hn as TurnStoppedEvent } from "./durable-D13w1Qr3.js";
3
3
  import { ReasoningDeltaEvent, TextDeltaEvent, ToolParamsDeltaEvent, ToolParamsStartEvent } from "./types/events.js";
4
- import { _ as computeTranscriptVersion, a as TranscriptDefinitionError, c as TranscriptMapping, d as TranscriptMappings, f as TranscriptUserFallback, g as canonicalJson, h as transcriptMappingBounds, i as TranscriptDefinition, l as TranscriptMappingOperation, m as makeTranscriptDefinition, n as TranscriptAliasNamespace, o as TranscriptListEntryKey, p as emptyTranscriptMappings, r as TranscriptProjectionError, s as TranscriptMappedEvent, t as planTranscriptBatch, u as TranscriptMappingTarget, v as transcriptSemanticRevision, y as resolveTranscriptBody } from "./interpreter-BdRoYrfL.js";
5
- import { A as TranscriptRecordFromEnvelope, B as TranscriptUserRecord, C as TranscriptDecorations, D as TranscriptPosition, E as TranscriptOrder, F as TranscriptRunOutcome, G as isTopLevelTranscriptRecord, H as TranscriptVersion, I as TranscriptSessionContextRecord, J as transcriptRecordEnvelopeFormat, K as runGroupStatus, L as TranscriptToolLifecycle, M as TranscriptRecordViewFromEnvelope, N as TranscriptRunGroupRecord, O as TranscriptRecord, P as TranscriptRunMember, R as TranscriptToolRecord, S as TranscriptDecorationKey, T as TranscriptLogIncarnation, U as UserRecordId, V as TranscriptUserState, W as isPendingTranscriptUserRecord, X as transcriptStoredInlineBodyLimit, Y as transcriptRecordId, _ as TranscriptCursor, a as InferenceAssistantRecordId, b as TranscriptDecorationEntryId, c as ToolRecordId, d as TranscriptAssistantRecord, f as TranscriptBody, g as TranscriptCompactionRecord, h as TranscriptClassification, i as ImportAssistantRecordId, j as TranscriptRecordId, k as TranscriptRecordEnvelope, l as TranscriptAssistantLifecycle, m as TranscriptBufferedDecoration, n as CompactionRecordId, o as RunGroupRecordId, p as TranscriptBodySource, q as transcriptDecorationBufferLimit, r as DecorationBufferRecordId, s as SessionContextRecordId, t as AssistantRecordId, u as TranscriptAssistantPart, v as TranscriptDecoration, w as TranscriptFieldPath, x as TranscriptDecorationEntryKey, y as TranscriptDecorationBufferRecord, z as TranscriptUnknownRecord } from "./records-DWKEjuqb.js";
6
- import { a as EDATranscriptStore, i as transcriptReadiness, n as inactiveTranscriptWindow, o as TranscriptCursorMismatch, r as readTranscriptWindowFrom, t as buildingTranscriptWindow } from "./window-read-C8anZVdl.js";
7
- import { _ as TranscriptWindowSelector, a as defaultTranscriptSubscriptionPolicy, c as transcriptCoverageOf, d as TranscriptActivePart, f as TranscriptReadiness, g as TranscriptWindowLimits, h as TranscriptWindow, i as TranscriptUpdate, l as transcriptSubscriptionBaseOf, m as TranscriptVersionStatus, n as TranscriptRequestId, o as planTranscriptUpdate, p as TranscriptVersionMeta, r as TranscriptSubscriptionBase, s as readTranscriptSubscription, t as TranscriptCoverage, u as TranscriptActiveContent, v as defaultTranscriptWindowLimits, y as transcriptCursorOf } from "./subscription-hkD4M3xp.js";
4
+ import { _ as computeTranscriptVersion, a as TranscriptDefinitionError, c as TranscriptMapping, d as TranscriptMappings, f as TranscriptUserFallback, g as canonicalJson, h as transcriptMappingBounds, i as TranscriptDefinition, l as TranscriptMappingOperation, m as makeTranscriptDefinition, n as TranscriptAliasNamespace, o as TranscriptListEntryKey, p as emptyTranscriptMappings, r as TranscriptProjectionError, s as TranscriptMappedEvent, t as planTranscriptBatch, u as TranscriptMappingTarget, v as transcriptSemanticRevision, y as resolveTranscriptBody } from "./interpreter-DKGJ1sSx.js";
5
+ import { A as TranscriptRecordFromEnvelope, B as TranscriptUserRecord, C as TranscriptDecorations, D as TranscriptPosition, E as TranscriptOrder, F as TranscriptRunOutcome, G as isTopLevelTranscriptRecord, H as TranscriptVersion, I as TranscriptSessionContextRecord, J as transcriptRecordEnvelopeFormat, K as runGroupStatus, L as TranscriptToolLifecycle, M as TranscriptRecordViewFromEnvelope, N as TranscriptRunGroupRecord, O as TranscriptRecord, P as TranscriptRunMember, R as TranscriptToolRecord, S as TranscriptDecorationKey, T as TranscriptLogIncarnation, U as UserRecordId, V as TranscriptUserState, W as isPendingTranscriptUserRecord, X as transcriptStoredInlineBodyLimit, Y as transcriptRecordId, _ as TranscriptCursor, a as InferenceAssistantRecordId, b as TranscriptDecorationEntryId, c as ToolRecordId, d as TranscriptAssistantRecord, f as TranscriptBody, g as TranscriptCompactionRecord, h as TranscriptClassification, i as ImportAssistantRecordId, j as TranscriptRecordId, k as TranscriptRecordEnvelope, l as TranscriptAssistantLifecycle, m as TranscriptBufferedDecoration, n as CompactionRecordId, o as RunGroupRecordId, p as TranscriptBodySource, q as transcriptDecorationBufferLimit, r as DecorationBufferRecordId, s as SessionContextRecordId, t as AssistantRecordId, u as TranscriptAssistantPart, v as TranscriptDecoration, w as TranscriptFieldPath, x as TranscriptDecorationEntryKey, y as TranscriptDecorationBufferRecord, z as TranscriptUnknownRecord } from "./records--54mZEBx.js";
6
+ import { a as EDATranscriptStore, i as transcriptReadiness, n as inactiveTranscriptWindow, o as TranscriptCursorMismatch, r as readTranscriptWindowFrom, t as buildingTranscriptWindow } from "./window-read-DPFAA1hM.js";
7
+ import { _ as TranscriptWindowSelector, a as defaultTranscriptSubscriptionPolicy, c as transcriptCoverageOf, d as TranscriptActivePart, f as TranscriptReadiness, g as TranscriptWindowLimits, h as TranscriptWindow, i as TranscriptUpdate, l as transcriptSubscriptionBaseOf, m as TranscriptVersionStatus, n as TranscriptRequestId, o as planTranscriptUpdate, p as TranscriptVersionMeta, r as TranscriptSubscriptionBase, s as readTranscriptSubscription, t as TranscriptCoverage, u as TranscriptActiveContent, v as defaultTranscriptWindowLimits, y as transcriptCursorOf } from "./subscription-DmO3BcdT.js";
8
8
  import * as Schema from "effect/Schema";
9
9
  //#region src/transcript/active-content.ts
10
10
  /** The accumulator before anything is published in this isolate. */
@@ -1,2 +1,2 @@
1
- import { $ as LegacyAttemptEvent, $n as pendingMessagesPausedEventType, $t as ToolCallRejectedPayload, A as CompactionFailedEvent, An as baseStateCreatedEventType, At as SessionConfiguredEvent, B as ContextRebasedPayload, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, C as CommandEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Ct as RunSchedulingGrantedPayload, D as CommandStartedPayload, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, Dt as RunSchedulingRequestedPayload, E as CommandStartedEvent, En as UserMessageSubmittedPayload, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, F as CompactionStartedPayload, Fn as commandCompletedEventType, Ft as StopControlEvent, G as InferenceCompletedEvent, Gn as decodeUnknownEDADurableEvent, Gt as ToolCallCompletedPayload, H as DecodedDurableEvent, Hn as contextProjectedEventType, Ht as SystemMessageCommittedEvent, I as ContextAndCompactionEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Jt as ToolCallEvent, K as InferenceCompletedPayload, Kn as decodeUnknownEDADurableEventSync, Kt as ToolCallCreatedEvent, L as ContextProjectedEvent, Ln as commandStartedEventType, Lt as StopTurnAppliedPayload, M as CompactionRequestedEvent, Mn as baseStateRequestedEventType, Mt as SteeringMessageCancelledPayload, N as CompactionRequestedPayload, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, On as assistantMessageImportedEventType, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Pt as SteeringMessageQueuedPayload, Q as LegacyAssistantMessageCommittedEvent, Qn as messageQueuePausedEventType, Qt as ToolCallRejectedEvent, R as ContextProjectedPayload, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, S as CommandCompletedPayload, Sn as UserMessageDisposition, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, T as CommandFailedPayload, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Tt as RunSchedulingInvalidatedPayload, U as EDADurableEvent, Un as contextRebasedEventType, Ut as SystemMessageCommittedPayload, V as CurrentEDADurableEvent, Vn as compactionStartedEventType, Vt as SummaryCreatedPayload, W as EDADurableEventV1, Wn as decodeDurableEventSync, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Xt as ToolCallFailedPayload, Y as InferenceFailedPayload, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, Z as InferenceStartedPayload, Zn as interpretLegacyAttemptForReduction, Zt as ToolCallPromptPart, _ as CommandAdmittedEvent, _n as UserMessageCancellationReason, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, a as AssistantMessageImportedPayload, an as ToolPromptPart, ar as runSchedulingGrantedEventType, at as MessageQueuePausedPayload, b as CommandCancelledPayload, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, bt as RunSchedulingDeliveredPayload, c as AssistantPromptPart, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, d as BaseStateCreatedPayload, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, dt as RecoveryEvent, en as ToolCallRejectionFeedback, er as recoveryCompletedEventType, et as LegacyToolCallCreatedEvent, f as BaseStateEvent, fn as TurnFailedPayload, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, g as BaseStateRequestedPayload, gn as TurnStoppedPayload, gr as toolCallCompletedEventType, gt as RunFailedPayload, h as BaseStateRequestedEvent, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, i as AssistantMessageImportedEvent, in as ToolFailurePromptPart, ir as runSchedulingDeliveredEventType, it as MessageQueuePausedEvent, j as CompactionFailedPayload, jn as baseStateFailedEventType, jt as SteeringMessageCancelledEvent, k as CompactionCompletedPayload, kn as assistantPartialCommittedEventType, kt as RunStartedPayload, l as AssistantPromptParts, ln as TurnCompletedPayload, lr as sessionConfiguredEventType, lt as RecoveryCompletedPayload, m as BaseStateFailedPayload, mn as TurnStartedPayload, mr as summaryCreatedEventType, mt as RunEvent, n as AssistantMessageCommittedPayload, nn as ToolCallStartedEvent, nr as runFailedEventType, nt as LegacyTurnAttemptStartedEvent, o as AssistantPartialCommittedEvent, on as ToolRejectionPromptPart, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, p as BaseStateFailedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, pt as RunCompletedPayload, q as InferenceEvent, qn as durableEventEnvelope, qt as ToolCallCreatedPayload, r as AssistantMessageContent, rn as ToolCallStartedPayload, rr as runInterruptedEventType, rt as MessageEvent, s as AssistantPartialCommittedPayload, sn as ToolSuccessPromptPart, sr as runSchedulingRequestedEventType, st as PendingMessagesPausedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallRejectionReason, tr as runCompletedEventType, tt as LegacyTurnAttemptCompletedEvent, u as BaseStateCreatedEvent, un as TurnEvent, ur as steeringMessageCancelledEventType, ut as RecoveryContinuation, v as CommandAdmittedPayload, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, vt as RunInterruptedPayload, w as CommandFailedEvent, wn as UserMessagePromotedPayload, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xn as UserMessageCommittedPayload, xr as turnCompletedEventType, xt as RunSchedulingEvent, y as CommandCancelledEvent, yn as UserMessageCancelledPayload, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType, zt as StopTurnRequestedPayload } from "../../durable-CKdCCqhw.js";
1
+ import { $ as LegacyAttemptEvent, $n as pendingMessagesPausedEventType, $t as ToolCallRejectedPayload, A as CompactionFailedEvent, An as baseStateCreatedEventType, At as SessionConfiguredEvent, B as ContextRebasedPayload, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, C as CommandEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Ct as RunSchedulingGrantedPayload, D as CommandStartedPayload, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, Dt as RunSchedulingRequestedPayload, E as CommandStartedEvent, En as UserMessageSubmittedPayload, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, F as CompactionStartedPayload, Fn as commandCompletedEventType, Ft as StopControlEvent, G as InferenceCompletedEvent, Gn as decodeUnknownEDADurableEvent, Gt as ToolCallCompletedPayload, H as DecodedDurableEvent, Hn as contextProjectedEventType, Ht as SystemMessageCommittedEvent, I as ContextAndCompactionEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Jt as ToolCallEvent, K as InferenceCompletedPayload, Kn as decodeUnknownEDADurableEventSync, Kt as ToolCallCreatedEvent, L as ContextProjectedEvent, Ln as commandStartedEventType, Lt as StopTurnAppliedPayload, M as CompactionRequestedEvent, Mn as baseStateRequestedEventType, Mt as SteeringMessageCancelledPayload, N as CompactionRequestedPayload, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, On as assistantMessageImportedEventType, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Pt as SteeringMessageQueuedPayload, Q as LegacyAssistantMessageCommittedEvent, Qn as messageQueuePausedEventType, Qt as ToolCallRejectedEvent, R as ContextProjectedPayload, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, S as CommandCompletedPayload, Sn as UserMessageDisposition, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, T as CommandFailedPayload, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Tt as RunSchedulingInvalidatedPayload, U as EDADurableEvent, Un as contextRebasedEventType, Ut as SystemMessageCommittedPayload, V as CurrentEDADurableEvent, Vn as compactionStartedEventType, Vt as SummaryCreatedPayload, W as EDADurableEventV1, Wn as decodeDurableEventSync, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Xt as ToolCallFailedPayload, Y as InferenceFailedPayload, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, Z as InferenceStartedPayload, Zn as interpretLegacyAttemptForReduction, Zt as ToolCallPromptPart, _ as CommandAdmittedEvent, _n as UserMessageCancellationReason, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, a as AssistantMessageImportedPayload, an as ToolPromptPart, ar as runSchedulingGrantedEventType, at as MessageQueuePausedPayload, b as CommandCancelledPayload, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, bt as RunSchedulingDeliveredPayload, c as AssistantPromptPart, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, d as BaseStateCreatedPayload, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, dt as RecoveryEvent, en as ToolCallRejectionFeedback, er as recoveryCompletedEventType, et as LegacyToolCallCreatedEvent, f as BaseStateEvent, fn as TurnFailedPayload, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, g as BaseStateRequestedPayload, gn as TurnStoppedPayload, gr as toolCallCompletedEventType, gt as RunFailedPayload, h as BaseStateRequestedEvent, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, i as AssistantMessageImportedEvent, in as ToolFailurePromptPart, ir as runSchedulingDeliveredEventType, it as MessageQueuePausedEvent, j as CompactionFailedPayload, jn as baseStateFailedEventType, jt as SteeringMessageCancelledEvent, k as CompactionCompletedPayload, kn as assistantPartialCommittedEventType, kt as RunStartedPayload, l as AssistantPromptParts, ln as TurnCompletedPayload, lr as sessionConfiguredEventType, lt as RecoveryCompletedPayload, m as BaseStateFailedPayload, mn as TurnStartedPayload, mr as summaryCreatedEventType, mt as RunEvent, n as AssistantMessageCommittedPayload, nn as ToolCallStartedEvent, nr as runFailedEventType, nt as LegacyTurnAttemptStartedEvent, o as AssistantPartialCommittedEvent, on as ToolRejectionPromptPart, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, p as BaseStateFailedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, pt as RunCompletedPayload, q as InferenceEvent, qn as durableEventEnvelope, qt as ToolCallCreatedPayload, r as AssistantMessageContent, rn as ToolCallStartedPayload, rr as runInterruptedEventType, rt as MessageEvent, s as AssistantPartialCommittedPayload, sn as ToolSuccessPromptPart, sr as runSchedulingRequestedEventType, st as PendingMessagesPausedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallRejectionReason, tr as runCompletedEventType, tt as LegacyTurnAttemptCompletedEvent, u as BaseStateCreatedEvent, un as TurnEvent, ur as steeringMessageCancelledEventType, ut as RecoveryContinuation, v as CommandAdmittedPayload, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, vt as RunInterruptedPayload, w as CommandFailedEvent, wn as UserMessagePromotedPayload, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xn as UserMessageCommittedPayload, xr as turnCompletedEventType, xt as RunSchedulingEvent, y as CommandCancelledEvent, yn as UserMessageCancelledPayload, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType, zt as StopTurnRequestedPayload } from "../../durable-Cqv5ZRFA.js";
2
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, CurrentEDADurableEvent, DecodedDurableEvent, EDADurableEvent, EDADurableEventV1, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, LegacyAssistantMessageCommittedEvent, LegacyAttemptEvent, LegacyToolCallCreatedEvent, LegacyTurnAttemptCompletedEvent, LegacyTurnAttemptStartedEvent, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, PendingMessagesPausedEvent, PendingMessagesPausedPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeDurableEventSync, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, durableEventEnvelope, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, interpretLegacyAttemptForReduction, messageQueuePausedEventType, pendingMessagesPausedEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runSchedulingDeliveredEventType, runSchedulingGrantedEventType, runSchedulingInvalidatedEventType, runSchedulingRequestedEventType, runStartedEventType, sessionConfiguredEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, summaryCreatedEventType, systemMessageCommittedEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
@@ -1,2 +1,2 @@
1
- import { $ as LegacyAttemptEvent, $n as pendingMessagesPausedEventType, $t as ToolCallRejectedPayload, A as CompactionFailedEvent, An as baseStateCreatedEventType, At as SessionConfiguredEvent, B as ContextRebasedPayload, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, C as CommandEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Ct as RunSchedulingGrantedPayload, D as CommandStartedPayload, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, Dt as RunSchedulingRequestedPayload, E as CommandStartedEvent, En as UserMessageSubmittedPayload, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, F as CompactionStartedPayload, Fn as commandCompletedEventType, Ft as StopControlEvent, G as InferenceCompletedEvent, Gn as decodeUnknownEDADurableEvent, Gt as ToolCallCompletedPayload, H as DecodedDurableEvent, Hn as contextProjectedEventType, Ht as SystemMessageCommittedEvent, I as ContextAndCompactionEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Jt as ToolCallEvent, K as InferenceCompletedPayload, Kn as decodeUnknownEDADurableEventSync, Kt as ToolCallCreatedEvent, L as ContextProjectedEvent, Ln as commandStartedEventType, Lt as StopTurnAppliedPayload, M as CompactionRequestedEvent, Mn as baseStateRequestedEventType, Mt as SteeringMessageCancelledPayload, N as CompactionRequestedPayload, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, On as assistantMessageImportedEventType, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Pt as SteeringMessageQueuedPayload, Q as LegacyAssistantMessageCommittedEvent, Qn as messageQueuePausedEventType, Qt as ToolCallRejectedEvent, R as ContextProjectedPayload, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, S as CommandCompletedPayload, Sn as UserMessageDisposition, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, T as CommandFailedPayload, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Tt as RunSchedulingInvalidatedPayload, U as EDADurableEvent, Un as contextRebasedEventType, Ut as SystemMessageCommittedPayload, V as CurrentEDADurableEvent, Vn as compactionStartedEventType, Vt as SummaryCreatedPayload, W as EDADurableEventV1, Wn as decodeDurableEventSync, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Xt as ToolCallFailedPayload, Y as InferenceFailedPayload, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, Z as InferenceStartedPayload, Zn as interpretLegacyAttemptForReduction, Zt as ToolCallPromptPart, _ as CommandAdmittedEvent, _n as UserMessageCancellationReason, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, a as AssistantMessageImportedPayload, an as ToolPromptPart, ar as runSchedulingGrantedEventType, at as MessageQueuePausedPayload, b as CommandCancelledPayload, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, bt as RunSchedulingDeliveredPayload, c as AssistantPromptPart, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, d as BaseStateCreatedPayload, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, dt as RecoveryEvent, en as ToolCallRejectionFeedback, er as recoveryCompletedEventType, et as LegacyToolCallCreatedEvent, f as BaseStateEvent, fn as TurnFailedPayload, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, g as BaseStateRequestedPayload, gn as TurnStoppedPayload, gr as toolCallCompletedEventType, gt as RunFailedPayload, h as BaseStateRequestedEvent, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, i as AssistantMessageImportedEvent, in as ToolFailurePromptPart, ir as runSchedulingDeliveredEventType, it as MessageQueuePausedEvent, j as CompactionFailedPayload, jn as baseStateFailedEventType, jt as SteeringMessageCancelledEvent, k as CompactionCompletedPayload, kn as assistantPartialCommittedEventType, kt as RunStartedPayload, l as AssistantPromptParts, ln as TurnCompletedPayload, lr as sessionConfiguredEventType, lt as RecoveryCompletedPayload, m as BaseStateFailedPayload, mn as TurnStartedPayload, mr as summaryCreatedEventType, mt as RunEvent, n as AssistantMessageCommittedPayload, nn as ToolCallStartedEvent, nr as runFailedEventType, nt as LegacyTurnAttemptStartedEvent, o as AssistantPartialCommittedEvent, on as ToolRejectionPromptPart, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, p as BaseStateFailedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, pt as RunCompletedPayload, q as InferenceEvent, qn as durableEventEnvelope, qt as ToolCallCreatedPayload, r as AssistantMessageContent, rn as ToolCallStartedPayload, rr as runInterruptedEventType, rt as MessageEvent, s as AssistantPartialCommittedPayload, sn as ToolSuccessPromptPart, sr as runSchedulingRequestedEventType, st as PendingMessagesPausedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallRejectionReason, tr as runCompletedEventType, tt as LegacyTurnAttemptCompletedEvent, u as BaseStateCreatedEvent, un as TurnEvent, ur as steeringMessageCancelledEventType, ut as RecoveryContinuation, v as CommandAdmittedPayload, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, vt as RunInterruptedPayload, w as CommandFailedEvent, wn as UserMessagePromotedPayload, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xn as UserMessageCommittedPayload, xr as turnCompletedEventType, xt as RunSchedulingEvent, y as CommandCancelledEvent, yn as UserMessageCancelledPayload, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType, zt as StopTurnRequestedPayload } from "../../durable-CD__3ztN.js";
1
+ import { $ as LegacyAttemptEvent, $n as pendingMessagesPausedEventType, $t as ToolCallRejectedPayload, A as CompactionFailedEvent, An as baseStateCreatedEventType, At as SessionConfiguredEvent, B as ContextRebasedPayload, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, C as CommandEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Ct as RunSchedulingGrantedPayload, D as CommandStartedPayload, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, Dt as RunSchedulingRequestedPayload, E as CommandStartedEvent, En as UserMessageSubmittedPayload, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, F as CompactionStartedPayload, Fn as commandCompletedEventType, Ft as StopControlEvent, G as InferenceCompletedEvent, Gn as decodeUnknownEDADurableEvent, Gt as ToolCallCompletedPayload, H as DecodedDurableEvent, Hn as contextProjectedEventType, Ht as SystemMessageCommittedEvent, I as ContextAndCompactionEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Jt as ToolCallEvent, K as InferenceCompletedPayload, Kn as decodeUnknownEDADurableEventSync, Kt as ToolCallCreatedEvent, L as ContextProjectedEvent, Ln as commandStartedEventType, Lt as StopTurnAppliedPayload, M as CompactionRequestedEvent, Mn as baseStateRequestedEventType, Mt as SteeringMessageCancelledPayload, N as CompactionRequestedPayload, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, On as assistantMessageImportedEventType, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Pt as SteeringMessageQueuedPayload, Q as LegacyAssistantMessageCommittedEvent, Qn as messageQueuePausedEventType, Qt as ToolCallRejectedEvent, R as ContextProjectedPayload, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, S as CommandCompletedPayload, Sn as UserMessageDisposition, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, T as CommandFailedPayload, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Tt as RunSchedulingInvalidatedPayload, U as EDADurableEvent, Un as contextRebasedEventType, Ut as SystemMessageCommittedPayload, V as CurrentEDADurableEvent, Vn as compactionStartedEventType, Vt as SummaryCreatedPayload, W as EDADurableEventV1, Wn as decodeDurableEventSync, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Xt as ToolCallFailedPayload, Y as InferenceFailedPayload, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, Z as InferenceStartedPayload, Zn as interpretLegacyAttemptForReduction, Zt as ToolCallPromptPart, _ as CommandAdmittedEvent, _n as UserMessageCancellationReason, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, a as AssistantMessageImportedPayload, an as ToolPromptPart, ar as runSchedulingGrantedEventType, at as MessageQueuePausedPayload, b as CommandCancelledPayload, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, bt as RunSchedulingDeliveredPayload, c as AssistantPromptPart, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, d as BaseStateCreatedPayload, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, dt as RecoveryEvent, en as ToolCallRejectionFeedback, er as recoveryCompletedEventType, et as LegacyToolCallCreatedEvent, f as BaseStateEvent, fn as TurnFailedPayload, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, g as BaseStateRequestedPayload, gn as TurnStoppedPayload, gr as toolCallCompletedEventType, gt as RunFailedPayload, h as BaseStateRequestedEvent, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, i as AssistantMessageImportedEvent, in as ToolFailurePromptPart, ir as runSchedulingDeliveredEventType, it as MessageQueuePausedEvent, j as CompactionFailedPayload, jn as baseStateFailedEventType, jt as SteeringMessageCancelledEvent, k as CompactionCompletedPayload, kn as assistantPartialCommittedEventType, kt as RunStartedPayload, l as AssistantPromptParts, ln as TurnCompletedPayload, lr as sessionConfiguredEventType, lt as RecoveryCompletedPayload, m as BaseStateFailedPayload, mn as TurnStartedPayload, mr as summaryCreatedEventType, mt as RunEvent, n as AssistantMessageCommittedPayload, nn as ToolCallStartedEvent, nr as runFailedEventType, nt as LegacyTurnAttemptStartedEvent, o as AssistantPartialCommittedEvent, on as ToolRejectionPromptPart, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, p as BaseStateFailedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, pt as RunCompletedPayload, q as InferenceEvent, qn as durableEventEnvelope, qt as ToolCallCreatedPayload, r as AssistantMessageContent, rn as ToolCallStartedPayload, rr as runInterruptedEventType, rt as MessageEvent, s as AssistantPartialCommittedPayload, sn as ToolSuccessPromptPart, sr as runSchedulingRequestedEventType, st as PendingMessagesPausedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallRejectionReason, tr as runCompletedEventType, tt as LegacyTurnAttemptCompletedEvent, u as BaseStateCreatedEvent, un as TurnEvent, ur as steeringMessageCancelledEventType, ut as RecoveryContinuation, v as CommandAdmittedPayload, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, vt as RunInterruptedPayload, w as CommandFailedEvent, wn as UserMessagePromotedPayload, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xn as UserMessageCommittedPayload, xr as turnCompletedEventType, xt as RunSchedulingEvent, y as CommandCancelledEvent, yn as UserMessageCancelledPayload, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType, zt as StopTurnRequestedPayload } from "../../durable-D13w1Qr3.js";
2
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, CurrentEDADurableEvent, DecodedDurableEvent, EDADurableEvent, EDADurableEventV1, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, LegacyAssistantMessageCommittedEvent, LegacyAttemptEvent, LegacyToolCallCreatedEvent, LegacyTurnAttemptCompletedEvent, LegacyTurnAttemptStartedEvent, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, PendingMessagesPausedEvent, PendingMessagesPausedPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeDurableEventSync, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, durableEventEnvelope, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, interpretLegacyAttemptForReduction, messageQueuePausedEventType, pendingMessagesPausedEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runSchedulingDeliveredEventType, runSchedulingGrantedEventType, runSchedulingInvalidatedEventType, runSchedulingRequestedEventType, runStartedEventType, sessionConfiguredEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, summaryCreatedEventType, systemMessageCommittedEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
@@ -1,5 +1,5 @@
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-BwjbF285.js";
2
2
  import { _ as UnixEpochMillis, a as EventNamespace, b as makeEventType, c as FailurePayload, d as NonNegativeInt, f as PositionedEvent, g as ToolName, h as SystemPromptText, i as EventEnvelope, l as ForeignDurableEvent, m as SchemaVersion, n as EphemeralEventEnvelope, o as EventType, p as ProviderPartId, r as EventDurability, s as EventTypeName, t as DurableEventEnvelope, u as ModelSelectionPayload, v as UsagePayload, x as schemaV1, y as effectDurableAgentNamespace } from "../envelope-Che6KatU.js";
3
- import { $ as LegacyAttemptEvent, $n as pendingMessagesPausedEventType, $t as ToolCallRejectedPayload, A as CompactionFailedEvent, An as baseStateCreatedEventType, At as SessionConfiguredEvent, B as ContextRebasedPayload, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, C as CommandEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Ct as RunSchedulingGrantedPayload, D as CommandStartedPayload, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, Dt as RunSchedulingRequestedPayload, E as CommandStartedEvent, En as UserMessageSubmittedPayload, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, F as CompactionStartedPayload, Fn as commandCompletedEventType, Ft as StopControlEvent, G as InferenceCompletedEvent, Gn as decodeUnknownEDADurableEvent, Gt as ToolCallCompletedPayload, H as DecodedDurableEvent, Hn as contextProjectedEventType, Ht as SystemMessageCommittedEvent, I as ContextAndCompactionEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Jt as ToolCallEvent, K as InferenceCompletedPayload, Kn as decodeUnknownEDADurableEventSync, Kt as ToolCallCreatedEvent, L as ContextProjectedEvent, Ln as commandStartedEventType, Lt as StopTurnAppliedPayload, M as CompactionRequestedEvent, Mn as baseStateRequestedEventType, Mt as SteeringMessageCancelledPayload, N as CompactionRequestedPayload, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, On as assistantMessageImportedEventType, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Pt as SteeringMessageQueuedPayload, Q as LegacyAssistantMessageCommittedEvent, Qn as messageQueuePausedEventType, Qt as ToolCallRejectedEvent, R as ContextProjectedPayload, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, S as CommandCompletedPayload, Sn as UserMessageDisposition, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, T as CommandFailedPayload, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Tt as RunSchedulingInvalidatedPayload, U as EDADurableEvent, Un as contextRebasedEventType, Ut as SystemMessageCommittedPayload, V as CurrentEDADurableEvent, Vn as compactionStartedEventType, Vt as SummaryCreatedPayload, W as EDADurableEventV1, Wn as decodeDurableEventSync, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Xt as ToolCallFailedPayload, Y as InferenceFailedPayload, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, Z as InferenceStartedPayload, Zn as interpretLegacyAttemptForReduction, Zt as ToolCallPromptPart, _ as CommandAdmittedEvent, _n as UserMessageCancellationReason, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, a as AssistantMessageImportedPayload, an as ToolPromptPart, ar as runSchedulingGrantedEventType, at as MessageQueuePausedPayload, b as CommandCancelledPayload, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, bt as RunSchedulingDeliveredPayload, c as AssistantPromptPart, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, d as BaseStateCreatedPayload, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, dt as RecoveryEvent, en as ToolCallRejectionFeedback, er as recoveryCompletedEventType, et as LegacyToolCallCreatedEvent, f as BaseStateEvent, fn as TurnFailedPayload, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, g as BaseStateRequestedPayload, gn as TurnStoppedPayload, gr as toolCallCompletedEventType, gt as RunFailedPayload, h as BaseStateRequestedEvent, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, i as AssistantMessageImportedEvent, in as ToolFailurePromptPart, ir as runSchedulingDeliveredEventType, it as MessageQueuePausedEvent, j as CompactionFailedPayload, jn as baseStateFailedEventType, jt as SteeringMessageCancelledEvent, k as CompactionCompletedPayload, kn as assistantPartialCommittedEventType, kt as RunStartedPayload, l as AssistantPromptParts, ln as TurnCompletedPayload, lr as sessionConfiguredEventType, lt as RecoveryCompletedPayload, m as BaseStateFailedPayload, mn as TurnStartedPayload, mr as summaryCreatedEventType, mt as RunEvent, n as AssistantMessageCommittedPayload, nn as ToolCallStartedEvent, nr as runFailedEventType, nt as LegacyTurnAttemptStartedEvent, o as AssistantPartialCommittedEvent, on as ToolRejectionPromptPart, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, p as BaseStateFailedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, pt as RunCompletedPayload, q as InferenceEvent, qn as durableEventEnvelope, qt as ToolCallCreatedPayload, r as AssistantMessageContent, rn as ToolCallStartedPayload, rr as runInterruptedEventType, rt as MessageEvent, s as AssistantPartialCommittedPayload, sn as ToolSuccessPromptPart, sr as runSchedulingRequestedEventType, st as PendingMessagesPausedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallRejectionReason, tr as runCompletedEventType, tt as LegacyTurnAttemptCompletedEvent, u as BaseStateCreatedEvent, un as TurnEvent, ur as steeringMessageCancelledEventType, ut as RecoveryContinuation, v as CommandAdmittedPayload, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, vt as RunInterruptedPayload, w as CommandFailedEvent, wn as UserMessagePromotedPayload, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xn as UserMessageCommittedPayload, xr as turnCompletedEventType, xt as RunSchedulingEvent, y as CommandCancelledEvent, yn as UserMessageCancelledPayload, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType, zt as StopTurnRequestedPayload } from "../durable-CKdCCqhw.js";
4
- import { C as toolParamsDeltaEventType, E as traceStatusEventType, S as textDeltaEventType, T as toolParamsStartEventType, _ as TraceStatusEvent, a as RuntimeStatusEvent, b as reasoningDeltaEventType, c as SubscriberStatusPayload, d as ToolParamsDeltaEvent, f as ToolParamsDeltaPayload, g as ToolParamsStartPayload, h as ToolParamsStartEvent, i as ReasoningDeltaPayload, l as TextDeltaEvent, m as ToolParamsEndPayload, n as ModelStreamEvent, o as SubscriberStatusEvent, p as ToolParamsEndEvent, r as ReasoningDeltaEvent, s as SubscriberStatusKind, t as EDAEphemeralEvent, u as TextDeltaPayload, v as TraceStatusKind, w as toolParamsEndEventType, x as subscriberStatusEventType, y as TraceStatusPayload } from "../events-BWuvzVml.js";
3
+ import { $ as LegacyAttemptEvent, $n as pendingMessagesPausedEventType, $t as ToolCallRejectedPayload, A as CompactionFailedEvent, An as baseStateCreatedEventType, At as SessionConfiguredEvent, B as ContextRebasedPayload, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, C as CommandEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Ct as RunSchedulingGrantedPayload, D as CommandStartedPayload, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, Dt as RunSchedulingRequestedPayload, E as CommandStartedEvent, En as UserMessageSubmittedPayload, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, F as CompactionStartedPayload, Fn as commandCompletedEventType, Ft as StopControlEvent, G as InferenceCompletedEvent, Gn as decodeUnknownEDADurableEvent, Gt as ToolCallCompletedPayload, H as DecodedDurableEvent, Hn as contextProjectedEventType, Ht as SystemMessageCommittedEvent, I as ContextAndCompactionEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Jt as ToolCallEvent, K as InferenceCompletedPayload, Kn as decodeUnknownEDADurableEventSync, Kt as ToolCallCreatedEvent, L as ContextProjectedEvent, Ln as commandStartedEventType, Lt as StopTurnAppliedPayload, M as CompactionRequestedEvent, Mn as baseStateRequestedEventType, Mt as SteeringMessageCancelledPayload, N as CompactionRequestedPayload, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, On as assistantMessageImportedEventType, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Pt as SteeringMessageQueuedPayload, Q as LegacyAssistantMessageCommittedEvent, Qn as messageQueuePausedEventType, Qt as ToolCallRejectedEvent, R as ContextProjectedPayload, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, S as CommandCompletedPayload, Sn as UserMessageDisposition, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, T as CommandFailedPayload, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Tt as RunSchedulingInvalidatedPayload, U as EDADurableEvent, Un as contextRebasedEventType, Ut as SystemMessageCommittedPayload, V as CurrentEDADurableEvent, Vn as compactionStartedEventType, Vt as SummaryCreatedPayload, W as EDADurableEventV1, Wn as decodeDurableEventSync, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Xt as ToolCallFailedPayload, Y as InferenceFailedPayload, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, Z as InferenceStartedPayload, Zn as interpretLegacyAttemptForReduction, Zt as ToolCallPromptPart, _ as CommandAdmittedEvent, _n as UserMessageCancellationReason, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, a as AssistantMessageImportedPayload, an as ToolPromptPart, ar as runSchedulingGrantedEventType, at as MessageQueuePausedPayload, b as CommandCancelledPayload, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, bt as RunSchedulingDeliveredPayload, c as AssistantPromptPart, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, d as BaseStateCreatedPayload, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, dt as RecoveryEvent, en as ToolCallRejectionFeedback, er as recoveryCompletedEventType, et as LegacyToolCallCreatedEvent, f as BaseStateEvent, fn as TurnFailedPayload, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, g as BaseStateRequestedPayload, gn as TurnStoppedPayload, gr as toolCallCompletedEventType, gt as RunFailedPayload, h as BaseStateRequestedEvent, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, i as AssistantMessageImportedEvent, in as ToolFailurePromptPart, ir as runSchedulingDeliveredEventType, it as MessageQueuePausedEvent, j as CompactionFailedPayload, jn as baseStateFailedEventType, jt as SteeringMessageCancelledEvent, k as CompactionCompletedPayload, kn as assistantPartialCommittedEventType, kt as RunStartedPayload, l as AssistantPromptParts, ln as TurnCompletedPayload, lr as sessionConfiguredEventType, lt as RecoveryCompletedPayload, m as BaseStateFailedPayload, mn as TurnStartedPayload, mr as summaryCreatedEventType, mt as RunEvent, n as AssistantMessageCommittedPayload, nn as ToolCallStartedEvent, nr as runFailedEventType, nt as LegacyTurnAttemptStartedEvent, o as AssistantPartialCommittedEvent, on as ToolRejectionPromptPart, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, p as BaseStateFailedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, pt as RunCompletedPayload, q as InferenceEvent, qn as durableEventEnvelope, qt as ToolCallCreatedPayload, r as AssistantMessageContent, rn as ToolCallStartedPayload, rr as runInterruptedEventType, rt as MessageEvent, s as AssistantPartialCommittedPayload, sn as ToolSuccessPromptPart, sr as runSchedulingRequestedEventType, st as PendingMessagesPausedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallRejectionReason, tr as runCompletedEventType, tt as LegacyTurnAttemptCompletedEvent, u as BaseStateCreatedEvent, un as TurnEvent, ur as steeringMessageCancelledEventType, ut as RecoveryContinuation, v as CommandAdmittedPayload, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, vt as RunInterruptedPayload, w as CommandFailedEvent, wn as UserMessagePromotedPayload, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xn as UserMessageCommittedPayload, xr as turnCompletedEventType, xt as RunSchedulingEvent, y as CommandCancelledEvent, yn as UserMessageCancelledPayload, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType, zt as StopTurnRequestedPayload } from "../durable-Cqv5ZRFA.js";
4
+ import { C as toolParamsDeltaEventType, E as traceStatusEventType, S as textDeltaEventType, T as toolParamsStartEventType, _ as TraceStatusEvent, a as RuntimeStatusEvent, b as reasoningDeltaEventType, c as SubscriberStatusPayload, d as ToolParamsDeltaEvent, f as ToolParamsDeltaPayload, g as ToolParamsStartPayload, h as ToolParamsStartEvent, i as ReasoningDeltaPayload, l as TextDeltaEvent, m as ToolParamsEndPayload, n as ModelStreamEvent, o as SubscriberStatusEvent, p as ToolParamsEndEvent, r as ReasoningDeltaEvent, s as SubscriberStatusKind, t as EDAEphemeralEvent, u as TextDeltaPayload, v as TraceStatusKind, w as toolParamsEndEventType, x as subscriberStatusEventType, y as TraceStatusPayload } from "../events-Dg0o5wWs.js";
5
5
  export { AssistantMessageCommittedEvent, AssistantMessageCommittedPayload, AssistantMessageContent, AssistantMessageImportedEvent, AssistantMessageImportedPayload, AssistantPartialCommittedEvent, AssistantPartialCommittedPayload, AssistantPromptPart, AssistantPromptParts, BaseStateCreatedEvent, BaseStateCreatedPayload, BaseStateEvent, BaseStateFailedEvent, BaseStateFailedPayload, BaseStateRequestedEvent, BaseStateRequestedPayload, CommandAdmittedEvent, CommandAdmittedPayload, CommandCancelledEvent, CommandCancelledPayload, CommandCompletedEvent, CommandCompletedPayload, CommandEvent, CommandFailedEvent, CommandFailedPayload, CommandStartedEvent, CommandStartedPayload, CompactionCompletedEvent, CompactionCompletedPayload, CompactionFailedEvent, CompactionFailedPayload, CompactionRequestedEvent, CompactionRequestedPayload, CompactionStartedEvent, CompactionStartedPayload, ContextAndCompactionEvent, ContextProjectedEvent, ContextProjectedPayload, ContextRebasedEvent, ContextRebasedPayload, CurrentEDADurableEvent, DecodedDurableEvent, DurableEventEnvelope, EDADurableEvent, EDADurableEventV1, EDAEphemeralEvent, EDAEventTrace, EDARunTrace, EDASpanId, EDATraceAttributeValue, EDATraceAttributes, EDATraceContext, EDATraceId, EDATraceLink, EDATraceMetadata, EphemeralEventEnvelope, EventDurability, EventEnvelope, EventNamespace, EventType, EventTypeName, FailurePayload, ForeignDurableEvent, InferenceCompletedEvent, InferenceCompletedPayload, InferenceEvent, InferenceFailedEvent, InferenceFailedPayload, InferenceStartedEvent, InferenceStartedPayload, LegacyAssistantMessageCommittedEvent, LegacyAttemptEvent, LegacyToolCallCreatedEvent, LegacyTurnAttemptCompletedEvent, LegacyTurnAttemptStartedEvent, MessageEvent, MessageQueuePausedEvent, MessageQueuePausedPayload, ModelSelectionPayload, ModelStreamEvent, NonNegativeInt, PendingMessagesPausedEvent, PendingMessagesPausedPayload, PositionedEvent, ProviderPartId, ReasoningDeltaEvent, ReasoningDeltaPayload, RecoveryCompletedEvent, RecoveryCompletedPayload, RecoveryContinuation, RecoveryEvent, RunCompletedEvent, RunCompletedPayload, RunEvent, RunFailedEvent, RunFailedPayload, RunInterruptedEvent, RunInterruptedPayload, RunSchedulingDeliveredEvent, RunSchedulingDeliveredPayload, RunSchedulingEvent, RunSchedulingGrantedEvent, RunSchedulingGrantedPayload, RunSchedulingInvalidatedEvent, RunSchedulingInvalidatedPayload, RunSchedulingRequestedEvent, RunSchedulingRequestedPayload, RunStartedEvent, RunStartedPayload, RuntimeStatusEvent, SchemaVersion, SessionConfiguredEvent, SteeringMessageCancelledEvent, SteeringMessageCancelledPayload, SteeringMessageQueuedEvent, SteeringMessageQueuedPayload, StopControlEvent, StopTurnAppliedEvent, StopTurnAppliedPayload, StopTurnRequestedEvent, StopTurnRequestedPayload, SubscriberStatusEvent, SubscriberStatusKind, SubscriberStatusPayload, SummaryCreatedEvent, SummaryCreatedPayload, SystemMessageCommittedEvent, SystemMessageCommittedPayload, SystemPromptText, TextDeltaEvent, TextDeltaPayload, ToolCallCompletedEvent, ToolCallCompletedPayload, ToolCallCreatedEvent, ToolCallCreatedPayload, ToolCallEvent, ToolCallFailedEvent, ToolCallFailedPayload, ToolCallPromptPart, ToolCallRejectedEvent, ToolCallRejectedPayload, ToolCallRejectionFeedback, ToolCallRejectionReason, ToolCallStartedEvent, ToolCallStartedPayload, ToolFailurePromptPart, ToolName, ToolParamsDeltaEvent, ToolParamsDeltaPayload, ToolParamsEndEvent, ToolParamsEndPayload, ToolParamsStartEvent, ToolParamsStartPayload, ToolPromptPart, ToolRejectionPromptPart, ToolSuccessPromptPart, TraceStatusEvent, TraceStatusKind, TraceStatusPayload, TurnCompletedEvent, TurnCompletedPayload, TurnEvent, TurnFailedEvent, TurnFailedPayload, TurnStartedEvent, TurnStartedPayload, TurnStoppedEvent, TurnStoppedPayload, UnixEpochMillis, UsagePayload, UserMessageCancellationReason, UserMessageCancelledEvent, UserMessageCancelledPayload, UserMessageCommittedEvent, UserMessageCommittedPayload, UserMessageDisposition, UserMessagePromotedEvent, UserMessagePromotedPayload, UserMessageSubmittedEvent, UserMessageSubmittedPayload, assistantMessageCommittedEventType, assistantMessageImportedEventType, assistantPartialCommittedEventType, baseStateCreatedEventType, baseStateFailedEventType, baseStateRequestedEventType, buildEDATraceparent, commandAdmittedEventType, commandCancelledEventType, commandCompletedEventType, commandFailedEventType, commandStartedEventType, compactionCompletedEventType, compactionFailedEventType, compactionRequestedEventType, compactionStartedEventType, contextProjectedEventType, contextRebasedEventType, decodeDurableEventSync, decodeUnknownEDADurableEvent, decodeUnknownEDADurableEventSync, durableEventEnvelope, effectDurableAgentNamespace, inferenceCompletedEventType, inferenceFailedEventType, inferenceStartedEventType, interpretLegacyAttemptForReduction, makeEDAEventTrace, makeEDARunTrace, makeEDATraceContext, makeEDATraceMetadataFromParent, makeEventType, makeRootEDAEventTrace, makeRootEDATraceMetadata, messageQueuePausedEventType, parseEDATraceparent, pendingMessagesPausedEventType, reasoningDeltaEventType, recoveryCompletedEventType, runCompletedEventType, runFailedEventType, runInterruptedEventType, runSchedulingDeliveredEventType, runSchedulingGrantedEventType, runSchedulingInvalidatedEventType, runSchedulingRequestedEventType, runStartedEventType, schemaV1, sessionConfiguredEventType, steeringMessageCancelledEventType, steeringMessageQueuedEventType, stopTurnAppliedEventType, stopTurnRequestedEventType, subscriberStatusEventType, summaryCreatedEventType, systemMessageCommittedEventType, textDeltaEventType, toolCallCompletedEventType, toolCallCreatedEventType, toolCallFailedEventType, toolCallRejectedEventType, toolCallStartedEventType, toolParamsDeltaEventType, toolParamsEndEventType, toolParamsStartEventType, traceStatusEventType, turnCompletedEventType, turnFailedEventType, turnStartedEventType, turnStoppedEventType, userMessageCancelledEventType, userMessageCommittedEventType, userMessagePromotedEventType, userMessageSubmittedEventType };
@@ -1,7 +1,7 @@
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
3
  import { _ as UsagePayload, a as EventNamespace, b as schemaV1, c as ForeignDurableEvent, d as PositionedEvent, f as ProviderPartId, g as UnixEpochMillis, h as ToolName, i as EventEnvelope, l as ModelSelectionPayload, m as SystemPromptText, n as EphemeralEventEnvelope, o as EventType, p as SchemaVersion, r as EventDurability, s as FailurePayload, t as DurableEventEnvelope, u as NonNegativeInt, v as effectDurableAgentNamespace, y as makeEventType } from "../envelope-BCzKUq_z.js";
4
- import { $ as LegacyAttemptEvent, $n as pendingMessagesPausedEventType, $t as ToolCallRejectedPayload, A as CompactionFailedEvent, An as baseStateCreatedEventType, Ar as ephemeralEventSchema, At as SessionConfiguredEvent, B as ContextRebasedPayload, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, C as CommandEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Ct as RunSchedulingGrantedPayload, D as CommandStartedPayload, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, Dt as RunSchedulingRequestedPayload, E as CommandStartedEvent, En as UserMessageSubmittedPayload, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, F as CompactionStartedPayload, Fn as commandCompletedEventType, Ft as StopControlEvent, G as InferenceCompletedEvent, Gn as decodeUnknownEDADurableEvent, Gt as ToolCallCompletedPayload, H as DecodedDurableEvent, Hn as contextProjectedEventType, Ht as SystemMessageCommittedEvent, I as ContextAndCompactionEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Jt as ToolCallEvent, K as InferenceCompletedPayload, Kn as decodeUnknownEDADurableEventSync, Kt as ToolCallCreatedEvent, L as ContextProjectedEvent, Ln as commandStartedEventType, Lt as StopTurnAppliedPayload, M as CompactionRequestedEvent, Mn as baseStateRequestedEventType, Mt as SteeringMessageCancelledPayload, N as CompactionRequestedPayload, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, On as assistantMessageImportedEventType, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Pt as SteeringMessageQueuedPayload, Q as LegacyAssistantMessageCommittedEvent, Qn as messageQueuePausedEventType, Qt as ToolCallRejectedEvent, R as ContextProjectedPayload, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, S as CommandCompletedPayload, Sn as UserMessageDisposition, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, T as CommandFailedPayload, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Tt as RunSchedulingInvalidatedPayload, U as EDADurableEvent, Un as contextRebasedEventType, Ut as SystemMessageCommittedPayload, V as CurrentEDADurableEvent, Vn as compactionStartedEventType, Vt as SummaryCreatedPayload, W as EDADurableEventV1, Wn as decodeDurableEventSync, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Xt as ToolCallFailedPayload, Y as InferenceFailedPayload, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, Z as InferenceStartedPayload, Zn as interpretLegacyAttemptForReduction, Zt as ToolCallPromptPart, _ as CommandAdmittedEvent, _n as UserMessageCancellationReason, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, a as AssistantMessageImportedPayload, an as ToolPromptPart, ar as runSchedulingGrantedEventType, at as MessageQueuePausedPayload, b as CommandCancelledPayload, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, bt as RunSchedulingDeliveredPayload, c as AssistantPromptPart, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, d as BaseStateCreatedPayload, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, dt as RecoveryEvent, en as ToolCallRejectionFeedback, er as recoveryCompletedEventType, et as LegacyToolCallCreatedEvent, f as BaseStateEvent, fn as TurnFailedPayload, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, g as BaseStateRequestedPayload, gn as TurnStoppedPayload, gr as toolCallCompletedEventType, gt as RunFailedPayload, h as BaseStateRequestedEvent, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, i as AssistantMessageImportedEvent, in as ToolFailurePromptPart, ir as runSchedulingDeliveredEventType, it as MessageQueuePausedEvent, j as CompactionFailedPayload, jn as baseStateFailedEventType, jt as SteeringMessageCancelledEvent, k as CompactionCompletedPayload, kn as assistantPartialCommittedEventType, kt as RunStartedPayload, l as AssistantPromptParts, ln as TurnCompletedPayload, lr as sessionConfiguredEventType, lt as RecoveryCompletedPayload, m as BaseStateFailedPayload, mn as TurnStartedPayload, mr as summaryCreatedEventType, mt as RunEvent, n as AssistantMessageCommittedPayload, nn as ToolCallStartedEvent, nr as runFailedEventType, nt as LegacyTurnAttemptStartedEvent, o as AssistantPartialCommittedEvent, on as ToolRejectionPromptPart, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, p as BaseStateFailedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, pt as RunCompletedPayload, q as InferenceEvent, qn as durableEventEnvelope, qt as ToolCallCreatedPayload, r as AssistantMessageContent, rn as ToolCallStartedPayload, rr as runInterruptedEventType, rt as MessageEvent, s as AssistantPartialCommittedPayload, sn as ToolSuccessPromptPart, sr as runSchedulingRequestedEventType, st as PendingMessagesPausedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallRejectionReason, tr as runCompletedEventType, tt as LegacyTurnAttemptCompletedEvent, u as BaseStateCreatedEvent, un as TurnEvent, ur as steeringMessageCancelledEventType, ut as RecoveryContinuation, v as CommandAdmittedPayload, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, vt as RunInterruptedPayload, w as CommandFailedEvent, wn as UserMessagePromotedPayload, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xn as UserMessageCommittedPayload, xr as turnCompletedEventType, xt as RunSchedulingEvent, y as CommandCancelledEvent, yn as UserMessageCancelledPayload, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType, zt as StopTurnRequestedPayload } from "../durable-CD__3ztN.js";
4
+ import { $ as LegacyAttemptEvent, $n as pendingMessagesPausedEventType, $t as ToolCallRejectedPayload, A as CompactionFailedEvent, An as baseStateCreatedEventType, Ar as ephemeralEventSchema, At as SessionConfiguredEvent, B as ContextRebasedPayload, Bn as compactionRequestedEventType, Bt as SummaryCreatedEvent, C as CommandEvent, Cn as UserMessagePromotedEvent, Cr as turnStartedEventType, Ct as RunSchedulingGrantedPayload, D as CommandStartedPayload, Dn as assistantMessageCommittedEventType, Dr as userMessagePromotedEventType, Dt as RunSchedulingRequestedPayload, E as CommandStartedEvent, En as UserMessageSubmittedPayload, Er as userMessageCommittedEventType, Et as RunSchedulingRequestedEvent, F as CompactionStartedPayload, Fn as commandCompletedEventType, Ft as StopControlEvent, G as InferenceCompletedEvent, Gn as decodeUnknownEDADurableEvent, Gt as ToolCallCompletedPayload, H as DecodedDurableEvent, Hn as contextProjectedEventType, Ht as SystemMessageCommittedEvent, I as ContextAndCompactionEvent, In as commandFailedEventType, It as StopTurnAppliedEvent, J as InferenceFailedEvent, Jn as inferenceCompletedEventType, Jt as ToolCallEvent, K as InferenceCompletedPayload, Kn as decodeUnknownEDADurableEventSync, Kt as ToolCallCreatedEvent, L as ContextProjectedEvent, Ln as commandStartedEventType, Lt as StopTurnAppliedPayload, M as CompactionRequestedEvent, Mn as baseStateRequestedEventType, Mt as SteeringMessageCancelledPayload, N as CompactionRequestedPayload, Nn as commandAdmittedEventType, Nt as SteeringMessageQueuedEvent, O as CompactionCompletedEvent, On as assistantMessageImportedEventType, Or as userMessageSubmittedEventType, Ot as RunStartedEvent, P as CompactionStartedEvent, Pn as commandCancelledEventType, Pt as SteeringMessageQueuedPayload, Q as LegacyAssistantMessageCommittedEvent, Qn as messageQueuePausedEventType, Qt as ToolCallRejectedEvent, R as ContextProjectedPayload, Rn as compactionCompletedEventType, Rt as StopTurnRequestedEvent, S as CommandCompletedPayload, Sn as UserMessageDisposition, Sr as turnFailedEventType, St as RunSchedulingGrantedEvent, T as CommandFailedPayload, Tn as UserMessageSubmittedEvent, Tr as userMessageCancelledEventType, Tt as RunSchedulingInvalidatedPayload, U as EDADurableEvent, Un as contextRebasedEventType, Ut as SystemMessageCommittedPayload, V as CurrentEDADurableEvent, Vn as compactionStartedEventType, Vt as SummaryCreatedPayload, W as EDADurableEventV1, Wn as decodeDurableEventSync, Wt as ToolCallCompletedEvent, X as InferenceStartedEvent, Xn as inferenceStartedEventType, Xt as ToolCallFailedPayload, Y as InferenceFailedPayload, Yn as inferenceFailedEventType, Yt as ToolCallFailedEvent, Z as InferenceStartedPayload, Zn as interpretLegacyAttemptForReduction, Zt as ToolCallPromptPart, _ as CommandAdmittedEvent, _n as UserMessageCancellationReason, _r as toolCallCreatedEventType, _t as RunInterruptedEvent, a as AssistantMessageImportedPayload, an as ToolPromptPart, ar as runSchedulingGrantedEventType, at as MessageQueuePausedPayload, b as CommandCancelledPayload, bn as UserMessageCommittedEvent, br as toolCallStartedEventType, bt as RunSchedulingDeliveredPayload, c as AssistantPromptPart, cn as TurnCompletedEvent, cr as runStartedEventType, ct as RecoveryCompletedEvent, d as BaseStateCreatedPayload, dn as TurnFailedEvent, dr as steeringMessageQueuedEventType, dt as RecoveryEvent, en as ToolCallRejectionFeedback, er as recoveryCompletedEventType, et as LegacyToolCallCreatedEvent, f as BaseStateEvent, fn as TurnFailedPayload, fr as stopTurnAppliedEventType, ft as RunCompletedEvent, g as BaseStateRequestedPayload, gn as TurnStoppedPayload, gr as toolCallCompletedEventType, gt as RunFailedPayload, h as BaseStateRequestedEvent, hn as TurnStoppedEvent, hr as systemMessageCommittedEventType, ht as RunFailedEvent, i as AssistantMessageImportedEvent, in as ToolFailurePromptPart, ir as runSchedulingDeliveredEventType, it as MessageQueuePausedEvent, j as CompactionFailedPayload, jn as baseStateFailedEventType, jt as SteeringMessageCancelledEvent, k as CompactionCompletedPayload, kn as assistantPartialCommittedEventType, kt as RunStartedPayload, l as AssistantPromptParts, ln as TurnCompletedPayload, lr as sessionConfiguredEventType, lt as RecoveryCompletedPayload, m as BaseStateFailedPayload, mn as TurnStartedPayload, mr as summaryCreatedEventType, mt as RunEvent, n as AssistantMessageCommittedPayload, nn as ToolCallStartedEvent, nr as runFailedEventType, nt as LegacyTurnAttemptStartedEvent, o as AssistantPartialCommittedEvent, on as ToolRejectionPromptPart, or as runSchedulingInvalidatedEventType, ot as PendingMessagesPausedEvent, p as BaseStateFailedEvent, pn as TurnStartedEvent, pr as stopTurnRequestedEventType, pt as RunCompletedPayload, q as InferenceEvent, qn as durableEventEnvelope, qt as ToolCallCreatedPayload, r as AssistantMessageContent, rn as ToolCallStartedPayload, rr as runInterruptedEventType, rt as MessageEvent, s as AssistantPartialCommittedPayload, sn as ToolSuccessPromptPart, sr as runSchedulingRequestedEventType, st as PendingMessagesPausedPayload, t as AssistantMessageCommittedEvent, tn as ToolCallRejectionReason, tr as runCompletedEventType, tt as LegacyTurnAttemptCompletedEvent, u as BaseStateCreatedEvent, un as TurnEvent, ur as steeringMessageCancelledEventType, ut as RecoveryContinuation, v as CommandAdmittedPayload, vn as UserMessageCancelledEvent, vr as toolCallFailedEventType, vt as RunInterruptedPayload, w as CommandFailedEvent, wn as UserMessagePromotedPayload, wr as turnStoppedEventType, wt as RunSchedulingInvalidatedEvent, x as CommandCompletedEvent, xn as UserMessageCommittedPayload, xr as turnCompletedEventType, xt as RunSchedulingEvent, y as CommandCancelledEvent, yn as UserMessageCancelledPayload, yr as toolCallRejectedEventType, yt as RunSchedulingDeliveredEvent, z as ContextRebasedEvent, zn as compactionFailedEventType, zt as StopTurnRequestedPayload } from "../durable-D13w1Qr3.js";
5
5
  import * as Schema from "effect/Schema";
6
6
  //#region src/types/events/ephemeral.ts
7
7
  /** Event type values for ephemeral model stream events. */
@@ -1,2 +1,2 @@
1
- import { $ as EDAWebSocketWireProtocol, A as EDA_WS_CLOSE_LAGGED, B as EDAFrameworkWebSocketEvent, C as EDAWebSocketHelloFrame, D as EDAWebSocketServerFrame, E as EDAWebSocketPongFrame, F as SubscriberId, G as EDAWebSocketWireClientFrame, H as EDAWebSocketServerFrameEncoder, I as decodeEDAWebSocketClientMessage, J as EDAWebSocketWireHeartbeatFrame, K as EDAWebSocketWireErrorFrame, L as defaultEDAWebSocketFlowControl, M as EDA_WS_CLOSE_SEND_FAILED, N as EDA_WS_CLOSE_UNSUPPORTED_DATA, O as EDA_WEB_SOCKET_PROTOCOL_VERSION, P as FrameId, Q as EDAWebSocketWirePongFrame, R as encodeEDAWebSocketServerFrame, S as EDAWebSocketHeartbeatFrame, T as EDAWebSocketPingFrame, U as EDAWebSocketServerFrameInput, V as EDAWebSocketEventConsumerPolicy, W as EDAWebSocketWireAckFrame, X as EDAWebSocketWireLaggedFrame, Y as EDAWebSocketWireHelloFrame, Z as EDAWebSocketWirePingFrame, _ as EDAWebSocketAckFrame, a as EDAWebSocketInFlightFrame, b as EDAWebSocketEventsFrame, c as SubscriberLagReason, d as makeWebSocketDeliveryState, et as EDA_WEB_SOCKET_PING_MESSAGE, f as onClientAck, g as restoreWebSocketDeliveryState, h as onHostSuppressedFrame, i as EDAWebSocketDeliveryState, it as makeEDAWebSocketWireProtocol, j as EDA_WS_CLOSE_PROTOCOL_ERROR, k as EDA_WS_CLOSE_GOING_AWAY, l as checkpointWebSocketDeliveryState, m as onEphemeralEvent, n as EDAWebSocketDeliveryCheckpoint, nt as EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION, o as EDAWebSocketSuppressedRange, p as onDurableEvents, q as EDAWebSocketWireFlowControl, r as EDAWebSocketDeliveryResult, rt as edaFrameworkWebSocketWireProtocol, s as MakeDeliveryStateInput, t as EDAWebSocketDeliveryAction, tt as EDA_WEB_SOCKET_PONG_MESSAGE, u as deliveryHelloFrame, v as EDAWebSocketClientFrame, w as EDAWebSocketLaggedFrame, x as EDAWebSocketFlowControl, y as EDAWebSocketErrorFrame, z as laggedCloseReason } from "../delivery-C0aN3Oza.js";
1
+ import { $ as EDAWebSocketWireProtocol, A as EDA_WS_CLOSE_LAGGED, B as EDAFrameworkWebSocketEvent, C as EDAWebSocketHelloFrame, D as EDAWebSocketServerFrame, E as EDAWebSocketPongFrame, F as SubscriberId, G as EDAWebSocketWireClientFrame, H as EDAWebSocketServerFrameEncoder, I as decodeEDAWebSocketClientMessage, J as EDAWebSocketWireHeartbeatFrame, K as EDAWebSocketWireErrorFrame, L as defaultEDAWebSocketFlowControl, M as EDA_WS_CLOSE_SEND_FAILED, N as EDA_WS_CLOSE_UNSUPPORTED_DATA, O as EDA_WEB_SOCKET_PROTOCOL_VERSION, P as FrameId, Q as EDAWebSocketWirePongFrame, R as encodeEDAWebSocketServerFrame, S as EDAWebSocketHeartbeatFrame, T as EDAWebSocketPingFrame, U as EDAWebSocketServerFrameInput, V as EDAWebSocketEventConsumerPolicy, W as EDAWebSocketWireAckFrame, X as EDAWebSocketWireLaggedFrame, Y as EDAWebSocketWireHelloFrame, Z as EDAWebSocketWirePingFrame, _ as EDAWebSocketAckFrame, a as EDAWebSocketInFlightFrame, b as EDAWebSocketEventsFrame, c as SubscriberLagReason, d as makeWebSocketDeliveryState, et as EDA_WEB_SOCKET_PING_MESSAGE, f as onClientAck, g as restoreWebSocketDeliveryState, h as onHostSuppressedFrame, i as EDAWebSocketDeliveryState, it as makeEDAWebSocketWireProtocol, j as EDA_WS_CLOSE_PROTOCOL_ERROR, k as EDA_WS_CLOSE_GOING_AWAY, l as checkpointWebSocketDeliveryState, m as onEphemeralEvent, n as EDAWebSocketDeliveryCheckpoint, nt as EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION, o as EDAWebSocketSuppressedRange, p as onDurableEvents, q as EDAWebSocketWireFlowControl, r as EDAWebSocketDeliveryResult, rt as edaFrameworkWebSocketWireProtocol, s as MakeDeliveryStateInput, t as EDAWebSocketDeliveryAction, tt as EDA_WEB_SOCKET_PONG_MESSAGE, u as deliveryHelloFrame, v as EDAWebSocketClientFrame, w as EDAWebSocketLaggedFrame, x as EDAWebSocketFlowControl, y as EDAWebSocketErrorFrame, z as laggedCloseReason } from "../delivery-RjM1_NAE.js";
2
2
  export { EDAFrameworkWebSocketEvent, EDAWebSocketAckFrame, EDAWebSocketClientFrame, EDAWebSocketDeliveryAction, EDAWebSocketDeliveryCheckpoint, EDAWebSocketDeliveryResult, EDAWebSocketDeliveryState, EDAWebSocketErrorFrame, EDAWebSocketEventConsumerPolicy, EDAWebSocketEventsFrame, EDAWebSocketFlowControl, EDAWebSocketHeartbeatFrame, EDAWebSocketHelloFrame, EDAWebSocketInFlightFrame, EDAWebSocketLaggedFrame, EDAWebSocketPingFrame, EDAWebSocketPongFrame, EDAWebSocketServerFrame, EDAWebSocketServerFrameEncoder, EDAWebSocketServerFrameInput, EDAWebSocketSuppressedRange, EDAWebSocketWireAckFrame, EDAWebSocketWireClientFrame, EDAWebSocketWireErrorFrame, EDAWebSocketWireFlowControl, EDAWebSocketWireHeartbeatFrame, EDAWebSocketWireHelloFrame, EDAWebSocketWireLaggedFrame, EDAWebSocketWirePingFrame, EDAWebSocketWirePongFrame, EDAWebSocketWireProtocol, EDA_WEB_SOCKET_PING_MESSAGE, EDA_WEB_SOCKET_PONG_MESSAGE, EDA_WEB_SOCKET_PROTOCOL_VERSION, EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION, EDA_WS_CLOSE_GOING_AWAY, EDA_WS_CLOSE_LAGGED, EDA_WS_CLOSE_PROTOCOL_ERROR, EDA_WS_CLOSE_SEND_FAILED, EDA_WS_CLOSE_UNSUPPORTED_DATA, FrameId, MakeDeliveryStateInput, SubscriberId, SubscriberLagReason, checkpointWebSocketDeliveryState, decodeEDAWebSocketClientMessage, defaultEDAWebSocketFlowControl, deliveryHelloFrame, edaFrameworkWebSocketWireProtocol, encodeEDAWebSocketServerFrame, laggedCloseReason, makeEDAWebSocketWireProtocol, makeWebSocketDeliveryState, onClientAck, onDurableEvents, onEphemeralEvent, onHostSuppressedFrame, restoreWebSocketDeliveryState };
@@ -1,2 +1,2 @@
1
- import { A as FrameId, B as EDAWebSocketWireFlowControl, C as EDAWebSocketServerFrame, D as EDA_WS_CLOSE_PROTOCOL_ERROR, E as EDA_WS_CLOSE_LAGGED, F as laggedCloseReason, G as EDAWebSocketWirePongFrame, H as EDAWebSocketWireHelloFrame, I as EDAFrameworkWebSocketEvent, J as EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION, K as EDA_WEB_SOCKET_PING_MESSAGE, L as EDAWebSocketWireAckFrame, M as decodeEDAWebSocketClientMessage, N as defaultEDAWebSocketFlowControl, O as EDA_WS_CLOSE_SEND_FAILED, P as encodeEDAWebSocketServerFrame, R as EDAWebSocketWireClientFrame, S as EDAWebSocketPongFrame, T as EDA_WS_CLOSE_GOING_AWAY, U as EDAWebSocketWireLaggedFrame, V as EDAWebSocketWireHeartbeatFrame, W as EDAWebSocketWirePingFrame, X as makeEDAWebSocketWireProtocol, Y as edaFrameworkWebSocketWireProtocol, _ as EDAWebSocketFlowControl, a as checkpointWebSocketDeliveryState, b as EDAWebSocketLaggedFrame, c as onClientAck, d as onHostSuppressedFrame, f as restoreWebSocketDeliveryState, g as EDAWebSocketEventsFrame, h as EDAWebSocketErrorFrame, i as SubscriberLagReason, j as SubscriberId, k as EDA_WS_CLOSE_UNSUPPORTED_DATA, l as onDurableEvents, m as EDAWebSocketClientFrame, n as EDAWebSocketInFlightFrame, o as deliveryHelloFrame, p as EDAWebSocketAckFrame, q as EDA_WEB_SOCKET_PONG_MESSAGE, r as EDAWebSocketSuppressedRange, s as makeWebSocketDeliveryState, t as EDAWebSocketDeliveryCheckpoint, u as onEphemeralEvent, v as EDAWebSocketHeartbeatFrame, w as EDA_WEB_SOCKET_PROTOCOL_VERSION, x as EDAWebSocketPingFrame, y as EDAWebSocketHelloFrame, z as EDAWebSocketWireErrorFrame } from "../delivery-Bb7pkQ9o.js";
1
+ import { A as FrameId, B as EDAWebSocketWireFlowControl, C as EDAWebSocketServerFrame, D as EDA_WS_CLOSE_PROTOCOL_ERROR, E as EDA_WS_CLOSE_LAGGED, F as laggedCloseReason, G as EDAWebSocketWirePongFrame, H as EDAWebSocketWireHelloFrame, I as EDAFrameworkWebSocketEvent, J as EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION, K as EDA_WEB_SOCKET_PING_MESSAGE, L as EDAWebSocketWireAckFrame, M as decodeEDAWebSocketClientMessage, N as defaultEDAWebSocketFlowControl, O as EDA_WS_CLOSE_SEND_FAILED, P as encodeEDAWebSocketServerFrame, R as EDAWebSocketWireClientFrame, S as EDAWebSocketPongFrame, T as EDA_WS_CLOSE_GOING_AWAY, U as EDAWebSocketWireLaggedFrame, V as EDAWebSocketWireHeartbeatFrame, W as EDAWebSocketWirePingFrame, X as makeEDAWebSocketWireProtocol, Y as edaFrameworkWebSocketWireProtocol, _ as EDAWebSocketFlowControl, a as checkpointWebSocketDeliveryState, b as EDAWebSocketLaggedFrame, c as onClientAck, d as onHostSuppressedFrame, f as restoreWebSocketDeliveryState, g as EDAWebSocketEventsFrame, h as EDAWebSocketErrorFrame, i as SubscriberLagReason, j as SubscriberId, k as EDA_WS_CLOSE_UNSUPPORTED_DATA, l as onDurableEvents, m as EDAWebSocketClientFrame, n as EDAWebSocketInFlightFrame, o as deliveryHelloFrame, p as EDAWebSocketAckFrame, q as EDA_WEB_SOCKET_PONG_MESSAGE, r as EDAWebSocketSuppressedRange, s as makeWebSocketDeliveryState, t as EDAWebSocketDeliveryCheckpoint, u as onEphemeralEvent, v as EDAWebSocketHeartbeatFrame, w as EDA_WEB_SOCKET_PROTOCOL_VERSION, x as EDAWebSocketPingFrame, y as EDAWebSocketHelloFrame, z as EDAWebSocketWireErrorFrame } from "../delivery-2ZILvoRD.js";
2
2
  export { EDAFrameworkWebSocketEvent, EDAWebSocketAckFrame, EDAWebSocketClientFrame, EDAWebSocketDeliveryCheckpoint, EDAWebSocketErrorFrame, EDAWebSocketEventsFrame, EDAWebSocketFlowControl, EDAWebSocketHeartbeatFrame, EDAWebSocketHelloFrame, EDAWebSocketInFlightFrame, EDAWebSocketLaggedFrame, EDAWebSocketPingFrame, EDAWebSocketPongFrame, EDAWebSocketServerFrame, EDAWebSocketSuppressedRange, EDAWebSocketWireAckFrame, EDAWebSocketWireClientFrame, EDAWebSocketWireErrorFrame, EDAWebSocketWireFlowControl, EDAWebSocketWireHeartbeatFrame, EDAWebSocketWireHelloFrame, EDAWebSocketWireLaggedFrame, EDAWebSocketWirePingFrame, EDAWebSocketWirePongFrame, EDA_WEB_SOCKET_PING_MESSAGE, EDA_WEB_SOCKET_PONG_MESSAGE, EDA_WEB_SOCKET_PROTOCOL_VERSION, EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION, EDA_WS_CLOSE_GOING_AWAY, EDA_WS_CLOSE_LAGGED, EDA_WS_CLOSE_PROTOCOL_ERROR, EDA_WS_CLOSE_SEND_FAILED, EDA_WS_CLOSE_UNSUPPORTED_DATA, FrameId, SubscriberId, SubscriberLagReason, checkpointWebSocketDeliveryState, decodeEDAWebSocketClientMessage, defaultEDAWebSocketFlowControl, deliveryHelloFrame, edaFrameworkWebSocketWireProtocol, encodeEDAWebSocketServerFrame, laggedCloseReason, makeEDAWebSocketWireProtocol, makeWebSocketDeliveryState, onClientAck, onDurableEvents, onEphemeralEvent, onHostSuppressedFrame, restoreWebSocketDeliveryState };
@@ -1,7 +1,7 @@
1
1
  import { h as SequenceNumber } from "./core-BcimKMIv.js";
2
- import { Ct as TranscriptRecordView, Ft as TranscriptVersion, S as TranscriptReadiness, T as TranscriptWindow, b as TranscriptActiveContent, mt as TranscriptLogIncarnation } from "./session-store-CWYZ29CV.js";
3
- import { r as TranscriptSubscriptionBase, s as TranscriptUpdate, t as TranscriptCoverage } from "./subscription-DelB8L87.js";
4
- import { $ as EDAWebSocketWireProtocol, A as EDA_WS_CLOSE_LAGGED, B as EDAFrameworkWebSocketEvent, C as EDAWebSocketHelloFrame, D as EDAWebSocketServerFrame, E as EDAWebSocketPongFrame, F as SubscriberId, G as EDAWebSocketWireClientFrame, H as EDAWebSocketServerFrameEncoder, I as decodeEDAWebSocketClientMessage, J as EDAWebSocketWireHeartbeatFrame, K as EDAWebSocketWireErrorFrame, L as defaultEDAWebSocketFlowControl, M as EDA_WS_CLOSE_SEND_FAILED, N as EDA_WS_CLOSE_UNSUPPORTED_DATA, O as EDA_WEB_SOCKET_PROTOCOL_VERSION, P as FrameId, Q as EDAWebSocketWirePongFrame, R as encodeEDAWebSocketServerFrame, S as EDAWebSocketHeartbeatFrame, T as EDAWebSocketPingFrame, U as EDAWebSocketServerFrameInput, V as EDAWebSocketEventConsumerPolicy, W as EDAWebSocketWireAckFrame, X as EDAWebSocketWireLaggedFrame, Y as EDAWebSocketWireHelloFrame, Z as EDAWebSocketWirePingFrame, _ as EDAWebSocketAckFrame, a as EDAWebSocketInFlightFrame, b as EDAWebSocketEventsFrame, c as SubscriberLagReason, d as makeWebSocketDeliveryState, et as EDA_WEB_SOCKET_PING_MESSAGE, f as onClientAck, g as restoreWebSocketDeliveryState, h as onHostSuppressedFrame, i as EDAWebSocketDeliveryState, it as makeEDAWebSocketWireProtocol, j as EDA_WS_CLOSE_PROTOCOL_ERROR, k as EDA_WS_CLOSE_GOING_AWAY, l as checkpointWebSocketDeliveryState, m as onEphemeralEvent, n as EDAWebSocketDeliveryCheckpoint, nt as EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION, o as EDAWebSocketSuppressedRange, p as onDurableEvents, q as EDAWebSocketWireFlowControl, r as EDAWebSocketDeliveryResult, rt as edaFrameworkWebSocketWireProtocol, s as MakeDeliveryStateInput, t as EDAWebSocketDeliveryAction, tt as EDA_WEB_SOCKET_PONG_MESSAGE, u as deliveryHelloFrame, v as EDAWebSocketClientFrame, w as EDAWebSocketLaggedFrame, x as EDAWebSocketFlowControl, y as EDAWebSocketErrorFrame, z as laggedCloseReason } from "./delivery-C0aN3Oza.js";
2
+ import { Ct as TranscriptRecordView, Ft as TranscriptVersion, S as TranscriptReadiness, T as TranscriptWindow, b as TranscriptActiveContent, mt as TranscriptLogIncarnation } from "./session-store-CQxg9U82.js";
3
+ import { r as TranscriptSubscriptionBase, s as TranscriptUpdate, t as TranscriptCoverage } from "./subscription-rC35dAWn.js";
4
+ import { $ as EDAWebSocketWireProtocol, A as EDA_WS_CLOSE_LAGGED, B as EDAFrameworkWebSocketEvent, C as EDAWebSocketHelloFrame, D as EDAWebSocketServerFrame, E as EDAWebSocketPongFrame, F as SubscriberId, G as EDAWebSocketWireClientFrame, H as EDAWebSocketServerFrameEncoder, I as decodeEDAWebSocketClientMessage, J as EDAWebSocketWireHeartbeatFrame, K as EDAWebSocketWireErrorFrame, L as defaultEDAWebSocketFlowControl, M as EDA_WS_CLOSE_SEND_FAILED, N as EDA_WS_CLOSE_UNSUPPORTED_DATA, O as EDA_WEB_SOCKET_PROTOCOL_VERSION, P as FrameId, Q as EDAWebSocketWirePongFrame, R as encodeEDAWebSocketServerFrame, S as EDAWebSocketHeartbeatFrame, T as EDAWebSocketPingFrame, U as EDAWebSocketServerFrameInput, V as EDAWebSocketEventConsumerPolicy, W as EDAWebSocketWireAckFrame, X as EDAWebSocketWireLaggedFrame, Y as EDAWebSocketWireHelloFrame, Z as EDAWebSocketWirePingFrame, _ as EDAWebSocketAckFrame, a as EDAWebSocketInFlightFrame, b as EDAWebSocketEventsFrame, c as SubscriberLagReason, d as makeWebSocketDeliveryState, et as EDA_WEB_SOCKET_PING_MESSAGE, f as onClientAck, g as restoreWebSocketDeliveryState, h as onHostSuppressedFrame, i as EDAWebSocketDeliveryState, it as makeEDAWebSocketWireProtocol, j as EDA_WS_CLOSE_PROTOCOL_ERROR, k as EDA_WS_CLOSE_GOING_AWAY, l as checkpointWebSocketDeliveryState, m as onEphemeralEvent, n as EDAWebSocketDeliveryCheckpoint, nt as EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION, o as EDAWebSocketSuppressedRange, p as onDurableEvents, q as EDAWebSocketWireFlowControl, r as EDAWebSocketDeliveryResult, rt as edaFrameworkWebSocketWireProtocol, s as MakeDeliveryStateInput, t as EDAWebSocketDeliveryAction, tt as EDA_WEB_SOCKET_PONG_MESSAGE, u as deliveryHelloFrame, v as EDAWebSocketClientFrame, w as EDAWebSocketLaggedFrame, x as EDAWebSocketFlowControl, y as EDAWebSocketErrorFrame, z as laggedCloseReason } from "./delivery-RjM1_NAE.js";
5
5
  import * as Schema from "effect/Schema";
6
6
  //#region src/websocket/transcript.d.ts
7
7
  /**
package/dist/websocket.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SequenceNumber } from "./types/core.js";
2
- import { E as TranscriptOrder, _ as TranscriptCursor } from "./records-DWKEjuqb.js";
3
- import { c as transcriptCoverageOf, i as TranscriptUpdate, n as TranscriptRequestId, r as TranscriptSubscriptionBase, t as TranscriptCoverage } from "./subscription-hkD4M3xp.js";
4
- import { A as FrameId, B as EDAWebSocketWireFlowControl, C as EDAWebSocketServerFrame, D as EDA_WS_CLOSE_PROTOCOL_ERROR, E as EDA_WS_CLOSE_LAGGED, F as laggedCloseReason, G as EDAWebSocketWirePongFrame, H as EDAWebSocketWireHelloFrame, I as EDAFrameworkWebSocketEvent, J as EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION, K as EDA_WEB_SOCKET_PING_MESSAGE, L as EDAWebSocketWireAckFrame, M as decodeEDAWebSocketClientMessage, N as defaultEDAWebSocketFlowControl, O as EDA_WS_CLOSE_SEND_FAILED, P as encodeEDAWebSocketServerFrame, R as EDAWebSocketWireClientFrame, S as EDAWebSocketPongFrame, T as EDA_WS_CLOSE_GOING_AWAY, U as EDAWebSocketWireLaggedFrame, V as EDAWebSocketWireHeartbeatFrame, W as EDAWebSocketWirePingFrame, X as makeEDAWebSocketWireProtocol, Y as edaFrameworkWebSocketWireProtocol, _ as EDAWebSocketFlowControl, a as checkpointWebSocketDeliveryState, b as EDAWebSocketLaggedFrame, c as onClientAck, d as onHostSuppressedFrame, f as restoreWebSocketDeliveryState, g as EDAWebSocketEventsFrame, h as EDAWebSocketErrorFrame, i as SubscriberLagReason, j as SubscriberId, k as EDA_WS_CLOSE_UNSUPPORTED_DATA, l as onDurableEvents, m as EDAWebSocketClientFrame, n as EDAWebSocketInFlightFrame, o as deliveryHelloFrame, p as EDAWebSocketAckFrame, q as EDA_WEB_SOCKET_PONG_MESSAGE, r as EDAWebSocketSuppressedRange, s as makeWebSocketDeliveryState, t as EDAWebSocketDeliveryCheckpoint, u as onEphemeralEvent, v as EDAWebSocketHeartbeatFrame, w as EDA_WEB_SOCKET_PROTOCOL_VERSION, x as EDAWebSocketPingFrame, y as EDAWebSocketHelloFrame, z as EDAWebSocketWireErrorFrame } from "./delivery-Bb7pkQ9o.js";
2
+ import { E as TranscriptOrder, _ as TranscriptCursor } from "./records--54mZEBx.js";
3
+ import { c as transcriptCoverageOf, i as TranscriptUpdate, n as TranscriptRequestId, r as TranscriptSubscriptionBase, t as TranscriptCoverage } from "./subscription-DmO3BcdT.js";
4
+ import { A as FrameId, B as EDAWebSocketWireFlowControl, C as EDAWebSocketServerFrame, D as EDA_WS_CLOSE_PROTOCOL_ERROR, E as EDA_WS_CLOSE_LAGGED, F as laggedCloseReason, G as EDAWebSocketWirePongFrame, H as EDAWebSocketWireHelloFrame, I as EDAFrameworkWebSocketEvent, J as EDA_WEB_SOCKET_WIRE_PROTOCOL_VERSION, K as EDA_WEB_SOCKET_PING_MESSAGE, L as EDAWebSocketWireAckFrame, M as decodeEDAWebSocketClientMessage, N as defaultEDAWebSocketFlowControl, O as EDA_WS_CLOSE_SEND_FAILED, P as encodeEDAWebSocketServerFrame, R as EDAWebSocketWireClientFrame, S as EDAWebSocketPongFrame, T as EDA_WS_CLOSE_GOING_AWAY, U as EDAWebSocketWireLaggedFrame, V as EDAWebSocketWireHeartbeatFrame, W as EDAWebSocketWirePingFrame, X as makeEDAWebSocketWireProtocol, Y as edaFrameworkWebSocketWireProtocol, _ as EDAWebSocketFlowControl, a as checkpointWebSocketDeliveryState, b as EDAWebSocketLaggedFrame, c as onClientAck, d as onHostSuppressedFrame, f as restoreWebSocketDeliveryState, g as EDAWebSocketEventsFrame, h as EDAWebSocketErrorFrame, i as SubscriberLagReason, j as SubscriberId, k as EDA_WS_CLOSE_UNSUPPORTED_DATA, l as onDurableEvents, m as EDAWebSocketClientFrame, n as EDAWebSocketInFlightFrame, o as deliveryHelloFrame, p as EDAWebSocketAckFrame, q as EDA_WEB_SOCKET_PONG_MESSAGE, r as EDAWebSocketSuppressedRange, s as makeWebSocketDeliveryState, t as EDAWebSocketDeliveryCheckpoint, u as onEphemeralEvent, v as EDAWebSocketHeartbeatFrame, w as EDA_WEB_SOCKET_PROTOCOL_VERSION, x as EDAWebSocketPingFrame, y as EDAWebSocketHelloFrame, z as EDAWebSocketWireErrorFrame } from "./delivery-2ZILvoRD.js";
5
5
  import * as Schema from "effect/Schema";
6
6
  import * as Exit from "effect/Exit";
7
7
  //#region src/websocket/transcript.ts
@@ -1,5 +1,5 @@
1
1
  import { h as SequenceNumber } from "./core-BcimKMIv.js";
2
- import { A as TranscriptDefinition, At as TranscriptToolRecord, C as TranscriptVersionMeta, D as TranscriptWindowSelector, E as TranscriptWindowLimits, Ft as TranscriptVersion, H as AssistantRecordId, Nt as TranscriptUserRecord, S as TranscriptReadiness, T as TranscriptWindow, gt as TranscriptOrderKey, jt as TranscriptTopLevelRecord, mt as TranscriptLogIncarnation, t as CommittedDurableEvent, v as TranscriptCursorMismatch, vt as TranscriptRecord, xt as TranscriptRecordId } from "./session-store-CWYZ29CV.js";
2
+ import { A as TranscriptDefinition, At as TranscriptToolRecord, C as TranscriptVersionMeta, D as TranscriptWindowSelector, E as TranscriptWindowLimits, Ft as TranscriptVersion, H as AssistantRecordId, Nt as TranscriptUserRecord, S as TranscriptReadiness, T as TranscriptWindow, gt as TranscriptOrderKey, jt as TranscriptTopLevelRecord, mt as TranscriptLogIncarnation, t as CommittedDurableEvent, v as TranscriptCursorMismatch, vt as TranscriptRecord, xt as TranscriptRecordId } from "./session-store-CQxg9U82.js";
3
3
  import * as Schema from "effect/Schema";
4
4
  import * as Result from "effect/Result";
5
5
  //#region src/transcript/plan.d.ts
@@ -110,4 +110,4 @@ declare const inactiveTranscriptWindow: (incarnation: TranscriptLogIncarnation,
110
110
  declare const readTranscriptWindowFrom: (source: TranscriptWindowSource, selector: TranscriptWindowSelector, limits: TranscriptWindowLimits) => Result.Result<TranscriptWindow, TranscriptCursorMismatch>;
111
111
  //#endregion
112
112
  export { transcriptReadiness as a, TranscriptAliasNamespace as c, TranscriptProjectionError as d, readTranscriptWindowFrom as i, TranscriptChangePlan as l, buildingTranscriptWindow as n, PlanTranscriptBatch as o, inactiveTranscriptWindow as r, TranscriptAlias as s, TranscriptWindowSource as t, TranscriptLookup as u };
113
- //# sourceMappingURL=window-read-BG8lxMVB.d.ts.map
113
+ //# sourceMappingURL=window-read-CBZEJ84M.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { SequenceNumber } from "./types/core.js";
2
2
  import { u as NonNegativeInt } from "./envelope-BCzKUq_z.js";
3
- import { A as TranscriptRecordFromEnvelope, E as TranscriptOrder, W as isPendingTranscriptUserRecord, Y as transcriptRecordId } from "./records-DWKEjuqb.js";
3
+ import { A as TranscriptRecordFromEnvelope, E as TranscriptOrder, W as isPendingTranscriptUserRecord, Y as transcriptRecordId } from "./records--54mZEBx.js";
4
4
  import * as Context from "effect/Context";
5
5
  import * as Schema from "effect/Schema";
6
6
  import * as Result from "effect/Result";
@@ -261,4 +261,4 @@ const withBodyRefs = (record, maxInlineBodyBytes) => {
261
261
  //#endregion
262
262
  export { EDATranscriptStore as a, transcriptReadiness as i, inactiveTranscriptWindow as n, TranscriptCursorMismatch as o, readTranscriptWindowFrom as r, buildingTranscriptWindow as t };
263
263
 
264
- //# sourceMappingURL=window-read-C8anZVdl.js.map
264
+ //# sourceMappingURL=window-read-DPFAA1hM.js.map