effect-durable-agent 0.1.0-alpha.17 → 0.1.0-alpha.19
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/{commands-p8venTWs.d.ts → commands-3OD-p8dD.d.ts} +7 -8
- package/dist/{compaction-Db6eoLce.js → compaction-Bell28K8.js} +2 -4
- package/dist/{compaction-Db6eoLce.js.map → compaction-Bell28K8.js.map} +1 -1
- package/dist/{context-projection-n6Rdup0N.d.ts → context-projection-D_uRtK3r.d.ts} +13 -14
- package/dist/{core-C-6xHzRx.d.ts → core-BcimKMIv.d.ts} +1 -2
- package/dist/domain/command-queues.d.ts +81 -2
- package/dist/domain/command-queues.js.map +1 -1
- package/dist/domain/context-projection.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/message-transcript.js.map +1 -1
- package/dist/domain/model-usage.d.ts +1 -1
- package/dist/domain/reduced-state-schema.d.ts +3 -992
- package/dist/domain/reduced-state-schema.js +114 -2
- package/dist/domain/reduced-state-schema.js.map +1 -1
- package/dist/domain/reduced-state.d.ts +2 -2
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/domain/run-scheduling.js.map +1 -1
- package/dist/durable-DRY7AcsF.js.map +1 -1
- package/dist/{durable-Ceu9SC2D.d.ts → durable-DoG_e4iL.d.ts} +1486 -1487
- package/dist/envelope-BCzKUq_z.js.map +1 -1
- package/dist/{envelope-VXFEC8zr.d.ts → envelope-Che6KatU.d.ts} +29 -30
- package/dist/event-factory-CKuWhjS4.js.map +1 -1
- package/dist/{events-D3OAPXgS.d.ts → events-sxIzJY26.d.ts} +124 -122
- package/dist/{id-generator--x6itQZ2.d.ts → id-generator-BKGoKjt-.d.ts} +2 -3
- package/dist/index.d.ts +7 -7
- package/dist/index.js +2 -2
- package/dist/{keep-alive-Chl5SJxy.d.ts → keep-alive-_zFCUvt3.d.ts} +1 -2
- package/dist/{model-resolver-ci5D5WQv.d.ts → model-resolver-BHYVHsam.d.ts} +3 -3
- package/dist/{model-usage-CNcnhj72.d.ts → model-usage-0GeHwaaU.d.ts} +2 -3
- package/dist/reduced-state-DFIYylAq.js.map +1 -1
- package/dist/{index-DWC70Fsi.d.ts → reduced-state-DrSHn_47.d.ts} +12581 -9701
- package/dist/reduced-state-schema-CPEmuHLY.d.ts +2167 -0
- package/dist/{reducer-registry-nO4biZlg.d.ts → reducer-registry-C3ZidOI1.d.ts} +8 -7
- package/dist/{run-scheduling-wakeup-CXT5_CkI.d.ts → run-scheduling-wakeup-COUj3r_B.d.ts} +2 -3
- package/dist/services/compaction.d.ts +1 -1
- package/dist/services/compaction.js +1 -1
- package/dist/services/id-generator.d.ts +1 -1
- package/dist/services/id-generator.js +2 -1
- package/dist/services/id-generator.js.map +1 -1
- package/dist/services/keep-alive.d.ts +1 -1
- package/dist/services/keep-alive.js.map +1 -1
- package/dist/services/model-resolver.d.ts +1 -1
- package/dist/services/model-resolver.js.map +1 -1
- package/dist/services/prompt-projector.d.ts +1 -1
- package/dist/services/prompt-projector.js.map +1 -1
- package/dist/services/reducer-registry.d.ts +1 -1
- package/dist/services/reducer-registry.js.map +1 -1
- package/dist/services/run-scheduler.d.ts +1 -2
- package/dist/services/run-scheduler.js.map +1 -1
- package/dist/services/run-scheduling-wakeup.d.ts +1 -1
- package/dist/services/run-scheduling-wakeup.js.map +1 -1
- package/dist/services/runtime-layer.d.ts +11 -35
- package/dist/services/runtime-layer.js +3 -3
- package/dist/services/runtime-layer.js.map +1 -1
- package/dist/services/runtime.d.ts +1 -1
- package/dist/services/runtime.js +12 -3
- package/dist/services/runtime.js.map +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 +2 -2
- package/dist/services/session-query.js +24 -8
- package/dist/services/session-query.js.map +1 -1
- package/dist/services/session-state.d.ts +1 -1
- package/dist/services/session-state.js +1 -1
- package/dist/services/session-store.d.ts +1 -1
- package/dist/services/session-store.js +5 -3
- package/dist/services/session-store.js.map +1 -1
- package/dist/services/sink-checkpoint-store.d.ts +1 -1
- package/dist/services/sink-checkpoint-store.js +2 -1
- package/dist/services/sink-checkpoint-store.js.map +1 -1
- package/dist/services/sink-registry.d.ts +1 -1
- package/dist/services/sink-registry.js +1 -1
- package/dist/services/tool-registry.d.ts +1 -1
- package/dist/services/tool-registry.js.map +1 -1
- package/dist/services/tracing.d.ts +3 -3
- package/dist/services/tracing.js.map +1 -1
- package/dist/{session-event-observer-BWppl2Fr.d.ts → session-event-observer-BDwja1jX.d.ts} +3 -3
- package/dist/{session-state-8PJZvuR3.js → session-state-BBzzJrDC.js} +78 -50
- package/dist/{session-state-8PJZvuR3.js.map → session-state-BBzzJrDC.js.map} +1 -1
- package/dist/{session-store-DBa-TOVH.d.ts → session-store-B_vh581h.d.ts} +9 -9
- package/dist/{sink-checkpoint-store-BZGfJLve.d.ts → sink-checkpoint-store-2SxoNMbI.d.ts} +3 -4
- package/dist/{sink-registry-B4yxTmlI.js → sink-registry-ogHu2Sw7.js} +2 -2
- package/dist/{sink-registry-B4yxTmlI.js.map → sink-registry-ogHu2Sw7.js.map} +1 -1
- package/dist/testkit/layers.d.ts +13 -18
- package/dist/testkit/layers.js +3 -3
- package/dist/testkit/layers.js.map +1 -1
- package/dist/{tool-registry-NOP9aTHT.d.ts → tool-registry-DDxbmMpY.d.ts} +5 -5
- package/dist/{tracing-BXHAkxkx.d.ts → tracing-BwjbF285.d.ts} +1 -2
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/commands.js.map +1 -1
- package/dist/types/core.d.ts +1 -1
- package/dist/types/core.js.map +1 -1
- package/dist/types/events/durable.d.ts +1 -1
- package/dist/types/events.d.ts +4 -4
- package/dist/types/tracing.d.ts +1 -1
- package/dist/types/tracing.js.map +1 -1
- package/dist/websocket.d.ts +197 -187
- package/dist/websocket.js +4 -3
- package/dist/websocket.js.map +1 -1
- package/package.json +7 -7
- package/dist/command-queues-w9WUKTpM.d.ts +0 -556
- package/dist/compaction-DhIJ-sAH.d.ts +0 -165
- package/dist/event-factory-CHP1-DAF.d.ts +0 -91
- package/dist/message-transcript-BfuGCZhP.d.ts +0 -32
- package/dist/prompt-projector-DvNHsoEN.d.ts +0 -39
- package/dist/run-scheduler-DFBqIRzF.d.ts +0 -43
- package/dist/sink-registry-tpmJ-Dhf.d.ts +0 -148
|
@@ -1,556 +0,0 @@
|
|
|
1
|
-
import { b as TurnId, g as SessionId, h as SequenceNumber, i as ContextVersion, l as InferenceId, m as RunRequestId, n as CommandId, p as RunId, r as CompactionId, u as MessageId, v as SummaryId, y as ToolCallId } from "./core-C-6xHzRx.js";
|
|
2
|
-
import { c as FailurePayload, g as ToolName, h as SystemPromptText, p as ProviderPartId, u as ModelSelectionPayload, v as UsagePayload } from "./envelope-VXFEC8zr.js";
|
|
3
|
-
import { n as TokenConsumptionState } from "./model-usage-CNcnhj72.js";
|
|
4
|
-
import { d as UserMessageContent, r as EDACommand } from "./commands-p8venTWs.js";
|
|
5
|
-
import { n as EDARunTrace, t as EDAEventTrace } from "./tracing-BXHAkxkx.js";
|
|
6
|
-
import { r as AssistantMessageContent, ut as RecoveryContinuation } from "./durable-Ceu9SC2D.js";
|
|
7
|
-
import { t as CommittedDurableEvent } from "./session-store-DBa-TOVH.js";
|
|
8
|
-
import * as Schema from "effect/Schema";
|
|
9
|
-
import * as Prompt from "effect/unstable/ai/Prompt";
|
|
10
|
-
|
|
11
|
-
//#region src/domain/run-scheduling.d.ts
|
|
12
|
-
/**
|
|
13
|
-
* Identity of the admitted work selected by dispatch or recovery for a new run.
|
|
14
|
-
* This is not a durable request identity: recovery can resolve the same command again.
|
|
15
|
-
*/
|
|
16
|
-
interface RunSchedulingInput {
|
|
17
|
-
readonly sessionId: SessionId;
|
|
18
|
-
readonly commandId: CommandId;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Permission to start the selected run in this session's current runtime.
|
|
22
|
-
* This value is never persisted and allocates no scheduling identity.
|
|
23
|
-
*/
|
|
24
|
-
declare const LocalRunResolution: Schema.TaggedStruct<"Local", {}>;
|
|
25
|
-
type LocalRunResolution = typeof LocalRunResolution.Type;
|
|
26
|
-
/** Intent to request external permission; resolution itself must perform no delivery. */
|
|
27
|
-
declare const DeferredRunResolution: Schema.TaggedStruct<"Deferred", {}>;
|
|
28
|
-
type DeferredRunResolution = typeof DeferredRunResolution.Type;
|
|
29
|
-
/** Prompt selection result interpreted by SessionState before any run is started. */
|
|
30
|
-
declare const RunResolution: Schema.Union<readonly [Schema.TaggedStruct<"Local", {}>, Schema.TaggedStruct<"Deferred", {}>]>;
|
|
31
|
-
type RunResolution = typeof RunResolution.Type;
|
|
32
|
-
/** Selected work and the durable predecessor needed to authorize a recovery replacement. */
|
|
33
|
-
declare const RunSchedulingWork: Schema.Union<readonly [Schema.TaggedStruct<"Command", {
|
|
34
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
35
|
-
}>, Schema.TaggedStruct<"Recovery", {
|
|
36
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
37
|
-
readonly interruptedRunId: Schema.brand<Schema.String, "RunId">;
|
|
38
|
-
readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
39
|
-
}>]>;
|
|
40
|
-
type RunSchedulingWork = typeof RunSchedulingWork.Type;
|
|
41
|
-
/** One run-slot reservation. External schedulers must deduplicate delivery by requestId. */
|
|
42
|
-
declare const RunSchedulingRequest: Schema.Struct<{
|
|
43
|
-
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
44
|
-
readonly work: Schema.Union<readonly [Schema.TaggedStruct<"Command", {
|
|
45
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
46
|
-
}>, Schema.TaggedStruct<"Recovery", {
|
|
47
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
48
|
-
readonly interruptedRunId: Schema.brand<Schema.String, "RunId">;
|
|
49
|
-
readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
50
|
-
}>]>;
|
|
51
|
-
}>;
|
|
52
|
-
type RunSchedulingRequest = typeof RunSchedulingRequest.Type;
|
|
53
|
-
/** Current reservation, folded solely from request and successful delivery facts. */
|
|
54
|
-
declare const RunSchedulingRequestRecord: Schema.Struct<{
|
|
55
|
-
readonly requestedSeq: Schema.brand<Schema.Int, "SequenceNumber">;
|
|
56
|
-
readonly deliveredSeq: Schema.optionalKey<Schema.brand<Schema.Int, "SequenceNumber">>;
|
|
57
|
-
readonly requestId: Schema.brand<Schema.String, "RunRequestId">;
|
|
58
|
-
readonly work: Schema.Union<readonly [Schema.TaggedStruct<"Command", {
|
|
59
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
60
|
-
}>, Schema.TaggedStruct<"Recovery", {
|
|
61
|
-
readonly commandId: Schema.brand<Schema.String, "CommandId">;
|
|
62
|
-
readonly interruptedRunId: Schema.brand<Schema.String, "RunId">;
|
|
63
|
-
readonly inputMessageIds: Schema.$Array<Schema.brand<Schema.String, "MessageId">>;
|
|
64
|
-
}>]>;
|
|
65
|
-
}>;
|
|
66
|
-
type RunSchedulingRequestRecord = typeof RunSchedulingRequestRecord.Type;
|
|
67
|
-
/** A stale/duplicate permission is harmless and cannot allocate another run. */
|
|
68
|
-
declare const RunGrantResult: Schema.Union<readonly [Schema.TaggedStruct<"Granted", {
|
|
69
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
70
|
-
}>, Schema.TaggedStruct<"Stale", {}>]>;
|
|
71
|
-
type RunGrantResult = typeof RunGrantResult.Type;
|
|
72
|
-
/** Durable answer for reconciling an ambiguous grant delivery. Unknown never authorizes replacement work. */
|
|
73
|
-
declare const RunRequestOutcome: Schema.Union<readonly [Schema.TaggedStruct<"Unknown", {}>, Schema.TaggedStruct<"Waiting", {}>, Schema.TaggedStruct<"Invalidated", {}>, Schema.TaggedStruct<"Granted", {
|
|
74
|
-
readonly runId: Schema.brand<Schema.String, "RunId">;
|
|
75
|
-
readonly status: Schema.Literals<readonly ["Running", "Completed", "Failed", "Interrupted"]>;
|
|
76
|
-
}>]>;
|
|
77
|
-
type RunRequestOutcome = typeof RunRequestOutcome.Type;
|
|
78
|
-
/** Canonical records consulted by authorization policy, without an Effect-layer snapshot. */
|
|
79
|
-
type SchedulingState = Pick<ReducedState, "commands" | "runs" | "messages" | "commandQueues" | "runSchedulingRequest">;
|
|
80
|
-
/** Still-unconsumed inputs owned by a reservation, derived from the existing message records. */
|
|
81
|
-
declare const runSchedulingInputMessageIds: (state: SchedulingState, work: RunSchedulingWork) => ReadonlyArray<MessageId>;
|
|
82
|
-
/** Revalidate durable ownership and pending controls immediately before granting permission. */
|
|
83
|
-
declare const canGrantRun: (state: SchedulingState, requestId: RunRequestId) => boolean;
|
|
84
|
-
/** Controls may change waiting work; later messages cannot take its reserved slot. */
|
|
85
|
-
declare const waitingRunControl: (state: SchedulingState) => PendingCommand | undefined;
|
|
86
|
-
/** Atomic request changes required when one of its selected messages is cancelled. */
|
|
87
|
-
interface RunSchedulingCancellationPlan {
|
|
88
|
-
readonly requestId: RunRequestId;
|
|
89
|
-
readonly cancelCommandId?: CommandId;
|
|
90
|
-
readonly replacementWork?: RunSchedulingWork;
|
|
91
|
-
}
|
|
92
|
-
/** Preserve a recovery predecessor when cancellation leaves other selected inputs eligible. */
|
|
93
|
-
declare const planRunSchedulingCancellation: (state: SchedulingState, messageId: MessageId) => RunSchedulingCancellationPlan | undefined;
|
|
94
|
-
/** Stop/interrupt facts that invalidate authorization and pause pending work before any run. */
|
|
95
|
-
declare const planWaitingRunInterruption: (state: SchedulingState, controlCommandId: CommandId) => {
|
|
96
|
-
requestId: string & import("effect/Brand").Brand<"RunRequestId">;
|
|
97
|
-
messageIds: (string & import("effect/Brand").Brand<"MessageId">)[];
|
|
98
|
-
cancelCommandId: string & import("effect/Brand").Brand<"CommandId">;
|
|
99
|
-
} | undefined;
|
|
100
|
-
//#endregion
|
|
101
|
-
//#region src/domain/reduced-state.d.ts
|
|
102
|
-
/** Failure payload paired with the durable sequence that recorded it. */
|
|
103
|
-
type LifecycleFailure = {
|
|
104
|
-
readonly seq: SequenceNumber;
|
|
105
|
-
readonly error: FailurePayload;
|
|
106
|
-
};
|
|
107
|
-
/** Terminal command state folded from command lifecycle events. */
|
|
108
|
-
type CommandTerminal = {
|
|
109
|
-
readonly _tag: "Completed";
|
|
110
|
-
readonly seq: SequenceNumber;
|
|
111
|
-
} | {
|
|
112
|
-
readonly _tag: "Failed";
|
|
113
|
-
readonly seq: SequenceNumber;
|
|
114
|
-
readonly error: FailurePayload;
|
|
115
|
-
} | {
|
|
116
|
-
readonly _tag: "Cancelled";
|
|
117
|
-
readonly seq: SequenceNumber;
|
|
118
|
-
readonly reason: string;
|
|
119
|
-
};
|
|
120
|
-
/** Durable command lifecycle projection used for scheduling and recovery. */
|
|
121
|
-
interface CommandRecord {
|
|
122
|
-
readonly commandId: CommandId;
|
|
123
|
-
readonly command?: EDACommand;
|
|
124
|
-
readonly admittedSeq?: SequenceNumber;
|
|
125
|
-
readonly admissionTrace?: EDAEventTrace;
|
|
126
|
-
readonly startedSeq?: SequenceNumber;
|
|
127
|
-
readonly terminal?: CommandTerminal;
|
|
128
|
-
}
|
|
129
|
-
/** Terminal run state folded from run lifecycle events. */
|
|
130
|
-
type RunTerminal = {
|
|
131
|
-
readonly _tag: "Completed";
|
|
132
|
-
readonly seq: SequenceNumber;
|
|
133
|
-
} | {
|
|
134
|
-
readonly _tag: "Failed";
|
|
135
|
-
readonly seq: SequenceNumber;
|
|
136
|
-
readonly error: FailurePayload;
|
|
137
|
-
} | {
|
|
138
|
-
readonly _tag: "Interrupted";
|
|
139
|
-
readonly seq: SequenceNumber;
|
|
140
|
-
readonly reason: string;
|
|
141
|
-
};
|
|
142
|
-
/** Common wall-clock lifecycle timing folded from durable event envelopes. */
|
|
143
|
-
interface LifecycleTiming {
|
|
144
|
-
readonly startedAtMs?: number;
|
|
145
|
-
readonly terminalAtMs?: number;
|
|
146
|
-
readonly durationMs?: number;
|
|
147
|
-
}
|
|
148
|
-
/** Durable run lifecycle projection tying one run to its owning command ids. */
|
|
149
|
-
interface RunRecord extends LifecycleTiming {
|
|
150
|
-
readonly modelSelection?: ModelSelectionPayload;
|
|
151
|
-
readonly runId: RunId;
|
|
152
|
-
readonly commandIds: ReadonlyArray<CommandId>;
|
|
153
|
-
readonly startedSeq: SequenceNumber;
|
|
154
|
-
readonly trace: EDARunTrace;
|
|
155
|
-
readonly terminal?: RunTerminal;
|
|
156
|
-
}
|
|
157
|
-
/** Terminal turn state folded from turn lifecycle events. */
|
|
158
|
-
type TurnTerminal = {
|
|
159
|
-
readonly _tag: "Completed";
|
|
160
|
-
readonly seq: SequenceNumber;
|
|
161
|
-
readonly usage?: UsagePayload;
|
|
162
|
-
} | {
|
|
163
|
-
readonly _tag: "Failed";
|
|
164
|
-
readonly seq: SequenceNumber;
|
|
165
|
-
readonly error: FailurePayload;
|
|
166
|
-
} | {
|
|
167
|
-
readonly _tag: "Stopped";
|
|
168
|
-
readonly seq: SequenceNumber;
|
|
169
|
-
readonly reason: string;
|
|
170
|
-
};
|
|
171
|
-
/** Durable turn lifecycle projection nested under a run. */
|
|
172
|
-
interface TurnRecord extends LifecycleTiming {
|
|
173
|
-
readonly runId: RunId;
|
|
174
|
-
readonly turnId: TurnId;
|
|
175
|
-
readonly startedSeq: SequenceNumber;
|
|
176
|
-
readonly terminal?: TurnTerminal;
|
|
177
|
-
}
|
|
178
|
-
/** Terminal inference state folded from inference lifecycle events. */
|
|
179
|
-
type InferenceTerminal = {
|
|
180
|
-
readonly _tag: "Completed";
|
|
181
|
-
readonly seq: SequenceNumber;
|
|
182
|
-
readonly usage?: UsagePayload;
|
|
183
|
-
} | {
|
|
184
|
-
readonly _tag: "Failed";
|
|
185
|
-
readonly seq: SequenceNumber;
|
|
186
|
-
readonly error: FailurePayload;
|
|
187
|
-
};
|
|
188
|
-
/** Durable model-inference lifecycle projection nested under a turn. */
|
|
189
|
-
interface InferenceRecord extends LifecycleTiming {
|
|
190
|
-
readonly runId: RunId;
|
|
191
|
-
readonly turnId: TurnId;
|
|
192
|
-
readonly inferenceId: InferenceId;
|
|
193
|
-
readonly startedSeq: SequenceNumber;
|
|
194
|
-
readonly terminal?: InferenceTerminal;
|
|
195
|
-
}
|
|
196
|
-
/** Durable decision produced after a model inference seals final tool calls. */
|
|
197
|
-
type ToolDecision = {
|
|
198
|
-
readonly _tag: "Created";
|
|
199
|
-
readonly seq: SequenceNumber;
|
|
200
|
-
readonly runId: RunId;
|
|
201
|
-
readonly turnId: TurnId;
|
|
202
|
-
readonly inferenceId: InferenceId;
|
|
203
|
-
readonly providerPartId: ProviderPartId;
|
|
204
|
-
readonly toolName: ToolName;
|
|
205
|
-
readonly params: unknown;
|
|
206
|
-
readonly providerExecuted: boolean;
|
|
207
|
-
readonly promptPart?: Prompt.ToolCallPart;
|
|
208
|
-
} | {
|
|
209
|
-
readonly _tag: "Rejected";
|
|
210
|
-
readonly seq: SequenceNumber;
|
|
211
|
-
readonly runId: RunId;
|
|
212
|
-
readonly turnId: TurnId;
|
|
213
|
-
readonly inferenceId: InferenceId;
|
|
214
|
-
readonly providerPartId: ProviderPartId;
|
|
215
|
-
readonly toolName: ToolName;
|
|
216
|
-
readonly reason: "unknown-tool" | "invalid-params";
|
|
217
|
-
readonly modelFeedback: string;
|
|
218
|
-
readonly promptPart?: Prompt.ToolResultPart;
|
|
219
|
-
};
|
|
220
|
-
/** Terminal framework-owned tool-call execution state. */
|
|
221
|
-
type ToolTerminal = {
|
|
222
|
-
readonly _tag: "Completed";
|
|
223
|
-
readonly seq: SequenceNumber;
|
|
224
|
-
readonly result: unknown;
|
|
225
|
-
readonly promptPart?: Prompt.ToolResultPart;
|
|
226
|
-
} | {
|
|
227
|
-
readonly _tag: "Failed";
|
|
228
|
-
readonly seq: SequenceNumber;
|
|
229
|
-
readonly error: FailurePayload;
|
|
230
|
-
readonly promptPart?: Prompt.ToolResultPart;
|
|
231
|
-
};
|
|
232
|
-
/** Durable tool-call projection from decision through execution terminal. */
|
|
233
|
-
interface ToolCallRecord extends LifecycleTiming {
|
|
234
|
-
readonly toolCallId: ToolCallId;
|
|
235
|
-
readonly decision?: ToolDecision;
|
|
236
|
-
readonly startedSeq?: SequenceNumber;
|
|
237
|
-
readonly terminal?: ToolTerminal;
|
|
238
|
-
}
|
|
239
|
-
/** Durable message-like facts folded from the event log. */
|
|
240
|
-
type MessageRecord = {
|
|
241
|
-
readonly _tag: "System";
|
|
242
|
-
readonly messageId: MessageId;
|
|
243
|
-
readonly content: SystemPromptText;
|
|
244
|
-
readonly createdAtMs?: number;
|
|
245
|
-
readonly seq: SequenceNumber;
|
|
246
|
-
} | {
|
|
247
|
-
readonly _tag: "User";
|
|
248
|
-
readonly messageId: MessageId;
|
|
249
|
-
readonly commandId: CommandId;
|
|
250
|
-
readonly content: UserMessageContent;
|
|
251
|
-
readonly createdAtMs?: number;
|
|
252
|
-
readonly seq: SequenceNumber; /** Present for admission-time message entities; absent on legacy committed users. */
|
|
253
|
-
readonly requestedDisposition?: "queue" | "steer";
|
|
254
|
-
readonly disposition?: "queue" | "steer";
|
|
255
|
-
readonly promotedSeq?: SequenceNumber;
|
|
256
|
-
readonly pausedSeq?: SequenceNumber;
|
|
257
|
-
readonly pausedByCommandId?: CommandId;
|
|
258
|
-
readonly consumedSeq?: SequenceNumber;
|
|
259
|
-
readonly consumedTurnId?: TurnId;
|
|
260
|
-
readonly cancelledSeq?: SequenceNumber;
|
|
261
|
-
readonly cancelledByCommandId?: CommandId;
|
|
262
|
-
readonly cancellationReason?: string;
|
|
263
|
-
} | {
|
|
264
|
-
readonly _tag: "Steering";
|
|
265
|
-
readonly messageId: MessageId;
|
|
266
|
-
readonly commandId: CommandId;
|
|
267
|
-
readonly runId: RunId;
|
|
268
|
-
readonly content: UserMessageContent;
|
|
269
|
-
readonly createdAtMs?: number;
|
|
270
|
-
readonly seq: SequenceNumber;
|
|
271
|
-
readonly promotedSeq?: SequenceNumber;
|
|
272
|
-
readonly consumedSeq?: SequenceNumber;
|
|
273
|
-
readonly consumedTurnId?: TurnId;
|
|
274
|
-
readonly cancelledSeq?: SequenceNumber;
|
|
275
|
-
readonly cancelledByCommandId?: CommandId;
|
|
276
|
-
readonly cancellationReason?: string;
|
|
277
|
-
readonly pausedSeq?: SequenceNumber;
|
|
278
|
-
readonly pausedByCommandId?: CommandId;
|
|
279
|
-
} | {
|
|
280
|
-
readonly _tag: "Assistant";
|
|
281
|
-
readonly messageId: MessageId;
|
|
282
|
-
readonly runId: RunId;
|
|
283
|
-
readonly turnId: TurnId;
|
|
284
|
-
readonly inferenceId: InferenceId; /** True when the assistant message originated outside this EDA session. */
|
|
285
|
-
readonly imported?: true;
|
|
286
|
-
readonly content: AssistantMessageContent;
|
|
287
|
-
readonly createdAtMs?: number;
|
|
288
|
-
readonly promptParts?: ReadonlyArray<Prompt.AssistantMessagePart>;
|
|
289
|
-
readonly seq: SequenceNumber;
|
|
290
|
-
} | {
|
|
291
|
-
readonly _tag: "AssistantPartial";
|
|
292
|
-
readonly messageId: MessageId;
|
|
293
|
-
readonly runId: RunId;
|
|
294
|
-
readonly turnId: TurnId;
|
|
295
|
-
readonly inferenceId: InferenceId;
|
|
296
|
-
readonly content: AssistantMessageContent;
|
|
297
|
-
readonly createdAtMs?: number;
|
|
298
|
-
readonly promptParts?: ReadonlyArray<Prompt.AssistantMessagePart>;
|
|
299
|
-
readonly reason: string;
|
|
300
|
-
readonly seq: SequenceNumber;
|
|
301
|
-
};
|
|
302
|
-
/** Terminal compaction state folded from compaction lifecycle events. */
|
|
303
|
-
type CompactionTerminal = {
|
|
304
|
-
readonly _tag: "Completed";
|
|
305
|
-
readonly seq: SequenceNumber;
|
|
306
|
-
} | {
|
|
307
|
-
readonly _tag: "Failed";
|
|
308
|
-
readonly seq: SequenceNumber;
|
|
309
|
-
readonly error: FailurePayload;
|
|
310
|
-
};
|
|
311
|
-
/** Durable compaction lifecycle projection and its produced summary cursor. */
|
|
312
|
-
interface CompactionRecord {
|
|
313
|
-
readonly compactionId: CompactionId;
|
|
314
|
-
readonly requestedSeq?: SequenceNumber;
|
|
315
|
-
readonly startedSeq?: SequenceNumber;
|
|
316
|
-
readonly summaryCreatedSeq?: SequenceNumber;
|
|
317
|
-
readonly summaryId?: SummaryId;
|
|
318
|
-
readonly sourceFromSeq?: SequenceNumber;
|
|
319
|
-
readonly sourceToSeq?: SequenceNumber;
|
|
320
|
-
readonly rebasedSeq?: SequenceNumber;
|
|
321
|
-
readonly contextVersion?: ContextVersion;
|
|
322
|
-
readonly terminal?: CompactionTerminal;
|
|
323
|
-
}
|
|
324
|
-
/** Current model-context version and summary selected by compaction. */
|
|
325
|
-
interface ContextRecord {
|
|
326
|
-
readonly version: ContextVersion;
|
|
327
|
-
readonly currentSummaryId?: SummaryId;
|
|
328
|
-
}
|
|
329
|
-
/** Durable StopTurn request and the lifecycle boundary it eventually applied to. */
|
|
330
|
-
interface StopRequestRecord {
|
|
331
|
-
readonly commandId: CommandId;
|
|
332
|
-
readonly requestedSeq: SequenceNumber;
|
|
333
|
-
readonly requestedRunId?: RunId;
|
|
334
|
-
readonly requestedTurnId?: TurnId;
|
|
335
|
-
readonly appliedSeq?: SequenceNumber;
|
|
336
|
-
readonly appliedRunId?: RunId;
|
|
337
|
-
readonly appliedTurnId?: TurnId;
|
|
338
|
-
readonly appliedInferenceId?: InferenceId;
|
|
339
|
-
}
|
|
340
|
-
/** Admitted command that has not yet crossed the `CommandStarted` boundary. */
|
|
341
|
-
interface PendingCommand {
|
|
342
|
-
/** Lifecycle ID for the admitted command. */
|
|
343
|
-
readonly commandId: CommandId;
|
|
344
|
-
/** Typed command payload admitted durably. */
|
|
345
|
-
readonly command: EDACommand;
|
|
346
|
-
/** Admission sequence used for deterministic FIFO/control ordering. */
|
|
347
|
-
readonly admittedSeq: SequenceNumber;
|
|
348
|
-
/** Trace context captured at the durable command admission boundary. */
|
|
349
|
-
readonly admissionTrace?: EDAEventTrace;
|
|
350
|
-
}
|
|
351
|
-
/** Started command without a terminal command boundary, optionally tied to an open run. */
|
|
352
|
-
interface ActiveCommandEvidence {
|
|
353
|
-
readonly commandId: CommandId;
|
|
354
|
-
readonly runId?: RunId;
|
|
355
|
-
}
|
|
356
|
-
/** Active run/turn/inference identity derived from unfinished lifecycle records. */
|
|
357
|
-
type ActiveTurnIdentity = {
|
|
358
|
-
readonly runId: RunId;
|
|
359
|
-
readonly turnId: TurnId;
|
|
360
|
-
readonly inferenceId?: InferenceId;
|
|
361
|
-
};
|
|
362
|
-
/** Canonical durable replay product used by queries, recovery, and scheduling. */
|
|
363
|
-
interface ReducedState {
|
|
364
|
-
/** Single current authorization reservation; absent after grant or invalidation. */
|
|
365
|
-
readonly runSchedulingRequest?: RunSchedulingRequestRecord;
|
|
366
|
-
/** Session execution policy established by configuration or the first historical run. */
|
|
367
|
-
readonly modelSelection?: ModelSelectionPayload;
|
|
368
|
-
readonly lastSeq: SequenceNumber;
|
|
369
|
-
readonly commands: ReadonlyMap<CommandId, CommandRecord>;
|
|
370
|
-
readonly runs: ReadonlyMap<RunId, RunRecord>;
|
|
371
|
-
/** Explicit startup-recovery links keyed by replacement physical run id. */
|
|
372
|
-
readonly recoveryContinuations: ReadonlyMap<RunId, RecoveryContinuationRecord>;
|
|
373
|
-
readonly turns: ReadonlyMap<TurnId, TurnRecord>;
|
|
374
|
-
readonly inferences: ReadonlyMap<InferenceId, InferenceRecord>;
|
|
375
|
-
readonly toolCalls: ReadonlyMap<ToolCallId, ToolCallRecord>;
|
|
376
|
-
readonly messages: ReadonlyMap<MessageId, MessageRecord>;
|
|
377
|
-
readonly stopRequests: ReadonlyMap<CommandId, StopRequestRecord>;
|
|
378
|
-
readonly compactions: ReadonlyMap<CompactionId, CompactionRecord>;
|
|
379
|
-
readonly context: ContextRecord;
|
|
380
|
-
/** Rolling model-token usage totals derived from completed provider inferences. */
|
|
381
|
-
readonly tokenConsumption: TokenConsumptionState;
|
|
382
|
-
/** Materialized scheduler queues derived from the maps above after every fold. */
|
|
383
|
-
readonly commandQueues: CommandQueues;
|
|
384
|
-
}
|
|
385
|
-
/** Durable recovery continuation plus the sequence of its completion barrier. */
|
|
386
|
-
interface RecoveryContinuationRecord extends RecoveryContinuation {
|
|
387
|
-
readonly seq: SequenceNumber;
|
|
388
|
-
}
|
|
389
|
-
/** Unfinished lifecycle records requiring deterministic startup recovery. */
|
|
390
|
-
interface RecoverableWork {
|
|
391
|
-
readonly activeCommands: ReadonlyArray<CommandRecord>;
|
|
392
|
-
readonly activeRuns: ReadonlyArray<RunRecord>;
|
|
393
|
-
readonly activeTurns: ReadonlyArray<TurnRecord>;
|
|
394
|
-
readonly activeInferences: ReadonlyArray<InferenceRecord>;
|
|
395
|
-
readonly openToolCalls: ReadonlyArray<ToolCallRecord>;
|
|
396
|
-
readonly runningToolCalls: ReadonlyArray<ToolCallRecord>;
|
|
397
|
-
readonly pendingStopRequests: ReadonlyArray<StopRequestRecord>;
|
|
398
|
-
readonly openCompactions: ReadonlyArray<CompactionRecord>;
|
|
399
|
-
}
|
|
400
|
-
/** Empty durable replay state before any session event has committed. */
|
|
401
|
-
declare const initialReducedState: ReducedState;
|
|
402
|
-
/** Reserved reducer checkpoint name for the framework-owned `ReducedState`. */
|
|
403
|
-
declare const frameworkReducedStateReducerName = "_eda.framework.reduced-state";
|
|
404
|
-
/** Schema version for the framework-owned `ReducedState` checkpoint payload. */
|
|
405
|
-
declare const frameworkReducedStateReducerSchemaVersion = 7;
|
|
406
|
-
/** JSON payload stored for the framework-owned reduced-state reducer checkpoint. */
|
|
407
|
-
type ReducedStateCheckpointCommandRecord = Omit<CommandRecord, "command">;
|
|
408
|
-
type SystemMessageRecord = Extract<MessageRecord, {
|
|
409
|
-
readonly _tag: "System";
|
|
410
|
-
}>;
|
|
411
|
-
type UserMessageRecord = Extract<MessageRecord, {
|
|
412
|
-
readonly _tag: "User";
|
|
413
|
-
}>;
|
|
414
|
-
type SteeringMessageRecord = Extract<MessageRecord, {
|
|
415
|
-
readonly _tag: "Steering";
|
|
416
|
-
}>;
|
|
417
|
-
type AssistantMessageRecord = Extract<MessageRecord, {
|
|
418
|
-
readonly _tag: "Assistant";
|
|
419
|
-
}>;
|
|
420
|
-
type AssistantPartialMessageRecord = Extract<MessageRecord, {
|
|
421
|
-
readonly _tag: "AssistantPartial";
|
|
422
|
-
}>;
|
|
423
|
-
type ReducedStateCheckpointMessageRecord = Omit<SystemMessageRecord, "content"> | Omit<UserMessageRecord, "content"> | Omit<SteeringMessageRecord, "content"> | Omit<AssistantMessageRecord, "content" | "promptParts"> | Omit<AssistantPartialMessageRecord, "content" | "promptParts">;
|
|
424
|
-
type CreatedToolDecision = Extract<ToolDecision, {
|
|
425
|
-
readonly _tag: "Created";
|
|
426
|
-
}>;
|
|
427
|
-
type RejectedToolDecision = Extract<ToolDecision, {
|
|
428
|
-
readonly _tag: "Rejected";
|
|
429
|
-
}>;
|
|
430
|
-
type CompletedToolTerminal = Extract<ToolTerminal, {
|
|
431
|
-
readonly _tag: "Completed";
|
|
432
|
-
}>;
|
|
433
|
-
type FailedToolTerminal = Extract<ToolTerminal, {
|
|
434
|
-
readonly _tag: "Failed";
|
|
435
|
-
}>;
|
|
436
|
-
type ReducedStateCheckpointToolDecision = Omit<CreatedToolDecision, "params" | "promptPart"> | Omit<RejectedToolDecision, "promptPart">;
|
|
437
|
-
type ReducedStateCheckpointToolTerminal = Omit<CompletedToolTerminal, "result" | "promptPart"> | Omit<FailedToolTerminal, "error" | "promptPart">;
|
|
438
|
-
interface ReducedStateCheckpointToolCallRecord extends Omit<ToolCallRecord, "decision" | "terminal"> {
|
|
439
|
-
readonly decision?: ReducedStateCheckpointToolDecision;
|
|
440
|
-
readonly terminal?: ReducedStateCheckpointToolTerminal;
|
|
441
|
-
}
|
|
442
|
-
interface ReducedStateCheckpointPayload {
|
|
443
|
-
readonly runSchedulingRequest?: RunSchedulingRequestRecord;
|
|
444
|
-
readonly modelSelection?: ModelSelectionPayload;
|
|
445
|
-
readonly lastSeq: SequenceNumber;
|
|
446
|
-
readonly commands: ReadonlyArray<readonly [CommandId, ReducedStateCheckpointCommandRecord]>;
|
|
447
|
-
readonly runs: ReadonlyArray<readonly [RunId, RunRecord]>;
|
|
448
|
-
readonly recoveryContinuations?: ReadonlyArray<readonly [RunId, RecoveryContinuationRecord]>;
|
|
449
|
-
readonly turns: ReadonlyArray<readonly [TurnId, TurnRecord]>;
|
|
450
|
-
readonly inferences: ReadonlyArray<readonly [InferenceId, InferenceRecord]>;
|
|
451
|
-
readonly toolCalls: ReadonlyArray<readonly [ToolCallId, ReducedStateCheckpointToolCallRecord]>;
|
|
452
|
-
readonly messages: ReadonlyArray<readonly [MessageId, ReducedStateCheckpointMessageRecord]>;
|
|
453
|
-
readonly stopRequests: ReadonlyArray<readonly [CommandId, StopRequestRecord]>;
|
|
454
|
-
readonly compactions: ReadonlyArray<readonly [CompactionId, CompactionRecord]>;
|
|
455
|
-
readonly context: ContextRecord;
|
|
456
|
-
readonly tokenConsumption?: TokenConsumptionState;
|
|
457
|
-
}
|
|
458
|
-
/** Encode the framework reducer state into a pointer-based JSON-safe checkpoint payload. */
|
|
459
|
-
declare const encodeReducedStateCheckpoint: (state: ReducedState) => ReducedStateCheckpointPayload;
|
|
460
|
-
/** Event-log positions required to hydrate a pointer-based framework checkpoint. */
|
|
461
|
-
declare const reducedStateCheckpointEventSeqs: (payload: unknown) => ReadonlyArray<SequenceNumber>;
|
|
462
|
-
/** Decode the framework reducer checkpoint and rebuild derived scheduler queues. */
|
|
463
|
-
declare const decodeReducedStateCheckpoint: (payload: unknown, referencedEvents: ReadonlyArray<CommittedDurableEvent>) => ReducedState;
|
|
464
|
-
/** Fold newly committed durable events into the canonical replay state. */
|
|
465
|
-
declare const foldReducedState: (state: ReducedState, committed: ReadonlyArray<CommittedDurableEvent>) => ReducedState;
|
|
466
|
-
/** Fold committed events from genesis into a fresh `ReducedState`. */
|
|
467
|
-
declare const reduceCommittedEvents: (committed: ReadonlyArray<CommittedDurableEvent>) => ReducedState;
|
|
468
|
-
/** Pending admitted commands in deterministic scheduler order. */
|
|
469
|
-
declare const pendingCommands: (state: ReducedState) => ReadonlyArray<PendingCommand>;
|
|
470
|
-
/** First pending StopTurn control command, when one is waiting. */
|
|
471
|
-
declare const pendingStopCommand: (state: ReducedState) => PendingCommand | undefined;
|
|
472
|
-
/** Currently active command evidence, if any unfinished command is blocking FIFO work. */
|
|
473
|
-
declare const activeCommand: (state: ReducedState) => ActiveCommandEvidence | undefined;
|
|
474
|
-
/** Active run/turn/inference identity owned by a specific active command. */
|
|
475
|
-
declare const activeTurnIdentityForCommand: (state: ReducedState, commandId: CommandId) => ActiveTurnIdentity | undefined;
|
|
476
|
-
/** Classify unfinished durable lifecycles that recovery may need to repair. */
|
|
477
|
-
declare const classifyRecoverableWork: (state: ReducedState) => RecoverableWork;
|
|
478
|
-
//#endregion
|
|
479
|
-
//#region src/domain/command-queues.d.ts
|
|
480
|
-
/**
|
|
481
|
-
* A steering message admitted for an active run but not necessarily consumed
|
|
482
|
-
* by a later turn yet.
|
|
483
|
-
*/
|
|
484
|
-
interface PendingSteeringMessage {
|
|
485
|
-
/** Durable message identity used by `TurnStarted.inputMessageIds` when consumed. */
|
|
486
|
-
readonly messageId: MessageId;
|
|
487
|
-
/** Command that admitted this steering message. */
|
|
488
|
-
readonly commandId: PendingCommand["commandId"];
|
|
489
|
-
/** Active run this steering message may continue. */
|
|
490
|
-
readonly runId: RunId;
|
|
491
|
-
/** User content to append to the next continuation prompt when selected. */
|
|
492
|
-
readonly content: UserMessageContent;
|
|
493
|
-
/** Sequence where `SteeringMessageQueued` committed; used for one-by-one ordering. */
|
|
494
|
-
readonly queuedSeq: SequenceNumber;
|
|
495
|
-
/** Sequence where a later `TurnStarted` consumed this steering message. */
|
|
496
|
-
readonly consumedSeq?: SequenceNumber;
|
|
497
|
-
/** Turn that consumed this steering message. */
|
|
498
|
-
readonly consumedTurnId?: TurnId;
|
|
499
|
-
}
|
|
500
|
-
/**
|
|
501
|
-
* Materialized command scheduler view derived from durable `ReducedState`.
|
|
502
|
-
*
|
|
503
|
-
* `pendingCommands` means admitted commands with no `CommandStarted` yet.
|
|
504
|
-
* `queuedCommands` is the FIFO subset that should wait for idle session work
|
|
505
|
-
* (`SubmitMessage{disposition:"queue"}`). `activeControlCommands` is the
|
|
506
|
-
* subset that may affect an active run (`StopTurn`, `steer`, `interrupt`).
|
|
507
|
-
* `steeringByRun` is not a command queue; it is queued steering content already
|
|
508
|
-
* admitted/completed as commands but not yet consumed by a turn.
|
|
509
|
-
*/
|
|
510
|
-
interface CommandQueues {
|
|
511
|
-
/** Started command without terminal command evidence, plus active run when known. */
|
|
512
|
-
readonly active?: ActiveCommandEvidence;
|
|
513
|
-
/** All admitted commands that have not yet crossed `CommandStarted`. */
|
|
514
|
-
readonly pendingCommands: ReadonlyArray<PendingCommand>;
|
|
515
|
-
/** FIFO user-message work that waits until no command/run is active. */
|
|
516
|
-
readonly queuedCommands: ReadonlyArray<PendingCommand>;
|
|
517
|
-
/** Stop/steer/interrupt work that can be interpreted while a run is active. */
|
|
518
|
-
readonly activeControlCommands: ReadonlyArray<PendingCommand>;
|
|
519
|
-
/** Unconsumed steering messages grouped by target run and sorted by queued seq. */
|
|
520
|
-
readonly steeringByRun: ReadonlyMap<RunId, ReadonlyArray<PendingSteeringMessage>>;
|
|
521
|
-
/** Admission-time queue messages eligible for separate work. */
|
|
522
|
-
readonly pendingQueue: ReadonlyArray<PendingUserMessage>;
|
|
523
|
-
/** Admission-time steer messages eligible at the next boundary. */
|
|
524
|
-
readonly pendingSteers: ReadonlyArray<PendingUserMessage>;
|
|
525
|
-
/** Queue messages held by an explicit interruption pause. */
|
|
526
|
-
readonly pausedQueue: ReadonlyArray<PendingUserMessage>;
|
|
527
|
-
}
|
|
528
|
-
interface PendingUserMessage {
|
|
529
|
-
readonly messageId: MessageId;
|
|
530
|
-
readonly commandId: PendingCommand["commandId"];
|
|
531
|
-
readonly content: UserMessageContent;
|
|
532
|
-
readonly submittedSeq: SequenceNumber;
|
|
533
|
-
readonly effectiveSeq: SequenceNumber;
|
|
534
|
-
readonly disposition: "queue" | "steer";
|
|
535
|
-
readonly targetRunId?: RunId;
|
|
536
|
-
readonly pausedByCommandId?: PendingCommand["commandId"];
|
|
537
|
-
}
|
|
538
|
-
/** Durable records needed to derive `CommandQueues` without services or refs. */
|
|
539
|
-
interface CommandQueueSource {
|
|
540
|
-
readonly commands: ReadonlyMap<PendingCommand["commandId"], CommandRecord>;
|
|
541
|
-
readonly runs: ReadonlyMap<RunId, RunRecord>;
|
|
542
|
-
readonly messages: ReadonlyMap<MessageId, MessageRecord>;
|
|
543
|
-
}
|
|
544
|
-
/** Empty queue view for `initialReducedState` before any durable events exist. */
|
|
545
|
-
declare const emptyCommandQueues: CommandQueues;
|
|
546
|
-
/**
|
|
547
|
-
* Derive scheduler queues from durable replay state.
|
|
548
|
-
*
|
|
549
|
-
* These queues are cached inside `ReducedState` for clarity and fast scheduler
|
|
550
|
-
* reads, but durable command/message/run records remain the source of truth.
|
|
551
|
-
* Never mutate a queue directly; fold durable events and derive again.
|
|
552
|
-
*/
|
|
553
|
-
declare const deriveCommandQueues: (state: CommandQueueSource) => CommandQueues;
|
|
554
|
-
//#endregion
|
|
555
|
-
export { RunRequestOutcome as $, RunTerminal as A, decodeReducedStateCheckpoint as B, ReducedStateCheckpointCommandRecord as C, ReducedStateCheckpointToolDecision as D, ReducedStateCheckpointToolCallRecord as E, TurnRecord as F, initialReducedState as G, foldReducedState as H, TurnTerminal as I, reduceCommittedEvents as J, pendingCommands as K, activeCommand as L, ToolCallRecord as M, ToolDecision as N, ReducedStateCheckpointToolTerminal as O, ToolTerminal as P, RunGrantResult as Q, activeTurnIdentityForCommand as R, ReducedState as S, ReducedStateCheckpointPayload as T, frameworkReducedStateReducerName as U, encodeReducedStateCheckpoint as V, frameworkReducedStateReducerSchemaVersion as W, DeferredRunResolution as X, reducedStateCheckpointEventSeqs as Y, LocalRunResolution as Z, LifecycleTiming as _, deriveCommandQueues as a, RunSchedulingWork as at, RecoverableWork as b, ActiveTurnIdentity as c, planWaitingRunInterruption as ct, CompactionRecord as d, RunResolution as et, CompactionTerminal as f, LifecycleFailure as g, InferenceTerminal as h, PendingUserMessage as i, RunSchedulingRequestRecord as it, StopRequestRecord as j, RunRecord as k, CommandRecord as l, runSchedulingInputMessageIds as lt, InferenceRecord as m, CommandQueues as n, RunSchedulingInput as nt, emptyCommandQueues as o, canGrantRun as ot, ContextRecord as p, pendingStopCommand as q, PendingSteeringMessage as r, RunSchedulingRequest as rt, ActiveCommandEvidence as s, planRunSchedulingCancellation as st, CommandQueueSource as t, RunSchedulingCancellationPlan as tt, CommandTerminal as u, waitingRunControl as ut, MessageRecord as v, ReducedStateCheckpointMessageRecord as w, RecoveryContinuationRecord as x, PendingCommand as y, classifyRecoverableWork as z };
|
|
556
|
-
//# sourceMappingURL=command-queues-w9WUKTpM.d.ts.map
|