effect-durable-agent 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{delivery-BKYmgnKC.d.ts → delivery-DoHIy6rQ.d.ts} +2 -2
- package/dist/domain/command-queues.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{reduced-state-DV0696_s.d.ts → reduced-state-DNfEwxu7.d.ts} +364 -341
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/decider.d.ts +1 -1
- package/dist/services/model-call.d.ts +1 -1
- package/dist/services/prompt-projector.d.ts +1 -1
- package/dist/services/run-scheduler.d.ts +1 -1
- package/dist/services/runtime-layer.d.ts +1 -2
- package/dist/services/runtime-layer.js +1 -1
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +1 -1
- package/dist/services/session-event-observer.d.ts +1 -1
- package/dist/services/session-event-observer.js.map +1 -1
- package/dist/services/session-query.d.ts +1 -1
- package/dist/services/session-query.js +1 -1
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-state.js +1 -1
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/tool-registry.d.ts +1 -1
- package/dist/{session-state-BbJW2_P0.js → session-state-urBjAvsy.js} +5 -5
- package/dist/session-state-urBjAvsy.js.map +1 -0
- package/dist/testkit/layers.d.ts +1 -2
- package/dist/testkit/layers.js +1 -1
- package/dist/websocket/events.d.ts +1 -1
- package/dist/websocket.d.ts +1 -1
- package/package.json +1 -1
- package/dist/session-event-observer-BWQUJTcN.d.ts +0 -24
- package/dist/session-state-BbJW2_P0.js.map +0 -1
|
@@ -8,7 +8,6 @@ import { i as ContextProjection, n as CompactionPolicyId, t as CompactionExecuto
|
|
|
8
8
|
import { i as EDAAppEvents, o as EDASessionStore, r as DurableAppendEntry, s as EDASessionStoreError, t as CommittedDurableEvent } from "./session-store-DaSHeg8Q.js";
|
|
9
9
|
import { t as ModelResolver } from "./model-resolver-O8Kn27GH.js";
|
|
10
10
|
import { a as EDAReducerStateSnapshot, r as EDAReducerRegistry } from "./reducer-registry-Bqn5B4JO.js";
|
|
11
|
-
import { t as SessionEventObserver } from "./session-event-observer-BWQUJTcN.js";
|
|
12
11
|
import { t as IdGenerator } from "./id-generator-BKGoKjt-.js";
|
|
13
12
|
import { t as EDAKeepAlive } from "./keep-alive-_zFCUvt3.js";
|
|
14
13
|
import { n as SinkCheckpointStore } from "./sink-checkpoint-store-CUvIVvlZ.js";
|
|
@@ -364,6 +363,29 @@ declare const planWaitingRunInterruption: (state: SchedulingState, controlComman
|
|
|
364
363
|
cancelCommandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
365
364
|
} | undefined;
|
|
366
365
|
//#endregion
|
|
366
|
+
//#region src/services/session-event-observer.d.ts
|
|
367
|
+
/**
|
|
368
|
+
* Outbound integration point notified synchronously after EDA publishes an event.
|
|
369
|
+
*
|
|
370
|
+
* Hosts provide this service while composing the runtime. Implementations own
|
|
371
|
+
* their failures and never expose host errors to the session runtime.
|
|
372
|
+
*/
|
|
373
|
+
interface SessionEventObserverShape {
|
|
374
|
+
/**
|
|
375
|
+
* `state` is the session's reduced state when `event` is published. A durable batch folds
|
|
376
|
+
* before it publishes, so `state.lastSeq >= event.position.seq`, with equality on the batch's
|
|
377
|
+
* last event. An ephemeral event is published at the head, so `state.lastSeq` equals its seq.
|
|
378
|
+
* State with `lastSeq` equal to a durable event's seq is exactly the fold through that event.
|
|
379
|
+
*/
|
|
380
|
+
readonly onEvent: (event: PositionedEvent, state: ReducedState) => Effect.Effect<void>;
|
|
381
|
+
}
|
|
382
|
+
declare const SessionEventObserver_base: Context.ServiceClass<SessionEventObserver, "@effect-durable-agent/SessionEventObserver", SessionEventObserverShape>;
|
|
383
|
+
/** Host-provided observer for append-driven integrations such as hibernatable WebSockets. */
|
|
384
|
+
declare class SessionEventObserver extends SessionEventObserver_base {
|
|
385
|
+
static readonly Noop: Layer.Layer<SessionEventObserver, never, never>;
|
|
386
|
+
static readonly FromHandler: (onEvent: SessionEventObserverShape["onEvent"]) => Layer.Layer<SessionEventObserver>;
|
|
387
|
+
}
|
|
388
|
+
//#endregion
|
|
367
389
|
//#region src/services/live-event-bus.d.ts
|
|
368
390
|
/** Live-only replay buffer for the currently open turn. */
|
|
369
391
|
interface ActiveTurnEphemeralReplay {
|
|
@@ -373,7 +395,8 @@ interface ActiveTurnEphemeralReplay {
|
|
|
373
395
|
}
|
|
374
396
|
/** In-memory live fanout plus active-turn replay source for reconnect streams. */
|
|
375
397
|
interface LiveEventBusShape {
|
|
376
|
-
|
|
398
|
+
/** Publish one event with the session's reduced state at publication, for the observer. */
|
|
399
|
+
readonly publish: (event: PositionedEvent, state: ReducedState) => Effect.Effect<boolean>;
|
|
377
400
|
readonly subscribe: () => Effect.Effect<Stream.Stream<PositionedEvent>, never, Scope.Scope>;
|
|
378
401
|
readonly subscribeQueue: () => Effect.Effect<PubSub.Subscription<PositionedEvent>, never, Scope.Scope>;
|
|
379
402
|
/** Snapshot raw live-only events retained for the currently open turn. */
|
|
@@ -7567,6 +7590,108 @@ interface RunInferenceInput extends RunInferenceContext {
|
|
|
7567
7590
|
/** Summary returned after one provider inference stream is consumed. */
|
|
7568
7591
|
declare const InferenceRunResult: Schema.Struct<{
|
|
7569
7592
|
readonly started: Schema.Codec<CommittedDurableEvent<{
|
|
7593
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
7594
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
7595
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
7596
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
7597
|
+
readonly trace: {
|
|
7598
|
+
readonly span: {
|
|
7599
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7600
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7601
|
+
readonly sampled: boolean;
|
|
7602
|
+
readonly tracestate: string | null;
|
|
7603
|
+
};
|
|
7604
|
+
readonly links: readonly {
|
|
7605
|
+
readonly context: {
|
|
7606
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7607
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7608
|
+
readonly sampled: boolean;
|
|
7609
|
+
readonly tracestate: string | null;
|
|
7610
|
+
};
|
|
7611
|
+
readonly attributes: {
|
|
7612
|
+
readonly [x: string]: string | number | boolean;
|
|
7613
|
+
};
|
|
7614
|
+
}[];
|
|
7615
|
+
};
|
|
7616
|
+
readonly durability: "durable";
|
|
7617
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
7618
|
+
readonly namespace: "effect-durable-agent";
|
|
7619
|
+
readonly type: "CommandCompleted";
|
|
7620
|
+
readonly schemaVersion: number;
|
|
7621
|
+
readonly payload: {
|
|
7622
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
7623
|
+
};
|
|
7624
|
+
} | {
|
|
7625
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
7626
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
7627
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
7628
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
7629
|
+
readonly trace: {
|
|
7630
|
+
readonly span: {
|
|
7631
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7632
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7633
|
+
readonly sampled: boolean;
|
|
7634
|
+
readonly tracestate: string | null;
|
|
7635
|
+
};
|
|
7636
|
+
readonly links: readonly {
|
|
7637
|
+
readonly context: {
|
|
7638
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7639
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7640
|
+
readonly sampled: boolean;
|
|
7641
|
+
readonly tracestate: string | null;
|
|
7642
|
+
};
|
|
7643
|
+
readonly attributes: {
|
|
7644
|
+
readonly [x: string]: string | number | boolean;
|
|
7645
|
+
};
|
|
7646
|
+
}[];
|
|
7647
|
+
};
|
|
7648
|
+
readonly durability: "durable";
|
|
7649
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
7650
|
+
readonly namespace: "effect-durable-agent";
|
|
7651
|
+
readonly type: "CommandFailed";
|
|
7652
|
+
readonly schemaVersion: number;
|
|
7653
|
+
readonly payload: {
|
|
7654
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
7655
|
+
readonly error: {
|
|
7656
|
+
readonly message: string;
|
|
7657
|
+
readonly code?: string | undefined;
|
|
7658
|
+
readonly details?: unknown;
|
|
7659
|
+
};
|
|
7660
|
+
};
|
|
7661
|
+
} | {
|
|
7662
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
7663
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
7664
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
7665
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
7666
|
+
readonly trace: {
|
|
7667
|
+
readonly span: {
|
|
7668
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7669
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7670
|
+
readonly sampled: boolean;
|
|
7671
|
+
readonly tracestate: string | null;
|
|
7672
|
+
};
|
|
7673
|
+
readonly links: readonly {
|
|
7674
|
+
readonly context: {
|
|
7675
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
7676
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
7677
|
+
readonly sampled: boolean;
|
|
7678
|
+
readonly tracestate: string | null;
|
|
7679
|
+
};
|
|
7680
|
+
readonly attributes: {
|
|
7681
|
+
readonly [x: string]: string | number | boolean;
|
|
7682
|
+
};
|
|
7683
|
+
}[];
|
|
7684
|
+
};
|
|
7685
|
+
readonly durability: "durable";
|
|
7686
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
7687
|
+
readonly namespace: "effect-durable-agent";
|
|
7688
|
+
readonly type: "CommandCancelled";
|
|
7689
|
+
readonly schemaVersion: number;
|
|
7690
|
+
readonly payload: {
|
|
7691
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
7692
|
+
readonly reason: string;
|
|
7693
|
+
};
|
|
7694
|
+
} | {
|
|
7570
7695
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
7571
7696
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
7572
7697
|
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
@@ -8138,108 +8263,6 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
8138
8263
|
readonly payload: {
|
|
8139
8264
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
8140
8265
|
};
|
|
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
|
-
};
|
|
8243
8266
|
} | {
|
|
8244
8267
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
8245
8268
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
@@ -10495,6 +10518,108 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
10495
10518
|
readonly partsRecorded: Schema.Int;
|
|
10496
10519
|
readonly terminal: Schema.Union<readonly [Schema.TaggedStruct<"InferenceRunFinished", {
|
|
10497
10520
|
readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
|
|
10521
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10522
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10523
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10524
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10525
|
+
readonly trace: {
|
|
10526
|
+
readonly span: {
|
|
10527
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10528
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10529
|
+
readonly sampled: boolean;
|
|
10530
|
+
readonly tracestate: string | null;
|
|
10531
|
+
};
|
|
10532
|
+
readonly links: readonly {
|
|
10533
|
+
readonly context: {
|
|
10534
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10535
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10536
|
+
readonly sampled: boolean;
|
|
10537
|
+
readonly tracestate: string | null;
|
|
10538
|
+
};
|
|
10539
|
+
readonly attributes: {
|
|
10540
|
+
readonly [x: string]: string | number | boolean;
|
|
10541
|
+
};
|
|
10542
|
+
}[];
|
|
10543
|
+
};
|
|
10544
|
+
readonly durability: "durable";
|
|
10545
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10546
|
+
readonly namespace: "effect-durable-agent";
|
|
10547
|
+
readonly type: "CommandCompleted";
|
|
10548
|
+
readonly schemaVersion: number;
|
|
10549
|
+
readonly payload: {
|
|
10550
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10551
|
+
};
|
|
10552
|
+
} | {
|
|
10553
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10554
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10555
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10556
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10557
|
+
readonly trace: {
|
|
10558
|
+
readonly span: {
|
|
10559
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10560
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10561
|
+
readonly sampled: boolean;
|
|
10562
|
+
readonly tracestate: string | null;
|
|
10563
|
+
};
|
|
10564
|
+
readonly links: readonly {
|
|
10565
|
+
readonly context: {
|
|
10566
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10567
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10568
|
+
readonly sampled: boolean;
|
|
10569
|
+
readonly tracestate: string | null;
|
|
10570
|
+
};
|
|
10571
|
+
readonly attributes: {
|
|
10572
|
+
readonly [x: string]: string | number | boolean;
|
|
10573
|
+
};
|
|
10574
|
+
}[];
|
|
10575
|
+
};
|
|
10576
|
+
readonly durability: "durable";
|
|
10577
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10578
|
+
readonly namespace: "effect-durable-agent";
|
|
10579
|
+
readonly type: "CommandFailed";
|
|
10580
|
+
readonly schemaVersion: number;
|
|
10581
|
+
readonly payload: {
|
|
10582
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10583
|
+
readonly error: {
|
|
10584
|
+
readonly message: string;
|
|
10585
|
+
readonly code?: string | undefined;
|
|
10586
|
+
readonly details?: unknown;
|
|
10587
|
+
};
|
|
10588
|
+
};
|
|
10589
|
+
} | {
|
|
10590
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10591
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10592
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10593
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10594
|
+
readonly trace: {
|
|
10595
|
+
readonly span: {
|
|
10596
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10597
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10598
|
+
readonly sampled: boolean;
|
|
10599
|
+
readonly tracestate: string | null;
|
|
10600
|
+
};
|
|
10601
|
+
readonly links: readonly {
|
|
10602
|
+
readonly context: {
|
|
10603
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10604
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10605
|
+
readonly sampled: boolean;
|
|
10606
|
+
readonly tracestate: string | null;
|
|
10607
|
+
};
|
|
10608
|
+
readonly attributes: {
|
|
10609
|
+
readonly [x: string]: string | number | boolean;
|
|
10610
|
+
};
|
|
10611
|
+
}[];
|
|
10612
|
+
};
|
|
10613
|
+
readonly durability: "durable";
|
|
10614
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10615
|
+
readonly namespace: "effect-durable-agent";
|
|
10616
|
+
readonly type: "CommandCancelled";
|
|
10617
|
+
readonly schemaVersion: number;
|
|
10618
|
+
readonly payload: {
|
|
10619
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10620
|
+
readonly reason: string;
|
|
10621
|
+
};
|
|
10622
|
+
} | {
|
|
10498
10623
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10499
10624
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10500
10625
|
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
@@ -10820,121 +10945,14 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
10820
10945
|
readonly durability: "durable";
|
|
10821
10946
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10822
10947
|
readonly namespace: "effect-durable-agent";
|
|
10823
|
-
readonly type: "SessionConfigured";
|
|
10824
|
-
readonly schemaVersion: number;
|
|
10825
|
-
readonly payload: {
|
|
10826
|
-
readonly modelSelection: {
|
|
10827
|
-
readonly provider: string;
|
|
10828
|
-
readonly modelId: string;
|
|
10829
|
-
readonly settings?: unknown;
|
|
10830
|
-
};
|
|
10831
|
-
};
|
|
10832
|
-
} | {
|
|
10833
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10834
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10835
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10836
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10837
|
-
readonly trace: {
|
|
10838
|
-
readonly span: {
|
|
10839
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10840
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10841
|
-
readonly sampled: boolean;
|
|
10842
|
-
readonly tracestate: string | null;
|
|
10843
|
-
};
|
|
10844
|
-
readonly links: readonly {
|
|
10845
|
-
readonly context: {
|
|
10846
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10847
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10848
|
-
readonly sampled: boolean;
|
|
10849
|
-
readonly tracestate: string | null;
|
|
10850
|
-
};
|
|
10851
|
-
readonly attributes: {
|
|
10852
|
-
readonly [x: string]: string | number | boolean;
|
|
10853
|
-
};
|
|
10854
|
-
}[];
|
|
10855
|
-
};
|
|
10856
|
-
readonly durability: "durable";
|
|
10857
|
-
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10858
|
-
readonly namespace: "effect-durable-agent";
|
|
10859
|
-
readonly type: "DeciderAccepted";
|
|
10860
|
-
readonly schemaVersion: number;
|
|
10861
|
-
readonly payload: {
|
|
10862
|
-
readonly decider: string;
|
|
10863
|
-
readonly idempotencyKey: string;
|
|
10864
|
-
readonly result: Schema.Json;
|
|
10865
|
-
};
|
|
10866
|
-
} | {
|
|
10867
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10868
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10869
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10870
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10871
|
-
readonly trace: {
|
|
10872
|
-
readonly span: {
|
|
10873
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10874
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10875
|
-
readonly sampled: boolean;
|
|
10876
|
-
readonly tracestate: string | null;
|
|
10877
|
-
};
|
|
10878
|
-
readonly links: readonly {
|
|
10879
|
-
readonly context: {
|
|
10880
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10881
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10882
|
-
readonly sampled: boolean;
|
|
10883
|
-
readonly tracestate: string | null;
|
|
10884
|
-
};
|
|
10885
|
-
readonly attributes: {
|
|
10886
|
-
readonly [x: string]: string | number | boolean;
|
|
10887
|
-
};
|
|
10888
|
-
}[];
|
|
10889
|
-
};
|
|
10890
|
-
readonly durability: "durable";
|
|
10891
|
-
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10892
|
-
readonly namespace: "effect-durable-agent";
|
|
10893
|
-
readonly type: "RunSchedulingRequested";
|
|
10894
|
-
readonly schemaVersion: number;
|
|
10895
|
-
readonly payload: {
|
|
10896
|
-
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
10897
|
-
readonly work: {
|
|
10898
|
-
readonly _tag: "Command";
|
|
10899
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10900
|
-
} | {
|
|
10901
|
-
readonly _tag: "Recovery";
|
|
10902
|
-
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
10903
|
-
readonly interruptedRunId: string & import("effect/Brand").Brand<"RunId">;
|
|
10904
|
-
readonly inputMessageIds: readonly (string & import("effect/Brand").Brand<"MessageId">)[];
|
|
10905
|
-
};
|
|
10906
|
-
};
|
|
10907
|
-
} | {
|
|
10908
|
-
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
10909
|
-
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
10910
|
-
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
10911
|
-
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
10912
|
-
readonly trace: {
|
|
10913
|
-
readonly span: {
|
|
10914
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10915
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10916
|
-
readonly sampled: boolean;
|
|
10917
|
-
readonly tracestate: string | null;
|
|
10918
|
-
};
|
|
10919
|
-
readonly links: readonly {
|
|
10920
|
-
readonly context: {
|
|
10921
|
-
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
10922
|
-
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
10923
|
-
readonly sampled: boolean;
|
|
10924
|
-
readonly tracestate: string | null;
|
|
10925
|
-
};
|
|
10926
|
-
readonly attributes: {
|
|
10927
|
-
readonly [x: string]: string | number | boolean;
|
|
10928
|
-
};
|
|
10929
|
-
}[];
|
|
10930
|
-
};
|
|
10931
|
-
readonly durability: "durable";
|
|
10932
|
-
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10933
|
-
readonly namespace: "effect-durable-agent";
|
|
10934
|
-
readonly type: "RunSchedulingDelivered";
|
|
10948
|
+
readonly type: "SessionConfigured";
|
|
10935
10949
|
readonly schemaVersion: number;
|
|
10936
10950
|
readonly payload: {
|
|
10937
|
-
readonly
|
|
10951
|
+
readonly modelSelection: {
|
|
10952
|
+
readonly provider: string;
|
|
10953
|
+
readonly modelId: string;
|
|
10954
|
+
readonly settings?: unknown;
|
|
10955
|
+
};
|
|
10938
10956
|
};
|
|
10939
10957
|
} | {
|
|
10940
10958
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -10963,11 +10981,12 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
10963
10981
|
readonly durability: "durable";
|
|
10964
10982
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10965
10983
|
readonly namespace: "effect-durable-agent";
|
|
10966
|
-
readonly type: "
|
|
10984
|
+
readonly type: "DeciderAccepted";
|
|
10967
10985
|
readonly schemaVersion: number;
|
|
10968
10986
|
readonly payload: {
|
|
10969
|
-
readonly
|
|
10970
|
-
readonly
|
|
10987
|
+
readonly decider: string;
|
|
10988
|
+
readonly idempotencyKey: string;
|
|
10989
|
+
readonly result: Schema.Json;
|
|
10971
10990
|
};
|
|
10972
10991
|
} | {
|
|
10973
10992
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -10996,11 +11015,19 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
10996
11015
|
readonly durability: "durable";
|
|
10997
11016
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
10998
11017
|
readonly namespace: "effect-durable-agent";
|
|
10999
|
-
readonly type: "
|
|
11018
|
+
readonly type: "RunSchedulingRequested";
|
|
11000
11019
|
readonly schemaVersion: number;
|
|
11001
11020
|
readonly payload: {
|
|
11002
11021
|
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
11003
|
-
readonly
|
|
11022
|
+
readonly work: {
|
|
11023
|
+
readonly _tag: "Command";
|
|
11024
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11025
|
+
} | {
|
|
11026
|
+
readonly _tag: "Recovery";
|
|
11027
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11028
|
+
readonly interruptedRunId: string & import("effect/Brand").Brand<"RunId">;
|
|
11029
|
+
readonly inputMessageIds: readonly (string & import("effect/Brand").Brand<"MessageId">)[];
|
|
11030
|
+
};
|
|
11004
11031
|
};
|
|
11005
11032
|
} | {
|
|
11006
11033
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -11029,10 +11056,10 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
11029
11056
|
readonly durability: "durable";
|
|
11030
11057
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
11031
11058
|
readonly namespace: "effect-durable-agent";
|
|
11032
|
-
readonly type: "
|
|
11059
|
+
readonly type: "RunSchedulingDelivered";
|
|
11033
11060
|
readonly schemaVersion: number;
|
|
11034
11061
|
readonly payload: {
|
|
11035
|
-
readonly
|
|
11062
|
+
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
11036
11063
|
};
|
|
11037
11064
|
} | {
|
|
11038
11065
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -11061,10 +11088,11 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
11061
11088
|
readonly durability: "durable";
|
|
11062
11089
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
11063
11090
|
readonly namespace: "effect-durable-agent";
|
|
11064
|
-
readonly type: "
|
|
11091
|
+
readonly type: "RunSchedulingInvalidated";
|
|
11065
11092
|
readonly schemaVersion: number;
|
|
11066
11093
|
readonly payload: {
|
|
11067
|
-
readonly
|
|
11094
|
+
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
11095
|
+
readonly reason: "ineligible" | "interrupted" | "message-cancelled" | "stopped";
|
|
11068
11096
|
};
|
|
11069
11097
|
} | {
|
|
11070
11098
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -11093,10 +11121,11 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
11093
11121
|
readonly durability: "durable";
|
|
11094
11122
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
11095
11123
|
readonly namespace: "effect-durable-agent";
|
|
11096
|
-
readonly type: "
|
|
11124
|
+
readonly type: "RunSchedulingGranted";
|
|
11097
11125
|
readonly schemaVersion: number;
|
|
11098
11126
|
readonly payload: {
|
|
11099
|
-
readonly
|
|
11127
|
+
readonly requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
11128
|
+
readonly runId: string & import("effect/Brand").Brand<"RunId">;
|
|
11100
11129
|
};
|
|
11101
11130
|
} | {
|
|
11102
11131
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -11125,15 +11154,10 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
11125
11154
|
readonly durability: "durable";
|
|
11126
11155
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
11127
11156
|
readonly namespace: "effect-durable-agent";
|
|
11128
|
-
readonly type: "
|
|
11157
|
+
readonly type: "CommandAdmitted";
|
|
11129
11158
|
readonly schemaVersion: number;
|
|
11130
11159
|
readonly payload: {
|
|
11131
|
-
readonly
|
|
11132
|
-
readonly error: {
|
|
11133
|
-
readonly message: string;
|
|
11134
|
-
readonly code?: string | undefined;
|
|
11135
|
-
readonly details?: unknown;
|
|
11136
|
-
};
|
|
11160
|
+
readonly command: CancelPendingMessageCommand | PromotePendingMessageCommand | ResumePendingMessagesCommand | StopTurnCommand | SubmitMessageCommand;
|
|
11137
11161
|
};
|
|
11138
11162
|
} | {
|
|
11139
11163
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -11162,11 +11186,10 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
11162
11186
|
readonly durability: "durable";
|
|
11163
11187
|
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
11164
11188
|
readonly namespace: "effect-durable-agent";
|
|
11165
|
-
readonly type: "
|
|
11189
|
+
readonly type: "CommandStarted";
|
|
11166
11190
|
readonly schemaVersion: number;
|
|
11167
11191
|
readonly payload: {
|
|
11168
11192
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
11169
|
-
readonly reason: string;
|
|
11170
11193
|
};
|
|
11171
11194
|
} | {
|
|
11172
11195
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
@@ -13425,6 +13448,108 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
13425
13448
|
readonly responseParts: Schema.$Array<Schema.Any>;
|
|
13426
13449
|
}>, Schema.TaggedStruct<"InferenceRunFailed", {
|
|
13427
13450
|
readonly committed: Schema.$Array<Schema.Codec<CommittedDurableEvent<{
|
|
13451
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
13452
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
13453
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
13454
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
13455
|
+
readonly trace: {
|
|
13456
|
+
readonly span: {
|
|
13457
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13458
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13459
|
+
readonly sampled: boolean;
|
|
13460
|
+
readonly tracestate: string | null;
|
|
13461
|
+
};
|
|
13462
|
+
readonly links: readonly {
|
|
13463
|
+
readonly context: {
|
|
13464
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13465
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13466
|
+
readonly sampled: boolean;
|
|
13467
|
+
readonly tracestate: string | null;
|
|
13468
|
+
};
|
|
13469
|
+
readonly attributes: {
|
|
13470
|
+
readonly [x: string]: string | number | boolean;
|
|
13471
|
+
};
|
|
13472
|
+
}[];
|
|
13473
|
+
};
|
|
13474
|
+
readonly durability: "durable";
|
|
13475
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
13476
|
+
readonly namespace: "effect-durable-agent";
|
|
13477
|
+
readonly type: "CommandCompleted";
|
|
13478
|
+
readonly schemaVersion: number;
|
|
13479
|
+
readonly payload: {
|
|
13480
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
13481
|
+
};
|
|
13482
|
+
} | {
|
|
13483
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
13484
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
13485
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
13486
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
13487
|
+
readonly trace: {
|
|
13488
|
+
readonly span: {
|
|
13489
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13490
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13491
|
+
readonly sampled: boolean;
|
|
13492
|
+
readonly tracestate: string | null;
|
|
13493
|
+
};
|
|
13494
|
+
readonly links: readonly {
|
|
13495
|
+
readonly context: {
|
|
13496
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13497
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13498
|
+
readonly sampled: boolean;
|
|
13499
|
+
readonly tracestate: string | null;
|
|
13500
|
+
};
|
|
13501
|
+
readonly attributes: {
|
|
13502
|
+
readonly [x: string]: string | number | boolean;
|
|
13503
|
+
};
|
|
13504
|
+
}[];
|
|
13505
|
+
};
|
|
13506
|
+
readonly durability: "durable";
|
|
13507
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
13508
|
+
readonly namespace: "effect-durable-agent";
|
|
13509
|
+
readonly type: "CommandFailed";
|
|
13510
|
+
readonly schemaVersion: number;
|
|
13511
|
+
readonly payload: {
|
|
13512
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
13513
|
+
readonly error: {
|
|
13514
|
+
readonly message: string;
|
|
13515
|
+
readonly code?: string | undefined;
|
|
13516
|
+
readonly details?: unknown;
|
|
13517
|
+
};
|
|
13518
|
+
};
|
|
13519
|
+
} | {
|
|
13520
|
+
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
13521
|
+
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
13522
|
+
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
13523
|
+
readonly createdAtMs: number & import("effect/Brand").Brand<"UnixEpochMillis">;
|
|
13524
|
+
readonly trace: {
|
|
13525
|
+
readonly span: {
|
|
13526
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13527
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13528
|
+
readonly sampled: boolean;
|
|
13529
|
+
readonly tracestate: string | null;
|
|
13530
|
+
};
|
|
13531
|
+
readonly links: readonly {
|
|
13532
|
+
readonly context: {
|
|
13533
|
+
readonly traceId: string & import("effect/Brand").Brand<"EDATraceId">;
|
|
13534
|
+
readonly spanId: string & import("effect/Brand").Brand<"EDASpanId">;
|
|
13535
|
+
readonly sampled: boolean;
|
|
13536
|
+
readonly tracestate: string | null;
|
|
13537
|
+
};
|
|
13538
|
+
readonly attributes: {
|
|
13539
|
+
readonly [x: string]: string | number | boolean;
|
|
13540
|
+
};
|
|
13541
|
+
}[];
|
|
13542
|
+
};
|
|
13543
|
+
readonly durability: "durable";
|
|
13544
|
+
readonly dedupeKey?: (string & import("effect/Brand").Brand<"EventDedupeKey">) | undefined;
|
|
13545
|
+
readonly namespace: "effect-durable-agent";
|
|
13546
|
+
readonly type: "CommandCancelled";
|
|
13547
|
+
readonly schemaVersion: number;
|
|
13548
|
+
readonly payload: {
|
|
13549
|
+
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
13550
|
+
readonly reason: string;
|
|
13551
|
+
};
|
|
13552
|
+
} | {
|
|
13428
13553
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
13429
13554
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
13430
13555
|
readonly correlationId?: (string & import("effect/Brand").Brand<"CorrelationId">) | undefined;
|
|
@@ -13996,108 +14121,6 @@ declare const InferenceRunResult: Schema.Struct<{
|
|
|
13996
14121
|
readonly payload: {
|
|
13997
14122
|
readonly commandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
13998
14123
|
};
|
|
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
|
-
};
|
|
14101
14124
|
} | {
|
|
14102
14125
|
readonly eventId: string & import("effect/Brand").Brand<"EventId">;
|
|
14103
14126
|
readonly sessionId: string & import("effect/Brand").Brand<"SessionId">;
|
|
@@ -52978,5 +53001,5 @@ declare const activeTurnIdentityForCommand: (state: ReducedState, commandId: Com
|
|
|
52978
53001
|
/** Classify unfinished durable lifecycles that recovery may need to repair. */
|
|
52979
53002
|
declare const classifyRecoverableWork: (state: ReducedState) => RecoverableWork;
|
|
52980
53003
|
//#endregion
|
|
52981
|
-
export { SessionCommandAdmissionError as $,
|
|
52982
|
-
//# sourceMappingURL=reduced-state-
|
|
53004
|
+
export { SessionCommandAdmissionError as $, deciderMarkerDedupeKey as $n, PromptPrefixSummaryCompactionExecutorOptions as $t, TurnTerminal as A, RunSchedulingCancellationPlan as An, EDASink as At, messageContextSeq as B, waitingRunControl as Bn, CompactionError as Bt, RunRecord as C, SessionEventObserverShape as Cn, RunSchedulingDeliveryError as Ct, ToolDecision as D, RunGrantability as Dn, EDAProjectedSink as Dt, ToolCallRecord as E, RunGrantResult as En, EDAProjectedDurableSinkDefinition as Et, encodeReducedStateCheckpoint as F, canGrantRun as Fn, EDASinkRawDurableBatch as Ft, CommittedCommandTerminalEvent as G, EDADeciderItem as Gn, CompactionPlan as Gt, pendingStopCommand as H, EDADecider as Hn, CompactionExecutorInput as Ht, foldReducedState as I, planRunSchedulingCancellation as In, EDASinkRegistry as It, EDARuntimeConfig as J, EDADeciderView as Jn, CompactionPolicyShape as Jt, EDACommandTerminalEvent as K, EDADeciderOutcome as Kn, CompactionPolicy as Kt, frameworkReducedStateReducerName as L, planWaitingRunInterruption as Ln, EDASinkRegistryShape as Lt, activeTurnIdentityForCommand as M, RunSchedulingRequest as Mn, EDASinkContext as Mt, classifyRecoverableWork as N, RunSchedulingRequestRecord as Nn, EDASinkDurableBatch as Nt, ToolTerminal as O, RunRequestOutcome as On, EDARawDurableSinkDefinition as Ot, decodeReducedStateCheckpoint as P, RunSchedulingWork as Pn, EDASinkInterests as Pt, EDASubmittable as Q, deciderIdempotencyKeyViolation as Qn, LanguageModelSummaryCompactionExecutorOptions as Qt, frameworkReducedStateReducerSchemaVersion as R, runGrantability as Rn, EDASinkRunnerStartInput as Rt, ReducedStateCheckpointToolTerminal as S, SessionEventObserver as Sn, RunSchedulingDelivery as St, StopRequestRecord as T, LocalRunResolution as Tn, EDAEphemeralSinkDefinition as Tt, reduceCommittedEvents as U, EDADeciderDefinition as Un, CompactionExecutorShape as Ut, pendingCommands as V, SessionCommandAdmissionConflict as Vn, CompactionExecutor as Vt, reducedStateCheckpointEventSeqs as W, EDADeciderError as Wn, CompactionOutput as Wt, EDARuntimeShape as X, EDAErasedDecision as Xn, CompactionRunnerInput as Xt, EDARuntimeError as Y, EDADecision as Yn, CompactionRunner as Yt, EDARuntimeSubmit as Z, EDAEventDraft as Zn, CompactionRunnerShape as Zt, ReducedStateCheckpointCommandRecord as _, EDASessionEventPage as _n, InferenceRunner as _t, CompactionRecord as a, promptPrefixSummaryCompactionExecutor as an, maxDeciderResultBytes as ar, SessionDecideError as at, ReducedStateCheckpointToolCallRecord as b, EDASessionSnapshot as bn, RunScheduler as bt, InferenceRecord as c, EDAToolExecutionContext as cn, EDAProjectedPromptContext as cr, SessionForkedCommand as ct, LifecycleTiming as d, ToolParamsSchema as dn, EDAPromptProjectorShape as dr, SessionRunInput as dt, defaultCompactionCharsPerToken as en, deciderNamePattern as er, SessionCommandCancelled as et, MessageRecord as f, ToolRecovery as fn, EDA_PROMPT_OPTIONS_KEY as fr, SessionState as ft, ReducedState as g, toolRecoveryPolicy as gn, nativeCompactionSummaryMessage as gr, TurnRunner as gt, RecoveryContinuationRecord as h, maxToolCallAttempts as hn, isEDACacheBreakpoint as hr, SessionStateSnapshotData as ht, CommandTerminal as i, defaultCompactionThresholdTokens as in, maxDeciderIdempotencyKeyLength as ir, SessionCommandResult as it, activeCommand as j, RunSchedulingInput as jn, EDASinkCheckpoint as jt, TurnRecord as k, RunResolution as kn, EDARawSink as kt, InferenceTerminal as l, EDAToolRegistry as ln, EDAPromptProjectionInput as lr, SessionNoRunnableCommand as lt, RecoverableWork as m, makeEDAToolkit as mn, getNativeCompaction as mr, SessionStateShape as mt, ActiveTurnIdentity as n, defaultCompactionRetainTailTokens as nn, encodeDeciderJson as nr, SessionCommandFailed as nt, CompactionTerminal as o, EventFactory as on, SessionContext as or, SessionDrainProcessed as ot, PendingCommand as p, ToolRecoveryPolicy as pn, buildEDAPrompt as pr, SessionStateError as pt, EDARuntime as q, EDADeciderRegistry as qn, CompactionPolicyInput as qt, CommandRecord as r, defaultCompactionSummaryInstructions as rn, makeEDADeciderRegistry as rr, SessionCommandOutcome as rt, ContextRecord as s, EDAModelToolkit as sn, EDANativeCompaction as sr, SessionDrainResult as st, ActiveCommandEvidence as t, defaultCompactionMinSummarizableTokens as tn, edaReservedDeciderNamePrefix as tr, SessionCommandCompleted as tt, LifecycleFailure as u, EDAToolRegistryShape as un, EDAPromptProjector as ur, SessionNoRunnableReason as ut, ReducedStateCheckpointMessageRecord as v, EDASessionQuery as vn, InferenceRunnerStreamPart as vt, RunTerminal as w, DeferredRunResolution as wn, EDADurableSinkDefinition as wt, ReducedStateCheckpointToolDecision as x, LiveEventBus as xn, RunSchedulerShape as xt, ReducedStateCheckpointPayload as y, EDASessionQueryShape as yn, ToolExecutor as yt, initialReducedState as z, runSchedulingInputMessageIds as zn, ApproximateTokenThresholdCompactionPolicyOptions as zt };
|
|
53005
|
+
//# sourceMappingURL=reduced-state-DNfEwxu7.d.ts.map
|