fascicle 0.12.0 → 0.12.1
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 +70 -0
- package/README.md +15 -5
- package/dist/adapters.d.ts +1 -1
- package/dist/agents.d.ts +11 -2
- package/dist/agents.js +63 -20
- package/dist/agents.js.map +1 -1
- package/dist/bin/fascicle-viewer.js +2 -2
- package/dist/{core-BkB2l1-e.js → core-DDRhHu5P.js} +235 -56
- package/dist/core-DDRhHu5P.js.map +1 -0
- package/dist/engine-b4ZH8esY.js +7317 -0
- package/dist/engine-b4ZH8esY.js.map +1 -0
- package/dist/index.d.ts +158 -159
- package/dist/index.js +289 -7797
- package/dist/index.js.map +1 -1
- package/dist/{invoke-JkzNf7-Y.js → invoke-CyKNhvBw.js} +3 -3
- package/dist/{invoke-JkzNf7-Y.js.map → invoke-CyKNhvBw.js.map} +1 -1
- package/dist/mcp.d.ts +2 -2
- package/dist/mcp.js +1 -1
- package/dist/otel.d.ts +1 -1
- package/dist/static/viewer.html +2 -1
- package/dist/stdio.d.ts +1 -1
- package/dist/stdio.js +1 -1
- package/dist/testing.d.ts +66 -15
- package/dist/testing.js +199 -34
- package/dist/testing.js.map +1 -1
- package/dist/trajectory-cSLNlHzh.d.ts +114 -0
- package/dist/{types-CVdTBXE_.d.ts → types-BqUY6nRX.d.ts} +14 -2
- package/dist/{types-4l54cexm.d.ts → types-CXBB4aIM.d.ts} +8 -4
- package/dist/ui.d.ts +2 -2
- package/dist/viewer.d.ts +117 -0
- package/dist/viewer.js +658 -0
- package/dist/viewer.js.map +1 -0
- package/package.json +22 -9
- package/dist/core-BkB2l1-e.js.map +0 -1
- package/dist/leading_system-BVtGMweY.js +0 -307
- package/dist/leading_system-BVtGMweY.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as Step, c as StepMetadata, d as TrajectoryLogger, i as RunContext, l as StepOutput, n as CheckpointStore, o as StepFn, r as CleanupFn, s as StepInput, t as AnyStep, u as TrajectoryEvent } from "./types-BqUY6nRX.js";
|
|
2
2
|
import { n as SchemaIssue, r as ToolSchema, t as AnySchema } from "./types-BCtKsxrX.js";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as parse_trajectory_event, a as ParsedTrajectoryEvent, c as SpanEndEvent, d as is_checkpoint_event, f as is_custom_trajectory_event, g as is_span_start_event, h as is_span_end_event, i as EmitEvent, l as SpanStartEvent, m as is_run_end_event, n as CheckpointStatus, o as RunEndEvent, p as is_emit_event, r as CustomTrajectoryEvent, s as RunEndStatus, t as CheckpointEvent, u as TrajectoryParseResult } from "./trajectory-cSLNlHzh.js";
|
|
4
|
+
import { A as TurnResult, B as ProviderTransport, C as StreamChunk, D as ToolCallRecord, E as ToolApprovalRequest, F as ExternalAgentAdapter, H as default_normalize_usage, I as NativeProviderAdapter, L as ProviderAdapter, M as UserContentPart, N as AiSdkProviderAdapter, O as ToolExecContext, P as EffortTranslation, R as ProviderCapability, S as StepRecord, T as ToolApprovalHandler, V as RawProviderUsage, _ as ProviderConfigMap, a as Engine, b as RetryFailureKind, c as FinishReason, d as Message, f as PrepareStepContext, g as PricingTable, h as Pricing, i as EffortLevel, j as UsageTotals, k as TurnRequest, l as GenerateOptions, m as PrepareStepResult, n as AssistantContentPart, o as EngineConfig, p as PrepareStepHook, r as CostBreakdown, s as EngineDefaults, t as AiSdkTelemetrySettings, u as GenerateResult, v as ProviderInit, w as Tool, x as RetryPolicy, y as ResolvedModel, z as ProviderFactory } from "./types-CXBB4aIM.js";
|
|
4
5
|
|
|
5
6
|
//#region src/core/flow-schema.json.d.ts
|
|
6
7
|
declare let $schema: string;
|
|
@@ -602,13 +603,6 @@ type StreamingRunHandle<o> = {
|
|
|
602
603
|
readonly events: AsyncIterable<TrajectoryEvent>;
|
|
603
604
|
readonly result: Promise<o>;
|
|
604
605
|
};
|
|
605
|
-
/**
|
|
606
|
-
* Route a step to its registered kind handler.
|
|
607
|
-
*
|
|
608
|
-
* This is the single entry point composers use to run children. On failure
|
|
609
|
-
* the step's id is prepended to the error's `path`, so an error surfacing
|
|
610
|
-
* from a deep tree carries the chain of step ids it crossed.
|
|
611
|
-
*/
|
|
612
606
|
/**
|
|
613
607
|
* Execute a flow and resolve with its final output.
|
|
614
608
|
*/
|
|
@@ -623,6 +617,7 @@ type RunOutcome<o> = {
|
|
|
623
617
|
} | {
|
|
624
618
|
readonly kind: 'suspended';
|
|
625
619
|
readonly id: string;
|
|
620
|
+
readonly payload: unknown;
|
|
626
621
|
readonly resume: (data: unknown) => Promise<RunOutcome<o>>;
|
|
627
622
|
};
|
|
628
623
|
/**
|
|
@@ -630,8 +625,9 @@ type RunOutcome<o> = {
|
|
|
630
625
|
* thrown `suspended_error`.
|
|
631
626
|
*
|
|
632
627
|
* Resolves `{ kind: 'done', output }` on completion. When a `suspend` gate
|
|
633
|
-
* fires, resolves `{ kind: 'suspended', id, resume }` where `id` is
|
|
634
|
-
* gate's suspend id
|
|
628
|
+
* fires, resolves `{ kind: 'suspended', id, payload, resume }` where `id` is
|
|
629
|
+
* the gate's suspend id, `payload` is what the gate raised on its
|
|
630
|
+
* `suspended_error`, and `resume(data)` re-runs the flow from the original
|
|
635
631
|
* input with `resume_data[id] = data` merged over the caller's options: the
|
|
636
632
|
* same full re-run semantics as calling `run` again yourself, so pure
|
|
637
633
|
* prefixes replay and `checkpoint`ed steps are served from the store. The
|
|
@@ -659,7 +655,7 @@ declare const run: typeof run_impl & {
|
|
|
659
655
|
* Wrap a plain function as a `Step`, named or anonymous.
|
|
660
656
|
*
|
|
661
657
|
* The named form takes an explicit id (and optional descriptive `meta`); the
|
|
662
|
-
* anonymous form generates
|
|
658
|
+
* anonymous form generates a `step_<n>` id and marks the step so checkpoint
|
|
663
659
|
* rejects it at construction time.
|
|
664
660
|
*/
|
|
665
661
|
declare function step<i, o>(id: string, fn: StepFn<i, o>, meta?: StepMetadata): Step<i, o>;
|
|
@@ -701,11 +697,31 @@ declare const describe: {
|
|
|
701
697
|
//#region src/core/sequence.d.ts
|
|
702
698
|
type FirstInput<children> = children extends readonly [Step<infer i, unknown>, ...unknown[]] ? i : unknown;
|
|
703
699
|
type LastOutput$1<children> = children extends readonly [...unknown[], Step<never, infer o>] ? o : children extends readonly [Step<never, infer o>] ? o : unknown;
|
|
704
|
-
type OutputOf
|
|
705
|
-
type
|
|
700
|
+
type OutputOf<s> = StepOutput<s>;
|
|
701
|
+
type InputOf<s> = StepInput<s>;
|
|
702
|
+
interface SequenceJointMismatch<at extends string, upstream_output, this_step_accepts> {
|
|
703
|
+
readonly sequence_joint_mismatch: at;
|
|
704
|
+
readonly upstream_output: upstream_output;
|
|
705
|
+
readonly this_step_accepts: this_step_accepts;
|
|
706
|
+
}
|
|
707
|
+
type CheckedJoint<element, upstream, at extends string> = unknown extends element ? unknown : element extends AnyStep ? [upstream] extends [InputOf<element>] ? element : SequenceJointMismatch<at, upstream, InputOf<element>> : AnyStep;
|
|
706
708
|
type CheckedFirst<element> = unknown extends element ? unknown : element extends AnyStep ? element : AnyStep;
|
|
707
|
-
type CheckedTail<children extends readonly unknown[], rest extends readonly unknown[]> = { readonly [k in keyof rest]: CheckedJoint<rest[k], k extends keyof children ? children[k] : never
|
|
708
|
-
type
|
|
709
|
+
type CheckedTail<children extends readonly unknown[], rest extends readonly unknown[]> = { readonly [k in keyof rest]: CheckedJoint<rest[k], OutputOf<k extends keyof children ? children[k] : never>, `after children[${k & string}]`> };
|
|
710
|
+
type IsPlainArray<t extends readonly unknown[]> = t extends readonly [] ? false : t[number][] extends [...t] ? true : false;
|
|
711
|
+
type CheckedSegment<seg extends readonly unknown[], e, upstream> = unknown extends e ? seg : [e] extends [AnyStep] ? [upstream | OutputOf<e>] extends [InputOf<e>] ? seg : readonly SequenceJointMismatch<'spread segment', upstream | OutputOf<e>, InputOf<e>>[] : readonly AnyStep[];
|
|
712
|
+
type SplitSpreadTrail<t extends readonly unknown[], trail extends readonly unknown[] = []> = IsPlainArray<t> extends true ? [t, trail] : t extends readonly [...infer init, infer last_el] ? SplitSpreadTrail<init, [last_el, ...trail]> : [t, trail];
|
|
713
|
+
type SpreadPos = readonly unknown[] | 'spread';
|
|
714
|
+
type JointAt<p extends SpreadPos> = p extends readonly unknown[] ? `after children[${p['length']}]` : 'after spread segment';
|
|
715
|
+
type NextPos<p extends SpreadPos> = p extends readonly unknown[] ? readonly [...p, unknown] : p;
|
|
716
|
+
type CheckedSpreadTail<upstream, t extends readonly unknown[], p extends SpreadPos> = t extends readonly [] ? readonly [] : IsPlainArray<t> extends true ? readonly [...CheckedSegment<t, t[number], upstream>] : t extends readonly [infer h, ...infer r] ? readonly [CheckedJoint<h, upstream, JointAt<p>>, ...CheckedSpreadTail<OutputOf<h>, r, NextPos<p>>] : SplitSpreadTrail<t> extends [infer seg extends readonly unknown[], infer trail extends readonly unknown[]] ? readonly [...CheckedSegment<seg, seg[number], upstream>, ...CheckedSpreadTail<upstream | OutputOf<seg[number]>, trail, 'spread'>] : never;
|
|
717
|
+
interface SequenceRuntimeChildrenMustBeHomogeneous<element> {
|
|
718
|
+
readonly runtime_built_children: 'no tuple positions to check; use ReadonlyArray<Step<T, T>>';
|
|
719
|
+
readonly element: element;
|
|
720
|
+
}
|
|
721
|
+
interface SequenceLeadingSpreadNeedsFixedFirst {
|
|
722
|
+
readonly leading_spread: 'joint checking needs a fixed first element; a homogeneous ReadonlyArray<Step<T, T>> works via the array overload';
|
|
723
|
+
}
|
|
724
|
+
type CheckedChildren<children extends readonly unknown[]> = unknown[] extends children ? children : IsPlainArray<children> extends true ? SequenceRuntimeChildrenMustBeHomogeneous<children[number]> : number extends children['length'] ? children extends readonly [infer first, ...infer rest] ? readonly [CheckedFirst<first>, ...CheckedSpreadTail<OutputOf<first>, rest, readonly []>] : SequenceLeadingSpreadNeedsFixedFirst : children extends readonly [infer first, ...infer rest] ? readonly [CheckedFirst<first>, ...CheckedTail<children, rest>] : children;
|
|
709
725
|
type SequenceOptions = {
|
|
710
726
|
readonly name?: string;
|
|
711
727
|
};
|
|
@@ -715,19 +731,20 @@ type SequenceOptions = {
|
|
|
715
731
|
* The children parameter is checked joint by joint for literal tuples via
|
|
716
732
|
* `CheckedChildren`; the intersection with the bare `children` parameter is
|
|
717
733
|
* what lets inference read the precise tuple while the checked shape
|
|
718
|
-
* constrains it.
|
|
719
|
-
*
|
|
720
|
-
*
|
|
721
|
-
*
|
|
734
|
+
* constrains it. Runtime-built arrays carry no positional types, so the
|
|
735
|
+
* second overload requires them to be homogeneous and self-composing, which
|
|
736
|
+
* keeps `run` sound instead of degrading to the unknown boundary. Validates
|
|
737
|
+
* every element up front so a non-Step (usually a bare function) fails at
|
|
738
|
+
* construction with a pointed message rather than at run time. Checks
|
|
739
|
+
* `ctx.abort` before each child so aborts land on step boundaries.
|
|
722
740
|
*/
|
|
723
741
|
declare function sequence<const children extends readonly unknown[]>(children: children & CheckedChildren<children>, options?: SequenceOptions): Step<FirstInput<children>, LastOutput$1<children>>;
|
|
742
|
+
declare function sequence<t>(children: ReadonlyArray<Step<t, t>>, options?: SequenceOptions): Step<t, t>;
|
|
724
743
|
//#endregion
|
|
725
744
|
//#region src/core/parallel.d.ts
|
|
726
|
-
type OutputOf<s> = s extends Step<never, infer o> ? o : unknown;
|
|
727
|
-
type InputOf<s> = s extends Step<infer i, unknown> ? i : never;
|
|
728
745
|
type UnionToIntersection<u> = (u extends unknown ? (x: u) => void : never) extends ((x: infer i) => void) ? i : never;
|
|
729
|
-
type ParallelInput<children extends Record<string, AnyStep>> = UnionToIntersection<
|
|
730
|
-
type ParallelOutputs<children extends Record<string, AnyStep>> = { [k in keyof children]:
|
|
746
|
+
type ParallelInput<children extends Record<string, AnyStep>> = UnionToIntersection<StepInput<children[keyof children]>>;
|
|
747
|
+
type ParallelOutputs<children extends Record<string, AnyStep>> = { [k in keyof children]: StepOutput<children[k]> };
|
|
731
748
|
type ParallelOptions = {
|
|
732
749
|
readonly name?: string;
|
|
733
750
|
};
|
|
@@ -837,6 +854,7 @@ type LoopGuardResult<state> = {
|
|
|
837
854
|
readonly stop: boolean;
|
|
838
855
|
readonly state: state;
|
|
839
856
|
};
|
|
857
|
+
type LoopGuardPredicate<state> = (state: state) => boolean | Promise<boolean>;
|
|
840
858
|
type LoopOutcome = {
|
|
841
859
|
readonly converged: boolean;
|
|
842
860
|
readonly rounds: number;
|
|
@@ -845,7 +863,7 @@ type LoopConfig<i, state, o> = {
|
|
|
845
863
|
readonly name?: string;
|
|
846
864
|
readonly init: (input: i) => state;
|
|
847
865
|
readonly body: Step<state, state>;
|
|
848
|
-
readonly guard?: Step<state, LoopGuardResult<state
|
|
866
|
+
readonly guard?: Step<state, LoopGuardResult<state>> | LoopGuardPredicate<state>;
|
|
849
867
|
readonly finish: (state: state, outcome: LoopOutcome) => o;
|
|
850
868
|
readonly max_rounds: number;
|
|
851
869
|
};
|
|
@@ -944,50 +962,71 @@ type ChainStepOptions = {
|
|
|
944
962
|
readonly arm?: AnyStep;
|
|
945
963
|
};
|
|
946
964
|
type Chain<i, acc> = {
|
|
947
|
-
readonly step:
|
|
965
|
+
readonly step: {
|
|
966
|
+
<k extends string, o>(name: k, fn: (s: acc, ctx: RunContext) => Promise<o> | o, options?: ChainStepOptions): Chain<i, merge<acc, { readonly [p in k]: o }>>;
|
|
967
|
+
<k extends string, a, o>(name: k, arm: Step<a, o>, select: (s: acc) => a): Chain<i, merge<acc, { readonly [p in k]: o }>>;
|
|
968
|
+
};
|
|
948
969
|
readonly stage: {
|
|
949
970
|
(name: string): Chain<i, acc>;
|
|
950
971
|
<next extends Record<string, unknown>>(name: string, project: (s: acc, ctx: RunContext) => Promise<next> | next): Chain<i, merge<next, unknown>>;
|
|
951
972
|
};
|
|
952
973
|
readonly output: <o>(fn: (s: acc, ctx: RunContext) => Promise<o> | o) => Step<i, o>;
|
|
953
974
|
};
|
|
975
|
+
/**
|
|
976
|
+
* A freshly opened chain: `Chain` plus `.input<t>()`, which restates the
|
|
977
|
+
* input type once with the binding name already fixed, so
|
|
978
|
+
* `chain('q').input<Request>()` equals `chain<Request, 'q'>('q')`. The first
|
|
979
|
+
* `.step` or `.stage` returns plain `Chain`, so refinement is only possible
|
|
980
|
+
* before any entry is recorded.
|
|
981
|
+
*/
|
|
982
|
+
type ChainOpen<i, k extends string, acc> = Chain<i, acc> & {
|
|
983
|
+
readonly input: <t>() => Chain<t, { readonly [p in k]: t }>;
|
|
984
|
+
};
|
|
954
985
|
/**
|
|
955
986
|
* Open a chain builder whose record starts as `{ [input_name]: input }`.
|
|
956
987
|
*
|
|
957
|
-
* `input_name` defaults to `'input'`. The
|
|
958
|
-
*
|
|
988
|
+
* `input_name` defaults to `'input'`. The input type defaults to `never`, so
|
|
989
|
+
* a chain that never states it produces a `Step<never, o>` that no real
|
|
990
|
+
* input satisfies at `run`; state it as the type argument or, when the
|
|
991
|
+
* binding is renamed, once via `.input<t>()` on the fresh builder. Each
|
|
992
|
+
* `.step` narrows subsequent callbacks to the record accumulated so far, and
|
|
959
993
|
* `.stage` with a projection re-types the record to the projection's
|
|
960
994
|
* return, so binding names and views are checked at compile time with no
|
|
961
995
|
* declared state shape.
|
|
962
996
|
*/
|
|
963
|
-
declare function chain<i, k extends string = 'input'>(input_name?: k):
|
|
997
|
+
declare function chain<i = never, k extends string = 'input'>(input_name?: k): ChainOpen<i, k, { readonly [p in k]: i }>;
|
|
964
998
|
//#endregion
|
|
965
999
|
//#region src/core/errors.d.ts
|
|
966
1000
|
declare class timeout_error extends Error {
|
|
967
1001
|
readonly kind: "timeout_error";
|
|
1002
|
+
readonly path?: ReadonlyArray<string>;
|
|
968
1003
|
readonly timeout_ms: number;
|
|
969
1004
|
constructor(message: string, timeout_ms: number);
|
|
970
1005
|
}
|
|
971
1006
|
declare class suspended_error extends Error {
|
|
972
1007
|
readonly kind: "suspended_error";
|
|
1008
|
+
readonly path?: ReadonlyArray<string>;
|
|
973
1009
|
readonly suspend_id: string;
|
|
974
1010
|
readonly payload: unknown;
|
|
975
1011
|
constructor(suspend_id: string, payload: unknown, message?: string);
|
|
976
1012
|
}
|
|
977
1013
|
declare class resume_validation_error extends Error {
|
|
978
1014
|
readonly kind: "resume_validation_error";
|
|
1015
|
+
readonly path?: ReadonlyArray<string>;
|
|
979
1016
|
readonly issues: ReadonlyArray<SchemaIssue>;
|
|
980
1017
|
constructor(message: string, issues: ReadonlyArray<SchemaIssue>);
|
|
981
1018
|
}
|
|
982
1019
|
declare class describe_cycle_error extends Error {
|
|
983
1020
|
readonly kind: "describe_cycle_error";
|
|
1021
|
+
readonly path?: ReadonlyArray<string>;
|
|
984
1022
|
readonly step_id: string;
|
|
985
1023
|
constructor(step_id: string, message?: string);
|
|
986
1024
|
}
|
|
987
1025
|
declare class aborted_error extends Error {
|
|
988
1026
|
readonly kind: "aborted_error";
|
|
1027
|
+
readonly path?: ReadonlyArray<string>;
|
|
989
1028
|
readonly reason?: unknown;
|
|
990
|
-
readonly step_index
|
|
1029
|
+
readonly step_index?: number;
|
|
991
1030
|
readonly tool_call_in_flight?: {
|
|
992
1031
|
id: string;
|
|
993
1032
|
name: string;
|
|
@@ -1001,6 +1040,25 @@ declare class aborted_error extends Error {
|
|
|
1001
1040
|
};
|
|
1002
1041
|
});
|
|
1003
1042
|
}
|
|
1043
|
+
/**
|
|
1044
|
+
* Read the step-id path off any error that crossed the runner's dispatch.
|
|
1045
|
+
*
|
|
1046
|
+
* The runner attaches `path` to whatever escapes a step, including
|
|
1047
|
+
* user-thrown errors the declared class fields cannot type, so a catch block
|
|
1048
|
+
* needs a narrowing read rather than a cast. Returns the ids only when the
|
|
1049
|
+
* property is present and well-formed (an all-string array); anything else,
|
|
1050
|
+
* including non-object inputs, is `undefined`.
|
|
1051
|
+
*/
|
|
1052
|
+
declare function error_path(err: unknown): ReadonlyArray<string> | undefined;
|
|
1053
|
+
//#endregion
|
|
1054
|
+
//#region src/core/is_step.d.ts
|
|
1055
|
+
/**
|
|
1056
|
+
* Check whether a value is structurally a `Step`.
|
|
1057
|
+
*
|
|
1058
|
+
* True when the value has a string `id`, a string `kind`, and a callable
|
|
1059
|
+
* `run`.
|
|
1060
|
+
*/
|
|
1061
|
+
declare function is_step(value: unknown): value is AnyStep;
|
|
1004
1062
|
//#endregion
|
|
1005
1063
|
//#region src/core/step_kinds.d.ts
|
|
1006
1064
|
/**
|
|
@@ -1019,87 +1077,6 @@ type StepKind = (typeof STEP_KINDS)[number];
|
|
|
1019
1077
|
*/
|
|
1020
1078
|
declare function is_step_kind(value: unknown): value is StepKind;
|
|
1021
1079
|
//#endregion
|
|
1022
|
-
//#region src/core/trajectory.d.ts
|
|
1023
|
-
/**
|
|
1024
|
-
* Wire-format guards for trajectory events.
|
|
1025
|
-
*
|
|
1026
|
-
* `TrajectoryEvent` (in `types.ts`) is the loose internal type — any code that
|
|
1027
|
-
* calls `trajectory.record(event)` or `start_span(name, meta)` produces values
|
|
1028
|
-
* conforming to it. This file defines the *narrower* shapes that the studio
|
|
1029
|
-
* (and any other downstream consumer) can recognize in the wire stream:
|
|
1030
|
-
*
|
|
1031
|
-
* span_start — composer span open
|
|
1032
|
-
* span_end — composer span close
|
|
1033
|
-
* emit — user-emitted event from inside a step (ctx.emit)
|
|
1034
|
-
* <other> — anything else, recognized by `is_custom_trajectory_event`,
|
|
1035
|
-
* which only requires a string `kind`
|
|
1036
|
-
*
|
|
1037
|
-
* `parse_trajectory_event` is the wire gate, and it is deliberately permissive:
|
|
1038
|
-
* a value is a trajectory event iff it is a non-array object carrying a string
|
|
1039
|
-
* `kind`. The well-known guards layered on top are *recognizers*, not gates — a
|
|
1040
|
-
* `{ kind: 'span_start' }` line missing its `span_id` is still a valid event on
|
|
1041
|
-
* the wire, just not a `SpanStartEvent`. Anything stricter would have a viewer
|
|
1042
|
-
* drop lines a newer producer emits, which is the opposite of what a
|
|
1043
|
-
* forward-compatible wire format is for. `is_custom_trajectory_event` therefore
|
|
1044
|
-
* answers `true` for well-known kinds too: it is the fallback shape, not a
|
|
1045
|
-
* fifth disjoint case.
|
|
1046
|
-
*
|
|
1047
|
-
* Extra fields (`run_id`, `id`, provider-specific metadata) are neither
|
|
1048
|
-
* required nor stripped: a successful parse hands the value straight back, so a
|
|
1049
|
-
* parse / re-serialize round trip is lossless.
|
|
1050
|
-
*/
|
|
1051
|
-
type SpanStartEvent = {
|
|
1052
|
-
readonly kind: 'span_start';
|
|
1053
|
-
readonly span_id: string;
|
|
1054
|
-
readonly name: string;
|
|
1055
|
-
} & {
|
|
1056
|
-
readonly [key: string]: unknown;
|
|
1057
|
-
};
|
|
1058
|
-
type SpanEndEvent = {
|
|
1059
|
-
readonly kind: 'span_end';
|
|
1060
|
-
readonly span_id: string;
|
|
1061
|
-
} & {
|
|
1062
|
-
readonly [key: string]: unknown;
|
|
1063
|
-
};
|
|
1064
|
-
type EmitEvent = {
|
|
1065
|
-
readonly kind: 'emit';
|
|
1066
|
-
} & {
|
|
1067
|
-
readonly [key: string]: unknown;
|
|
1068
|
-
};
|
|
1069
|
-
type CustomTrajectoryEvent = {
|
|
1070
|
-
readonly kind: string;
|
|
1071
|
-
} & {
|
|
1072
|
-
readonly [key: string]: unknown;
|
|
1073
|
-
};
|
|
1074
|
-
type ParsedTrajectoryEvent = SpanStartEvent | SpanEndEvent | EmitEvent | CustomTrajectoryEvent;
|
|
1075
|
-
type TrajectoryParseResult = {
|
|
1076
|
-
readonly success: true;
|
|
1077
|
-
readonly data: ParsedTrajectoryEvent;
|
|
1078
|
-
} | {
|
|
1079
|
-
readonly success: false;
|
|
1080
|
-
readonly error: Error;
|
|
1081
|
-
};
|
|
1082
|
-
/**
|
|
1083
|
-
* The wire gate: a non-array object carrying a string `kind`.
|
|
1084
|
-
*
|
|
1085
|
-
* True for every well-known kind as well, since `custom` is the fallback shape
|
|
1086
|
-
* rather than a disjoint case.
|
|
1087
|
-
*/
|
|
1088
|
-
declare function is_custom_trajectory_event(value: unknown): value is CustomTrajectoryEvent;
|
|
1089
|
-
/** A composer span open: both `span_id` and `name` must be present as strings. */
|
|
1090
|
-
declare function is_span_start_event(value: unknown): value is SpanStartEvent;
|
|
1091
|
-
/** A composer span close: `span_id` must be present as a string, `name` need not be. */
|
|
1092
|
-
declare function is_span_end_event(value: unknown): value is SpanEndEvent;
|
|
1093
|
-
/** A `ctx.emit` event: the kind alone identifies it, the payload is the caller's. */
|
|
1094
|
-
declare function is_emit_event(value: unknown): value is EmitEvent;
|
|
1095
|
-
/**
|
|
1096
|
-
* Parse one wire value into a trajectory event, `safeParse`-shaped.
|
|
1097
|
-
*
|
|
1098
|
-
* On success `data` is the value itself, not a copy, so nothing on the line is
|
|
1099
|
-
* dropped or reordered on the way through.
|
|
1100
|
-
*/
|
|
1101
|
-
declare function parse_trajectory_event(value: unknown): TrajectoryParseResult;
|
|
1102
|
-
//#endregion
|
|
1103
1080
|
//#region src/engine/create_engine.d.ts
|
|
1104
1081
|
/**
|
|
1105
1082
|
* Validate `config` and construct an `Engine`.
|
|
@@ -1113,6 +1090,7 @@ declare function create_engine(config: EngineConfig): Engine;
|
|
|
1113
1090
|
//#region src/engine/errors.d.ts
|
|
1114
1091
|
declare class rate_limit_error extends Error {
|
|
1115
1092
|
readonly kind: "rate_limit_error";
|
|
1093
|
+
readonly path?: ReadonlyArray<string>;
|
|
1116
1094
|
readonly retry_after_ms: number | undefined;
|
|
1117
1095
|
readonly attempts: number;
|
|
1118
1096
|
readonly status: number | undefined;
|
|
@@ -1124,6 +1102,7 @@ declare class rate_limit_error extends Error {
|
|
|
1124
1102
|
}
|
|
1125
1103
|
declare class provider_error extends Error {
|
|
1126
1104
|
readonly kind: "provider_error";
|
|
1105
|
+
readonly path?: ReadonlyArray<string>;
|
|
1127
1106
|
readonly status: number | undefined;
|
|
1128
1107
|
readonly body: string | undefined;
|
|
1129
1108
|
readonly cause_kind: 'provider_5xx' | 'network' | 'unknown' | undefined;
|
|
@@ -1135,12 +1114,14 @@ declare class provider_error extends Error {
|
|
|
1135
1114
|
}
|
|
1136
1115
|
declare class schema_validation_error extends Error {
|
|
1137
1116
|
readonly kind: "schema_validation_error";
|
|
1117
|
+
readonly path?: ReadonlyArray<string>;
|
|
1138
1118
|
readonly schema_issues: ReadonlyArray<SchemaIssue>;
|
|
1139
1119
|
readonly raw_text: string;
|
|
1140
1120
|
constructor(message: string, schema_issues: ReadonlyArray<SchemaIssue>, raw_text: string);
|
|
1141
1121
|
}
|
|
1142
1122
|
declare class tool_error extends Error {
|
|
1143
1123
|
readonly kind: "tool_error";
|
|
1124
|
+
readonly path?: ReadonlyArray<string>;
|
|
1144
1125
|
readonly tool_name: string;
|
|
1145
1126
|
readonly tool_call_id: string;
|
|
1146
1127
|
readonly cause: unknown;
|
|
@@ -1152,6 +1133,7 @@ declare class tool_error extends Error {
|
|
|
1152
1133
|
}
|
|
1153
1134
|
declare class tool_approval_denied_error extends Error {
|
|
1154
1135
|
readonly kind: "tool_approval_denied_error";
|
|
1136
|
+
readonly path?: ReadonlyArray<string>;
|
|
1155
1137
|
readonly tool_name: string;
|
|
1156
1138
|
readonly step_index: number;
|
|
1157
1139
|
readonly tool_call_id: string;
|
|
@@ -1163,36 +1145,55 @@ declare class tool_approval_denied_error extends Error {
|
|
|
1163
1145
|
}
|
|
1164
1146
|
declare class model_required_error extends Error {
|
|
1165
1147
|
readonly kind: "model_required_error";
|
|
1148
|
+
readonly path?: ReadonlyArray<string>;
|
|
1166
1149
|
constructor(message?: string);
|
|
1167
1150
|
}
|
|
1168
1151
|
declare class provider_not_configured_error extends Error {
|
|
1169
1152
|
readonly kind: "provider_not_configured_error";
|
|
1153
|
+
readonly path?: ReadonlyArray<string>;
|
|
1170
1154
|
readonly provider: string;
|
|
1171
1155
|
constructor(provider: string);
|
|
1172
1156
|
}
|
|
1157
|
+
/**
|
|
1158
|
+
* No provider could be resolved for a generate call: several providers are
|
|
1159
|
+
* configured, the call named none, and no `defaults.provider` is set. Carries
|
|
1160
|
+
* the configured provider names so the message tells the caller exactly what
|
|
1161
|
+
* the engine can route to.
|
|
1162
|
+
*/
|
|
1163
|
+
declare class provider_required_error extends Error {
|
|
1164
|
+
readonly kind: "provider_required_error";
|
|
1165
|
+
readonly path?: ReadonlyArray<string>;
|
|
1166
|
+
readonly configured: ReadonlyArray<string>;
|
|
1167
|
+
constructor(configured: ReadonlyArray<string>);
|
|
1168
|
+
}
|
|
1173
1169
|
declare class engine_config_error extends Error {
|
|
1174
1170
|
readonly kind: "engine_config_error";
|
|
1171
|
+
readonly path?: ReadonlyArray<string>;
|
|
1175
1172
|
readonly provider: string | undefined;
|
|
1176
1173
|
constructor(message: string, provider?: string);
|
|
1177
1174
|
}
|
|
1178
1175
|
declare class on_chunk_error extends Error {
|
|
1179
1176
|
readonly kind: "on_chunk_error";
|
|
1177
|
+
readonly path?: ReadonlyArray<string>;
|
|
1180
1178
|
readonly cause: unknown;
|
|
1181
1179
|
constructor(message: string, cause: unknown);
|
|
1182
1180
|
}
|
|
1183
1181
|
declare class provider_capability_error extends Error {
|
|
1184
1182
|
readonly kind: "provider_capability_error";
|
|
1183
|
+
readonly path?: ReadonlyArray<string>;
|
|
1185
1184
|
readonly provider: string;
|
|
1186
1185
|
readonly capability: string;
|
|
1187
1186
|
constructor(provider: string, capability: string, detail?: string);
|
|
1188
1187
|
}
|
|
1189
1188
|
declare class engine_disposed_error extends Error {
|
|
1190
1189
|
readonly kind: "engine_disposed_error";
|
|
1190
|
+
readonly path?: ReadonlyArray<string>;
|
|
1191
1191
|
constructor(message?: string);
|
|
1192
1192
|
}
|
|
1193
1193
|
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';
|
|
1194
1194
|
declare class claude_cli_error extends Error {
|
|
1195
1195
|
readonly kind: "claude_cli_error";
|
|
1196
|
+
readonly path?: ReadonlyArray<string>;
|
|
1196
1197
|
readonly reason: ClaudeCliErrorReason;
|
|
1197
1198
|
readonly status: number | undefined;
|
|
1198
1199
|
readonly stderr_snippet: string | undefined;
|
|
@@ -1203,6 +1204,7 @@ declare class claude_cli_error extends Error {
|
|
|
1203
1204
|
}
|
|
1204
1205
|
declare class provider_auth_error extends Error {
|
|
1205
1206
|
readonly kind: "provider_auth_error";
|
|
1207
|
+
readonly path?: ReadonlyArray<string>;
|
|
1206
1208
|
readonly provider: string;
|
|
1207
1209
|
readonly refresh_command: string | undefined;
|
|
1208
1210
|
constructor(provider: string, message: string, metadata?: {
|
|
@@ -1220,6 +1222,7 @@ declare class provider_auth_error extends Error {
|
|
|
1220
1222
|
*/
|
|
1221
1223
|
declare class incomplete_generation_error extends Error {
|
|
1222
1224
|
readonly kind: "incomplete_generation_error";
|
|
1225
|
+
readonly path?: ReadonlyArray<string>;
|
|
1223
1226
|
readonly finish_reason: FinishReason;
|
|
1224
1227
|
readonly raw_text: string;
|
|
1225
1228
|
readonly provider_reported: Record<string, unknown> | undefined;
|
|
@@ -1360,6 +1363,30 @@ type EnsembleStepResult<o, ranked> = {
|
|
|
1360
1363
|
*/
|
|
1361
1364
|
declare function ensemble_step<i, o, ranked, projected = EnsembleStepResult<o, ranked>>(config: EnsembleStepConfig<i, o, ranked, projected>): Step<i, projected>;
|
|
1362
1365
|
//#endregion
|
|
1366
|
+
//#region src/composites/gate.d.ts
|
|
1367
|
+
type GateConfig<o> = {
|
|
1368
|
+
readonly id: string;
|
|
1369
|
+
readonly name?: string;
|
|
1370
|
+
readonly store?: CheckpointStore;
|
|
1371
|
+
readonly format?: (result: o) => unknown;
|
|
1372
|
+
};
|
|
1373
|
+
/**
|
|
1374
|
+
* Build a Step that runs `inner`, checkpoints its result at `gate:<id>`, and
|
|
1375
|
+
* suspends with that result as the payload awaiting approval.
|
|
1376
|
+
*
|
|
1377
|
+
* On resume (any defined resume value) the gate resolves to the inner result
|
|
1378
|
+
* unchanged; the decision itself is discarded. On a re-run against the same
|
|
1379
|
+
* store, the checkpoint absorbs the replay so `inner` never re-executes.
|
|
1380
|
+
* Throws at construction time when `inner` is anonymous, because the cached
|
|
1381
|
+
* result must map back to a stable step.
|
|
1382
|
+
*
|
|
1383
|
+
* Implemented as a `compose`d `scope`: the checkpointed result is stashed,
|
|
1384
|
+
* projected into the approver's view, and handed to `suspend`; the suspend's
|
|
1385
|
+
* `combine` returns a `use` step that restores the stashed result, which is
|
|
1386
|
+
* how the decision stays signal-only.
|
|
1387
|
+
*/
|
|
1388
|
+
declare function gate<i, o>(inner: Step<i, o>, config: GateConfig<o>): Step<i, o>;
|
|
1389
|
+
//#endregion
|
|
1363
1390
|
//#region src/composites/improve.d.ts
|
|
1364
1391
|
type Candidate<c> = {
|
|
1365
1392
|
readonly content: c;
|
|
@@ -1520,6 +1547,7 @@ declare function tournament<i, o, projected = TournamentResult<o>>(config: Tourn
|
|
|
1520
1547
|
*/
|
|
1521
1548
|
declare class bench_suspend_error extends Error {
|
|
1522
1549
|
readonly kind: "bench_suspend_error";
|
|
1550
|
+
readonly path?: ReadonlyArray<string>;
|
|
1523
1551
|
readonly case_id: string;
|
|
1524
1552
|
readonly suspend_id: string;
|
|
1525
1553
|
constructor(case_id: string, suspend_id: string, message?: string);
|
|
@@ -1693,14 +1721,15 @@ type ModelCallInput = string | ReadonlyArray<Message>;
|
|
|
1693
1721
|
type ModelCallConfig<T = string, projected = GenerateResult<T>> = {
|
|
1694
1722
|
readonly engine: Engine;
|
|
1695
1723
|
/**
|
|
1696
|
-
* Model
|
|
1697
|
-
* `defaults.model` is used. Errors at
|
|
1724
|
+
* Model id, sent to the provider verbatim (there is no alias layer).
|
|
1725
|
+
* Optional: if omitted, the engine's `defaults.model` is used. Errors at
|
|
1726
|
+
* call time if neither is set.
|
|
1698
1727
|
*/
|
|
1699
1728
|
readonly model?: string;
|
|
1700
1729
|
/**
|
|
1701
1730
|
* Transport for the model: `anthropic` | `claude_cli` | `openrouter` | ...
|
|
1702
|
-
* Optional: if omitted, the engine's `defaults.provider` (or sole
|
|
1703
|
-
* provider
|
|
1731
|
+
* Optional: if omitted, the engine's `defaults.provider` (or its sole
|
|
1732
|
+
* configured provider) is used.
|
|
1704
1733
|
*/
|
|
1705
1734
|
readonly provider?: string;
|
|
1706
1735
|
readonly id?: string;
|
|
@@ -1708,7 +1737,20 @@ type ModelCallConfig<T = string, projected = GenerateResult<T>> = {
|
|
|
1708
1737
|
readonly tools?: ReadonlyArray<Tool>;
|
|
1709
1738
|
readonly schema?: ToolSchema<T>;
|
|
1710
1739
|
readonly effort?: EffortLevel;
|
|
1740
|
+
readonly temperature?: number;
|
|
1741
|
+
readonly max_tokens?: number;
|
|
1742
|
+
readonly top_p?: number;
|
|
1711
1743
|
readonly max_steps?: number;
|
|
1744
|
+
/**
|
|
1745
|
+
* Per-turn wall-clock budget in milliseconds, forwarded to the engine.
|
|
1746
|
+
* See `GenerateOptions.turn_timeout_ms`.
|
|
1747
|
+
*/
|
|
1748
|
+
readonly turn_timeout_ms?: number;
|
|
1749
|
+
/**
|
|
1750
|
+
* Per-turn message hook, forwarded to the engine. See
|
|
1751
|
+
* `GenerateOptions.prepare_step`.
|
|
1752
|
+
*/
|
|
1753
|
+
readonly prepare_step?: PrepareStepHook;
|
|
1712
1754
|
readonly provider_options?: Record<string, unknown>;
|
|
1713
1755
|
readonly retry_policy?: RetryPolicy;
|
|
1714
1756
|
readonly tool_error_policy?: 'feed_back' | 'throw';
|
|
@@ -1767,48 +1809,5 @@ declare function model_step<T = string>(cfg: Omit<ModelCallConfig<T>, 'project'>
|
|
|
1767
1809
|
*/
|
|
1768
1810
|
declare function forward_standard_env(): Record<string, string>;
|
|
1769
1811
|
//#endregion
|
|
1770
|
-
|
|
1771
|
-
/**
|
|
1772
|
-
* `start_viewer` programmatic embed implementation.
|
|
1773
|
-
*
|
|
1774
|
-
* Spin up the server, optionally start tailing a JSONL file, and return a
|
|
1775
|
-
* handle that can stop both. `start_viewer` only depends on core's wire-format
|
|
1776
|
-
* schema; it never reaches into the engine, composites, or any provider.
|
|
1777
|
-
*/
|
|
1778
|
-
type StartViewerOptions = {
|
|
1779
|
-
readonly path?: string;
|
|
1780
|
-
readonly host?: string;
|
|
1781
|
-
readonly port?: number;
|
|
1782
|
-
readonly buffer?: number;
|
|
1783
|
-
readonly on_parse_error?: (err: unknown, line: string) => void;
|
|
1784
|
-
readonly on_io_error?: (err: unknown) => void;
|
|
1785
|
-
readonly on_subscriber_error?: (err: unknown) => void;
|
|
1786
|
-
};
|
|
1787
|
-
type ViewerHandle = {
|
|
1788
|
-
readonly url: string;
|
|
1789
|
-
readonly host: string;
|
|
1790
|
-
readonly port: number;
|
|
1791
|
-
readonly close: () => Promise<void>;
|
|
1792
|
-
};
|
|
1793
|
-
/**
|
|
1794
|
-
* Starts the viewer: brings up the HTTP/SSE server and, if `options.path`
|
|
1795
|
-
* is set, a file tail that feeds the same broadcaster.
|
|
1796
|
-
*
|
|
1797
|
-
* Defaults to `127.0.0.1:4242` with a 1000-event ring buffer. HTTP ingest
|
|
1798
|
-
* and SSE are always available; tailing is opt-in via `path`.
|
|
1799
|
-
*/
|
|
1800
|
-
declare function start_viewer(options?: StartViewerOptions): Promise<ViewerHandle>;
|
|
1801
|
-
//#endregion
|
|
1802
|
-
//#region src/viewer/cli.d.ts
|
|
1803
|
-
/**
|
|
1804
|
-
* CLI entry point: parses argv, starts the viewer, and wires shutdown.
|
|
1805
|
-
*
|
|
1806
|
-
* Warns but proceeds when the tailed path does not exist yet or when the
|
|
1807
|
-
* bind host is 0.0.0.0 (the dashboard has no auth). Optionally opens the
|
|
1808
|
-
* browser, then installs SIGINT/SIGTERM handlers that close the viewer
|
|
1809
|
-
* before exiting.
|
|
1810
|
-
*/
|
|
1811
|
-
declare function run_viewer_cli(argv: readonly string[]): Promise<void>;
|
|
1812
|
-
//#endregion
|
|
1813
|
-
export { type AdversarialBuildInput, type AdversarialConfig, type AdversarialCritiqueResult, type AdversarialResult, type AiSdkProviderAdapter, type AiSdkTelemetrySettings, type AnyStep, type AssistantContentPart, type BenchCase, type BenchOptions, type BenchReport, type BenchSummary, type BracketRecord, type Candidate, type CaseResult, type Chain, type ChainStepOptions, type CheckpointStore, type ConsensusConfig, type ConsensusResult, type CostBreakdown, type CustomTrajectoryEvent, type DescribeOptions, type EffortLevel, type EffortTranslation, type EmitEvent, type Engine, type EngineConfig, type EngineDefaults, type EnsembleConfig, type EnsembleResult, type EnsembleStepConfig, type EnsembleStepResult, type ExternalAgentAdapter, type FinishReason, type FlowNode, type FlowValue, type GenerateOptions, type GenerateResult, 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 LoopGuardResult, type LoopOutcome, type Message, type ModelCallConfig, type ModelCallInput, type NativeProviderAdapter, type ParsedTrajectoryEvent, type PerCaseDelta, 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 ResolvedModel, type RetryFailureKind, type RetryPolicy, type RunContext, type RunOutcome, STEP_KINDS, type Score, type ScoredCandidate, type SpanEndEvent, type SpanStartEvent, type StartViewerOptions, type Step, type StepKind, type StepMetadata, type StepRecord, type StreamChunk, type Tool, type ToolApprovalHandler, type ToolApprovalRequest, type ToolCallRecord, type ToolExecContext, type TournamentConfig, type TournamentResult, type TrajectoryEvent, type TrajectoryLogger, type TrajectoryParseResult, type TrajectorySource, type TurnRequest, type TurnResult, type UsageTotals, type UserContentPart, type ViewerHandle, aborted_error, adversarial, bench, bench_suspend_error, branch, chain, checkpoint, claude_cli_error, compose, consensus, create_engine, default_normalize_usage, describe, describe_cycle_error, engine_config_error, engine_disposed_error, ensemble, ensemble_step, fallback, __json_default_export as flow_schema, forward_standard_env, improve, incomplete_generation_error, is_custom_trajectory_event, is_emit_event, is_span_end_event, is_span_start_event, is_step_kind, 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, rate_limit_error, read_baseline, regression_compare, resume_validation_error, retry, run, run_viewer_cli, schema_validation_error, scope, sequence, start_viewer, stash, step, suspend, suspended_error, timeout, timeout_error, tool_approval_denied_error, tool_error, tournament, use, write_baseline };
|
|
1812
|
+
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 CleanupFn, type ConsensusConfig, type ConsensusResult, type CostBreakdown, type CustomTrajectoryEvent, type DescribeOptions, 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 FinishReason, type FlowNode, type FlowValue, type GateConfig, type GenerateOptions, type GenerateResult, 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 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 ResolvedModel, type RetryConfig, type RetryFailureKind, type RetryPolicy, type RunContext, type RunEndEvent, type RunEndStatus, type RunOptions, type RunOutcome, STEP_KINDS, type SchemaIssue, type ScopeOptions, type Score, type ScoredCandidate, type SequenceOptions, type SpanEndEvent, type SpanStartEvent, type StashOptions, type Step, type StepFn, type StepInput, type StepKind, type StepMetadata, type StepOutput, type StepRecord, type StreamChunk, type StreamingRunHandle, type SuspendConfig, 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, aborted_error, adversarial, bench, bench_suspend_error, branch, chain, checkpoint, claude_cli_error, compose, consensus, create_engine, default_normalize_usage, describe, describe_cycle_error, engine_config_error, engine_disposed_error, ensemble, ensemble_step, error_path, fallback, __json_default_export as flow_schema, forward_standard_env, gate, improve, incomplete_generation_error, is_checkpoint_event, is_custom_trajectory_event, is_emit_event, is_run_end_event, is_span_end_event, is_span_start_event, is_step, is_step_kind, 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, resume_validation_error, retry, run, schema_validation_error, scope, sequence, stash, step, suspend, suspended_error, timeout, timeout_error, tool_approval_denied_error, tool_error, tournament, use, write_baseline };
|
|
1814
1813
|
//# sourceMappingURL=index.d.ts.map
|