effect-durable-agent 0.1.0-alpha.20 → 0.1.0-alpha.21

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 (44) hide show
  1. package/dist/{compaction-GD1cTPTZ.js → compaction-ajHZ5l7f.js} +58 -6
  2. package/dist/compaction-ajHZ5l7f.js.map +1 -0
  3. package/dist/domain/command-queues.d.ts +1 -1
  4. package/dist/domain/message-transcript.d.ts +2 -2
  5. package/dist/domain/message-transcript.js +9 -1
  6. package/dist/domain/message-transcript.js.map +1 -1
  7. package/dist/domain/reduced-state.d.ts +1 -1
  8. package/dist/domain/run-scheduling.d.ts +1 -1
  9. package/dist/index.d.ts +1 -1
  10. package/dist/{model-resolver-BfM5YA6A.d.ts → model-resolver-DUms5p6X.d.ts} +7 -1
  11. package/dist/{reduced-state-4FSWDdgT.d.ts → reduced-state-BGd_yCBT.d.ts} +288 -226
  12. package/dist/services/compaction.d.ts +2 -2
  13. package/dist/services/compaction.js +2 -2
  14. package/dist/services/model-call.d.ts +15 -0
  15. package/dist/services/model-call.js +15 -0
  16. package/dist/services/model-call.js.map +1 -0
  17. package/dist/services/model-resolver.d.ts +1 -1
  18. package/dist/services/model-resolver.js.map +1 -1
  19. package/dist/services/prompt-projector.d.ts +2 -2
  20. package/dist/services/prompt-projector.js +48 -4
  21. package/dist/services/prompt-projector.js.map +1 -1
  22. package/dist/services/run-scheduler.d.ts +1 -1
  23. package/dist/services/runtime-layer.d.ts +4 -4
  24. package/dist/services/runtime-layer.js +8 -8
  25. package/dist/services/runtime-layer.js.map +1 -1
  26. package/dist/services/runtime.d.ts +1 -1
  27. package/dist/services/runtime.js +1 -1
  28. package/dist/services/session-query.d.ts +1 -1
  29. package/dist/services/session-query.js +1 -1
  30. package/dist/services/session-state.d.ts +1 -1
  31. package/dist/services/session-state.js +1 -1
  32. package/dist/services/sink-registry.d.ts +1 -1
  33. package/dist/services/sink-registry.js +1 -1
  34. package/dist/{session-state-BAzdzqV4.js → session-state-C_1XxhvE.js} +48 -19
  35. package/dist/session-state-C_1XxhvE.js.map +1 -0
  36. package/dist/{sink-registry-BnWfMABI.js → sink-registry-CjK5MC90.js} +2 -2
  37. package/dist/{sink-registry-BnWfMABI.js.map → sink-registry-CjK5MC90.js.map} +1 -1
  38. package/dist/testkit/layers.d.ts +4 -4
  39. package/dist/testkit/layers.js +8 -8
  40. package/dist/testkit/layers.js.map +1 -1
  41. package/dist/websocket.d.ts +1 -1
  42. package/package.json +5 -1
  43. package/dist/compaction-GD1cTPTZ.js.map +0 -1
  44. package/dist/session-state-BAzdzqV4.js.map +0 -1
@@ -6,14 +6,14 @@ import { $t as ToolCallRejectedPayload, A as CompactionFailedEvent, B as Context
6
6
  import { d as ToolParamsDeltaEvent, f as ToolParamsDeltaPayload, g as ToolParamsStartPayload, h as ToolParamsStartEvent, i as ReasoningDeltaPayload, l as TextDeltaEvent, m as ToolParamsEndPayload, p as ToolParamsEndEvent, r as ReasoningDeltaEvent, u as TextDeltaPayload } from "./events-BWuvzVml.js";
7
7
  import { i as ContextProjection, n as CompactionPolicyId, t as CompactionExecutorId } from "./context-projection-D_uRtK3r.js";
8
8
  import { o as EDASessionStore, r as DurableAppendEntry, s as EDASessionStoreError, t as CommittedDurableEvent } from "./session-store-BpitF4Wg.js";
9
- import { t as ModelResolver } from "./model-resolver-BfM5YA6A.js";
9
+ import { t as ModelResolver } from "./model-resolver-DUms5p6X.js";
10
+ import { a as EDAReducerStateSnapshot, r as EDAReducerRegistry } from "./reducer-registry-BIhncOHH.js";
11
+ import { r as EDAToolRegistry, t as EDAModelToolkit } from "./tool-registry-wPsHagF_.js";
10
12
  import { t as IdGenerator } from "./id-generator-BKGoKjt-.js";
11
13
  import { t as EDAKeepAlive } from "./keep-alive-_zFCUvt3.js";
12
14
  import { t as SessionEventObserver } from "./session-event-observer-BdZltdrK.js";
13
- import { a as EDAReducerStateSnapshot, r as EDAReducerRegistry } from "./reducer-registry-BIhncOHH.js";
14
15
  import { n as SinkCheckpointStore } from "./sink-checkpoint-store-C-SY0cG2.js";
15
16
  import { t as RunSchedulingWakeup } from "./run-scheduling-wakeup-BH2pHE0U.js";
16
- import { r as EDAToolRegistry } from "./tool-registry-wPsHagF_.js";
17
17
  import { n as TokenConsumptionState } from "./model-usage-0GeHwaaU.js";
18
18
  import { w as ReducedStateSchema } from "./reduced-state-schema-jyZWJ0QS.js";
19
19
  import * as Context from "effect/Context";
@@ -27,6 +27,56 @@ import * as Cause from "effect/Cause";
27
27
  import * as Scope from "effect/Scope";
28
28
  import * as PubSub from "effect/PubSub";
29
29
  import * as Response from "effect/ai/Response";
30
+ //#region src/services/prompt-projector.d.ts
31
+ /** Input for app-extensible state-to-LLM prompt projection. */
32
+ interface EDAPromptProjectionInput {
33
+ readonly sessionId: SessionId;
34
+ readonly state: ReducedState;
35
+ readonly reducerStates: EDAReducerStateSnapshot;
36
+ readonly context?: ContextProjection;
37
+ }
38
+ /** App-derived instructions and data inserted around the durable transcript. */
39
+ interface EDAProjectedPromptContext {
40
+ /** Instruction messages placed after durable system context and before transcript history. */
41
+ readonly instructions: ReadonlyArray<Prompt.SystemMessage>;
42
+ /** Data messages placed after transcript history and before scheduler-selected user messages. */
43
+ readonly messages: ReadonlyArray<Prompt.UserMessage>;
44
+ }
45
+ /** Host-extensible projection from durable state into provider prompt context. */
46
+ interface EDAPromptProjectorShape {
47
+ readonly projectContext: (input: EDAPromptProjectionInput) => Effect.Effect<EDAProjectedPromptContext>;
48
+ readonly projectState: (input: EDAPromptProjectionInput) => Effect.Effect<ReducedState>;
49
+ }
50
+ /** Build a provider prompt entirely from the current durable state projection. */
51
+ declare const buildEDAPrompt: (projector: EDAPromptProjectorShape, input: EDAPromptProjectionInput) => Effect.Effect<Prompt.Prompt>;
52
+ /** Prompt option namespace EDA uses for provider-neutral request hints. */
53
+ declare const EDA_PROMPT_OPTIONS_KEY = "effect-durable-agent";
54
+ /**
55
+ * Whether a message ends a stable prefix worth caching. EDA marks the end of the instruction
56
+ * prefix and the end of durable history, never the per-request data messages after it; provider
57
+ * adapters translate the hint into their own cache breakpoints.
58
+ */
59
+ declare const isEDACacheBreakpoint: (message: Prompt.Message) => boolean;
60
+ declare const EDAPromptProjector_base: Context.ServiceClass<EDAPromptProjector, "@effect-durable-agent/EDAPromptProjector", EDAPromptProjectorShape>;
61
+ /** Service that lets apps derive LLM context independently from UI projections. */
62
+ declare class EDAPromptProjector extends EDAPromptProjector_base {
63
+ static readonly Default: Layer.Layer<EDAPromptProjector, never, never>;
64
+ }
65
+ /**
66
+ * Provider-native compaction output (an Anthropic `compaction` block, an OpenAI compacted window)
67
+ * stored on the summary prompt message. The provider that produced it replays `items` verbatim in
68
+ * place of the message; any other provider sees the message's readable summary text.
69
+ */
70
+ interface EDANativeCompaction {
71
+ readonly provider: string;
72
+ readonly modelId: string;
73
+ readonly items: ReadonlyArray<Schema.Json>;
74
+ }
75
+ /** Summary prompt message carrying readable text plus the provider-native compaction items. */
76
+ declare const nativeCompactionSummaryMessage: (text: string, native: EDANativeCompaction) => Prompt.UserMessage;
77
+ /** Native compaction items stored on a prompt message, if any. */
78
+ declare const getNativeCompaction: (message: Prompt.Message) => EDANativeCompaction | undefined;
79
+ //#endregion
30
80
  //#region src/services/session-context.d.ts
31
81
  /** Runtime-scoped session identity dependency. */
32
82
  interface SessionContextShape {
@@ -137,6 +187,14 @@ interface ApproximateTokenThresholdCompactionPolicyOptions {
137
187
  readonly minSummarizableTokens?: number;
138
188
  /** Character-to-token divisor for the approximate estimator. Defaults to 4. */
139
189
  readonly charsPerToken?: number;
190
+ /**
191
+ * What stays verbatim after the summary. `tail-tokens` (default) keeps roughly
192
+ * `retainTailTokens` of recent context. `last-response` keeps exactly the latest assistant
193
+ * response and what followed it, so the summarized range equals the prompt of a request already
194
+ * sent: provider caches cover the compaction call and provider-native compaction keeps the
195
+ * retained response's reasoning valid.
196
+ */
197
+ readonly retain?: "tail-tokens" | "last-response";
140
198
  }
141
199
  /** LanguageModel-backed summary executor options. */
142
200
  interface LanguageModelSummaryCompactionExecutorOptions {
@@ -192,6 +250,14 @@ interface CompactionExecutorInput extends CompactionPolicyInput {
192
250
  readonly plan: CompactionPlan;
193
251
  /** Provider service resolved from the same durable selection used for accounting. */
194
252
  readonly model: LanguageModel.LanguageModel;
253
+ /**
254
+ * The provider prompt as it stood through `plan.sourceToSeq`: the same instructions, history and
255
+ * trailing context an inference at that point would send. Executors that reuse it share the
256
+ * conversation's provider cache.
257
+ */
258
+ readonly prompt: Prompt.Prompt;
259
+ /** Tools offered with every inference; reusing them keeps the cached prefix identical. */
260
+ readonly toolkit: EDAModelToolkit | undefined;
195
261
  }
196
262
  declare const CompactionError_base: Schema.Class<CompactionError, Schema.TaggedStruct<"CompactionError", {
197
263
  readonly message: Schema.String;
@@ -241,9 +307,28 @@ declare class CompactionExecutor extends CompactionExecutor_base {
241
307
  /** Summary executor backed by the configured Effect AI LanguageModel. */
242
308
  static readonly LanguageModelSummary: (options?: LanguageModelSummaryCompactionExecutorOptions) => Layer.Layer<CompactionExecutor>;
243
309
  }
310
+ /** Prompt-prefix summary executor options. */
311
+ interface PromptPrefixSummaryCompactionExecutorOptions {
312
+ /** Stable executor id stored on summary artifacts. */
313
+ readonly executorId?: string;
314
+ /** Summarization request appended after the conversation. Defaults to EDA's checkpoint prompt. */
315
+ readonly instructions?: string;
316
+ /** Prefix used for the synthetic prompt message inserted into future context. */
317
+ readonly summaryMessagePrefix?: string;
318
+ }
319
+ /**
320
+ * Provider-neutral summary that reuses the conversation's own prompt prefix (instructions, tools,
321
+ * history) and appends the summarization request, so the call reads the conversation from the
322
+ * provider cache. Pair it with a policy that retains nothing (`retainTailTokens: 0`) on providers
323
+ * that bind reasoning to its conversation; use provider-native executors to keep a tail.
324
+ */
325
+ declare const promptPrefixSummaryCompactionExecutor: (options?: PromptPrefixSummaryCompactionExecutorOptions) => Layer.Layer<CompactionExecutor>;
326
+ /** EDA's checkpoint summary request, exposed for executors that pass custom instructions. */
327
+ declare const defaultCompactionSummaryInstructions: () => string;
244
328
  /** Inputs needed by the framework-owned compaction lifecycle runner. */
245
329
  interface CompactionRunnerInput {
246
330
  readonly state: ReducedState;
331
+ readonly reducerStates: EDAReducerStateSnapshot;
247
332
  readonly context: ContextProjection;
248
333
  readonly appendDurableEntries: (entries: ReadonlyArray<DurableAppendEntry>) => Effect.Effect<ReadonlyArray<CommittedDurableEvent>, EDASessionStoreError>;
249
334
  }
@@ -255,7 +340,7 @@ interface CompactionRunnerShape {
255
340
  declare const CompactionRunner_base: Context.ServiceClass<CompactionRunner, "@effect-durable-agent/CompactionRunner", CompactionRunnerShape>;
256
341
  /** Framework-owned compaction lifecycle runner. */
257
342
  declare class CompactionRunner extends CompactionRunner_base {
258
- static readonly Live: Layer.Layer<CompactionRunner, never, CompactionExecutor | CompactionPolicy | EDAKeepAlive | EventFactory | IdGenerator | ModelResolver>;
343
+ static readonly Live: Layer.Layer<CompactionRunner, never, CompactionExecutor | CompactionPolicy | EDAKeepAlive | EDAPromptProjector | EDAToolRegistry | EventFactory | IdGenerator | ModelResolver | SessionContext>;
259
344
  }
260
345
  //#endregion
261
346
  //#region src/services/live-event-bus.d.ts
@@ -281,34 +366,6 @@ declare class LiveEventBus extends LiveEventBus_base {
281
366
  static readonly Noop: Layer.Layer<LiveEventBus, never, never>;
282
367
  }
283
368
  //#endregion
284
- //#region src/services/prompt-projector.d.ts
285
- /** Input for app-extensible state-to-LLM prompt projection. */
286
- interface EDAPromptProjectionInput {
287
- readonly sessionId: SessionId;
288
- readonly state: ReducedState;
289
- readonly reducerStates: EDAReducerStateSnapshot;
290
- readonly context?: ContextProjection;
291
- }
292
- /** App-derived instructions and data inserted around the durable transcript. */
293
- interface EDAProjectedPromptContext {
294
- /** Instruction messages placed after durable system context and before transcript history. */
295
- readonly instructions: ReadonlyArray<Prompt.SystemMessage>;
296
- /** Data messages placed after transcript history and before scheduler-selected user messages. */
297
- readonly messages: ReadonlyArray<Prompt.UserMessage>;
298
- }
299
- /** Host-extensible projection from durable state into provider prompt context. */
300
- interface EDAPromptProjectorShape {
301
- readonly projectContext: (input: EDAPromptProjectionInput) => Effect.Effect<EDAProjectedPromptContext>;
302
- readonly projectState: (input: EDAPromptProjectionInput) => Effect.Effect<ReducedState>;
303
- }
304
- /** Build a provider prompt entirely from the current durable state projection. */
305
- declare const buildEDAPrompt: (projector: EDAPromptProjectorShape, input: EDAPromptProjectionInput) => Effect.Effect<Prompt.Prompt>;
306
- declare const EDAPromptProjector_base: Context.ServiceClass<EDAPromptProjector, "@effect-durable-agent/EDAPromptProjector", EDAPromptProjectorShape>;
307
- /** Service that lets apps derive LLM context independently from UI projections. */
308
- declare class EDAPromptProjector extends EDAPromptProjector_base {
309
- static readonly Default: Layer.Layer<EDAPromptProjector, never, never>;
310
- }
311
- //#endregion
312
369
  //#region src/services/sink-registry.d.ts
313
370
  /** Cursor-window input delivered to one durable sink drain. */
314
371
  interface EDASinkRawDurableBatch<E = DecodedDurableEvent> {
@@ -5934,70 +5991,6 @@ interface RunInferenceInput extends RunInferenceContext {
5934
5991
  /** Summary returned after one provider inference stream is consumed. */
5935
5992
  declare const InferenceRunResult: Schema.Struct<{
5936
5993
  readonly started: Schema.Codec<CommittedDurableEvent<{
5937
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
5938
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
5939
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
5940
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
5941
- readonly trace: {
5942
- readonly span: {
5943
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
5944
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
5945
- readonly sampled: boolean;
5946
- readonly tracestate: string | null;
5947
- };
5948
- readonly links: readonly {
5949
- readonly context: {
5950
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
5951
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
5952
- readonly sampled: boolean;
5953
- readonly tracestate: string | null;
5954
- };
5955
- readonly attributes: {
5956
- readonly [x: string]: string | number | boolean;
5957
- };
5958
- }[];
5959
- };
5960
- readonly durability: "durable";
5961
- readonly namespace: "effect-durable-agent";
5962
- readonly type: "CompactionRequested";
5963
- readonly schemaVersion: number;
5964
- readonly payload: {
5965
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
5966
- readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
5967
- readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
5968
- };
5969
- } | {
5970
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
5971
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
5972
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
5973
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
5974
- readonly trace: {
5975
- readonly span: {
5976
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
5977
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
5978
- readonly sampled: boolean;
5979
- readonly tracestate: string | null;
5980
- };
5981
- readonly links: readonly {
5982
- readonly context: {
5983
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
5984
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
5985
- readonly sampled: boolean;
5986
- readonly tracestate: string | null;
5987
- };
5988
- readonly attributes: {
5989
- readonly [x: string]: string | number | boolean;
5990
- };
5991
- }[];
5992
- };
5993
- readonly durability: "durable";
5994
- readonly namespace: "effect-durable-agent";
5995
- readonly type: "CompactionStarted";
5996
- readonly schemaVersion: number;
5997
- readonly payload: {
5998
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
5999
- };
6000
- } | {
6001
5994
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
6002
5995
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
6003
5996
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -8220,6 +8213,70 @@ declare const InferenceRunResult: Schema.Struct<{
8220
8213
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
8221
8214
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
8222
8215
  };
8216
+ } | {
8217
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8218
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8219
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8220
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8221
+ readonly trace: {
8222
+ readonly span: {
8223
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8224
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8225
+ readonly sampled: boolean;
8226
+ readonly tracestate: string | null;
8227
+ };
8228
+ readonly links: readonly {
8229
+ readonly context: {
8230
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8231
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8232
+ readonly sampled: boolean;
8233
+ readonly tracestate: string | null;
8234
+ };
8235
+ readonly attributes: {
8236
+ readonly [x: string]: string | number | boolean;
8237
+ };
8238
+ }[];
8239
+ };
8240
+ readonly durability: "durable";
8241
+ readonly namespace: "effect-durable-agent";
8242
+ readonly type: "CompactionRequested";
8243
+ readonly schemaVersion: number;
8244
+ readonly payload: {
8245
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
8246
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
8247
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
8248
+ };
8249
+ } | {
8250
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8251
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8252
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8253
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8254
+ readonly trace: {
8255
+ readonly span: {
8256
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8257
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8258
+ readonly sampled: boolean;
8259
+ readonly tracestate: string | null;
8260
+ };
8261
+ readonly links: readonly {
8262
+ readonly context: {
8263
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8264
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8265
+ readonly sampled: boolean;
8266
+ readonly tracestate: string | null;
8267
+ };
8268
+ readonly attributes: {
8269
+ readonly [x: string]: string | number | boolean;
8270
+ };
8271
+ }[];
8272
+ };
8273
+ readonly durability: "durable";
8274
+ readonly namespace: "effect-durable-agent";
8275
+ readonly type: "CompactionStarted";
8276
+ readonly schemaVersion: number;
8277
+ readonly payload: {
8278
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
8279
+ };
8223
8280
  } | {
8224
8281
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8225
8282
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -8582,70 +8639,6 @@ declare const InferenceRunResult: Schema.Struct<{
8582
8639
  readonly partsRecorded: Schema.Int;
8583
8640
  readonly terminal: Schema.Union<readonly [Schema.TaggedStruct<"InferenceRunFinished", {
8584
8641
  readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
8585
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8586
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8587
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8588
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8589
- readonly trace: {
8590
- readonly span: {
8591
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8592
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8593
- readonly sampled: boolean;
8594
- readonly tracestate: string | null;
8595
- };
8596
- readonly links: readonly {
8597
- readonly context: {
8598
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8599
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8600
- readonly sampled: boolean;
8601
- readonly tracestate: string | null;
8602
- };
8603
- readonly attributes: {
8604
- readonly [x: string]: string | number | boolean;
8605
- };
8606
- }[];
8607
- };
8608
- readonly durability: "durable";
8609
- readonly namespace: "effect-durable-agent";
8610
- readonly type: "CompactionRequested";
8611
- readonly schemaVersion: number;
8612
- readonly payload: {
8613
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
8614
- readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
8615
- readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
8616
- };
8617
- } | {
8618
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8619
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8620
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
8621
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
8622
- readonly trace: {
8623
- readonly span: {
8624
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8625
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8626
- readonly sampled: boolean;
8627
- readonly tracestate: string | null;
8628
- };
8629
- readonly links: readonly {
8630
- readonly context: {
8631
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
8632
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
8633
- readonly sampled: boolean;
8634
- readonly tracestate: string | null;
8635
- };
8636
- readonly attributes: {
8637
- readonly [x: string]: string | number | boolean;
8638
- };
8639
- }[];
8640
- };
8641
- readonly durability: "durable";
8642
- readonly namespace: "effect-durable-agent";
8643
- readonly type: "CompactionStarted";
8644
- readonly schemaVersion: number;
8645
- readonly payload: {
8646
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
8647
- };
8648
- } | {
8649
8642
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
8650
8643
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
8651
8644
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -10868,6 +10861,70 @@ declare const InferenceRunResult: Schema.Struct<{
10868
10861
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
10869
10862
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
10870
10863
  };
10864
+ } | {
10865
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10866
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10867
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10868
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10869
+ readonly trace: {
10870
+ readonly span: {
10871
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10872
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10873
+ readonly sampled: boolean;
10874
+ readonly tracestate: string | null;
10875
+ };
10876
+ readonly links: readonly {
10877
+ readonly context: {
10878
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10879
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10880
+ readonly sampled: boolean;
10881
+ readonly tracestate: string | null;
10882
+ };
10883
+ readonly attributes: {
10884
+ readonly [x: string]: string | number | boolean;
10885
+ };
10886
+ }[];
10887
+ };
10888
+ readonly durability: "durable";
10889
+ readonly namespace: "effect-durable-agent";
10890
+ readonly type: "CompactionRequested";
10891
+ readonly schemaVersion: number;
10892
+ readonly payload: {
10893
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
10894
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
10895
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
10896
+ };
10897
+ } | {
10898
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10899
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
10900
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
10901
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
10902
+ readonly trace: {
10903
+ readonly span: {
10904
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10905
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10906
+ readonly sampled: boolean;
10907
+ readonly tracestate: string | null;
10908
+ };
10909
+ readonly links: readonly {
10910
+ readonly context: {
10911
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
10912
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
10913
+ readonly sampled: boolean;
10914
+ readonly tracestate: string | null;
10915
+ };
10916
+ readonly attributes: {
10917
+ readonly [x: string]: string | number | boolean;
10918
+ };
10919
+ }[];
10920
+ };
10921
+ readonly durability: "durable";
10922
+ readonly namespace: "effect-durable-agent";
10923
+ readonly type: "CompactionStarted";
10924
+ readonly schemaVersion: number;
10925
+ readonly payload: {
10926
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
10927
+ };
10871
10928
  } | {
10872
10929
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
10873
10930
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -11232,70 +11289,6 @@ declare const InferenceRunResult: Schema.Struct<{
11232
11289
  readonly responseParts: Schema.$Array<Schema.Any>;
11233
11290
  }>, Schema.TaggedStruct<"InferenceRunFailed", {
11234
11291
  readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
11235
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
11236
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
11237
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
11238
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
11239
- readonly trace: {
11240
- readonly span: {
11241
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
11242
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
11243
- readonly sampled: boolean;
11244
- readonly tracestate: string | null;
11245
- };
11246
- readonly links: readonly {
11247
- readonly context: {
11248
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
11249
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
11250
- readonly sampled: boolean;
11251
- readonly tracestate: string | null;
11252
- };
11253
- readonly attributes: {
11254
- readonly [x: string]: string | number | boolean;
11255
- };
11256
- }[];
11257
- };
11258
- readonly durability: "durable";
11259
- readonly namespace: "effect-durable-agent";
11260
- readonly type: "CompactionRequested";
11261
- readonly schemaVersion: number;
11262
- readonly payload: {
11263
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
11264
- readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
11265
- readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
11266
- };
11267
- } | {
11268
- readonly eventId: string & import("effect/Brand").Brand<"EventId">;
11269
- readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
11270
- readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
11271
- readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
11272
- readonly trace: {
11273
- readonly span: {
11274
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
11275
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
11276
- readonly sampled: boolean;
11277
- readonly tracestate: string | null;
11278
- };
11279
- readonly links: readonly {
11280
- readonly context: {
11281
- readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
11282
- readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
11283
- readonly sampled: boolean;
11284
- readonly tracestate: string | null;
11285
- };
11286
- readonly attributes: {
11287
- readonly [x: string]: string | number | boolean;
11288
- };
11289
- }[];
11290
- };
11291
- readonly durability: "durable";
11292
- readonly namespace: "effect-durable-agent";
11293
- readonly type: "CompactionStarted";
11294
- readonly schemaVersion: number;
11295
- readonly payload: {
11296
- readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
11297
- };
11298
- } | {
11299
11292
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
11300
11293
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
11301
11294
  readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
@@ -13518,6 +13511,70 @@ declare const InferenceRunResult: Schema.Struct<{
13518
13511
  readonly contextVersion: number & import("effect/Brand").Brand<"ContextVersion">;
13519
13512
  readonly throughSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
13520
13513
  };
13514
+ } | {
13515
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
13516
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
13517
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
13518
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
13519
+ readonly trace: {
13520
+ readonly span: {
13521
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13522
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13523
+ readonly sampled: boolean;
13524
+ readonly tracestate: string | null;
13525
+ };
13526
+ readonly links: readonly {
13527
+ readonly context: {
13528
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13529
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13530
+ readonly sampled: boolean;
13531
+ readonly tracestate: string | null;
13532
+ };
13533
+ readonly attributes: {
13534
+ readonly [x: string]: string | number | boolean;
13535
+ };
13536
+ }[];
13537
+ };
13538
+ readonly durability: "durable";
13539
+ readonly namespace: "effect-durable-agent";
13540
+ readonly type: "CompactionRequested";
13541
+ readonly schemaVersion: number;
13542
+ readonly payload: {
13543
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
13544
+ readonly sourceFromSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
13545
+ readonly sourceToSeq: number & import("effect/Brand").Brand<"SequenceNumber">;
13546
+ };
13547
+ } | {
13548
+ readonly eventId: string & import("effect/Brand").Brand<"EventId">;
13549
+ readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
13550
+ readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
13551
+ readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
13552
+ readonly trace: {
13553
+ readonly span: {
13554
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13555
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13556
+ readonly sampled: boolean;
13557
+ readonly tracestate: string | null;
13558
+ };
13559
+ readonly links: readonly {
13560
+ readonly context: {
13561
+ readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
13562
+ readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
13563
+ readonly sampled: boolean;
13564
+ readonly tracestate: string | null;
13565
+ };
13566
+ readonly attributes: {
13567
+ readonly [x: string]: string | number | boolean;
13568
+ };
13569
+ }[];
13570
+ };
13571
+ readonly durability: "durable";
13572
+ readonly namespace: "effect-durable-agent";
13573
+ readonly type: "CompactionStarted";
13574
+ readonly schemaVersion: number;
13575
+ readonly payload: {
13576
+ readonly compactionId: string & import("effect/Brand").Brand<"CompactionId">;
13577
+ };
13521
13578
  } | {
13522
13579
  readonly eventId: string & import("effect/Brand").Brand<"EventId">;
13523
13580
  readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
@@ -45649,6 +45706,11 @@ type DurableTranscriptMessage = Extract<MessageRecord, {
45649
45706
  });
45650
45707
  /** Derive the durable user/assistant transcript in committed sequence order. */
45651
45708
  declare const durableMessageTranscript: (state: Pick<ReducedState, "messages">) => ReadonlyArray<DurableTranscriptMessage>;
45709
+ /**
45710
+ * Prompt state as of `throughSeq`: transcript messages that entered the prompt at or before that
45711
+ * sequence. Compaction uses it to rebuild the exact prompt of an earlier request.
45712
+ */
45713
+ declare const projectionStateThrough: <S extends Pick<ReducedState, "messages">>(state: S, throughSeq: number) => S;
45652
45714
  type PromptProjectionState = Pick<ReducedState, "messages"> & Partial<Pick<ReducedState, "toolCalls">>;
45653
45715
  /** Convert all durable transcript messages and exact tool-result parts into provider prompt history. */
45654
45716
  declare const durableTranscriptPrompt: (state: PromptProjectionState) => Prompt.Prompt;
@@ -48103,5 +48165,5 @@ declare const activeTurnIdentityForCommand: (state: ReducedState, commandId: Com
48103
48165
  /** Classify unfinished durable lifecycles that recovery may need to repair. */
48104
48166
  declare const classifyRecoverableWork: (state: ReducedState) => RecoverableWork;
48105
48167
  //#endregion
48106
- export { EDASessionQuery as $, EDAProjectedSink as $t, TurnTerminal as A, LanguageModelSummaryCompactionExecutorOptions as An, ToolExecutor as At, pendingCommands as B, RunSchedulingCancellationPlan as Bt, RunRecord as C, CompactionPlan as Cn, SessionState as Ct, ToolDecision as D, CompactionRunner as Dn, TurnRunner as Dt, ToolCallRecord as E, CompactionPolicyShape as En, SessionStateSnapshotData as Et, encodeReducedStateCheckpoint as F, EventFactory as Fn, DeferredRunResolution as Ft, EDACommandTerminalEvent as G, canGrantRun as Gt, reduceCommittedEvents as H, RunSchedulingRequest as Ht, foldReducedState as I, SessionContext as In, LocalRunResolution as It, EDARuntimeError as J, runSchedulingInputMessageIds as Jt, EDARuntime as K, planRunSchedulingCancellation as Kt, frameworkReducedStateReducerName as L, RunGrantResult as Lt, activeTurnIdentityForCommand as M, defaultCompactionMinSummarizableTokens as Mn, RunSchedulerShape as Mt, classifyRecoverableWork as N, defaultCompactionRetainTailTokens as Nn, RunSchedulingDelivery as Nt, ToolTerminal as O, CompactionRunnerInput as On, InferenceRunner as Ot, decodeReducedStateCheckpoint as P, defaultCompactionThresholdTokens as Pn, RunSchedulingDeliveryError as Pt, EDASessionEventPage as Q, EDAProjectedDurableSinkDefinition as Qt, frameworkReducedStateReducerSchemaVersion as R, RunRequestOutcome as Rt, ReducedStateCheckpointToolTerminal as S, CompactionOutput as Sn, SessionRunInput as St, StopRequestRecord as T, CompactionPolicyInput as Tn, SessionStateShape as Tt, reducedStateCheckpointEventSeqs as U, RunSchedulingRequestRecord as Ut, pendingStopCommand as V, RunSchedulingInput as Vt, CommittedCommandTerminalEvent as W, RunSchedulingWork as Wt, EDARuntimeSubmit as X, EDADurableSinkDefinition as Xt, EDARuntimeShape as Y, waitingRunControl as Yt, DurableTranscriptMessages as Z, EDAEphemeralSinkDefinition as Zt, ReducedStateCheckpointCommandRecord as _, ApproximateTokenThresholdCompactionPolicyOptions as _n, SessionDrainProcessed as _t, CompactionRecord as a, EDASinkDurableBatch as an, contextProjectionPromptWithUserContents as at, ReducedStateCheckpointToolCallRecord as b, CompactionExecutorInput as bn, SessionNoRunnableCommand as bt, InferenceRecord as c, EDASinkRegistry as cn, durableTranscriptPromptWithUserContent as ct, LifecycleTiming as d, EDAProjectedPromptContext as dn, SessionCommandAdmissionError as dt, EDARawDurableSinkDefinition as en, EDASessionQueryShape as et, MessageRecord as f, EDAPromptProjectionInput as fn, SessionCommandCancelled as ft, ReducedState as g, LiveEventBus as gn, SessionCommandResult as gt, RecoveryContinuationRecord as h, buildEDAPrompt as hn, SessionCommandOutcome as ht, CommandTerminal as i, EDASinkContext as in, contextProjectionPromptWithUserContent as it, activeCommand as j, defaultCompactionCharsPerToken as jn, RunScheduler as jt, TurnRecord as k, CompactionRunnerShape as kn, InferenceRunnerStreamPart as kt, InferenceTerminal as l, EDASinkRegistryShape as ln, EDASubmittable as lt, RecoverableWork as m, EDAPromptProjectorShape as mn, SessionCommandFailed as mt, ActiveTurnIdentity as n, EDASink as nn, DurableTranscriptMessage as nt, CompactionTerminal as o, EDASinkInterests as on, durableMessageTranscript as ot, PendingCommand as p, EDAPromptProjector as pn, SessionCommandCompleted as pt, EDARuntimeConfig as q, planWaitingRunInterruption as qt, CommandRecord as r, EDASinkCheckpoint as rn, contextProjectionPrompt as rt, ContextRecord as s, EDASinkRawDurableBatch as sn, durableTranscriptPrompt as st, ActiveCommandEvidence as t, EDARawSink as tn, EDASessionSnapshot as tt, LifecycleFailure as u, EDASinkRunnerStartInput as un, SessionCommandAdmissionConflict as ut, ReducedStateCheckpointMessageRecord as v, CompactionError as vn, SessionDrainResult as vt, RunTerminal as w, CompactionPolicy as wn, SessionStateError as wt, ReducedStateCheckpointToolDecision as x, CompactionExecutorShape as xn, SessionNoRunnableReason as xt, ReducedStateCheckpointPayload as y, CompactionExecutor as yn, SessionForkedCommand as yt, initialReducedState as z, RunResolution as zt };
48107
- //# sourceMappingURL=reduced-state-4FSWDdgT.d.ts.map
48168
+ export { EDASessionQuery as $, EDAProjectedDurableSinkDefinition as $t, TurnTerminal as A, defaultCompactionRetainTailTokens as An, InferenceRunnerStreamPart as At, pendingCommands as B, EDAPromptProjectorShape as Bn, RunResolution as Bt, RunRecord as C, CompactionRunner as Cn, SessionRunInput as Ct, ToolDecision as D, PromptPrefixSummaryCompactionExecutorOptions as Dn, SessionStateSnapshotData as Dt, ToolCallRecord as E, LanguageModelSummaryCompactionExecutorOptions as En, SessionStateShape as Et, encodeReducedStateCheckpoint as F, SessionContext as Fn, RunSchedulingDeliveryError as Ft, EDACommandTerminalEvent as G, nativeCompactionSummaryMessage as Gn, RunSchedulingWork as Gt, reduceCommittedEvents as H, buildEDAPrompt as Hn, RunSchedulingInput as Ht, foldReducedState as I, EDANativeCompaction as In, DeferredRunResolution as It, EDARuntimeError as J, planWaitingRunInterruption as Jt, EDARuntime as K, canGrantRun as Kt, frameworkReducedStateReducerName as L, EDAProjectedPromptContext as Ln, LocalRunResolution as Lt, activeTurnIdentityForCommand as M, defaultCompactionThresholdTokens as Mn, RunScheduler as Mt, classifyRecoverableWork as N, promptPrefixSummaryCompactionExecutor as Nn, RunSchedulerShape as Nt, ToolTerminal as O, defaultCompactionCharsPerToken as On, TurnRunner as Ot, decodeReducedStateCheckpoint as P, EventFactory as Pn, RunSchedulingDelivery as Pt, EDASessionEventPage as Q, EDAEphemeralSinkDefinition as Qt, frameworkReducedStateReducerSchemaVersion as R, EDAPromptProjectionInput as Rn, RunGrantResult as Rt, ReducedStateCheckpointToolTerminal as S, CompactionPolicyShape as Sn, SessionNoRunnableReason as St, StopRequestRecord as T, CompactionRunnerShape as Tn, SessionStateError as Tt, reducedStateCheckpointEventSeqs as U, getNativeCompaction as Un, RunSchedulingRequest as Ut, pendingStopCommand as V, EDA_PROMPT_OPTIONS_KEY as Vn, RunSchedulingCancellationPlan as Vt, CommittedCommandTerminalEvent as W, isEDACacheBreakpoint as Wn, RunSchedulingRequestRecord as Wt, EDARuntimeSubmit as X, waitingRunControl as Xt, EDARuntimeShape as Y, runSchedulingInputMessageIds as Yt, DurableTranscriptMessages as Z, EDADurableSinkDefinition as Zt, ReducedStateCheckpointCommandRecord as _, CompactionExecutorShape as _n, SessionCommandResult as _t, CompactionRecord as a, EDASinkContext as an, contextProjectionPromptWithUserContents as at, ReducedStateCheckpointToolCallRecord as b, CompactionPolicy as bn, SessionForkedCommand as bt, InferenceRecord as c, EDASinkRawDurableBatch as cn, durableTranscriptPromptWithUserContent as ct, LifecycleTiming as d, EDASinkRunnerStartInput as dn, SessionCommandAdmissionConflict as dt, EDAProjectedSink as en, EDASessionQueryShape as et, MessageRecord as f, LiveEventBus as fn, SessionCommandAdmissionError as ft, ReducedState as g, CompactionExecutorInput as gn, SessionCommandOutcome as gt, RecoveryContinuationRecord as h, CompactionExecutor as hn, SessionCommandFailed as ht, CommandTerminal as i, EDASinkCheckpoint as in, contextProjectionPromptWithUserContent as it, activeCommand as j, defaultCompactionSummaryInstructions as jn, ToolExecutor as jt, TurnRecord as k, defaultCompactionMinSummarizableTokens as kn, InferenceRunner as kt, InferenceTerminal as l, EDASinkRegistry as ln, projectionStateThrough as lt, RecoverableWork as m, CompactionError as mn, SessionCommandCompleted as mt, ActiveTurnIdentity as n, EDARawSink as nn, DurableTranscriptMessage as nt, CompactionTerminal as o, EDASinkDurableBatch as on, durableMessageTranscript as ot, PendingCommand as p, ApproximateTokenThresholdCompactionPolicyOptions as pn, SessionCommandCancelled as pt, EDARuntimeConfig as q, planRunSchedulingCancellation as qt, CommandRecord as r, EDASink as rn, contextProjectionPrompt as rt, ContextRecord as s, EDASinkInterests as sn, durableTranscriptPrompt as st, ActiveCommandEvidence as t, EDARawDurableSinkDefinition as tn, EDASessionSnapshot as tt, LifecycleFailure as u, EDASinkRegistryShape as un, EDASubmittable as ut, ReducedStateCheckpointMessageRecord as v, CompactionOutput as vn, SessionDrainProcessed as vt, RunTerminal as w, CompactionRunnerInput as wn, SessionState as wt, ReducedStateCheckpointToolDecision as x, CompactionPolicyInput as xn, SessionNoRunnableCommand as xt, ReducedStateCheckpointPayload as y, CompactionPlan as yn, SessionDrainResult as yt, initialReducedState as z, EDAPromptProjector as zn, RunRequestOutcome as zt };
48169
+ //# sourceMappingURL=reduced-state-BGd_yCBT.d.ts.map
@@ -1,2 +1,2 @@
1
- import { An as LanguageModelSummaryCompactionExecutorOptions, Cn as CompactionPlan, Dn as CompactionRunner, En as CompactionPolicyShape, Mn as defaultCompactionMinSummarizableTokens, Nn as defaultCompactionRetainTailTokens, On as CompactionRunnerInput, Pn as defaultCompactionThresholdTokens, Sn as CompactionOutput, Tn as CompactionPolicyInput, _n as ApproximateTokenThresholdCompactionPolicyOptions, bn as CompactionExecutorInput, jn as defaultCompactionCharsPerToken, kn as CompactionRunnerShape, vn as CompactionError, wn as CompactionPolicy, xn as CompactionExecutorShape, yn as CompactionExecutor } from "../reduced-state-4FSWDdgT.js";
2
- export { ApproximateTokenThresholdCompactionPolicyOptions, CompactionError, CompactionExecutor, CompactionExecutorInput, CompactionExecutorShape, CompactionOutput, CompactionPlan, CompactionPolicy, CompactionPolicyInput, CompactionPolicyShape, CompactionRunner, CompactionRunnerInput, CompactionRunnerShape, LanguageModelSummaryCompactionExecutorOptions, defaultCompactionCharsPerToken, defaultCompactionMinSummarizableTokens, defaultCompactionRetainTailTokens, defaultCompactionThresholdTokens };
1
+ import { An as defaultCompactionRetainTailTokens, Cn as CompactionRunner, Dn as PromptPrefixSummaryCompactionExecutorOptions, En as LanguageModelSummaryCompactionExecutorOptions, Mn as defaultCompactionThresholdTokens, Nn as promptPrefixSummaryCompactionExecutor, On as defaultCompactionCharsPerToken, Sn as CompactionPolicyShape, Tn as CompactionRunnerShape, _n as CompactionExecutorShape, bn as CompactionPolicy, gn as CompactionExecutorInput, hn as CompactionExecutor, jn as defaultCompactionSummaryInstructions, kn as defaultCompactionMinSummarizableTokens, mn as CompactionError, pn as ApproximateTokenThresholdCompactionPolicyOptions, vn as CompactionOutput, wn as CompactionRunnerInput, xn as CompactionPolicyInput, yn as CompactionPlan } from "../reduced-state-BGd_yCBT.js";
2
+ export { ApproximateTokenThresholdCompactionPolicyOptions, CompactionError, CompactionExecutor, CompactionExecutorInput, CompactionExecutorShape, CompactionOutput, CompactionPlan, CompactionPolicy, CompactionPolicyInput, CompactionPolicyShape, CompactionRunner, CompactionRunnerInput, CompactionRunnerShape, LanguageModelSummaryCompactionExecutorOptions, PromptPrefixSummaryCompactionExecutorOptions, defaultCompactionCharsPerToken, defaultCompactionMinSummarizableTokens, defaultCompactionRetainTailTokens, defaultCompactionSummaryInstructions, defaultCompactionThresholdTokens, promptPrefixSummaryCompactionExecutor };