effect-durable-agent 0.1.0-alpha.22 → 0.1.0-alpha.24
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/domain/command-queues.d.ts +1 -1
- package/dist/domain/message-transcript.d.ts +1 -1
- package/dist/domain/reduced-state.d.ts +1 -1
- package/dist/domain/run-scheduling.d.ts +1 -1
- package/dist/in-memory-D8qQXNc5.js +150 -0
- package/dist/in-memory-D8qQXNc5.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/{window-read-B8aF_hDq.js → interpreter-BYstFpr4.js} +82 -868
- package/dist/interpreter-BYstFpr4.js.map +1 -0
- package/dist/records-DWKEjuqb.js +675 -0
- package/dist/records-DWKEjuqb.js.map +1 -0
- package/dist/{reduced-state-PJdig48e.d.ts → reduced-state-B5WxKSM5.d.ts} +4206 -4206
- package/dist/{reducer-registry-BAbhZs6d.d.ts → reducer-registry-CPObI3cs.d.ts} +2 -2
- package/dist/{run-scheduling-wakeup-QLK87OqG.d.ts → run-scheduling-wakeup-B19JTeyq.d.ts} +2 -2
- package/dist/services/compaction.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/reducer-registry.d.ts +1 -1
- package/dist/services/reducer-registry.js +1 -1
- package/dist/services/run-scheduler.d.ts +1 -1
- package/dist/services/run-scheduling-wakeup.d.ts +1 -1
- package/dist/services/runtime-layer.d.ts +6 -6
- package/dist/services/runtime-layer.js +3 -3
- 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 +2 -2
- 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 +271 -1
- package/dist/services/session-store.js.map +1 -0
- package/dist/services/sink-checkpoint-store.d.ts +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/{session-state-StlO5B2N.js → session-state-BW0l2aNk.js} +3 -3
- package/dist/{session-state-StlO5B2N.js.map → session-state-BW0l2aNk.js.map} +1 -1
- package/dist/{session-store-ByDjS03N.d.ts → session-store-CWYZ29CV.d.ts} +163 -45
- package/dist/{sink-checkpoint-store-BHb8YRTw.d.ts → sink-checkpoint-store-B8Ky5nfW.d.ts} +2 -2
- package/dist/{sink-registry-DEneTH8u.js → sink-registry-D0MetcNq.js} +2 -2
- package/dist/{sink-registry-DEneTH8u.js.map → sink-registry-D0MetcNq.js.map} +1 -1
- package/dist/subscription-DelB8L87.d.ts +958 -0
- package/dist/subscription-g5W0Ggqx.js +498 -0
- package/dist/subscription-g5W0Ggqx.js.map +1 -0
- package/dist/testkit/layers.d.ts +9 -6
- package/dist/testkit/layers.js +4 -4
- package/dist/testkit/layers.js.map +1 -1
- package/dist/testkit/transcript.d.ts +226 -0
- package/dist/testkit/transcript.js +1475 -0
- package/dist/testkit/transcript.js.map +1 -0
- package/dist/{tool-registry-CxZ0iuYb.d.ts → tool-registry-B_WE2ZwK.d.ts} +2 -2
- package/dist/transcript.d.ts +40 -99
- package/dist/transcript.js +99 -170
- package/dist/transcript.js.map +1 -1
- package/dist/websocket.d.ts +2209 -2
- package/dist/websocket.js +704 -18
- package/dist/websocket.js.map +1 -1
- package/dist/window-read-DBf1Iktt.d.ts +104 -0
- package/dist/window-read-U55aAeuz.js +184 -0
- package/dist/window-read-U55aAeuz.js.map +1 -0
- package/package.json +5 -1
- package/dist/session-store-DcJjs4Fd.js +0 -413
- package/dist/session-store-DcJjs4Fd.js.map +0 -1
- package/dist/window-read-B8aF_hDq.js.map +0 -1
|
@@ -0,0 +1,675 @@
|
|
|
1
|
+
import { CommandId, CompactionId, ContextVersion, EventId, InferenceId, MessageId, RunId, SequenceNumber, SummaryId, ToolCallId, TurnId } from "./types/core.js";
|
|
2
|
+
import { _ as UsagePayload, f as ProviderPartId, g as UnixEpochMillis, h as ToolName, l as ModelSelectionPayload, s as FailurePayload, u as NonNegativeInt } from "./envelope-BCzKUq_z.js";
|
|
3
|
+
import { TokenConsumptionState } from "./domain/model-usage.js";
|
|
4
|
+
import { CommandIdempotencyKey, SubmitMessageDisposition } from "./types/commands.js";
|
|
5
|
+
import { tn as ToolCallRejectionReason } from "./durable-CD__3ztN.js";
|
|
6
|
+
import { JsonUserMessageContent } from "./domain/reduced-state-schema.js";
|
|
7
|
+
import * as Schema from "effect/Schema";
|
|
8
|
+
import * as Order from "effect/Order";
|
|
9
|
+
import * as SchemaTransformation from "effect/SchemaTransformation";
|
|
10
|
+
import * as SchemaGetter from "effect/SchemaGetter";
|
|
11
|
+
//#region src/transcript/hash.ts
|
|
12
|
+
/**
|
|
13
|
+
* Synchronous hashing for transcript identities (versions and bounded record keys).
|
|
14
|
+
*/
|
|
15
|
+
const roundConstants = new Uint32Array([
|
|
16
|
+
1116352408,
|
|
17
|
+
1899447441,
|
|
18
|
+
3049323471,
|
|
19
|
+
3921009573,
|
|
20
|
+
961987163,
|
|
21
|
+
1508970993,
|
|
22
|
+
2453635748,
|
|
23
|
+
2870763221,
|
|
24
|
+
3624381080,
|
|
25
|
+
310598401,
|
|
26
|
+
607225278,
|
|
27
|
+
1426881987,
|
|
28
|
+
1925078388,
|
|
29
|
+
2162078206,
|
|
30
|
+
2614888103,
|
|
31
|
+
3248222580,
|
|
32
|
+
3835390401,
|
|
33
|
+
4022224774,
|
|
34
|
+
264347078,
|
|
35
|
+
604807628,
|
|
36
|
+
770255983,
|
|
37
|
+
1249150122,
|
|
38
|
+
1555081692,
|
|
39
|
+
1996064986,
|
|
40
|
+
2554220882,
|
|
41
|
+
2821834349,
|
|
42
|
+
2952996808,
|
|
43
|
+
3210313671,
|
|
44
|
+
3336571891,
|
|
45
|
+
3584528711,
|
|
46
|
+
113926993,
|
|
47
|
+
338241895,
|
|
48
|
+
666307205,
|
|
49
|
+
773529912,
|
|
50
|
+
1294757372,
|
|
51
|
+
1396182291,
|
|
52
|
+
1695183700,
|
|
53
|
+
1986661051,
|
|
54
|
+
2177026350,
|
|
55
|
+
2456956037,
|
|
56
|
+
2730485921,
|
|
57
|
+
2820302411,
|
|
58
|
+
3259730800,
|
|
59
|
+
3345764771,
|
|
60
|
+
3516065817,
|
|
61
|
+
3600352804,
|
|
62
|
+
4094571909,
|
|
63
|
+
275423344,
|
|
64
|
+
430227734,
|
|
65
|
+
506948616,
|
|
66
|
+
659060556,
|
|
67
|
+
883997877,
|
|
68
|
+
958139571,
|
|
69
|
+
1322822218,
|
|
70
|
+
1537002063,
|
|
71
|
+
1747873779,
|
|
72
|
+
1955562222,
|
|
73
|
+
2024104815,
|
|
74
|
+
2227730452,
|
|
75
|
+
2361852424,
|
|
76
|
+
2428436474,
|
|
77
|
+
2756734187,
|
|
78
|
+
3204031479,
|
|
79
|
+
3329325298
|
|
80
|
+
]);
|
|
81
|
+
const rotateRight = (value, bits) => value >>> bits | value << 32 - bits;
|
|
82
|
+
const at = (words, index) => words[index] ?? 0;
|
|
83
|
+
/** Lowercase hex SHA-256 of a string's UTF-8 bytes. */
|
|
84
|
+
const sha256Hex = (input) => {
|
|
85
|
+
const message = new TextEncoder().encode(input);
|
|
86
|
+
const bitLength = message.length * 8;
|
|
87
|
+
const paddedLength = Math.ceil((message.length + 9) / 64) * 64;
|
|
88
|
+
const padded = new Uint8Array(paddedLength);
|
|
89
|
+
padded.set(message);
|
|
90
|
+
padded[message.length] = 128;
|
|
91
|
+
const view = new DataView(padded.buffer);
|
|
92
|
+
view.setUint32(paddedLength - 8, Math.floor(bitLength / 4294967296));
|
|
93
|
+
view.setUint32(paddedLength - 4, bitLength >>> 0);
|
|
94
|
+
const hash = new Uint32Array([
|
|
95
|
+
1779033703,
|
|
96
|
+
3144134277,
|
|
97
|
+
1013904242,
|
|
98
|
+
2773480762,
|
|
99
|
+
1359893119,
|
|
100
|
+
2600822924,
|
|
101
|
+
528734635,
|
|
102
|
+
1541459225
|
|
103
|
+
]);
|
|
104
|
+
const schedule = /* @__PURE__ */ new Uint32Array(64);
|
|
105
|
+
for (let offset = 0; offset < paddedLength; offset += 64) {
|
|
106
|
+
for (let index = 0; index < 16; index += 1) schedule[index] = view.getUint32(offset + index * 4);
|
|
107
|
+
for (let index = 16; index < 64; index += 1) {
|
|
108
|
+
const w15 = at(schedule, index - 15);
|
|
109
|
+
const w2 = at(schedule, index - 2);
|
|
110
|
+
const s0 = rotateRight(w15, 7) ^ rotateRight(w15, 18) ^ w15 >>> 3;
|
|
111
|
+
const s1 = rotateRight(w2, 17) ^ rotateRight(w2, 19) ^ w2 >>> 10;
|
|
112
|
+
schedule[index] = at(schedule, index - 16) + s0 + at(schedule, index - 7) + s1;
|
|
113
|
+
}
|
|
114
|
+
const working = Uint32Array.from(hash);
|
|
115
|
+
for (let index = 0; index < 64; index += 1) {
|
|
116
|
+
const [a, b, c, d, e, f, g, h] = Array.from(working);
|
|
117
|
+
const s1 = rotateRight(e ?? 0, 6) ^ rotateRight(e ?? 0, 11) ^ rotateRight(e ?? 0, 25);
|
|
118
|
+
const choice = (e ?? 0) & (f ?? 0) ^ ~(e ?? 0) & (g ?? 0);
|
|
119
|
+
const t1 = (h ?? 0) + s1 + choice + at(roundConstants, index) + at(schedule, index);
|
|
120
|
+
const s0 = rotateRight(a ?? 0, 2) ^ rotateRight(a ?? 0, 13) ^ rotateRight(a ?? 0, 22);
|
|
121
|
+
const majority = (a ?? 0) & (b ?? 0) ^ (a ?? 0) & (c ?? 0) ^ (b ?? 0) & (c ?? 0);
|
|
122
|
+
working.set([
|
|
123
|
+
t1 + s0 + majority,
|
|
124
|
+
a ?? 0,
|
|
125
|
+
b ?? 0,
|
|
126
|
+
c ?? 0,
|
|
127
|
+
(d ?? 0) + t1,
|
|
128
|
+
e ?? 0,
|
|
129
|
+
f ?? 0,
|
|
130
|
+
g ?? 0
|
|
131
|
+
]);
|
|
132
|
+
}
|
|
133
|
+
for (let index = 0; index < 8; index += 1) hash[index] = at(hash, index) + at(working, index);
|
|
134
|
+
}
|
|
135
|
+
return Array.from(hash, (word) => word.toString(16).padStart(8, "0")).join("");
|
|
136
|
+
};
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/transcript/records.ts
|
|
139
|
+
/** One logical user submission across every lifecycle state: `user:<commandId>`. */
|
|
140
|
+
const UserRecordId = Schema.TemplateLiteral(["user:", CommandId]);
|
|
141
|
+
/** One model inference's visible output: `assistant:<inferenceId>`. */
|
|
142
|
+
const InferenceAssistantRecordId = Schema.TemplateLiteral(["assistant:", InferenceId]);
|
|
143
|
+
/** Assistant context imported from another transport, keyed by its import event: `import:<eventId>`. */
|
|
144
|
+
const ImportAssistantRecordId = Schema.TemplateLiteral(["import:", EventId]);
|
|
145
|
+
/** Either assistant identity; both are top-level assistant records. */
|
|
146
|
+
const AssistantRecordId = Schema.Union([InferenceAssistantRecordId, ImportAssistantRecordId]);
|
|
147
|
+
/** The marker a context rebase leaves in history: `compaction:<compactionId>`. */
|
|
148
|
+
const CompactionRecordId = Schema.TemplateLiteral(["compaction:", CompactionId]);
|
|
149
|
+
/** A framework tool call, a dependency of its assistant: `tool:<toolCallId>`. */
|
|
150
|
+
const ToolRecordId = Schema.TemplateLiteral(["tool:", ToolCallId]);
|
|
151
|
+
/**
|
|
152
|
+
* A run plus every startup-recovery continuation of it: `run:<rootRunId>`.
|
|
153
|
+
*
|
|
154
|
+
* The id names the first run of the chain and never changes when a continuation joins.
|
|
155
|
+
*/
|
|
156
|
+
const RunGroupRecordId = Schema.TemplateLiteral(["run:", RunId]);
|
|
157
|
+
/** The session-context singleton. */
|
|
158
|
+
const SessionContextRecordId = Schema.Literal("session");
|
|
159
|
+
/**
|
|
160
|
+
* Internal holding record for decorations whose target user record does not exist yet.
|
|
161
|
+
*
|
|
162
|
+
* Hosts append decoration events before the command they describe (Gia submits
|
|
163
|
+
* `[author, attachments…, SubmitMessage]` in one batch), so the interpreter parks them under the
|
|
164
|
+
* association key and merges them when the user record is created. Never served by a window read.
|
|
165
|
+
*/
|
|
166
|
+
const DecorationBufferRecordId = Schema.TemplateLiteral([
|
|
167
|
+
"decorations:",
|
|
168
|
+
Schema.Literals(["command", "idempotencyKey"]),
|
|
169
|
+
":",
|
|
170
|
+
Schema.NonEmptyString.check(Schema.isMaxLength(512))
|
|
171
|
+
]);
|
|
172
|
+
/** Every transcript record identity this EDA release writes. */
|
|
173
|
+
const TranscriptRecordId = Schema.Union([
|
|
174
|
+
UserRecordId,
|
|
175
|
+
AssistantRecordId,
|
|
176
|
+
CompactionRecordId,
|
|
177
|
+
ToolRecordId,
|
|
178
|
+
RunGroupRecordId,
|
|
179
|
+
SessionContextRecordId,
|
|
180
|
+
DecorationBufferRecordId
|
|
181
|
+
]);
|
|
182
|
+
/** Constructors for record identities; the only place identities are spelled. */
|
|
183
|
+
const transcriptRecordId = {
|
|
184
|
+
user: (commandId) => `user:${commandId}`,
|
|
185
|
+
assistant: (inferenceId) => `assistant:${inferenceId}`,
|
|
186
|
+
import: (eventId) => `import:${eventId}`,
|
|
187
|
+
compaction: (compactionId) => `compaction:${compactionId}`,
|
|
188
|
+
tool: (toolCallId) => `tool:${toolCallId}`,
|
|
189
|
+
runGroup: (rootRunId) => `run:${rootRunId}`,
|
|
190
|
+
session: "session",
|
|
191
|
+
/**
|
|
192
|
+
* Keys longer than 256 characters (caller-owned idempotency keys) are hashed to stay bounded;
|
|
193
|
+
* keys starting with `#` are hashed too, so a literal key never collides with a hashed one.
|
|
194
|
+
*/
|
|
195
|
+
decorationBuffer: (association, key) => `decorations:${association}:${key.length > 0 && key.length <= 256 && !key.startsWith("#") ? key : `#sha256:${sha256Hex(key)}`}`
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* History position of a top-level record: the event that placed it and an ordinal among records
|
|
199
|
+
* placed by that same event. Assigned once and never moved.
|
|
200
|
+
*/
|
|
201
|
+
const TranscriptPosition = Schema.Struct({
|
|
202
|
+
anchorSeq: SequenceNumber,
|
|
203
|
+
ordinal: NonNegativeInt
|
|
204
|
+
});
|
|
205
|
+
/**
|
|
206
|
+
* Adapter-owned identity of one physical event log. A wiped log gets a new incarnation, which
|
|
207
|
+
* invalidates every cursor, chunk and body reference minted against the old one.
|
|
208
|
+
*/
|
|
209
|
+
const TranscriptLogIncarnation = Schema.NonEmptyString.pipe(Schema.brand("TranscriptLogIncarnation"));
|
|
210
|
+
/**
|
|
211
|
+
* Identity of one transcript interpretation: a hash of the EDA semantic revision and the host's
|
|
212
|
+
* canonical mapping data. Two sessions with equal versions interpret the same log identically.
|
|
213
|
+
*/
|
|
214
|
+
const TranscriptVersion = Schema.String.check(Schema.isPattern(/^[0-9a-f]{64}$/)).pipe(Schema.brand("TranscriptVersion"));
|
|
215
|
+
/**
|
|
216
|
+
* Paging cursor: a point in the total order `(anchorSeq, ordinal, recordId)`.
|
|
217
|
+
*
|
|
218
|
+
* A cursor is meaningful only for the incarnation and version that minted it; readers reject
|
|
219
|
+
* any other pairing rather than guess an equivalent point.
|
|
220
|
+
*/
|
|
221
|
+
const TranscriptCursor = Schema.Struct({
|
|
222
|
+
incarnation: TranscriptLogIncarnation,
|
|
223
|
+
version: TranscriptVersion,
|
|
224
|
+
anchorSeq: SequenceNumber,
|
|
225
|
+
ordinal: NonNegativeInt,
|
|
226
|
+
recordId: Schema.NonEmptyString
|
|
227
|
+
});
|
|
228
|
+
/** Total transcript order over top-level records. */
|
|
229
|
+
const TranscriptOrder = Order.Struct({
|
|
230
|
+
anchorSeq: Order.Number,
|
|
231
|
+
ordinal: Order.Number,
|
|
232
|
+
recordId: Order.String
|
|
233
|
+
});
|
|
234
|
+
/** A JSON path into an event payload; the empty path is the payload itself. */
|
|
235
|
+
const TranscriptFieldPath = Schema.Array(Schema.Union([Schema.String, NonNegativeInt]));
|
|
236
|
+
/** The immutable log location a body was read from. */
|
|
237
|
+
const TranscriptBodySource = Schema.Struct({
|
|
238
|
+
seq: SequenceNumber,
|
|
239
|
+
path: TranscriptFieldPath
|
|
240
|
+
});
|
|
241
|
+
/**
|
|
242
|
+
* Largest body a stored record holds inline, in canonical JSON bytes. Larger bodies are stored
|
|
243
|
+
* as references, which keeps every stored row far below a Durable Object's 2 MB value limit no
|
|
244
|
+
* matter how large an event payload is.
|
|
245
|
+
*/
|
|
246
|
+
const transcriptStoredInlineBodyLimit = 65536;
|
|
247
|
+
/**
|
|
248
|
+
* A potentially large body (tool parameters and results).
|
|
249
|
+
*
|
|
250
|
+
* Stored records hold a body inline up to `transcriptStoredInlineBodyLimit` and as a reference
|
|
251
|
+
* above it; a window read may also replace a smaller inline body with a reference. A reference
|
|
252
|
+
* points at the body's immutable source in the append-only log, so it stays resolvable after
|
|
253
|
+
* projection rows are rebuilt or deleted. The host authorizes reference resolution.
|
|
254
|
+
*/
|
|
255
|
+
const TranscriptBody = Schema.TaggedUnion({
|
|
256
|
+
Inline: {
|
|
257
|
+
value: Schema.Json,
|
|
258
|
+
source: TranscriptBodySource
|
|
259
|
+
},
|
|
260
|
+
Ref: {
|
|
261
|
+
source: TranscriptBodySource,
|
|
262
|
+
byteLength: NonNegativeInt
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
/** Host-defined decoration name, as written by a mapping operation. */
|
|
266
|
+
const TranscriptDecorationKey = Schema.String.check(Schema.isPattern(/^[A-Za-z][A-Za-z0-9_.-]{0,63}$/));
|
|
267
|
+
/** Id of a decoration list entry that is keyed by its ordinal. */
|
|
268
|
+
const TranscriptDecorationEntryId = Schema.NonEmptyString.check(Schema.isMaxLength(256));
|
|
269
|
+
/** Key of one decoration list entry: an entry id or a host-assigned ordinal. */
|
|
270
|
+
const TranscriptDecorationEntryKey = Schema.Union([Schema.String.check(Schema.isMaxLength(256)), NonNegativeInt]);
|
|
271
|
+
/**
|
|
272
|
+
* A host decoration value: a JSON scalar/object, or a keyed list whose entries are replaced by id
|
|
273
|
+
* or ordinal. EDA treats the JSON as opaque; only the host gives it meaning.
|
|
274
|
+
*/
|
|
275
|
+
const TranscriptDecoration = Schema.TaggedUnion({
|
|
276
|
+
Value: { value: Schema.Json },
|
|
277
|
+
List: { entries: Schema.Array(Schema.Struct({
|
|
278
|
+
key: TranscriptDecorationEntryKey,
|
|
279
|
+
value: Schema.Json,
|
|
280
|
+
/** The entry's id when the list is keyed by id or ordinal (the key is then the ordinal). */
|
|
281
|
+
id: Schema.optionalKey(TranscriptDecorationEntryId)
|
|
282
|
+
})) }
|
|
283
|
+
});
|
|
284
|
+
/** Decorations of one record, keyed by host decoration name. */
|
|
285
|
+
const TranscriptDecorations = Schema.Record(TranscriptDecorationKey, TranscriptDecoration);
|
|
286
|
+
/** Host classification of a user record, such as an authenticated subagent notice. */
|
|
287
|
+
const TranscriptClassification = TranscriptDecorationKey;
|
|
288
|
+
const LifecycleTimingFields = {
|
|
289
|
+
startedAtMs: Schema.optionalKey(UnixEpochMillis),
|
|
290
|
+
terminalAtMs: Schema.optionalKey(UnixEpochMillis),
|
|
291
|
+
durationMs: Schema.optionalKey(NonNegativeInt)
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Where a user submission is in its lifecycle.
|
|
295
|
+
*
|
|
296
|
+
* Only `Consumed` records are rendered in history. `Pending`, `Paused`, `Promoted` and `Steering`
|
|
297
|
+
* are waiting to be read by the agent and are served as dependencies. `Cancelled` records stay
|
|
298
|
+
* stored so their aliases resolve but are never rendered.
|
|
299
|
+
*/
|
|
300
|
+
const TranscriptUserState = Schema.TaggedUnion({
|
|
301
|
+
/** Admitted and queued for a later run. */
|
|
302
|
+
Pending: {},
|
|
303
|
+
/** Queued, but held because the user interrupted the run that would have read it. */
|
|
304
|
+
Paused: { byCommandId: CommandId },
|
|
305
|
+
/** Moved from the queue to steer the active run. */
|
|
306
|
+
Promoted: {},
|
|
307
|
+
/** Waiting to steer the active run. */
|
|
308
|
+
Steering: {},
|
|
309
|
+
/** Read by the agent; the record's position is the consumption point. */
|
|
310
|
+
Consumed: {
|
|
311
|
+
turnId: Schema.optionalKey(TurnId),
|
|
312
|
+
runId: Schema.optionalKey(RunId)
|
|
313
|
+
},
|
|
314
|
+
/** Withdrawn before the agent read it, or withdrawn from the model context. */
|
|
315
|
+
Cancelled: {
|
|
316
|
+
reason: Schema.String,
|
|
317
|
+
byCommandId: Schema.optionalKey(CommandId)
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
const UserBodyFields = {
|
|
321
|
+
commandId: CommandId,
|
|
322
|
+
/** Every message id that has carried this submission; a replacement id joins as an alias. */
|
|
323
|
+
messageIds: Schema.Array(MessageId),
|
|
324
|
+
idempotencyKey: Schema.optionalKey(CommandIdempotencyKey),
|
|
325
|
+
disposition: Schema.optionalKey(SubmitMessageDisposition),
|
|
326
|
+
/**
|
|
327
|
+
* JSON projection of the content: file bytes become data URLs, URLs become strings. Content is
|
|
328
|
+
* inline; file data belongs in host attachments rather than message content.
|
|
329
|
+
*/
|
|
330
|
+
content: JsonUserMessageContent,
|
|
331
|
+
state: TranscriptUserState,
|
|
332
|
+
/** Present when the submission arrived as steering for a specific run. */
|
|
333
|
+
steering: Schema.optionalKey(Schema.Struct({ runId: RunId })),
|
|
334
|
+
classification: Schema.optionalKey(TranscriptClassification),
|
|
335
|
+
decorations: TranscriptDecorations,
|
|
336
|
+
/** The first event that named this submission; pending users are served in this order. */
|
|
337
|
+
submittedSeq: SequenceNumber,
|
|
338
|
+
submittedAtMs: UnixEpochMillis,
|
|
339
|
+
/** Present exactly when `position` is: the record was consumed at some point. */
|
|
340
|
+
consumedAtMs: Schema.optionalKey(UnixEpochMillis)
|
|
341
|
+
};
|
|
342
|
+
/** Lifecycle of one assistant record. Imports are `Completed` from the start. */
|
|
343
|
+
const TranscriptAssistantLifecycle = Schema.TaggedUnion({
|
|
344
|
+
Streaming: {},
|
|
345
|
+
Completed: {
|
|
346
|
+
finishReason: Schema.optionalKey(Schema.String),
|
|
347
|
+
usage: Schema.optionalKey(UsagePayload)
|
|
348
|
+
},
|
|
349
|
+
Failed: { error: FailurePayload }
|
|
350
|
+
});
|
|
351
|
+
/**
|
|
352
|
+
* One ordered part of assistant output. Tool calls are references; their bodies live on the tool
|
|
353
|
+
* dependency. Part types this release does not render are kept as `Unknown` so ordering survives.
|
|
354
|
+
*/
|
|
355
|
+
const KnownAssistantPart = Schema.TaggedUnion({
|
|
356
|
+
Text: { text: Schema.String },
|
|
357
|
+
Reasoning: { text: Schema.String },
|
|
358
|
+
ToolCall: {
|
|
359
|
+
providerPartId: ProviderPartId,
|
|
360
|
+
toolName: ToolName,
|
|
361
|
+
providerExecuted: Schema.Boolean,
|
|
362
|
+
/** The framework tool record, once the call has been sealed into one. */
|
|
363
|
+
toolId: Schema.optionalKey(ToolRecordId)
|
|
364
|
+
},
|
|
365
|
+
/** Result of a provider-executed tool, which has no framework tool record. */
|
|
366
|
+
ToolResult: {
|
|
367
|
+
providerPartId: ProviderPartId,
|
|
368
|
+
toolName: ToolName,
|
|
369
|
+
isFailure: Schema.Boolean,
|
|
370
|
+
result: TranscriptBody
|
|
371
|
+
},
|
|
372
|
+
Unknown: { partType: Schema.String }
|
|
373
|
+
});
|
|
374
|
+
/** A part whose tag or shape this reader does not know keeps its place as `Unknown`. */
|
|
375
|
+
const knownAssistantPartTags = /* @__PURE__ */ new Set([
|
|
376
|
+
"Text",
|
|
377
|
+
"Reasoning",
|
|
378
|
+
"ToolCall",
|
|
379
|
+
"ToolResult",
|
|
380
|
+
"Unknown"
|
|
381
|
+
]);
|
|
382
|
+
const UnrecognizedAssistantPart = Schema.Struct({ _tag: Schema.String.check(Schema.makeFilter((tag) => !knownAssistantPartTags.has(tag) || "a known part tag must decode as that part")) }).pipe(Schema.decodeTo(Schema.toType(KnownAssistantPart.cases.Unknown), {
|
|
383
|
+
decode: SchemaGetter.transform((part) => ({
|
|
384
|
+
_tag: "Unknown",
|
|
385
|
+
partType: part._tag
|
|
386
|
+
})),
|
|
387
|
+
encode: SchemaGetter.transform((part) => ({ _tag: part.partType }))
|
|
388
|
+
}));
|
|
389
|
+
/**
|
|
390
|
+
* One ordered part of assistant output. A part tag this reader does not know decodes as
|
|
391
|
+
* `Unknown`, keeping its place; a malformed part with a known tag is a decode failure.
|
|
392
|
+
*/
|
|
393
|
+
const TranscriptAssistantPart = Schema.Union([KnownAssistantPart, UnrecognizedAssistantPart]);
|
|
394
|
+
const AssistantBodyFields = {
|
|
395
|
+
source: Schema.Literals(["inference", "import"]),
|
|
396
|
+
inferenceId: InferenceId,
|
|
397
|
+
runId: RunId,
|
|
398
|
+
turnId: TurnId,
|
|
399
|
+
/** Run group of the producing run; absent for imports and for runs the log never started. */
|
|
400
|
+
runGroupId: Schema.optionalKey(RunGroupRecordId),
|
|
401
|
+
messageId: Schema.optionalKey(MessageId),
|
|
402
|
+
lifecycle: TranscriptAssistantLifecycle,
|
|
403
|
+
parts: Schema.Array(TranscriptAssistantPart),
|
|
404
|
+
/** Present when the visible parts were preserved from an interrupted or failed inference. */
|
|
405
|
+
partial: Schema.optionalKey(Schema.Struct({ reason: Schema.String })),
|
|
406
|
+
...LifecycleTimingFields
|
|
407
|
+
};
|
|
408
|
+
const CompactionBodyFields = {
|
|
409
|
+
compactionId: CompactionId,
|
|
410
|
+
/** Reference to the summary artifact; the transcript never copies summary text. */
|
|
411
|
+
summaryId: SummaryId,
|
|
412
|
+
contextVersion: ContextVersion,
|
|
413
|
+
retainedFromContextSeq: SequenceNumber,
|
|
414
|
+
createdAtMs: UnixEpochMillis,
|
|
415
|
+
/** Set by the first `CompactionCompleted`; later completions add no token usage. */
|
|
416
|
+
completedAtMs: Schema.optionalKey(UnixEpochMillis)
|
|
417
|
+
};
|
|
418
|
+
/** Lifecycle of one framework tool call. The last terminal event wins. */
|
|
419
|
+
const TranscriptToolLifecycle = Schema.TaggedUnion({
|
|
420
|
+
Created: {},
|
|
421
|
+
Running: {},
|
|
422
|
+
Completed: { result: TranscriptBody },
|
|
423
|
+
Failed: { error: FailurePayload },
|
|
424
|
+
/** The call was not executable; terminal from creation. */
|
|
425
|
+
Rejected: {
|
|
426
|
+
reason: ToolCallRejectionReason,
|
|
427
|
+
message: Schema.String,
|
|
428
|
+
modelFeedback: Schema.String
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
const ToolBodyFields = {
|
|
432
|
+
toolCallId: ToolCallId,
|
|
433
|
+
assistantId: InferenceAssistantRecordId,
|
|
434
|
+
providerPartId: ProviderPartId,
|
|
435
|
+
toolName: ToolName,
|
|
436
|
+
providerExecuted: Schema.Boolean,
|
|
437
|
+
/** Absent for a rejected call: a rejection records only the model-facing feedback. */
|
|
438
|
+
params: Schema.optionalKey(TranscriptBody),
|
|
439
|
+
lifecycle: TranscriptToolLifecycle,
|
|
440
|
+
createdAtMs: UnixEpochMillis,
|
|
441
|
+
...LifecycleTimingFields
|
|
442
|
+
};
|
|
443
|
+
/** Outcome of one run inside a run group. */
|
|
444
|
+
const TranscriptRunOutcome = Schema.TaggedUnion({
|
|
445
|
+
Running: {},
|
|
446
|
+
Completed: {},
|
|
447
|
+
Failed: { error: FailurePayload },
|
|
448
|
+
/** Stopped by the user or by a runtime restart; a continuation may follow. */
|
|
449
|
+
Interrupted: { reason: Schema.String }
|
|
450
|
+
});
|
|
451
|
+
/** One run in a run group, in start order. */
|
|
452
|
+
const TranscriptRunMember = Schema.Struct({
|
|
453
|
+
runId: RunId,
|
|
454
|
+
commandIds: Schema.Array(CommandId),
|
|
455
|
+
modelSelection: ModelSelectionPayload,
|
|
456
|
+
outcome: TranscriptRunOutcome,
|
|
457
|
+
/** The interrupted run this one continues, as recorded by startup recovery. */
|
|
458
|
+
continuationOf: Schema.optionalKey(RunId),
|
|
459
|
+
...LifecycleTimingFields
|
|
460
|
+
});
|
|
461
|
+
const RunGroupBodyFields = {
|
|
462
|
+
rootRunId: RunId,
|
|
463
|
+
/** Every run of the chain in start order; the last member's outcome is the group's status. */
|
|
464
|
+
runs: Schema.NonEmptyArray(TranscriptRunMember)
|
|
465
|
+
};
|
|
466
|
+
const SessionContextBodyFields = {
|
|
467
|
+
/** The run currently executing, if any. */
|
|
468
|
+
activeRunId: Schema.optionalKey(RunId),
|
|
469
|
+
/** The compaction currently in progress, if any. */
|
|
470
|
+
activeCompactionId: Schema.optionalKey(CompactionId),
|
|
471
|
+
/** Session execution policy: the first configured or started model, as the runtime reads it. */
|
|
472
|
+
modelSelection: Schema.optionalKey(ModelSelectionPayload),
|
|
473
|
+
/** Model of the most recently started run. */
|
|
474
|
+
lastRunModelSelection: Schema.optionalKey(ModelSelectionPayload),
|
|
475
|
+
tokenUsage: TokenConsumptionState,
|
|
476
|
+
decorations: TranscriptDecorations
|
|
477
|
+
};
|
|
478
|
+
/** One decoration operation parked until its target exists, in arrival order. */
|
|
479
|
+
const TranscriptBufferedDecoration = Schema.Struct({
|
|
480
|
+
seq: SequenceNumber,
|
|
481
|
+
mapping: TranscriptDecorationKey,
|
|
482
|
+
/** Operation index within the mapping. */
|
|
483
|
+
operation: NonNegativeInt,
|
|
484
|
+
value: Schema.Json,
|
|
485
|
+
entryKey: Schema.optionalKey(TranscriptDecorationEntryKey),
|
|
486
|
+
/** The entry's id, for a list keyed by id or ordinal (`entryKey` then holds the ordinal). */
|
|
487
|
+
entryId: Schema.optionalKey(TranscriptDecorationEntryId)
|
|
488
|
+
});
|
|
489
|
+
/**
|
|
490
|
+
* Operations one decoration buffer keeps. Later operations for the same key are dropped, as are
|
|
491
|
+
* operations beyond the mapping bounds' decoration byte budget.
|
|
492
|
+
*/
|
|
493
|
+
const transcriptDecorationBufferLimit = 32;
|
|
494
|
+
const DecorationBufferBodyFields = { operations: Schema.Array(TranscriptBufferedDecoration).check(Schema.isMaxLength(32)) };
|
|
495
|
+
const commonFields = (kind, id) => ({
|
|
496
|
+
kind: Schema.tag(kind),
|
|
497
|
+
id,
|
|
498
|
+
/** The last event that contributed to this record. */
|
|
499
|
+
updatedSeq: SequenceNumber
|
|
500
|
+
});
|
|
501
|
+
/**
|
|
502
|
+
* User submission, top-level once consumed; waiting states are dependencies.
|
|
503
|
+
*
|
|
504
|
+
* A position is assigned once, when the agent first reads the submission, so a consumed record
|
|
505
|
+
* always has one and a waiting record never does. A cancelled record keeps the position it was
|
|
506
|
+
* consumed at, if any, and is never rendered.
|
|
507
|
+
*/
|
|
508
|
+
const TranscriptUserRecord = Schema.Struct({
|
|
509
|
+
...commonFields("user", UserRecordId),
|
|
510
|
+
position: Schema.optionalKey(TranscriptPosition),
|
|
511
|
+
...UserBodyFields
|
|
512
|
+
}).check(Schema.makeFilter((user) => user.position === void 0 === (user.consumedAtMs === void 0) || "position and consumedAtMs are assigned together"), Schema.makeFilter((user) => user.id === `user:${user.commandId}` || "a user record id names its command"), Schema.makeFilter((user) => {
|
|
513
|
+
switch (user.state._tag) {
|
|
514
|
+
case "Consumed": return user.position !== void 0 || "a consumed user record has a position";
|
|
515
|
+
case "Cancelled": return true;
|
|
516
|
+
default: return user.position === void 0 || "a waiting user record has no position";
|
|
517
|
+
}
|
|
518
|
+
}));
|
|
519
|
+
/** Assistant output of one inference or one import; top-level. */
|
|
520
|
+
const TranscriptAssistantRecord = Schema.Struct({
|
|
521
|
+
...commonFields("assistant", AssistantRecordId),
|
|
522
|
+
position: TranscriptPosition,
|
|
523
|
+
...AssistantBodyFields
|
|
524
|
+
}).check(Schema.makeFilter((assistant) => (assistant.source === "import" ? assistant.id.startsWith("import:") : assistant.id === `assistant:${assistant.inferenceId}`) || "an assistant record id matches its source and inference"));
|
|
525
|
+
/** Compaction marker; top-level. */
|
|
526
|
+
const TranscriptCompactionRecord = Schema.Struct({
|
|
527
|
+
...commonFields("compaction", CompactionRecordId),
|
|
528
|
+
position: TranscriptPosition,
|
|
529
|
+
...CompactionBodyFields
|
|
530
|
+
}).check(Schema.makeFilter((compaction) => compaction.id === `compaction:${compaction.compactionId}` || "a compaction record id names its compaction"));
|
|
531
|
+
/** Framework tool call; a dependency of its assistant record. */
|
|
532
|
+
const TranscriptToolRecord = Schema.Struct({
|
|
533
|
+
...commonFields("tool", ToolRecordId),
|
|
534
|
+
...ToolBodyFields
|
|
535
|
+
}).check(Schema.makeFilter((tool) => tool.id === `tool:${tool.toolCallId}` || "a tool record id names its tool call"));
|
|
536
|
+
/** Run and its recovery continuations; a dependency of the records it produced. */
|
|
537
|
+
const TranscriptRunGroupRecord = Schema.Struct({
|
|
538
|
+
...commonFields("runGroup", RunGroupRecordId),
|
|
539
|
+
...RunGroupBodyFields
|
|
540
|
+
}).check(Schema.makeFilter((group) => group.id === `run:${group.rootRunId}` && group.runs[0].runId === group.rootRunId || "a run group is named by, and starts with, its root run"));
|
|
541
|
+
/** A run group's status: the outcome of its latest run. */
|
|
542
|
+
const runGroupStatus = (group) => (group.runs[group.runs.length - 1] ?? group.runs[0]).outcome;
|
|
543
|
+
/** Session activity, model selection and token totals; a singleton dependency. */
|
|
544
|
+
const TranscriptSessionContextRecord = Schema.Struct({
|
|
545
|
+
...commonFields("sessionContext", SessionContextRecordId),
|
|
546
|
+
...SessionContextBodyFields
|
|
547
|
+
});
|
|
548
|
+
/** Internal decoration holding record; stored, never served. */
|
|
549
|
+
const TranscriptDecorationBufferRecord = Schema.Struct({
|
|
550
|
+
...commonFields("decorationBuffer", DecorationBufferRecordId),
|
|
551
|
+
...DecorationBufferBodyFields
|
|
552
|
+
});
|
|
553
|
+
/** Every record kind this EDA release stores. */
|
|
554
|
+
const TranscriptRecord = Schema.Union([
|
|
555
|
+
TranscriptUserRecord,
|
|
556
|
+
TranscriptAssistantRecord,
|
|
557
|
+
TranscriptCompactionRecord,
|
|
558
|
+
TranscriptToolRecord,
|
|
559
|
+
TranscriptRunGroupRecord,
|
|
560
|
+
TranscriptSessionContextRecord,
|
|
561
|
+
TranscriptDecorationBufferRecord
|
|
562
|
+
]);
|
|
563
|
+
/**
|
|
564
|
+
* A record this reader cannot interpret: a newer kind, or a body written by a newer EDA.
|
|
565
|
+
*
|
|
566
|
+
* It keeps the identity, position and revision so a client can hold its place and render a safe
|
|
567
|
+
* placeholder. Storage readers do not produce it: an undecodable stored row makes a read
|
|
568
|
+
* unavailable instead of wrong.
|
|
569
|
+
*/
|
|
570
|
+
const TranscriptUnknownRecord = Schema.Struct({
|
|
571
|
+
kind: Schema.tag("unknown"),
|
|
572
|
+
originalKind: Schema.NonEmptyString,
|
|
573
|
+
/** The envelope format it arrived in, kept so it re-encodes exactly as it was read. */
|
|
574
|
+
format: Schema.Int.check(Schema.isGreaterThanOrEqualTo(1)),
|
|
575
|
+
/** The uninterpreted body, kept so a relaying reader forwards it unchanged. */
|
|
576
|
+
body: Schema.Record(Schema.String, Schema.Unknown),
|
|
577
|
+
id: Schema.NonEmptyString,
|
|
578
|
+
updatedSeq: SequenceNumber,
|
|
579
|
+
position: Schema.optionalKey(TranscriptPosition)
|
|
580
|
+
});
|
|
581
|
+
/** Top-level kinds count toward a window's record limit and carry a position. */
|
|
582
|
+
const isTopLevelTranscriptRecord = (record) => record.kind === "assistant" || record.kind === "compaction" || record.kind === "user" && record.state._tag === "Consumed" && record.position !== void 0;
|
|
583
|
+
/** A user record still waiting for the agent; served as a dependency, never twice. */
|
|
584
|
+
const isPendingTranscriptUserRecord = (record) => record.kind === "user" && (record.state._tag === "Pending" || record.state._tag === "Paused" || record.state._tag === "Promoted" || record.state._tag === "Steering");
|
|
585
|
+
/**
|
|
586
|
+
* Current stored-row envelope format. Readers accept every format up to this one.
|
|
587
|
+
*
|
|
588
|
+
* Bump it whenever a known kind gains a value an older reader of this format could not decode
|
|
589
|
+
* (a new lifecycle or state tag, a new required field). Older readers then show such rows as
|
|
590
|
+
* `unknown` records; without a bump, a strict older reader would reject the whole window.
|
|
591
|
+
*/
|
|
592
|
+
const transcriptRecordEnvelopeFormat = 1;
|
|
593
|
+
/**
|
|
594
|
+
* Backward-readable row and wire shape for one record.
|
|
595
|
+
*
|
|
596
|
+
* Identity, kind, revision and position sit outside the kind-specific `body` so any reader can
|
|
597
|
+
* place a record it cannot interpret.
|
|
598
|
+
*/
|
|
599
|
+
const TranscriptRecordEnvelope = Schema.Struct({
|
|
600
|
+
format: Schema.Int.check(Schema.isGreaterThanOrEqualTo(1)),
|
|
601
|
+
kind: Schema.NonEmptyString,
|
|
602
|
+
id: Schema.NonEmptyString,
|
|
603
|
+
updatedSeq: SequenceNumber,
|
|
604
|
+
position: Schema.optionalKey(TranscriptPosition),
|
|
605
|
+
body: Schema.Record(Schema.String, Schema.Unknown)
|
|
606
|
+
});
|
|
607
|
+
const envelopeToFlat = (envelope) => {
|
|
608
|
+
const { kind, id, updatedSeq, position, body } = envelope;
|
|
609
|
+
const { kind: _kind, id: _id, updatedSeq: _updatedSeq, position: _position, ...fields } = body;
|
|
610
|
+
return {
|
|
611
|
+
...fields,
|
|
612
|
+
kind,
|
|
613
|
+
id,
|
|
614
|
+
updatedSeq,
|
|
615
|
+
...position === void 0 ? {} : { position }
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
const flatToEnvelope = (record) => {
|
|
619
|
+
const { kind, id, updatedSeq, position, ...body } = record;
|
|
620
|
+
return Schema.decodeUnknownSync(TranscriptRecordEnvelope)({
|
|
621
|
+
format: 1,
|
|
622
|
+
kind,
|
|
623
|
+
id,
|
|
624
|
+
updatedSeq,
|
|
625
|
+
...position === void 0 ? {} : { position },
|
|
626
|
+
body
|
|
627
|
+
});
|
|
628
|
+
};
|
|
629
|
+
const FlatRecordFields = Schema.Record(Schema.String, Schema.Unknown);
|
|
630
|
+
/** A known record stored or sent as its envelope. Decoding fails for anything this reader cannot interpret. */
|
|
631
|
+
const TranscriptRecordFromEnvelope = TranscriptRecordEnvelope.check(Schema.makeFilter((envelope) => envelope.format <= 1 || `unsupported transcript record envelope format ${envelope.format}`)).pipe(Schema.decodeTo(FlatRecordFields, {
|
|
632
|
+
decode: SchemaGetter.transform(envelopeToFlat),
|
|
633
|
+
encode: SchemaGetter.transform(flatToEnvelope)
|
|
634
|
+
}), Schema.decodeTo(TranscriptRecord, SchemaTransformation.passthroughSupertype()));
|
|
635
|
+
const knownRecordKinds = /* @__PURE__ */ new Set([
|
|
636
|
+
"user",
|
|
637
|
+
"assistant",
|
|
638
|
+
"compaction",
|
|
639
|
+
"tool",
|
|
640
|
+
"runGroup",
|
|
641
|
+
"sessionContext",
|
|
642
|
+
"decorationBuffer"
|
|
643
|
+
]);
|
|
644
|
+
/**
|
|
645
|
+
* Only a kind this reader does not know, or a newer envelope format, becomes `unknown`; a
|
|
646
|
+
* malformed record of a known kind in a known format is a decode failure, never a placeholder.
|
|
647
|
+
*/
|
|
648
|
+
const TranscriptUnknownRecordFromEnvelope = TranscriptRecordEnvelope.check(Schema.makeFilter((envelope) => !knownRecordKinds.has(envelope.kind) || envelope.format > 1 || `a ${envelope.kind} record in format ${envelope.format} must decode as that kind`)).pipe(Schema.decodeTo(TranscriptUnknownRecord, {
|
|
649
|
+
decode: SchemaGetter.transform((envelope) => ({
|
|
650
|
+
kind: "unknown",
|
|
651
|
+
originalKind: envelope.kind,
|
|
652
|
+
format: envelope.format,
|
|
653
|
+
body: envelope.body,
|
|
654
|
+
id: envelope.id,
|
|
655
|
+
updatedSeq: envelope.updatedSeq,
|
|
656
|
+
...envelope.position === void 0 ? {} : { position: envelope.position }
|
|
657
|
+
})),
|
|
658
|
+
encode: SchemaGetter.transform((record) => Schema.decodeUnknownSync(TranscriptRecordEnvelope)({
|
|
659
|
+
format: record.format,
|
|
660
|
+
kind: record.originalKind,
|
|
661
|
+
id: record.id,
|
|
662
|
+
updatedSeq: record.updatedSeq,
|
|
663
|
+
...record.position === void 0 ? {} : { position: record.position },
|
|
664
|
+
body: record.body
|
|
665
|
+
}))
|
|
666
|
+
}));
|
|
667
|
+
/**
|
|
668
|
+
* Wire codec for one record: a known record when this reader can interpret it, otherwise an
|
|
669
|
+
* explicit unknown record that keeps its id and position.
|
|
670
|
+
*/
|
|
671
|
+
const TranscriptRecordViewFromEnvelope = Schema.Union([TranscriptRecordFromEnvelope, TranscriptUnknownRecordFromEnvelope]);
|
|
672
|
+
//#endregion
|
|
673
|
+
export { TranscriptRecordFromEnvelope as A, TranscriptUserRecord as B, TranscriptDecorations as C, TranscriptPosition as D, TranscriptOrder as E, TranscriptRunOutcome as F, isTopLevelTranscriptRecord as G, TranscriptVersion as H, TranscriptSessionContextRecord as I, transcriptRecordEnvelopeFormat as J, runGroupStatus as K, TranscriptToolLifecycle as L, TranscriptRecordViewFromEnvelope as M, TranscriptRunGroupRecord as N, TranscriptRecord as O, TranscriptRunMember as P, TranscriptToolRecord as R, TranscriptDecorationKey as S, TranscriptLogIncarnation as T, UserRecordId as U, TranscriptUserState as V, isPendingTranscriptUserRecord as W, transcriptStoredInlineBodyLimit as X, transcriptRecordId as Y, sha256Hex as Z, TranscriptCursor as _, InferenceAssistantRecordId as a, TranscriptDecorationEntryId as b, ToolRecordId as c, TranscriptAssistantRecord as d, TranscriptBody as f, TranscriptCompactionRecord as g, TranscriptClassification as h, ImportAssistantRecordId as i, TranscriptRecordId as j, TranscriptRecordEnvelope as k, TranscriptAssistantLifecycle as l, TranscriptBufferedDecoration as m, CompactionRecordId as n, RunGroupRecordId as o, TranscriptBodySource as p, transcriptDecorationBufferLimit as q, DecorationBufferRecordId as r, SessionContextRecordId as s, AssistantRecordId as t, TranscriptAssistantPart as u, TranscriptDecoration as v, TranscriptFieldPath as w, TranscriptDecorationEntryKey as x, TranscriptDecorationBufferRecord as y, TranscriptUnknownRecord as z };
|
|
674
|
+
|
|
675
|
+
//# sourceMappingURL=records-DWKEjuqb.js.map
|