effect-durable-agent 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/{compaction-D7WJa899.js → compaction-Dlq4wgZE.js} +12 -9
  2. package/dist/compaction-Dlq4wgZE.js.map +1 -0
  3. package/dist/{delivery-v42MAMEP.d.ts → delivery-A0JGAmbC.d.ts} +2 -2
  4. package/dist/domain/command-queues.d.ts +1 -1
  5. package/dist/domain/message-transcript.d.ts +1 -1
  6. package/dist/domain/message-transcript.js +15 -7
  7. package/dist/domain/message-transcript.js.map +1 -1
  8. package/dist/domain/reduced-state.d.ts +2 -2
  9. package/dist/domain/reduced-state.js +21 -5
  10. package/dist/domain/reduced-state.js.map +1 -1
  11. package/dist/domain/run-scheduling.d.ts +2 -2
  12. package/dist/domain/run-scheduling.js +95 -26
  13. package/dist/domain/run-scheduling.js.map +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/{reduced-state-DB_iANjR.d.ts → reduced-state-M2tbEOWK.d.ts} +400 -351
  16. package/dist/services/compaction.d.ts +1 -1
  17. package/dist/services/compaction.js +1 -1
  18. package/dist/services/decider.d.ts +1 -1
  19. package/dist/services/model-call.d.ts +1 -1
  20. package/dist/services/prompt-projector.d.ts +1 -1
  21. package/dist/services/run-scheduler.d.ts +1 -1
  22. package/dist/services/runtime-layer.d.ts +1 -1
  23. package/dist/services/runtime-layer.js +2 -2
  24. package/dist/services/runtime.d.ts +1 -1
  25. package/dist/services/runtime.js +1 -1
  26. package/dist/services/session-query.d.ts +1 -1
  27. package/dist/services/session-query.js +1 -1
  28. package/dist/services/session-state.d.ts +1 -1
  29. package/dist/services/session-state.js +1 -1
  30. package/dist/services/sink-registry.d.ts +1 -1
  31. package/dist/services/tool-registry.d.ts +1 -1
  32. package/dist/{session-state-BII-Jhf-.js → session-state-7fAC2GDp.js} +63 -16
  33. package/dist/session-state-7fAC2GDp.js.map +1 -0
  34. package/dist/testkit/layers.d.ts +1 -1
  35. package/dist/testkit/layers.js +2 -2
  36. package/dist/websocket/events.d.ts +1 -1
  37. package/dist/websocket.d.ts +1 -1
  38. package/package.json +1 -1
  39. package/dist/compaction-D7WJa899.js.map +0 -1
  40. package/dist/session-state-BII-Jhf-.js.map +0 -1
@@ -306,9 +306,46 @@ declare const RunRequestOutcome: Schema.Union<readonly [Schema.TaggedStruct<"Unk
306
306
  type RunRequestOutcome = typeof RunRequestOutcome.Type;
307
307
  /** Canonical records consulted by authorization policy, without an Effect-layer snapshot. */
308
308
  type SchedulingState = Pick<ReducedState, "commands" | "runs" | "messages" | "commandQueues" | "runSchedulingRequest">;
309
- /** Still-unconsumed inputs owned by a reservation, derived from the existing message records. */
309
+ /**
310
+ * The messages a run for this work would consume: its selected user and steering messages that
311
+ * are neither consumed nor cancelled. Dispatch, grant, cancellation and startup recovery all read
312
+ * this one function, so dispatch never reserves a run that grant rejects for want of inputs,
313
+ * cancelling an input always finds the reservation that owns it, and a replacement run selects
314
+ * the inputs its interrupted run would have consumed.
315
+ *
316
+ * A paused message is an input only of the `ResumePendingMessages` that names it, for that
317
+ * command's own work and for a recovery of it alike, because resuming paused messages is that
318
+ * command's purpose: a host's interrupt-with-pending-message submits
319
+ * `[StopTurn, ResumePendingMessages([m])]`, and the Stop pauses `m` before the Resume runs. Until
320
+ * a turn consumes `m` it stays paused, so a run that dies before its first turn leaves it paused
321
+ * for recovery. For any other work, and for any message the Resume does not name, a pause holds
322
+ * the message until the user promotes or resumes it.
323
+ */
310
324
  declare const runSchedulingInputMessageIds: (state: SchedulingState, work: RunSchedulingWork) => ReadonlyArray<MessageId>;
311
- /** Revalidate durable ownership and pending controls immediately before granting permission. */
325
+ /**
326
+ * Whether a reservation's work can start a run now. Grant starts a run only from `Grantable`,
327
+ * whose inputs are the ones the run consumes.
328
+ *
329
+ * `Blocked` clears without intervention: a non-terminal run finishes, a pending Stop, interrupt
330
+ * or cancellation of an input resolves the reservation itself, or a promotion releases a paused
331
+ * input. It is checked first, so a pending control always decides its reservation's fate.
332
+ *
333
+ * `Ineligible` never clears, because every fact behind it is absorbing: an owner command that is
334
+ * missing, terminal, or (for ordinary work) already started; a recovery predecessor that does not
335
+ * match; inputs that were all consumed or cancelled. The session retires such a reservation
336
+ * rather than leave every later message waiting behind it.
337
+ */
338
+ declare const RunGrantability: Schema.Union<readonly [Schema.TaggedStruct<"Grantable", {
339
+ readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
340
+ }>, Schema.TaggedStruct<"Blocked", {
341
+ readonly reason: Schema.Literals<readonly ["active-run", "pending-control", "paused-inputs"]>;
342
+ }>, Schema.TaggedStruct<"Ineligible", {
343
+ readonly reason: Schema.Literals<readonly ["owner-missing", "owner-terminal", "owner-started", "owner-not-started", "predecessor-mismatch", "inputs-gone"]>;
344
+ }>]>;
345
+ type RunGrantability = typeof RunGrantability.Type;
346
+ /** Classify a reservation's work against durable ownership, runs and pending controls. */
347
+ declare const runGrantability: (state: SchedulingState, work: RunSchedulingWork) => RunGrantability;
348
+ /** Whether a grant of `requestId` would start a run now; `runGrantability` says why not. */
312
349
  declare const canGrantRun: (state: SchedulingState, requestId: RunRequestId) => boolean;
313
350
  /** Controls may change waiting work; later messages cannot take its reserved slot. */
314
351
  declare const waitingRunControl: (state: SchedulingState) => PendingCommand | undefined;
@@ -7530,108 +7567,6 @@ interface RunInferenceInput extends RunInferenceContext {
7530
7567
  /** Summary returned after one provider inference stream is consumed. */
7531
7568
  declare const InferenceRunResult: Schema.Struct<{
7532
7569
  readonly started: Schema.Codec<CommittedDurableEvent<{
7533
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
7534
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
7535
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
7536
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
7537
- readonly trace: {
7538
- readonly span: {
7539
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7540
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7541
- readonly sampled: boolean;
7542
- readonly tracestate: string | null;
7543
- };
7544
- readonly links: readonly {
7545
- readonly context: {
7546
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7547
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7548
- readonly sampled: boolean;
7549
- readonly tracestate: string | null;
7550
- };
7551
- readonly attributes: {
7552
- readonly [x: string]: string | number | boolean;
7553
- };
7554
- }[];
7555
- };
7556
- readonly durability: "durable";
7557
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
7558
- readonly namespace: "effect-durable-agent";
7559
- readonly type: "CommandCompleted";
7560
- readonly schemaVersion: number;
7561
- readonly payload: {
7562
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
7563
- };
7564
- } | {
7565
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
7566
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
7567
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
7568
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
7569
- readonly trace: {
7570
- readonly span: {
7571
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7572
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7573
- readonly sampled: boolean;
7574
- readonly tracestate: string | null;
7575
- };
7576
- readonly links: readonly {
7577
- readonly context: {
7578
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7579
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7580
- readonly sampled: boolean;
7581
- readonly tracestate: string | null;
7582
- };
7583
- readonly attributes: {
7584
- readonly [x: string]: string | number | boolean;
7585
- };
7586
- }[];
7587
- };
7588
- readonly durability: "durable";
7589
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
7590
- readonly namespace: "effect-durable-agent";
7591
- readonly type: "CommandFailed";
7592
- readonly schemaVersion: number;
7593
- readonly payload: {
7594
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
7595
- readonly error: {
7596
- readonly message: string;
7597
- readonly code?: string | undefined;
7598
- readonly details?: unknown;
7599
- };
7600
- };
7601
- } | {
7602
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
7603
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
7604
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
7605
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
7606
- readonly trace: {
7607
- readonly span: {
7608
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7609
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7610
- readonly sampled: boolean;
7611
- readonly tracestate: string | null;
7612
- };
7613
- readonly links: readonly {
7614
- readonly context: {
7615
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
7616
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
7617
- readonly sampled: boolean;
7618
- readonly tracestate: string | null;
7619
- };
7620
- readonly attributes: {
7621
- readonly [x: string]: string | number | boolean;
7622
- };
7623
- }[];
7624
- };
7625
- readonly durability: "durable";
7626
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
7627
- readonly namespace: "effect-durable-agent";
7628
- readonly type: "CommandCancelled";
7629
- readonly schemaVersion: number;
7630
- readonly payload: {
7631
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
7632
- readonly reason: string;
7633
- };
7634
- } | {
7635
7570
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
7636
7571
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
7637
7572
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -8203,6 +8138,108 @@ declare const InferenceRunResult: Schema.Struct<{
8203
8138
  readonly payload: {
8204
8139
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
8205
8140
  };
8141
+ } | {
8142
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8143
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8144
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8145
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8146
+ readonly trace: {
8147
+ readonly span: {
8148
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8149
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8150
+ readonly sampled: boolean;
8151
+ readonly tracestate: string | null;
8152
+ };
8153
+ readonly links: readonly {
8154
+ readonly context: {
8155
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8156
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8157
+ readonly sampled: boolean;
8158
+ readonly tracestate: string | null;
8159
+ };
8160
+ readonly attributes: {
8161
+ readonly [x: string]: string | number | boolean;
8162
+ };
8163
+ }[];
8164
+ };
8165
+ readonly durability: "durable";
8166
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8167
+ readonly namespace: "effect-durable-agent";
8168
+ readonly type: "CommandCompleted";
8169
+ readonly schemaVersion: number;
8170
+ readonly payload: {
8171
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
8172
+ };
8173
+ } | {
8174
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8175
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8176
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8177
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8178
+ readonly trace: {
8179
+ readonly span: {
8180
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8181
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8182
+ readonly sampled: boolean;
8183
+ readonly tracestate: string | null;
8184
+ };
8185
+ readonly links: readonly {
8186
+ readonly context: {
8187
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8188
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8189
+ readonly sampled: boolean;
8190
+ readonly tracestate: string | null;
8191
+ };
8192
+ readonly attributes: {
8193
+ readonly [x: string]: string | number | boolean;
8194
+ };
8195
+ }[];
8196
+ };
8197
+ readonly durability: "durable";
8198
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8199
+ readonly namespace: "effect-durable-agent";
8200
+ readonly type: "CommandFailed";
8201
+ readonly schemaVersion: number;
8202
+ readonly payload: {
8203
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
8204
+ readonly error: {
8205
+ readonly message: string;
8206
+ readonly code?: string | undefined;
8207
+ readonly details?: unknown;
8208
+ };
8209
+ };
8210
+ } | {
8211
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8212
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8213
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8214
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8215
+ readonly trace: {
8216
+ readonly span: {
8217
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8218
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8219
+ readonly sampled: boolean;
8220
+ readonly tracestate: string | null;
8221
+ };
8222
+ readonly links: readonly {
8223
+ readonly context: {
8224
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8225
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8226
+ readonly sampled: boolean;
8227
+ readonly tracestate: string | null;
8228
+ };
8229
+ readonly attributes: {
8230
+ readonly [x: string]: string | number | boolean;
8231
+ };
8232
+ }[];
8233
+ };
8234
+ readonly durability: "durable";
8235
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
8236
+ readonly namespace: "effect-durable-agent";
8237
+ readonly type: "CommandCancelled";
8238
+ readonly schemaVersion: number;
8239
+ readonly payload: {
8240
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
8241
+ readonly reason: string;
8242
+ };
8206
8243
  } | {
8207
8244
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8208
8245
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -10458,108 +10495,6 @@ declare const InferenceRunResult: Schema.Struct<{
10458
10495
  readonly partsRecorded: Schema.Int;
10459
10496
  readonly terminal: Schema.Union<readonly [Schema.TaggedStruct<"InferenceRunFinished", {
10460
10497
  readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
10461
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10462
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10463
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10464
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10465
- readonly trace: {
10466
- readonly span: {
10467
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10468
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10469
- readonly sampled: boolean;
10470
- readonly tracestate: string | null;
10471
- };
10472
- readonly links: readonly {
10473
- readonly context: {
10474
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10475
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10476
- readonly sampled: boolean;
10477
- readonly tracestate: string | null;
10478
- };
10479
- readonly attributes: {
10480
- readonly [x: string]: string | number | boolean;
10481
- };
10482
- }[];
10483
- };
10484
- readonly durability: "durable";
10485
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10486
- readonly namespace: "effect-durable-agent";
10487
- readonly type: "CommandCompleted";
10488
- readonly schemaVersion: number;
10489
- readonly payload: {
10490
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
10491
- };
10492
- } | {
10493
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10494
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10495
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10496
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10497
- readonly trace: {
10498
- readonly span: {
10499
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10500
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10501
- readonly sampled: boolean;
10502
- readonly tracestate: string | null;
10503
- };
10504
- readonly links: readonly {
10505
- readonly context: {
10506
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10507
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10508
- readonly sampled: boolean;
10509
- readonly tracestate: string | null;
10510
- };
10511
- readonly attributes: {
10512
- readonly [x: string]: string | number | boolean;
10513
- };
10514
- }[];
10515
- };
10516
- readonly durability: "durable";
10517
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10518
- readonly namespace: "effect-durable-agent";
10519
- readonly type: "CommandFailed";
10520
- readonly schemaVersion: number;
10521
- readonly payload: {
10522
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
10523
- readonly error: {
10524
- readonly message: string;
10525
- readonly code?: string | undefined;
10526
- readonly details?: unknown;
10527
- };
10528
- };
10529
- } | {
10530
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10531
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10532
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10533
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10534
- readonly trace: {
10535
- readonly span: {
10536
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10537
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10538
- readonly sampled: boolean;
10539
- readonly tracestate: string | null;
10540
- };
10541
- readonly links: readonly {
10542
- readonly context: {
10543
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10544
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10545
- readonly sampled: boolean;
10546
- readonly tracestate: string | null;
10547
- };
10548
- readonly attributes: {
10549
- readonly [x: string]: string | number | boolean;
10550
- };
10551
- }[];
10552
- };
10553
- readonly durability: "durable";
10554
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10555
- readonly namespace: "effect-durable-agent";
10556
- readonly type: "CommandCancelled";
10557
- readonly schemaVersion: number;
10558
- readonly payload: {
10559
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
10560
- readonly reason: string;
10561
- };
10562
- } | {
10563
10498
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10564
10499
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10565
10500
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -10996,10 +10931,140 @@ declare const InferenceRunResult: Schema.Struct<{
10996
10931
  readonly durability: "durable";
10997
10932
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10998
10933
  readonly namespace: "effect-durable-agent";
10999
- readonly type: "RunSchedulingDelivered";
10934
+ readonly type: "RunSchedulingDelivered";
10935
+ readonly schemaVersion: number;
10936
+ readonly payload: {
10937
+ readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
10938
+ };
10939
+ } | {
10940
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10941
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10942
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10943
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10944
+ readonly trace: {
10945
+ readonly span: {
10946
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10947
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10948
+ readonly sampled: boolean;
10949
+ readonly tracestate: string | null;
10950
+ };
10951
+ readonly links: readonly {
10952
+ readonly context: {
10953
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10954
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10955
+ readonly sampled: boolean;
10956
+ readonly tracestate: string | null;
10957
+ };
10958
+ readonly attributes: {
10959
+ readonly [x: string]: string | number | boolean;
10960
+ };
10961
+ }[];
10962
+ };
10963
+ readonly durability: "durable";
10964
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10965
+ readonly namespace: "effect-durable-agent";
10966
+ readonly type: "RunSchedulingInvalidated";
10967
+ readonly schemaVersion: number;
10968
+ readonly payload: {
10969
+ readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
10970
+ readonly reason: "ineligible" | "interrupted" | "message-cancelled" | "stopped";
10971
+ };
10972
+ } | {
10973
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10974
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10975
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10976
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10977
+ readonly trace: {
10978
+ readonly span: {
10979
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10980
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10981
+ readonly sampled: boolean;
10982
+ readonly tracestate: string | null;
10983
+ };
10984
+ readonly links: readonly {
10985
+ readonly context: {
10986
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10987
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10988
+ readonly sampled: boolean;
10989
+ readonly tracestate: string | null;
10990
+ };
10991
+ readonly attributes: {
10992
+ readonly [x: string]: string | number | boolean;
10993
+ };
10994
+ }[];
10995
+ };
10996
+ readonly durability: "durable";
10997
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
10998
+ readonly namespace: "effect-durable-agent";
10999
+ readonly type: "RunSchedulingGranted";
11000
+ readonly schemaVersion: number;
11001
+ readonly payload: {
11002
+ readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
11003
+ readonly runId: string & import("effect/Brand").Brand<"RunId">;
11004
+ };
11005
+ } | {
11006
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
11007
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
11008
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
11009
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
11010
+ readonly trace: {
11011
+ readonly span: {
11012
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
11013
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
11014
+ readonly sampled: boolean;
11015
+ readonly tracestate: string | null;
11016
+ };
11017
+ readonly links: readonly {
11018
+ readonly context: {
11019
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
11020
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
11021
+ readonly sampled: boolean;
11022
+ readonly tracestate: string | null;
11023
+ };
11024
+ readonly attributes: {
11025
+ readonly [x: string]: string | number | boolean;
11026
+ };
11027
+ }[];
11028
+ };
11029
+ readonly durability: "durable";
11030
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11031
+ readonly namespace: "effect-durable-agent";
11032
+ readonly type: "CommandAdmitted";
11033
+ readonly schemaVersion: number;
11034
+ readonly payload: {
11035
+ readonly command: CancelPendingMessageCommand | PromotePendingMessageCommand | ResumePendingMessagesCommand | StopTurnCommand | SubmitMessageCommand;
11036
+ };
11037
+ } | {
11038
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
11039
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
11040
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
11041
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
11042
+ readonly trace: {
11043
+ readonly span: {
11044
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
11045
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
11046
+ readonly sampled: boolean;
11047
+ readonly tracestate: string | null;
11048
+ };
11049
+ readonly links: readonly {
11050
+ readonly context: {
11051
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
11052
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
11053
+ readonly sampled: boolean;
11054
+ readonly tracestate: string | null;
11055
+ };
11056
+ readonly attributes: {
11057
+ readonly [x: string]: string | number | boolean;
11058
+ };
11059
+ }[];
11060
+ };
11061
+ readonly durability: "durable";
11062
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11063
+ readonly namespace: "effect-durable-agent";
11064
+ readonly type: "CommandStarted";
11000
11065
  readonly schemaVersion: number;
11001
11066
  readonly payload: {
11002
- readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
11067
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
11003
11068
  };
11004
11069
  } | {
11005
11070
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -11028,11 +11093,10 @@ declare const InferenceRunResult: Schema.Struct<{
11028
11093
  readonly durability: "durable";
11029
11094
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11030
11095
  readonly namespace: "effect-durable-agent";
11031
- readonly type: "RunSchedulingInvalidated";
11096
+ readonly type: "CommandCompleted";
11032
11097
  readonly schemaVersion: number;
11033
11098
  readonly payload: {
11034
- readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
11035
- readonly reason: "ineligible" | "interrupted" | "message-cancelled" | "stopped";
11099
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
11036
11100
  };
11037
11101
  } | {
11038
11102
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -11061,43 +11125,15 @@ declare const InferenceRunResult: Schema.Struct<{
11061
11125
  readonly durability: "durable";
11062
11126
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11063
11127
  readonly namespace: "effect-durable-agent";
11064
- readonly type: "RunSchedulingGranted";
11128
+ readonly type: "CommandFailed";
11065
11129
  readonly schemaVersion: number;
11066
11130
  readonly payload: {
11067
- readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
11068
- readonly runId: string & import("effect/Brand").Brand<"RunId">;
11069
- };
11070
- } | {
11071
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
11072
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
11073
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
11074
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
11075
- readonly trace: {
11076
- readonly span: {
11077
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
11078
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
11079
- readonly sampled: boolean;
11080
- readonly tracestate: string | null;
11131
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
11132
+ readonly error: {
11133
+ readonly message: string;
11134
+ readonly code?: string | undefined;
11135
+ readonly details?: unknown;
11081
11136
  };
11082
- readonly links: readonly {
11083
- readonly context: {
11084
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
11085
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
11086
- readonly sampled: boolean;
11087
- readonly tracestate: string | null;
11088
- };
11089
- readonly attributes: {
11090
- readonly [x: string]: string | number | boolean;
11091
- };
11092
- }[];
11093
- };
11094
- readonly durability: "durable";
11095
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11096
- readonly namespace: "effect-durable-agent";
11097
- readonly type: "CommandAdmitted";
11098
- readonly schemaVersion: number;
11099
- readonly payload: {
11100
- readonly command: CancelPendingMessageCommand | PromotePendingMessageCommand | ResumePendingMessagesCommand | StopTurnCommand | SubmitMessageCommand;
11101
11137
  };
11102
11138
  } | {
11103
11139
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -11126,10 +11162,11 @@ declare const InferenceRunResult: Schema.Struct<{
11126
11162
  readonly durability: "durable";
11127
11163
  readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
11128
11164
  readonly namespace: "effect-durable-agent";
11129
- readonly type: "CommandStarted";
11165
+ readonly type: "CommandCancelled";
11130
11166
  readonly schemaVersion: number;
11131
11167
  readonly payload: {
11132
11168
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
11169
+ readonly reason: string;
11133
11170
  };
11134
11171
  } | {
11135
11172
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
@@ -13388,108 +13425,6 @@ declare const InferenceRunResult: Schema.Struct<{
13388
13425
  readonly responseParts: Schema.$Array<Schema.Any>;
13389
13426
  }>, Schema.TaggedStruct<"InferenceRunFailed", {
13390
13427
  readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
13391
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
13392
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
13393
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
13394
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
13395
- readonly trace: {
13396
- readonly span: {
13397
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13398
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13399
- readonly sampled: boolean;
13400
- readonly tracestate: string | null;
13401
- };
13402
- readonly links: readonly {
13403
- readonly context: {
13404
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13405
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13406
- readonly sampled: boolean;
13407
- readonly tracestate: string | null;
13408
- };
13409
- readonly attributes: {
13410
- readonly [x: string]: string | number | boolean;
13411
- };
13412
- }[];
13413
- };
13414
- readonly durability: "durable";
13415
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
13416
- readonly namespace: "effect-durable-agent";
13417
- readonly type: "CommandCompleted";
13418
- readonly schemaVersion: number;
13419
- readonly payload: {
13420
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
13421
- };
13422
- } | {
13423
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
13424
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
13425
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
13426
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
13427
- readonly trace: {
13428
- readonly span: {
13429
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13430
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13431
- readonly sampled: boolean;
13432
- readonly tracestate: string | null;
13433
- };
13434
- readonly links: readonly {
13435
- readonly context: {
13436
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13437
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13438
- readonly sampled: boolean;
13439
- readonly tracestate: string | null;
13440
- };
13441
- readonly attributes: {
13442
- readonly [x: string]: string | number | boolean;
13443
- };
13444
- }[];
13445
- };
13446
- readonly durability: "durable";
13447
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
13448
- readonly namespace: "effect-durable-agent";
13449
- readonly type: "CommandFailed";
13450
- readonly schemaVersion: number;
13451
- readonly payload: {
13452
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
13453
- readonly error: {
13454
- readonly message: string;
13455
- readonly code?: string | undefined;
13456
- readonly details?: unknown;
13457
- };
13458
- };
13459
- } | {
13460
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
13461
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
13462
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
13463
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
13464
- readonly trace: {
13465
- readonly span: {
13466
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13467
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13468
- readonly sampled: boolean;
13469
- readonly tracestate: string | null;
13470
- };
13471
- readonly links: readonly {
13472
- readonly context: {
13473
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13474
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13475
- readonly sampled: boolean;
13476
- readonly tracestate: string | null;
13477
- };
13478
- readonly attributes: {
13479
- readonly [x: string]: string | number | boolean;
13480
- };
13481
- }[];
13482
- };
13483
- readonly durability: "durable";
13484
- readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
13485
- readonly namespace: "effect-durable-agent";
13486
- readonly type: "CommandCancelled";
13487
- readonly schemaVersion: number;
13488
- readonly payload: {
13489
- readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
13490
- readonly reason: string;
13491
- };
13492
- } | {
13493
13428
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
13494
13429
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
13495
13430
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -14061,6 +13996,108 @@ declare const InferenceRunResult: Schema.Struct<{
14061
13996
  readonly payload: {
14062
13997
  readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
14063
13998
  };
13999
+ } | {
14000
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
14001
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
14002
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
14003
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
14004
+ readonly trace: {
14005
+ readonly span: {
14006
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14007
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14008
+ readonly sampled: boolean;
14009
+ readonly tracestate: string | null;
14010
+ };
14011
+ readonly links: readonly {
14012
+ readonly context: {
14013
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14014
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14015
+ readonly sampled: boolean;
14016
+ readonly tracestate: string | null;
14017
+ };
14018
+ readonly attributes: {
14019
+ readonly [x: string]: string | number | boolean;
14020
+ };
14021
+ }[];
14022
+ };
14023
+ readonly durability: "durable";
14024
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
14025
+ readonly namespace: "effect-durable-agent";
14026
+ readonly type: "CommandCompleted";
14027
+ readonly schemaVersion: number;
14028
+ readonly payload: {
14029
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
14030
+ };
14031
+ } | {
14032
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
14033
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
14034
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
14035
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
14036
+ readonly trace: {
14037
+ readonly span: {
14038
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14039
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14040
+ readonly sampled: boolean;
14041
+ readonly tracestate: string | null;
14042
+ };
14043
+ readonly links: readonly {
14044
+ readonly context: {
14045
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14046
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14047
+ readonly sampled: boolean;
14048
+ readonly tracestate: string | null;
14049
+ };
14050
+ readonly attributes: {
14051
+ readonly [x: string]: string | number | boolean;
14052
+ };
14053
+ }[];
14054
+ };
14055
+ readonly durability: "durable";
14056
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
14057
+ readonly namespace: "effect-durable-agent";
14058
+ readonly type: "CommandFailed";
14059
+ readonly schemaVersion: number;
14060
+ readonly payload: {
14061
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
14062
+ readonly error: {
14063
+ readonly message: string;
14064
+ readonly code?: string | undefined;
14065
+ readonly details?: unknown;
14066
+ };
14067
+ };
14068
+ } | {
14069
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
14070
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
14071
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
14072
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
14073
+ readonly trace: {
14074
+ readonly span: {
14075
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14076
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14077
+ readonly sampled: boolean;
14078
+ readonly tracestate: string | null;
14079
+ };
14080
+ readonly links: readonly {
14081
+ readonly context: {
14082
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
14083
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
14084
+ readonly sampled: boolean;
14085
+ readonly tracestate: string | null;
14086
+ };
14087
+ readonly attributes: {
14088
+ readonly [x: string]: string | number | boolean;
14089
+ };
14090
+ }[];
14091
+ };
14092
+ readonly durability: "durable";
14093
+ readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
14094
+ readonly namespace: "effect-durable-agent";
14095
+ readonly type: "CommandCancelled";
14096
+ readonly schemaVersion: number;
14097
+ readonly payload: {
14098
+ readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
14099
+ readonly reason: string;
14100
+ };
14064
14101
  } | {
14065
14102
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
14066
14103
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -51888,7 +51925,7 @@ declare const initialReducedState: ReducedState;
51888
51925
  /** Reserved reducer checkpoint name for the framework-owned `ReducedState`. */
51889
51926
  declare const frameworkReducedStateReducerName = "_eda.framework.reduced-state";
51890
51927
  /** Schema version for the framework-owned `ReducedState` checkpoint payload. */
51891
- declare const frameworkReducedStateReducerSchemaVersion = 7;
51928
+ declare const frameworkReducedStateReducerSchemaVersion = 8;
51892
51929
  /** JSON payload stored for the framework-owned reduced-state reducer checkpoint. */
51893
51930
  type ReducedStateCheckpointCommandRecord = Omit<CommandRecord, "command">;
51894
51931
  type SystemMessageRecord = Extract<MessageRecord, {
@@ -52918,6 +52955,18 @@ declare const reduceCommittedEvents: (committed: ReadonlyArray<CommittedDurableE
52918
52955
  }[];
52919
52956
  };
52920
52957
  };
52958
+ /**
52959
+ * Sequence at which a message entered the model's context, or `undefined` while it has not.
52960
+ *
52961
+ * An admitted message (one with a submission disposition) enters context when a turn consumes
52962
+ * it, not when it is submitted: it can wait queued, paused or steering past any number of
52963
+ * responses. A legacy committed user message entered at its own commit. Rebase pruning,
52964
+ * compaction planning and the prompt projection all read this one definition, so a message the
52965
+ * prompt has not shown the model is never summarised and never pruned.
52966
+ */
52967
+ declare const messageContextSeq: (message: Exclude<MessageRecord, {
52968
+ readonly _tag: "System";
52969
+ }>) => SequenceNumber | undefined;
52921
52970
  /** Pending admitted commands in deterministic scheduler order. */
52922
52971
  declare const pendingCommands: (state: ReducedState) => ReadonlyArray<PendingCommand>;
52923
52972
  /** First pending StopTurn control command, when one is waiting. */
@@ -52929,5 +52978,5 @@ declare const activeTurnIdentityForCommand: (state: ReducedState, commandId: Com
52929
52978
  /** Classify unfinished durable lifecycles that recovery may need to repair. */
52930
52979
  declare const classifyRecoverableWork: (state: ReducedState) => RecoverableWork;
52931
52980
  //#endregion
52932
- export { SessionCommandCancelled as $, maxDeciderIdempotencyKeyLength as $n, defaultCompactionCharsPerToken as $t, TurnTerminal as A, RunSchedulingWork as An, EDASinkCheckpoint as At, pendingCommands as B, EDADeciderItem as Bn, CompactionExecutor as Bt, RunRecord as C, RunGrantResult as Cn, EDADurableSinkDefinition as Ct, ToolDecision as D, RunSchedulingInput as Dn, EDARawDurableSinkDefinition as Dt, ToolCallRecord as E, RunSchedulingCancellationPlan as En, EDAProjectedSink as Et, encodeReducedStateCheckpoint as F, waitingRunControl as Fn, EDASinkRegistry as Ft, EDACommandTerminalEvent as G, EDAErasedDecision as Gn, CompactionPolicy as Gt, reduceCommittedEvents as H, EDADeciderRegistry as Hn, CompactionExecutorShape as Ht, foldReducedState as I, SessionCommandAdmissionConflict as In, EDASinkRegistryShape as It, EDARuntimeError as J, deciderMarkerDedupeKey as Jn, CompactionRunner as Jt, EDARuntime as K, EDAEventDraft as Kn, CompactionPolicyInput as Kt, frameworkReducedStateReducerName as L, EDADecider as Ln, EDASinkRunnerStartInput as Lt, activeTurnIdentityForCommand as M, planRunSchedulingCancellation as Mn, EDASinkDurableBatch as Mt, classifyRecoverableWork as N, planWaitingRunInterruption as Nn, EDASinkInterests as Nt, ToolTerminal as O, RunSchedulingRequest as On, EDARawSink as Ot, decodeReducedStateCheckpoint as P, runSchedulingInputMessageIds as Pn, EDASinkRawDurableBatch as Pt, SessionCommandAdmissionError as Q, makeEDADeciderRegistry as Qn, PromptPrefixSummaryCompactionExecutorOptions as Qt, frameworkReducedStateReducerSchemaVersion as R, EDADeciderDefinition as Rn, ApproximateTokenThresholdCompactionPolicyOptions as Rt, ReducedStateCheckpointToolTerminal as S, LocalRunResolution as Sn, RunSchedulingDeliveryError as St, StopRequestRecord as T, RunResolution as Tn, EDAProjectedDurableSinkDefinition as Tt, reducedStateCheckpointEventSeqs as U, EDADeciderView as Un, CompactionOutput as Ut, pendingStopCommand as V, EDADeciderOutcome as Vn, CompactionExecutorInput as Vt, CommittedCommandTerminalEvent as W, EDADecision as Wn, CompactionPlan as Wt, EDARuntimeSubmit as X, edaReservedDeciderNamePrefix as Xn, CompactionRunnerShape as Xt, EDARuntimeShape as Y, deciderNamePattern as Yn, CompactionRunnerInput as Yt, EDASubmittable as Z, encodeDeciderJson as Zn, LanguageModelSummaryCompactionExecutorOptions as Zt, ReducedStateCheckpointCommandRecord as _, EDASessionQuery as _n, InferenceRunnerStreamPart as _t, CompactionRecord as a, EventFactory as an, EDAPromptProjector as ar, SessionDrainProcessed as at, ReducedStateCheckpointToolCallRecord as b, LiveEventBus as bn, RunSchedulerShape as bt, InferenceRecord as c, EDAToolRegistry as cn, buildEDAPrompt as cr, SessionNoRunnableCommand as ct, LifecycleTiming as d, ToolRecovery as dn, nativeCompactionSummaryMessage as dr, SessionState as dt, defaultCompactionMinSummarizableTokens as en, maxDeciderResultBytes as er, SessionCommandCompleted as et, MessageRecord as f, ToolRecoveryPolicy as fn, SessionStateError as ft, ReducedState as g, EDASessionEventPage as gn, InferenceRunner as gt, RecoveryContinuationRecord as h, toolRecoveryPolicy as hn, TurnRunner as ht, CommandTerminal as i, promptPrefixSummaryCompactionExecutor as in, EDAPromptProjectionInput as ir, SessionDecideError as it, activeCommand as j, canGrantRun as jn, EDASinkContext as jt, TurnRecord as k, RunSchedulingRequestRecord as kn, EDASink as kt, InferenceTerminal as l, EDAToolRegistryShape as ln, getNativeCompaction as lr, SessionNoRunnableReason as lt, RecoverableWork as m, maxToolCallAttempts as mn, SessionStateSnapshotData as mt, ActiveTurnIdentity as n, defaultCompactionSummaryInstructions as nn, EDANativeCompaction as nr, SessionCommandOutcome as nt, CompactionTerminal as o, EDAModelToolkit as on, EDAPromptProjectorShape as or, SessionDrainResult as ot, PendingCommand as p, makeEDAToolkit as pn, SessionStateShape as pt, EDARuntimeConfig as q, deciderIdempotencyKeyViolation as qn, CompactionPolicyShape as qt, CommandRecord as r, defaultCompactionThresholdTokens as rn, EDAProjectedPromptContext as rr, SessionCommandResult as rt, ContextRecord as s, EDAToolExecutionContext as sn, EDA_PROMPT_OPTIONS_KEY as sr, SessionForkedCommand as st, ActiveCommandEvidence as t, defaultCompactionRetainTailTokens as tn, SessionContext as tr, SessionCommandFailed as tt, LifecycleFailure as u, ToolParamsSchema as un, isEDACacheBreakpoint as ur, SessionRunInput as ut, ReducedStateCheckpointMessageRecord as v, EDASessionQueryShape as vn, ToolExecutor as vt, RunTerminal as w, RunRequestOutcome as wn, EDAEphemeralSinkDefinition as wt, ReducedStateCheckpointToolDecision as x, DeferredRunResolution as xn, RunSchedulingDelivery as xt, ReducedStateCheckpointPayload as y, EDASessionSnapshot as yn, RunScheduler as yt, initialReducedState as z, EDADeciderError as zn, CompactionError as zt };
52933
- //# sourceMappingURL=reduced-state-DB_iANjR.d.ts.map
52981
+ export { SessionCommandAdmissionError as $, edaReservedDeciderNamePrefix as $n, PromptPrefixSummaryCompactionExecutorOptions as $t, TurnTerminal as A, RunSchedulingRequest as An, EDASink as At, messageContextSeq as B, EDADecider as Bn, CompactionError as Bt, RunRecord as C, LocalRunResolution as Cn, RunSchedulingDeliveryError as Ct, ToolDecision as D, RunResolution as Dn, EDAProjectedSink as Dt, ToolCallRecord as E, RunRequestOutcome as En, EDAProjectedDurableSinkDefinition as Et, encodeReducedStateCheckpoint as F, planWaitingRunInterruption as Fn, EDASinkRawDurableBatch as Ft, CommittedCommandTerminalEvent as G, EDADeciderRegistry as Gn, CompactionPlan as Gt, pendingStopCommand as H, EDADeciderError as Hn, CompactionExecutorInput as Ht, foldReducedState as I, runGrantability as In, EDASinkRegistry as It, EDARuntimeConfig as J, EDAErasedDecision as Jn, CompactionPolicyShape as Jt, EDACommandTerminalEvent as K, EDADeciderView as Kn, CompactionPolicy as Kt, frameworkReducedStateReducerName as L, runSchedulingInputMessageIds as Ln, EDASinkRegistryShape as Lt, activeTurnIdentityForCommand as M, RunSchedulingWork as Mn, EDASinkContext as Mt, classifyRecoverableWork as N, canGrantRun as Nn, EDASinkDurableBatch as Nt, ToolTerminal as O, RunSchedulingCancellationPlan as On, EDARawDurableSinkDefinition as Ot, decodeReducedStateCheckpoint as P, planRunSchedulingCancellation as Pn, EDASinkInterests as Pt, EDASubmittable as Q, deciderNamePattern as Qn, LanguageModelSummaryCompactionExecutorOptions as Qt, frameworkReducedStateReducerSchemaVersion as R, waitingRunControl as Rn, EDASinkRunnerStartInput as Rt, ReducedStateCheckpointToolTerminal as S, DeferredRunResolution as Sn, RunSchedulingDelivery as St, StopRequestRecord as T, RunGrantability as Tn, EDAEphemeralSinkDefinition as Tt, reduceCommittedEvents as U, EDADeciderItem as Un, CompactionExecutorShape as Ut, pendingCommands as V, EDADeciderDefinition as Vn, CompactionExecutor as Vt, reducedStateCheckpointEventSeqs as W, EDADeciderOutcome as Wn, CompactionOutput as Wt, EDARuntimeShape as X, deciderIdempotencyKeyViolation as Xn, CompactionRunnerInput as Xt, EDARuntimeError as Y, EDAEventDraft as Yn, CompactionRunner as Yt, EDARuntimeSubmit as Z, deciderMarkerDedupeKey as Zn, CompactionRunnerShape as Zt, ReducedStateCheckpointCommandRecord as _, EDASessionEventPage as _n, InferenceRunner as _t, CompactionRecord as a, promptPrefixSummaryCompactionExecutor as an, EDANativeCompaction as ar, SessionDecideError as at, ReducedStateCheckpointToolCallRecord as b, EDASessionSnapshot as bn, RunScheduler as bt, InferenceRecord as c, EDAToolExecutionContext as cn, EDAPromptProjector as cr, SessionForkedCommand as ct, LifecycleTiming as d, ToolParamsSchema as dn, buildEDAPrompt as dr, SessionRunInput as dt, defaultCompactionCharsPerToken as en, encodeDeciderJson as er, SessionCommandCancelled as et, MessageRecord as f, ToolRecovery as fn, getNativeCompaction as fr, SessionState as ft, ReducedState as g, toolRecoveryPolicy as gn, TurnRunner as gt, RecoveryContinuationRecord as h, maxToolCallAttempts as hn, SessionStateSnapshotData as ht, CommandTerminal as i, defaultCompactionThresholdTokens as in, SessionContext as ir, SessionCommandResult as it, activeCommand as j, RunSchedulingRequestRecord as jn, EDASinkCheckpoint as jt, TurnRecord as k, RunSchedulingInput as kn, EDARawSink as kt, InferenceTerminal as l, EDAToolRegistry as ln, EDAPromptProjectorShape as lr, SessionNoRunnableCommand as lt, RecoverableWork as m, makeEDAToolkit as mn, nativeCompactionSummaryMessage as mr, SessionStateShape as mt, ActiveTurnIdentity as n, defaultCompactionRetainTailTokens as nn, maxDeciderIdempotencyKeyLength as nr, SessionCommandFailed as nt, CompactionTerminal as o, EventFactory as on, EDAProjectedPromptContext as or, SessionDrainProcessed as ot, PendingCommand as p, ToolRecoveryPolicy as pn, isEDACacheBreakpoint as pr, SessionStateError as pt, EDARuntime as q, EDADecision as qn, CompactionPolicyInput as qt, CommandRecord as r, defaultCompactionSummaryInstructions as rn, maxDeciderResultBytes as rr, SessionCommandOutcome as rt, ContextRecord as s, EDAModelToolkit as sn, EDAPromptProjectionInput as sr, SessionDrainResult as st, ActiveCommandEvidence as t, defaultCompactionMinSummarizableTokens as tn, makeEDADeciderRegistry as tr, SessionCommandCompleted as tt, LifecycleFailure as u, EDAToolRegistryShape as un, EDA_PROMPT_OPTIONS_KEY as ur, SessionNoRunnableReason as ut, ReducedStateCheckpointMessageRecord as v, EDASessionQuery as vn, InferenceRunnerStreamPart as vt, RunTerminal as w, RunGrantResult as wn, EDADurableSinkDefinition as wt, ReducedStateCheckpointToolDecision as x, LiveEventBus as xn, RunSchedulerShape as xt, ReducedStateCheckpointPayload as y, EDASessionQueryShape as yn, ToolExecutor as yt, initialReducedState as z, SessionCommandAdmissionConflict as zn, ApproximateTokenThresholdCompactionPolicyOptions as zt };
52982
+ //# sourceMappingURL=reduced-state-M2tbEOWK.d.ts.map