fascicle 0.13.1 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +20 -1
- package/dist/acp.d.ts +226 -0
- package/dist/acp.js +1886 -0
- package/dist/acp.js.map +1 -0
- package/dist/adapters.js +1 -2
- package/dist/agents.d.ts +1 -1
- package/dist/agents.js +1 -1
- package/dist/{core-DK7g1Z40.js → core-CDrz0NM1.js} +1 -12
- package/dist/core-CDrz0NM1.js.map +1 -0
- package/dist/diagram_bin.js +1 -1
- package/dist/{engine-BOGuc0X2.js → engine-BDWB2jdn.js} +12 -333
- package/dist/engine-BDWB2jdn.js.map +1 -0
- package/dist/index.d.ts +468 -622
- package/dist/index.js +20 -12
- package/dist/index.js.map +1 -1
- package/dist/{invoke-Beef3R3X.js → invoke-tjTjZLHj.js} +3 -3
- package/dist/{invoke-Beef3R3X.js.map → invoke-tjTjZLHj.js.map} +1 -1
- package/dist/json_schema_to_standard-r21kW2LI.js +288 -0
- package/dist/json_schema_to_standard-r21kW2LI.js.map +1 -0
- package/dist/leading_system-BQe_405V.js +330 -0
- package/dist/leading_system-BQe_405V.js.map +1 -0
- package/dist/mcp.d.ts +17 -16
- package/dist/mcp.js +2 -266
- package/dist/mcp.js.map +1 -1
- package/dist/search-CqH5hmuF.js +563 -0
- package/dist/search-CqH5hmuF.js.map +1 -0
- package/dist/search_worker.d.ts +1 -0
- package/dist/search_worker.js +19 -0
- package/dist/search_worker.js.map +1 -0
- package/dist/stdio.js +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +3 -2
- package/dist/testing.js.map +1 -1
- package/dist/{types-CZ83Q5nm.d.ts → types-C_Rmcgck.d.ts} +7 -1
- package/dist/viewer-app/assets/index-Fnh5HKSU.js +2 -0
- package/dist/viewer-app/index.html +1 -1
- package/dist/viewer.js +1 -1
- package/package.json +30 -19
- package/dist/core-DK7g1Z40.js.map +0 -1
- package/dist/engine-BOGuc0X2.js.map +0 -1
- package/dist/viewer-app/assets/index-DXsB0byD.js +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,603 +1,7 @@
|
|
|
1
1
|
import { a as FlowValue, c as Step, d as StepMetadata, f as StepOptions, h as TrajectoryLogger, i as FlowNode, l as StepFn, m as TrajectoryEvent, n as CheckpointStore, o as RunContext, p as StepOutput, r as CleanupFn, s as ScopedCheckpointStore, t as AnyStep, u as StepInput } from "./types-CPqLZOEr.js";
|
|
2
2
|
import { n as SchemaIssue, r as ToolSchema, t as AnySchema } from "./types-BK0UW28o.js";
|
|
3
3
|
import { _ as is_run_end_event, a as MapItemFailedEvent, b as is_step_replayed_event, c as RunEndStatus, d as StepReplayedEvent, f as TrajectoryParseResult, g as is_map_item_failed_event, h as is_emit_event, i as EmitEvent, l as SpanEndEvent, m as is_custom_trajectory_event, n as CheckpointStatus, o as ParsedTrajectoryEvent, p as is_checkpoint_event, r as CustomTrajectoryEvent, s as RunEndEvent, t as CheckpointEvent, u as SpanStartEvent, v as is_span_end_event, x as parse_trajectory_event, y as is_span_start_event } from "./trajectory-Bm-mOtqw.js";
|
|
4
|
-
import { A as ToolExecContext, B as ProviderCapability, C as StepRecord, D as ToolApprovalHandler, E as Tool, F as AiSdkProviderAdapter, G as ClaudeCliProviderReported, H as ProviderTransport, I as EffortTranslation, L as ExternalAgentAdapter, M as TurnResult, N as UsageTotals, O as ToolApprovalRequest, P as UserContentPart, R as NativeProviderAdapter, S as RetryPolicy, T as StreamChunk, U as RawProviderUsage, V as ProviderFactory, W as default_normalize_usage, _ as PricingTable, a as Engine, b as ResolvedModel, c as FinishReason, d as GenerateTiming, f as Message, g as Pricing, h as PrepareStepResult, i as EffortLevel, j as TurnRequest, k as ToolCallRecord, l as GenerateOptions, m as PrepareStepHook, n as AssistantContentPart, o as EngineConfig, p as PrepareStepContext, r as CostBreakdown, s as EngineDefaults, t as AiSdkTelemetrySettings, u as GenerateResult, v as ProviderConfigMap, w as StepTiming, x as RetryFailureKind, y as ProviderInit, z as ProviderAdapter } from "./types-
|
|
5
|
-
//#region src/core/flow-schema.json.d.ts
|
|
6
|
-
declare let $schema: string;
|
|
7
|
-
declare let $id: string;
|
|
8
|
-
declare let title: string;
|
|
9
|
-
declare let description: string;
|
|
10
|
-
declare let type: string;
|
|
11
|
-
declare namespace items {
|
|
12
|
-
let $ref: string;
|
|
13
|
-
}
|
|
14
|
-
declare namespace $defs {
|
|
15
|
-
namespace compose_entry {
|
|
16
|
-
let type_1: string;
|
|
17
|
-
export { type_1 as type };
|
|
18
|
-
export let required: string[];
|
|
19
|
-
export namespace properties {
|
|
20
|
-
namespace compose {
|
|
21
|
-
let type_2: string;
|
|
22
|
-
export { type_2 as type };
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
export let allOf: {
|
|
26
|
-
$ref: string;
|
|
27
|
-
}[];
|
|
28
|
-
}
|
|
29
|
-
namespace node {
|
|
30
|
-
let type_3: string;
|
|
31
|
-
export { type_3 as type };
|
|
32
|
-
export let anyOf: {
|
|
33
|
-
required: string[];
|
|
34
|
-
}[];
|
|
35
|
-
export namespace properties_1 {
|
|
36
|
-
namespace step {
|
|
37
|
-
let $ref_1: string;
|
|
38
|
-
export { $ref_1 as $ref };
|
|
39
|
-
}
|
|
40
|
-
namespace sequence {
|
|
41
|
-
let $ref_2: string;
|
|
42
|
-
export { $ref_2 as $ref };
|
|
43
|
-
}
|
|
44
|
-
namespace parallel {
|
|
45
|
-
let $ref_3: string;
|
|
46
|
-
export { $ref_3 as $ref };
|
|
47
|
-
}
|
|
48
|
-
namespace branch {
|
|
49
|
-
let $ref_4: string;
|
|
50
|
-
export { $ref_4 as $ref };
|
|
51
|
-
}
|
|
52
|
-
namespace map {
|
|
53
|
-
let $ref_5: string;
|
|
54
|
-
export { $ref_5 as $ref };
|
|
55
|
-
}
|
|
56
|
-
namespace pipe {
|
|
57
|
-
let $ref_6: string;
|
|
58
|
-
export { $ref_6 as $ref };
|
|
59
|
-
}
|
|
60
|
-
namespace retry {
|
|
61
|
-
let $ref_7: string;
|
|
62
|
-
export { $ref_7 as $ref };
|
|
63
|
-
}
|
|
64
|
-
namespace fallback {
|
|
65
|
-
let $ref_8: string;
|
|
66
|
-
export { $ref_8 as $ref };
|
|
67
|
-
}
|
|
68
|
-
namespace timeout {
|
|
69
|
-
let $ref_9: string;
|
|
70
|
-
export { $ref_9 as $ref };
|
|
71
|
-
}
|
|
72
|
-
namespace loop {
|
|
73
|
-
let $ref_10: string;
|
|
74
|
-
export { $ref_10 as $ref };
|
|
75
|
-
}
|
|
76
|
-
namespace compose_node {
|
|
77
|
-
let $ref_11: string;
|
|
78
|
-
export { $ref_11 as $ref };
|
|
79
|
-
}
|
|
80
|
-
namespace adversarial {
|
|
81
|
-
let $ref_12: string;
|
|
82
|
-
export { $ref_12 as $ref };
|
|
83
|
-
}
|
|
84
|
-
namespace ensemble {
|
|
85
|
-
let $ref_13: string;
|
|
86
|
-
export { $ref_13 as $ref };
|
|
87
|
-
}
|
|
88
|
-
namespace tournament {
|
|
89
|
-
let $ref_14: string;
|
|
90
|
-
export { $ref_14 as $ref };
|
|
91
|
-
}
|
|
92
|
-
namespace consensus {
|
|
93
|
-
let $ref_15: string;
|
|
94
|
-
export { $ref_15 as $ref };
|
|
95
|
-
}
|
|
96
|
-
namespace checkpoint {
|
|
97
|
-
let $ref_16: string;
|
|
98
|
-
export { $ref_16 as $ref };
|
|
99
|
-
}
|
|
100
|
-
namespace suspend {
|
|
101
|
-
let $ref_17: string;
|
|
102
|
-
export { $ref_17 as $ref };
|
|
103
|
-
}
|
|
104
|
-
namespace scope {
|
|
105
|
-
let $ref_18: string;
|
|
106
|
-
export { $ref_18 as $ref };
|
|
107
|
-
}
|
|
108
|
-
namespace chain {
|
|
109
|
-
let $ref_19: string;
|
|
110
|
-
export { $ref_19 as $ref };
|
|
111
|
-
}
|
|
112
|
-
namespace ref {
|
|
113
|
-
let type_4: string;
|
|
114
|
-
export { type_4 as type };
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
export { properties_1 as properties };
|
|
118
|
-
}
|
|
119
|
-
namespace step_config {
|
|
120
|
-
let type_5: string;
|
|
121
|
-
export { type_5 as type };
|
|
122
|
-
let required_1: string[];
|
|
123
|
-
export { required_1 as required };
|
|
124
|
-
export namespace properties_2 {
|
|
125
|
-
namespace id {
|
|
126
|
-
let type_6: string;
|
|
127
|
-
export { type_6 as type };
|
|
128
|
-
}
|
|
129
|
-
namespace fn {
|
|
130
|
-
let type_7: string;
|
|
131
|
-
export { type_7 as type };
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
export { properties_2 as properties };
|
|
135
|
-
}
|
|
136
|
-
namespace sequence_config {
|
|
137
|
-
let type_8: string;
|
|
138
|
-
export { type_8 as type };
|
|
139
|
-
export namespace items_1 {
|
|
140
|
-
let $ref_20: string;
|
|
141
|
-
export { $ref_20 as $ref };
|
|
142
|
-
}
|
|
143
|
-
export { items_1 as items };
|
|
144
|
-
}
|
|
145
|
-
namespace parallel_config {
|
|
146
|
-
let type_9: string;
|
|
147
|
-
export { type_9 as type };
|
|
148
|
-
export namespace additionalProperties {
|
|
149
|
-
let $ref_21: string;
|
|
150
|
-
export { $ref_21 as $ref };
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
namespace branch_config {
|
|
154
|
-
let type_10: string;
|
|
155
|
-
export { type_10 as type };
|
|
156
|
-
let required_2: string[];
|
|
157
|
-
export { required_2 as required };
|
|
158
|
-
export namespace properties_3 {
|
|
159
|
-
namespace when {
|
|
160
|
-
let type_11: string;
|
|
161
|
-
export { type_11 as type };
|
|
162
|
-
}
|
|
163
|
-
namespace then {
|
|
164
|
-
let $ref_22: string;
|
|
165
|
-
export { $ref_22 as $ref };
|
|
166
|
-
}
|
|
167
|
-
namespace otherwise {
|
|
168
|
-
let $ref_23: string;
|
|
169
|
-
export { $ref_23 as $ref };
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
export { properties_3 as properties };
|
|
173
|
-
}
|
|
174
|
-
namespace map_config {
|
|
175
|
-
let type_12: string;
|
|
176
|
-
export { type_12 as type };
|
|
177
|
-
let required_3: string[];
|
|
178
|
-
export { required_3 as required };
|
|
179
|
-
export namespace properties_4 {
|
|
180
|
-
export namespace items_2 {
|
|
181
|
-
let type_13: string;
|
|
182
|
-
export { type_13 as type };
|
|
183
|
-
}
|
|
184
|
-
export { items_2 as items };
|
|
185
|
-
export namespace _do {
|
|
186
|
-
let $ref_24: string;
|
|
187
|
-
export { $ref_24 as $ref };
|
|
188
|
-
}
|
|
189
|
-
export { _do as do };
|
|
190
|
-
export namespace concurrency {
|
|
191
|
-
let type_14: string;
|
|
192
|
-
export { type_14 as type };
|
|
193
|
-
export let minimum: number;
|
|
194
|
-
}
|
|
195
|
-
export namespace settle {
|
|
196
|
-
let type_15: string;
|
|
197
|
-
export { type_15 as type };
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
export { properties_4 as properties };
|
|
201
|
-
}
|
|
202
|
-
namespace pipe_config {
|
|
203
|
-
let type_16: string;
|
|
204
|
-
export { type_16 as type };
|
|
205
|
-
let required_4: string[];
|
|
206
|
-
export { required_4 as required };
|
|
207
|
-
export namespace properties_5 {
|
|
208
|
-
export namespace of {
|
|
209
|
-
let $ref_25: string;
|
|
210
|
-
export { $ref_25 as $ref };
|
|
211
|
-
}
|
|
212
|
-
export namespace fn_1 {
|
|
213
|
-
let type_17: string;
|
|
214
|
-
export { type_17 as type };
|
|
215
|
-
}
|
|
216
|
-
export { fn_1 as fn };
|
|
217
|
-
}
|
|
218
|
-
export { properties_5 as properties };
|
|
219
|
-
}
|
|
220
|
-
namespace retry_config {
|
|
221
|
-
let type_18: string;
|
|
222
|
-
export { type_18 as type };
|
|
223
|
-
let required_5: string[];
|
|
224
|
-
export { required_5 as required };
|
|
225
|
-
export namespace properties_6 {
|
|
226
|
-
export namespace _do_1 {
|
|
227
|
-
let $ref_26: string;
|
|
228
|
-
export { $ref_26 as $ref };
|
|
229
|
-
}
|
|
230
|
-
export { _do_1 as do };
|
|
231
|
-
export namespace max_attempts {
|
|
232
|
-
let type_19: string;
|
|
233
|
-
export { type_19 as type };
|
|
234
|
-
let minimum_1: number;
|
|
235
|
-
export { minimum_1 as minimum };
|
|
236
|
-
}
|
|
237
|
-
export namespace backoff_ms {
|
|
238
|
-
let type_20: string;
|
|
239
|
-
export { type_20 as type };
|
|
240
|
-
let minimum_2: number;
|
|
241
|
-
export { minimum_2 as minimum };
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
export { properties_6 as properties };
|
|
245
|
-
}
|
|
246
|
-
namespace fallback_config {
|
|
247
|
-
let type_21: string;
|
|
248
|
-
export { type_21 as type };
|
|
249
|
-
let required_6: string[];
|
|
250
|
-
export { required_6 as required };
|
|
251
|
-
export namespace properties_7 {
|
|
252
|
-
namespace primary {
|
|
253
|
-
let $ref_27: string;
|
|
254
|
-
export { $ref_27 as $ref };
|
|
255
|
-
}
|
|
256
|
-
namespace backup {
|
|
257
|
-
let $ref_28: string;
|
|
258
|
-
export { $ref_28 as $ref };
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
export { properties_7 as properties };
|
|
262
|
-
}
|
|
263
|
-
namespace timeout_config {
|
|
264
|
-
let type_22: string;
|
|
265
|
-
export { type_22 as type };
|
|
266
|
-
let required_7: string[];
|
|
267
|
-
export { required_7 as required };
|
|
268
|
-
export namespace properties_8 {
|
|
269
|
-
export namespace _do_2 {
|
|
270
|
-
let $ref_29: string;
|
|
271
|
-
export { $ref_29 as $ref };
|
|
272
|
-
}
|
|
273
|
-
export { _do_2 as do };
|
|
274
|
-
export namespace ms {
|
|
275
|
-
let type_23: string;
|
|
276
|
-
export { type_23 as type };
|
|
277
|
-
let minimum_3: number;
|
|
278
|
-
export { minimum_3 as minimum };
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
export { properties_8 as properties };
|
|
282
|
-
}
|
|
283
|
-
namespace compose_node_config {
|
|
284
|
-
let type_24: string;
|
|
285
|
-
export { type_24 as type };
|
|
286
|
-
let required_8: string[];
|
|
287
|
-
export { required_8 as required };
|
|
288
|
-
export namespace properties_9 {
|
|
289
|
-
export namespace name {
|
|
290
|
-
let type_25: string;
|
|
291
|
-
export { type_25 as type };
|
|
292
|
-
export let minLength: number;
|
|
293
|
-
}
|
|
294
|
-
export namespace _do_3 {
|
|
295
|
-
let $ref_30: string;
|
|
296
|
-
export { $ref_30 as $ref };
|
|
297
|
-
}
|
|
298
|
-
export { _do_3 as do };
|
|
299
|
-
}
|
|
300
|
-
export { properties_9 as properties };
|
|
301
|
-
}
|
|
302
|
-
namespace loop_config {
|
|
303
|
-
let type_26: string;
|
|
304
|
-
export { type_26 as type };
|
|
305
|
-
let required_9: string[];
|
|
306
|
-
export { required_9 as required };
|
|
307
|
-
export namespace properties_10 {
|
|
308
|
-
export namespace name_1 {
|
|
309
|
-
let type_27: string;
|
|
310
|
-
export { type_27 as type };
|
|
311
|
-
let minLength_1: number;
|
|
312
|
-
export { minLength_1 as minLength };
|
|
313
|
-
}
|
|
314
|
-
export { name_1 as name };
|
|
315
|
-
export namespace init {
|
|
316
|
-
let type_28: string;
|
|
317
|
-
export { type_28 as type };
|
|
318
|
-
}
|
|
319
|
-
export namespace body {
|
|
320
|
-
let $ref_31: string;
|
|
321
|
-
export { $ref_31 as $ref };
|
|
322
|
-
}
|
|
323
|
-
export namespace guard {
|
|
324
|
-
let $ref_32: string;
|
|
325
|
-
export { $ref_32 as $ref };
|
|
326
|
-
}
|
|
327
|
-
export namespace finish {
|
|
328
|
-
let type_29: string;
|
|
329
|
-
export { type_29 as type };
|
|
330
|
-
}
|
|
331
|
-
export namespace max_rounds {
|
|
332
|
-
let type_30: string;
|
|
333
|
-
export { type_30 as type };
|
|
334
|
-
let minimum_4: number;
|
|
335
|
-
export { minimum_4 as minimum };
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
export { properties_10 as properties };
|
|
339
|
-
}
|
|
340
|
-
namespace adversarial_config {
|
|
341
|
-
let type_31: string;
|
|
342
|
-
export { type_31 as type };
|
|
343
|
-
let required_10: string[];
|
|
344
|
-
export { required_10 as required };
|
|
345
|
-
export namespace properties_11 {
|
|
346
|
-
export namespace build {
|
|
347
|
-
let $ref_33: string;
|
|
348
|
-
export { $ref_33 as $ref };
|
|
349
|
-
}
|
|
350
|
-
export namespace critique {
|
|
351
|
-
let $ref_34: string;
|
|
352
|
-
export { $ref_34 as $ref };
|
|
353
|
-
}
|
|
354
|
-
export namespace accept {
|
|
355
|
-
let type_32: string;
|
|
356
|
-
export { type_32 as type };
|
|
357
|
-
}
|
|
358
|
-
export namespace max_rounds_1 {
|
|
359
|
-
let type_33: string;
|
|
360
|
-
export { type_33 as type };
|
|
361
|
-
let minimum_5: number;
|
|
362
|
-
export { minimum_5 as minimum };
|
|
363
|
-
}
|
|
364
|
-
export { max_rounds_1 as max_rounds };
|
|
365
|
-
}
|
|
366
|
-
export { properties_11 as properties };
|
|
367
|
-
}
|
|
368
|
-
namespace ensemble_config {
|
|
369
|
-
let type_34: string;
|
|
370
|
-
export { type_34 as type };
|
|
371
|
-
let required_11: string[];
|
|
372
|
-
export { required_11 as required };
|
|
373
|
-
export namespace properties_12 {
|
|
374
|
-
namespace members {
|
|
375
|
-
let type_35: string;
|
|
376
|
-
export { type_35 as type };
|
|
377
|
-
export namespace additionalProperties_1 {
|
|
378
|
-
let $ref_35: string;
|
|
379
|
-
export { $ref_35 as $ref };
|
|
380
|
-
}
|
|
381
|
-
export { additionalProperties_1 as additionalProperties };
|
|
382
|
-
}
|
|
383
|
-
namespace score {
|
|
384
|
-
let type_36: string;
|
|
385
|
-
export { type_36 as type };
|
|
386
|
-
}
|
|
387
|
-
namespace select {
|
|
388
|
-
let type_37: string;
|
|
389
|
-
export { type_37 as type };
|
|
390
|
-
let _enum: string[];
|
|
391
|
-
export { _enum as enum };
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
export { properties_12 as properties };
|
|
395
|
-
}
|
|
396
|
-
namespace tournament_config {
|
|
397
|
-
let type_38: string;
|
|
398
|
-
export { type_38 as type };
|
|
399
|
-
let required_12: string[];
|
|
400
|
-
export { required_12 as required };
|
|
401
|
-
export namespace properties_13 {
|
|
402
|
-
export namespace members_1 {
|
|
403
|
-
let type_39: string;
|
|
404
|
-
export { type_39 as type };
|
|
405
|
-
export namespace additionalProperties_2 {
|
|
406
|
-
let $ref_36: string;
|
|
407
|
-
export { $ref_36 as $ref };
|
|
408
|
-
}
|
|
409
|
-
export { additionalProperties_2 as additionalProperties };
|
|
410
|
-
}
|
|
411
|
-
export { members_1 as members };
|
|
412
|
-
export namespace compare {
|
|
413
|
-
let type_40: string;
|
|
414
|
-
export { type_40 as type };
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
export { properties_13 as properties };
|
|
418
|
-
}
|
|
419
|
-
namespace consensus_config {
|
|
420
|
-
let type_41: string;
|
|
421
|
-
export { type_41 as type };
|
|
422
|
-
let required_13: string[];
|
|
423
|
-
export { required_13 as required };
|
|
424
|
-
export namespace properties_14 {
|
|
425
|
-
export namespace members_2 {
|
|
426
|
-
let type_42: string;
|
|
427
|
-
export { type_42 as type };
|
|
428
|
-
export namespace additionalProperties_3 {
|
|
429
|
-
let $ref_37: string;
|
|
430
|
-
export { $ref_37 as $ref };
|
|
431
|
-
}
|
|
432
|
-
export { additionalProperties_3 as additionalProperties };
|
|
433
|
-
}
|
|
434
|
-
export { members_2 as members };
|
|
435
|
-
export namespace agree {
|
|
436
|
-
let type_43: string;
|
|
437
|
-
export { type_43 as type };
|
|
438
|
-
}
|
|
439
|
-
export namespace max_rounds_2 {
|
|
440
|
-
let type_44: string;
|
|
441
|
-
export { type_44 as type };
|
|
442
|
-
let minimum_6: number;
|
|
443
|
-
export { minimum_6 as minimum };
|
|
444
|
-
}
|
|
445
|
-
export { max_rounds_2 as max_rounds };
|
|
446
|
-
}
|
|
447
|
-
export { properties_14 as properties };
|
|
448
|
-
}
|
|
449
|
-
namespace checkpoint_config {
|
|
450
|
-
let type_45: string;
|
|
451
|
-
export { type_45 as type };
|
|
452
|
-
let required_14: string[];
|
|
453
|
-
export { required_14 as required };
|
|
454
|
-
export namespace properties_15 {
|
|
455
|
-
export namespace _do_4 {
|
|
456
|
-
let $ref_38: string;
|
|
457
|
-
export { $ref_38 as $ref };
|
|
458
|
-
}
|
|
459
|
-
export { _do_4 as do };
|
|
460
|
-
export namespace key {
|
|
461
|
-
let type_46: string;
|
|
462
|
-
export { type_46 as type };
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
export { properties_15 as properties };
|
|
466
|
-
}
|
|
467
|
-
namespace suspend_config {
|
|
468
|
-
let type_47: string;
|
|
469
|
-
export { type_47 as type };
|
|
470
|
-
let required_15: string[];
|
|
471
|
-
export { required_15 as required };
|
|
472
|
-
export namespace properties_16 {
|
|
473
|
-
export namespace id_1 {
|
|
474
|
-
let type_48: string;
|
|
475
|
-
export { type_48 as type };
|
|
476
|
-
}
|
|
477
|
-
export { id_1 as id };
|
|
478
|
-
export namespace on {
|
|
479
|
-
let type_49: string;
|
|
480
|
-
export { type_49 as type };
|
|
481
|
-
}
|
|
482
|
-
export namespace resume_schema {
|
|
483
|
-
let type_50: string;
|
|
484
|
-
export { type_50 as type };
|
|
485
|
-
}
|
|
486
|
-
export namespace combine {
|
|
487
|
-
let type_51: string;
|
|
488
|
-
export { type_51 as type };
|
|
489
|
-
}
|
|
490
|
-
export namespace deadline_ms {
|
|
491
|
-
let type_52: string;
|
|
492
|
-
export { type_52 as type };
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
export { properties_16 as properties };
|
|
496
|
-
}
|
|
497
|
-
namespace scope_config {
|
|
498
|
-
let type_53: string;
|
|
499
|
-
export { type_53 as type };
|
|
500
|
-
export namespace items_3 {
|
|
501
|
-
let $ref_39: string;
|
|
502
|
-
export { $ref_39 as $ref };
|
|
503
|
-
}
|
|
504
|
-
export { items_3 as items };
|
|
505
|
-
}
|
|
506
|
-
namespace scope_entry {
|
|
507
|
-
let type_54: string;
|
|
508
|
-
export { type_54 as type };
|
|
509
|
-
export let oneOf: ({
|
|
510
|
-
type: string;
|
|
511
|
-
required: string[];
|
|
512
|
-
properties: {
|
|
513
|
-
stash: {
|
|
514
|
-
type: string;
|
|
515
|
-
};
|
|
516
|
-
do: {
|
|
517
|
-
$ref: string;
|
|
518
|
-
};
|
|
519
|
-
use?: never;
|
|
520
|
-
};
|
|
521
|
-
} | {
|
|
522
|
-
type: string;
|
|
523
|
-
required: string[];
|
|
524
|
-
properties: {
|
|
525
|
-
use: {
|
|
526
|
-
type: string;
|
|
527
|
-
items: {
|
|
528
|
-
type: string;
|
|
529
|
-
};
|
|
530
|
-
};
|
|
531
|
-
do: {
|
|
532
|
-
$ref: string;
|
|
533
|
-
};
|
|
534
|
-
stash?: never;
|
|
535
|
-
};
|
|
536
|
-
})[];
|
|
537
|
-
}
|
|
538
|
-
namespace chain_config {
|
|
539
|
-
let type_55: string;
|
|
540
|
-
export { type_55 as type };
|
|
541
|
-
let required_16: string[];
|
|
542
|
-
export { required_16 as required };
|
|
543
|
-
export namespace properties_17 {
|
|
544
|
-
namespace input {
|
|
545
|
-
let type_56: string;
|
|
546
|
-
export { type_56 as type };
|
|
547
|
-
}
|
|
548
|
-
namespace steps {
|
|
549
|
-
let type_57: string;
|
|
550
|
-
export { type_57 as type };
|
|
551
|
-
export namespace items_4 {
|
|
552
|
-
let $ref_40: string;
|
|
553
|
-
export { $ref_40 as $ref };
|
|
554
|
-
}
|
|
555
|
-
export { items_4 as items };
|
|
556
|
-
}
|
|
557
|
-
namespace output {
|
|
558
|
-
let type_58: string;
|
|
559
|
-
export { type_58 as type };
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
export { properties_17 as properties };
|
|
563
|
-
}
|
|
564
|
-
namespace chain_entry {
|
|
565
|
-
let type_59: string;
|
|
566
|
-
export { type_59 as type };
|
|
567
|
-
let oneOf_1: ({
|
|
568
|
-
type: string;
|
|
569
|
-
required: string[];
|
|
570
|
-
properties: {
|
|
571
|
-
step: {
|
|
572
|
-
type: string;
|
|
573
|
-
};
|
|
574
|
-
fn: {
|
|
575
|
-
type: string;
|
|
576
|
-
};
|
|
577
|
-
stage?: never;
|
|
578
|
-
project?: never;
|
|
579
|
-
};
|
|
580
|
-
} | {
|
|
581
|
-
type: string;
|
|
582
|
-
required: string[];
|
|
583
|
-
properties: {
|
|
584
|
-
stage: {
|
|
585
|
-
type: string;
|
|
586
|
-
};
|
|
587
|
-
project: {
|
|
588
|
-
type: string;
|
|
589
|
-
};
|
|
590
|
-
step?: never;
|
|
591
|
-
fn?: never;
|
|
592
|
-
};
|
|
593
|
-
})[];
|
|
594
|
-
export { oneOf_1 as oneOf };
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
declare namespace __json_default_export {
|
|
598
|
-
export { $schema, $id, title, description, type, items, $defs };
|
|
599
|
-
}
|
|
600
|
-
//#endregion
|
|
4
|
+
import { A as ToolExecContext, B as ProviderCapability, C as StepRecord, D as ToolApprovalHandler, E as Tool, F as AiSdkProviderAdapter, G as ClaudeCliProviderReported, H as ProviderTransport, I as EffortTranslation, L as ExternalAgentAdapter, M as TurnResult, N as UsageTotals, O as ToolApprovalRequest, P as UserContentPart, R as NativeProviderAdapter, S as RetryPolicy, T as StreamChunk, U as RawProviderUsage, V as ProviderFactory, W as default_normalize_usage, _ as PricingTable, a as Engine, b as ResolvedModel, c as FinishReason, d as GenerateTiming, f as Message, g as Pricing, h as PrepareStepResult, i as EffortLevel, j as TurnRequest, k as ToolCallRecord, l as GenerateOptions, m as PrepareStepHook, n as AssistantContentPart, o as EngineConfig, p as PrepareStepContext, r as CostBreakdown, s as EngineDefaults, t as AiSdkTelemetrySettings, u as GenerateResult, v as ProviderConfigMap, w as StepTiming, x as RetryFailureKind, y as ProviderInit, z as ProviderAdapter } from "./types-C_Rmcgck.js";
|
|
601
5
|
//#region src/core/runner.d.ts
|
|
602
6
|
type RunOptions = {
|
|
603
7
|
readonly install_signal_handlers?: boolean;
|
|
@@ -1267,13 +671,13 @@ export declare function chain<i = never, k extends string = 'input'>(input_name?
|
|
|
1267
671
|
//#endregion
|
|
1268
672
|
//#region src/core/errors.d.ts
|
|
1269
673
|
export declare class timeout_error extends Error {
|
|
1270
|
-
readonly kind:
|
|
674
|
+
readonly kind: 'timeout_error';
|
|
1271
675
|
readonly path?: ReadonlyArray<string>;
|
|
1272
676
|
readonly timeout_ms: number;
|
|
1273
677
|
constructor(message: string, timeout_ms: number);
|
|
1274
678
|
}
|
|
1275
679
|
export declare class suspended_error extends Error {
|
|
1276
|
-
readonly kind:
|
|
680
|
+
readonly kind: 'suspended_error';
|
|
1277
681
|
readonly path?: ReadonlyArray<string>;
|
|
1278
682
|
readonly suspend_id: string;
|
|
1279
683
|
readonly payload: unknown;
|
|
@@ -1281,14 +685,14 @@ export declare class suspended_error extends Error {
|
|
|
1281
685
|
constructor(suspend_id: string, payload: unknown, message?: string, deadline_ms?: number);
|
|
1282
686
|
}
|
|
1283
687
|
export declare class resume_validation_error extends Error {
|
|
1284
|
-
readonly kind:
|
|
688
|
+
readonly kind: 'resume_validation_error';
|
|
1285
689
|
readonly path?: ReadonlyArray<string>;
|
|
1286
690
|
readonly issues: ReadonlyArray<SchemaIssue>;
|
|
1287
691
|
readonly suspend_id: string | undefined;
|
|
1288
692
|
constructor(message: string, issues: ReadonlyArray<SchemaIssue>, suspend_id?: string);
|
|
1289
693
|
}
|
|
1290
694
|
export declare class flow_changed_error extends Error {
|
|
1291
|
-
readonly kind:
|
|
695
|
+
readonly kind: 'flow_changed_error';
|
|
1292
696
|
readonly path?: ReadonlyArray<string>;
|
|
1293
697
|
readonly run_id: string;
|
|
1294
698
|
readonly started_on: string;
|
|
@@ -1296,19 +700,19 @@ export declare class flow_changed_error extends Error {
|
|
|
1296
700
|
constructor(run_id: string, started_on: string, continued_on: string);
|
|
1297
701
|
}
|
|
1298
702
|
export declare class run_not_found_error extends Error {
|
|
1299
|
-
readonly kind:
|
|
703
|
+
readonly kind: 'run_not_found_error';
|
|
1300
704
|
readonly path?: ReadonlyArray<string>;
|
|
1301
705
|
readonly run_id: string;
|
|
1302
706
|
constructor(run_id: string);
|
|
1303
707
|
}
|
|
1304
708
|
export declare class describe_cycle_error extends Error {
|
|
1305
|
-
readonly kind:
|
|
709
|
+
readonly kind: 'describe_cycle_error';
|
|
1306
710
|
readonly path?: ReadonlyArray<string>;
|
|
1307
711
|
readonly step_id: string;
|
|
1308
712
|
constructor(step_id: string, message?: string);
|
|
1309
713
|
}
|
|
1310
714
|
export declare class aborted_error extends Error {
|
|
1311
|
-
readonly kind:
|
|
715
|
+
readonly kind: 'aborted_error';
|
|
1312
716
|
readonly path?: ReadonlyArray<string>;
|
|
1313
717
|
readonly reason?: unknown;
|
|
1314
718
|
readonly step_index?: number;
|
|
@@ -1356,13 +760,455 @@ export declare function is_step(value: unknown): value is AnyStep;
|
|
|
1356
760
|
* `composites/__tests__/coverage.test.ts` covers the four composite kinds
|
|
1357
761
|
* whose factories live outside core.
|
|
1358
762
|
*/
|
|
1359
|
-
export declare const STEP_KINDS: readonly [
|
|
763
|
+
export declare const STEP_KINDS: readonly ['step', 'sequence', 'parallel', 'branch', 'map', 'pipe', 'retry', 'fallback', 'timeout', 'loop', 'compose', 'adversarial', 'ensemble', 'tournament', 'consensus', 'checkpoint', 'suspend', 'scope', 'stash', 'use', 'chain'];
|
|
1360
764
|
type StepKind = (typeof STEP_KINDS)[number];
|
|
1361
765
|
/**
|
|
1362
766
|
* Check whether a value is one of the registered `Step.kind` strings.
|
|
1363
767
|
*/
|
|
1364
768
|
export declare function is_step_kind(value: unknown): value is StepKind;
|
|
1365
769
|
//#endregion
|
|
770
|
+
//#region src/core/flow_schema.d.ts
|
|
771
|
+
/**
|
|
772
|
+
* JSON Schema for the YAML flow representation, exported as `flow_schema`.
|
|
773
|
+
*
|
|
774
|
+
* It lives in a TypeScript module, not a .json file, because the published
|
|
775
|
+
* declarations come from tsgo under TypeScript 7, and tsgo writes none for a
|
|
776
|
+
* JSON module, which leaves the build nothing to type this export with.
|
|
777
|
+
*/
|
|
778
|
+
export declare const flow_schema: {
|
|
779
|
+
$schema: string;
|
|
780
|
+
$id: string;
|
|
781
|
+
title: string;
|
|
782
|
+
description: string;
|
|
783
|
+
type: string;
|
|
784
|
+
items: {
|
|
785
|
+
$ref: string;
|
|
786
|
+
};
|
|
787
|
+
$defs: {
|
|
788
|
+
compose_entry: {
|
|
789
|
+
type: string;
|
|
790
|
+
required: string[];
|
|
791
|
+
properties: {
|
|
792
|
+
compose: {
|
|
793
|
+
type: string;
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
allOf: {
|
|
797
|
+
$ref: string;
|
|
798
|
+
}[];
|
|
799
|
+
};
|
|
800
|
+
node: {
|
|
801
|
+
type: string;
|
|
802
|
+
anyOf: {
|
|
803
|
+
required: string[];
|
|
804
|
+
}[];
|
|
805
|
+
properties: {
|
|
806
|
+
step: {
|
|
807
|
+
$ref: string;
|
|
808
|
+
};
|
|
809
|
+
sequence: {
|
|
810
|
+
$ref: string;
|
|
811
|
+
};
|
|
812
|
+
parallel: {
|
|
813
|
+
$ref: string;
|
|
814
|
+
};
|
|
815
|
+
branch: {
|
|
816
|
+
$ref: string;
|
|
817
|
+
};
|
|
818
|
+
map: {
|
|
819
|
+
$ref: string;
|
|
820
|
+
};
|
|
821
|
+
pipe: {
|
|
822
|
+
$ref: string;
|
|
823
|
+
};
|
|
824
|
+
retry: {
|
|
825
|
+
$ref: string;
|
|
826
|
+
};
|
|
827
|
+
fallback: {
|
|
828
|
+
$ref: string;
|
|
829
|
+
};
|
|
830
|
+
timeout: {
|
|
831
|
+
$ref: string;
|
|
832
|
+
};
|
|
833
|
+
loop: {
|
|
834
|
+
$ref: string;
|
|
835
|
+
};
|
|
836
|
+
compose_node: {
|
|
837
|
+
$ref: string;
|
|
838
|
+
};
|
|
839
|
+
adversarial: {
|
|
840
|
+
$ref: string;
|
|
841
|
+
};
|
|
842
|
+
ensemble: {
|
|
843
|
+
$ref: string;
|
|
844
|
+
};
|
|
845
|
+
tournament: {
|
|
846
|
+
$ref: string;
|
|
847
|
+
};
|
|
848
|
+
consensus: {
|
|
849
|
+
$ref: string;
|
|
850
|
+
};
|
|
851
|
+
checkpoint: {
|
|
852
|
+
$ref: string;
|
|
853
|
+
};
|
|
854
|
+
suspend: {
|
|
855
|
+
$ref: string;
|
|
856
|
+
};
|
|
857
|
+
scope: {
|
|
858
|
+
$ref: string;
|
|
859
|
+
};
|
|
860
|
+
chain: {
|
|
861
|
+
$ref: string;
|
|
862
|
+
};
|
|
863
|
+
ref: {
|
|
864
|
+
type: string;
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
step_config: {
|
|
869
|
+
type: string;
|
|
870
|
+
required: string[];
|
|
871
|
+
properties: {
|
|
872
|
+
id: {
|
|
873
|
+
type: string;
|
|
874
|
+
};
|
|
875
|
+
fn: {
|
|
876
|
+
type: string;
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
};
|
|
880
|
+
sequence_config: {
|
|
881
|
+
type: string;
|
|
882
|
+
items: {
|
|
883
|
+
$ref: string;
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
parallel_config: {
|
|
887
|
+
type: string;
|
|
888
|
+
additionalProperties: {
|
|
889
|
+
$ref: string;
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
branch_config: {
|
|
893
|
+
type: string;
|
|
894
|
+
required: string[];
|
|
895
|
+
properties: {
|
|
896
|
+
when: {
|
|
897
|
+
type: string;
|
|
898
|
+
};
|
|
899
|
+
then: {
|
|
900
|
+
$ref: string;
|
|
901
|
+
};
|
|
902
|
+
otherwise: {
|
|
903
|
+
$ref: string;
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
};
|
|
907
|
+
map_config: {
|
|
908
|
+
type: string;
|
|
909
|
+
required: string[];
|
|
910
|
+
properties: {
|
|
911
|
+
items: {
|
|
912
|
+
type: string;
|
|
913
|
+
};
|
|
914
|
+
do: {
|
|
915
|
+
$ref: string;
|
|
916
|
+
};
|
|
917
|
+
concurrency: {
|
|
918
|
+
type: string;
|
|
919
|
+
minimum: number;
|
|
920
|
+
};
|
|
921
|
+
settle: {
|
|
922
|
+
type: string;
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
pipe_config: {
|
|
927
|
+
type: string;
|
|
928
|
+
required: string[];
|
|
929
|
+
properties: {
|
|
930
|
+
of: {
|
|
931
|
+
$ref: string;
|
|
932
|
+
};
|
|
933
|
+
fn: {
|
|
934
|
+
type: string;
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
retry_config: {
|
|
939
|
+
type: string;
|
|
940
|
+
required: string[];
|
|
941
|
+
properties: {
|
|
942
|
+
do: {
|
|
943
|
+
$ref: string;
|
|
944
|
+
};
|
|
945
|
+
max_attempts: {
|
|
946
|
+
type: string;
|
|
947
|
+
minimum: number;
|
|
948
|
+
};
|
|
949
|
+
backoff_ms: {
|
|
950
|
+
type: string;
|
|
951
|
+
minimum: number;
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
fallback_config: {
|
|
956
|
+
type: string;
|
|
957
|
+
required: string[];
|
|
958
|
+
properties: {
|
|
959
|
+
primary: {
|
|
960
|
+
$ref: string;
|
|
961
|
+
};
|
|
962
|
+
backup: {
|
|
963
|
+
$ref: string;
|
|
964
|
+
};
|
|
965
|
+
};
|
|
966
|
+
};
|
|
967
|
+
timeout_config: {
|
|
968
|
+
type: string;
|
|
969
|
+
required: string[];
|
|
970
|
+
properties: {
|
|
971
|
+
do: {
|
|
972
|
+
$ref: string;
|
|
973
|
+
};
|
|
974
|
+
ms: {
|
|
975
|
+
type: string;
|
|
976
|
+
minimum: number;
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
};
|
|
980
|
+
compose_node_config: {
|
|
981
|
+
type: string;
|
|
982
|
+
required: string[];
|
|
983
|
+
properties: {
|
|
984
|
+
name: {
|
|
985
|
+
type: string;
|
|
986
|
+
minLength: number;
|
|
987
|
+
};
|
|
988
|
+
do: {
|
|
989
|
+
$ref: string;
|
|
990
|
+
};
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
loop_config: {
|
|
994
|
+
type: string;
|
|
995
|
+
required: string[];
|
|
996
|
+
properties: {
|
|
997
|
+
name: {
|
|
998
|
+
type: string;
|
|
999
|
+
minLength: number;
|
|
1000
|
+
};
|
|
1001
|
+
init: {
|
|
1002
|
+
type: string;
|
|
1003
|
+
};
|
|
1004
|
+
body: {
|
|
1005
|
+
$ref: string;
|
|
1006
|
+
};
|
|
1007
|
+
guard: {
|
|
1008
|
+
$ref: string;
|
|
1009
|
+
};
|
|
1010
|
+
finish: {
|
|
1011
|
+
type: string;
|
|
1012
|
+
};
|
|
1013
|
+
max_rounds: {
|
|
1014
|
+
type: string;
|
|
1015
|
+
minimum: number;
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
adversarial_config: {
|
|
1020
|
+
type: string;
|
|
1021
|
+
required: string[];
|
|
1022
|
+
properties: {
|
|
1023
|
+
build: {
|
|
1024
|
+
$ref: string;
|
|
1025
|
+
};
|
|
1026
|
+
critique: {
|
|
1027
|
+
$ref: string;
|
|
1028
|
+
};
|
|
1029
|
+
accept: {
|
|
1030
|
+
type: string;
|
|
1031
|
+
};
|
|
1032
|
+
max_rounds: {
|
|
1033
|
+
type: string;
|
|
1034
|
+
minimum: number;
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1037
|
+
};
|
|
1038
|
+
ensemble_config: {
|
|
1039
|
+
type: string;
|
|
1040
|
+
required: string[];
|
|
1041
|
+
properties: {
|
|
1042
|
+
members: {
|
|
1043
|
+
type: string;
|
|
1044
|
+
additionalProperties: {
|
|
1045
|
+
$ref: string;
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
score: {
|
|
1049
|
+
type: string;
|
|
1050
|
+
};
|
|
1051
|
+
select: {
|
|
1052
|
+
type: string;
|
|
1053
|
+
enum: string[];
|
|
1054
|
+
};
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
tournament_config: {
|
|
1058
|
+
type: string;
|
|
1059
|
+
required: string[];
|
|
1060
|
+
properties: {
|
|
1061
|
+
members: {
|
|
1062
|
+
type: string;
|
|
1063
|
+
additionalProperties: {
|
|
1064
|
+
$ref: string;
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
compare: {
|
|
1068
|
+
type: string;
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
};
|
|
1072
|
+
consensus_config: {
|
|
1073
|
+
type: string;
|
|
1074
|
+
required: string[];
|
|
1075
|
+
properties: {
|
|
1076
|
+
members: {
|
|
1077
|
+
type: string;
|
|
1078
|
+
additionalProperties: {
|
|
1079
|
+
$ref: string;
|
|
1080
|
+
};
|
|
1081
|
+
};
|
|
1082
|
+
agree: {
|
|
1083
|
+
type: string;
|
|
1084
|
+
};
|
|
1085
|
+
max_rounds: {
|
|
1086
|
+
type: string;
|
|
1087
|
+
minimum: number;
|
|
1088
|
+
};
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
checkpoint_config: {
|
|
1092
|
+
type: string;
|
|
1093
|
+
required: string[];
|
|
1094
|
+
properties: {
|
|
1095
|
+
do: {
|
|
1096
|
+
$ref: string;
|
|
1097
|
+
};
|
|
1098
|
+
key: {
|
|
1099
|
+
type: string;
|
|
1100
|
+
};
|
|
1101
|
+
};
|
|
1102
|
+
};
|
|
1103
|
+
suspend_config: {
|
|
1104
|
+
type: string;
|
|
1105
|
+
required: string[];
|
|
1106
|
+
properties: {
|
|
1107
|
+
id: {
|
|
1108
|
+
type: string;
|
|
1109
|
+
};
|
|
1110
|
+
on: {
|
|
1111
|
+
type: string;
|
|
1112
|
+
};
|
|
1113
|
+
resume_schema: {
|
|
1114
|
+
type: string;
|
|
1115
|
+
};
|
|
1116
|
+
combine: {
|
|
1117
|
+
type: string;
|
|
1118
|
+
};
|
|
1119
|
+
deadline_ms: {
|
|
1120
|
+
type: string;
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
scope_config: {
|
|
1125
|
+
type: string;
|
|
1126
|
+
items: {
|
|
1127
|
+
$ref: string;
|
|
1128
|
+
};
|
|
1129
|
+
};
|
|
1130
|
+
scope_entry: {
|
|
1131
|
+
type: string;
|
|
1132
|
+
oneOf: ({
|
|
1133
|
+
type: string;
|
|
1134
|
+
required: string[];
|
|
1135
|
+
properties: {
|
|
1136
|
+
stash: {
|
|
1137
|
+
type: string;
|
|
1138
|
+
};
|
|
1139
|
+
do: {
|
|
1140
|
+
$ref: string;
|
|
1141
|
+
};
|
|
1142
|
+
use?: never;
|
|
1143
|
+
};
|
|
1144
|
+
} | {
|
|
1145
|
+
type: string;
|
|
1146
|
+
required: string[];
|
|
1147
|
+
properties: {
|
|
1148
|
+
stash?: never;
|
|
1149
|
+
use: {
|
|
1150
|
+
type: string;
|
|
1151
|
+
items: {
|
|
1152
|
+
type: string;
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
do: {
|
|
1156
|
+
$ref: string;
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
})[];
|
|
1160
|
+
};
|
|
1161
|
+
chain_config: {
|
|
1162
|
+
type: string;
|
|
1163
|
+
required: string[];
|
|
1164
|
+
properties: {
|
|
1165
|
+
input: {
|
|
1166
|
+
type: string;
|
|
1167
|
+
};
|
|
1168
|
+
steps: {
|
|
1169
|
+
type: string;
|
|
1170
|
+
items: {
|
|
1171
|
+
$ref: string;
|
|
1172
|
+
};
|
|
1173
|
+
};
|
|
1174
|
+
output: {
|
|
1175
|
+
type: string;
|
|
1176
|
+
};
|
|
1177
|
+
};
|
|
1178
|
+
};
|
|
1179
|
+
chain_entry: {
|
|
1180
|
+
type: string;
|
|
1181
|
+
oneOf: ({
|
|
1182
|
+
type: string;
|
|
1183
|
+
required: string[];
|
|
1184
|
+
properties: {
|
|
1185
|
+
step: {
|
|
1186
|
+
type: string;
|
|
1187
|
+
};
|
|
1188
|
+
fn: {
|
|
1189
|
+
type: string;
|
|
1190
|
+
};
|
|
1191
|
+
stage?: never;
|
|
1192
|
+
project?: never;
|
|
1193
|
+
};
|
|
1194
|
+
} | {
|
|
1195
|
+
type: string;
|
|
1196
|
+
required: string[];
|
|
1197
|
+
properties: {
|
|
1198
|
+
step?: never;
|
|
1199
|
+
fn?: never;
|
|
1200
|
+
stage: {
|
|
1201
|
+
type: string;
|
|
1202
|
+
};
|
|
1203
|
+
project: {
|
|
1204
|
+
type: string;
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
})[];
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
//#endregion
|
|
1366
1212
|
//#region src/engine/create_engine.d.ts
|
|
1367
1213
|
/**
|
|
1368
1214
|
* Validate `config` and construct an `Engine`.
|
|
@@ -1418,7 +1264,7 @@ export declare function claude_cli_reported(source: {
|
|
|
1418
1264
|
//#endregion
|
|
1419
1265
|
//#region src/engine/errors.d.ts
|
|
1420
1266
|
export declare class rate_limit_error extends Error {
|
|
1421
|
-
readonly kind:
|
|
1267
|
+
readonly kind: 'rate_limit_error';
|
|
1422
1268
|
readonly path?: ReadonlyArray<string>;
|
|
1423
1269
|
readonly retry_after_ms: number | undefined;
|
|
1424
1270
|
readonly attempts: number;
|
|
@@ -1430,7 +1276,7 @@ export declare class rate_limit_error extends Error {
|
|
|
1430
1276
|
});
|
|
1431
1277
|
}
|
|
1432
1278
|
export declare class provider_error extends Error {
|
|
1433
|
-
readonly kind:
|
|
1279
|
+
readonly kind: 'provider_error';
|
|
1434
1280
|
readonly path?: ReadonlyArray<string>;
|
|
1435
1281
|
readonly status: number | undefined;
|
|
1436
1282
|
readonly body: string | undefined;
|
|
@@ -1442,14 +1288,14 @@ export declare class provider_error extends Error {
|
|
|
1442
1288
|
});
|
|
1443
1289
|
}
|
|
1444
1290
|
export declare class schema_validation_error extends Error {
|
|
1445
|
-
readonly kind:
|
|
1291
|
+
readonly kind: 'schema_validation_error';
|
|
1446
1292
|
readonly path?: ReadonlyArray<string>;
|
|
1447
1293
|
readonly schema_issues: ReadonlyArray<SchemaIssue>;
|
|
1448
1294
|
readonly raw_text: string;
|
|
1449
1295
|
constructor(message: string, schema_issues: ReadonlyArray<SchemaIssue>, raw_text: string);
|
|
1450
1296
|
}
|
|
1451
1297
|
export declare class tool_error extends Error {
|
|
1452
|
-
readonly kind:
|
|
1298
|
+
readonly kind: 'tool_error';
|
|
1453
1299
|
readonly path?: ReadonlyArray<string>;
|
|
1454
1300
|
readonly tool_name: string;
|
|
1455
1301
|
readonly tool_call_id: string;
|
|
@@ -1461,7 +1307,7 @@ export declare class tool_error extends Error {
|
|
|
1461
1307
|
});
|
|
1462
1308
|
}
|
|
1463
1309
|
export declare class tool_approval_denied_error extends Error {
|
|
1464
|
-
readonly kind:
|
|
1310
|
+
readonly kind: 'tool_approval_denied_error';
|
|
1465
1311
|
readonly path?: ReadonlyArray<string>;
|
|
1466
1312
|
readonly tool_name: string;
|
|
1467
1313
|
readonly step_index: number;
|
|
@@ -1473,7 +1319,7 @@ export declare class tool_approval_denied_error extends Error {
|
|
|
1473
1319
|
});
|
|
1474
1320
|
}
|
|
1475
1321
|
export declare class model_required_error extends Error {
|
|
1476
|
-
readonly kind:
|
|
1322
|
+
readonly kind: 'model_required_error';
|
|
1477
1323
|
readonly path?: ReadonlyArray<string>;
|
|
1478
1324
|
constructor(message?: string);
|
|
1479
1325
|
}
|
|
@@ -1483,7 +1329,7 @@ export declare class model_required_error extends Error {
|
|
|
1483
1329
|
* the message alone rather than needing the engine config alongside it.
|
|
1484
1330
|
*/
|
|
1485
1331
|
export declare class provider_not_configured_error extends Error {
|
|
1486
|
-
readonly kind:
|
|
1332
|
+
readonly kind: 'provider_not_configured_error';
|
|
1487
1333
|
readonly path?: ReadonlyArray<string>;
|
|
1488
1334
|
readonly provider: string;
|
|
1489
1335
|
readonly configured: ReadonlyArray<string>;
|
|
@@ -1496,38 +1342,38 @@ export declare class provider_not_configured_error extends Error {
|
|
|
1496
1342
|
* the engine can route to.
|
|
1497
1343
|
*/
|
|
1498
1344
|
export declare class provider_required_error extends Error {
|
|
1499
|
-
readonly kind:
|
|
1345
|
+
readonly kind: 'provider_required_error';
|
|
1500
1346
|
readonly path?: ReadonlyArray<string>;
|
|
1501
1347
|
readonly configured: ReadonlyArray<string>;
|
|
1502
1348
|
constructor(configured: ReadonlyArray<string>);
|
|
1503
1349
|
}
|
|
1504
1350
|
export declare class engine_config_error extends Error {
|
|
1505
|
-
readonly kind:
|
|
1351
|
+
readonly kind: 'engine_config_error';
|
|
1506
1352
|
readonly path?: ReadonlyArray<string>;
|
|
1507
1353
|
readonly provider: string | undefined;
|
|
1508
1354
|
constructor(message: string, provider?: string);
|
|
1509
1355
|
}
|
|
1510
1356
|
export declare class on_chunk_error extends Error {
|
|
1511
|
-
readonly kind:
|
|
1357
|
+
readonly kind: 'on_chunk_error';
|
|
1512
1358
|
readonly path?: ReadonlyArray<string>;
|
|
1513
1359
|
readonly cause: unknown;
|
|
1514
1360
|
constructor(message: string, cause: unknown);
|
|
1515
1361
|
}
|
|
1516
1362
|
export declare class provider_capability_error extends Error {
|
|
1517
|
-
readonly kind:
|
|
1363
|
+
readonly kind: 'provider_capability_error';
|
|
1518
1364
|
readonly path?: ReadonlyArray<string>;
|
|
1519
1365
|
readonly provider: string;
|
|
1520
1366
|
readonly capability: string;
|
|
1521
1367
|
constructor(provider: string, capability: string, detail?: string);
|
|
1522
1368
|
}
|
|
1523
1369
|
export declare class engine_disposed_error extends Error {
|
|
1524
|
-
readonly kind:
|
|
1370
|
+
readonly kind: 'engine_disposed_error';
|
|
1525
1371
|
readonly path?: ReadonlyArray<string>;
|
|
1526
1372
|
constructor(message?: string);
|
|
1527
1373
|
}
|
|
1528
1374
|
type ClaudeCliErrorReason = 'binary_not_found' | 'auth_missing' | 'auth_expired' | 'api_key_missing' | 'startup_timeout' | 'stall_timeout' | 'no_result_event' | 'result_error' | 'subprocess_exit' | 'sandbox_unavailable' | 'engine_disposed' | 'parse_error';
|
|
1529
1375
|
export declare class claude_cli_error extends Error {
|
|
1530
|
-
readonly kind:
|
|
1376
|
+
readonly kind: 'claude_cli_error';
|
|
1531
1377
|
readonly path?: ReadonlyArray<string>;
|
|
1532
1378
|
readonly reason: ClaudeCliErrorReason;
|
|
1533
1379
|
readonly status: number | undefined;
|
|
@@ -1538,7 +1384,7 @@ export declare class claude_cli_error extends Error {
|
|
|
1538
1384
|
});
|
|
1539
1385
|
}
|
|
1540
1386
|
export declare class provider_auth_error extends Error {
|
|
1541
|
-
readonly kind:
|
|
1387
|
+
readonly kind: 'provider_auth_error';
|
|
1542
1388
|
readonly path?: ReadonlyArray<string>;
|
|
1543
1389
|
readonly provider: string;
|
|
1544
1390
|
readonly refresh_command: string | undefined;
|
|
@@ -1556,7 +1402,7 @@ export declare class provider_auth_error extends Error {
|
|
|
1556
1402
|
* and then failed validation after its repair attempts ran out.
|
|
1557
1403
|
*/
|
|
1558
1404
|
export declare class incomplete_generation_error extends Error {
|
|
1559
|
-
readonly kind:
|
|
1405
|
+
readonly kind: 'incomplete_generation_error';
|
|
1560
1406
|
readonly path?: ReadonlyArray<string>;
|
|
1561
1407
|
readonly finish_reason: FinishReason;
|
|
1562
1408
|
readonly raw_text: string;
|
|
@@ -1889,7 +1735,7 @@ export declare function tournament<i, o, projected = TournamentResult<o>>(config
|
|
|
1889
1735
|
* how a caller tells a benched flow's usage error apart from a case failure.
|
|
1890
1736
|
*/
|
|
1891
1737
|
export declare class bench_suspend_error extends Error {
|
|
1892
|
-
readonly kind:
|
|
1738
|
+
readonly kind: 'bench_suspend_error';
|
|
1893
1739
|
readonly path?: ReadonlyArray<string>;
|
|
1894
1740
|
readonly case_id: string;
|
|
1895
1741
|
readonly suspend_id: string;
|
|
@@ -2169,5 +2015,5 @@ export declare function model_step<T = string>(cfg: Omit<ModelCallConfig<T>, 'pr
|
|
|
2169
2015
|
*/
|
|
2170
2016
|
export declare function forward_standard_env(): Record<string, string>;
|
|
2171
2017
|
//#endregion
|
|
2172
|
-
export { type AdversarialBuildInput, type AdversarialConfig, type AdversarialCritiqueResult, type AdversarialResult, type AiSdkProviderAdapter, type AiSdkTelemetrySettings, type AnySchema, type AnyStep, type AssistantContentPart, type BenchCase, type BenchOptions, type BenchReport, type BenchSummary, type BracketRecord, type BranchConfig, type Candidate, type CaseResult, type Chain, type ChainOpen, type ChainStepOptions, type CheckpointConfig, type CheckpointEvent, type CheckpointStatus, type CheckpointStore, type ClaudeCliErrorReason, type ClaudeCliProviderReported, type CleanupFn, type ComposeConfig, type ConsensusConfig, type ConsensusResult, type CostBreakdown, type CustomTrajectoryEvent, type DescribeOptions, type DiagramOptions, type DurableConfig, type DurableOutcome, type DurableRunOptions, type DurableRunState, type DurableRuns, type DurableStore, type EffortLevel, type EffortTranslation, type EmitEvent, type Engine, type EngineConfig, type EngineDefaults, type EnsembleConfig, type EnsembleResult, type EnsembleStepConfig, type EnsembleStepResult, type ExternalAgentAdapter, type FallbackOptions, type FallbackOutcome, type FallbackProjection, type FinishReason, type FlowNode, type FlowValue, type GateConfig, type GenerateOptions, type GenerateResult, type GenerateTiming, type HistoryEntry, type ImproveBudget, type ImproveConfig, type ImproveResult, type ImproveRoundInput, type Improvement, type Judge, type JudgeArgs, type JudgeLlmConfig, type JudgeWithFn, type LearnConfig, type LearnInput, type LearnResult, type Lesson, type LoopConfig, type LoopGuardPredicate, type LoopGuardResult, type LoopOutcome, type MapConfig, type MapItemFailedEvent, type MapSettleConfig, type Message, type ModelCallConfig, type ModelCallInput, type NativeProviderAdapter, type ParallelOptions, type ParsedTrajectoryEvent, type PerCaseDelta, type PipeOptions, type PrepareStepContext, type PrepareStepHook, type PrepareStepResult, type Pricing, type PricingTable, type ProviderAdapter, type ProviderCapability, type ProviderConfigMap, type ProviderFactory, type ProviderInit, type ProviderTransport, type RawProviderUsage, type RegressionCompareOptions, type RegressionDelta, type RegressionReport, type ReplayHint, type ResolvedModel, type RetryConfig, type RetryFailureKind, type RetryOutcome, type RetryPolicy, type RetryProjection, type RunContext, type RunEndEvent, type RunEndStatus, type RunOptions, type RunOutcome, type SchemaIssue, type ScopeOptions, type ScopedCheckpointStore, type Score, type ScoredCandidate, type SequenceOptions, type Settled, type SettledError, type SpanEndEvent, type SpanStartEvent, type StashOptions, type Step, type StepFn, type StepInput, type StepKind, type StepMetadata, type StepOptions, type StepOutput, type StepRecord, type StepReplayedEvent, type StepTiming, type StreamChunk, type StreamingRunHandle, type SuspendConfig, type Throughput, type TimeoutOptions, type Tool, type ToolApprovalHandler, type ToolApprovalRequest, type ToolCallRecord, type ToolExecContext, type ToolSchema, type TournamentConfig, type TournamentResult, type TrajectoryEvent, type TrajectoryLogger, type TrajectoryParseResult, type TrajectorySource, type TurnRequest, type TurnResult, type UsageTotals, type UseOptions, type UserContentPart, default_normalize_usage,
|
|
2018
|
+
export { type AdversarialBuildInput, type AdversarialConfig, type AdversarialCritiqueResult, type AdversarialResult, type AiSdkProviderAdapter, type AiSdkTelemetrySettings, type AnySchema, type AnyStep, type AssistantContentPart, type BenchCase, type BenchOptions, type BenchReport, type BenchSummary, type BracketRecord, type BranchConfig, type Candidate, type CaseResult, type Chain, type ChainOpen, type ChainStepOptions, type CheckpointConfig, type CheckpointEvent, type CheckpointStatus, type CheckpointStore, type ClaudeCliErrorReason, type ClaudeCliProviderReported, type CleanupFn, type ComposeConfig, type ConsensusConfig, type ConsensusResult, type CostBreakdown, type CustomTrajectoryEvent, type DescribeOptions, type DiagramOptions, type DurableConfig, type DurableOutcome, type DurableRunOptions, type DurableRunState, type DurableRuns, type DurableStore, type EffortLevel, type EffortTranslation, type EmitEvent, type Engine, type EngineConfig, type EngineDefaults, type EnsembleConfig, type EnsembleResult, type EnsembleStepConfig, type EnsembleStepResult, type ExternalAgentAdapter, type FallbackOptions, type FallbackOutcome, type FallbackProjection, type FinishReason, type FlowNode, type FlowValue, type GateConfig, type GenerateOptions, type GenerateResult, type GenerateTiming, type HistoryEntry, type ImproveBudget, type ImproveConfig, type ImproveResult, type ImproveRoundInput, type Improvement, type Judge, type JudgeArgs, type JudgeLlmConfig, type JudgeWithFn, type LearnConfig, type LearnInput, type LearnResult, type Lesson, type LoopConfig, type LoopGuardPredicate, type LoopGuardResult, type LoopOutcome, type MapConfig, type MapItemFailedEvent, type MapSettleConfig, type Message, type ModelCallConfig, type ModelCallInput, type NativeProviderAdapter, type ParallelOptions, type ParsedTrajectoryEvent, type PerCaseDelta, type PipeOptions, type PrepareStepContext, type PrepareStepHook, type PrepareStepResult, type Pricing, type PricingTable, type ProviderAdapter, type ProviderCapability, type ProviderConfigMap, type ProviderFactory, type ProviderInit, type ProviderTransport, type RawProviderUsage, type RegressionCompareOptions, type RegressionDelta, type RegressionReport, type ReplayHint, type ResolvedModel, type RetryConfig, type RetryFailureKind, type RetryOutcome, type RetryPolicy, type RetryProjection, type RunContext, type RunEndEvent, type RunEndStatus, type RunOptions, type RunOutcome, type SchemaIssue, type ScopeOptions, type ScopedCheckpointStore, type Score, type ScoredCandidate, type SequenceOptions, type Settled, type SettledError, type SpanEndEvent, type SpanStartEvent, type StashOptions, type Step, type StepFn, type StepInput, type StepKind, type StepMetadata, type StepOptions, type StepOutput, type StepRecord, type StepReplayedEvent, type StepTiming, type StreamChunk, type StreamingRunHandle, type SuspendConfig, type Throughput, type TimeoutOptions, type Tool, type ToolApprovalHandler, type ToolApprovalRequest, type ToolCallRecord, type ToolExecContext, type ToolSchema, type TournamentConfig, type TournamentResult, type TrajectoryEvent, type TrajectoryLogger, type TrajectoryParseResult, type TrajectorySource, type TurnRequest, type TurnResult, type UsageTotals, type UseOptions, type UserContentPart, default_normalize_usage, is_checkpoint_event, is_custom_trajectory_event, is_emit_event, is_map_item_failed_event, is_run_end_event, is_span_end_event, is_span_start_event, is_step_replayed_event, parse_trajectory_event };
|
|
2173
2019
|
//# sourceMappingURL=index.d.ts.map
|