stitchkit 0.110.1 → 0.110.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.
Files changed (81) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/agent-runtime/archive-spill.d.ts +61 -0
  3. package/dist/agent-runtime/archive-spill.d.ts.map +1 -0
  4. package/dist/agent-runtime/branch-contract.d.ts +102 -0
  5. package/dist/agent-runtime/branch-contract.d.ts.map +1 -0
  6. package/dist/agent-runtime/branch-events.d.ts +18 -0
  7. package/dist/agent-runtime/branch-events.d.ts.map +1 -0
  8. package/dist/agent-runtime/branch-identities.d.ts +20 -0
  9. package/dist/agent-runtime/branch-identities.d.ts.map +1 -0
  10. package/dist/agent-runtime/branch-messages.d.ts +32 -0
  11. package/dist/agent-runtime/branch-messages.d.ts.map +1 -0
  12. package/dist/agent-runtime/branch-observations.d.ts +104 -0
  13. package/dist/agent-runtime/branch-observations.d.ts.map +1 -0
  14. package/dist/agent-runtime/branch-provider.d.ts +130 -0
  15. package/dist/agent-runtime/branch-provider.d.ts.map +1 -0
  16. package/dist/agent-runtime/branch-replay.d.ts +426 -0
  17. package/dist/agent-runtime/branch-replay.d.ts.map +1 -0
  18. package/dist/agent-runtime/branch-source.d.ts +16 -0
  19. package/dist/agent-runtime/branch-source.d.ts.map +1 -0
  20. package/dist/agent-runtime/branch-transitions.d.ts +6 -0
  21. package/dist/agent-runtime/branch-transitions.d.ts.map +1 -0
  22. package/dist/agent-runtime/sqlite-history.d.ts.map +1 -1
  23. package/dist/agent-runtime/sqlite-purge.d.ts.map +1 -1
  24. package/dist/agent-runtime/store-archive.d.ts +1 -0
  25. package/dist/agent-runtime/store-archive.d.ts.map +1 -1
  26. package/dist/agent-runtime/store-branch.d.ts +5 -0
  27. package/dist/agent-runtime/store-branch.d.ts.map +1 -0
  28. package/dist/agent-runtime/store-conformance-branch.d.ts +4 -0
  29. package/dist/agent-runtime/store-conformance-branch.d.ts.map +1 -0
  30. package/dist/agent-runtime/store-conformance-support.d.ts +5 -5
  31. package/dist/agent-runtime/store-conformance.d.ts.map +1 -1
  32. package/dist/agent-runtime/store-create.d.ts +1 -1
  33. package/dist/agent-runtime/store-create.d.ts.map +1 -1
  34. package/dist/agent-runtime/store-driver-contract.d.ts +6 -0
  35. package/dist/agent-runtime/store-driver-contract.d.ts.map +1 -1
  36. package/dist/agent-runtime/store-events.d.ts +90 -0
  37. package/dist/agent-runtime/store-events.d.ts.map +1 -1
  38. package/dist/agent-runtime/store-memory-archive.d.ts +8 -0
  39. package/dist/agent-runtime/store-memory-archive.d.ts.map +1 -0
  40. package/dist/agent-runtime/store-memory-events.d.ts +7 -0
  41. package/dist/agent-runtime/store-memory-events.d.ts.map +1 -0
  42. package/dist/agent-runtime/store-memory.d.ts +1 -1
  43. package/dist/agent-runtime/store-memory.d.ts.map +1 -1
  44. package/dist/agent-runtime/store-purge.d.ts +2 -0
  45. package/dist/agent-runtime/store-purge.d.ts.map +1 -1
  46. package/dist/agent-runtime/store-reduce-run.d.ts +2 -2
  47. package/dist/agent-runtime/store-reduce-run.d.ts.map +1 -1
  48. package/dist/agent-runtime/store-reduce-shared.d.ts +1 -0
  49. package/dist/agent-runtime/store-reduce-shared.d.ts.map +1 -1
  50. package/dist/agent-runtime/store-reducer.d.ts +2 -2
  51. package/dist/agent-runtime/store-reducer.d.ts.map +1 -1
  52. package/dist/agent-runtime/store.d.ts +3 -0
  53. package/dist/agent-runtime/store.d.ts.map +1 -1
  54. package/dist/durability/events.d.ts +4 -0
  55. package/dist/durability/events.d.ts.map +1 -1
  56. package/dist/entrypoints/agent-runtime/coding-tools.js +1 -2
  57. package/dist/entrypoints/agent-runtime/harness.js +4 -3
  58. package/dist/entrypoints/agent-runtime/sandbox.js +3 -5
  59. package/dist/entrypoints/agent-runtime/sqlite/bun.js +13 -3
  60. package/dist/entrypoints/agent-runtime/sqlite/node.js +13 -3
  61. package/dist/entrypoints/agent-runtime/testing.js +89 -5
  62. package/dist/entrypoints/agent-runtime.d.ts +1 -0
  63. package/dist/entrypoints/agent-runtime.d.ts.map +1 -1
  64. package/dist/entrypoints/agent-runtime.js +25 -15
  65. package/dist/entrypoints/tools.js +5 -3
  66. package/dist/{index-c17xcx4k.js → index-56yx8dxp.js} +19 -96
  67. package/dist/{index-0gs4ymfj.js → index-6qeqdz0z.js} +7 -1
  68. package/dist/{index-924500c3.js → index-79zxnh52.js} +2 -2
  69. package/dist/{index-8rstkvcf.js → index-7c046kxr.js} +1 -1
  70. package/dist/{index-tjdsyrys.js → index-bm180f2d.js} +203 -83
  71. package/dist/{index-5p55xreg.js → index-e9rbhw1s.js} +67 -29
  72. package/dist/index-s2bgwsyr.js +2280 -0
  73. package/dist/index-snef22zr.js +94 -0
  74. package/dist/{index-c0hffcmj.js → index-zbssway3.js} +19 -2
  75. package/llms/agent-runtime.3.txt +3 -0
  76. package/llms/agent-runtime.txt +60 -0
  77. package/llms-full.txt +63 -0
  78. package/llms.txt +1 -1
  79. package/package.json +1 -1
  80. package/dist/index-8ks9b85e.js +0 -129
  81. package/dist/index-d2h99n7d.js +0 -1071
@@ -0,0 +1,426 @@
1
+ import { z } from 'zod';
2
+ import type { AgentStoreEventEnvelope } from '../durability/events.js';
3
+ import { type AgentMessage, type AgentSnapshot } from './schemas.js';
4
+ import type { ReducedApplied, StoreOperation } from './store-reduce-shared.js';
5
+ export declare const BranchBaselineSchema: z.ZodObject<{
6
+ migratedAt: z.ZodISODateTime;
7
+ asOf: z.ZodOptional<z.ZodISODateTime>;
8
+ head: z.ZodObject<{
9
+ schemaVersion: z.ZodLiteral<1>;
10
+ conversationId: z.ZodString;
11
+ version: z.ZodInt;
12
+ }, z.core.$strip>;
13
+ messages: z.ZodArray<z.ZodObject<{
14
+ schemaVersion: z.ZodLiteral<1>;
15
+ id: z.ZodString;
16
+ conversationId: z.ZodString;
17
+ runId: z.ZodOptional<z.ZodString>;
18
+ role: z.ZodEnum<{
19
+ assistant: "assistant";
20
+ summary: "summary";
21
+ system: "system";
22
+ tool: "tool";
23
+ user: "user";
24
+ }>;
25
+ status: z.ZodEnum<{
26
+ committed: "committed";
27
+ completed: "completed";
28
+ failed: "failed";
29
+ interrupted: "interrupted";
30
+ streaming: "streaming";
31
+ superseded: "superseded";
32
+ }>;
33
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
34
+ type: z.ZodLiteral<"text">;
35
+ text: z.ZodString;
36
+ }, z.core.$strip>, z.ZodObject<{
37
+ type: z.ZodLiteral<"reasoning">;
38
+ text: z.ZodString;
39
+ provider: z.ZodOptional<z.ZodObject<{
40
+ schemaVersion: z.ZodInt;
41
+ provider: z.ZodString;
42
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ type: z.ZodLiteral<"file">;
46
+ mediaType: z.ZodString;
47
+ reference: z.ZodString;
48
+ filename: z.ZodOptional<z.ZodString>;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ type: z.ZodLiteral<"source">;
51
+ sourceId: z.ZodString;
52
+ url: z.ZodOptional<z.ZodURL>;
53
+ title: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$strip>, z.ZodObject<{
55
+ type: z.ZodLiteral<"tool-call">;
56
+ callId: z.ZodString;
57
+ toolName: z.ZodString;
58
+ input: z.ZodJSONSchema;
59
+ provider: z.ZodOptional<z.ZodObject<{
60
+ schemaVersion: z.ZodInt;
61
+ provider: z.ZodString;
62
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
63
+ }, z.core.$strip>>;
64
+ }, z.core.$strip>, z.ZodObject<{
65
+ type: z.ZodLiteral<"tool-result">;
66
+ callId: z.ZodString;
67
+ toolName: z.ZodString;
68
+ outcome: z.ZodEnum<{
69
+ error: "error";
70
+ interrupted: "interrupted";
71
+ success: "success";
72
+ }>;
73
+ output: z.ZodOptional<z.ZodJSONSchema>;
74
+ }, z.core.$strip>, z.ZodObject<{
75
+ type: z.ZodLiteral<"tool-approval-request">;
76
+ approvalId: z.ZodString;
77
+ callId: z.ZodString;
78
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
79
+ signature: z.ZodOptional<z.ZodString>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ type: z.ZodLiteral<"tool-approval-response">;
82
+ approvalId: z.ZodString;
83
+ approved: z.ZodBoolean;
84
+ reason: z.ZodOptional<z.ZodString>;
85
+ }, z.core.$strip>, z.ZodObject<{
86
+ type: z.ZodLiteral<"provider">;
87
+ envelope: z.ZodObject<{
88
+ schemaVersion: z.ZodInt;
89
+ provider: z.ZodString;
90
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
91
+ }, z.core.$strip>;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ type: z.ZodLiteral<"control">;
94
+ reason: z.ZodEnum<{
95
+ "run-interrupted": "run-interrupted";
96
+ "stale-run": "stale-run";
97
+ }>;
98
+ }, z.core.$strip>], "type">>;
99
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
100
+ createdAt: z.ZodISODateTime;
101
+ updatedAt: z.ZodISODateTime;
102
+ }, z.core.$strip>>;
103
+ compacted: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
+ runs: z.ZodArray<z.ZodObject<{
105
+ schemaVersion: z.ZodLiteral<1>;
106
+ run: z.ZodObject<{
107
+ schemaVersion: z.ZodLiteral<1>;
108
+ id: z.ZodString;
109
+ conversationId: z.ZodString;
110
+ inputMessageIds: z.ZodArray<z.ZodString>;
111
+ assistantMessageId: z.ZodString;
112
+ state: z.ZodEnum<{
113
+ abandoned: "abandoned";
114
+ cancelled: "cancelled";
115
+ completed: "completed";
116
+ failed: "failed";
117
+ interrupt_requested: "interrupt_requested";
118
+ interrupted: "interrupted";
119
+ queued: "queued";
120
+ running: "running";
121
+ superseded: "superseded";
122
+ }>;
123
+ revision: z.ZodInt;
124
+ queuePriority: z.ZodOptional<z.ZodEnum<{
125
+ "interrupt-next": "interrupt-next";
126
+ }>>;
127
+ executionSequence: z.ZodOptional<z.ZodInt>;
128
+ ownerId: z.ZodOptional<z.ZodString>;
129
+ fencingToken: z.ZodOptional<z.ZodInt>;
130
+ terminalReason: z.ZodOptional<z.ZodEnum<{
131
+ abandoned: "abandoned";
132
+ absorbed: "absorbed";
133
+ cancelled: "cancelled";
134
+ context_overflow: "context_overflow";
135
+ interrupted: "interrupted";
136
+ output_rejected: "output_rejected";
137
+ policy_stop: "policy_stop";
138
+ provider_failure: "provider_failure";
139
+ provider_stop: "provider_stop";
140
+ runtime_failure: "runtime_failure";
141
+ shutdown: "shutdown";
142
+ storage_conflict: "storage_conflict";
143
+ success: "success";
144
+ superseded: "superseded";
145
+ timeout: "timeout";
146
+ }>>;
147
+ terminalPolicyName: z.ZodOptional<z.ZodString>;
148
+ absorbedIntoRunId: z.ZodOptional<z.ZodString>;
149
+ usage: z.ZodOptional<z.ZodObject<{
150
+ inputTokens: z.ZodObject<{
151
+ value: z.ZodOptional<z.ZodInt>;
152
+ provenance: z.ZodEnum<{
153
+ computed: "computed";
154
+ estimated: "estimated";
155
+ "provider-reported": "provider-reported";
156
+ unavailable: "unavailable";
157
+ }>;
158
+ }, z.core.$strip>;
159
+ outputTokens: z.ZodObject<{
160
+ value: z.ZodOptional<z.ZodInt>;
161
+ provenance: z.ZodEnum<{
162
+ computed: "computed";
163
+ estimated: "estimated";
164
+ "provider-reported": "provider-reported";
165
+ unavailable: "unavailable";
166
+ }>;
167
+ }, z.core.$strip>;
168
+ reasoningTokens: z.ZodOptional<z.ZodObject<{
169
+ value: z.ZodOptional<z.ZodInt>;
170
+ provenance: z.ZodEnum<{
171
+ computed: "computed";
172
+ estimated: "estimated";
173
+ "provider-reported": "provider-reported";
174
+ unavailable: "unavailable";
175
+ }>;
176
+ }, z.core.$strip>>;
177
+ cacheReadTokens: z.ZodOptional<z.ZodObject<{
178
+ value: z.ZodOptional<z.ZodInt>;
179
+ provenance: z.ZodEnum<{
180
+ computed: "computed";
181
+ estimated: "estimated";
182
+ "provider-reported": "provider-reported";
183
+ unavailable: "unavailable";
184
+ }>;
185
+ }, z.core.$strip>>;
186
+ cacheWriteTokens: z.ZodOptional<z.ZodObject<{
187
+ value: z.ZodOptional<z.ZodInt>;
188
+ provenance: z.ZodEnum<{
189
+ computed: "computed";
190
+ estimated: "estimated";
191
+ "provider-reported": "provider-reported";
192
+ unavailable: "unavailable";
193
+ }>;
194
+ }, z.core.$strip>>;
195
+ cost: z.ZodOptional<z.ZodObject<{
196
+ value: z.ZodOptional<z.ZodNumber>;
197
+ currency: z.ZodOptional<z.ZodString>;
198
+ provenance: z.ZodEnum<{
199
+ computed: "computed";
200
+ estimated: "estimated";
201
+ "provider-reported": "provider-reported";
202
+ unavailable: "unavailable";
203
+ }>;
204
+ }, z.core.$strip>>;
205
+ }, z.core.$strip>>;
206
+ lastOperation: z.ZodOptional<z.ZodObject<{
207
+ operationId: z.ZodString;
208
+ kind: z.ZodEnum<{
209
+ compaction: "compaction";
210
+ "model-request": "model-request";
211
+ }>;
212
+ phase: z.ZodEnum<{
213
+ cancelled: "cancelled";
214
+ completed: "completed";
215
+ failed: "failed";
216
+ "first-output": "first-output";
217
+ started: "started";
218
+ }>;
219
+ step: z.ZodOptional<z.ZodInt>;
220
+ startedAt: z.ZodISODateTime;
221
+ firstOutputAt: z.ZodOptional<z.ZodISODateTime>;
222
+ finishedAt: z.ZodOptional<z.ZodISODateTime>;
223
+ }, z.core.$strip>>;
224
+ createdAt: z.ZodISODateTime;
225
+ updatedAt: z.ZodISODateTime;
226
+ }, z.core.$strip>;
227
+ terminalAssistant: z.ZodOptional<z.ZodObject<{
228
+ schemaVersion: z.ZodLiteral<1>;
229
+ id: z.ZodString;
230
+ conversationId: z.ZodString;
231
+ runId: z.ZodOptional<z.ZodString>;
232
+ role: z.ZodEnum<{
233
+ assistant: "assistant";
234
+ summary: "summary";
235
+ system: "system";
236
+ tool: "tool";
237
+ user: "user";
238
+ }>;
239
+ status: z.ZodEnum<{
240
+ committed: "committed";
241
+ completed: "completed";
242
+ failed: "failed";
243
+ interrupted: "interrupted";
244
+ streaming: "streaming";
245
+ superseded: "superseded";
246
+ }>;
247
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
248
+ type: z.ZodLiteral<"text">;
249
+ text: z.ZodString;
250
+ }, z.core.$strip>, z.ZodObject<{
251
+ type: z.ZodLiteral<"reasoning">;
252
+ text: z.ZodString;
253
+ provider: z.ZodOptional<z.ZodObject<{
254
+ schemaVersion: z.ZodInt;
255
+ provider: z.ZodString;
256
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>, z.ZodObject<{
259
+ type: z.ZodLiteral<"file">;
260
+ mediaType: z.ZodString;
261
+ reference: z.ZodString;
262
+ filename: z.ZodOptional<z.ZodString>;
263
+ }, z.core.$strip>, z.ZodObject<{
264
+ type: z.ZodLiteral<"source">;
265
+ sourceId: z.ZodString;
266
+ url: z.ZodOptional<z.ZodURL>;
267
+ title: z.ZodOptional<z.ZodString>;
268
+ }, z.core.$strip>, z.ZodObject<{
269
+ type: z.ZodLiteral<"tool-call">;
270
+ callId: z.ZodString;
271
+ toolName: z.ZodString;
272
+ input: z.ZodJSONSchema;
273
+ provider: z.ZodOptional<z.ZodObject<{
274
+ schemaVersion: z.ZodInt;
275
+ provider: z.ZodString;
276
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
277
+ }, z.core.$strip>>;
278
+ }, z.core.$strip>, z.ZodObject<{
279
+ type: z.ZodLiteral<"tool-result">;
280
+ callId: z.ZodString;
281
+ toolName: z.ZodString;
282
+ outcome: z.ZodEnum<{
283
+ error: "error";
284
+ interrupted: "interrupted";
285
+ success: "success";
286
+ }>;
287
+ output: z.ZodOptional<z.ZodJSONSchema>;
288
+ }, z.core.$strip>, z.ZodObject<{
289
+ type: z.ZodLiteral<"tool-approval-request">;
290
+ approvalId: z.ZodString;
291
+ callId: z.ZodString;
292
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
293
+ signature: z.ZodOptional<z.ZodString>;
294
+ }, z.core.$strip>, z.ZodObject<{
295
+ type: z.ZodLiteral<"tool-approval-response">;
296
+ approvalId: z.ZodString;
297
+ approved: z.ZodBoolean;
298
+ reason: z.ZodOptional<z.ZodString>;
299
+ }, z.core.$strip>, z.ZodObject<{
300
+ type: z.ZodLiteral<"provider">;
301
+ envelope: z.ZodObject<{
302
+ schemaVersion: z.ZodInt;
303
+ provider: z.ZodString;
304
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
305
+ }, z.core.$strip>;
306
+ }, z.core.$strip>, z.ZodObject<{
307
+ type: z.ZodLiteral<"control">;
308
+ reason: z.ZodEnum<{
309
+ "run-interrupted": "run-interrupted";
310
+ "stale-run": "stale-run";
311
+ }>;
312
+ }, z.core.$strip>], "type">>;
313
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
314
+ createdAt: z.ZodISODateTime;
315
+ updatedAt: z.ZodISODateTime;
316
+ }, z.core.$strip>>;
317
+ }, z.core.$strip>>;
318
+ admissions: z.ZodArray<z.ZodObject<{
319
+ schemaVersion: z.ZodLiteral<1>;
320
+ conversationId: z.ZodString;
321
+ idempotencyKey: z.ZodString;
322
+ input: z.ZodObject<{
323
+ schemaVersion: z.ZodLiteral<1>;
324
+ id: z.ZodString;
325
+ conversationId: z.ZodString;
326
+ runId: z.ZodOptional<z.ZodString>;
327
+ role: z.ZodEnum<{
328
+ assistant: "assistant";
329
+ summary: "summary";
330
+ system: "system";
331
+ tool: "tool";
332
+ user: "user";
333
+ }>;
334
+ status: z.ZodEnum<{
335
+ committed: "committed";
336
+ completed: "completed";
337
+ failed: "failed";
338
+ interrupted: "interrupted";
339
+ streaming: "streaming";
340
+ superseded: "superseded";
341
+ }>;
342
+ parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
343
+ type: z.ZodLiteral<"text">;
344
+ text: z.ZodString;
345
+ }, z.core.$strip>, z.ZodObject<{
346
+ type: z.ZodLiteral<"reasoning">;
347
+ text: z.ZodString;
348
+ provider: z.ZodOptional<z.ZodObject<{
349
+ schemaVersion: z.ZodInt;
350
+ provider: z.ZodString;
351
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
352
+ }, z.core.$strip>>;
353
+ }, z.core.$strip>, z.ZodObject<{
354
+ type: z.ZodLiteral<"file">;
355
+ mediaType: z.ZodString;
356
+ reference: z.ZodString;
357
+ filename: z.ZodOptional<z.ZodString>;
358
+ }, z.core.$strip>, z.ZodObject<{
359
+ type: z.ZodLiteral<"source">;
360
+ sourceId: z.ZodString;
361
+ url: z.ZodOptional<z.ZodURL>;
362
+ title: z.ZodOptional<z.ZodString>;
363
+ }, z.core.$strip>, z.ZodObject<{
364
+ type: z.ZodLiteral<"tool-call">;
365
+ callId: z.ZodString;
366
+ toolName: z.ZodString;
367
+ input: z.ZodJSONSchema;
368
+ provider: z.ZodOptional<z.ZodObject<{
369
+ schemaVersion: z.ZodInt;
370
+ provider: z.ZodString;
371
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
372
+ }, z.core.$strip>>;
373
+ }, z.core.$strip>, z.ZodObject<{
374
+ type: z.ZodLiteral<"tool-result">;
375
+ callId: z.ZodString;
376
+ toolName: z.ZodString;
377
+ outcome: z.ZodEnum<{
378
+ error: "error";
379
+ interrupted: "interrupted";
380
+ success: "success";
381
+ }>;
382
+ output: z.ZodOptional<z.ZodJSONSchema>;
383
+ }, z.core.$strip>, z.ZodObject<{
384
+ type: z.ZodLiteral<"tool-approval-request">;
385
+ approvalId: z.ZodString;
386
+ callId: z.ZodString;
387
+ isAutomatic: z.ZodOptional<z.ZodBoolean>;
388
+ signature: z.ZodOptional<z.ZodString>;
389
+ }, z.core.$strip>, z.ZodObject<{
390
+ type: z.ZodLiteral<"tool-approval-response">;
391
+ approvalId: z.ZodString;
392
+ approved: z.ZodBoolean;
393
+ reason: z.ZodOptional<z.ZodString>;
394
+ }, z.core.$strip>, z.ZodObject<{
395
+ type: z.ZodLiteral<"provider">;
396
+ envelope: z.ZodObject<{
397
+ schemaVersion: z.ZodInt;
398
+ provider: z.ZodString;
399
+ data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
400
+ }, z.core.$strip>;
401
+ }, z.core.$strip>, z.ZodObject<{
402
+ type: z.ZodLiteral<"control">;
403
+ reason: z.ZodEnum<{
404
+ "run-interrupted": "run-interrupted";
405
+ "stale-run": "stale-run";
406
+ }>;
407
+ }, z.core.$strip>], "type">>;
408
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
409
+ createdAt: z.ZodISODateTime;
410
+ updatedAt: z.ZodISODateTime;
411
+ }, z.core.$strip>;
412
+ runId: z.ZodString;
413
+ assistantMessageId: z.ZodString;
414
+ }, z.core.$strip>>;
415
+ }, z.core.$strict>;
416
+ export declare function branchTransition(event: AgentStoreEventEnvelope): StoreOperation;
417
+ export interface BranchReplay {
418
+ snapshot: AgentSnapshot;
419
+ effects: Omit<ReducedApplied, 'outcome' | 'snapshot'>[];
420
+ baseline?: z.infer<typeof BranchBaselineSchema>;
421
+ /** Abandoning a hash-only draft cannot recreate the text that was lost. */
422
+ unresolvedDrafts: Set<string>;
423
+ retainedMessages: Map<string, AgentMessage>;
424
+ }
425
+ export declare function replayBranchEvents(conversationId: string, events: readonly AgentStoreEventEnvelope[], retainedSnapshot?: AgentSnapshot): BranchReplay;
426
+ //# sourceMappingURL=branch-replay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch-replay.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/branch-replay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAEpE,OAAO,EACL,KAAK,YAAY,EAEjB,KAAK,aAAa,E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{ AgentStoreEventEnvelope } from '../durability/events.js';
3
+ import { ArchiveSpillSchema } from './archive-spill.js';
4
+ import type { BranchAgentConversationInput } from './branch-contract.js';
5
+ import { type BranchReplay } from './branch-replay.js';
6
+ export declare function branchHash(value: unknown): string;
7
+ export interface BranchSource {
8
+ conversationId: string;
9
+ events: AgentStoreEventEnvelope[];
10
+ spills: z.infer<typeof ArchiveSpillSchema>[];
11
+ replay: BranchReplay;
12
+ digest: string;
13
+ }
14
+ /** Validate the complete archive before selecting a prefix; a truncated tail never looks complete. */
15
+ export declare function prepareBranchSource(bytes: Uint8Array, source: BranchAgentConversationInput['source']): BranchSource;
16
+ //# sourceMappingURL=branch-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch-source.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/branch-source.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAGtE,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,iBAAiB,CAAC;AASxE,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEjD;AA8CD,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,uBAAuB,EAAE,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,EAAE,CAAC;IAC7C,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,sGAAsG;AACtG,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,4BAA4B,CAAC,QAAQ,CAAC,GAC7C,YAAY,CAsFd"}
@@ -0,0 +1,6 @@
1
+ import { z } from 'zod';
2
+ import type { BranchIdentities } from './branch-identities.js';
3
+ import type { StoreOperation } from './store-reduce-shared.js';
4
+ export declare function rekeyBranchTransition(ids: BranchIdentities, source: string, operation: StoreOperation): StoreOperation;
5
+ export declare function branchJson(value: unknown): z.JSONType;
6
+ //# sourceMappingURL=branch-transitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branch-transitions.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/branch-transitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,gBAAgB,EACrB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,cAAc,GACxB,cAAc,CA4EhB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,cAExC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sqlite-history.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sqlite-history.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,iBAAiB,EACvB,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,iBAAiB,CAAC,SAAS,CAoItD,CAAC"}
1
+ {"version":3,"file":"sqlite-history.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sqlite-history.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,iBAAiB,EACvB,MAAM,eAAe,CAAC;AAGvB;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,iBAAiB,CAAC,SAAS,CAqJtD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sqlite-purge.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sqlite-purge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAclE,iFAAiF;AACjF,wBAAgB,iCAAiC,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAoBhF;AAED,6FAA6F;AAC7F,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,cAAc,GACvB,4BAA4B,CAAC,cAAc,CAAC,GAAG,SAAS,CAgC1D"}
1
+ {"version":3,"file":"sqlite-purge.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/sqlite-purge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAclE,iFAAiF;AACjF,wBAAgB,iCAAiC,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAoBhF;AAED,6FAA6F;AAC7F,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,cAAc,GACvB,4BAA4B,CAAC,cAAc,CAAC,GAAG,SAAS,CA+C1D"}
@@ -13,4 +13,5 @@ export declare function importConversation<TRANSACTION>(driver: AgentRuntimeStor
13
13
  conversationId: string;
14
14
  events: number;
15
15
  }>;
16
+ export declare function exportConversationIn<TRANSACTION>(driver: AgentRuntimeStoreDriver<TRANSACTION>, transaction: TRANSACTION, conversationId: string): Promise<Uint8Array>;
16
17
  //# sourceMappingURL=store-archive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"store-archive.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store-archive.ts"],"names":[],"mappings":"AAOA,OAAO,EAGL,KAAK,uBAAuB,EAE7B,MAAM,yBAAyB,CAAC;AAQjC;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAC5C,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC,EAC5C,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,UAAU,CAAC,CAsCrB;AAED,wBAAsB,kBAAkB,CAAC,WAAW,EAClD,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC,EAC5C,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CA4FrD"}
1
+ {"version":3,"file":"store-archive.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store-archive.ts"],"names":[],"mappings":"AAOA,OAAO,EAGL,KAAK,uBAAuB,EAE7B,MAAM,yBAAyB,CAAC;AAQjC;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAC5C,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC,EAC5C,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,UAAU,CAAC,CAOrB;AAED,wBAAsB,kBAAkB,CAAC,WAAW,EAClD,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC,EAC5C,KAAK,EAAE,UAAU,GAChB,OAAO,CAAC;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CA4FrD;AAED,wBAAsB,oBAAoB,CAAC,WAAW,EACpD,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC,EAC5C,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,UAAU,CAAC,CAiCrB"}
@@ -0,0 +1,5 @@
1
+ import { type AgentConversationBranchResult, type BranchAgentConversationInput } from './branch-contract.js';
2
+ import type { AgentRuntimeStoreDriver } from './store-driver-contract.js';
3
+ /** Source read, validation, receipt and clone share one write transaction. */
4
+ export declare function branchConversation<T>(driver: AgentRuntimeStoreDriver<T>, raw: BranchAgentConversationInput): Promise<AgentConversationBranchResult>;
5
+ //# sourceMappingURL=store-branch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-branch.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store-branch.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EAElC,MAAM,mBAAmB,CAAC;AAO3B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAwDvE,8EAA8E;AAC9E,wBAAsB,kBAAkB,CAAC,CAAC,EACxC,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC,EAClC,GAAG,EAAE,4BAA4B,GAChC,OAAO,CAAC,6BAA6B,CAAC,CAyIxC"}
@@ -0,0 +1,4 @@
1
+ import type { AgentRuntimeStore } from './store.js';
2
+ /** Optional capabilities are exercised when the tested adapter advertises them. */
3
+ export declare function branchConformance(store: AgentRuntimeStore, source: string, destination: string, restored: string): Promise<void>;
4
+ //# sourceMappingURL=store-conformance-branch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-conformance-branch.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store-conformance-branch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAIjD,mFAAmF;AACnF,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,iBAmFjB"}
@@ -8,11 +8,6 @@ export declare function userMessage(conversationId: string, id: string): {
8
8
  parts: ({
9
9
  type: "text";
10
10
  text: string;
11
- } | {
12
- type: "file";
13
- mediaType: string;
14
- reference: string;
15
- filename?: string | undefined;
16
11
  } | {
17
12
  type: "reasoning";
18
13
  text: string;
@@ -21,6 +16,11 @@ export declare function userMessage(conversationId: string, id: string): {
21
16
  provider: string;
22
17
  data: Record<string, import("zod").JSONType>;
23
18
  } | undefined;
19
+ } | {
20
+ type: "file";
21
+ mediaType: string;
22
+ reference: string;
23
+ filename?: string | undefined;
24
24
  } | {
25
25
  type: "source";
26
26
  sourceId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"store-conformance.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store-conformance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAkBjD;;;;;;;;;GASG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,WAAW,CACT,OAAO,EAAE,4BAA4B,GACpC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAClD;;;;;;;;OAQG;IACH,OAAO,CAAC,CAAC,OAAO,EAAE,4BAA4B,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE;AAED,gFAAgF;AAChF,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,2BAA2B,GAClC,OAAO,CAAC,IAAI,CAAC,CAqCf"}
1
+ {"version":3,"file":"store-conformance.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store-conformance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAmBjD;;;;;;;;;GASG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,WAAW,CACT,OAAO,EAAE,4BAA4B,GACpC,iBAAiB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAClD;;;;;;;;OAQG;IACH,OAAO,CAAC,CAAC,OAAO,EAAE,4BAA4B,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvE;AAED,gFAAgF;AAChF,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,2BAA2B,GAClC,OAAO,CAAC,IAAI,CAAC,CAwCf"}
@@ -7,5 +7,5 @@ import type { AgentRuntimeStoreDriver } from './store-driver-contract.js';
7
7
  * `store-archive`, and every mutation goes through `store-mutate`, which runs
8
8
  * the pure reducer (`store-reducer`) inside one driver transaction.
9
9
  */
10
- export declare function createAgentRuntimeStore<TRANSACTION>(driver: AgentRuntimeStoreDriver<TRANSACTION>): AgentRuntimeStore;
10
+ export declare function createAgentRuntimeStore<TRANSACTION>(driver: AgentRuntimeStoreDriver<TRANSACTION>): AgentRuntimeStore & Required<Pick<AgentRuntimeStore, 'branchConversation'>>;
11
11
  //# sourceMappingURL=store-create.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"store-create.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store-create.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,iBAAiB,EAQvB,MAAM,SAAS,CAAC;AAEjB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAYvE;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EACjD,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC,GAC3C,iBAAiB,CAwDnB"}
1
+ {"version":3,"file":"store-create.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store-create.ts"],"names":[],"mappings":"AACA,OAAO,EAIL,KAAK,iBAAiB,EAQvB,MAAM,SAAS,CAAC;AAGjB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAYvE;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EACjD,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC,GAC3C,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAAC,CAyD7E"}
@@ -768,6 +768,12 @@ export interface AgentRuntimeStoreDriver<TRANSACTION> {
768
768
  create(transaction: TRANSACTION, receipt: AgentSeedReceipt): Promise<void>;
769
769
  };
770
770
  history: {
771
+ /** Restore baseline rows, including inactive history, into an empty destination. */
772
+ restore?(transaction: TRANSACTION, input: {
773
+ conversationId: string;
774
+ messages: readonly AgentMessage[];
775
+ compactedMessageIds: readonly string[];
776
+ }): Promise<void>;
771
777
  load(transaction: TRANSACTION, conversationId: string): Promise<readonly AgentMessage[]>;
772
778
  /**
773
779
  * Whether any stored message — active or compacted — already carries this
@@ -1 +1 @@
1
- {"version":3,"file":"store-driver-contract.d.ts","sourceRoot":"","sources":["../../src/agent-runtime/store-driver-contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,YAAY,EAIjB,KAAK,QAAQ,EAEd,MAAM,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,KAAK,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACrF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAElE,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO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