fascicle 0.17.8 → 0.18.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.
Files changed (66) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +25 -2
  3. package/dist/AGENTS.md +23 -11
  4. package/dist/acp.d.ts +3 -17
  5. package/dist/acp.js +25 -44
  6. package/dist/acp.js.map +1 -1
  7. package/dist/{adapters-CDUzZlby.js → adapters-CpKpDk7r.js} +9 -17
  8. package/dist/{adapters-CDUzZlby.js.map → adapters-CpKpDk7r.js.map} +1 -1
  9. package/dist/adapters.d.ts +1 -13
  10. package/dist/adapters.js +1 -1
  11. package/dist/agents.d.ts +3 -5
  12. package/dist/agents.js +2 -3
  13. package/dist/{console-CdB4pcFO.js → console-B1ozi_ii.js} +2 -3
  14. package/dist/{console-CdB4pcFO.js.map → console-B1ozi_ii.js.map} +1 -1
  15. package/dist/{core-Bfzt55Fl.js → core-BH7sWpEG.js} +34 -66
  16. package/dist/{core-Bfzt55Fl.js.map → core-BH7sWpEG.js.map} +1 -1
  17. package/dist/diagram_bin.d.ts +0 -2
  18. package/dist/diagram_bin.js +3 -5
  19. package/dist/diagram_bin.js.map +1 -1
  20. package/dist/{engine-D7ANZ8eq.js → engine-fOjYHcv6.js} +42 -79
  21. package/dist/{engine-D7ANZ8eq.js.map → engine-fOjYHcv6.js.map} +1 -1
  22. package/dist/index.d.ts +4 -98
  23. package/dist/index.js +27 -47
  24. package/dist/index.js.map +1 -1
  25. package/dist/{invoke-DnmWf8gE.js → invoke-7iu8db6V.js} +19 -12
  26. package/dist/{invoke-DnmWf8gE.js.map → invoke-7iu8db6V.js.map} +1 -1
  27. package/dist/{json_schema_to_standard-C4F4lXHE.js → json_schema_to_standard-BstoXjM8.js} +3 -4
  28. package/dist/{json_schema_to_standard-C4F4lXHE.js.map → json_schema_to_standard-BstoXjM8.js.map} +1 -1
  29. package/dist/{leading_system-CHSYz0h9.js → leading_system-BeQUSAim.js} +6 -10
  30. package/dist/{leading_system-CHSYz0h9.js.map → leading_system-BeQUSAim.js.map} +1 -1
  31. package/dist/{mcp-8mKK7eDY.js → mcp-CHJ88HiG.js} +9 -14
  32. package/dist/{mcp-8mKK7eDY.js.map → mcp-CHJ88HiG.js.map} +1 -1
  33. package/dist/mcp.d.ts +3 -11
  34. package/dist/mcp.js +2 -2
  35. package/dist/otel.d.ts +1 -5
  36. package/dist/otel.js +3 -6
  37. package/dist/otel.js.map +1 -1
  38. package/dist/{records-1HU7mWXf.js → records-Btlmvunj.js} +2 -3
  39. package/dist/{records-1HU7mWXf.js.map → records-Btlmvunj.js.map} +1 -1
  40. package/dist/{search-DjhdMsJ8.js → search-BZagxXtd.js} +7 -11
  41. package/dist/{search-DjhdMsJ8.js.map → search-BZagxXtd.js.map} +1 -1
  42. package/dist/search_worker.js +2 -3
  43. package/dist/stdio.d.ts +2 -6
  44. package/dist/stdio.js +5 -7
  45. package/dist/stdio.js.map +1 -1
  46. package/dist/testing.d.ts +2 -18
  47. package/dist/testing.js +12 -21
  48. package/dist/testing.js.map +1 -1
  49. package/dist/{trajectory-DeURWIhj.js → trajectory-CkCFZWNR.js} +2 -3
  50. package/dist/{trajectory-DeURWIhj.js.map → trajectory-CkCFZWNR.js.map} +1 -1
  51. package/dist/{trajectory-BKGNxi7u.d.ts → trajectory-Dt0-A7kb.d.ts} +1 -3
  52. package/dist/{types-CPqLZOEr.d.ts → types-BUXt_zgJ.d.ts} +1 -3
  53. package/dist/{types-BK0UW28o.d.ts → types-CvghbZ0x.d.ts} +1 -5
  54. package/dist/{types-C6PB2aP0.d.ts → types-Dk9tLpUq.d.ts} +3 -9
  55. package/dist/ui.d.ts +1 -3
  56. package/dist/ui.js +1 -2
  57. package/dist/viewer-app/assets/index-D8Tb3drm.js +4 -0
  58. package/dist/viewer-app/index.html +1 -1
  59. package/dist/viewer.d.ts +1 -11
  60. package/dist/viewer.js +8 -14
  61. package/dist/viewer.js.map +1 -1
  62. package/dist/web.d.ts +83 -0
  63. package/dist/web.js +2888 -0
  64. package/dist/web.js.map +1 -0
  65. package/package.json +34 -28
  66. package/dist/viewer-app/assets/index-YrQFld-l.js +0 -4
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
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
- import { n as SchemaIssue, r as ToolSchema, t as AnySchema } from "./types-BK0UW28o.js";
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-BKGNxi7u.js";
4
- import { A as StepTiming, B as UsageTotals, C as ProviderConfigMap, D as RetryFailureKind, E as ResolvedModel, F as ToolCallRecord, G as NativeProviderAdapter, H as AiSdkProviderAdapter, I as ToolExecContext, J as ProviderFactory, K as ProviderAdapter, L as TruncatedTurnPolicy, M as Tool, N as ToolApprovalHandler, O as RetryPolicy, P as ToolApprovalRequest, Q as ClaudeCliProviderReported, R as TurnRequest, S as PricingTable, T as ProviderOptions, U as EffortTranslation, V as UserContentPart, W as ExternalAgentAdapter, X as RawProviderUsage, Y as ProviderTransport, Z as default_normalize_usage, _ as Message, a as CacheSetting, b as PrepareStepResult, c as CostBreakdown, d as EngineConfig, f as EngineDefaults, g as GenerateTiming, h as GenerateResult, i as BedrockCredentials, j as StreamChunk, k as StepRecord, l as EffortLevel, m as GenerateOptions, n as AssistantContentPart, o as CaptureLevel, p as FinishReason, q as ProviderCapability, r as BedrockCredentialProvider, s as CapturePayload, t as AiSdkTelemetrySettings, u as Engine, v as PrepareStepContext, w as ProviderInit, x as Pricing, y as PrepareStepHook, z as TurnResult } from "./types-C6PB2aP0.js";
5
- //#region src/core/runner.d.ts
1
+ import { A as StepTiming, B as UsageTotals, C as ProviderConfigMap, D as RetryFailureKind, E as ResolvedModel, F as ToolCallRecord, G as NativeProviderAdapter, H as AiSdkProviderAdapter, I as ToolExecContext, J as ProviderFactory, K as ProviderAdapter, L as TruncatedTurnPolicy, M as Tool, N as ToolApprovalHandler, O as RetryPolicy, P as ToolApprovalRequest, Q as ClaudeCliProviderReported, R as TurnRequest, S as PricingTable, T as ProviderOptions, U as EffortTranslation, V as UserContentPart, W as ExternalAgentAdapter, X as RawProviderUsage, Y as ProviderTransport, Z as default_normalize_usage, _ as Message, a as CacheSetting, b as PrepareStepResult, c as CostBreakdown, d as EngineConfig, f as EngineDefaults, g as GenerateTiming, h as GenerateResult, i as BedrockCredentials, j as StreamChunk, k as StepRecord, l as EffortLevel, m as GenerateOptions, n as AssistantContentPart, o as CaptureLevel, p as FinishReason, q as ProviderCapability, r as BedrockCredentialProvider, s as CapturePayload, t as AiSdkTelemetrySettings, u as Engine, v as PrepareStepContext, w as ProviderInit, x as Pricing, y as PrepareStepHook, z as TurnResult } from "./types-Dk9tLpUq.js";
2
+ import { n as SchemaIssue, r as ToolSchema, t as AnySchema } from "./types-CvghbZ0x.js";
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-Dt0-A7kb.js";
4
+ 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-BUXt_zgJ.js";
6
5
  type RunOptions = {
7
6
  readonly install_signal_handlers?: boolean;
8
7
  readonly trajectory?: TrajectoryLogger;
@@ -62,8 +61,6 @@ export declare const run: typeof run_impl & {
62
61
  stream: typeof run_stream;
63
62
  until_suspended: typeof run_until_suspended;
64
63
  };
65
- //#endregion
66
- //#region src/core/durable.d.ts
67
64
  type Claims = Required<Pick<CheckpointStore, 'claim' | 'release'>>;
68
65
  /**
69
66
  * A store `durable` can keep runs in: one that scopes, and whose scopes can
@@ -137,8 +134,6 @@ type DurableRuns = {
137
134
  * `delete(run_id)` removes it, resolving false while a drive holds it.
138
135
  */
139
136
  export declare function durable(config: DurableConfig): DurableRuns;
140
- //#endregion
141
- //#region src/core/step.d.ts
142
137
  /**
143
138
  * Wrap a plain function as a `Step`, named or anonymous.
144
139
  *
@@ -152,8 +147,6 @@ export declare function durable(config: DurableConfig): DurableRuns;
152
147
  */
153
148
  export declare function step<i, o>(id: string, fn: StepFn<i, o>, options?: StepOptions): Step<i, o>;
154
149
  export declare function step<i, o>(fn: StepFn<i, o>): Step<i, o>;
155
- //#endregion
156
- //#region src/core/diagram.d.ts
157
150
  type DiagramOptions = {
158
151
  /** Throw `describe_cycle_error` on a cycle instead of drawing `<cycle>`, as `describe` does. */
159
152
  readonly strict?: boolean;
@@ -166,8 +159,6 @@ type DiagramOptions = {
166
159
  /** Draw a named composite's internal steps instead of only the parts it was built from. */
167
160
  readonly internals?: boolean;
168
161
  };
169
- //#endregion
170
- //#region src/core/replays.d.ts
171
162
  /**
172
163
  * A step that a resumed run can run again: its `id`, the `label` its row
173
164
  * carries in `describe.diagram`, and the ids of the gates it can run before,
@@ -178,8 +169,6 @@ type ReplayHint = {
178
169
  readonly label: string;
179
170
  readonly gates: ReadonlyArray<string>;
180
171
  };
181
- //#endregion
182
- //#region src/core/describe.d.ts
183
172
  type DescribeOptions = {
184
173
  readonly strict?: boolean;
185
174
  };
@@ -194,8 +183,6 @@ export declare const describe: {
194
183
  diagram: <i, o>(root: Step<i, o>, options?: DiagramOptions) => string;
195
184
  replays: <i, o>(root: Step<i, o>, options?: DescribeOptions) => ReadonlyArray<ReplayHint>;
196
185
  };
197
- //#endregion
198
- //#region src/core/display_name.d.ts
199
186
  /**
200
187
  * Resolve the human-readable label for `node`, falling back to `fallback`
201
188
  * (typically the step's kind) when neither display channel is populated.
@@ -203,8 +190,6 @@ export declare const describe: {
203
190
  * same way as the step it was drawn from.
204
191
  */
205
192
  export declare function resolve_display_name(node: Pick<AnyStep, 'config' | 'meta'>, fallback: string): string;
206
- //#endregion
207
- //#region src/core/step_id.d.ts
208
193
  /**
209
194
  * Step id validation.
210
195
  *
@@ -240,8 +225,6 @@ export declare function suggest_step_id(raw: string): string;
240
225
  * `remedy` says where the prose spelling belongs instead.
241
226
  */
242
227
  export declare function assert_valid_step_id(id: string, subject: string, remedy: string): void;
243
- //#endregion
244
- //#region src/core/sequence.d.ts
245
228
  type FirstInput<children> = children extends readonly [Step<infer i, unknown>, ...unknown[]] ? i : unknown;
246
229
  type LastOutput$1<children> = children extends readonly [...unknown[], Step<never, infer o>] ? o : children extends readonly [Step<never, infer o>] ? o : unknown;
247
230
  type OutputOf<s> = StepOutput<s>;
@@ -295,8 +278,6 @@ type SequenceOptions = {
295
278
  export declare function sequence<const children extends readonly unknown[]>(children: children & CheckedChildren<children>, options?: SequenceOptions): Step<FirstInput<children>, LastOutput$1<children>>;
296
279
  export declare function sequence<t>(children: ReadonlyArray<Step<t, t>>, options?: SequenceOptions): Step<t, t>;
297
280
  export declare function sequence<const children extends readonly unknown[]>(children: children & CheckedChildren<children>, options?: SequenceOptions): Step<FirstInput<children>, LastOutput$1<children>>;
298
- //#endregion
299
- //#region src/core/parallel.d.ts
300
281
  type ParallelInput<children extends Record<string, AnyStep>> = { [k in keyof children]: (input: Accepted<StepInput<children[k]>>) => void; }[keyof children] extends ((input: infer i) => void) ? i : never;
301
282
  type Accepted<i> = [i] extends [never] ? unknown : i;
302
283
  type ParallelOutputs<children extends Record<string, AnyStep>> = { [k in keyof children]: StepOutput<children[k]>; };
@@ -314,8 +295,6 @@ type ParallelOptions = {
314
295
  * instead of being masked by a sibling's failure.
315
296
  */
316
297
  export declare function parallel<children extends Record<string, AnyStep>>(members: children, options?: ParallelOptions): Step<ParallelInput<children>, ParallelOutputs<children>>;
317
- //#endregion
318
- //#region src/core/branch.d.ts
319
298
  type BranchConfig<i, o, otherwise_o = o> = {
320
299
  readonly name?: string;
321
300
  readonly description?: string;
@@ -331,8 +310,6 @@ type BranchConfig<i, o, otherwise_o = o> = {
331
310
  * though only one branch runs.
332
311
  */
333
312
  export declare function branch<i, o, otherwise_o = o>(config: BranchConfig<i, o, otherwise_o>): Step<i, o | otherwise_o>;
334
- //#endregion
335
- //#region src/core/map.d.ts
336
313
  type MapConfig<input, item, result> = {
337
314
  readonly name?: string;
338
315
  readonly description?: string;
@@ -385,8 +362,6 @@ type Settled<o> = {
385
362
  */
386
363
  export declare function map<input, item, result>(config: MapSettleConfig<input, item, result>): Step<input, Settled<result>[]>;
387
364
  export declare function map<input, item, result>(config: MapConfig<input, item, result>): Step<input, result[]>;
388
- //#endregion
389
- //#region src/core/pipe.d.ts
390
365
  type PipeOptions = {
391
366
  readonly name?: string;
392
367
  readonly description?: string;
@@ -399,8 +374,6 @@ type PipeOptions = {
399
374
  * `sequence([...])` instead of failing obscurely at run time.
400
375
  */
401
376
  export declare function pipe<i, a, b>(inner: Step<i, a>, fn: (value: a) => b | Promise<b>, options?: PipeOptions): Step<i, b>;
402
- //#endregion
403
- //#region src/core/retry.d.ts
404
377
  /**
405
378
  * How a retry reached its value: `attempts` counts every dispatch including the
406
379
  * one that succeeded, and `errors` holds each failed attempt's error in order,
@@ -448,8 +421,6 @@ type RetryProjection<o, projected> = {
448
421
  * untouched. `project` maps the outcome envelope into the output.
449
422
  */
450
423
  export declare function retry<i, o, projected = o>(inner: Step<i, o>, config: RetryConfig & RetryProjection<o, projected>): Step<i, projected>;
451
- //#endregion
452
- //#region src/core/fallback.d.ts
453
424
  /**
454
425
  * Which leg produced a fallback's value. `primary_error` is the error that
455
426
  * sent the run to the backup, present only when `source` is `'backup'`.
@@ -497,8 +468,6 @@ type FallbackProjection<o, projected> = {
497
468
  * into the output.
498
469
  */
499
470
  export declare function fallback<i, o, projected = o>(primary: Step<i, o>, backup: Step<i, o>, options?: FallbackOptions<i> & FallbackProjection<o, projected>): Step<i, projected>;
500
- //#endregion
501
- //#region src/core/timeout.d.ts
502
471
  type TimeoutOptions = {
503
472
  readonly name?: string;
504
473
  readonly description?: string;
@@ -511,8 +480,6 @@ type TimeoutOptions = {
511
480
  * a parent abort so the right error propagates.
512
481
  */
513
482
  export declare function timeout<i, o>(inner: Step<i, o>, ms: number, options?: TimeoutOptions): Step<i, o>;
514
- //#endregion
515
- //#region src/core/loop.d.ts
516
483
  type LoopGuardResult<state> = {
517
484
  readonly stop: boolean;
518
485
  readonly state: state;
@@ -541,8 +508,6 @@ type LoopConfig<i, state, o> = {
541
508
  * its output.
542
509
  */
543
510
  export declare function loop<i, state, o>(config: LoopConfig<i, state, o>): Step<i, o>;
544
- //#endregion
545
- //#region src/core/compose.d.ts
546
511
  type ComposeConfig = {
547
512
  readonly name: string;
548
513
  readonly description?: string | undefined;
@@ -561,8 +526,6 @@ type ComposeConfig = {
561
526
  * part that isn't inside `inner` throws, since there would be no path to draw.
562
527
  */
563
528
  export declare function compose<i, o>(inner: Step<i, o>, config: ComposeConfig): Step<i, o>;
564
- //#endregion
565
- //#region src/core/checkpoint.d.ts
566
529
  type CheckpointConfig<i> = {
567
530
  readonly name?: string;
568
531
  readonly description?: string;
@@ -594,8 +557,6 @@ type CheckpointConfig<i> = {
594
557
  * is anonymous.
595
558
  */
596
559
  export declare function checkpoint<i, o>(inner: Step<i, o>, config: CheckpointConfig<i>): Step<i, o>;
597
- //#endregion
598
- //#region src/core/suspend_ids.d.ts
599
560
  /**
600
561
  * A test of whether a later input is the same as `first`, which a resume
601
562
  * datum taken for `first` answers as well.
@@ -608,8 +569,6 @@ export declare function checkpoint<i, o>(inner: Step<i, o>, config: CheckpointCo
608
569
  * only when it's the same value by `Object.is`.
609
570
  */
610
571
  export declare function same_input_as(first: unknown): (next: unknown) => boolean;
611
- //#endregion
612
- //#region src/core/suspend.d.ts
613
572
  type SuspendConfig<i, o, resume> = {
614
573
  readonly id: string;
615
574
  readonly name?: string;
@@ -629,8 +588,6 @@ type SuspendConfig<i, o, resume> = {
629
588
  * a `TypeError` when it's built if it isn't an identifier.
630
589
  */
631
590
  export declare function suspend<i, o, resume>(config: SuspendConfig<i, o, resume>): Step<i, o>;
632
- //#endregion
633
- //#region src/core/scope.d.ts
634
591
  type LastOutput<children> = children extends readonly [...unknown[], Step<never, infer o>] ? o : children extends readonly [Step<never, infer o>] ? o : unknown;
635
592
  type ScopeOptions = {
636
593
  readonly name?: string;
@@ -666,8 +623,6 @@ export declare function stash<i, v>(key: string, source: Step<i, v>, options?: S
666
623
  * invokes `fn(projection, input, ctx)`. Throws when run outside a `scope`.
667
624
  */
668
625
  export declare function use<const keys extends readonly string[], i, o>(keys: keys, fn: (state: { [k in keys[number]]: unknown; }, input: i, ctx: RunContext) => Promise<o> | o, options?: UseOptions): Step<i, o>;
669
- //#endregion
670
- //#region src/core/chain.d.ts
671
626
  type merge<a, b> = { readonly [k in keyof (a & b)]: (a & b)[k]; };
672
627
  type ChainStepOptions = {
673
628
  readonly arm?: AnyStep | ReadonlyArray<AnyStep>;
@@ -717,8 +672,6 @@ type ChainOpen<i, k extends string, acc> = Chain<i, acc> & {
717
672
  * declared state shape.
718
673
  */
719
674
  export declare function chain<i = ChainInputUndeclared<'call .input<T>() on the chain to say what it takes'>, k extends string = 'input'>(input_name?: k): ChainOpen<i, k, { readonly [p in k]: i; }>;
720
- //#endregion
721
- //#region src/core/errors.d.ts
722
675
  export declare class timeout_error extends Error {
723
676
  readonly kind: 'timeout_error';
724
677
  readonly path?: ReadonlyArray<string>;
@@ -808,8 +761,6 @@ export declare class aborted_error extends Error {
808
761
  * including non-object inputs, is `undefined`.
809
762
  */
810
763
  export declare function error_path(err: unknown): ReadonlyArray<string> | undefined;
811
- //#endregion
812
- //#region src/core/is_step.d.ts
813
764
  /**
814
765
  * Check whether a value is structurally a `Step`.
815
766
  *
@@ -817,8 +768,6 @@ export declare function error_path(err: unknown): ReadonlyArray<string> | undefi
817
768
  * `run`.
818
769
  */
819
770
  export declare function is_step(value: unknown): value is AnyStep;
820
- //#endregion
821
- //#region src/core/step_kinds.d.ts
822
771
  /**
823
772
  * Closed registry of every `Step.kind` produced by the composition layer.
824
773
  *
@@ -835,8 +784,6 @@ type StepKind = (typeof STEP_KINDS)[number];
835
784
  * Check whether a value is one of the registered `Step.kind` strings.
836
785
  */
837
786
  export declare function is_step_kind(value: unknown): value is StepKind;
838
- //#endregion
839
- //#region src/core/flow_schema.d.ts
840
787
  /**
841
788
  * JSON Schema for the YAML flow representation, exported as `flow_schema`.
842
789
  *
@@ -1700,8 +1647,6 @@ export declare const flow_schema: {
1700
1647
  };
1701
1648
  };
1702
1649
  };
1703
- //#endregion
1704
- //#region src/engine/errors.d.ts
1705
1650
  export declare class rate_limit_error extends Error {
1706
1651
  readonly kind: 'rate_limit_error';
1707
1652
  readonly path?: ReadonlyArray<string>;
@@ -1874,8 +1819,6 @@ export declare class incomplete_generation_error extends Error {
1874
1819
  readonly provider_reported: Record<string, unknown> | undefined;
1875
1820
  constructor(finish_reason: FinishReason, raw_text: string, provider_reported?: Record<string, unknown>);
1876
1821
  }
1877
- //#endregion
1878
- //#region src/engine/create_engine.d.ts
1879
1822
  /**
1880
1823
  * Validate `config` and construct an `Engine`.
1881
1824
  *
@@ -1884,8 +1827,6 @@ export declare class incomplete_generation_error extends Error {
1884
1827
  * still throws `provider_not_configured_error`, but only at call time.
1885
1828
  */
1886
1829
  export declare function create_engine(config: EngineConfig): Engine;
1887
- //#endregion
1888
- //#region src/engine/define_tool.d.ts
1889
1830
  /**
1890
1831
  * Define a tool whose `execute` and `needs_approval` receive the input type
1891
1832
  * `input_schema` validates to, and return it as a plain `Tool` that any
@@ -1896,8 +1837,6 @@ export declare function create_engine(config: EngineConfig): Engine;
1896
1837
  * and never reaches the tool. The spec comes back as the same object.
1897
1838
  */
1898
1839
  export declare function define_tool<i, o>(spec: Tool<i, o>): Tool;
1899
- //#endregion
1900
- //#region src/engine/throughput.d.ts
1901
1840
  type Throughput = {
1902
1841
  /** Output tokens per second over the measured window. Not rounded. */
1903
1842
  tokens_per_second: number;
@@ -1929,8 +1868,6 @@ type Throughput = {
1929
1868
  * divide by zero.
1930
1869
  */
1931
1870
  export declare function throughput(source: GenerateResult<unknown> | StepRecord | ReadonlyArray<StepRecord>): Throughput | undefined;
1932
- //#endregion
1933
- //#region src/engine/replay.d.ts
1934
1871
  /**
1935
1872
  * A captured call's settings: the provider and model, the resolved effort and
1936
1873
  * cache, the sampling knobs it set, its provider options as the engine
@@ -2006,8 +1943,6 @@ export declare function replay_turn(engine: Engine, turn: CapturedTurn, options?
2006
1943
  /** Where the replay records its own events. */
2007
1944
  readonly trajectory?: TrajectoryLogger;
2008
1945
  }): Promise<GenerateResult>;
2009
- //#endregion
2010
- //#region src/engine/providers/claude_cli/reported.d.ts
2011
1946
  /**
2012
1947
  * Read the claude CLI's reported run detail off anything carrying
2013
1948
  * `provider_reported`: a `GenerateResult`, a `StepRecord`, or an
@@ -2020,8 +1955,6 @@ export declare function replay_turn(engine: Engine, turn: CapturedTurn, options?
2020
1955
  export declare function claude_cli_reported(source: {
2021
1956
  readonly provider_reported?: Readonly<Record<string, unknown>>;
2022
1957
  }): ClaudeCliProviderReported | undefined;
2023
- //#endregion
2024
- //#region src/composites/adversarial.d.ts
2025
1958
  type AdversarialBuildInput<input, candidate> = {
2026
1959
  readonly input: input;
2027
1960
  readonly prior?: candidate;
@@ -2061,8 +1994,6 @@ type AdversarialConfig<input, candidate, projected = AdversarialResult<candidate
2061
1994
  * unmodified user-supplied `Step` values.
2062
1995
  */
2063
1996
  export declare function adversarial<input, candidate, projected = AdversarialResult<candidate>>(config: AdversarialConfig<input, candidate, projected>): Step<input, projected>;
2064
- //#endregion
2065
- //#region src/composites/consensus.d.ts
2066
1997
  type ConsensusConfig<i, o, projected = ConsensusResult<o>> = {
2067
1998
  readonly name?: string;
2068
1999
  readonly description?: string;
@@ -2090,8 +2021,6 @@ type ConsensusResult<o> = {
2090
2021
  * the most recent results so each round receives the same input.
2091
2022
  */
2092
2023
  export declare function consensus<i, o, projected = ConsensusResult<o>>(config: ConsensusConfig<i, o, projected>): Step<i, projected>;
2093
- //#endregion
2094
- //#region src/composites/ensemble.d.ts
2095
2024
  type EnsembleConfig<i, o, projected = EnsembleResult<o>> = {
2096
2025
  readonly name?: string;
2097
2026
  readonly description?: string;
@@ -2121,8 +2050,6 @@ type EnsembleResult<o> = {
2121
2050
  * from `parallel`'s own contract.
2122
2051
  */
2123
2052
  export declare function ensemble<i, o, projected = EnsembleResult<o>>(config: EnsembleConfig<i, o, projected>): Step<i, projected>;
2124
- //#endregion
2125
- //#region src/composites/ensemble_step.d.ts
2126
2053
  type EnsembleStepConfig<i, o, ranked, projected = EnsembleStepResult<o, ranked>> = {
2127
2054
  readonly name?: string;
2128
2055
  readonly description?: string;
@@ -2162,8 +2089,6 @@ type EnsembleStepResult<o, ranked> = {
2162
2089
  * underlying `parallel` and `map` contracts.
2163
2090
  */
2164
2091
  export declare function ensemble_step<i, o, ranked, projected = EnsembleStepResult<o, ranked>>(config: EnsembleStepConfig<i, o, ranked, projected>): Step<i, projected>;
2165
- //#endregion
2166
- //#region src/composites/gate.d.ts
2167
2092
  type GateConfig<o> = {
2168
2093
  readonly id: string;
2169
2094
  readonly name?: string;
@@ -2192,8 +2117,6 @@ type GateConfig<o> = {
2192
2117
  * through `resume_aware`, which is how a resume never runs `inner`.
2193
2118
  */
2194
2119
  export declare function gate<i, o>(inner: Step<i, o>, config: GateConfig<o>): Step<i, o>;
2195
- //#endregion
2196
- //#region src/composites/improve.d.ts
2197
2120
  type Candidate<c> = {
2198
2121
  readonly content: c;
2199
2122
  readonly proposer_id: string;
@@ -2270,8 +2193,6 @@ type ImproveResult<c> = {
2270
2193
  * State threading is the entire job.
2271
2194
  */
2272
2195
  export declare function improve<i, c, projected = ImproveResult<c>>(config: ImproveConfig<i, c, projected>): Step<i, projected>;
2273
- //#endregion
2274
- //#region src/composites/learn.d.ts
2275
2196
  type TrajectorySource = {
2276
2197
  readonly kind: 'events';
2277
2198
  readonly events: ReadonlyArray<TrajectoryEvent>;
@@ -2316,8 +2237,6 @@ type LearnResult<o> = {
2316
2237
  * `LearnResult`.
2317
2238
  */
2318
2239
  export declare function learn<i extends LearnInput, o>(config: LearnConfig<i, o>): Step<unknown, LearnResult<o>>;
2319
- //#endregion
2320
- //#region src/composites/tournament.d.ts
2321
2240
  type BracketRecord = {
2322
2241
  readonly round: number;
2323
2242
  readonly a_id: string;
@@ -2345,8 +2264,6 @@ type TournamentResult<o> = {
2345
2264
  * omitted, the envelope itself is the output.
2346
2265
  */
2347
2266
  export declare function tournament<i, o, projected = TournamentResult<o>>(config: TournamentConfig<i, o, projected>): Step<i, projected>;
2348
- //#endregion
2349
- //#region src/composites/errors.d.ts
2350
2267
  /**
2351
2268
  * Typed errors for the composites layer.
2352
2269
  *
@@ -2361,8 +2278,6 @@ export declare class bench_suspend_error extends Error {
2361
2278
  readonly suspend_id: string;
2362
2279
  constructor(case_id: string, suspend_id: string, message?: string);
2363
2280
  }
2364
- //#endregion
2365
- //#region src/composites/bench.d.ts
2366
2281
  type Score = {
2367
2282
  readonly score: number;
2368
2283
  readonly reason?: string;
@@ -2446,8 +2361,6 @@ export declare function bench<I, O, S = Score>(flow: Step<I, O>, cases: Readonly
2446
2361
  * reason-less score; `undefined` means the judge abstained.
2447
2362
  */
2448
2363
  export declare function normalize_score(raw: unknown): Score | undefined;
2449
- //#endregion
2450
- //#region src/composites/judges.d.ts
2451
2364
  /**
2452
2365
  * Judge that scores 1 when the output deep-equals `meta.expected`, 0
2453
2366
  * otherwise. Abstains when the case has no `meta` or no `expected` key.
@@ -2477,8 +2390,6 @@ type JudgeLlmConfig = {
2477
2390
  * unparseable reply makes the judge abstain rather than fail the case.
2478
2391
  */
2479
2392
  export declare function judge_llm<I, O>(config: JudgeLlmConfig): Judge<I, O>;
2480
- //#endregion
2481
- //#region src/composites/regression.d.ts
2482
2393
  type RegressionDelta = {
2483
2394
  readonly metric: string;
2484
2395
  readonly baseline: number;
@@ -2523,8 +2434,6 @@ export declare function read_baseline(path: string): Promise<BenchReport>;
2523
2434
  * Write a `BenchReport` as pretty-printed JSON, creating parent directories.
2524
2435
  */
2525
2436
  export declare function write_baseline(path: string, report: BenchReport): Promise<void>;
2526
- //#endregion
2527
- //#region src/model_call.d.ts
2528
2437
  type ModelCallInput = string | ReadonlyArray<Message>;
2529
2438
  type ModelCallConfig<T = string, projected = GenerateResult<T>> = {
2530
2439
  readonly engine: Engine;
@@ -2635,8 +2544,6 @@ export declare function model_call<T = string, projected = GenerateResult<T>>(cf
2635
2544
  * pattern; this is its smallest instance.
2636
2545
  */
2637
2546
  export declare function model_step<T = string>(cfg: Omit<ModelCallConfig<T>, 'project'>): Step<ModelCallInput, T>;
2638
- //#endregion
2639
- //#region src/forward_standard_env.d.ts
2640
2547
  /**
2641
2548
  * Return the standard env vars a CLI subprocess needs to reach a user's
2642
2549
  * logged-in session: PATH, HOME, SHELL, USER, LOGNAME, LANG, TMPDIR.
@@ -2649,6 +2556,5 @@ export declare function model_step<T = string>(cfg: Omit<ModelCallConfig<T>, 'pr
2649
2556
  * }
2650
2557
  */
2651
2558
  export declare function forward_standard_env(): Record<string, string>;
2652
- //#endregion
2653
2559
  export { type AdversarialBuildInput, type AdversarialConfig, type AdversarialCritiqueResult, type AdversarialResult, type AiSdkProviderAdapter, type AiSdkTelemetrySettings, type AnySchema, type AnyStep, type AssistantContentPart, type BedrockCredentialProvider, type BedrockCredentials, type BenchCase, type BenchOptions, type BenchReport, type BenchSummary, type BracketRecord, type BranchConfig, type CacheSetting, type Candidate, type CaptureLevel, type CapturePayload, type CapturedSettings, type CapturedTool, type CapturedTurn, 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 ProviderOptions, 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 TruncatedTurnPolicy, 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 };
2654
2560
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { A as is_step, B as timeout_error, F as flow_changed_error, H as is_step_kind, I as gate_result_error, L as resume_validation_error, M as describe_cycle_error, N as duplicate_suspend_id_error, O as same_input_as, P as error_path, R as run_not_found_error, U as resolve_display_name, V as STEP_KINDS, _ as step, a as suspend, b as suggest_step_id, c as loop, d as retry, f as pipe, g as sequence, h as parallel, i as use, j as aborted_error, k as describe, l as timeout, m as branch, n as scope, o as checkpoint, p as map, r as stash, s as compose, t as chain, u as fallback, v as assert_valid_step_id, w as run, x as durable, y as is_valid_step_id, z as suspended_error } from "./core-Bfzt55Fl.js";
2
- import { t as create_engine } from "./engine-D7ANZ8eq.js";
3
- import { n as is_record$1 } from "./records-1HU7mWXf.js";
4
- import { t as json_schema_to_standard } from "./json_schema_to_standard-C4F4lXHE.js";
5
- import { a as is_run_end_event, c as is_step_replayed_event, i as is_map_item_failed_event, l as parse_trajectory_event, n as is_custom_trajectory_event, o as is_span_end_event, r as is_emit_event, s as is_span_start_event, t as is_checkpoint_event } from "./trajectory-DeURWIhj.js";
6
- import { a as http_logger, n as tee_logger, o as filesystem_logger } from "./adapters-CDUzZlby.js";
7
- import { A as provider_auth_error, D as incomplete_generation_error, E as engine_disposed_error, F as rate_limit_error, I as schema_validation_error, L as tool_approval_denied_error, M as provider_error, N as provider_not_configured_error, O as model_required_error, P as provider_required_error, R as tool_error, T as engine_config_error, g as default_normalize_usage, j as provider_capability_error, k as on_chunk_error, w as claude_cli_error, z as turn_timeout_error } from "./leading_system-CHSYz0h9.js";
1
+ import { A as is_step, B as timeout_error, F as flow_changed_error, H as is_step_kind, I as gate_result_error, L as resume_validation_error, M as describe_cycle_error, N as duplicate_suspend_id_error, O as same_input_as, P as error_path, R as run_not_found_error, U as resolve_display_name, V as STEP_KINDS, _ as step, a as suspend, b as suggest_step_id, c as loop, d as retry, f as pipe, g as sequence, h as parallel, i as use, j as aborted_error, k as describe, l as timeout, m as branch, n as scope, o as checkpoint, p as map, r as stash, s as compose, t as chain, u as fallback, v as assert_valid_step_id, w as run, x as durable, y as is_valid_step_id, z as suspended_error } from "./core-BH7sWpEG.js";
2
+ import { a as http_logger, n as tee_logger, o as filesystem_logger } from "./adapters-CpKpDk7r.js";
3
+ import { t as create_engine } from "./engine-fOjYHcv6.js";
4
+ import { n as is_record$1 } from "./records-Btlmvunj.js";
5
+ import { a as is_run_end_event, c as is_step_replayed_event, i as is_map_item_failed_event, l as parse_trajectory_event, n as is_custom_trajectory_event, o as is_span_end_event, r as is_emit_event, s as is_span_start_event, t as is_checkpoint_event } from "./trajectory-CkCFZWNR.js";
6
+ import { t as json_schema_to_standard } from "./json_schema_to_standard-BstoXjM8.js";
7
+ import { A as provider_auth_error, D as incomplete_generation_error, E as engine_disposed_error, F as rate_limit_error, I as schema_validation_error, L as tool_approval_denied_error, M as provider_error, N as provider_not_configured_error, O as model_required_error, P as provider_required_error, R as tool_error, T as engine_config_error, g as default_normalize_usage, j as provider_capability_error, k as on_chunk_error, w as claude_cli_error, z as turn_timeout_error } from "./leading_system-BeQUSAim.js";
8
8
  import { createHash } from "node:crypto";
9
9
  import { mkdir, readFile, readdir, writeFile } from "node:fs/promises";
10
10
  import { dirname, join } from "node:path";
11
- //#region src/core/flow_schema.ts
11
+ // src/core/flow_schema.ts
12
12
  /**
13
13
  * JSON Schema for the YAML flow representation, exported as `flow_schema`.
14
14
  *
@@ -600,8 +600,7 @@ const flow_schema = {
600
600
  }
601
601
  }
602
602
  };
603
- //#endregion
604
- //#region src/composites/adversarial.ts
603
+ // src/composites/adversarial.ts
605
604
  /**
606
605
  * adversarial: build-and-critique loop.
607
606
  *
@@ -699,8 +698,7 @@ function adversarial(config) {
699
698
  }
700
699
  });
701
700
  }
702
- //#endregion
703
- //#region src/composites/consensus.ts
701
+ // src/composites/consensus.ts
704
702
  /**
705
703
  * consensus: run-until-agreement composite over concurrent members.
706
704
  */
@@ -756,8 +754,7 @@ function consensus(config) {
756
754
  parts: members
757
755
  });
758
756
  }
759
- //#endregion
760
- //#region src/composites/ensemble.ts
757
+ // src/composites/ensemble.ts
761
758
  /**
762
759
  * ensemble: N-of-M pick-best with a plain-function scorer.
763
760
  */
@@ -820,8 +817,7 @@ function best_of(ranked, select) {
820
817
  }
821
818
  return best?.[0];
822
819
  }
823
- //#endregion
824
- //#region src/composites/parts.ts
820
+ // src/composites/parts.ts
825
821
  /**
826
822
  * Collect parts by role, giving a role that's already taken a numbered
827
823
  * suffix, so every part is still drawn.
@@ -835,8 +831,7 @@ function name_parts(entries) {
835
831
  }
836
832
  return parts;
837
833
  }
838
- //#endregion
839
- //#region src/composites/ensemble_step.ts
834
+ // src/composites/ensemble_step.ts
840
835
  /**
841
836
  * ensemble_step: N-of-M pick-best with a Step-based scorer.
842
837
  */
@@ -930,8 +925,7 @@ function ensemble_step(config) {
930
925
  parts: name_parts([...Object.entries(members), ["score", score]])
931
926
  });
932
927
  }
933
- //#endregion
934
- //#region src/composites/gate.ts
928
+ // src/composites/gate.ts
935
929
  /**
936
930
  * gate: persist paid work before a human gate, never re-bill on resume.
937
931
  *
@@ -1155,8 +1149,7 @@ function gate(inner, config) {
1155
1149
  parts: name_parts([[inner.id, inner], [id, approval]])
1156
1150
  });
1157
1151
  }
1158
- //#endregion
1159
- //#region src/composites/improve.ts
1152
+ // src/composites/improve.ts
1160
1153
  /**
1161
1154
  * improve: bounded online self-improvement loop.
1162
1155
  *
@@ -1349,8 +1342,7 @@ function improve(config) {
1349
1342
  }
1350
1343
  });
1351
1344
  }
1352
- //#endregion
1353
- //#region src/composites/learn.ts
1345
+ // src/composites/learn.ts
1354
1346
  /**
1355
1347
  * learn: offline self-improvement composer.
1356
1348
  *
@@ -1527,8 +1519,7 @@ function learn(config) {
1527
1519
  description: config.description
1528
1520
  });
1529
1521
  }
1530
- //#endregion
1531
- //#region src/composites/tournament.ts
1522
+ // src/composites/tournament.ts
1532
1523
  /**
1533
1524
  * tournament: pairwise bracket.
1534
1525
  *
@@ -1613,8 +1604,7 @@ function winner_of(current, results) {
1613
1604
  if (!Object.hasOwn(results, final_id)) throw new Error("tournament: winner missing from results");
1614
1605
  return results[final_id];
1615
1606
  }
1616
- //#endregion
1617
- //#region src/composites/errors.ts
1607
+ // src/composites/errors.ts
1618
1608
  /**
1619
1609
  * Typed errors for the composites layer.
1620
1610
  *
@@ -1633,8 +1623,7 @@ var bench_suspend_error = class extends Error {
1633
1623
  this.suspend_id = suspend_id;
1634
1624
  }
1635
1625
  };
1636
- //#endregion
1637
- //#region src/composites/bench.ts
1626
+ // src/composites/bench.ts
1638
1627
  /**
1639
1628
  * bench: run a flow against a fixture set, score each result, return a report.
1640
1629
  *
@@ -1953,8 +1942,7 @@ function describe_flow_name(flow) {
1953
1942
  function random_suffix() {
1954
1943
  return Math.random().toString(36).slice(2, 8);
1955
1944
  }
1956
- //#endregion
1957
- //#region src/composites/judges.ts
1945
+ // src/composites/judges.ts
1958
1946
  /**
1959
1947
  * Stock judges for `bench`.
1960
1948
  *
@@ -2155,8 +2143,7 @@ function find_string_end(text, open) {
2155
2143
  }
2156
2144
  return text.length;
2157
2145
  }
2158
- //#endregion
2159
- //#region src/composites/regression.ts
2146
+ // src/composites/regression.ts
2160
2147
  /**
2161
2148
  * regression_compare: diff two BenchReports for regressions.
2162
2149
  *
@@ -2333,8 +2320,7 @@ function validate_report(value, path) {
2333
2320
  if (typeof v.flow_name !== "string" || typeof v.run_id !== "string") throw new Error(`baseline at ${path} missing flow_name/run_id`);
2334
2321
  if (!Array.isArray(v.cases) || typeof v.summary !== "object" || v.summary === null) throw new Error(`baseline at ${path} missing cases/summary`);
2335
2322
  }
2336
- //#endregion
2337
- //#region src/engine/define_tool.ts
2323
+ // src/engine/define_tool.ts
2338
2324
  /**
2339
2325
  * Define a tool whose `execute` and `needs_approval` receive the input type
2340
2326
  * `input_schema` validates to, and return it as a plain `Tool` that any
@@ -2347,8 +2333,7 @@ function validate_report(value, path) {
2347
2333
  function define_tool(spec) {
2348
2334
  return spec;
2349
2335
  }
2350
- //#endregion
2351
- //#region src/engine/throughput.ts
2336
+ // src/engine/throughput.ts
2352
2337
  /**
2353
2338
  * Narrow the accepted source union to its array member. A user-defined guard
2354
2339
  * because Array.isArray does not narrow a ReadonlyArray union member on its
@@ -2433,8 +2418,7 @@ function throughput(source) {
2433
2418
  measured_ms
2434
2419
  };
2435
2420
  }
2436
- //#endregion
2437
- //#region src/engine/replay.ts
2421
+ // src/engine/replay.ts
2438
2422
  /**
2439
2423
  * True for an array where capture writes messages, which the fold trusts to
2440
2424
  * hold the messages it wrote.
@@ -2596,8 +2580,7 @@ async function replay_turn(engine, turn, options = {}) {
2596
2580
  };
2597
2581
  return await engine.generate(opts);
2598
2582
  }
2599
- //#endregion
2600
- //#region src/engine/providers/claude_cli/reported.ts
2583
+ // src/engine/providers/claude_cli/reported.ts
2601
2584
  /**
2602
2585
  * Read the claude CLI's reported run detail off anything carrying
2603
2586
  * `provider_reported`: a `GenerateResult`, a `StepRecord`, or an
@@ -2623,8 +2606,7 @@ function claude_cli_reported(source) {
2623
2606
  duration_ms
2624
2607
  };
2625
2608
  }
2626
- //#endregion
2627
- //#region src/model_call.ts
2609
+ // src/model_call.ts
2628
2610
  /**
2629
2611
  * model_call: the single sanctioned bridge between the composition and
2630
2612
  * engine layers.
@@ -2851,8 +2833,7 @@ function model_step(cfg) {
2851
2833
  project: (r) => r.content
2852
2834
  });
2853
2835
  }
2854
- //#endregion
2855
- //#region src/forward_standard_env.ts
2836
+ // src/forward_standard_env.ts
2856
2837
  /**
2857
2838
  * Env forwarding allowlist for CLI subprocesses.
2858
2839
  *
@@ -2889,7 +2870,6 @@ function forward_standard_env() {
2889
2870
  }
2890
2871
  return out;
2891
2872
  }
2892
- //#endregion
2893
2873
  export { STEP_KINDS, aborted_error, adversarial, assert_valid_step_id, bench, bench_suspend_error, branch, captured_turns, chain, checkpoint, claude_cli_error, claude_cli_reported, compose, consensus, create_engine, default_normalize_usage, define_tool, describe, describe_cycle_error, duplicate_suspend_id_error, durable, engine_config_error, engine_disposed_error, ensemble, ensemble_step, error_path, fallback, flow_changed_error, flow_schema, forward_standard_env, gate, gate_result_error, improve, incomplete_generation_error, 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, is_step_kind, is_step_replayed_event, is_valid_step_id, judge_equals, judge_llm, judge_with, learn, loop, map, model_call, model_required_error, model_step, normalize_score, on_chunk_error, parallel, parse_trajectory_event, pipe, provider_auth_error, provider_capability_error, provider_error, provider_not_configured_error, provider_required_error, rate_limit_error, read_baseline, regression_compare, replay_turn, resolve_display_name, resume_validation_error, retry, run, run_not_found_error, same_input_as, schema_validation_error, scope, sequence, stash, step, suggest_step_id, suspend, suspended_error, throughput, timeout, timeout_error, tool_approval_denied_error, tool_error, tournament, turn_timeout_error, use, write_baseline };
2894
2874
 
2895
2875
  //# sourceMappingURL=index.js.map