effect-durable-agent 0.1.0-alpha.16 → 0.1.0-alpha.17

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 (95) hide show
  1. package/dist/{command-queues-CtOtDZm3.d.ts → command-queues-w9WUKTpM.d.ts} +5 -5
  2. package/dist/{compaction-CCdfxYkq.js → compaction-Db6eoLce.js} +3 -3
  3. package/dist/{compaction-CCdfxYkq.js.map → compaction-Db6eoLce.js.map} +1 -1
  4. package/dist/{compaction-BfzzyWko.d.ts → compaction-DhIJ-sAH.d.ts} +7 -7
  5. package/dist/{context-projection-C43pyxn2.d.ts → context-projection-n6Rdup0N.d.ts} +2 -2
  6. package/dist/domain/command-queues.d.ts +1 -1
  7. package/dist/domain/context-projection.d.ts +1 -1
  8. package/dist/domain/message-transcript.d.ts +1 -1
  9. package/dist/domain/model-usage.d.ts +1 -1
  10. package/dist/domain/model-usage.js +1 -1
  11. package/dist/domain/reduced-state-schema.d.ts +1 -1
  12. package/dist/domain/reduced-state-schema.js +2 -2
  13. package/dist/domain/reduced-state.d.ts +2 -2
  14. package/dist/domain/reduced-state.js +1 -1
  15. package/dist/domain/run-scheduling.d.ts +1 -1
  16. package/dist/{durable-RSiz3YBK.d.ts → durable-Ceu9SC2D.d.ts} +4266 -235
  17. package/dist/{durable-D_tjjz4B.js → durable-DRY7AcsF.js} +59 -40
  18. package/dist/durable-DRY7AcsF.js.map +1 -0
  19. package/dist/{envelope-DxQzo5rN.js → envelope-BCzKUq_z.js} +12 -3
  20. package/dist/envelope-BCzKUq_z.js.map +1 -0
  21. package/dist/{envelope-DkZyMIgp.d.ts → envelope-VXFEC8zr.d.ts} +68 -4
  22. package/dist/{event-factory-CClLXzI9.d.ts → event-factory-CHP1-DAF.d.ts} +4 -4
  23. package/dist/{event-factory-CX0_laE5.js → event-factory-CKuWhjS4.js} +3 -3
  24. package/dist/{event-factory-CX0_laE5.js.map → event-factory-CKuWhjS4.js.map} +1 -1
  25. package/dist/{events-LZFNoESe.d.ts → events-D3OAPXgS.d.ts} +22 -22
  26. package/dist/index-DWC70Fsi.d.ts +45026 -0
  27. package/dist/index.d.ts +5 -5
  28. package/dist/index.js +3 -3
  29. package/dist/{message-transcript-CEp0gCSQ.d.ts → message-transcript-BfuGCZhP.d.ts} +3 -3
  30. package/dist/{model-resolver-BPPJAsuh.d.ts → model-resolver-ci5D5WQv.d.ts} +2 -2
  31. package/dist/{model-usage-CdBEkTwU.d.ts → model-usage-CNcnhj72.d.ts} +2 -2
  32. package/dist/{prompt-projector-Dh1-qvCH.d.ts → prompt-projector-DvNHsoEN.d.ts} +4 -4
  33. package/dist/{reduced-state-BAKvToAh.js → reduced-state-DFIYylAq.js} +55 -56
  34. package/dist/reduced-state-DFIYylAq.js.map +1 -0
  35. package/dist/{reducer-registry-BgtK0NuX.d.ts → reducer-registry-nO4biZlg.d.ts} +7 -4
  36. package/dist/{run-scheduler-CpPjFQD7.d.ts → run-scheduler-DFBqIRzF.d.ts} +2 -2
  37. package/dist/{run-scheduling-wakeup-DRYZztL6.d.ts → run-scheduling-wakeup-CXT5_CkI.d.ts} +2 -2
  38. package/dist/services/compaction.d.ts +1 -1
  39. package/dist/services/compaction.js +1 -1
  40. package/dist/services/model-resolver.d.ts +1 -1
  41. package/dist/services/prompt-projector.d.ts +1 -1
  42. package/dist/services/reducer-registry.d.ts +1 -1
  43. package/dist/services/reducer-registry.js +19 -6
  44. package/dist/services/reducer-registry.js.map +1 -1
  45. package/dist/services/run-scheduler.d.ts +2 -2
  46. package/dist/services/run-scheduling-wakeup.d.ts +1 -1
  47. package/dist/services/runtime-layer.d.ts +15 -13
  48. package/dist/services/runtime-layer.js +11 -7
  49. package/dist/services/runtime-layer.js.map +1 -1
  50. package/dist/services/runtime.d.ts +1 -1
  51. package/dist/services/runtime.js +6 -7
  52. package/dist/services/runtime.js.map +1 -1
  53. package/dist/services/session-event-observer.d.ts +1 -1
  54. package/dist/services/session-query.d.ts +1 -1
  55. package/dist/services/session-query.js +12 -13
  56. package/dist/services/session-query.js.map +1 -1
  57. package/dist/services/session-state.d.ts +1 -1
  58. package/dist/services/session-state.js +1 -1
  59. package/dist/services/session-store.d.ts +2 -2
  60. package/dist/services/session-store.js +84 -16
  61. package/dist/services/session-store.js.map +1 -1
  62. package/dist/services/sink-checkpoint-store.d.ts +1 -1
  63. package/dist/services/sink-registry.d.ts +1 -1
  64. package/dist/services/sink-registry.js +1 -1
  65. package/dist/services/tool-registry.d.ts +1 -1
  66. package/dist/services/tool-registry.js.map +1 -1
  67. package/dist/services/tracing.d.ts +1 -1
  68. package/dist/{session-event-observer-DaFMKKNc.d.ts → session-event-observer-BWppl2Fr.d.ts} +2 -2
  69. package/dist/{session-state-CWKwjwdx.js → session-state-8PJZvuR3.js} +28 -20
  70. package/dist/session-state-8PJZvuR3.js.map +1 -0
  71. package/dist/{session-store-DCs--1kc.d.ts → session-store-DBa-TOVH.d.ts} +25 -40
  72. package/dist/{sink-checkpoint-store-CasqHvDz.d.ts → sink-checkpoint-store-BZGfJLve.d.ts} +2 -2
  73. package/dist/{sink-registry-DUkifMag.js → sink-registry-B4yxTmlI.js} +33 -8
  74. package/dist/sink-registry-B4yxTmlI.js.map +1 -0
  75. package/dist/{sink-registry-CEBjrMd_.d.ts → sink-registry-tpmJ-Dhf.d.ts} +23 -15
  76. package/dist/testkit/layers.d.ts +15 -16
  77. package/dist/testkit/layers.js +6 -6
  78. package/dist/testkit/layers.js.map +1 -1
  79. package/dist/{tool-registry-CHMtDCJ5.d.ts → tool-registry-NOP9aTHT.d.ts} +11 -4
  80. package/dist/types/events/durable.d.ts +2 -2
  81. package/dist/types/events/durable.js +2 -2
  82. package/dist/types/events.d.ts +4 -4
  83. package/dist/types/events.js +3 -3
  84. package/dist/websocket.d.ts +65 -65
  85. package/dist/websocket.js +2 -2
  86. package/package.json +1 -1
  87. package/dist/durable-D_tjjz4B.js.map +0 -1
  88. package/dist/envelope-DxQzo5rN.js.map +0 -1
  89. package/dist/index-BVVgDSdq.d.ts +0 -1
  90. package/dist/reduced-state-BAKvToAh.js.map +0 -1
  91. package/dist/runtime-CX1M7jgX.d.ts +0 -69
  92. package/dist/session-query-BHB4OxR_.d.ts +0 -46
  93. package/dist/session-state-CWKwjwdx.js.map +0 -1
  94. package/dist/session-state-dE07Zzcr.d.ts +0 -895
  95. package/dist/sink-registry-DUkifMag.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { h as SequenceNumber } from "./core-C-6xHzRx.js";
2
- import { d as PositionedEvent, i as EventEnvelope } from "./envelope-DkZyMIgp.js";
2
+ import { f as PositionedEvent, i as EventEnvelope } from "./envelope-VXFEC8zr.js";
3
3
  import { c as StopTurnCommand, l as SubmitMessageCommand, o as PromotePendingMessageCommand, s as ResumePendingMessagesCommand, t as CancelPendingMessageCommand } from "./commands-p8venTWs.js";
4
4
  import * as Effect from "effect/Effect";
5
5
  import * as Schema from "effect/Schema";
@@ -90,7 +90,7 @@ type EDAWebSocketEventConsumerPolicy<Event extends {
90
90
  }, Disposition> = Readonly<Record<Event["type"], Disposition>>;
91
91
  /** Complete framework-owned event union present on every EDA WebSocket. */
92
92
  declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
93
- readonly namespace: Schema.Literal<string>;
93
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
94
94
  readonly type: Schema.Literal<"TurnAttemptStarted">;
95
95
  readonly schemaVersion: Schema.Literal<number>;
96
96
  readonly payload: Schema.Struct<{
@@ -121,7 +121,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
121
121
  }>>;
122
122
  }>>;
123
123
  }>, Schema.Struct<{
124
- readonly namespace: Schema.Literal<string>;
124
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
125
125
  readonly type: Schema.Literal<"TurnAttemptCompleted">;
126
126
  readonly schemaVersion: Schema.Literal<number>;
127
127
  readonly payload: Schema.Struct<{
@@ -163,7 +163,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
163
163
  }>>;
164
164
  }>>;
165
165
  }>, Schema.Struct<{
166
- readonly namespace: Schema.Literal<string>;
166
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
167
167
  readonly type: Schema.Literal<"AssistantMessageCommitted">;
168
168
  readonly schemaVersion: Schema.Literal<number>;
169
169
  readonly payload: Schema.Struct<{
@@ -235,7 +235,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
235
235
  }>>;
236
236
  }>>;
237
237
  }>, Schema.Struct<{
238
- readonly namespace: Schema.Literal<string>;
238
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
239
239
  readonly type: Schema.Literal<"ToolCallCreated">;
240
240
  readonly schemaVersion: Schema.Literal<number>;
241
241
  readonly payload: Schema.Struct<{
@@ -275,8 +275,8 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
275
275
  readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
276
276
  }>>;
277
277
  }>>;
278
- }>]>, Schema.Struct<{
279
- readonly namespace: Schema.Literal<string>;
278
+ }>]>, Schema.Union<readonly [Schema.Struct<{
279
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
280
280
  readonly type: Schema.Literal<"SessionConfigured">;
281
281
  readonly schemaVersion: Schema.Literal<number>;
282
282
  readonly payload: Schema.Struct<{
@@ -309,7 +309,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
309
309
  }>>;
310
310
  }>>;
311
311
  }>, Schema.Union<readonly [Schema.Struct<{
312
- readonly namespace: Schema.Literal<string>;
312
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
313
313
  readonly type: Schema.Literal<"RunSchedulingRequested">;
314
314
  readonly schemaVersion: Schema.Literal<number>;
315
315
  readonly payload: Schema.Struct<{
@@ -345,7 +345,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
345
345
  }>>;
346
346
  }>>;
347
347
  }>, Schema.Struct<{
348
- readonly namespace: Schema.Literal<string>;
348
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
349
349
  readonly type: Schema.Literal<"RunSchedulingDelivered">;
350
350
  readonly schemaVersion: Schema.Literal<number>;
351
351
  readonly payload: Schema.Struct<{
@@ -374,7 +374,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
374
374
  }>>;
375
375
  }>>;
376
376
  }>, Schema.Struct<{
377
- readonly namespace: Schema.Literal<string>;
377
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
378
378
  readonly type: Schema.Literal<"RunSchedulingInvalidated">;
379
379
  readonly schemaVersion: Schema.Literal<number>;
380
380
  readonly payload: Schema.Struct<{
@@ -404,7 +404,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
404
404
  }>>;
405
405
  }>>;
406
406
  }>, Schema.Struct<{
407
- readonly namespace: Schema.Literal<string>;
407
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
408
408
  readonly type: Schema.Literal<"RunSchedulingGranted">;
409
409
  readonly schemaVersion: Schema.Literal<number>;
410
410
  readonly payload: Schema.Struct<{
@@ -434,7 +434,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
434
434
  }>>;
435
435
  }>>;
436
436
  }>]>, Schema.Union<readonly [Schema.Struct<{
437
- readonly namespace: Schema.Literal<string>;
437
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
438
438
  readonly type: Schema.Literal<"CommandAdmitted">;
439
439
  readonly schemaVersion: Schema.Literal<number>;
440
440
  readonly payload: Schema.Struct<{
@@ -463,7 +463,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
463
463
  }>>;
464
464
  }>>;
465
465
  }>, Schema.Struct<{
466
- readonly namespace: Schema.Literal<string>;
466
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
467
467
  readonly type: Schema.Literal<"CommandStarted">;
468
468
  readonly schemaVersion: Schema.Literal<number>;
469
469
  readonly payload: Schema.Struct<{
@@ -492,7 +492,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
492
492
  }>>;
493
493
  }>>;
494
494
  }>, Schema.Struct<{
495
- readonly namespace: Schema.Literal<string>;
495
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
496
496
  readonly type: Schema.Literal<"CommandCompleted">;
497
497
  readonly schemaVersion: Schema.Literal<number>;
498
498
  readonly payload: Schema.Struct<{
@@ -521,7 +521,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
521
521
  }>>;
522
522
  }>>;
523
523
  }>, Schema.Struct<{
524
- readonly namespace: Schema.Literal<string>;
524
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
525
525
  readonly type: Schema.Literal<"CommandFailed">;
526
526
  readonly schemaVersion: Schema.Literal<number>;
527
527
  readonly payload: Schema.Struct<{
@@ -555,7 +555,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
555
555
  }>>;
556
556
  }>>;
557
557
  }>, Schema.Struct<{
558
- readonly namespace: Schema.Literal<string>;
558
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
559
559
  readonly type: Schema.Literal<"CommandCancelled">;
560
560
  readonly schemaVersion: Schema.Literal<number>;
561
561
  readonly payload: Schema.Struct<{
@@ -585,7 +585,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
585
585
  }>>;
586
586
  }>>;
587
587
  }>]>, Schema.Union<readonly [Schema.Struct<{
588
- readonly namespace: Schema.Literal<string>;
588
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
589
589
  readonly type: Schema.Literal<"SystemMessageCommitted">;
590
590
  readonly schemaVersion: Schema.Literal<number>;
591
591
  readonly payload: Schema.Struct<{
@@ -615,7 +615,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
615
615
  }>>;
616
616
  }>>;
617
617
  }>, Schema.Struct<{
618
- readonly namespace: Schema.Literal<string>;
618
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
619
619
  readonly type: Schema.Literal<"UserMessageCommitted">;
620
620
  readonly schemaVersion: Schema.Literal<number>;
621
621
  readonly payload: Schema.Struct<{
@@ -663,7 +663,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
663
663
  }>>;
664
664
  }>>;
665
665
  }>, Schema.Struct<{
666
- readonly namespace: Schema.Literal<string>;
666
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
667
667
  readonly type: Schema.Literal<"SteeringMessageQueued">;
668
668
  readonly schemaVersion: Schema.Literal<number>;
669
669
  readonly payload: Schema.Struct<{
@@ -712,7 +712,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
712
712
  }>>;
713
713
  }>>;
714
714
  }>, Schema.Struct<{
715
- readonly namespace: Schema.Literal<string>;
715
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
716
716
  readonly type: Schema.Literal<"SteeringMessageCancelled">;
717
717
  readonly schemaVersion: Schema.Literal<number>;
718
718
  readonly payload: Schema.Struct<{
@@ -743,7 +743,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
743
743
  }>>;
744
744
  }>>;
745
745
  }>, Schema.Struct<{
746
- readonly namespace: Schema.Literal<string>;
746
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
747
747
  readonly type: Schema.Literal<"UserMessageSubmitted">;
748
748
  readonly schemaVersion: Schema.Literal<number>;
749
749
  readonly payload: Schema.Struct<{
@@ -792,7 +792,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
792
792
  }>>;
793
793
  }>>;
794
794
  }>, Schema.Struct<{
795
- readonly namespace: Schema.Literal<string>;
795
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
796
796
  readonly type: Schema.Literal<"UserMessagePromoted">;
797
797
  readonly schemaVersion: Schema.Literal<number>;
798
798
  readonly payload: Schema.Struct<{
@@ -824,7 +824,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
824
824
  }>>;
825
825
  }>>;
826
826
  }>, Schema.Struct<{
827
- readonly namespace: Schema.Literal<string>;
827
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
828
828
  readonly type: Schema.Literal<"UserMessageCancelled">;
829
829
  readonly schemaVersion: Schema.Literal<number>;
830
830
  readonly payload: Schema.Struct<{
@@ -855,7 +855,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
855
855
  }>>;
856
856
  }>>;
857
857
  }>, Schema.Struct<{
858
- readonly namespace: Schema.Literal<string>;
858
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
859
859
  readonly type: Schema.Literal<"MessageQueuePaused">;
860
860
  readonly schemaVersion: Schema.Literal<number>;
861
861
  readonly payload: Schema.Struct<{
@@ -887,7 +887,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
887
887
  }>>;
888
888
  }>>;
889
889
  }>, Schema.Struct<{
890
- readonly namespace: Schema.Literal<string>;
890
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
891
891
  readonly type: Schema.Literal<"PendingMessagesPaused">;
892
892
  readonly schemaVersion: Schema.Literal<number>;
893
893
  readonly payload: Schema.Union<readonly [Schema.Struct<{
@@ -924,7 +924,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
924
924
  }>>;
925
925
  }>>;
926
926
  }>, Schema.Struct<{
927
- readonly namespace: Schema.Literal<string>;
927
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
928
928
  readonly type: Schema.Literal<"AssistantMessageCommitted">;
929
929
  readonly schemaVersion: Schema.Literal<number>;
930
930
  readonly payload: Schema.Struct<{
@@ -996,7 +996,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
996
996
  }>>;
997
997
  }>>;
998
998
  }>, Schema.Struct<{
999
- readonly namespace: Schema.Literal<string>;
999
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1000
1000
  readonly type: Schema.Literal<"AssistantMessageImported">;
1001
1001
  readonly schemaVersion: Schema.Literal<number>;
1002
1002
  readonly payload: Schema.Struct<{
@@ -1068,7 +1068,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1068
1068
  }>>;
1069
1069
  }>>;
1070
1070
  }>, Schema.Struct<{
1071
- readonly namespace: Schema.Literal<string>;
1071
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1072
1072
  readonly type: Schema.Literal<"AssistantPartialCommitted">;
1073
1073
  readonly schemaVersion: Schema.Literal<number>;
1074
1074
  readonly payload: Schema.Struct<{
@@ -1141,7 +1141,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1141
1141
  }>>;
1142
1142
  }>>;
1143
1143
  }>]>, Schema.Union<readonly [Schema.Struct<{
1144
- readonly namespace: Schema.Literal<string>;
1144
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1145
1145
  readonly type: Schema.Literal<"RunStarted">;
1146
1146
  readonly schemaVersion: Schema.Literal<number>;
1147
1147
  readonly payload: Schema.Struct<{
@@ -1193,7 +1193,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1193
1193
  }>>;
1194
1194
  }>>;
1195
1195
  }>, Schema.Struct<{
1196
- readonly namespace: Schema.Literal<string>;
1196
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1197
1197
  readonly type: Schema.Literal<"RunCompleted">;
1198
1198
  readonly schemaVersion: Schema.Literal<number>;
1199
1199
  readonly payload: Schema.Struct<{
@@ -1222,7 +1222,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1222
1222
  }>>;
1223
1223
  }>>;
1224
1224
  }>, Schema.Struct<{
1225
- readonly namespace: Schema.Literal<string>;
1225
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1226
1226
  readonly type: Schema.Literal<"RunFailed">;
1227
1227
  readonly schemaVersion: Schema.Literal<number>;
1228
1228
  readonly payload: Schema.Struct<{
@@ -1256,7 +1256,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1256
1256
  }>>;
1257
1257
  }>>;
1258
1258
  }>, Schema.Struct<{
1259
- readonly namespace: Schema.Literal<string>;
1259
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1260
1260
  readonly type: Schema.Literal<"RunInterrupted">;
1261
1261
  readonly schemaVersion: Schema.Literal<number>;
1262
1262
  readonly payload: Schema.Struct<{
@@ -1286,7 +1286,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1286
1286
  }>>;
1287
1287
  }>>;
1288
1288
  }>]>, Schema.Struct<{
1289
- readonly namespace: Schema.Literal<string>;
1289
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1290
1290
  readonly type: Schema.Literal<"RecoveryCompleted">;
1291
1291
  readonly schemaVersion: Schema.Literal<number>;
1292
1292
  readonly payload: Schema.Struct<{
@@ -1320,7 +1320,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1320
1320
  }>>;
1321
1321
  }>>;
1322
1322
  }>, Schema.Union<readonly [Schema.Struct<{
1323
- readonly namespace: Schema.Literal<string>;
1323
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1324
1324
  readonly type: Schema.Literal<"TurnStarted">;
1325
1325
  readonly schemaVersion: Schema.Literal<number>;
1326
1326
  readonly payload: Schema.Struct<{
@@ -1351,7 +1351,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1351
1351
  }>>;
1352
1352
  }>>;
1353
1353
  }>, Schema.Struct<{
1354
- readonly namespace: Schema.Literal<string>;
1354
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1355
1355
  readonly type: Schema.Literal<"TurnCompleted">;
1356
1356
  readonly schemaVersion: Schema.Literal<number>;
1357
1357
  readonly payload: Schema.Struct<{
@@ -1389,7 +1389,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1389
1389
  }>>;
1390
1390
  }>>;
1391
1391
  }>, Schema.Struct<{
1392
- readonly namespace: Schema.Literal<string>;
1392
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1393
1393
  readonly type: Schema.Literal<"TurnFailed">;
1394
1394
  readonly schemaVersion: Schema.Literal<number>;
1395
1395
  readonly payload: Schema.Struct<{
@@ -1424,7 +1424,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1424
1424
  }>>;
1425
1425
  }>>;
1426
1426
  }>, Schema.Struct<{
1427
- readonly namespace: Schema.Literal<string>;
1427
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1428
1428
  readonly type: Schema.Literal<"TurnStopped">;
1429
1429
  readonly schemaVersion: Schema.Literal<number>;
1430
1430
  readonly payload: Schema.Struct<{
@@ -1455,7 +1455,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1455
1455
  }>>;
1456
1456
  }>>;
1457
1457
  }>]>, Schema.Union<readonly [Schema.Struct<{
1458
- readonly namespace: Schema.Literal<string>;
1458
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1459
1459
  readonly type: Schema.Literal<"InferenceStarted">;
1460
1460
  readonly schemaVersion: Schema.Literal<number>;
1461
1461
  readonly payload: Schema.Struct<{
@@ -1486,7 +1486,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1486
1486
  }>>;
1487
1487
  }>>;
1488
1488
  }>, Schema.Struct<{
1489
- readonly namespace: Schema.Literal<string>;
1489
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1490
1490
  readonly type: Schema.Literal<"InferenceCompleted">;
1491
1491
  readonly schemaVersion: Schema.Literal<number>;
1492
1492
  readonly payload: Schema.Struct<{
@@ -1528,7 +1528,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1528
1528
  }>>;
1529
1529
  }>>;
1530
1530
  }>, Schema.Struct<{
1531
- readonly namespace: Schema.Literal<string>;
1531
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1532
1532
  readonly type: Schema.Literal<"InferenceFailed">;
1533
1533
  readonly schemaVersion: Schema.Literal<number>;
1534
1534
  readonly payload: Schema.Struct<{
@@ -1564,7 +1564,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1564
1564
  }>>;
1565
1565
  }>>;
1566
1566
  }>]>, Schema.Union<readonly [Schema.Struct<{
1567
- readonly namespace: Schema.Literal<string>;
1567
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1568
1568
  readonly type: Schema.Literal<"ToolCallCreated">;
1569
1569
  readonly schemaVersion: Schema.Literal<number>;
1570
1570
  readonly payload: Schema.Struct<{
@@ -1605,7 +1605,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1605
1605
  }>>;
1606
1606
  }>>;
1607
1607
  }>, Schema.Struct<{
1608
- readonly namespace: Schema.Literal<string>;
1608
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1609
1609
  readonly type: Schema.Literal<"ToolCallRejected">;
1610
1610
  readonly schemaVersion: Schema.Literal<number>;
1611
1611
  readonly payload: Schema.Struct<{
@@ -1650,7 +1650,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1650
1650
  }>>;
1651
1651
  }>>;
1652
1652
  }>, Schema.Struct<{
1653
- readonly namespace: Schema.Literal<string>;
1653
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1654
1654
  readonly type: Schema.Literal<"ToolCallStarted">;
1655
1655
  readonly schemaVersion: Schema.Literal<number>;
1656
1656
  readonly payload: Schema.Struct<{
@@ -1679,7 +1679,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1679
1679
  }>>;
1680
1680
  }>>;
1681
1681
  }>, Schema.Struct<{
1682
- readonly namespace: Schema.Literal<string>;
1682
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1683
1683
  readonly type: Schema.Literal<"ToolCallCompleted">;
1684
1684
  readonly schemaVersion: Schema.Literal<number>;
1685
1685
  readonly payload: Schema.Struct<{
@@ -1717,7 +1717,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1717
1717
  }>>;
1718
1718
  }>>;
1719
1719
  }>, Schema.Struct<{
1720
- readonly namespace: Schema.Literal<string>;
1720
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1721
1721
  readonly type: Schema.Literal<"ToolCallFailed">;
1722
1722
  readonly schemaVersion: Schema.Literal<number>;
1723
1723
  readonly payload: Schema.Struct<{
@@ -1764,7 +1764,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1764
1764
  }>>;
1765
1765
  }>>;
1766
1766
  }>]>, Schema.Union<readonly [Schema.Struct<{
1767
- readonly namespace: Schema.Literal<string>;
1767
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1768
1768
  readonly type: Schema.Literal<"StopTurnRequested">;
1769
1769
  readonly schemaVersion: Schema.Literal<number>;
1770
1770
  readonly payload: Schema.Struct<{
@@ -1795,7 +1795,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1795
1795
  }>>;
1796
1796
  }>>;
1797
1797
  }>, Schema.Struct<{
1798
- readonly namespace: Schema.Literal<string>;
1798
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1799
1799
  readonly type: Schema.Literal<"StopTurnApplied">;
1800
1800
  readonly schemaVersion: Schema.Literal<number>;
1801
1801
  readonly payload: Schema.Struct<{
@@ -1827,7 +1827,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1827
1827
  }>>;
1828
1828
  }>>;
1829
1829
  }>]>, Schema.Union<readonly [Schema.Struct<{
1830
- readonly namespace: Schema.Literal<string>;
1830
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1831
1831
  readonly type: Schema.Literal<"ContextProjected">;
1832
1832
  readonly schemaVersion: Schema.Literal<number>;
1833
1833
  readonly payload: Schema.Struct<{
@@ -1857,7 +1857,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1857
1857
  }>>;
1858
1858
  }>>;
1859
1859
  }>, Schema.Struct<{
1860
- readonly namespace: Schema.Literal<string>;
1860
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1861
1861
  readonly type: Schema.Literal<"CompactionRequested">;
1862
1862
  readonly schemaVersion: Schema.Literal<number>;
1863
1863
  readonly payload: Schema.Struct<{
@@ -1888,7 +1888,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1888
1888
  }>>;
1889
1889
  }>>;
1890
1890
  }>, Schema.Struct<{
1891
- readonly namespace: Schema.Literal<string>;
1891
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1892
1892
  readonly type: Schema.Literal<"CompactionStarted">;
1893
1893
  readonly schemaVersion: Schema.Literal<number>;
1894
1894
  readonly payload: Schema.Struct<{
@@ -1917,7 +1917,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1917
1917
  }>>;
1918
1918
  }>>;
1919
1919
  }>, Schema.Struct<{
1920
- readonly namespace: Schema.Literal<string>;
1920
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1921
1921
  readonly type: Schema.Literal<"SummaryCreated">;
1922
1922
  readonly schemaVersion: Schema.Literal<number>;
1923
1923
  readonly payload: Schema.Struct<{
@@ -1950,7 +1950,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1950
1950
  }>>;
1951
1951
  }>>;
1952
1952
  }>, Schema.Struct<{
1953
- readonly namespace: Schema.Literal<string>;
1953
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1954
1954
  readonly type: Schema.Literal<"CompactionCompleted">;
1955
1955
  readonly schemaVersion: Schema.Literal<number>;
1956
1956
  readonly payload: Schema.Struct<{
@@ -1992,7 +1992,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
1992
1992
  }>>;
1993
1993
  }>>;
1994
1994
  }>, Schema.Struct<{
1995
- readonly namespace: Schema.Literal<string>;
1995
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
1996
1996
  readonly type: Schema.Literal<"ContextRebased">;
1997
1997
  readonly schemaVersion: Schema.Literal<number>;
1998
1998
  readonly payload: Schema.Struct<{
@@ -2024,7 +2024,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2024
2024
  }>>;
2025
2025
  }>>;
2026
2026
  }>, Schema.Struct<{
2027
- readonly namespace: Schema.Literal<string>;
2027
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
2028
2028
  readonly type: Schema.Literal<"CompactionFailed">;
2029
2029
  readonly schemaVersion: Schema.Literal<number>;
2030
2030
  readonly payload: Schema.Struct<{
@@ -2071,7 +2071,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2071
2071
  }>>;
2072
2072
  }>>;
2073
2073
  }>]>, Schema.Union<readonly [Schema.Struct<{
2074
- readonly namespace: Schema.Literal<string>;
2074
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
2075
2075
  readonly type: Schema.Literal<"BaseStateRequested">;
2076
2076
  readonly schemaVersion: Schema.Literal<number>;
2077
2077
  readonly payload: Schema.Struct<{
@@ -2101,7 +2101,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2101
2101
  }>>;
2102
2102
  }>>;
2103
2103
  }>, Schema.Struct<{
2104
- readonly namespace: Schema.Literal<string>;
2104
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
2105
2105
  readonly type: Schema.Literal<"BaseStateCreated">;
2106
2106
  readonly schemaVersion: Schema.Literal<number>;
2107
2107
  readonly payload: Schema.Struct<{
@@ -2131,7 +2131,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2131
2131
  }>>;
2132
2132
  }>>;
2133
2133
  }>, Schema.Struct<{
2134
- readonly namespace: Schema.Literal<string>;
2134
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
2135
2135
  readonly type: Schema.Literal<"BaseStateFailed">;
2136
2136
  readonly schemaVersion: Schema.Literal<number>;
2137
2137
  readonly payload: Schema.Struct<{
@@ -2164,8 +2164,8 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2164
2164
  readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>>;
2165
2165
  }>>;
2166
2166
  }>>;
2167
- }>]>]>, Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
2168
- readonly namespace: Schema.Literal<string>;
2167
+ }>]>]>]>, Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
2168
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
2169
2169
  readonly type: Schema.Literal<"TextDelta">;
2170
2170
  readonly schemaVersion: Schema.Literal<number>;
2171
2171
  readonly payload: Schema.Struct<{
@@ -2195,7 +2195,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2195
2195
  }>>;
2196
2196
  }>>;
2197
2197
  }>, Schema.Struct<{
2198
- readonly namespace: Schema.Literal<string>;
2198
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
2199
2199
  readonly type: Schema.Literal<"ReasoningDelta">;
2200
2200
  readonly schemaVersion: Schema.Literal<number>;
2201
2201
  readonly payload: Schema.Struct<{
@@ -2225,7 +2225,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2225
2225
  }>>;
2226
2226
  }>>;
2227
2227
  }>, Schema.Struct<{
2228
- readonly namespace: Schema.Literal<string>;
2228
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
2229
2229
  readonly type: Schema.Literal<"ToolParamsStart">;
2230
2230
  readonly schemaVersion: Schema.Literal<number>;
2231
2231
  readonly payload: Schema.Struct<{
@@ -2257,7 +2257,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2257
2257
  }>>;
2258
2258
  }>>;
2259
2259
  }>, Schema.Struct<{
2260
- readonly namespace: Schema.Literal<string>;
2260
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
2261
2261
  readonly type: Schema.Literal<"ToolParamsDelta">;
2262
2262
  readonly schemaVersion: Schema.Literal<number>;
2263
2263
  readonly payload: Schema.Struct<{
@@ -2288,7 +2288,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2288
2288
  }>>;
2289
2289
  }>>;
2290
2290
  }>, Schema.Struct<{
2291
- readonly namespace: Schema.Literal<string>;
2291
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
2292
2292
  readonly type: Schema.Literal<"ToolParamsEnd">;
2293
2293
  readonly schemaVersion: Schema.Literal<number>;
2294
2294
  readonly payload: Schema.Struct<{
@@ -2318,7 +2318,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2318
2318
  }>>;
2319
2319
  }>>;
2320
2320
  }>]>, Schema.Union<readonly [Schema.Struct<{
2321
- readonly namespace: Schema.Literal<string>;
2321
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
2322
2322
  readonly type: Schema.Literal<"SubscriberStatus">;
2323
2323
  readonly schemaVersion: Schema.Literal<number>;
2324
2324
  readonly payload: Schema.Struct<{
@@ -2348,7 +2348,7 @@ declare const EDAFrameworkWebSocketEvent: Schema.Union<readonly [Schema.Union<re
2348
2348
  }>>;
2349
2349
  }>>;
2350
2350
  }>, Schema.Struct<{
2351
- readonly namespace: Schema.Literal<string>;
2351
+ readonly namespace: Schema.Literal<"effect-durable-agent">;
2352
2352
  readonly type: Schema.Literal<"TraceStatus">;
2353
2353
  readonly schemaVersion: Schema.Literal<number>;
2354
2354
  readonly payload: Schema.Struct<{
package/dist/websocket.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Position, SequenceNumber } from "./types/core.js";
2
- import { h as UnixEpochMillis, i as EventEnvelope, u as PositionedEvent } from "./envelope-DxQzo5rN.js";
3
- import { V as EDADurableEvent } from "./durable-D_tjjz4B.js";
2
+ import { d as PositionedEvent, g as UnixEpochMillis, i as EventEnvelope } from "./envelope-BCzKUq_z.js";
3
+ import { U as EDADurableEvent } from "./durable-DRY7AcsF.js";
4
4
  import { EDAEphemeralEvent } from "./types/events.js";
5
5
  import * as Effect from "effect/Effect";
6
6
  import * as Schema from "effect/Schema";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "effect-durable-agent",
3
- "version": "0.1.0-alpha.16",
3
+ "version": "0.1.0-alpha.17",
4
4
  "description": "A host-independent, event-sourced durable state-management and execution layer for agentic applications.",
5
5
  "keywords": [
6
6
  "agents",