effect-durable-agent 0.3.0 → 0.4.1

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 (33) hide show
  1. package/dist/{delivery-BKYmgnKC.d.ts → delivery-BygJwrSV.d.ts} +2 -2
  2. package/dist/domain/command-queues.d.ts +1 -1
  3. package/dist/domain/message-transcript.d.ts +1 -1
  4. package/dist/domain/reduced-state.d.ts +1 -1
  5. package/dist/domain/run-scheduling.d.ts +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/{reduced-state-DV0696_s.d.ts → reduced-state-BvNK4zug.d.ts} +423 -400
  8. package/dist/services/compaction.d.ts +1 -1
  9. package/dist/services/decider.d.ts +1 -1
  10. package/dist/services/model-call.d.ts +1 -1
  11. package/dist/services/prompt-projector.d.ts +1 -1
  12. package/dist/services/run-scheduler.d.ts +1 -1
  13. package/dist/services/runtime-layer.d.ts +1 -2
  14. package/dist/services/runtime-layer.js +1 -1
  15. package/dist/services/runtime.d.ts +1 -1
  16. package/dist/services/runtime.js +1 -1
  17. package/dist/services/session-event-observer.d.ts +1 -1
  18. package/dist/services/session-event-observer.js.map +1 -1
  19. package/dist/services/session-query.d.ts +1 -1
  20. package/dist/services/session-query.js +1 -1
  21. package/dist/services/session-state.d.ts +1 -1
  22. package/dist/services/session-state.js +1 -1
  23. package/dist/services/sink-registry.d.ts +1 -1
  24. package/dist/services/tool-registry.d.ts +1 -1
  25. package/dist/{session-state-BbJW2_P0.js → session-state-oUTUeAuF.js} +109 -16
  26. package/dist/session-state-oUTUeAuF.js.map +1 -0
  27. package/dist/testkit/layers.d.ts +1 -2
  28. package/dist/testkit/layers.js +1 -1
  29. package/dist/websocket/events.d.ts +1 -1
  30. package/dist/websocket.d.ts +1 -1
  31. package/package.json +1 -1
  32. package/dist/session-event-observer-BWQUJTcN.d.ts +0 -24
  33. package/dist/session-state-BbJW2_P0.js.map +0 -1
@@ -8,7 +8,6 @@ import { i as ContextProjection, n as CompactionPolicyId, t as CompactionExecuto
8
8
  import { i as EDAAppEvents, o as EDASessionStore, r as DurableAppendEntry, s as EDASessionStoreError, t as CommittedDurableEvent } from "./session-store-DaSHeg8Q.js";
9
9
  import { t as ModelResolver } from "./model-resolver-O8Kn27GH.js";
10
10
  import { a as EDAReducerStateSnapshot, r as EDAReducerRegistry } from "./reducer-registry-Bqn5B4JO.js";
11
- import { t as SessionEventObserver } from "./session-event-observer-BWQUJTcN.js";
12
11
  import { t as IdGenerator } from "./id-generator-BKGoKjt-.js";
13
12
  import { t as EDAKeepAlive } from "./keep-alive-_zFCUvt3.js";
14
13
  import { n as SinkCheckpointStore } from "./sink-checkpoint-store-CUvIVvlZ.js";
@@ -364,6 +363,29 @@ declare const planWaitingRunInterruption: (state: SchedulingState, controlComman
364
363
  cancelCommandId: string & import("effect/Brand").Brand<"CommandId">;
365
364
  } | undefined;
366
365
  //#endregion
366
+ //#region src/services/session-event-observer.d.ts
367
+ /**
368
+ * Outbound integration point notified synchronously after EDA publishes an event.
369
+ *
370
+ * Hosts provide this service while composing the runtime. Implementations own
371
+ * their failures and never expose host errors to the session runtime.
372
+ */
373
+ interface SessionEventObserverShape {
374
+ /**
375
+ * `state` is the session's reduced state when `event` is published. A durable batch folds
376
+ * before it publishes, so `state.lastSeq >= event.position.seq`, with equality on the batch's
377
+ * last event. An ephemeral event is published at the head, so `state.lastSeq` equals its seq.
378
+ * State with `lastSeq` equal to a durable event's seq is exactly the fold through that event.
379
+ */
380
+ readonly onEvent: (event: PositionedEvent, state: ReducedState) => Effect.Effect<void>;
381
+ }
382
+ declare const SessionEventObserver_base: Context.ServiceClass<SessionEventObserver, "@effect-durable-agent/SessionEventObserver", SessionEventObserverShape>;
383
+ /** Host-provided observer for append-driven integrations such as hibernatable WebSockets. */
384
+ declare class SessionEventObserver extends SessionEventObserver_base {
385
+ static readonly Noop: Layer.Layer<SessionEventObserver, never, never>;
386
+ static readonly FromHandler: (onEvent: SessionEventObserverShape["onEvent"]) => Layer.Layer<SessionEventObserver>;
387
+ }
388
+ //#endregion
367
389
  //#region src/services/live-event-bus.d.ts
368
390
  /** Live-only replay buffer for the currently open turn. */
369
391
  interface ActiveTurnEphemeralReplay {
@@ -373,7 +395,8 @@ interface ActiveTurnEphemeralReplay {
373
395
  }
374
396
  /** In-memory live fanout plus active-turn replay source for reconnect streams. */
375
397
  interface LiveEventBusShape {
376
- readonly publish: (event: PositionedEvent) => Effect.Effect<boolean>;
398
+ /** Publish one event with the session's reduced state at publication, for the observer. */
399
+ readonly publish: (event: PositionedEvent, state: ReducedState) => Effect.Effect<boolean>;
377
400
  readonly subscribe: () => Effect.Effect<Stream.Stream<PositionedEvent>, never, Scope.Scope>;
378
401
  readonly subscribeQueue: () => Effect.Effect<PubSub.Subscription<PositionedEvent>, never, Scope.Scope>;
379
402
  /** Snapshot raw live-only events retained for the currently open turn. */
@@ -16395,6 +16418,72 @@ interface RunTurnInput extends RunTurnContext {
16395
16418
  /** Summary returned after the turn runner processes one inference stream. */
16396
16419
  declare const TurnRunResult: Schema.Struct<{
16397
16420
  readonly started: Schema.Codec<CommittedDurableEvent<{
16421
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
16422
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
16423
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
16424
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
16425
+ readonly trace: {
16426
+ readonly span: {
16427
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
16428
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
16429
+ readonly sampled: boolean;
16430
+ readonly tracestate: string | null;
16431
+ };
16432
+ readonly links: readonly {
16433
+ readonly context: {
16434
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
16435
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
16436
+ readonly sampled: boolean;
16437
+ readonly tracestate: string | null;
16438
+ };
16439
+ readonly attributes: {
16440
+ readonly [x: string]: string | number | boolean;
16441
+ };
16442
+ }[];
16443
+ };
16444
+ readonly durability: "durable";
16445
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
16446
+ readonly namespace: "effect-durable-agent";
16447
+ readonly type: "CompactionRequested";
16448
+ readonly schemaVersion: number;
16449
+ readonly payload: {
16450
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
16451
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
16452
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
16453
+ };
16454
+ } | {
16455
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
16456
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
16457
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
16458
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
16459
+ readonly trace: {
16460
+ readonly span: {
16461
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
16462
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
16463
+ readonly sampled: boolean;
16464
+ readonly tracestate: string | null;
16465
+ };
16466
+ readonly links: readonly {
16467
+ readonly context: {
16468
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
16469
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
16470
+ readonly sampled: boolean;
16471
+ readonly tracestate: string | null;
16472
+ };
16473
+ readonly attributes: {
16474
+ readonly [x: string]: string | number | boolean;
16475
+ };
16476
+ }[];
16477
+ };
16478
+ readonly durability: "durable";
16479
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
16480
+ readonly namespace: "effect-durable-agent";
16481
+ readonly type: "CompactionStarted";
16482
+ readonly schemaVersion: number;
16483
+ readonly payload: {
16484
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
16485
+ };
16486
+ } | {
16398
16487
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
16399
16488
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
16400
16489
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -18885,72 +18974,6 @@ declare const TurnRunResult: Schema.Struct<{
18885
18974
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
18886
18975
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
18887
18976
  };
18888
- } | {
18889
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
18890
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
18891
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
18892
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
18893
- readonly trace: {
18894
- readonly span: {
18895
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
18896
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
18897
- readonly sampled: boolean;
18898
- readonly tracestate: string | null;
18899
- };
18900
- readonly links: readonly {
18901
- readonly context: {
18902
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
18903
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
18904
- readonly sampled: boolean;
18905
- readonly tracestate: string | null;
18906
- };
18907
- readonly attributes: {
18908
- readonly [x: string]: string | number | boolean;
18909
- };
18910
- }[];
18911
- };
18912
- readonly durability: "durable";
18913
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
18914
- readonly namespace: "effect-durable-agent";
18915
- readonly type: "CompactionRequested";
18916
- readonly schemaVersion: number;
18917
- readonly payload: {
18918
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
18919
- readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
18920
- readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
18921
- };
18922
- } | {
18923
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
18924
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
18925
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
18926
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
18927
- readonly trace: {
18928
- readonly span: {
18929
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
18930
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
18931
- readonly sampled: boolean;
18932
- readonly tracestate: string | null;
18933
- };
18934
- readonly links: readonly {
18935
- readonly context: {
18936
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
18937
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
18938
- readonly sampled: boolean;
18939
- readonly tracestate: string | null;
18940
- };
18941
- readonly attributes: {
18942
- readonly [x: string]: string | number | boolean;
18943
- };
18944
- }[];
18945
- };
18946
- readonly durability: "durable";
18947
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
18948
- readonly namespace: "effect-durable-agent";
18949
- readonly type: "CompactionStarted";
18950
- readonly schemaVersion: number;
18951
- readonly payload: {
18952
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
18953
- };
18954
18977
  } | {
18955
18978
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
18956
18979
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -19322,6 +19345,72 @@ declare const TurnRunResult: Schema.Struct<{
19322
19345
  }, never, never>;
19323
19346
  readonly inference: Schema.Struct<{
19324
19347
  readonly started: Schema.Codec<CommittedDurableEvent<{
19348
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
19349
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
19350
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
19351
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
19352
+ readonly trace: {
19353
+ readonly span: {
19354
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
19355
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
19356
+ readonly sampled: boolean;
19357
+ readonly tracestate: string | null;
19358
+ };
19359
+ readonly links: readonly {
19360
+ readonly context: {
19361
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
19362
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
19363
+ readonly sampled: boolean;
19364
+ readonly tracestate: string | null;
19365
+ };
19366
+ readonly attributes: {
19367
+ readonly [x: string]: string | number | boolean;
19368
+ };
19369
+ }[];
19370
+ };
19371
+ readonly durability: "durable";
19372
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
19373
+ readonly namespace: "effect-durable-agent";
19374
+ readonly type: "CompactionRequested";
19375
+ readonly schemaVersion: number;
19376
+ readonly payload: {
19377
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
19378
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
19379
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
19380
+ };
19381
+ } | {
19382
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
19383
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
19384
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
19385
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
19386
+ readonly trace: {
19387
+ readonly span: {
19388
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
19389
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
19390
+ readonly sampled: boolean;
19391
+ readonly tracestate: string | null;
19392
+ };
19393
+ readonly links: readonly {
19394
+ readonly context: {
19395
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
19396
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
19397
+ readonly sampled: boolean;
19398
+ readonly tracestate: string | null;
19399
+ };
19400
+ readonly attributes: {
19401
+ readonly [x: string]: string | number | boolean;
19402
+ };
19403
+ }[];
19404
+ };
19405
+ readonly durability: "durable";
19406
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
19407
+ readonly namespace: "effect-durable-agent";
19408
+ readonly type: "CompactionStarted";
19409
+ readonly schemaVersion: number;
19410
+ readonly payload: {
19411
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
19412
+ };
19413
+ } | {
19325
19414
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
19326
19415
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
19327
19416
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -21812,72 +21901,6 @@ declare const TurnRunResult: Schema.Struct<{
21812
21901
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
21813
21902
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
21814
21903
  };
21815
- } | {
21816
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
21817
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
21818
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
21819
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
21820
- readonly trace: {
21821
- readonly span: {
21822
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
21823
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
21824
- readonly sampled: boolean;
21825
- readonly tracestate: string | null;
21826
- };
21827
- readonly links: readonly {
21828
- readonly context: {
21829
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
21830
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
21831
- readonly sampled: boolean;
21832
- readonly tracestate: string | null;
21833
- };
21834
- readonly attributes: {
21835
- readonly [x: string]: string | number | boolean;
21836
- };
21837
- }[];
21838
- };
21839
- readonly durability: "durable";
21840
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
21841
- readonly namespace: "effect-durable-agent";
21842
- readonly type: "CompactionRequested";
21843
- readonly schemaVersion: number;
21844
- readonly payload: {
21845
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
21846
- readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
21847
- readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
21848
- };
21849
- } | {
21850
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
21851
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
21852
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
21853
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
21854
- readonly trace: {
21855
- readonly span: {
21856
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
21857
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
21858
- readonly sampled: boolean;
21859
- readonly tracestate: string | null;
21860
- };
21861
- readonly links: readonly {
21862
- readonly context: {
21863
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
21864
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
21865
- readonly sampled: boolean;
21866
- readonly tracestate: string | null;
21867
- };
21868
- readonly attributes: {
21869
- readonly [x: string]: string | number | boolean;
21870
- };
21871
- }[];
21872
- };
21873
- readonly durability: "durable";
21874
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
21875
- readonly namespace: "effect-durable-agent";
21876
- readonly type: "CompactionStarted";
21877
- readonly schemaVersion: number;
21878
- readonly payload: {
21879
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
21880
- };
21881
21904
  } | {
21882
21905
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
21883
21906
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -22250,6 +22273,72 @@ declare const TurnRunResult: Schema.Struct<{
22250
22273
  readonly partsRecorded: Schema.Int;
22251
22274
  readonly terminal: Schema.Union<readonly [Schema.TaggedStruct<"InferenceRunFinished", {
22252
22275
  readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
22276
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
22277
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
22278
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
22279
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
22280
+ readonly trace: {
22281
+ readonly span: {
22282
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
22283
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
22284
+ readonly sampled: boolean;
22285
+ readonly tracestate: string | null;
22286
+ };
22287
+ readonly links: readonly {
22288
+ readonly context: {
22289
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
22290
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
22291
+ readonly sampled: boolean;
22292
+ readonly tracestate: string | null;
22293
+ };
22294
+ readonly attributes: {
22295
+ readonly [x: string]: string | number | boolean;
22296
+ };
22297
+ }[];
22298
+ };
22299
+ readonly durability: "durable";
22300
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
22301
+ readonly namespace: "effect-durable-agent";
22302
+ readonly type: "CompactionRequested";
22303
+ readonly schemaVersion: number;
22304
+ readonly payload: {
22305
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
22306
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
22307
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
22308
+ };
22309
+ } | {
22310
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
22311
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
22312
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
22313
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
22314
+ readonly trace: {
22315
+ readonly span: {
22316
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
22317
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
22318
+ readonly sampled: boolean;
22319
+ readonly tracestate: string | null;
22320
+ };
22321
+ readonly links: readonly {
22322
+ readonly context: {
22323
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
22324
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
22325
+ readonly sampled: boolean;
22326
+ readonly tracestate: string | null;
22327
+ };
22328
+ readonly attributes: {
22329
+ readonly [x: string]: string | number | boolean;
22330
+ };
22331
+ }[];
22332
+ };
22333
+ readonly durability: "durable";
22334
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
22335
+ readonly namespace: "effect-durable-agent";
22336
+ readonly type: "CompactionStarted";
22337
+ readonly schemaVersion: number;
22338
+ readonly payload: {
22339
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
22340
+ };
22341
+ } | {
22253
22342
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
22254
22343
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
22255
22344
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -24740,72 +24829,6 @@ declare const TurnRunResult: Schema.Struct<{
24740
24829
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
24741
24830
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
24742
24831
  };
24743
- } | {
24744
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
24745
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
24746
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
24747
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
24748
- readonly trace: {
24749
- readonly span: {
24750
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
24751
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
24752
- readonly sampled: boolean;
24753
- readonly tracestate: string | null;
24754
- };
24755
- readonly links: readonly {
24756
- readonly context: {
24757
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
24758
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
24759
- readonly sampled: boolean;
24760
- readonly tracestate: string | null;
24761
- };
24762
- readonly attributes: {
24763
- readonly [x: string]: string | number | boolean;
24764
- };
24765
- }[];
24766
- };
24767
- readonly durability: "durable";
24768
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
24769
- readonly namespace: "effect-durable-agent";
24770
- readonly type: "CompactionRequested";
24771
- readonly schemaVersion: number;
24772
- readonly payload: {
24773
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
24774
- readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
24775
- readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
24776
- };
24777
- } | {
24778
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
24779
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
24780
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
24781
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
24782
- readonly trace: {
24783
- readonly span: {
24784
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
24785
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
24786
- readonly sampled: boolean;
24787
- readonly tracestate: string | null;
24788
- };
24789
- readonly links: readonly {
24790
- readonly context: {
24791
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
24792
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
24793
- readonly sampled: boolean;
24794
- readonly tracestate: string | null;
24795
- };
24796
- readonly attributes: {
24797
- readonly [x: string]: string | number | boolean;
24798
- };
24799
- }[];
24800
- };
24801
- readonly durability: "durable";
24802
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
24803
- readonly namespace: "effect-durable-agent";
24804
- readonly type: "CompactionStarted";
24805
- readonly schemaVersion: number;
24806
- readonly payload: {
24807
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
24808
- };
24809
24832
  } | {
24810
24833
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
24811
24834
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -25180,6 +25203,72 @@ declare const TurnRunResult: Schema.Struct<{
25180
25203
  readonly responseParts: Schema.$Array<Schema.Any>;
25181
25204
  }>, Schema.TaggedStruct<"InferenceRunFailed", {
25182
25205
  readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
25206
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
25207
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
25208
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
25209
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
25210
+ readonly trace: {
25211
+ readonly span: {
25212
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
25213
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
25214
+ readonly sampled: boolean;
25215
+ readonly tracestate: string | null;
25216
+ };
25217
+ readonly links: readonly {
25218
+ readonly context: {
25219
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
25220
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
25221
+ readonly sampled: boolean;
25222
+ readonly tracestate: string | null;
25223
+ };
25224
+ readonly attributes: {
25225
+ readonly [x: string]: string | number | boolean;
25226
+ };
25227
+ }[];
25228
+ };
25229
+ readonly durability: "durable";
25230
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
25231
+ readonly namespace: "effect-durable-agent";
25232
+ readonly type: "CompactionRequested";
25233
+ readonly schemaVersion: number;
25234
+ readonly payload: {
25235
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
25236
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
25237
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
25238
+ };
25239
+ } | {
25240
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
25241
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
25242
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
25243
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
25244
+ readonly trace: {
25245
+ readonly span: {
25246
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
25247
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
25248
+ readonly sampled: boolean;
25249
+ readonly tracestate: string | null;
25250
+ };
25251
+ readonly links: readonly {
25252
+ readonly context: {
25253
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
25254
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
25255
+ readonly sampled: boolean;
25256
+ readonly tracestate: string | null;
25257
+ };
25258
+ readonly attributes: {
25259
+ readonly [x: string]: string | number | boolean;
25260
+ };
25261
+ }[];
25262
+ };
25263
+ readonly durability: "durable";
25264
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
25265
+ readonly namespace: "effect-durable-agent";
25266
+ readonly type: "CompactionStarted";
25267
+ readonly schemaVersion: number;
25268
+ readonly payload: {
25269
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
25270
+ };
25271
+ } | {
25183
25272
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
25184
25273
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
25185
25274
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -27670,72 +27759,6 @@ declare const TurnRunResult: Schema.Struct<{
27670
27759
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
27671
27760
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
27672
27761
  };
27673
- } | {
27674
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
27675
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
27676
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
27677
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
27678
- readonly trace: {
27679
- readonly span: {
27680
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
27681
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
27682
- readonly sampled: boolean;
27683
- readonly tracestate: string | null;
27684
- };
27685
- readonly links: readonly {
27686
- readonly context: {
27687
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
27688
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
27689
- readonly sampled: boolean;
27690
- readonly tracestate: string | null;
27691
- };
27692
- readonly attributes: {
27693
- readonly [x: string]: string | number | boolean;
27694
- };
27695
- }[];
27696
- };
27697
- readonly durability: "durable";
27698
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
27699
- readonly namespace: "effect-durable-agent";
27700
- readonly type: "CompactionRequested";
27701
- readonly schemaVersion: number;
27702
- readonly payload: {
27703
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
27704
- readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
27705
- readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
27706
- };
27707
- } | {
27708
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
27709
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
27710
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
27711
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
27712
- readonly trace: {
27713
- readonly span: {
27714
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
27715
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
27716
- readonly sampled: boolean;
27717
- readonly tracestate: string | null;
27718
- };
27719
- readonly links: readonly {
27720
- readonly context: {
27721
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
27722
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
27723
- readonly sampled: boolean;
27724
- readonly tracestate: string | null;
27725
- };
27726
- readonly attributes: {
27727
- readonly [x: string]: string | number | boolean;
27728
- };
27729
- }[];
27730
- };
27731
- readonly durability: "durable";
27732
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
27733
- readonly namespace: "effect-durable-agent";
27734
- readonly type: "CompactionStarted";
27735
- readonly schemaVersion: number;
27736
- readonly payload: {
27737
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
27738
- };
27739
27762
  } | {
27740
27763
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
27741
27764
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -28109,6 +28132,72 @@ declare const TurnRunResult: Schema.Struct<{
28109
28132
  }>;
28110
28133
  readonly outcome: Schema.Union<readonly [Schema.TaggedStruct<"TurnRunCompleted", {
28111
28134
  readonly committed: Schema.Codec<CommittedDurableEvent<{
28135
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
28136
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
28137
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
28138
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
28139
+ readonly trace: {
28140
+ readonly span: {
28141
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
28142
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
28143
+ readonly sampled: boolean;
28144
+ readonly tracestate: string | null;
28145
+ };
28146
+ readonly links: readonly {
28147
+ readonly context: {
28148
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
28149
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
28150
+ readonly sampled: boolean;
28151
+ readonly tracestate: string | null;
28152
+ };
28153
+ readonly attributes: {
28154
+ readonly [x: string]: string | number | boolean;
28155
+ };
28156
+ }[];
28157
+ };
28158
+ readonly durability: "durable";
28159
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
28160
+ readonly namespace: "effect-durable-agent";
28161
+ readonly type: "CompactionRequested";
28162
+ readonly schemaVersion: number;
28163
+ readonly payload: {
28164
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
28165
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
28166
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
28167
+ };
28168
+ } | {
28169
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
28170
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
28171
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
28172
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
28173
+ readonly trace: {
28174
+ readonly span: {
28175
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
28176
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
28177
+ readonly sampled: boolean;
28178
+ readonly tracestate: string | null;
28179
+ };
28180
+ readonly links: readonly {
28181
+ readonly context: {
28182
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
28183
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
28184
+ readonly sampled: boolean;
28185
+ readonly tracestate: string | null;
28186
+ };
28187
+ readonly attributes: {
28188
+ readonly [x: string]: string | number | boolean;
28189
+ };
28190
+ }[];
28191
+ };
28192
+ readonly durability: "durable";
28193
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
28194
+ readonly namespace: "effect-durable-agent";
28195
+ readonly type: "CompactionStarted";
28196
+ readonly schemaVersion: number;
28197
+ readonly payload: {
28198
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
28199
+ };
28200
+ } | {
28112
28201
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
28113
28202
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
28114
28203
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -30599,72 +30688,6 @@ declare const TurnRunResult: Schema.Struct<{
30599
30688
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
30600
30689
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
30601
30690
  };
30602
- } | {
30603
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
30604
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
30605
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
30606
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
30607
- readonly trace: {
30608
- readonly span: {
30609
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
30610
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
30611
- readonly sampled: boolean;
30612
- readonly tracestate: string | null;
30613
- };
30614
- readonly links: readonly {
30615
- readonly context: {
30616
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
30617
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
30618
- readonly sampled: boolean;
30619
- readonly tracestate: string | null;
30620
- };
30621
- readonly attributes: {
30622
- readonly [x: string]: string | number | boolean;
30623
- };
30624
- }[];
30625
- };
30626
- readonly durability: "durable";
30627
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
30628
- readonly namespace: "effect-durable-agent";
30629
- readonly type: "CompactionRequested";
30630
- readonly schemaVersion: number;
30631
- readonly payload: {
30632
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
30633
- readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
30634
- readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
30635
- };
30636
- } | {
30637
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
30638
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
30639
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
30640
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
30641
- readonly trace: {
30642
- readonly span: {
30643
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
30644
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
30645
- readonly sampled: boolean;
30646
- readonly tracestate: string | null;
30647
- };
30648
- readonly links: readonly {
30649
- readonly context: {
30650
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
30651
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
30652
- readonly sampled: boolean;
30653
- readonly tracestate: string | null;
30654
- };
30655
- readonly attributes: {
30656
- readonly [x: string]: string | number | boolean;
30657
- };
30658
- }[];
30659
- };
30660
- readonly durability: "durable";
30661
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
30662
- readonly namespace: "effect-durable-agent";
30663
- readonly type: "CompactionStarted";
30664
- readonly schemaVersion: number;
30665
- readonly payload: {
30666
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
30667
- };
30668
30691
  } | {
30669
30692
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
30670
30693
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -31036,6 +31059,72 @@ declare const TurnRunResult: Schema.Struct<{
31036
31059
  }, never, never>;
31037
31060
  }>, Schema.TaggedStruct<"TurnRunFailed", {
31038
31061
  readonly committed: Schema.Codec<CommittedDurableEvent<{
31062
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
31063
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
31064
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
31065
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
31066
+ readonly trace: {
31067
+ readonly span: {
31068
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
31069
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
31070
+ readonly sampled: boolean;
31071
+ readonly tracestate: string | null;
31072
+ };
31073
+ readonly links: readonly {
31074
+ readonly context: {
31075
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
31076
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
31077
+ readonly sampled: boolean;
31078
+ readonly tracestate: string | null;
31079
+ };
31080
+ readonly attributes: {
31081
+ readonly [x: string]: string | number | boolean;
31082
+ };
31083
+ }[];
31084
+ };
31085
+ readonly durability: "durable";
31086
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
31087
+ readonly namespace: "effect-durable-agent";
31088
+ readonly type: "CompactionRequested";
31089
+ readonly schemaVersion: number;
31090
+ readonly payload: {
31091
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
31092
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
31093
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
31094
+ };
31095
+ } | {
31096
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
31097
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
31098
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
31099
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
31100
+ readonly trace: {
31101
+ readonly span: {
31102
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
31103
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
31104
+ readonly sampled: boolean;
31105
+ readonly tracestate: string | null;
31106
+ };
31107
+ readonly links: readonly {
31108
+ readonly context: {
31109
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
31110
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
31111
+ readonly sampled: boolean;
31112
+ readonly tracestate: string | null;
31113
+ };
31114
+ readonly attributes: {
31115
+ readonly [x: string]: string | number | boolean;
31116
+ };
31117
+ }[];
31118
+ };
31119
+ readonly durability: "durable";
31120
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
31121
+ readonly namespace: "effect-durable-agent";
31122
+ readonly type: "CompactionStarted";
31123
+ readonly schemaVersion: number;
31124
+ readonly payload: {
31125
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
31126
+ };
31127
+ } | {
31039
31128
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
31040
31129
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
31041
31130
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -33526,72 +33615,6 @@ declare const TurnRunResult: Schema.Struct<{
33526
33615
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
33527
33616
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
33528
33617
  };
33529
- } | {
33530
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
33531
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
33532
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
33533
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
33534
- readonly trace: {
33535
- readonly span: {
33536
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
33537
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
33538
- readonly sampled: boolean;
33539
- readonly tracestate: string | null;
33540
- };
33541
- readonly links: readonly {
33542
- readonly context: {
33543
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
33544
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
33545
- readonly sampled: boolean;
33546
- readonly tracestate: string | null;
33547
- };
33548
- readonly attributes: {
33549
- readonly [x: string]: string | number | boolean;
33550
- };
33551
- }[];
33552
- };
33553
- readonly durability: "durable";
33554
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
33555
- readonly namespace: "effect-durable-agent";
33556
- readonly type: "CompactionRequested";
33557
- readonly schemaVersion: number;
33558
- readonly payload: {
33559
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
33560
- readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
33561
- readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
33562
- };
33563
- } | {
33564
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
33565
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
33566
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
33567
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
33568
- readonly trace: {
33569
- readonly span: {
33570
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
33571
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
33572
- readonly sampled: boolean;
33573
- readonly tracestate: string | null;
33574
- };
33575
- readonly links: readonly {
33576
- readonly context: {
33577
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
33578
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
33579
- readonly sampled: boolean;
33580
- readonly tracestate: string | null;
33581
- };
33582
- readonly attributes: {
33583
- readonly [x: string]: string | number | boolean;
33584
- };
33585
- }[];
33586
- };
33587
- readonly durability: "durable";
33588
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
33589
- readonly namespace: "effect-durable-agent";
33590
- readonly type: "CompactionStarted";
33591
- readonly schemaVersion: number;
33592
- readonly payload: {
33593
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
33594
- };
33595
33618
  } | {
33596
33619
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
33597
33620
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -52978,5 +53001,5 @@ declare const activeTurnIdentityForCommand: (state: ReducedState, commandId: Com
52978
53001
  /** Classify unfinished durable lifecycles that recovery may need to repair. */
52979
53002
  declare const classifyRecoverableWork: (state: ReducedState) => RecoverableWork;
52980
53003
  //#endregion
52981
- export { SessionCommandAdmissionError as $, edaReservedDeciderNamePrefix as $n, PromptPrefixSummaryCompactionExecutorOptions as $t, TurnTerminal as A, RunSchedulingRequest as An, EDASink as At, messageContextSeq as B, EDADecider as Bn, CompactionError as Bt, RunRecord as C, LocalRunResolution as Cn, RunSchedulingDeliveryError as Ct, ToolDecision as D, RunResolution as Dn, EDAProjectedSink as Dt, ToolCallRecord as E, RunRequestOutcome as En, EDAProjectedDurableSinkDefinition as Et, encodeReducedStateCheckpoint as F, planWaitingRunInterruption as Fn, EDASinkRawDurableBatch as Ft, CommittedCommandTerminalEvent as G, EDADeciderRegistry as Gn, CompactionPlan as Gt, pendingStopCommand as H, EDADeciderError as Hn, CompactionExecutorInput as Ht, foldReducedState as I, runGrantability as In, EDASinkRegistry as It, EDARuntimeConfig as J, EDAErasedDecision as Jn, CompactionPolicyShape as Jt, EDACommandTerminalEvent as K, EDADeciderView as Kn, CompactionPolicy as Kt, frameworkReducedStateReducerName as L, runSchedulingInputMessageIds as Ln, EDASinkRegistryShape as Lt, activeTurnIdentityForCommand as M, RunSchedulingWork as Mn, EDASinkContext as Mt, classifyRecoverableWork as N, canGrantRun as Nn, EDASinkDurableBatch as Nt, ToolTerminal as O, RunSchedulingCancellationPlan as On, EDARawDurableSinkDefinition as Ot, decodeReducedStateCheckpoint as P, planRunSchedulingCancellation as Pn, EDASinkInterests as Pt, EDASubmittable as Q, deciderNamePattern as Qn, LanguageModelSummaryCompactionExecutorOptions as Qt, frameworkReducedStateReducerSchemaVersion as R, waitingRunControl as Rn, EDASinkRunnerStartInput as Rt, ReducedStateCheckpointToolTerminal as S, DeferredRunResolution as Sn, RunSchedulingDelivery as St, StopRequestRecord as T, RunGrantability as Tn, EDAEphemeralSinkDefinition as Tt, reduceCommittedEvents as U, EDADeciderItem as Un, CompactionExecutorShape as Ut, pendingCommands as V, EDADeciderDefinition as Vn, CompactionExecutor as Vt, reducedStateCheckpointEventSeqs as W, EDADeciderOutcome as Wn, CompactionOutput as Wt, EDARuntimeShape as X, deciderIdempotencyKeyViolation as Xn, CompactionRunnerInput as Xt, EDARuntimeError as Y, EDAEventDraft as Yn, CompactionRunner as Yt, EDARuntimeSubmit as Z, deciderMarkerDedupeKey as Zn, CompactionRunnerShape as Zt, ReducedStateCheckpointCommandRecord as _, EDASessionEventPage as _n, InferenceRunner as _t, CompactionRecord as a, promptPrefixSummaryCompactionExecutor as an, EDANativeCompaction as ar, SessionDecideError as at, ReducedStateCheckpointToolCallRecord as b, EDASessionSnapshot as bn, RunScheduler as bt, InferenceRecord as c, EDAToolExecutionContext as cn, EDAPromptProjector as cr, SessionForkedCommand as ct, LifecycleTiming as d, ToolParamsSchema as dn, buildEDAPrompt as dr, SessionRunInput as dt, defaultCompactionCharsPerToken as en, encodeDeciderJson as er, SessionCommandCancelled as et, MessageRecord as f, ToolRecovery as fn, getNativeCompaction as fr, SessionState as ft, ReducedState as g, toolRecoveryPolicy as gn, TurnRunner as gt, RecoveryContinuationRecord as h, maxToolCallAttempts as hn, SessionStateSnapshotData as ht, CommandTerminal as i, defaultCompactionThresholdTokens as in, SessionContext as ir, SessionCommandResult as it, activeCommand as j, RunSchedulingRequestRecord as jn, EDASinkCheckpoint as jt, TurnRecord as k, RunSchedulingInput as kn, EDARawSink as kt, InferenceTerminal as l, EDAToolRegistry as ln, EDAPromptProjectorShape as lr, SessionNoRunnableCommand as lt, RecoverableWork as m, makeEDAToolkit as mn, nativeCompactionSummaryMessage as mr, SessionStateShape as mt, ActiveTurnIdentity as n, defaultCompactionRetainTailTokens as nn, maxDeciderIdempotencyKeyLength as nr, SessionCommandFailed as nt, CompactionTerminal as o, EventFactory as on, EDAProjectedPromptContext as or, SessionDrainProcessed as ot, PendingCommand as p, ToolRecoveryPolicy as pn, isEDACacheBreakpoint as pr, SessionStateError as pt, EDARuntime as q, EDADecision as qn, CompactionPolicyInput as qt, CommandRecord as r, defaultCompactionSummaryInstructions as rn, maxDeciderResultBytes as rr, SessionCommandOutcome as rt, ContextRecord as s, EDAModelToolkit as sn, EDAPromptProjectionInput as sr, SessionDrainResult as st, ActiveCommandEvidence as t, defaultCompactionMinSummarizableTokens as tn, makeEDADeciderRegistry as tr, SessionCommandCompleted as tt, LifecycleFailure as u, EDAToolRegistryShape as un, EDA_PROMPT_OPTIONS_KEY as ur, SessionNoRunnableReason as ut, ReducedStateCheckpointMessageRecord as v, EDASessionQuery as vn, InferenceRunnerStreamPart as vt, RunTerminal as w, RunGrantResult as wn, EDADurableSinkDefinition as wt, ReducedStateCheckpointToolDecision as x, LiveEventBus as xn, RunSchedulerShape as xt, ReducedStateCheckpointPayload as y, EDASessionQueryShape as yn, ToolExecutor as yt, initialReducedState as z, SessionCommandAdmissionConflict as zn, ApproximateTokenThresholdCompactionPolicyOptions as zt };
52982
- //# sourceMappingURL=reduced-state-DV0696_s.d.ts.map
53004
+ export { SessionCommandAdmissionError as $, deciderMarkerDedupeKey as $n, PromptPrefixSummaryCompactionExecutorOptions as $t, TurnTerminal as A, RunSchedulingCancellationPlan as An, EDASink as At, messageContextSeq as B, waitingRunControl as Bn, CompactionError as Bt, RunRecord as C, SessionEventObserverShape as Cn, RunSchedulingDeliveryError as Ct, ToolDecision as D, RunGrantability as Dn, EDAProjectedSink as Dt, ToolCallRecord as E, RunGrantResult as En, EDAProjectedDurableSinkDefinition as Et, encodeReducedStateCheckpoint as F, canGrantRun as Fn, EDASinkRawDurableBatch as Ft, CommittedCommandTerminalEvent as G, EDADeciderItem as Gn, CompactionPlan as Gt, pendingStopCommand as H, EDADecider as Hn, CompactionExecutorInput as Ht, foldReducedState as I, planRunSchedulingCancellation as In, EDASinkRegistry as It, EDARuntimeConfig as J, EDADeciderView as Jn, CompactionPolicyShape as Jt, EDACommandTerminalEvent as K, EDADeciderOutcome as Kn, CompactionPolicy as Kt, frameworkReducedStateReducerName as L, planWaitingRunInterruption as Ln, EDASinkRegistryShape as Lt, activeTurnIdentityForCommand as M, RunSchedulingRequest as Mn, EDASinkContext as Mt, classifyRecoverableWork as N, RunSchedulingRequestRecord as Nn, EDASinkDurableBatch as Nt, ToolTerminal as O, RunRequestOutcome as On, EDARawDurableSinkDefinition as Ot, decodeReducedStateCheckpoint as P, RunSchedulingWork as Pn, EDASinkInterests as Pt, EDASubmittable as Q, deciderIdempotencyKeyViolation as Qn, LanguageModelSummaryCompactionExecutorOptions as Qt, frameworkReducedStateReducerSchemaVersion as R, runGrantability as Rn, EDASinkRunnerStartInput as Rt, ReducedStateCheckpointToolTerminal as S, SessionEventObserver as Sn, RunSchedulingDelivery as St, StopRequestRecord as T, LocalRunResolution as Tn, EDAEphemeralSinkDefinition as Tt, reduceCommittedEvents as U, EDADeciderDefinition as Un, CompactionExecutorShape as Ut, pendingCommands as V, SessionCommandAdmissionConflict as Vn, CompactionExecutor as Vt, reducedStateCheckpointEventSeqs as W, EDADeciderError as Wn, CompactionOutput as Wt, EDARuntimeShape as X, EDAErasedDecision as Xn, CompactionRunnerInput as Xt, EDARuntimeError as Y, EDADecision as Yn, CompactionRunner as Yt, EDARuntimeSubmit as Z, EDAEventDraft as Zn, CompactionRunnerShape as Zt, ReducedStateCheckpointCommandRecord as _, EDASessionEventPage as _n, InferenceRunner as _t, CompactionRecord as a, promptPrefixSummaryCompactionExecutor as an, maxDeciderResultBytes as ar, SessionDecideError as at, ReducedStateCheckpointToolCallRecord as b, EDASessionSnapshot as bn, RunScheduler as bt, InferenceRecord as c, EDAToolExecutionContext as cn, EDAProjectedPromptContext as cr, SessionForkedCommand as ct, LifecycleTiming as d, ToolParamsSchema as dn, EDAPromptProjectorShape as dr, SessionRunInput as dt, defaultCompactionCharsPerToken as en, deciderNamePattern as er, SessionCommandCancelled as et, MessageRecord as f, ToolRecovery as fn, EDA_PROMPT_OPTIONS_KEY as fr, SessionState as ft, ReducedState as g, toolRecoveryPolicy as gn, nativeCompactionSummaryMessage as gr, TurnRunner as gt, RecoveryContinuationRecord as h, maxToolCallAttempts as hn, isEDACacheBreakpoint as hr, SessionStateSnapshotData as ht, CommandTerminal as i, defaultCompactionThresholdTokens as in, maxDeciderIdempotencyKeyLength as ir, SessionCommandResult as it, activeCommand as j, RunSchedulingInput as jn, EDASinkCheckpoint as jt, TurnRecord as k, RunResolution as kn, EDARawSink as kt, InferenceTerminal as l, EDAToolRegistry as ln, EDAPromptProjectionInput as lr, SessionNoRunnableCommand as lt, RecoverableWork as m, makeEDAToolkit as mn, getNativeCompaction as mr, SessionStateShape as mt, ActiveTurnIdentity as n, defaultCompactionRetainTailTokens as nn, encodeDeciderJson as nr, SessionCommandFailed as nt, CompactionTerminal as o, EventFactory as on, SessionContext as or, SessionDrainProcessed as ot, PendingCommand as p, ToolRecoveryPolicy as pn, buildEDAPrompt as pr, SessionStateError as pt, EDARuntime as q, EDADeciderRegistry as qn, CompactionPolicyInput as qt, CommandRecord as r, defaultCompactionSummaryInstructions as rn, makeEDADeciderRegistry as rr, SessionCommandOutcome as rt, ContextRecord as s, EDAModelToolkit as sn, EDANativeCompaction as sr, SessionDrainResult as st, ActiveCommandEvidence as t, defaultCompactionMinSummarizableTokens as tn, edaReservedDeciderNamePrefix as tr, SessionCommandCompleted as tt, LifecycleFailure as u, EDAToolRegistryShape as un, EDAPromptProjector as ur, SessionNoRunnableReason as ut, ReducedStateCheckpointMessageRecord as v, EDASessionQuery as vn, InferenceRunnerStreamPart as vt, RunTerminal as w, DeferredRunResolution as wn, EDADurableSinkDefinition as wt, ReducedStateCheckpointToolDecision as x, LiveEventBus as xn, RunSchedulerShape as xt, ReducedStateCheckpointPayload as y, EDASessionQueryShape as yn, ToolExecutor as yt, initialReducedState as z, runSchedulingInputMessageIds as zn, ApproximateTokenThresholdCompactionPolicyOptions as zt };
53005
+ //# sourceMappingURL=reduced-state-BvNK4zug.d.ts.map