effect-durable-agent 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7590,108 +7590,6 @@ interface RunInferenceInput extends RunInferenceContext {
7590
7590
  /** Summary returned after one provider inference stream is consumed. */
7591
7591
  declare const InferenceRunResult: Schema.Struct<{
7592
7592
  readonly started: Schema.Codec<CommittedDurableEvent<{
7593
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
7594
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
7595
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
7596
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
7597
- readonly trace: {
7598
- readonly span: {
7599
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7600
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7601
- readonly sampled: boolean;
7602
- readonly tracestate: string | null;
7603
- };
7604
- readonly links: readonly {
7605
- readonly context: {
7606
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7607
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7608
- readonly sampled: boolean;
7609
- readonly tracestate: string | null;
7610
- };
7611
- readonly attributes: {
7612
- readonly [x: string]: string | number | boolean;
7613
- };
7614
- }[];
7615
- };
7616
- readonly durability: "durable";
7617
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
7618
- readonly namespace: "effect-durable-agent";
7619
- readonly type: "CommandCompleted";
7620
- readonly schemaVersion: number;
7621
- readonly payload: {
7622
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
7623
- };
7624
- } | {
7625
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
7626
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
7627
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
7628
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
7629
- readonly trace: {
7630
- readonly span: {
7631
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7632
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7633
- readonly sampled: boolean;
7634
- readonly tracestate: string | null;
7635
- };
7636
- readonly links: readonly {
7637
- readonly context: {
7638
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7639
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7640
- readonly sampled: boolean;
7641
- readonly tracestate: string | null;
7642
- };
7643
- readonly attributes: {
7644
- readonly [x: string]: string | number | boolean;
7645
- };
7646
- }[];
7647
- };
7648
- readonly durability: "durable";
7649
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
7650
- readonly namespace: "effect-durable-agent";
7651
- readonly type: "CommandFailed";
7652
- readonly schemaVersion: number;
7653
- readonly payload: {
7654
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
7655
- readonly error: {
7656
- readonly message: string;
7657
- readonly code?: string | undefined;
7658
- readonly details?: unknown;
7659
- };
7660
- };
7661
- } | {
7662
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
7663
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
7664
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
7665
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
7666
- readonly trace: {
7667
- readonly span: {
7668
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7669
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7670
- readonly sampled: boolean;
7671
- readonly tracestate: string | null;
7672
- };
7673
- readonly links: readonly {
7674
- readonly context: {
7675
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7676
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7677
- readonly sampled: boolean;
7678
- readonly tracestate: string | null;
7679
- };
7680
- readonly attributes: {
7681
- readonly [x: string]: string | number | boolean;
7682
- };
7683
- }[];
7684
- };
7685
- readonly durability: "durable";
7686
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
7687
- readonly namespace: "effect-durable-agent";
7688
- readonly type: "CommandCancelled";
7689
- readonly schemaVersion: number;
7690
- readonly payload: {
7691
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
7692
- readonly reason: string;
7693
- };
7694
- } | {
7695
7593
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
7696
7594
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
7697
7595
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -8290,11 +8188,10 @@ declare const InferenceRunResult: Schema.Struct<{
8290
8188
  readonly durability: "durable";
8291
8189
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8292
8190
  readonly namespace: "effect-durable-agent";
8293
- readonly type: "SystemMessageCommitted";
8191
+ readonly type: "CommandCompleted";
8294
8192
  readonly schemaVersion: number;
8295
8193
  readonly payload: {
8296
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
8297
- readonly content: string;
8194
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
8298
8195
  };
8299
8196
  } | {
8300
8197
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -8323,58 +8220,81 @@ declare const InferenceRunResult: Schema.Struct<{
8323
8220
  readonly durability: "durable";
8324
8221
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8325
8222
  readonly namespace: "effect-durable-agent";
8326
- readonly type: "UserMessageCommitted";
8223
+ readonly type: "CommandFailed";
8327
8224
  readonly schemaVersion: number;
8328
8225
  readonly payload: {
8329
8226
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
8330
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
8331
- readonly content: readonly [{
8332
- readonly type: "text";
8333
- readonly text: string;
8334
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8335
- readonly options: {
8336
- readonly [x: string]: Schema.Json;
8337
- };
8338
- }, ...{
8339
- readonly type: "text";
8340
- readonly text: string;
8341
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8342
- readonly options: {
8343
- readonly [x: string]: Schema.Json;
8344
- };
8345
- }[]] | readonly [{
8346
- readonly type: "text";
8347
- readonly text: string;
8348
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8349
- readonly options: {
8350
- readonly [x: string]: Schema.Json;
8227
+ readonly error: {
8228
+ readonly message: string;
8229
+ readonly code?: string | undefined;
8230
+ readonly details?: unknown;
8231
+ };
8232
+ };
8233
+ } | {
8234
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8235
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8236
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8237
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8238
+ readonly trace: {
8239
+ readonly span: {
8240
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8241
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8242
+ readonly sampled: boolean;
8243
+ readonly tracestate: string | null;
8244
+ };
8245
+ readonly links: readonly {
8246
+ readonly context: {
8247
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8248
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8249
+ readonly sampled: boolean;
8250
+ readonly tracestate: string | null;
8351
8251
  };
8352
- } | {
8353
- readonly type: "file";
8354
- readonly mediaType: string;
8355
- readonly fileName?: string | undefined;
8356
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
8357
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8358
- readonly options: {
8359
- readonly [x: string]: Schema.Json;
8252
+ readonly attributes: {
8253
+ readonly [x: string]: string | number | boolean;
8360
8254
  };
8361
- }, ...({
8362
- readonly type: "text";
8363
- readonly text: string;
8364
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8365
- readonly options: {
8366
- readonly [x: string]: Schema.Json;
8255
+ }[];
8256
+ };
8257
+ readonly durability: "durable";
8258
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8259
+ readonly namespace: "effect-durable-agent";
8260
+ readonly type: "CommandCancelled";
8261
+ readonly schemaVersion: number;
8262
+ readonly payload: {
8263
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
8264
+ readonly reason: string;
8265
+ };
8266
+ } | {
8267
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8268
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8269
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8270
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8271
+ readonly trace: {
8272
+ readonly span: {
8273
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8274
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8275
+ readonly sampled: boolean;
8276
+ readonly tracestate: string | null;
8277
+ };
8278
+ readonly links: readonly {
8279
+ readonly context: {
8280
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8281
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8282
+ readonly sampled: boolean;
8283
+ readonly tracestate: string | null;
8367
8284
  };
8368
- } | {
8369
- readonly type: "file";
8370
- readonly mediaType: string;
8371
- readonly fileName?: string | undefined;
8372
- readonly data: string | URL | Uint8Array<ArrayBufferLike>;
8373
- readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8374
- readonly options: {
8375
- readonly [x: string]: Schema.Json;
8285
+ readonly attributes: {
8286
+ readonly [x: string]: string | number | boolean;
8376
8287
  };
8377
- })[]];
8288
+ }[];
8289
+ };
8290
+ readonly durability: "durable";
8291
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8292
+ readonly namespace: "effect-durable-agent";
8293
+ readonly type: "SystemMessageCommitted";
8294
+ readonly schemaVersion: number;
8295
+ readonly payload: {
8296
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
8297
+ readonly content: string;
8378
8298
  };
8379
8299
  } | {
8380
8300
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -8403,12 +8323,11 @@ declare const InferenceRunResult: Schema.Struct<{
8403
8323
  readonly durability: "durable";
8404
8324
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8405
8325
  readonly namespace: "effect-durable-agent";
8406
- readonly type: "SteeringMessageQueued";
8326
+ readonly type: "UserMessageCommitted";
8407
8327
  readonly schemaVersion: number;
8408
8328
  readonly payload: {
8409
8329
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
8410
8330
  readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
8411
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
8412
8331
  readonly content: readonly [{
8413
8332
  readonly type: "text";
8414
8333
  readonly text: string;
@@ -8484,46 +8403,127 @@ declare const InferenceRunResult: Schema.Struct<{
8484
8403
  readonly durability: "durable";
8485
8404
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8486
8405
  readonly namespace: "effect-durable-agent";
8487
- readonly type: "SteeringMessageCancelled";
8488
- readonly schemaVersion: number;
8489
- readonly payload: {
8490
- readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
8491
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
8492
- readonly reason: string;
8493
- };
8494
- } | {
8495
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8496
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8497
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8498
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8499
- readonly trace: {
8500
- readonly span: {
8501
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8502
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8503
- readonly sampled: boolean;
8504
- readonly tracestate: string | null;
8505
- };
8506
- readonly links: readonly {
8507
- readonly context: {
8508
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8509
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8510
- readonly sampled: boolean;
8511
- readonly tracestate: string | null;
8512
- };
8513
- readonly attributes: {
8514
- readonly [x: string]: string | number | boolean;
8515
- };
8516
- }[];
8517
- };
8518
- readonly durability: "durable";
8519
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8520
- readonly namespace: "effect-durable-agent";
8521
- readonly type: "UserMessageSubmitted";
8406
+ readonly type: "SteeringMessageQueued";
8522
8407
  readonly schemaVersion: number;
8523
8408
  readonly payload: {
8524
8409
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
8525
8410
  readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
8526
- readonly disposition: "queue" | "steer";
8411
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
8412
+ readonly content: readonly [{
8413
+ readonly type: "text";
8414
+ readonly text: string;
8415
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8416
+ readonly options: {
8417
+ readonly [x: string]: Schema.Json;
8418
+ };
8419
+ }, ...{
8420
+ readonly type: "text";
8421
+ readonly text: string;
8422
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8423
+ readonly options: {
8424
+ readonly [x: string]: Schema.Json;
8425
+ };
8426
+ }[]] | readonly [{
8427
+ readonly type: "text";
8428
+ readonly text: string;
8429
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8430
+ readonly options: {
8431
+ readonly [x: string]: Schema.Json;
8432
+ };
8433
+ } | {
8434
+ readonly type: "file";
8435
+ readonly mediaType: string;
8436
+ readonly fileName?: string | undefined;
8437
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
8438
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8439
+ readonly options: {
8440
+ readonly [x: string]: Schema.Json;
8441
+ };
8442
+ }, ...({
8443
+ readonly type: "text";
8444
+ readonly text: string;
8445
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8446
+ readonly options: {
8447
+ readonly [x: string]: Schema.Json;
8448
+ };
8449
+ } | {
8450
+ readonly type: "file";
8451
+ readonly mediaType: string;
8452
+ readonly fileName?: string | undefined;
8453
+ readonly data: string | URL | Uint8Array<ArrayBufferLike>;
8454
+ readonly "~effect/ai/Prompt/Part": "~effect/ai/Prompt/Part";
8455
+ readonly options: {
8456
+ readonly [x: string]: Schema.Json;
8457
+ };
8458
+ })[]];
8459
+ };
8460
+ } | {
8461
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8462
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8463
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8464
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8465
+ readonly trace: {
8466
+ readonly span: {
8467
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8468
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8469
+ readonly sampled: boolean;
8470
+ readonly tracestate: string | null;
8471
+ };
8472
+ readonly links: readonly {
8473
+ readonly context: {
8474
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8475
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8476
+ readonly sampled: boolean;
8477
+ readonly tracestate: string | null;
8478
+ };
8479
+ readonly attributes: {
8480
+ readonly [x: string]: string | number | boolean;
8481
+ };
8482
+ }[];
8483
+ };
8484
+ readonly durability: "durable";
8485
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8486
+ readonly namespace: "effect-durable-agent";
8487
+ readonly type: "SteeringMessageCancelled";
8488
+ readonly schemaVersion: number;
8489
+ readonly payload: {
8490
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
8491
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
8492
+ readonly reason: string;
8493
+ };
8494
+ } | {
8495
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8496
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8497
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8498
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8499
+ readonly trace: {
8500
+ readonly span: {
8501
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8502
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8503
+ readonly sampled: boolean;
8504
+ readonly tracestate: string | null;
8505
+ };
8506
+ readonly links: readonly {
8507
+ readonly context: {
8508
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8509
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8510
+ readonly sampled: boolean;
8511
+ readonly tracestate: string | null;
8512
+ };
8513
+ readonly attributes: {
8514
+ readonly [x: string]: string | number | boolean;
8515
+ };
8516
+ }[];
8517
+ };
8518
+ readonly durability: "durable";
8519
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8520
+ readonly namespace: "effect-durable-agent";
8521
+ readonly type: "UserMessageSubmitted";
8522
+ readonly schemaVersion: number;
8523
+ readonly payload: {
8524
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
8525
+ readonly messageId: string & import("effect/Brand").Brand<"MessageId">;
8526
+ readonly disposition: "queue" | "steer";
8527
8527
  readonly content: readonly [{
8528
8528
  readonly type: "text";
8529
8529
  readonly text: string;
@@ -10518,108 +10518,6 @@ declare const InferenceRunResult: Schema.Struct<{
10518
10518
  readonly partsRecorded: Schema.Int;
10519
10519
  readonly terminal: Schema.Union<readonly [Schema.TaggedStruct<"InferenceRunFinished", {
10520
10520
  readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
10521
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10522
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10523
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10524
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10525
- readonly trace: {
10526
- readonly span: {
10527
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10528
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10529
- readonly sampled: boolean;
10530
- readonly tracestate: string | null;
10531
- };
10532
- readonly links: readonly {
10533
- readonly context: {
10534
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10535
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10536
- readonly sampled: boolean;
10537
- readonly tracestate: string | null;
10538
- };
10539
- readonly attributes: {
10540
- readonly [x: string]: string | number | boolean;
10541
- };
10542
- }[];
10543
- };
10544
- readonly durability: "durable";
10545
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10546
- readonly namespace: "effect-durable-agent";
10547
- readonly type: "CommandCompleted";
10548
- readonly schemaVersion: number;
10549
- readonly payload: {
10550
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
10551
- };
10552
- } | {
10553
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10554
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10555
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10556
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10557
- readonly trace: {
10558
- readonly span: {
10559
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10560
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10561
- readonly sampled: boolean;
10562
- readonly tracestate: string | null;
10563
- };
10564
- readonly links: readonly {
10565
- readonly context: {
10566
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10567
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10568
- readonly sampled: boolean;
10569
- readonly tracestate: string | null;
10570
- };
10571
- readonly attributes: {
10572
- readonly [x: string]: string | number | boolean;
10573
- };
10574
- }[];
10575
- };
10576
- readonly durability: "durable";
10577
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10578
- readonly namespace: "effect-durable-agent";
10579
- readonly type: "CommandFailed";
10580
- readonly schemaVersion: number;
10581
- readonly payload: {
10582
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
10583
- readonly error: {
10584
- readonly message: string;
10585
- readonly code?: string | undefined;
10586
- readonly details?: unknown;
10587
- };
10588
- };
10589
- } | {
10590
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10591
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10592
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10593
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10594
- readonly trace: {
10595
- readonly span: {
10596
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10597
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10598
- readonly sampled: boolean;
10599
- readonly tracestate: string | null;
10600
- };
10601
- readonly links: readonly {
10602
- readonly context: {
10603
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10604
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10605
- readonly sampled: boolean;
10606
- readonly tracestate: string | null;
10607
- };
10608
- readonly attributes: {
10609
- readonly [x: string]: string | number | boolean;
10610
- };
10611
- }[];
10612
- };
10613
- readonly durability: "durable";
10614
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10615
- readonly namespace: "effect-durable-agent";
10616
- readonly type: "CommandCancelled";
10617
- readonly schemaVersion: number;
10618
- readonly payload: {
10619
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
10620
- readonly reason: string;
10621
- };
10622
- } | {
10623
10521
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10624
10522
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10625
10523
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -10945,14 +10843,121 @@ declare const InferenceRunResult: Schema.Struct<{
10945
10843
  readonly durability: "durable";
10946
10844
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10947
10845
  readonly namespace: "effect-durable-agent";
10948
- readonly type: "SessionConfigured";
10846
+ readonly type: "SessionConfigured";
10847
+ readonly schemaVersion: number;
10848
+ readonly payload: {
10849
+ readonly modelSelection: {
10850
+ readonly provider: string;
10851
+ readonly modelId: string;
10852
+ readonly settings?: unknown;
10853
+ };
10854
+ };
10855
+ } | {
10856
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10857
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10858
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10859
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10860
+ readonly trace: {
10861
+ readonly span: {
10862
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10863
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10864
+ readonly sampled: boolean;
10865
+ readonly tracestate: string | null;
10866
+ };
10867
+ readonly links: readonly {
10868
+ readonly context: {
10869
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10870
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10871
+ readonly sampled: boolean;
10872
+ readonly tracestate: string | null;
10873
+ };
10874
+ readonly attributes: {
10875
+ readonly [x: string]: string | number | boolean;
10876
+ };
10877
+ }[];
10878
+ };
10879
+ readonly durability: "durable";
10880
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10881
+ readonly namespace: "effect-durable-agent";
10882
+ readonly type: "DeciderAccepted";
10883
+ readonly schemaVersion: number;
10884
+ readonly payload: {
10885
+ readonly decider: string;
10886
+ readonly idempotencyKey: string;
10887
+ readonly result: Schema.Json;
10888
+ };
10889
+ } | {
10890
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10891
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10892
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10893
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10894
+ readonly trace: {
10895
+ readonly span: {
10896
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10897
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10898
+ readonly sampled: boolean;
10899
+ readonly tracestate: string | null;
10900
+ };
10901
+ readonly links: readonly {
10902
+ readonly context: {
10903
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10904
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10905
+ readonly sampled: boolean;
10906
+ readonly tracestate: string | null;
10907
+ };
10908
+ readonly attributes: {
10909
+ readonly [x: string]: string | number | boolean;
10910
+ };
10911
+ }[];
10912
+ };
10913
+ readonly durability: "durable";
10914
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10915
+ readonly namespace: "effect-durable-agent";
10916
+ readonly type: "RunSchedulingRequested";
10917
+ readonly schemaVersion: number;
10918
+ readonly payload: {
10919
+ readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
10920
+ readonly work: {
10921
+ readonly _tag: "Command";
10922
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
10923
+ } | {
10924
+ readonly _tag: "Recovery";
10925
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
10926
+ readonly interruptedRunId: string & import("effect/Brand").Brand<"RunId">;
10927
+ readonly inputMessageIds: readonly (string & import("effect/Brand").Brand<"MessageId">)[];
10928
+ };
10929
+ };
10930
+ } | {
10931
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10932
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10933
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10934
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10935
+ readonly trace: {
10936
+ readonly span: {
10937
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10938
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10939
+ readonly sampled: boolean;
10940
+ readonly tracestate: string | null;
10941
+ };
10942
+ readonly links: readonly {
10943
+ readonly context: {
10944
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10945
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10946
+ readonly sampled: boolean;
10947
+ readonly tracestate: string | null;
10948
+ };
10949
+ readonly attributes: {
10950
+ readonly [x: string]: string | number | boolean;
10951
+ };
10952
+ }[];
10953
+ };
10954
+ readonly durability: "durable";
10955
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10956
+ readonly namespace: "effect-durable-agent";
10957
+ readonly type: "RunSchedulingDelivered";
10949
10958
  readonly schemaVersion: number;
10950
10959
  readonly payload: {
10951
- readonly modelSelection: {
10952
- readonly provider: string;
10953
- readonly modelId: string;
10954
- readonly settings?: unknown;
10955
- };
10960
+ readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
10956
10961
  };
10957
10962
  } | {
10958
10963
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -10981,12 +10986,11 @@ declare const InferenceRunResult: Schema.Struct<{
10981
10986
  readonly durability: "durable";
10982
10987
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10983
10988
  readonly namespace: "effect-durable-agent";
10984
- readonly type: "DeciderAccepted";
10989
+ readonly type: "RunSchedulingInvalidated";
10985
10990
  readonly schemaVersion: number;
10986
10991
  readonly payload: {
10987
- readonly decider: string;
10988
- readonly idempotencyKey: string;
10989
- readonly result: Schema.Json;
10992
+ readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
10993
+ readonly reason: "ineligible" | "interrupted" | "message-cancelled" | "stopped";
10990
10994
  };
10991
10995
  } | {
10992
10996
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -11015,19 +11019,11 @@ declare const InferenceRunResult: Schema.Struct<{
11015
11019
  readonly durability: "durable";
11016
11020
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11017
11021
  readonly namespace: "effect-durable-agent";
11018
- readonly type: "RunSchedulingRequested";
11022
+ readonly type: "RunSchedulingGranted";
11019
11023
  readonly schemaVersion: number;
11020
11024
  readonly payload: {
11021
11025
  readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
11022
- readonly work: {
11023
- readonly _tag: "Command";
11024
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
11025
- } | {
11026
- readonly _tag: "Recovery";
11027
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
11028
- readonly interruptedRunId: string & import("effect/Brand").Brand<"RunId">;
11029
- readonly inputMessageIds: readonly (string & import("effect/Brand").Brand<"MessageId">)[];
11030
- };
11026
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
11031
11027
  };
11032
11028
  } | {
11033
11029
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -11056,10 +11052,10 @@ declare const InferenceRunResult: Schema.Struct<{
11056
11052
  readonly durability: "durable";
11057
11053
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11058
11054
  readonly namespace: "effect-durable-agent";
11059
- readonly type: "RunSchedulingDelivered";
11055
+ readonly type: "CommandAdmitted";
11060
11056
  readonly schemaVersion: number;
11061
11057
  readonly payload: {
11062
- readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
11058
+ readonly command: CancelPendingMessageCommand | PromotePendingMessageCommand | ResumePendingMessagesCommand | StopTurnCommand | SubmitMessageCommand;
11063
11059
  };
11064
11060
  } | {
11065
11061
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -11088,11 +11084,10 @@ declare const InferenceRunResult: Schema.Struct<{
11088
11084
  readonly durability: "durable";
11089
11085
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11090
11086
  readonly namespace: "effect-durable-agent";
11091
- readonly type: "RunSchedulingInvalidated";
11087
+ readonly type: "CommandStarted";
11092
11088
  readonly schemaVersion: number;
11093
11089
  readonly payload: {
11094
- readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
11095
- readonly reason: "ineligible" | "interrupted" | "message-cancelled" | "stopped";
11090
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
11096
11091
  };
11097
11092
  } | {
11098
11093
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -11121,11 +11116,10 @@ declare const InferenceRunResult: Schema.Struct<{
11121
11116
  readonly durability: "durable";
11122
11117
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11123
11118
  readonly namespace: "effect-durable-agent";
11124
- readonly type: "RunSchedulingGranted";
11119
+ readonly type: "CommandCompleted";
11125
11120
  readonly schemaVersion: number;
11126
11121
  readonly payload: {
11127
- readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
11128
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
11122
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
11129
11123
  };
11130
11124
  } | {
11131
11125
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -11154,10 +11148,15 @@ declare const InferenceRunResult: Schema.Struct<{
11154
11148
  readonly durability: "durable";
11155
11149
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11156
11150
  readonly namespace: "effect-durable-agent";
11157
- readonly type: "CommandAdmitted";
11151
+ readonly type: "CommandFailed";
11158
11152
  readonly schemaVersion: number;
11159
11153
  readonly payload: {
11160
- readonly command: CancelPendingMessageCommand | PromotePendingMessageCommand | ResumePendingMessagesCommand | StopTurnCommand | SubmitMessageCommand;
11154
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
11155
+ readonly error: {
11156
+ readonly message: string;
11157
+ readonly code?: string | undefined;
11158
+ readonly details?: unknown;
11159
+ };
11161
11160
  };
11162
11161
  } | {
11163
11162
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -11186,10 +11185,11 @@ declare const InferenceRunResult: Schema.Struct<{
11186
11185
  readonly durability: "durable";
11187
11186
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11188
11187
  readonly namespace: "effect-durable-agent";
11189
- readonly type: "CommandStarted";
11188
+ readonly type: "CommandCancelled";
11190
11189
  readonly schemaVersion: number;
11191
11190
  readonly payload: {
11192
11191
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
11192
+ readonly reason: string;
11193
11193
  };
11194
11194
  } | {
11195
11195
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -13448,108 +13448,6 @@ declare const InferenceRunResult: Schema.Struct<{
13448
13448
  readonly responseParts: Schema.$Array<Schema.Any>;
13449
13449
  }>, Schema.TaggedStruct<"InferenceRunFailed", {
13450
13450
  readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
13451
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
13452
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
13453
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
13454
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
13455
- readonly trace: {
13456
- readonly span: {
13457
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13458
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13459
- readonly sampled: boolean;
13460
- readonly tracestate: string | null;
13461
- };
13462
- readonly links: readonly {
13463
- readonly context: {
13464
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13465
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13466
- readonly sampled: boolean;
13467
- readonly tracestate: string | null;
13468
- };
13469
- readonly attributes: {
13470
- readonly [x: string]: string | number | boolean;
13471
- };
13472
- }[];
13473
- };
13474
- readonly durability: "durable";
13475
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
13476
- readonly namespace: "effect-durable-agent";
13477
- readonly type: "CommandCompleted";
13478
- readonly schemaVersion: number;
13479
- readonly payload: {
13480
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
13481
- };
13482
- } | {
13483
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
13484
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
13485
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
13486
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
13487
- readonly trace: {
13488
- readonly span: {
13489
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13490
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13491
- readonly sampled: boolean;
13492
- readonly tracestate: string | null;
13493
- };
13494
- readonly links: readonly {
13495
- readonly context: {
13496
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13497
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13498
- readonly sampled: boolean;
13499
- readonly tracestate: string | null;
13500
- };
13501
- readonly attributes: {
13502
- readonly [x: string]: string | number | boolean;
13503
- };
13504
- }[];
13505
- };
13506
- readonly durability: "durable";
13507
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
13508
- readonly namespace: "effect-durable-agent";
13509
- readonly type: "CommandFailed";
13510
- readonly schemaVersion: number;
13511
- readonly payload: {
13512
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
13513
- readonly error: {
13514
- readonly message: string;
13515
- readonly code?: string | undefined;
13516
- readonly details?: unknown;
13517
- };
13518
- };
13519
- } | {
13520
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
13521
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
13522
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
13523
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
13524
- readonly trace: {
13525
- readonly span: {
13526
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13527
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13528
- readonly sampled: boolean;
13529
- readonly tracestate: string | null;
13530
- };
13531
- readonly links: readonly {
13532
- readonly context: {
13533
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13534
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13535
- readonly sampled: boolean;
13536
- readonly tracestate: string | null;
13537
- };
13538
- readonly attributes: {
13539
- readonly [x: string]: string | number | boolean;
13540
- };
13541
- }[];
13542
- };
13543
- readonly durability: "durable";
13544
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
13545
- readonly namespace: "effect-durable-agent";
13546
- readonly type: "CommandCancelled";
13547
- readonly schemaVersion: number;
13548
- readonly payload: {
13549
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
13550
- readonly reason: string;
13551
- };
13552
- } | {
13553
13451
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
13554
13452
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
13555
13453
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -14121,6 +14019,108 @@ declare const InferenceRunResult: Schema.Struct<{
14121
14019
  readonly payload: {
14122
14020
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
14123
14021
  };
14022
+ } | {
14023
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
14024
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
14025
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
14026
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
14027
+ readonly trace: {
14028
+ readonly span: {
14029
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14030
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14031
+ readonly sampled: boolean;
14032
+ readonly tracestate: string | null;
14033
+ };
14034
+ readonly links: readonly {
14035
+ readonly context: {
14036
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14037
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14038
+ readonly sampled: boolean;
14039
+ readonly tracestate: string | null;
14040
+ };
14041
+ readonly attributes: {
14042
+ readonly [x: string]: string | number | boolean;
14043
+ };
14044
+ }[];
14045
+ };
14046
+ readonly durability: "durable";
14047
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
14048
+ readonly namespace: "effect-durable-agent";
14049
+ readonly type: "CommandCompleted";
14050
+ readonly schemaVersion: number;
14051
+ readonly payload: {
14052
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
14053
+ };
14054
+ } | {
14055
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
14056
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
14057
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
14058
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
14059
+ readonly trace: {
14060
+ readonly span: {
14061
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14062
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14063
+ readonly sampled: boolean;
14064
+ readonly tracestate: string | null;
14065
+ };
14066
+ readonly links: readonly {
14067
+ readonly context: {
14068
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14069
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14070
+ readonly sampled: boolean;
14071
+ readonly tracestate: string | null;
14072
+ };
14073
+ readonly attributes: {
14074
+ readonly [x: string]: string | number | boolean;
14075
+ };
14076
+ }[];
14077
+ };
14078
+ readonly durability: "durable";
14079
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
14080
+ readonly namespace: "effect-durable-agent";
14081
+ readonly type: "CommandFailed";
14082
+ readonly schemaVersion: number;
14083
+ readonly payload: {
14084
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
14085
+ readonly error: {
14086
+ readonly message: string;
14087
+ readonly code?: string | undefined;
14088
+ readonly details?: unknown;
14089
+ };
14090
+ };
14091
+ } | {
14092
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
14093
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
14094
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
14095
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
14096
+ readonly trace: {
14097
+ readonly span: {
14098
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14099
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14100
+ readonly sampled: boolean;
14101
+ readonly tracestate: string | null;
14102
+ };
14103
+ readonly links: readonly {
14104
+ readonly context: {
14105
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14106
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14107
+ readonly sampled: boolean;
14108
+ readonly tracestate: string | null;
14109
+ };
14110
+ readonly attributes: {
14111
+ readonly [x: string]: string | number | boolean;
14112
+ };
14113
+ }[];
14114
+ };
14115
+ readonly durability: "durable";
14116
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
14117
+ readonly namespace: "effect-durable-agent";
14118
+ readonly type: "CommandCancelled";
14119
+ readonly schemaVersion: number;
14120
+ readonly payload: {
14121
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
14122
+ readonly reason: string;
14123
+ };
14124
14124
  } | {
14125
14125
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
14126
14126
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -16418,6 +16418,72 @@ 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
+ } | {
16421
16487
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
16422
16488
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
16423
16489
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -18908,72 +18974,6 @@ declare const TurnRunResult: Schema.Struct<{
18908
18974
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
18909
18975
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
18910
18976
  };
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,6 +19345,72 @@ 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
+ } | {
19348
19414
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
19349
19415
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
19350
19416
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -21835,72 +21901,6 @@ declare const TurnRunResult: Schema.Struct<{
21835
21901
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
21836
21902
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
21837
21903
  };
21838
- } | {
21839
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
21840
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
21841
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
21842
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
21843
- readonly trace: {
21844
- readonly span: {
21845
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
21846
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
21847
- readonly sampled: boolean;
21848
- readonly tracestate: string | null;
21849
- };
21850
- readonly links: readonly {
21851
- readonly context: {
21852
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
21853
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
21854
- readonly sampled: boolean;
21855
- readonly tracestate: string | null;
21856
- };
21857
- readonly attributes: {
21858
- readonly [x: string]: string | number | boolean;
21859
- };
21860
- }[];
21861
- };
21862
- readonly durability: "durable";
21863
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
21864
- readonly namespace: "effect-durable-agent";
21865
- readonly type: "CompactionRequested";
21866
- readonly schemaVersion: number;
21867
- readonly payload: {
21868
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
21869
- readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
21870
- readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
21871
- };
21872
- } | {
21873
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
21874
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
21875
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
21876
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
21877
- readonly trace: {
21878
- readonly span: {
21879
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
21880
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
21881
- readonly sampled: boolean;
21882
- readonly tracestate: string | null;
21883
- };
21884
- readonly links: readonly {
21885
- readonly context: {
21886
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
21887
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
21888
- readonly sampled: boolean;
21889
- readonly tracestate: string | null;
21890
- };
21891
- readonly attributes: {
21892
- readonly [x: string]: string | number | boolean;
21893
- };
21894
- }[];
21895
- };
21896
- readonly durability: "durable";
21897
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
21898
- readonly namespace: "effect-durable-agent";
21899
- readonly type: "CompactionStarted";
21900
- readonly schemaVersion: number;
21901
- readonly payload: {
21902
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
21903
- };
21904
21904
  } | {
21905
21905
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
21906
21906
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -22273,6 +22273,72 @@ 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
+ } | {
22276
22342
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
22277
22343
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
22278
22344
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -24763,72 +24829,6 @@ declare const TurnRunResult: Schema.Struct<{
24763
24829
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
24764
24830
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
24765
24831
  };
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,6 +25203,72 @@ 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
+ } | {
25206
25272
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
25207
25273
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
25208
25274
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -27693,72 +27759,6 @@ declare const TurnRunResult: Schema.Struct<{
27693
27759
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
27694
27760
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
27695
27761
  };
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,6 +28132,72 @@ 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
+ } | {
28135
28201
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
28136
28202
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
28137
28203
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -30622,72 +30688,6 @@ declare const TurnRunResult: Schema.Struct<{
30622
30688
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
30623
30689
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
30624
30690
  };
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,6 +31059,72 @@ 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
+ } | {
31062
31128
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
31063
31129
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
31064
31130
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -33549,72 +33615,6 @@ declare const TurnRunResult: Schema.Struct<{
33549
33615
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
33550
33616
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
33551
33617
  };
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-DNfEwxu7.d.ts.map
53005
+ //# sourceMappingURL=reduced-state-BvNK4zug.d.ts.map