bitfab 0.68.8 → 0.68.9

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.
@@ -2814,6 +2814,113 @@ declare class OrganizationMembersClient {
2814
2814
  list(): Promise<OrganizationMember[]>;
2815
2815
  }
2816
2816
  //#endregion
2817
+ //#region src/piIntegration.d.ts
2818
+ type PiSpanOptions = {
2819
+ name: string;
2820
+ type: "agent" | "llm" | "function";
2821
+ captureWhen?: "nested";
2822
+ mockOnReplay?: boolean;
2823
+ finalize?: (result: unknown) => unknown | Promise<unknown>;
2824
+ surface: "inherit";
2825
+ instrumentation: "pi";
2826
+ };
2827
+ type CurrentSpanHandle = {
2828
+ addContext(context: Record<string, unknown>): void;
2829
+ };
2830
+ /** The subset of the Bitfab client the Pi integration records through. */
2831
+ interface PiSpanHost {
2832
+ withSpan<TArgs extends unknown[], TReturn>(traceFunctionKey: string, options: PiSpanOptions, fn: (...args: TArgs) => TReturn): (...args: TArgs) => TReturn;
2833
+ activeRootTraceFunctionKey(): string | undefined;
2834
+ currentSpan(): CurrentSpanHandle;
2835
+ traceRootContexts(): Record<string, unknown>[] | null;
2836
+ setTraceSessionId(sessionId: string): void;
2837
+ withDiscoveredCallsUnderCurrentSpan<T>(fn: () => T): T;
2838
+ }
2839
+ /** Options for `bitfab.getPiIntegration(key, options)`. */
2840
+ interface PiIntegrationOptions {
2841
+ /**
2842
+ * Which tool calls replay answers with the recorded result instead of
2843
+ * running the tool. `true` (the default) mocks every tool, `false` runs
2844
+ * every tool live, and a list of tool names mocks only those tools.
2845
+ */
2846
+ mockToolsOnReplay?: boolean | readonly string[];
2847
+ }
2848
+ /**
2849
+ * Traces agents built on the Pi agent harness (`@earendil-works/pi-agent-core`,
2850
+ * formerly `@mariozechner/pi-agent-core`) as one trace function. Obtain it from
2851
+ * `bitfab.getPiIntegration(key)`.
2852
+ *
2853
+ * ```typescript
2854
+ * import { Agent } from "@earendil-works/pi-agent-core";
2855
+ *
2856
+ * const pi = bitfab.getPiIntegration("admin-agent");
2857
+ * const agent = pi.instrument(new Agent({ initialState: { systemPrompt, model, tools } }));
2858
+ * await agent.prompt("Disable the account for jane@example.com");
2859
+ * ```
2860
+ *
2861
+ * Each `prompt` / `continue` records a replayable root `agent` span with the
2862
+ * prompt as input and the final assistant text as output, plus the conversation
2863
+ * so far, which replay restores. Each model request beneath it is an `llm` span
2864
+ * with the transcript sent, the assistant message received, and token usage
2865
+ * and cost. Each tool call is a `function` span with the tool's arguments and
2866
+ * result, marked for replay mocking by default.
2867
+ *
2868
+ * The integration is duck-typed: it imports no Pi package, and works with both
2869
+ * the `@earendil-works` 1.x and the `@mariozechner` 0.x packages.
2870
+ *
2871
+ * @experimental This API may change before it is stable.
2872
+ */
2873
+ declare class BitfabPiIntegration {
2874
+ private readonly host;
2875
+ private readonly traceFunctionKey;
2876
+ private readonly mockToolsOnReplay;
2877
+ private readonly instrumented;
2878
+ private readonly toolArrays;
2879
+ private readonly wrappedStreamFns;
2880
+ private readonly wrappedTools;
2881
+ private readonly originalTools;
2882
+ private readonly wrappedHooks;
2883
+ constructor(config: {
2884
+ host: PiSpanHost;
2885
+ traceFunctionKey: string;
2886
+ options?: PiIntegrationOptions;
2887
+ });
2888
+ /**
2889
+ * Trace a Pi `Agent`, or a coding-agent `AgentSession` from
2890
+ * `createAgentSession`, as this trace function. Returns the same object,
2891
+ * traced from inside: `prompt` and `continue` (`prompt` on a session) record
2892
+ * a replayable root span, and every model request and tool call beneath it
2893
+ * records a span, including tools added after `instrument`. Every other
2894
+ * property is the object's own, and the original object is not modified, so
2895
+ * runs through the original are not traced.
2896
+ *
2897
+ * A run inside a trace of this same trace function (a replay, or a session's
2898
+ * own retries) opens no second root. Inside another key's span, the root
2899
+ * nests there. Passing an object this or another Pi integration already
2900
+ * instrumented returns it unchanged.
2901
+ *
2902
+ * @throws {BitfabError} When the value is neither a Pi `Agent` nor an `AgentSession`.
2903
+ * @experimental This API may change before it is stable.
2904
+ */
2905
+ instrument<T extends object>(target: T): T;
2906
+ private proxyFor;
2907
+ private instrumentAgent;
2908
+ private instrumentSession;
2909
+ private toolWrappingHook;
2910
+ private restoreIntoSession;
2911
+ private toolWrappingState;
2912
+ private toolWrappingArray;
2913
+ private recordTranscript;
2914
+ private warnConversationTrimmed;
2915
+ private restoredTranscript;
2916
+ private runRoot;
2917
+ private warnIfOutsideRun;
2918
+ private wrapStreamFn;
2919
+ private mocksTool;
2920
+ private unwrapTool;
2921
+ private wrapTool;
2922
+ }
2923
+ //#endregion
2817
2924
  //#region src/replayInterrupt.d.ts
2818
2925
  type ReplayInterruptSignal = "SIGINT" | "SIGTERM";
2819
2926
  interface ReplayInterrupt {
@@ -4316,6 +4423,22 @@ declare class Bitfab {
4316
4423
  * @experimental This API may change before it is stable.
4317
4424
  */
4318
4425
  getRivetIntegration<TContext extends object = RivetContextLike>(traceFunctionKey: string, options?: RivetIntegrationOptions): BitfabRivetIntegration<TContext>;
4426
+ /**
4427
+ * Get the first-class integration for agents built on the Pi agent harness
4428
+ * (`@earendil-works/pi-agent-core`, or a coding-agent `AgentSession`).
4429
+ * `instrument(agent)` returns the same agent, with each `prompt` recorded as
4430
+ * a replayable root and each model request and tool call as a span beneath it.
4431
+ *
4432
+ * ```typescript
4433
+ * const agent = client.getPiIntegration("admin-agent").instrument(new Agent({ initialState }))
4434
+ * await agent.prompt("Disable the account for jane@example.com")
4435
+ * ```
4436
+ *
4437
+ * @param traceFunctionKey - Groups traces under this key in Bitfab
4438
+ * @param options - Controls which tools are marked for replay mocking
4439
+ * @experimental This API may change before it is stable.
4440
+ */
4441
+ getPiIntegration(traceFunctionKey: string, options?: PiIntegrationOptions): BitfabPiIntegration;
4319
4442
  /**
4320
4443
  * Get a Claude Agent SDK handler for tracing.
4321
4444
  *
@@ -4894,6 +5017,14 @@ declare class BitfabFunction {
4894
5017
  * @experimental This API may change before it is stable.
4895
5018
  */
4896
5019
  getDeepAgentsIntegration(options?: LangGraphIntegrationOptions): BitfabLangGraphIntegration;
5020
+ /**
5021
+ * Get the Pi agent harness integration bound to this function's key.
5022
+ * Equivalent to `client.getPiIntegration(key, options)`.
5023
+ *
5024
+ * @param options - Controls which tools are marked for replay mocking
5025
+ * @experimental This API may change before it is stable.
5026
+ */
5027
+ getPiIntegration(options?: PiIntegrationOptions): BitfabPiIntegration;
4897
5028
  /**
4898
5029
  * Get the first-class Rivet actor-context integration bound to this key.
4899
5030
  * Use its `bind()` or `withContext()` outside this handle's `withTrace()`
@@ -4990,7 +5121,7 @@ interface CommitRef {
4990
5121
  /**
4991
5122
  * SDK version from package.json (injected at build time)
4992
5123
  */
4993
- declare const __version__ = "0.68.8";
5124
+ declare const __version__ = "0.68.9";
4994
5125
  //#endregion
4995
5126
  //#region src/constants.d.ts
4996
5127
  /**
@@ -5132,4 +5263,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
5132
5263
  run?: boolean;
5133
5264
  }): Promise<SeedResult>;
5134
5265
  //#endregion
5135
- export { RivetEffectType as $, TraceTarget as $n, SpanOccurrence as $r, LabelTarget as $t, SpanMethodDecoratorContext as A, JustificationSpan as Ai, SaveScenarioHistoryEntry as An, RerunGradersOptions as Ar, GetGraderLabelsParams as At, getCurrentTrace as B, ScenarioGeneration as Bn, BitfabClaudeAgentHandler as Br, GradersClient as Bt, NodeMethodDecorator as C, BamlExecutionResult as Ci, AssertionVerdictEvidence as Cn, GraderRerunProgress as Cr, OrganizationMembersClient as Ct, SeedCaseOptions as D, Approver as Di, SaveAssertionsParams as Dn, ListDatasetsParams as Dr, BitfabLangGraphIntegration as Dt, ReseedResult as E, ApprovalState as Ei, SaveAssertionsAllParams as En, GraderRerunTimeoutError as Er, BitfabLangGraphAgent as Et, WrapOpenAIResponsesOptions as F, ScenarioActualOutcome as Fn, BitfabLanguageModelMiddleware as Fr, GraderLabelUpdate as Ft, TracingProcessor as G, ScenarioTrigger as Gn, Category as Gr, HumanLabelUpdate as Gt, ActiveSpanContext as H, ScenarioRecord as Hn, AssertionCategory as Hr, ArchiveVerdictTarget as Ht, WrapOpenRouterOptions as I, ScenarioData as In, BitfabVercelAiHandler as Ir, GraderVerdict as It, SpanListParams as J, TraceAssertionsResult as Jn, SaveCategoryParams as Jr, LabelAction as Jt, ListedSpan as K, TraceAssertion as Kn, CategorySummary as Kr, HumanVerdictOutcome as Kt, WrappedBamlFn as L, ScenarioDataAppend as Ln, VercelCallParams as Lr, GraderVerdictOutcome as Lt, WrapAnthropicOptions as M, SavedTraceAssertion as Mn, SaveDatasetParams as Mr, GraderLabel as Mt, WrapBAMLOptions as N, Scenario as Nn, SaveDatasetResult as Nr, GraderLabelOutcome as Nt, SeedRunOptions as O, Assignee as Oi, SaveScenarioActualOutcome as On, RemoveDatasetGradersResult as Or, LangGraphIntegrationOptions as Ot, WrapJevOptions as P, ScenarioAction as Pn, UpdateDatasetParams as Pr, GraderLabelSource as Pt, RivetContextLike as Q, TraceSearchResult as Qn, SpanLookup as Qr, LabelStatus as Qt, getCurrentReplayBranch as R, ScenarioDataOrigin as Rn, VercelGenerateResult as Rr, GraderVerdictSource as Rt, DetachedTrace as S, AllowedEnvVars as Si, AssertionRewriteStatus as Sn, GraderRerunError as Sr, OrganizationMember as St, ReseedOptions as T, ApprovalFields as Ti, SaveAssertion as Tn, GraderRerunStatus as Tr, BitfabAgentMiddleware as Tt, BitfabOpenAITracingProcessor as U, ScenarioRecordInput as Un, AssertionCategorySummary as Ur, AssertionVerdict as Ut, CaptureSurface as V, ScenarioHistoryEntry as Vn, AssertionCategoriesClient as Vr, ArchiveLabelTarget as Vt, TraceResponse as W, ScenarioSource as Wn, CategoriesClient as Wr, HumanLabelOutcome as Wt, SpansClient as X, TraceSearchFilters as Xn, CodeChangeFile as Xr, LabelOutcome as Xt, SpanListResult as Y, TraceAssertionsUpdate as Yn, CapturedSpan as Yr, LabelConfidence as Yt, BitfabRivetIntegration as Z, TraceSearchParams as Zn, HttpClient as Zr, LabelSource as Zt, BitfabConfig as _, SUPPORTED_PROVIDERS as _i, AssertionGenerationError as _n, Dataset as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, MockOverrideCtx as ai, Verdict as an, ExperimentJitter as ar, DbBranchOptions as at, CurrentSpan as b, SelectiveReplayOptions as bi, AssertionLabelEvidence as bn, DatasetsClient as br, ReplayInterrupt as bt, SeedResult as c, MockValue as ci, VerdictOutcome as cn, ExperimentRollupResult as cr, ReplayError as ct, seedFromRegistry as d, SpanNodeMeta as di, VerdictTarget as dn, ExperimentTally as dr, ReplayItemFinishProgress as dt, SpanType as ei, LabelUpdate as en, TraceTargetOccurrence as er, RivetIntegrationOptions as et, finalizers as f, BitfabError as fi, VerdictUpdate as fn, ExperimentTotals as fr, ReplayItemStartProgress as ft, Bitfab as g, DbSnapshotRef as gi, AssertionGeneration as gn, AddDatasetTracesResult as gr, ReplayResult as gt, CommitRef as h, DbSnapshotProvider as hi, AssertionEvidenceParameter as hn, AddDatasetGradersResult as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, MockOverride as ii, TraceVerdicts as in, ExperimentCodeChangeTotals as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SaveScenarioParams as jn, RerunGradersResult as jr, GetGraderVerdictsParams as jt, SpanMethodDecorator as k, Justification as ki, SaveScenarioData as kn, RemoveDatasetTracesResult as kr, BitfabLangGraphCallbackHandler as kt, defineReplayRegistry as l, NO_MOCK_OVERRIDE as li, VerdictSource as ln, ExperimentRunBy as lr, ReplayExperiment as lt, __version__ as m, DbSnapshotConfig as mi, ArchiveAssertionsParams as mn, ListExperimentsParams as mr, ReplayProgress as mt, ReplayRegistration as n, flushTraces as ni, PassFailVerdict as nn, Experiment as nr, AdaptContext as nt, ReseedRegistryResult as o, MockOverrideInput as oi, VerdictAction as on, ExperimentPage as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, MixedTracingError as pi, VerdictsClient as pn, ExperimentsClient as pr, ReplayOptions as pt, SpanListField as q, TraceAssertionSource as qn, SaveAssertionCategoryParams as qr, HumanVerdictUpdate as qt, ReplayRegistry as r, DbBranchTimings as ri, TraceLabels as rn, ExperimentCategoryTally as rr, AdaptInputsFn as rt, SeedCase as s, MockOverrideResolver as si, VerdictConfidence as sn, ExperimentRollup as sr, MockStrategy as st, ReplayOptionsFactory as t, TokenUsage as ti, LabelsClient as tn, TracesClient as tr, ReplayBranch as tt, reseedFromRegistry as u, NodeMatcher as ui, VerdictStatus as un, ExperimentStatus as ur, ReplayItem as ut, BitfabFunction as v, ReplayNodeIdentity as vi, AssertionGenerationStatus as vn, DatasetGraderRef as vr, reportReplayProgress as vt, NodeOptions as w, ProviderDefinition as wi, GenerateAssertionsOptions as wn, GraderRerunResult as wr, BitfabOpenAIAgentHandler as wt, CurrentTrace as x, SelectiveReplayReport as xi, AssertionRewrite as xn, GraderRerun as xr, ReplayInterruptSignal as xt, CaptureWhen as y, SelectiveReplayDecision as yi, AssertionGenerationTimeoutError as yn, DatasetTraceIds as yr, serializeReplayResult as yt, getCurrentSpan as z, ScenarioDataSources as zn, VercelStreamResult as zr, GraderVerdictUpdate as zt };
5266
+ export { RivetEffectType as $, TraceSearchParams as $n, HttpClient as $r, LabelSource as $t, SpanMethodDecoratorContext as A, Assignee as Ai, SaveScenarioActualOutcome as An, RemoveDatasetGradersResult as Ar, LangGraphIntegrationOptions as At, getCurrentTrace as B, ScenarioDataOrigin as Bn, VercelGenerateResult as Br, GraderVerdictSource as Bt, NodeMethodDecorator as C, SelectiveReplayReport as Ci, AssertionRewrite as Cn, GraderRerun as Cr, PiIntegrationOptions as Ct, SeedCaseOptions as D, ApprovalFields as Di, SaveAssertion as Dn, GraderRerunStatus as Dr, BitfabAgentMiddleware as Dt, ReseedResult as E, ProviderDefinition as Ei, GenerateAssertionsOptions as En, GraderRerunResult as Er, BitfabOpenAIAgentHandler as Et, WrapOpenAIResponsesOptions as F, Scenario as Fn, SaveDatasetResult as Fr, GraderLabelOutcome as Ft, TracingProcessor as G, ScenarioRecordInput as Gn, AssertionCategorySummary as Gr, AssertionVerdict as Gt, ActiveSpanContext as H, ScenarioGeneration as Hn, BitfabClaudeAgentHandler as Hr, GradersClient as Ht, WrapOpenRouterOptions as I, ScenarioAction as In, UpdateDatasetParams as Ir, GraderLabelSource as It, SpanListParams as J, TraceAssertion as Jn, CategorySummary as Jr, HumanVerdictOutcome as Jt, ListedSpan as K, ScenarioSource as Kn, CategoriesClient as Kr, HumanLabelOutcome as Kt, WrappedBamlFn as L, ScenarioActualOutcome as Ln, BitfabLanguageModelMiddleware as Lr, GraderLabelUpdate as Lt, WrapAnthropicOptions as M, JustificationSpan as Mi, SaveScenarioHistoryEntry as Mn, RerunGradersOptions as Mr, GetGraderLabelsParams as Mt, WrapBAMLOptions as N, SaveScenarioParams as Nn, RerunGradersResult as Nr, GetGraderVerdictsParams as Nt, SeedRunOptions as O, ApprovalState as Oi, SaveAssertionsAllParams as On, GraderRerunTimeoutError as Or, BitfabLangGraphAgent as Ot, WrapJevOptions as P, SavedTraceAssertion as Pn, SaveDatasetParams as Pr, GraderLabel as Pt, RivetContextLike as Q, TraceSearchFilters as Qn, CodeChangeFile as Qr, LabelOutcome as Qt, getCurrentReplayBranch as R, ScenarioData as Rn, BitfabVercelAiHandler as Rr, GraderVerdict as Rt, DetachedTrace as S, SelectiveReplayOptions as Si, AssertionLabelEvidence as Sn, DatasetsClient as Sr, BitfabPiIntegration as St, ReseedOptions as T, BamlExecutionResult as Ti, AssertionVerdictEvidence as Tn, GraderRerunProgress as Tr, OrganizationMembersClient as Tt, BitfabOpenAITracingProcessor as U, ScenarioHistoryEntry as Un, AssertionCategoriesClient as Ur, ArchiveLabelTarget as Ut, CaptureSurface as V, ScenarioDataSources as Vn, VercelStreamResult as Vr, GraderVerdictUpdate as Vt, TraceResponse as W, ScenarioRecord as Wn, AssertionCategory as Wr, ArchiveVerdictTarget as Wt, SpansClient as X, TraceAssertionsResult as Xn, SaveCategoryParams as Xr, LabelAction as Xt, SpanListResult as Y, TraceAssertionSource as Yn, SaveAssertionCategoryParams as Yr, HumanVerdictUpdate as Yt, BitfabRivetIntegration as Z, TraceAssertionsUpdate as Zn, CapturedSpan as Zr, LabelConfidence as Zt, BitfabConfig as _, DbSnapshotProvider as _i, AssertionEvidenceParameter as _n, AddDatasetGradersResult as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, DbBranchTimings as ai, TraceLabels as an, ExperimentCategoryTally as ar, DbBranchOptions as at, CurrentSpan as b, ReplayNodeIdentity as bi, AssertionGenerationStatus as bn, DatasetGraderRef as br, ReplayInterrupt as bt, SeedResult as c, MockOverrideInput as ci, VerdictAction as cn, ExperimentPage as cr, ReplayError as ct, seedFromRegistry as d, NO_MOCK_OVERRIDE as di, VerdictSource as dn, ExperimentRunBy as dr, ReplayItemFinishProgress as dt, SpanLookup as ei, LabelStatus as en, TraceSearchResult as er, RivetIntegrationOptions as et, finalizers as f, NodeMatcher as fi, VerdictStatus as fn, ExperimentStatus as fr, ReplayItemStartProgress as ft, Bitfab as g, DbSnapshotConfig as gi, ArchiveAssertionsParams as gn, ListExperimentsParams as gr, ReplayResult as gt, CommitRef as h, MixedTracingError as hi, VerdictsClient as hn, ExperimentsClient as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, flushTraces as ii, PassFailVerdict as in, Experiment as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, Justification as ji, SaveScenarioData as jn, RemoveDatasetTracesResult as jr, BitfabLangGraphCallbackHandler as jt, SpanMethodDecorator as k, Approver as ki, SaveAssertionsParams as kn, ListDatasetsParams as kr, BitfabLangGraphIntegration as kt, defineReplayRegistry as l, MockOverrideResolver as li, VerdictConfidence as ln, ExperimentRollup as lr, ReplayExperiment as lt, __version__ as m, BitfabError as mi, VerdictUpdate as mn, ExperimentTotals as mr, ReplayProgress as mt, ReplayRegistration as n, SpanType as ni, LabelUpdate as nn, TraceTargetOccurrence as nr, AdaptContext as nt, ReseedRegistryResult as o, MockOverride as oi, TraceVerdicts as on, ExperimentCodeChangeTotals as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, SpanNodeMeta as pi, VerdictTarget as pn, ExperimentTally as pr, ReplayOptions as pt, SpanListField as q, ScenarioTrigger as qn, Category as qr, HumanLabelUpdate as qt, ReplayRegistry as r, TokenUsage as ri, LabelsClient as rn, TracesClient as rr, AdaptInputsFn as rt, SeedCase as s, MockOverrideCtx as si, Verdict as sn, ExperimentJitter as sr, MockStrategy as st, ReplayOptionsFactory as t, SpanOccurrence as ti, LabelTarget as tn, TraceTarget as tr, ReplayBranch as tt, reseedFromRegistry as u, MockValue as ui, VerdictOutcome as un, ExperimentRollupResult as ur, ReplayItem as ut, BitfabFunction as v, DbSnapshotRef as vi, AssertionGeneration as vn, AddDatasetTracesResult as vr, reportReplayProgress as vt, NodeOptions as w, AllowedEnvVars as wi, AssertionRewriteStatus as wn, GraderRerunError as wr, OrganizationMember as wt, CurrentTrace as x, SelectiveReplayDecision as xi, AssertionGenerationTimeoutError as xn, DatasetTraceIds as xr, ReplayInterruptSignal as xt, CaptureWhen as y, SUPPORTED_PROVIDERS as yi, AssertionGenerationError as yn, Dataset as yr, serializeReplayResult as yt, getCurrentSpan as z, ScenarioDataAppend as zn, VercelCallParams as zr, GraderVerdictOutcome as zt };
@@ -2814,6 +2814,113 @@ declare class OrganizationMembersClient {
2814
2814
  list(): Promise<OrganizationMember[]>;
2815
2815
  }
2816
2816
  //#endregion
2817
+ //#region src/piIntegration.d.ts
2818
+ type PiSpanOptions = {
2819
+ name: string;
2820
+ type: "agent" | "llm" | "function";
2821
+ captureWhen?: "nested";
2822
+ mockOnReplay?: boolean;
2823
+ finalize?: (result: unknown) => unknown | Promise<unknown>;
2824
+ surface: "inherit";
2825
+ instrumentation: "pi";
2826
+ };
2827
+ type CurrentSpanHandle = {
2828
+ addContext(context: Record<string, unknown>): void;
2829
+ };
2830
+ /** The subset of the Bitfab client the Pi integration records through. */
2831
+ interface PiSpanHost {
2832
+ withSpan<TArgs extends unknown[], TReturn>(traceFunctionKey: string, options: PiSpanOptions, fn: (...args: TArgs) => TReturn): (...args: TArgs) => TReturn;
2833
+ activeRootTraceFunctionKey(): string | undefined;
2834
+ currentSpan(): CurrentSpanHandle;
2835
+ traceRootContexts(): Record<string, unknown>[] | null;
2836
+ setTraceSessionId(sessionId: string): void;
2837
+ withDiscoveredCallsUnderCurrentSpan<T>(fn: () => T): T;
2838
+ }
2839
+ /** Options for `bitfab.getPiIntegration(key, options)`. */
2840
+ interface PiIntegrationOptions {
2841
+ /**
2842
+ * Which tool calls replay answers with the recorded result instead of
2843
+ * running the tool. `true` (the default) mocks every tool, `false` runs
2844
+ * every tool live, and a list of tool names mocks only those tools.
2845
+ */
2846
+ mockToolsOnReplay?: boolean | readonly string[];
2847
+ }
2848
+ /**
2849
+ * Traces agents built on the Pi agent harness (`@earendil-works/pi-agent-core`,
2850
+ * formerly `@mariozechner/pi-agent-core`) as one trace function. Obtain it from
2851
+ * `bitfab.getPiIntegration(key)`.
2852
+ *
2853
+ * ```typescript
2854
+ * import { Agent } from "@earendil-works/pi-agent-core";
2855
+ *
2856
+ * const pi = bitfab.getPiIntegration("admin-agent");
2857
+ * const agent = pi.instrument(new Agent({ initialState: { systemPrompt, model, tools } }));
2858
+ * await agent.prompt("Disable the account for jane@example.com");
2859
+ * ```
2860
+ *
2861
+ * Each `prompt` / `continue` records a replayable root `agent` span with the
2862
+ * prompt as input and the final assistant text as output, plus the conversation
2863
+ * so far, which replay restores. Each model request beneath it is an `llm` span
2864
+ * with the transcript sent, the assistant message received, and token usage
2865
+ * and cost. Each tool call is a `function` span with the tool's arguments and
2866
+ * result, marked for replay mocking by default.
2867
+ *
2868
+ * The integration is duck-typed: it imports no Pi package, and works with both
2869
+ * the `@earendil-works` 1.x and the `@mariozechner` 0.x packages.
2870
+ *
2871
+ * @experimental This API may change before it is stable.
2872
+ */
2873
+ declare class BitfabPiIntegration {
2874
+ private readonly host;
2875
+ private readonly traceFunctionKey;
2876
+ private readonly mockToolsOnReplay;
2877
+ private readonly instrumented;
2878
+ private readonly toolArrays;
2879
+ private readonly wrappedStreamFns;
2880
+ private readonly wrappedTools;
2881
+ private readonly originalTools;
2882
+ private readonly wrappedHooks;
2883
+ constructor(config: {
2884
+ host: PiSpanHost;
2885
+ traceFunctionKey: string;
2886
+ options?: PiIntegrationOptions;
2887
+ });
2888
+ /**
2889
+ * Trace a Pi `Agent`, or a coding-agent `AgentSession` from
2890
+ * `createAgentSession`, as this trace function. Returns the same object,
2891
+ * traced from inside: `prompt` and `continue` (`prompt` on a session) record
2892
+ * a replayable root span, and every model request and tool call beneath it
2893
+ * records a span, including tools added after `instrument`. Every other
2894
+ * property is the object's own, and the original object is not modified, so
2895
+ * runs through the original are not traced.
2896
+ *
2897
+ * A run inside a trace of this same trace function (a replay, or a session's
2898
+ * own retries) opens no second root. Inside another key's span, the root
2899
+ * nests there. Passing an object this or another Pi integration already
2900
+ * instrumented returns it unchanged.
2901
+ *
2902
+ * @throws {BitfabError} When the value is neither a Pi `Agent` nor an `AgentSession`.
2903
+ * @experimental This API may change before it is stable.
2904
+ */
2905
+ instrument<T extends object>(target: T): T;
2906
+ private proxyFor;
2907
+ private instrumentAgent;
2908
+ private instrumentSession;
2909
+ private toolWrappingHook;
2910
+ private restoreIntoSession;
2911
+ private toolWrappingState;
2912
+ private toolWrappingArray;
2913
+ private recordTranscript;
2914
+ private warnConversationTrimmed;
2915
+ private restoredTranscript;
2916
+ private runRoot;
2917
+ private warnIfOutsideRun;
2918
+ private wrapStreamFn;
2919
+ private mocksTool;
2920
+ private unwrapTool;
2921
+ private wrapTool;
2922
+ }
2923
+ //#endregion
2817
2924
  //#region src/replayInterrupt.d.ts
2818
2925
  type ReplayInterruptSignal = "SIGINT" | "SIGTERM";
2819
2926
  interface ReplayInterrupt {
@@ -4316,6 +4423,22 @@ declare class Bitfab {
4316
4423
  * @experimental This API may change before it is stable.
4317
4424
  */
4318
4425
  getRivetIntegration<TContext extends object = RivetContextLike>(traceFunctionKey: string, options?: RivetIntegrationOptions): BitfabRivetIntegration<TContext>;
4426
+ /**
4427
+ * Get the first-class integration for agents built on the Pi agent harness
4428
+ * (`@earendil-works/pi-agent-core`, or a coding-agent `AgentSession`).
4429
+ * `instrument(agent)` returns the same agent, with each `prompt` recorded as
4430
+ * a replayable root and each model request and tool call as a span beneath it.
4431
+ *
4432
+ * ```typescript
4433
+ * const agent = client.getPiIntegration("admin-agent").instrument(new Agent({ initialState }))
4434
+ * await agent.prompt("Disable the account for jane@example.com")
4435
+ * ```
4436
+ *
4437
+ * @param traceFunctionKey - Groups traces under this key in Bitfab
4438
+ * @param options - Controls which tools are marked for replay mocking
4439
+ * @experimental This API may change before it is stable.
4440
+ */
4441
+ getPiIntegration(traceFunctionKey: string, options?: PiIntegrationOptions): BitfabPiIntegration;
4319
4442
  /**
4320
4443
  * Get a Claude Agent SDK handler for tracing.
4321
4444
  *
@@ -4894,6 +5017,14 @@ declare class BitfabFunction {
4894
5017
  * @experimental This API may change before it is stable.
4895
5018
  */
4896
5019
  getDeepAgentsIntegration(options?: LangGraphIntegrationOptions): BitfabLangGraphIntegration;
5020
+ /**
5021
+ * Get the Pi agent harness integration bound to this function's key.
5022
+ * Equivalent to `client.getPiIntegration(key, options)`.
5023
+ *
5024
+ * @param options - Controls which tools are marked for replay mocking
5025
+ * @experimental This API may change before it is stable.
5026
+ */
5027
+ getPiIntegration(options?: PiIntegrationOptions): BitfabPiIntegration;
4897
5028
  /**
4898
5029
  * Get the first-class Rivet actor-context integration bound to this key.
4899
5030
  * Use its `bind()` or `withContext()` outside this handle's `withTrace()`
@@ -4990,7 +5121,7 @@ interface CommitRef {
4990
5121
  /**
4991
5122
  * SDK version from package.json (injected at build time)
4992
5123
  */
4993
- declare const __version__ = "0.68.8";
5124
+ declare const __version__ = "0.68.9";
4994
5125
  //#endregion
4995
5126
  //#region src/constants.d.ts
4996
5127
  /**
@@ -5132,4 +5263,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
5132
5263
  run?: boolean;
5133
5264
  }): Promise<SeedResult>;
5134
5265
  //#endregion
5135
- export { RivetEffectType as $, TraceTarget as $n, SpanOccurrence as $r, LabelTarget as $t, SpanMethodDecoratorContext as A, JustificationSpan as Ai, SaveScenarioHistoryEntry as An, RerunGradersOptions as Ar, GetGraderLabelsParams as At, getCurrentTrace as B, ScenarioGeneration as Bn, BitfabClaudeAgentHandler as Br, GradersClient as Bt, NodeMethodDecorator as C, BamlExecutionResult as Ci, AssertionVerdictEvidence as Cn, GraderRerunProgress as Cr, OrganizationMembersClient as Ct, SeedCaseOptions as D, Approver as Di, SaveAssertionsParams as Dn, ListDatasetsParams as Dr, BitfabLangGraphIntegration as Dt, ReseedResult as E, ApprovalState as Ei, SaveAssertionsAllParams as En, GraderRerunTimeoutError as Er, BitfabLangGraphAgent as Et, WrapOpenAIResponsesOptions as F, ScenarioActualOutcome as Fn, BitfabLanguageModelMiddleware as Fr, GraderLabelUpdate as Ft, TracingProcessor as G, ScenarioTrigger as Gn, Category as Gr, HumanLabelUpdate as Gt, ActiveSpanContext as H, ScenarioRecord as Hn, AssertionCategory as Hr, ArchiveVerdictTarget as Ht, WrapOpenRouterOptions as I, ScenarioData as In, BitfabVercelAiHandler as Ir, GraderVerdict as It, SpanListParams as J, TraceAssertionsResult as Jn, SaveCategoryParams as Jr, LabelAction as Jt, ListedSpan as K, TraceAssertion as Kn, CategorySummary as Kr, HumanVerdictOutcome as Kt, WrappedBamlFn as L, ScenarioDataAppend as Ln, VercelCallParams as Lr, GraderVerdictOutcome as Lt, WrapAnthropicOptions as M, SavedTraceAssertion as Mn, SaveDatasetParams as Mr, GraderLabel as Mt, WrapBAMLOptions as N, Scenario as Nn, SaveDatasetResult as Nr, GraderLabelOutcome as Nt, SeedRunOptions as O, Assignee as Oi, SaveScenarioActualOutcome as On, RemoveDatasetGradersResult as Or, LangGraphIntegrationOptions as Ot, WrapJevOptions as P, ScenarioAction as Pn, UpdateDatasetParams as Pr, GraderLabelSource as Pt, RivetContextLike as Q, TraceSearchResult as Qn, SpanLookup as Qr, LabelStatus as Qt, getCurrentReplayBranch as R, ScenarioDataOrigin as Rn, VercelGenerateResult as Rr, GraderVerdictSource as Rt, DetachedTrace as S, AllowedEnvVars as Si, AssertionRewriteStatus as Sn, GraderRerunError as Sr, OrganizationMember as St, ReseedOptions as T, ApprovalFields as Ti, SaveAssertion as Tn, GraderRerunStatus as Tr, BitfabAgentMiddleware as Tt, BitfabOpenAITracingProcessor as U, ScenarioRecordInput as Un, AssertionCategorySummary as Ur, AssertionVerdict as Ut, CaptureSurface as V, ScenarioHistoryEntry as Vn, AssertionCategoriesClient as Vr, ArchiveLabelTarget as Vt, TraceResponse as W, ScenarioSource as Wn, CategoriesClient as Wr, HumanLabelOutcome as Wt, SpansClient as X, TraceSearchFilters as Xn, CodeChangeFile as Xr, LabelOutcome as Xt, SpanListResult as Y, TraceAssertionsUpdate as Yn, CapturedSpan as Yr, LabelConfidence as Yt, BitfabRivetIntegration as Z, TraceSearchParams as Zn, HttpClient as Zr, LabelSource as Zt, BitfabConfig as _, SUPPORTED_PROVIDERS as _i, AssertionGenerationError as _n, Dataset as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, MockOverrideCtx as ai, Verdict as an, ExperimentJitter as ar, DbBranchOptions as at, CurrentSpan as b, SelectiveReplayOptions as bi, AssertionLabelEvidence as bn, DatasetsClient as br, ReplayInterrupt as bt, SeedResult as c, MockValue as ci, VerdictOutcome as cn, ExperimentRollupResult as cr, ReplayError as ct, seedFromRegistry as d, SpanNodeMeta as di, VerdictTarget as dn, ExperimentTally as dr, ReplayItemFinishProgress as dt, SpanType as ei, LabelUpdate as en, TraceTargetOccurrence as er, RivetIntegrationOptions as et, finalizers as f, BitfabError as fi, VerdictUpdate as fn, ExperimentTotals as fr, ReplayItemStartProgress as ft, Bitfab as g, DbSnapshotRef as gi, AssertionGeneration as gn, AddDatasetTracesResult as gr, ReplayResult as gt, CommitRef as h, DbSnapshotProvider as hi, AssertionEvidenceParameter as hn, AddDatasetGradersResult as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, MockOverride as ii, TraceVerdicts as in, ExperimentCodeChangeTotals as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SaveScenarioParams as jn, RerunGradersResult as jr, GetGraderVerdictsParams as jt, SpanMethodDecorator as k, Justification as ki, SaveScenarioData as kn, RemoveDatasetTracesResult as kr, BitfabLangGraphCallbackHandler as kt, defineReplayRegistry as l, NO_MOCK_OVERRIDE as li, VerdictSource as ln, ExperimentRunBy as lr, ReplayExperiment as lt, __version__ as m, DbSnapshotConfig as mi, ArchiveAssertionsParams as mn, ListExperimentsParams as mr, ReplayProgress as mt, ReplayRegistration as n, flushTraces as ni, PassFailVerdict as nn, Experiment as nr, AdaptContext as nt, ReseedRegistryResult as o, MockOverrideInput as oi, VerdictAction as on, ExperimentPage as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, MixedTracingError as pi, VerdictsClient as pn, ExperimentsClient as pr, ReplayOptions as pt, SpanListField as q, TraceAssertionSource as qn, SaveAssertionCategoryParams as qr, HumanVerdictUpdate as qt, ReplayRegistry as r, DbBranchTimings as ri, TraceLabels as rn, ExperimentCategoryTally as rr, AdaptInputsFn as rt, SeedCase as s, MockOverrideResolver as si, VerdictConfidence as sn, ExperimentRollup as sr, MockStrategy as st, ReplayOptionsFactory as t, TokenUsage as ti, LabelsClient as tn, TracesClient as tr, ReplayBranch as tt, reseedFromRegistry as u, NodeMatcher as ui, VerdictStatus as un, ExperimentStatus as ur, ReplayItem as ut, BitfabFunction as v, ReplayNodeIdentity as vi, AssertionGenerationStatus as vn, DatasetGraderRef as vr, reportReplayProgress as vt, NodeOptions as w, ProviderDefinition as wi, GenerateAssertionsOptions as wn, GraderRerunResult as wr, BitfabOpenAIAgentHandler as wt, CurrentTrace as x, SelectiveReplayReport as xi, AssertionRewrite as xn, GraderRerun as xr, ReplayInterruptSignal as xt, CaptureWhen as y, SelectiveReplayDecision as yi, AssertionGenerationTimeoutError as yn, DatasetTraceIds as yr, serializeReplayResult as yt, getCurrentSpan as z, ScenarioDataSources as zn, VercelStreamResult as zr, GraderVerdictUpdate as zt };
5266
+ export { RivetEffectType as $, TraceSearchParams as $n, HttpClient as $r, LabelSource as $t, SpanMethodDecoratorContext as A, Assignee as Ai, SaveScenarioActualOutcome as An, RemoveDatasetGradersResult as Ar, LangGraphIntegrationOptions as At, getCurrentTrace as B, ScenarioDataOrigin as Bn, VercelGenerateResult as Br, GraderVerdictSource as Bt, NodeMethodDecorator as C, SelectiveReplayReport as Ci, AssertionRewrite as Cn, GraderRerun as Cr, PiIntegrationOptions as Ct, SeedCaseOptions as D, ApprovalFields as Di, SaveAssertion as Dn, GraderRerunStatus as Dr, BitfabAgentMiddleware as Dt, ReseedResult as E, ProviderDefinition as Ei, GenerateAssertionsOptions as En, GraderRerunResult as Er, BitfabOpenAIAgentHandler as Et, WrapOpenAIResponsesOptions as F, Scenario as Fn, SaveDatasetResult as Fr, GraderLabelOutcome as Ft, TracingProcessor as G, ScenarioRecordInput as Gn, AssertionCategorySummary as Gr, AssertionVerdict as Gt, ActiveSpanContext as H, ScenarioGeneration as Hn, BitfabClaudeAgentHandler as Hr, GradersClient as Ht, WrapOpenRouterOptions as I, ScenarioAction as In, UpdateDatasetParams as Ir, GraderLabelSource as It, SpanListParams as J, TraceAssertion as Jn, CategorySummary as Jr, HumanVerdictOutcome as Jt, ListedSpan as K, ScenarioSource as Kn, CategoriesClient as Kr, HumanLabelOutcome as Kt, WrappedBamlFn as L, ScenarioActualOutcome as Ln, BitfabLanguageModelMiddleware as Lr, GraderLabelUpdate as Lt, WrapAnthropicOptions as M, JustificationSpan as Mi, SaveScenarioHistoryEntry as Mn, RerunGradersOptions as Mr, GetGraderLabelsParams as Mt, WrapBAMLOptions as N, SaveScenarioParams as Nn, RerunGradersResult as Nr, GetGraderVerdictsParams as Nt, SeedRunOptions as O, ApprovalState as Oi, SaveAssertionsAllParams as On, GraderRerunTimeoutError as Or, BitfabLangGraphAgent as Ot, WrapJevOptions as P, SavedTraceAssertion as Pn, SaveDatasetParams as Pr, GraderLabel as Pt, RivetContextLike as Q, TraceSearchFilters as Qn, CodeChangeFile as Qr, LabelOutcome as Qt, getCurrentReplayBranch as R, ScenarioData as Rn, BitfabVercelAiHandler as Rr, GraderVerdict as Rt, DetachedTrace as S, SelectiveReplayOptions as Si, AssertionLabelEvidence as Sn, DatasetsClient as Sr, BitfabPiIntegration as St, ReseedOptions as T, BamlExecutionResult as Ti, AssertionVerdictEvidence as Tn, GraderRerunProgress as Tr, OrganizationMembersClient as Tt, BitfabOpenAITracingProcessor as U, ScenarioHistoryEntry as Un, AssertionCategoriesClient as Ur, ArchiveLabelTarget as Ut, CaptureSurface as V, ScenarioDataSources as Vn, VercelStreamResult as Vr, GraderVerdictUpdate as Vt, TraceResponse as W, ScenarioRecord as Wn, AssertionCategory as Wr, ArchiveVerdictTarget as Wt, SpansClient as X, TraceAssertionsResult as Xn, SaveCategoryParams as Xr, LabelAction as Xt, SpanListResult as Y, TraceAssertionSource as Yn, SaveAssertionCategoryParams as Yr, HumanVerdictUpdate as Yt, BitfabRivetIntegration as Z, TraceAssertionsUpdate as Zn, CapturedSpan as Zr, LabelConfidence as Zt, BitfabConfig as _, DbSnapshotProvider as _i, AssertionEvidenceParameter as _n, AddDatasetGradersResult as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, DbBranchTimings as ai, TraceLabels as an, ExperimentCategoryTally as ar, DbBranchOptions as at, CurrentSpan as b, ReplayNodeIdentity as bi, AssertionGenerationStatus as bn, DatasetGraderRef as br, ReplayInterrupt as bt, SeedResult as c, MockOverrideInput as ci, VerdictAction as cn, ExperimentPage as cr, ReplayError as ct, seedFromRegistry as d, NO_MOCK_OVERRIDE as di, VerdictSource as dn, ExperimentRunBy as dr, ReplayItemFinishProgress as dt, SpanLookup as ei, LabelStatus as en, TraceSearchResult as er, RivetIntegrationOptions as et, finalizers as f, NodeMatcher as fi, VerdictStatus as fn, ExperimentStatus as fr, ReplayItemStartProgress as ft, Bitfab as g, DbSnapshotConfig as gi, ArchiveAssertionsParams as gn, ListExperimentsParams as gr, ReplayResult as gt, CommitRef as h, MixedTracingError as hi, VerdictsClient as hn, ExperimentsClient as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, flushTraces as ii, PassFailVerdict as in, Experiment as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, Justification as ji, SaveScenarioData as jn, RemoveDatasetTracesResult as jr, BitfabLangGraphCallbackHandler as jt, SpanMethodDecorator as k, Approver as ki, SaveAssertionsParams as kn, ListDatasetsParams as kr, BitfabLangGraphIntegration as kt, defineReplayRegistry as l, MockOverrideResolver as li, VerdictConfidence as ln, ExperimentRollup as lr, ReplayExperiment as lt, __version__ as m, BitfabError as mi, VerdictUpdate as mn, ExperimentTotals as mr, ReplayProgress as mt, ReplayRegistration as n, SpanType as ni, LabelUpdate as nn, TraceTargetOccurrence as nr, AdaptContext as nt, ReseedRegistryResult as o, MockOverride as oi, TraceVerdicts as on, ExperimentCodeChangeTotals as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, SpanNodeMeta as pi, VerdictTarget as pn, ExperimentTally as pr, ReplayOptions as pt, SpanListField as q, ScenarioTrigger as qn, Category as qr, HumanLabelUpdate as qt, ReplayRegistry as r, TokenUsage as ri, LabelsClient as rn, TracesClient as rr, AdaptInputsFn as rt, SeedCase as s, MockOverrideCtx as si, Verdict as sn, ExperimentJitter as sr, MockStrategy as st, ReplayOptionsFactory as t, SpanOccurrence as ti, LabelTarget as tn, TraceTarget as tr, ReplayBranch as tt, reseedFromRegistry as u, MockValue as ui, VerdictOutcome as un, ExperimentRollupResult as ur, ReplayItem as ut, BitfabFunction as v, DbSnapshotRef as vi, AssertionGeneration as vn, AddDatasetTracesResult as vr, reportReplayProgress as vt, NodeOptions as w, AllowedEnvVars as wi, AssertionRewriteStatus as wn, GraderRerunError as wr, OrganizationMember as wt, CurrentTrace as x, SelectiveReplayDecision as xi, AssertionGenerationTimeoutError as xn, DatasetTraceIds as xr, ReplayInterruptSignal as xt, CaptureWhen as y, SUPPORTED_PROVIDERS as yi, AssertionGenerationError as yn, Dataset as yr, serializeReplayResult as yt, getCurrentSpan as z, ScenarioDataAppend as zn, VercelCallParams as zr, GraderVerdictOutcome as zt };
package/dist/index.cjs CHANGED
@@ -11,8 +11,8 @@ Object.defineProperties(exports, {
11
11
  __esModule: { value: true },
12
12
  [Symbol.toStringTag]: { value: "Module" }
13
13
  });
14
- const require_src = require("./src-i7rTgxMg.cjs");
15
- const require_http = require("./http-CqYiYU9P.cjs");
14
+ const require_src = require("./src-BOmu6a4v.cjs");
15
+ const require_http = require("./http-BB9wDcLm.cjs");
16
16
  exports.AssertionCategoriesClient = require_src.AssertionCategoriesClient;
17
17
  exports.AssertionGenerationError = require_src.AssertionGenerationError;
18
18
  exports.AssertionGenerationTimeoutError = require_src.AssertionGenerationTimeoutError;
@@ -26,6 +26,7 @@ exports.BitfabLangGraphCallbackHandler = require_src.BitfabLangGraphCallbackHand
26
26
  exports.BitfabLangGraphIntegration = require_src.BitfabLangGraphIntegration;
27
27
  exports.BitfabOpenAIAgentHandler = require_src.BitfabOpenAIAgentHandler;
28
28
  exports.BitfabOpenAITracingProcessor = require_src.BitfabOpenAITracingProcessor;
29
+ exports.BitfabPiIntegration = require_src.BitfabPiIntegration;
29
30
  exports.BitfabRivetIntegration = require_src.BitfabRivetIntegration;
30
31
  exports.BitfabVercelAiHandler = require_src.BitfabVercelAiHandler;
31
32
  exports.CategoriesClient = require_src.CategoriesClient;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as RivetEffectType, $n as TraceTarget, $r as SpanOccurrence, $t as LabelTarget, A as SpanMethodDecoratorContext, Ai as JustificationSpan, An as SaveScenarioHistoryEntry, Ar as RerunGradersOptions, At as GetGraderLabelsParams, B as getCurrentTrace, Bn as ScenarioGeneration, Br as BitfabClaudeAgentHandler, Bt as GradersClient, C as NodeMethodDecorator, Ci as BamlExecutionResult, Cn as AssertionVerdictEvidence, Cr as GraderRerunProgress, Ct as OrganizationMembersClient, D as SeedCaseOptions, Di as Approver, Dn as SaveAssertionsParams, Dr as ListDatasetsParams, Dt as BitfabLangGraphIntegration, E as ReseedResult, Ei as ApprovalState, En as SaveAssertionsAllParams, Er as GraderRerunTimeoutError, Et as BitfabLangGraphAgent, F as WrapOpenAIResponsesOptions, Fn as ScenarioActualOutcome, Fr as BitfabLanguageModelMiddleware, Ft as GraderLabelUpdate, G as TracingProcessor, Gn as ScenarioTrigger, Gr as Category, Gt as HumanLabelUpdate, H as ActiveSpanContext, Hn as ScenarioRecord, Hr as AssertionCategory, Ht as ArchiveVerdictTarget, I as WrapOpenRouterOptions, In as ScenarioData, Ir as BitfabVercelAiHandler, It as GraderVerdict, J as SpanListParams, Jn as TraceAssertionsResult, Jr as SaveCategoryParams, Jt as LabelAction, K as ListedSpan, Kn as TraceAssertion, Kr as CategorySummary, Kt as HumanVerdictOutcome, L as WrappedBamlFn, Ln as ScenarioDataAppend, Lr as VercelCallParams, Lt as GraderVerdictOutcome, M as WrapAnthropicOptions, Mn as SavedTraceAssertion, Mr as SaveDatasetParams, Mt as GraderLabel, N as WrapBAMLOptions, Nn as Scenario, Nr as SaveDatasetResult, Nt as GraderLabelOutcome, O as SeedRunOptions, Oi as Assignee, On as SaveScenarioActualOutcome, Or as RemoveDatasetGradersResult, Ot as LangGraphIntegrationOptions, P as WrapJevOptions, Pn as ScenarioAction, Pr as UpdateDatasetParams, Pt as GraderLabelSource, Q as RivetContextLike, Qn as TraceSearchResult, Qr as SpanLookup, Qt as LabelStatus, R as getCurrentReplayBranch, Rn as ScenarioDataOrigin, Rr as VercelGenerateResult, Rt as GraderVerdictSource, S as DetachedTrace, Si as AllowedEnvVars, Sn as AssertionRewriteStatus, Sr as GraderRerunError, St as OrganizationMember, T as ReseedOptions, Ti as ApprovalFields, Tn as SaveAssertion, Tr as GraderRerunStatus, Tt as BitfabAgentMiddleware, U as BitfabOpenAITracingProcessor, Un as ScenarioRecordInput, Ur as AssertionCategorySummary, Ut as AssertionVerdict, V as CaptureSurface, Vn as ScenarioHistoryEntry, Vr as AssertionCategoriesClient, Vt as ArchiveLabelTarget, W as TraceResponse, Wn as ScenarioSource, Wr as CategoriesClient, Wt as HumanLabelOutcome, X as SpansClient, Xn as TraceSearchFilters, Xr as CodeChangeFile, Xt as LabelOutcome, Y as SpanListResult, Yn as TraceAssertionsUpdate, Yr as CapturedSpan, Yt as LabelConfidence, Z as BitfabRivetIntegration, Zn as TraceSearchParams, Zr as HttpClient, Zt as LabelSource, _ as BitfabConfig, _i as SUPPORTED_PROVIDERS, _n as AssertionGenerationError, _r as Dataset, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as MockOverrideCtx, an as Verdict, ar as ExperimentJitter, at as DbBranchOptions, b as CurrentSpan, bi as SelectiveReplayOptions, bn as AssertionLabelEvidence, br as DatasetsClient, bt as ReplayInterrupt, c as SeedResult, ci as MockValue, cn as VerdictOutcome, cr as ExperimentRollupResult, ct as ReplayError, d as seedFromRegistry, di as SpanNodeMeta, dn as VerdictTarget, dr as ExperimentTally, dt as ReplayItemFinishProgress, ei as SpanType, en as LabelUpdate, er as TraceTargetOccurrence, et as RivetIntegrationOptions, f as finalizers, fi as BitfabError, fn as VerdictUpdate, fr as ExperimentTotals, ft as ReplayItemStartProgress, g as Bitfab, gi as DbSnapshotRef, gn as AssertionGeneration, gr as AddDatasetTracesResult, gt as ReplayResult, h as CommitRef, hi as DbSnapshotProvider, hn as AssertionEvidenceParameter, hr as AddDatasetGradersResult, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as MockOverride, in as TraceVerdicts, ir as ExperimentCodeChangeTotals, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, jn as SaveScenarioParams, jr as RerunGradersResult, jt as GetGraderVerdictsParams, k as SpanMethodDecorator, ki as Justification, kn as SaveScenarioData, kr as RemoveDatasetTracesResult, kt as BitfabLangGraphCallbackHandler, l as defineReplayRegistry, li as NO_MOCK_OVERRIDE, ln as VerdictSource, lr as ExperimentRunBy, lt as ReplayExperiment, m as __version__, mi as DbSnapshotConfig, mn as ArchiveAssertionsParams, mr as ListExperimentsParams, mt as ReplayProgress, n as ReplayRegistration, ni as flushTraces, nn as PassFailVerdict, nr as Experiment, nt as AdaptContext, o as ReseedRegistryResult, oi as MockOverrideInput, on as VerdictAction, or as ExperimentPage, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as MixedTracingError, pn as VerdictsClient, pr as ExperimentsClient, pt as ReplayOptions, q as SpanListField, qn as TraceAssertionSource, qr as SaveAssertionCategoryParams, qt as HumanVerdictUpdate, r as ReplayRegistry, ri as DbBranchTimings, rn as TraceLabels, rr as ExperimentCategoryTally, rt as AdaptInputsFn, s as SeedCase, si as MockOverrideResolver, sn as VerdictConfidence, sr as ExperimentRollup, st as MockStrategy, t as ReplayOptionsFactory, ti as TokenUsage, tn as LabelsClient, tr as TracesClient, tt as ReplayBranch, u as reseedFromRegistry, ui as NodeMatcher, un as VerdictStatus, ur as ExperimentStatus, ut as ReplayItem, v as BitfabFunction, vi as ReplayNodeIdentity, vn as AssertionGenerationStatus, vr as DatasetGraderRef, vt as reportReplayProgress, w as NodeOptions, wi as ProviderDefinition, wn as GenerateAssertionsOptions, wr as GraderRerunResult, wt as BitfabOpenAIAgentHandler, x as CurrentTrace, xi as SelectiveReplayReport, xn as AssertionRewrite, xr as GraderRerun, xt as ReplayInterruptSignal, y as CaptureWhen, yi as SelectiveReplayDecision, yn as AssertionGenerationTimeoutError, yr as DatasetTraceIds, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioDataSources, zr as VercelStreamResult, zt as GraderVerdictUpdate } from "./index-DJn-J5ZW.cjs";
2
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioDataSources, type ScenarioGeneration, type ScenarioHistoryEntry, type ScenarioRecord, type ScenarioRecordInput, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenAIResponsesOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
1
+ import { $ as RivetEffectType, $n as TraceSearchParams, $r as HttpClient, $t as LabelSource, A as SpanMethodDecoratorContext, Ai as Assignee, An as SaveScenarioActualOutcome, Ar as RemoveDatasetGradersResult, At as LangGraphIntegrationOptions, B as getCurrentTrace, Bn as ScenarioDataOrigin, Br as VercelGenerateResult, Bt as GraderVerdictSource, C as NodeMethodDecorator, Ci as SelectiveReplayReport, Cn as AssertionRewrite, Cr as GraderRerun, Ct as PiIntegrationOptions, D as SeedCaseOptions, Di as ApprovalFields, Dn as SaveAssertion, Dr as GraderRerunStatus, Dt as BitfabAgentMiddleware, E as ReseedResult, Ei as ProviderDefinition, En as GenerateAssertionsOptions, Er as GraderRerunResult, Et as BitfabOpenAIAgentHandler, F as WrapOpenAIResponsesOptions, Fn as Scenario, Fr as SaveDatasetResult, Ft as GraderLabelOutcome, G as TracingProcessor, Gn as ScenarioRecordInput, Gr as AssertionCategorySummary, Gt as AssertionVerdict, H as ActiveSpanContext, Hn as ScenarioGeneration, Hr as BitfabClaudeAgentHandler, Ht as GradersClient, I as WrapOpenRouterOptions, In as ScenarioAction, Ir as UpdateDatasetParams, It as GraderLabelSource, J as SpanListParams, Jn as TraceAssertion, Jr as CategorySummary, Jt as HumanVerdictOutcome, K as ListedSpan, Kn as ScenarioSource, Kr as CategoriesClient, Kt as HumanLabelOutcome, L as WrappedBamlFn, Ln as ScenarioActualOutcome, Lr as BitfabLanguageModelMiddleware, Lt as GraderLabelUpdate, M as WrapAnthropicOptions, Mi as JustificationSpan, Mn as SaveScenarioHistoryEntry, Mr as RerunGradersOptions, Mt as GetGraderLabelsParams, N as WrapBAMLOptions, Nn as SaveScenarioParams, Nr as RerunGradersResult, Nt as GetGraderVerdictsParams, O as SeedRunOptions, Oi as ApprovalState, On as SaveAssertionsAllParams, Or as GraderRerunTimeoutError, Ot as BitfabLangGraphAgent, P as WrapJevOptions, Pn as SavedTraceAssertion, Pr as SaveDatasetParams, Pt as GraderLabel, Q as RivetContextLike, Qn as TraceSearchFilters, Qr as CodeChangeFile, Qt as LabelOutcome, R as getCurrentReplayBranch, Rn as ScenarioData, Rr as BitfabVercelAiHandler, Rt as GraderVerdict, S as DetachedTrace, Si as SelectiveReplayOptions, Sn as AssertionLabelEvidence, Sr as DatasetsClient, St as BitfabPiIntegration, T as ReseedOptions, Ti as BamlExecutionResult, Tn as AssertionVerdictEvidence, Tr as GraderRerunProgress, Tt as OrganizationMembersClient, U as BitfabOpenAITracingProcessor, Un as ScenarioHistoryEntry, Ur as AssertionCategoriesClient, Ut as ArchiveLabelTarget, V as CaptureSurface, Vn as ScenarioDataSources, Vr as VercelStreamResult, Vt as GraderVerdictUpdate, W as TraceResponse, Wn as ScenarioRecord, Wr as AssertionCategory, Wt as ArchiveVerdictTarget, X as SpansClient, Xn as TraceAssertionsResult, Xr as SaveCategoryParams, Xt as LabelAction, Y as SpanListResult, Yn as TraceAssertionSource, Yr as SaveAssertionCategoryParams, Yt as HumanVerdictUpdate, Z as BitfabRivetIntegration, Zn as TraceAssertionsUpdate, Zr as CapturedSpan, Zt as LabelConfidence, _ as BitfabConfig, _i as DbSnapshotProvider, _n as AssertionEvidenceParameter, _r as AddDatasetGradersResult, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as DbBranchTimings, an as TraceLabels, ar as ExperimentCategoryTally, at as DbBranchOptions, b as CurrentSpan, bi as ReplayNodeIdentity, bn as AssertionGenerationStatus, br as DatasetGraderRef, bt as ReplayInterrupt, c as SeedResult, ci as MockOverrideInput, cn as VerdictAction, cr as ExperimentPage, ct as ReplayError, d as seedFromRegistry, di as NO_MOCK_OVERRIDE, dn as VerdictSource, dr as ExperimentRunBy, dt as ReplayItemFinishProgress, ei as SpanLookup, en as LabelStatus, er as TraceSearchResult, et as RivetIntegrationOptions, f as finalizers, fi as NodeMatcher, fn as VerdictStatus, fr as ExperimentStatus, ft as ReplayItemStartProgress, g as Bitfab, gi as DbSnapshotConfig, gn as ArchiveAssertionsParams, gr as ListExperimentsParams, gt as ReplayResult, h as CommitRef, hi as MixedTracingError, hn as VerdictsClient, hr as ExperimentsClient, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as flushTraces, in as PassFailVerdict, ir as Experiment, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, ji as Justification, jn as SaveScenarioData, jr as RemoveDatasetTracesResult, jt as BitfabLangGraphCallbackHandler, k as SpanMethodDecorator, ki as Approver, kn as SaveAssertionsParams, kr as ListDatasetsParams, kt as BitfabLangGraphIntegration, l as defineReplayRegistry, li as MockOverrideResolver, ln as VerdictConfidence, lr as ExperimentRollup, lt as ReplayExperiment, m as __version__, mi as BitfabError, mn as VerdictUpdate, mr as ExperimentTotals, mt as ReplayProgress, n as ReplayRegistration, ni as SpanType, nn as LabelUpdate, nr as TraceTargetOccurrence, nt as AdaptContext, o as ReseedRegistryResult, oi as MockOverride, on as TraceVerdicts, or as ExperimentCodeChangeTotals, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as SpanNodeMeta, pn as VerdictTarget, pr as ExperimentTally, pt as ReplayOptions, q as SpanListField, qn as ScenarioTrigger, qr as Category, qt as HumanLabelUpdate, r as ReplayRegistry, ri as TokenUsage, rn as LabelsClient, rr as TracesClient, rt as AdaptInputsFn, s as SeedCase, si as MockOverrideCtx, sn as Verdict, sr as ExperimentJitter, st as MockStrategy, t as ReplayOptionsFactory, ti as SpanOccurrence, tn as LabelTarget, tr as TraceTarget, tt as ReplayBranch, u as reseedFromRegistry, ui as MockValue, un as VerdictOutcome, ur as ExperimentRollupResult, ut as ReplayItem, v as BitfabFunction, vi as DbSnapshotRef, vn as AssertionGeneration, vr as AddDatasetTracesResult, vt as reportReplayProgress, w as NodeOptions, wi as AllowedEnvVars, wn as AssertionRewriteStatus, wr as GraderRerunError, wt as OrganizationMember, x as CurrentTrace, xi as SelectiveReplayDecision, xn as AssertionGenerationTimeoutError, xr as DatasetTraceIds, xt as ReplayInterruptSignal, y as CaptureWhen, yi as SUPPORTED_PROVIDERS, yn as AssertionGenerationError, yr as Dataset, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioDataAppend, zr as VercelCallParams, zt as GraderVerdictOutcome } from "./index-DTcqG8wp.cjs";
2
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabPiIntegration, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type PiIntegrationOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioDataSources, type ScenarioGeneration, type ScenarioHistoryEntry, type ScenarioRecord, type ScenarioRecordInput, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenAIResponsesOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as RivetEffectType, $n as TraceTarget, $r as SpanOccurrence, $t as LabelTarget, A as SpanMethodDecoratorContext, Ai as JustificationSpan, An as SaveScenarioHistoryEntry, Ar as RerunGradersOptions, At as GetGraderLabelsParams, B as getCurrentTrace, Bn as ScenarioGeneration, Br as BitfabClaudeAgentHandler, Bt as GradersClient, C as NodeMethodDecorator, Ci as BamlExecutionResult, Cn as AssertionVerdictEvidence, Cr as GraderRerunProgress, Ct as OrganizationMembersClient, D as SeedCaseOptions, Di as Approver, Dn as SaveAssertionsParams, Dr as ListDatasetsParams, Dt as BitfabLangGraphIntegration, E as ReseedResult, Ei as ApprovalState, En as SaveAssertionsAllParams, Er as GraderRerunTimeoutError, Et as BitfabLangGraphAgent, F as WrapOpenAIResponsesOptions, Fn as ScenarioActualOutcome, Fr as BitfabLanguageModelMiddleware, Ft as GraderLabelUpdate, G as TracingProcessor, Gn as ScenarioTrigger, Gr as Category, Gt as HumanLabelUpdate, H as ActiveSpanContext, Hn as ScenarioRecord, Hr as AssertionCategory, Ht as ArchiveVerdictTarget, I as WrapOpenRouterOptions, In as ScenarioData, Ir as BitfabVercelAiHandler, It as GraderVerdict, J as SpanListParams, Jn as TraceAssertionsResult, Jr as SaveCategoryParams, Jt as LabelAction, K as ListedSpan, Kn as TraceAssertion, Kr as CategorySummary, Kt as HumanVerdictOutcome, L as WrappedBamlFn, Ln as ScenarioDataAppend, Lr as VercelCallParams, Lt as GraderVerdictOutcome, M as WrapAnthropicOptions, Mn as SavedTraceAssertion, Mr as SaveDatasetParams, Mt as GraderLabel, N as WrapBAMLOptions, Nn as Scenario, Nr as SaveDatasetResult, Nt as GraderLabelOutcome, O as SeedRunOptions, Oi as Assignee, On as SaveScenarioActualOutcome, Or as RemoveDatasetGradersResult, Ot as LangGraphIntegrationOptions, P as WrapJevOptions, Pn as ScenarioAction, Pr as UpdateDatasetParams, Pt as GraderLabelSource, Q as RivetContextLike, Qn as TraceSearchResult, Qr as SpanLookup, Qt as LabelStatus, R as getCurrentReplayBranch, Rn as ScenarioDataOrigin, Rr as VercelGenerateResult, Rt as GraderVerdictSource, S as DetachedTrace, Si as AllowedEnvVars, Sn as AssertionRewriteStatus, Sr as GraderRerunError, St as OrganizationMember, T as ReseedOptions, Ti as ApprovalFields, Tn as SaveAssertion, Tr as GraderRerunStatus, Tt as BitfabAgentMiddleware, U as BitfabOpenAITracingProcessor, Un as ScenarioRecordInput, Ur as AssertionCategorySummary, Ut as AssertionVerdict, V as CaptureSurface, Vn as ScenarioHistoryEntry, Vr as AssertionCategoriesClient, Vt as ArchiveLabelTarget, W as TraceResponse, Wn as ScenarioSource, Wr as CategoriesClient, Wt as HumanLabelOutcome, X as SpansClient, Xn as TraceSearchFilters, Xr as CodeChangeFile, Xt as LabelOutcome, Y as SpanListResult, Yn as TraceAssertionsUpdate, Yr as CapturedSpan, Yt as LabelConfidence, Z as BitfabRivetIntegration, Zn as TraceSearchParams, Zr as HttpClient, Zt as LabelSource, _ as BitfabConfig, _i as SUPPORTED_PROVIDERS, _n as AssertionGenerationError, _r as Dataset, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as MockOverrideCtx, an as Verdict, ar as ExperimentJitter, at as DbBranchOptions, b as CurrentSpan, bi as SelectiveReplayOptions, bn as AssertionLabelEvidence, br as DatasetsClient, bt as ReplayInterrupt, c as SeedResult, ci as MockValue, cn as VerdictOutcome, cr as ExperimentRollupResult, ct as ReplayError, d as seedFromRegistry, di as SpanNodeMeta, dn as VerdictTarget, dr as ExperimentTally, dt as ReplayItemFinishProgress, ei as SpanType, en as LabelUpdate, er as TraceTargetOccurrence, et as RivetIntegrationOptions, f as finalizers, fi as BitfabError, fn as VerdictUpdate, fr as ExperimentTotals, ft as ReplayItemStartProgress, g as Bitfab, gi as DbSnapshotRef, gn as AssertionGeneration, gr as AddDatasetTracesResult, gt as ReplayResult, h as CommitRef, hi as DbSnapshotProvider, hn as AssertionEvidenceParameter, hr as AddDatasetGradersResult, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as MockOverride, in as TraceVerdicts, ir as ExperimentCodeChangeTotals, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, jn as SaveScenarioParams, jr as RerunGradersResult, jt as GetGraderVerdictsParams, k as SpanMethodDecorator, ki as Justification, kn as SaveScenarioData, kr as RemoveDatasetTracesResult, kt as BitfabLangGraphCallbackHandler, l as defineReplayRegistry, li as NO_MOCK_OVERRIDE, ln as VerdictSource, lr as ExperimentRunBy, lt as ReplayExperiment, m as __version__, mi as DbSnapshotConfig, mn as ArchiveAssertionsParams, mr as ListExperimentsParams, mt as ReplayProgress, n as ReplayRegistration, ni as flushTraces, nn as PassFailVerdict, nr as Experiment, nt as AdaptContext, o as ReseedRegistryResult, oi as MockOverrideInput, on as VerdictAction, or as ExperimentPage, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as MixedTracingError, pn as VerdictsClient, pr as ExperimentsClient, pt as ReplayOptions, q as SpanListField, qn as TraceAssertionSource, qr as SaveAssertionCategoryParams, qt as HumanVerdictUpdate, r as ReplayRegistry, ri as DbBranchTimings, rn as TraceLabels, rr as ExperimentCategoryTally, rt as AdaptInputsFn, s as SeedCase, si as MockOverrideResolver, sn as VerdictConfidence, sr as ExperimentRollup, st as MockStrategy, t as ReplayOptionsFactory, ti as TokenUsage, tn as LabelsClient, tr as TracesClient, tt as ReplayBranch, u as reseedFromRegistry, ui as NodeMatcher, un as VerdictStatus, ur as ExperimentStatus, ut as ReplayItem, v as BitfabFunction, vi as ReplayNodeIdentity, vn as AssertionGenerationStatus, vr as DatasetGraderRef, vt as reportReplayProgress, w as NodeOptions, wi as ProviderDefinition, wn as GenerateAssertionsOptions, wr as GraderRerunResult, wt as BitfabOpenAIAgentHandler, x as CurrentTrace, xi as SelectiveReplayReport, xn as AssertionRewrite, xr as GraderRerun, xt as ReplayInterruptSignal, y as CaptureWhen, yi as SelectiveReplayDecision, yn as AssertionGenerationTimeoutError, yr as DatasetTraceIds, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioDataSources, zr as VercelStreamResult, zt as GraderVerdictUpdate } from "./index-DJn-J5ZW.js";
2
- export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioDataSources, type ScenarioGeneration, type ScenarioHistoryEntry, type ScenarioRecord, type ScenarioRecordInput, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenAIResponsesOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
1
+ import { $ as RivetEffectType, $n as TraceSearchParams, $r as HttpClient, $t as LabelSource, A as SpanMethodDecoratorContext, Ai as Assignee, An as SaveScenarioActualOutcome, Ar as RemoveDatasetGradersResult, At as LangGraphIntegrationOptions, B as getCurrentTrace, Bn as ScenarioDataOrigin, Br as VercelGenerateResult, Bt as GraderVerdictSource, C as NodeMethodDecorator, Ci as SelectiveReplayReport, Cn as AssertionRewrite, Cr as GraderRerun, Ct as PiIntegrationOptions, D as SeedCaseOptions, Di as ApprovalFields, Dn as SaveAssertion, Dr as GraderRerunStatus, Dt as BitfabAgentMiddleware, E as ReseedResult, Ei as ProviderDefinition, En as GenerateAssertionsOptions, Er as GraderRerunResult, Et as BitfabOpenAIAgentHandler, F as WrapOpenAIResponsesOptions, Fn as Scenario, Fr as SaveDatasetResult, Ft as GraderLabelOutcome, G as TracingProcessor, Gn as ScenarioRecordInput, Gr as AssertionCategorySummary, Gt as AssertionVerdict, H as ActiveSpanContext, Hn as ScenarioGeneration, Hr as BitfabClaudeAgentHandler, Ht as GradersClient, I as WrapOpenRouterOptions, In as ScenarioAction, Ir as UpdateDatasetParams, It as GraderLabelSource, J as SpanListParams, Jn as TraceAssertion, Jr as CategorySummary, Jt as HumanVerdictOutcome, K as ListedSpan, Kn as ScenarioSource, Kr as CategoriesClient, Kt as HumanLabelOutcome, L as WrappedBamlFn, Ln as ScenarioActualOutcome, Lr as BitfabLanguageModelMiddleware, Lt as GraderLabelUpdate, M as WrapAnthropicOptions, Mi as JustificationSpan, Mn as SaveScenarioHistoryEntry, Mr as RerunGradersOptions, Mt as GetGraderLabelsParams, N as WrapBAMLOptions, Nn as SaveScenarioParams, Nr as RerunGradersResult, Nt as GetGraderVerdictsParams, O as SeedRunOptions, Oi as ApprovalState, On as SaveAssertionsAllParams, Or as GraderRerunTimeoutError, Ot as BitfabLangGraphAgent, P as WrapJevOptions, Pn as SavedTraceAssertion, Pr as SaveDatasetParams, Pt as GraderLabel, Q as RivetContextLike, Qn as TraceSearchFilters, Qr as CodeChangeFile, Qt as LabelOutcome, R as getCurrentReplayBranch, Rn as ScenarioData, Rr as BitfabVercelAiHandler, Rt as GraderVerdict, S as DetachedTrace, Si as SelectiveReplayOptions, Sn as AssertionLabelEvidence, Sr as DatasetsClient, St as BitfabPiIntegration, T as ReseedOptions, Ti as BamlExecutionResult, Tn as AssertionVerdictEvidence, Tr as GraderRerunProgress, Tt as OrganizationMembersClient, U as BitfabOpenAITracingProcessor, Un as ScenarioHistoryEntry, Ur as AssertionCategoriesClient, Ut as ArchiveLabelTarget, V as CaptureSurface, Vn as ScenarioDataSources, Vr as VercelStreamResult, Vt as GraderVerdictUpdate, W as TraceResponse, Wn as ScenarioRecord, Wr as AssertionCategory, Wt as ArchiveVerdictTarget, X as SpansClient, Xn as TraceAssertionsResult, Xr as SaveCategoryParams, Xt as LabelAction, Y as SpanListResult, Yn as TraceAssertionSource, Yr as SaveAssertionCategoryParams, Yt as HumanVerdictUpdate, Z as BitfabRivetIntegration, Zn as TraceAssertionsUpdate, Zr as CapturedSpan, Zt as LabelConfidence, _ as BitfabConfig, _i as DbSnapshotProvider, _n as AssertionEvidenceParameter, _r as AddDatasetGradersResult, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as DbBranchTimings, an as TraceLabels, ar as ExperimentCategoryTally, at as DbBranchOptions, b as CurrentSpan, bi as ReplayNodeIdentity, bn as AssertionGenerationStatus, br as DatasetGraderRef, bt as ReplayInterrupt, c as SeedResult, ci as MockOverrideInput, cn as VerdictAction, cr as ExperimentPage, ct as ReplayError, d as seedFromRegistry, di as NO_MOCK_OVERRIDE, dn as VerdictSource, dr as ExperimentRunBy, dt as ReplayItemFinishProgress, ei as SpanLookup, en as LabelStatus, er as TraceSearchResult, et as RivetIntegrationOptions, f as finalizers, fi as NodeMatcher, fn as VerdictStatus, fr as ExperimentStatus, ft as ReplayItemStartProgress, g as Bitfab, gi as DbSnapshotConfig, gn as ArchiveAssertionsParams, gr as ListExperimentsParams, gt as ReplayResult, h as CommitRef, hi as MixedTracingError, hn as VerdictsClient, hr as ExperimentsClient, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as flushTraces, in as PassFailVerdict, ir as Experiment, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, ji as Justification, jn as SaveScenarioData, jr as RemoveDatasetTracesResult, jt as BitfabLangGraphCallbackHandler, k as SpanMethodDecorator, ki as Approver, kn as SaveAssertionsParams, kr as ListDatasetsParams, kt as BitfabLangGraphIntegration, l as defineReplayRegistry, li as MockOverrideResolver, ln as VerdictConfidence, lr as ExperimentRollup, lt as ReplayExperiment, m as __version__, mi as BitfabError, mn as VerdictUpdate, mr as ExperimentTotals, mt as ReplayProgress, n as ReplayRegistration, ni as SpanType, nn as LabelUpdate, nr as TraceTargetOccurrence, nt as AdaptContext, o as ReseedRegistryResult, oi as MockOverride, on as TraceVerdicts, or as ExperimentCodeChangeTotals, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as SpanNodeMeta, pn as VerdictTarget, pr as ExperimentTally, pt as ReplayOptions, q as SpanListField, qn as ScenarioTrigger, qr as Category, qt as HumanLabelUpdate, r as ReplayRegistry, ri as TokenUsage, rn as LabelsClient, rr as TracesClient, rt as AdaptInputsFn, s as SeedCase, si as MockOverrideCtx, sn as Verdict, sr as ExperimentJitter, st as MockStrategy, t as ReplayOptionsFactory, ti as SpanOccurrence, tn as LabelTarget, tr as TraceTarget, tt as ReplayBranch, u as reseedFromRegistry, ui as MockValue, un as VerdictOutcome, ur as ExperimentRollupResult, ut as ReplayItem, v as BitfabFunction, vi as DbSnapshotRef, vn as AssertionGeneration, vr as AddDatasetTracesResult, vt as reportReplayProgress, w as NodeOptions, wi as AllowedEnvVars, wn as AssertionRewriteStatus, wr as GraderRerunError, wt as OrganizationMember, x as CurrentTrace, xi as SelectiveReplayDecision, xn as AssertionGenerationTimeoutError, xr as DatasetTraceIds, xt as ReplayInterruptSignal, y as CaptureWhen, yi as SUPPORTED_PROVIDERS, yn as AssertionGenerationError, yr as Dataset, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioDataAppend, zr as VercelCallParams, zt as GraderVerdictOutcome } from "./index-DTcqG8wp.js";
2
+ export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabPiIntegration, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type PiIntegrationOptions, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioDataSources, type ScenarioGeneration, type ScenarioHistoryEntry, type ScenarioRecord, type ScenarioRecordInput, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapAnthropicOptions, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenAIResponsesOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/index.js CHANGED
@@ -7,6 +7,6 @@ if (typeof globalThis.__bitfab_deprecation_warned === "undefined") {
7
7
  "The bitfab package will stop receiving updates in a future release."
8
8
  );
9
9
  }
10
- import { A as ExperimentsClient, C as BitfabOpenAIAgentHandler, D as GradersClient, E as BitfabLangGraphCallbackHandler, F as BitfabClaudeAgentHandler, I as DEFAULT_SERVICE_URL, L as AssertionCategoriesClient, M as DatasetsClient, N as GraderRerunError, O as LabelsClient, P as GraderRerunTimeoutError, R as CategoriesClient, S as OrganizationMembersClient, T as BitfabLangGraphIntegration, _ as BITFAB_PROGRESS_PREFIX, a as Bitfab, b as reportReplayProgress, c as getCurrentSpan, d as BitfabOpenAITracingProcessor, f as AssertionGenerationError, g as BitfabRivetIntegration, h as SpansClient, i as finalizers, j as SUPPORTED_PROVIDERS, k as VerdictsClient, l as getCurrentTrace, m as TracesClient, n as reseedFromRegistry, o as BitfabFunction, p as AssertionGenerationTimeoutError, r as seedFromRegistry, s as getCurrentReplayBranch, t as defineReplayRegistry, u as BitfabVercelAiHandler, v as DbBranchReplayError, w as NO_MOCK_OVERRIDE, x as serializeReplayResult, y as ReplayError } from "./src-CtdBcoBF.js";
11
- import { S as MixedTracingError, i as flushTraces, t as HttpClient, w as __version__, x as BitfabError } from "./http-9n6clFHt.js";
12
- export { AssertionCategoriesClient, AssertionGenerationError, AssertionGenerationTimeoutError, BITFAB_PROGRESS_PREFIX, Bitfab, BitfabClaudeAgentHandler, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, CategoriesClient, DEFAULT_SERVICE_URL, DatasetsClient, DbBranchReplayError, ExperimentsClient, GraderRerunError, GraderRerunTimeoutError, GradersClient, HttpClient, LabelsClient, MixedTracingError, NO_MOCK_OVERRIDE, OrganizationMembersClient, ReplayError, SUPPORTED_PROVIDERS, SpansClient, TracesClient, VerdictsClient, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
10
+ import { A as VerdictsClient, C as OrganizationMembersClient, D as BitfabLangGraphCallbackHandler, E as BitfabLangGraphIntegration, F as GraderRerunTimeoutError, I as BitfabClaudeAgentHandler, L as DEFAULT_SERVICE_URL, M as SUPPORTED_PROVIDERS, N as DatasetsClient, O as GradersClient, P as GraderRerunError, R as AssertionCategoriesClient, S as BitfabPiIntegration, T as NO_MOCK_OVERRIDE, _ as BITFAB_PROGRESS_PREFIX, a as Bitfab, b as reportReplayProgress, c as getCurrentSpan, d as BitfabOpenAITracingProcessor, f as AssertionGenerationError, g as BitfabRivetIntegration, h as SpansClient, i as finalizers, j as ExperimentsClient, k as LabelsClient, l as getCurrentTrace, m as TracesClient, n as reseedFromRegistry, o as BitfabFunction, p as AssertionGenerationTimeoutError, r as seedFromRegistry, s as getCurrentReplayBranch, t as defineReplayRegistry, u as BitfabVercelAiHandler, v as DbBranchReplayError, w as BitfabOpenAIAgentHandler, x as serializeReplayResult, y as ReplayError, z as CategoriesClient } from "./src-C0LckYjn.js";
11
+ import { C as MixedTracingError, S as BitfabError, T as __version__, i as flushTraces, t as HttpClient } from "./http-CcjbDe4b.js";
12
+ export { AssertionCategoriesClient, AssertionGenerationError, AssertionGenerationTimeoutError, BITFAB_PROGRESS_PREFIX, Bitfab, BitfabClaudeAgentHandler, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabPiIntegration, BitfabRivetIntegration, BitfabVercelAiHandler, CategoriesClient, DEFAULT_SERVICE_URL, DatasetsClient, DbBranchReplayError, ExperimentsClient, GraderRerunError, GraderRerunTimeoutError, GradersClient, HttpClient, LabelsClient, MixedTracingError, NO_MOCK_OVERRIDE, OrganizationMembersClient, ReplayError, SUPPORTED_PROVIDERS, SpansClient, TracesClient, VerdictsClient, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
package/dist/node.cjs CHANGED
@@ -11,9 +11,9 @@ Object.defineProperties(exports, {
11
11
  __esModule: { value: true },
12
12
  [Symbol.toStringTag]: { value: "Module" }
13
13
  });
14
- const require_src = require("./src-i7rTgxMg.cjs");
15
- const require_http = require("./http-CqYiYU9P.cjs");
16
- const require_autoTrace = require("./autoTrace-DUmR1KJ8.cjs");
14
+ const require_src = require("./src-BOmu6a4v.cjs");
15
+ const require_http = require("./http-BB9wDcLm.cjs");
16
+ const require_autoTrace = require("./autoTrace-DPWV1Xzr.cjs");
17
17
  let async_hooks = require("async_hooks");
18
18
  //#region src/asyncStorageNode.ts
19
19
  require_autoTrace.registerAsyncLocalStorageClass(async_hooks.AsyncLocalStorage);
@@ -34,6 +34,7 @@ exports.BitfabLangGraphCallbackHandler = require_src.BitfabLangGraphCallbackHand
34
34
  exports.BitfabLangGraphIntegration = require_src.BitfabLangGraphIntegration;
35
35
  exports.BitfabOpenAIAgentHandler = require_src.BitfabOpenAIAgentHandler;
36
36
  exports.BitfabOpenAITracingProcessor = require_src.BitfabOpenAITracingProcessor;
37
+ exports.BitfabPiIntegration = require_src.BitfabPiIntegration;
37
38
  exports.BitfabRivetIntegration = require_src.BitfabRivetIntegration;
38
39
  exports.BitfabVercelAiHandler = require_src.BitfabVercelAiHandler;
39
40
  exports.CategoriesClient = require_src.CategoriesClient;