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