effect-durable-agent 0.4.1 → 0.5.0

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 (34) hide show
  1. package/dist/{compaction-Dlq4wgZE.js → compaction-Bo0IdR4c.js} +3 -3
  2. package/dist/{compaction-Dlq4wgZE.js.map → compaction-Bo0IdR4c.js.map} +1 -1
  3. package/dist/{delivery-BygJwrSV.d.ts → delivery-Cvn0tFHG.d.ts} +2 -2
  4. package/dist/domain/command-queues.d.ts +1 -1
  5. package/dist/domain/message-transcript.d.ts +1 -1
  6. package/dist/domain/reduced-state.d.ts +1 -1
  7. package/dist/domain/run-scheduling.d.ts +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/{reduced-state-BvNK4zug.d.ts → reduced-state-abeH0MOf.d.ts} +429 -429
  10. package/dist/services/compaction.d.ts +1 -1
  11. package/dist/services/compaction.js +1 -1
  12. package/dist/services/decider.d.ts +1 -1
  13. package/dist/services/model-call.d.ts +1 -1
  14. package/dist/services/prompt-projector.d.ts +1 -1
  15. package/dist/services/run-scheduler.d.ts +1 -1
  16. package/dist/services/runtime-layer.d.ts +1 -1
  17. package/dist/services/runtime-layer.js +2 -2
  18. package/dist/services/runtime.d.ts +1 -1
  19. package/dist/services/runtime.js +1 -1
  20. package/dist/services/session-event-observer.d.ts +1 -1
  21. package/dist/services/session-query.d.ts +1 -1
  22. package/dist/services/session-query.js +1 -1
  23. package/dist/services/session-state.d.ts +1 -1
  24. package/dist/services/session-state.js +1 -1
  25. package/dist/services/sink-registry.d.ts +1 -1
  26. package/dist/services/tool-registry.d.ts +1 -1
  27. package/dist/{session-state-oUTUeAuF.js → session-state-DqRkcZOy.js} +3 -3
  28. package/dist/session-state-DqRkcZOy.js.map +1 -0
  29. package/dist/testkit/layers.d.ts +1 -1
  30. package/dist/testkit/layers.js +2 -2
  31. package/dist/websocket/events.d.ts +1 -1
  32. package/dist/websocket.d.ts +1 -1
  33. package/package.json +1 -1
  34. package/dist/session-state-oUTUeAuF.js.map +0 -1
@@ -16418,72 +16418,6 @@ interface RunTurnInput extends RunTurnContext {
16418
16418
  /** Summary returned after the turn runner processes one inference stream. */
16419
16419
  declare const TurnRunResult: Schema.Struct<{
16420
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
- } | {
16487
16421
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
16488
16422
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
16489
16423
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -18974,6 +18908,72 @@ declare const TurnRunResult: Schema.Struct<{
18974
18908
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
18975
18909
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
18976
18910
  };
18911
+ } | {
18912
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
18913
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
18914
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
18915
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
18916
+ readonly trace: {
18917
+ readonly span: {
18918
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
18919
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
18920
+ readonly sampled: boolean;
18921
+ readonly tracestate: string | null;
18922
+ };
18923
+ readonly links: readonly {
18924
+ readonly context: {
18925
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
18926
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
18927
+ readonly sampled: boolean;
18928
+ readonly tracestate: string | null;
18929
+ };
18930
+ readonly attributes: {
18931
+ readonly [x: string]: string | number | boolean;
18932
+ };
18933
+ }[];
18934
+ };
18935
+ readonly durability: "durable";
18936
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
18937
+ readonly namespace: "effect-durable-agent";
18938
+ readonly type: "CompactionRequested";
18939
+ readonly schemaVersion: number;
18940
+ readonly payload: {
18941
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
18942
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
18943
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
18944
+ };
18945
+ } | {
18946
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
18947
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
18948
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
18949
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
18950
+ readonly trace: {
18951
+ readonly span: {
18952
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
18953
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
18954
+ readonly sampled: boolean;
18955
+ readonly tracestate: string | null;
18956
+ };
18957
+ readonly links: readonly {
18958
+ readonly context: {
18959
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
18960
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
18961
+ readonly sampled: boolean;
18962
+ readonly tracestate: string | null;
18963
+ };
18964
+ readonly attributes: {
18965
+ readonly [x: string]: string | number | boolean;
18966
+ };
18967
+ }[];
18968
+ };
18969
+ readonly durability: "durable";
18970
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
18971
+ readonly namespace: "effect-durable-agent";
18972
+ readonly type: "CompactionStarted";
18973
+ readonly schemaVersion: number;
18974
+ readonly payload: {
18975
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
18976
+ };
18977
18977
  } | {
18978
18978
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
18979
18979
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -19345,72 +19345,6 @@ declare const TurnRunResult: Schema.Struct<{
19345
19345
  }, never, never>;
19346
19346
  readonly inference: Schema.Struct<{
19347
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
- } | {
19414
19348
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
19415
19349
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
19416
19350
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -21928,14 +21862,12 @@ declare const TurnRunResult: Schema.Struct<{
21928
21862
  readonly durability: "durable";
21929
21863
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
21930
21864
  readonly namespace: "effect-durable-agent";
21931
- readonly type: "SummaryCreated";
21865
+ readonly type: "CompactionRequested";
21932
21866
  readonly schemaVersion: number;
21933
21867
  readonly payload: {
21934
21868
  readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
21935
- readonly summaryId: string & import("effect/Brand").Brand<"SummaryId">;
21936
21869
  readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
21937
21870
  readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
21938
- readonly summary: unknown;
21939
21871
  };
21940
21872
  } | {
21941
21873
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -21964,23 +21896,10 @@ declare const TurnRunResult: Schema.Struct<{
21964
21896
  readonly durability: "durable";
21965
21897
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
21966
21898
  readonly namespace: "effect-durable-agent";
21967
- readonly type: "CompactionCompleted";
21899
+ readonly type: "CompactionStarted";
21968
21900
  readonly schemaVersion: number;
21969
21901
  readonly payload: {
21970
21902
  readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
21971
- readonly modelSelection?: {
21972
- readonly provider: string;
21973
- readonly modelId: string;
21974
- readonly settings?: unknown;
21975
- } | undefined;
21976
- readonly usage?: {
21977
- readonly inputTokens?: number | undefined;
21978
- readonly cachedInputTokens?: number | undefined;
21979
- readonly cacheWriteInputTokens?: number | undefined;
21980
- readonly outputTokens?: number | undefined;
21981
- readonly textTokens?: number | undefined;
21982
- readonly reasoningTokens?: number | undefined;
21983
- } | undefined;
21984
21903
  };
21985
21904
  } | {
21986
21905
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -22009,13 +21928,14 @@ declare const TurnRunResult: Schema.Struct<{
22009
21928
  readonly durability: "durable";
22010
21929
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
22011
21930
  readonly namespace: "effect-durable-agent";
22012
- readonly type: "ContextRebased";
21931
+ readonly type: "SummaryCreated";
22013
21932
  readonly schemaVersion: number;
22014
21933
  readonly payload: {
22015
21934
  readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
22016
21935
  readonly summaryId: string & import("effect/Brand").Brand<"SummaryId">;
22017
- readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
22018
- readonly retainedFromContextSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
21936
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
21937
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
21938
+ readonly summary: unknown;
22019
21939
  };
22020
21940
  } | {
22021
21941
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -22044,15 +21964,10 @@ declare const TurnRunResult: Schema.Struct<{
22044
21964
  readonly durability: "durable";
22045
21965
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
22046
21966
  readonly namespace: "effect-durable-agent";
22047
- readonly type: "CompactionFailed";
21967
+ readonly type: "CompactionCompleted";
22048
21968
  readonly schemaVersion: number;
22049
21969
  readonly payload: {
22050
21970
  readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
22051
- readonly error: {
22052
- readonly message: string;
22053
- readonly code?: string | undefined;
22054
- readonly details?: unknown;
22055
- };
22056
21971
  readonly modelSelection?: {
22057
21972
  readonly provider: string;
22058
21973
  readonly modelId: string;
@@ -22094,11 +22009,13 @@ declare const TurnRunResult: Schema.Struct<{
22094
22009
  readonly durability: "durable";
22095
22010
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
22096
22011
  readonly namespace: "effect-durable-agent";
22097
- readonly type: "BaseStateRequested";
22012
+ readonly type: "ContextRebased";
22098
22013
  readonly schemaVersion: number;
22099
22014
  readonly payload: {
22100
- readonly baseStateId: string & import("effect/Brand").Brand<"BaseStateId">;
22101
- readonly requestedThroughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
22015
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
22016
+ readonly summaryId: string & import("effect/Brand").Brand<"SummaryId">;
22017
+ readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
22018
+ readonly retainedFromContextSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
22102
22019
  };
22103
22020
  } | {
22104
22021
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -22127,11 +22044,94 @@ declare const TurnRunResult: Schema.Struct<{
22127
22044
  readonly durability: "durable";
22128
22045
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
22129
22046
  readonly namespace: "effect-durable-agent";
22130
- readonly type: "BaseStateCreated";
22047
+ readonly type: "CompactionFailed";
22131
22048
  readonly schemaVersion: number;
22132
22049
  readonly payload: {
22133
- readonly baseStateId: string & import("effect/Brand").Brand<"BaseStateId">;
22134
- readonly coversThroughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
22050
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
22051
+ readonly error: {
22052
+ readonly message: string;
22053
+ readonly code?: string | undefined;
22054
+ readonly details?: unknown;
22055
+ };
22056
+ readonly modelSelection?: {
22057
+ readonly provider: string;
22058
+ readonly modelId: string;
22059
+ readonly settings?: unknown;
22060
+ } | undefined;
22061
+ readonly usage?: {
22062
+ readonly inputTokens?: number | undefined;
22063
+ readonly cachedInputTokens?: number | undefined;
22064
+ readonly cacheWriteInputTokens?: number | undefined;
22065
+ readonly outputTokens?: number | undefined;
22066
+ readonly textTokens?: number | undefined;
22067
+ readonly reasoningTokens?: number | undefined;
22068
+ } | undefined;
22069
+ };
22070
+ } | {
22071
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
22072
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
22073
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
22074
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
22075
+ readonly trace: {
22076
+ readonly span: {
22077
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
22078
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
22079
+ readonly sampled: boolean;
22080
+ readonly tracestate: string | null;
22081
+ };
22082
+ readonly links: readonly {
22083
+ readonly context: {
22084
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
22085
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
22086
+ readonly sampled: boolean;
22087
+ readonly tracestate: string | null;
22088
+ };
22089
+ readonly attributes: {
22090
+ readonly [x: string]: string | number | boolean;
22091
+ };
22092
+ }[];
22093
+ };
22094
+ readonly durability: "durable";
22095
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
22096
+ readonly namespace: "effect-durable-agent";
22097
+ readonly type: "BaseStateRequested";
22098
+ readonly schemaVersion: number;
22099
+ readonly payload: {
22100
+ readonly baseStateId: string & import("effect/Brand").Brand<"BaseStateId">;
22101
+ readonly requestedThroughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
22102
+ };
22103
+ } | {
22104
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
22105
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
22106
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
22107
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
22108
+ readonly trace: {
22109
+ readonly span: {
22110
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
22111
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
22112
+ readonly sampled: boolean;
22113
+ readonly tracestate: string | null;
22114
+ };
22115
+ readonly links: readonly {
22116
+ readonly context: {
22117
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
22118
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
22119
+ readonly sampled: boolean;
22120
+ readonly tracestate: string | null;
22121
+ };
22122
+ readonly attributes: {
22123
+ readonly [x: string]: string | number | boolean;
22124
+ };
22125
+ }[];
22126
+ };
22127
+ readonly durability: "durable";
22128
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
22129
+ readonly namespace: "effect-durable-agent";
22130
+ readonly type: "BaseStateCreated";
22131
+ readonly schemaVersion: number;
22132
+ readonly payload: {
22133
+ readonly baseStateId: string & import("effect/Brand").Brand<"BaseStateId">;
22134
+ readonly coversThroughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
22135
22135
  };
22136
22136
  } | {
22137
22137
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -22273,72 +22273,6 @@ declare const TurnRunResult: Schema.Struct<{
22273
22273
  readonly partsRecorded: Schema.Int;
22274
22274
  readonly terminal: Schema.Union<readonly [Schema.TaggedStruct<"InferenceRunFinished", {
22275
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
- } | {
22342
22276
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
22343
22277
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
22344
22278
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -24829,6 +24763,72 @@ declare const TurnRunResult: Schema.Struct<{
24829
24763
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
24830
24764
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
24831
24765
  };
24766
+ } | {
24767
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
24768
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
24769
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
24770
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
24771
+ readonly trace: {
24772
+ readonly span: {
24773
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
24774
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
24775
+ readonly sampled: boolean;
24776
+ readonly tracestate: string | null;
24777
+ };
24778
+ readonly links: readonly {
24779
+ readonly context: {
24780
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
24781
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
24782
+ readonly sampled: boolean;
24783
+ readonly tracestate: string | null;
24784
+ };
24785
+ readonly attributes: {
24786
+ readonly [x: string]: string | number | boolean;
24787
+ };
24788
+ }[];
24789
+ };
24790
+ readonly durability: "durable";
24791
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
24792
+ readonly namespace: "effect-durable-agent";
24793
+ readonly type: "CompactionRequested";
24794
+ readonly schemaVersion: number;
24795
+ readonly payload: {
24796
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
24797
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
24798
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
24799
+ };
24800
+ } | {
24801
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
24802
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
24803
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
24804
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
24805
+ readonly trace: {
24806
+ readonly span: {
24807
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
24808
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
24809
+ readonly sampled: boolean;
24810
+ readonly tracestate: string | null;
24811
+ };
24812
+ readonly links: readonly {
24813
+ readonly context: {
24814
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
24815
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
24816
+ readonly sampled: boolean;
24817
+ readonly tracestate: string | null;
24818
+ };
24819
+ readonly attributes: {
24820
+ readonly [x: string]: string | number | boolean;
24821
+ };
24822
+ }[];
24823
+ };
24824
+ readonly durability: "durable";
24825
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
24826
+ readonly namespace: "effect-durable-agent";
24827
+ readonly type: "CompactionStarted";
24828
+ readonly schemaVersion: number;
24829
+ readonly payload: {
24830
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
24831
+ };
24832
24832
  } | {
24833
24833
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
24834
24834
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -25203,72 +25203,6 @@ declare const TurnRunResult: Schema.Struct<{
25203
25203
  readonly responseParts: Schema.$Array<Schema.Any>;
25204
25204
  }>, Schema.TaggedStruct<"InferenceRunFailed", {
25205
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
- } | {
25272
25206
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
25273
25207
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
25274
25208
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -27759,6 +27693,72 @@ declare const TurnRunResult: Schema.Struct<{
27759
27693
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
27760
27694
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
27761
27695
  };
27696
+ } | {
27697
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
27698
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
27699
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
27700
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
27701
+ readonly trace: {
27702
+ readonly span: {
27703
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
27704
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
27705
+ readonly sampled: boolean;
27706
+ readonly tracestate: string | null;
27707
+ };
27708
+ readonly links: readonly {
27709
+ readonly context: {
27710
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
27711
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
27712
+ readonly sampled: boolean;
27713
+ readonly tracestate: string | null;
27714
+ };
27715
+ readonly attributes: {
27716
+ readonly [x: string]: string | number | boolean;
27717
+ };
27718
+ }[];
27719
+ };
27720
+ readonly durability: "durable";
27721
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
27722
+ readonly namespace: "effect-durable-agent";
27723
+ readonly type: "CompactionRequested";
27724
+ readonly schemaVersion: number;
27725
+ readonly payload: {
27726
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
27727
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
27728
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
27729
+ };
27730
+ } | {
27731
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
27732
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
27733
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
27734
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
27735
+ readonly trace: {
27736
+ readonly span: {
27737
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
27738
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
27739
+ readonly sampled: boolean;
27740
+ readonly tracestate: string | null;
27741
+ };
27742
+ readonly links: readonly {
27743
+ readonly context: {
27744
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
27745
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
27746
+ readonly sampled: boolean;
27747
+ readonly tracestate: string | null;
27748
+ };
27749
+ readonly attributes: {
27750
+ readonly [x: string]: string | number | boolean;
27751
+ };
27752
+ }[];
27753
+ };
27754
+ readonly durability: "durable";
27755
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
27756
+ readonly namespace: "effect-durable-agent";
27757
+ readonly type: "CompactionStarted";
27758
+ readonly schemaVersion: number;
27759
+ readonly payload: {
27760
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
27761
+ };
27762
27762
  } | {
27763
27763
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
27764
27764
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -28132,72 +28132,6 @@ declare const TurnRunResult: Schema.Struct<{
28132
28132
  }>;
28133
28133
  readonly outcome: Schema.Union<readonly [Schema.TaggedStruct<"TurnRunCompleted", {
28134
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
- } | {
28201
28135
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
28202
28136
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
28203
28137
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -30688,6 +30622,72 @@ declare const TurnRunResult: Schema.Struct<{
30688
30622
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
30689
30623
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
30690
30624
  };
30625
+ } | {
30626
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
30627
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
30628
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
30629
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
30630
+ readonly trace: {
30631
+ readonly span: {
30632
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
30633
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
30634
+ readonly sampled: boolean;
30635
+ readonly tracestate: string | null;
30636
+ };
30637
+ readonly links: readonly {
30638
+ readonly context: {
30639
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
30640
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
30641
+ readonly sampled: boolean;
30642
+ readonly tracestate: string | null;
30643
+ };
30644
+ readonly attributes: {
30645
+ readonly [x: string]: string | number | boolean;
30646
+ };
30647
+ }[];
30648
+ };
30649
+ readonly durability: "durable";
30650
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
30651
+ readonly namespace: "effect-durable-agent";
30652
+ readonly type: "CompactionRequested";
30653
+ readonly schemaVersion: number;
30654
+ readonly payload: {
30655
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
30656
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
30657
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
30658
+ };
30659
+ } | {
30660
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
30661
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
30662
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
30663
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
30664
+ readonly trace: {
30665
+ readonly span: {
30666
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
30667
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
30668
+ readonly sampled: boolean;
30669
+ readonly tracestate: string | null;
30670
+ };
30671
+ readonly links: readonly {
30672
+ readonly context: {
30673
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
30674
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
30675
+ readonly sampled: boolean;
30676
+ readonly tracestate: string | null;
30677
+ };
30678
+ readonly attributes: {
30679
+ readonly [x: string]: string | number | boolean;
30680
+ };
30681
+ }[];
30682
+ };
30683
+ readonly durability: "durable";
30684
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
30685
+ readonly namespace: "effect-durable-agent";
30686
+ readonly type: "CompactionStarted";
30687
+ readonly schemaVersion: number;
30688
+ readonly payload: {
30689
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
30690
+ };
30691
30691
  } | {
30692
30692
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
30693
30693
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -31059,72 +31059,6 @@ declare const TurnRunResult: Schema.Struct<{
31059
31059
  }, never, never>;
31060
31060
  }>, Schema.TaggedStruct<"TurnRunFailed", {
31061
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
- } | {
31128
31062
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
31129
31063
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
31130
31064
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -33615,6 +33549,72 @@ declare const TurnRunResult: Schema.Struct<{
33615
33549
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
33616
33550
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
33617
33551
  };
33552
+ } | {
33553
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
33554
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
33555
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
33556
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
33557
+ readonly trace: {
33558
+ readonly span: {
33559
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
33560
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
33561
+ readonly sampled: boolean;
33562
+ readonly tracestate: string | null;
33563
+ };
33564
+ readonly links: readonly {
33565
+ readonly context: {
33566
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
33567
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
33568
+ readonly sampled: boolean;
33569
+ readonly tracestate: string | null;
33570
+ };
33571
+ readonly attributes: {
33572
+ readonly [x: string]: string | number | boolean;
33573
+ };
33574
+ }[];
33575
+ };
33576
+ readonly durability: "durable";
33577
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
33578
+ readonly namespace: "effect-durable-agent";
33579
+ readonly type: "CompactionRequested";
33580
+ readonly schemaVersion: number;
33581
+ readonly payload: {
33582
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
33583
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
33584
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
33585
+ };
33586
+ } | {
33587
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
33588
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
33589
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
33590
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
33591
+ readonly trace: {
33592
+ readonly span: {
33593
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
33594
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
33595
+ readonly sampled: boolean;
33596
+ readonly tracestate: string | null;
33597
+ };
33598
+ readonly links: readonly {
33599
+ readonly context: {
33600
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
33601
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
33602
+ readonly sampled: boolean;
33603
+ readonly tracestate: string | null;
33604
+ };
33605
+ readonly attributes: {
33606
+ readonly [x: string]: string | number | boolean;
33607
+ };
33608
+ }[];
33609
+ };
33610
+ readonly durability: "durable";
33611
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
33612
+ readonly namespace: "effect-durable-agent";
33613
+ readonly type: "CompactionStarted";
33614
+ readonly schemaVersion: number;
33615
+ readonly payload: {
33616
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
33617
+ };
33618
33618
  } | {
33619
33619
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
33620
33620
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -53002,4 +53002,4 @@ declare const activeTurnIdentityForCommand: (state: ReducedState, commandId: Com
53002
53002
  declare const classifyRecoverableWork: (state: ReducedState) => RecoverableWork;
53003
53003
  //#endregion
53004
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
53005
+ //# sourceMappingURL=reduced-state-abeH0MOf.d.ts.map