bitfab 0.68.7 → 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.
@@ -2045,6 +2045,18 @@ type ArchiveAssertionsParams = {
2045
2045
  traceId: string;
2046
2046
  assertionIds: string[];
2047
2047
  };
2048
+ /**
2049
+ * What `generateScenario` started. `started`: Bitfab is building the
2050
+ * scenario in the background, and `getScenario` reads it once it is ready.
2051
+ * `already_generated`: the trace already has a scenario, so nothing was
2052
+ * started and `scenarioId` names it.
2053
+ */
2054
+ type ScenarioGeneration = {
2055
+ status: "started" | "already_generated";
2056
+ traceId: string;
2057
+ /** The trace's scenario, or null while it has none yet. */
2058
+ scenarioId: string | null;
2059
+ };
2048
2060
  type GenerateAssertionsOptions = {
2049
2061
  guidance?: string;
2050
2062
  categoryIds?: string[];
@@ -2087,6 +2099,15 @@ declare class TracesClient {
2087
2099
  generateAssertions(traceId: string, options?: GenerateAssertionsOptions): Promise<TraceAssertion[]>;
2088
2100
  archiveAssertions(params: ArchiveAssertionsParams): Promise<string[]>;
2089
2101
  getScenario(traceId: string): Promise<Scenario>;
2102
+ /**
2103
+ * Start building the scenario for one trace and return at once, without
2104
+ * waiting for it. Read it later with `getScenario`. A trace that already has
2105
+ * a scenario is left as it is. A replay, a trace outside the organization,
2106
+ * or a trace Bitfab cannot build a scenario for (not `noah-agent-turn` and
2107
+ * no scenario callback) is refused. Adding a trace to a dataset starts the
2108
+ * same build only when the organization has a scenario callback.
2109
+ */
2110
+ generateScenario(traceId: string): Promise<ScenarioGeneration>;
2090
2111
  saveScenario({ traceId, ...edit }: SaveScenarioParams): Promise<Scenario>;
2091
2112
  }
2092
2113
  //#endregion
@@ -2793,6 +2814,113 @@ declare class OrganizationMembersClient {
2793
2814
  list(): Promise<OrganizationMember[]>;
2794
2815
  }
2795
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
2796
2924
  //#region src/replayInterrupt.d.ts
2797
2925
  type ReplayInterruptSignal = "SIGINT" | "SIGTERM";
2798
2926
  interface ReplayInterrupt {
@@ -4295,6 +4423,22 @@ declare class Bitfab {
4295
4423
  * @experimental This API may change before it is stable.
4296
4424
  */
4297
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;
4298
4442
  /**
4299
4443
  * Get a Claude Agent SDK handler for tracing.
4300
4444
  *
@@ -4873,6 +5017,14 @@ declare class BitfabFunction {
4873
5017
  * @experimental This API may change before it is stable.
4874
5018
  */
4875
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;
4876
5028
  /**
4877
5029
  * Get the first-class Rivet actor-context integration bound to this key.
4878
5030
  * Use its `bind()` or `withContext()` outside this handle's `withTrace()`
@@ -4969,7 +5121,7 @@ interface CommitRef {
4969
5121
  /**
4970
5122
  * SDK version from package.json (injected at build time)
4971
5123
  */
4972
- declare const __version__ = "0.68.7";
5124
+ declare const __version__ = "0.68.9";
4973
5125
  //#endregion
4974
5126
  //#region src/constants.d.ts
4975
5127
  /**
@@ -5111,4 +5263,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
5111
5263
  run?: boolean;
5112
5264
  }): Promise<SeedResult>;
5113
5265
  //#endregion
5114
- export { RivetEffectType as $, TraceTargetOccurrence as $n, SpanType as $r, LabelTarget as $t, SpanMethodDecoratorContext as A, SaveScenarioHistoryEntry as An, RerunGradersResult as Ar, GetGraderLabelsParams as At, getCurrentTrace as B, ScenarioHistoryEntry as Bn, AssertionCategoriesClient as Br, GradersClient as Bt, NodeMethodDecorator as C, ProviderDefinition as Ci, AssertionVerdictEvidence as Cn, GraderRerunResult as Cr, OrganizationMembersClient as Ct, SeedCaseOptions as D, Assignee as Di, SaveAssertionsParams as Dn, RemoveDatasetGradersResult as Dr, BitfabLangGraphIntegration as Dt, ReseedResult as E, Approver as Ei, SaveAssertionsAllParams as En, ListDatasetsParams as Er, BitfabLangGraphAgent as Et, WrapOpenAIResponsesOptions as F, ScenarioActualOutcome as Fn, BitfabVercelAiHandler as Fr, GraderLabelUpdate as Ft, TracingProcessor as G, TraceAssertion as Gn, CategorySummary as Gr, HumanLabelUpdate as Gt, ActiveSpanContext as H, ScenarioRecordInput as Hn, AssertionCategorySummary as Hr, ArchiveVerdictTarget as Ht, WrapOpenRouterOptions as I, ScenarioData as In, VercelCallParams as Ir, GraderVerdict as It, SpanListParams as J, TraceAssertionsUpdate as Jn, CapturedSpan as Jr, LabelAction as Jt, ListedSpan as K, TraceAssertionSource as Kn, SaveAssertionCategoryParams as Kr, HumanVerdictOutcome as Kt, WrappedBamlFn as L, ScenarioDataAppend as Ln, VercelGenerateResult as Lr, GraderVerdictOutcome as Lt, WrapAnthropicOptions as M, SavedTraceAssertion as Mn, SaveDatasetResult as Mr, GraderLabel as Mt, WrapBAMLOptions as N, Scenario as Nn, UpdateDatasetParams as Nr, GraderLabelOutcome as Nt, SeedRunOptions as O, Justification as Oi, SaveScenarioActualOutcome as On, RemoveDatasetTracesResult as Or, LangGraphIntegrationOptions as Ot, WrapJevOptions as P, ScenarioAction as Pn, BitfabLanguageModelMiddleware as Pr, GraderLabelSource as Pt, RivetContextLike as Q, TraceTarget as Qn, SpanOccurrence as Qr, LabelStatus as Qt, getCurrentReplayBranch as R, ScenarioDataOrigin as Rn, VercelStreamResult as Rr, GraderVerdictSource as Rt, DetachedTrace as S, BamlExecutionResult as Si, AssertionRewriteStatus as Sn, GraderRerunProgress as Sr, OrganizationMember as St, ReseedOptions as T, ApprovalState as Ti, SaveAssertion as Tn, GraderRerunTimeoutError as Tr, BitfabAgentMiddleware as Tt, BitfabOpenAITracingProcessor as U, ScenarioSource as Un, CategoriesClient as Ur, AssertionVerdict as Ut, CaptureSurface as V, ScenarioRecord as Vn, AssertionCategory as Vr, ArchiveLabelTarget as Vt, TraceResponse as W, ScenarioTrigger as Wn, Category as Wr, HumanLabelOutcome as Wt, SpansClient as X, TraceSearchParams as Xn, HttpClient as Xr, LabelOutcome as Xt, SpanListResult as Y, TraceSearchFilters as Yn, CodeChangeFile as Yr, LabelConfidence as Yt, BitfabRivetIntegration as Z, TraceSearchResult as Zn, SpanLookup as Zr, LabelSource as Zt, BitfabConfig as _, ReplayNodeIdentity as _i, AssertionGenerationError as _n, DatasetGraderRef as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, MockOverrideInput as ai, Verdict as an, ExperimentPage as ar, DbBranchOptions as at, CurrentSpan as b, SelectiveReplayReport as bi, AssertionLabelEvidence as bn, GraderRerun as br, ReplayInterrupt as bt, SeedResult as c, NO_MOCK_OVERRIDE as ci, VerdictOutcome as cn, ExperimentRunBy as cr, ReplayError as ct, seedFromRegistry as d, BitfabError as di, VerdictTarget as dn, ExperimentTotals as dr, ReplayItemFinishProgress as dt, TokenUsage as ei, LabelUpdate as en, TracesClient as er, RivetIntegrationOptions as et, finalizers as f, MixedTracingError as fi, VerdictUpdate as fn, ExperimentsClient as fr, ReplayItemStartProgress as ft, Bitfab as g, SUPPORTED_PROVIDERS as gi, AssertionGeneration as gn, Dataset as gr, ReplayResult as gt, CommitRef as h, DbSnapshotRef as hi, AssertionEvidenceParameter as hn, AddDatasetTracesResult as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, MockOverrideCtx as ii, TraceVerdicts as in, ExperimentJitter as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SaveScenarioParams as jn, SaveDatasetParams as jr, GetGraderVerdictsParams as jt, SpanMethodDecorator as k, JustificationSpan as ki, SaveScenarioData as kn, RerunGradersOptions as kr, BitfabLangGraphCallbackHandler as kt, defineReplayRegistry as l, NodeMatcher as li, VerdictSource as ln, ExperimentStatus as lr, ReplayExperiment as lt, __version__ as m, DbSnapshotProvider as mi, ArchiveAssertionsParams as mn, AddDatasetGradersResult as mr, ReplayProgress as mt, ReplayRegistration as n, DbBranchTimings as ni, PassFailVerdict as nn, ExperimentCategoryTally as nr, AdaptContext as nt, ReseedRegistryResult as o, MockOverrideResolver as oi, VerdictAction as on, ExperimentRollup as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, DbSnapshotConfig as pi, VerdictsClient as pn, ListExperimentsParams as pr, ReplayOptions as pt, SpanListField as q, TraceAssertionsResult as qn, SaveCategoryParams as qr, HumanVerdictUpdate as qt, ReplayRegistry as r, MockOverride as ri, TraceLabels as rn, ExperimentCodeChangeTotals as rr, AdaptInputsFn as rt, SeedCase as s, MockValue as si, VerdictConfidence as sn, ExperimentRollupResult as sr, MockStrategy as st, ReplayOptionsFactory as t, flushTraces as ti, LabelsClient as tn, Experiment as tr, ReplayBranch as tt, reseedFromRegistry as u, SpanNodeMeta as ui, VerdictStatus as un, ExperimentTally as ur, ReplayItem as ut, BitfabFunction as v, SelectiveReplayDecision as vi, AssertionGenerationStatus as vn, DatasetTraceIds as vr, reportReplayProgress as vt, NodeOptions as w, ApprovalFields as wi, GenerateAssertionsOptions as wn, GraderRerunStatus as wr, BitfabOpenAIAgentHandler as wt, CurrentTrace as x, AllowedEnvVars as xi, AssertionRewrite as xn, GraderRerunError as xr, ReplayInterruptSignal as xt, CaptureWhen as y, SelectiveReplayOptions as yi, AssertionGenerationTimeoutError as yn, DatasetsClient as yr, serializeReplayResult as yt, getCurrentSpan as z, ScenarioDataSources as zn, BitfabClaudeAgentHandler 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 };
@@ -2045,6 +2045,18 @@ type ArchiveAssertionsParams = {
2045
2045
  traceId: string;
2046
2046
  assertionIds: string[];
2047
2047
  };
2048
+ /**
2049
+ * What `generateScenario` started. `started`: Bitfab is building the
2050
+ * scenario in the background, and `getScenario` reads it once it is ready.
2051
+ * `already_generated`: the trace already has a scenario, so nothing was
2052
+ * started and `scenarioId` names it.
2053
+ */
2054
+ type ScenarioGeneration = {
2055
+ status: "started" | "already_generated";
2056
+ traceId: string;
2057
+ /** The trace's scenario, or null while it has none yet. */
2058
+ scenarioId: string | null;
2059
+ };
2048
2060
  type GenerateAssertionsOptions = {
2049
2061
  guidance?: string;
2050
2062
  categoryIds?: string[];
@@ -2087,6 +2099,15 @@ declare class TracesClient {
2087
2099
  generateAssertions(traceId: string, options?: GenerateAssertionsOptions): Promise<TraceAssertion[]>;
2088
2100
  archiveAssertions(params: ArchiveAssertionsParams): Promise<string[]>;
2089
2101
  getScenario(traceId: string): Promise<Scenario>;
2102
+ /**
2103
+ * Start building the scenario for one trace and return at once, without
2104
+ * waiting for it. Read it later with `getScenario`. A trace that already has
2105
+ * a scenario is left as it is. A replay, a trace outside the organization,
2106
+ * or a trace Bitfab cannot build a scenario for (not `noah-agent-turn` and
2107
+ * no scenario callback) is refused. Adding a trace to a dataset starts the
2108
+ * same build only when the organization has a scenario callback.
2109
+ */
2110
+ generateScenario(traceId: string): Promise<ScenarioGeneration>;
2090
2111
  saveScenario({ traceId, ...edit }: SaveScenarioParams): Promise<Scenario>;
2091
2112
  }
2092
2113
  //#endregion
@@ -2793,6 +2814,113 @@ declare class OrganizationMembersClient {
2793
2814
  list(): Promise<OrganizationMember[]>;
2794
2815
  }
2795
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
2796
2924
  //#region src/replayInterrupt.d.ts
2797
2925
  type ReplayInterruptSignal = "SIGINT" | "SIGTERM";
2798
2926
  interface ReplayInterrupt {
@@ -4295,6 +4423,22 @@ declare class Bitfab {
4295
4423
  * @experimental This API may change before it is stable.
4296
4424
  */
4297
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;
4298
4442
  /**
4299
4443
  * Get a Claude Agent SDK handler for tracing.
4300
4444
  *
@@ -4873,6 +5017,14 @@ declare class BitfabFunction {
4873
5017
  * @experimental This API may change before it is stable.
4874
5018
  */
4875
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;
4876
5028
  /**
4877
5029
  * Get the first-class Rivet actor-context integration bound to this key.
4878
5030
  * Use its `bind()` or `withContext()` outside this handle's `withTrace()`
@@ -4969,7 +5121,7 @@ interface CommitRef {
4969
5121
  /**
4970
5122
  * SDK version from package.json (injected at build time)
4971
5123
  */
4972
- declare const __version__ = "0.68.7";
5124
+ declare const __version__ = "0.68.9";
4973
5125
  //#endregion
4974
5126
  //#region src/constants.d.ts
4975
5127
  /**
@@ -5111,4 +5263,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
5111
5263
  run?: boolean;
5112
5264
  }): Promise<SeedResult>;
5113
5265
  //#endregion
5114
- export { RivetEffectType as $, TraceTargetOccurrence as $n, SpanType as $r, LabelTarget as $t, SpanMethodDecoratorContext as A, SaveScenarioHistoryEntry as An, RerunGradersResult as Ar, GetGraderLabelsParams as At, getCurrentTrace as B, ScenarioHistoryEntry as Bn, AssertionCategoriesClient as Br, GradersClient as Bt, NodeMethodDecorator as C, ProviderDefinition as Ci, AssertionVerdictEvidence as Cn, GraderRerunResult as Cr, OrganizationMembersClient as Ct, SeedCaseOptions as D, Assignee as Di, SaveAssertionsParams as Dn, RemoveDatasetGradersResult as Dr, BitfabLangGraphIntegration as Dt, ReseedResult as E, Approver as Ei, SaveAssertionsAllParams as En, ListDatasetsParams as Er, BitfabLangGraphAgent as Et, WrapOpenAIResponsesOptions as F, ScenarioActualOutcome as Fn, BitfabVercelAiHandler as Fr, GraderLabelUpdate as Ft, TracingProcessor as G, TraceAssertion as Gn, CategorySummary as Gr, HumanLabelUpdate as Gt, ActiveSpanContext as H, ScenarioRecordInput as Hn, AssertionCategorySummary as Hr, ArchiveVerdictTarget as Ht, WrapOpenRouterOptions as I, ScenarioData as In, VercelCallParams as Ir, GraderVerdict as It, SpanListParams as J, TraceAssertionsUpdate as Jn, CapturedSpan as Jr, LabelAction as Jt, ListedSpan as K, TraceAssertionSource as Kn, SaveAssertionCategoryParams as Kr, HumanVerdictOutcome as Kt, WrappedBamlFn as L, ScenarioDataAppend as Ln, VercelGenerateResult as Lr, GraderVerdictOutcome as Lt, WrapAnthropicOptions as M, SavedTraceAssertion as Mn, SaveDatasetResult as Mr, GraderLabel as Mt, WrapBAMLOptions as N, Scenario as Nn, UpdateDatasetParams as Nr, GraderLabelOutcome as Nt, SeedRunOptions as O, Justification as Oi, SaveScenarioActualOutcome as On, RemoveDatasetTracesResult as Or, LangGraphIntegrationOptions as Ot, WrapJevOptions as P, ScenarioAction as Pn, BitfabLanguageModelMiddleware as Pr, GraderLabelSource as Pt, RivetContextLike as Q, TraceTarget as Qn, SpanOccurrence as Qr, LabelStatus as Qt, getCurrentReplayBranch as R, ScenarioDataOrigin as Rn, VercelStreamResult as Rr, GraderVerdictSource as Rt, DetachedTrace as S, BamlExecutionResult as Si, AssertionRewriteStatus as Sn, GraderRerunProgress as Sr, OrganizationMember as St, ReseedOptions as T, ApprovalState as Ti, SaveAssertion as Tn, GraderRerunTimeoutError as Tr, BitfabAgentMiddleware as Tt, BitfabOpenAITracingProcessor as U, ScenarioSource as Un, CategoriesClient as Ur, AssertionVerdict as Ut, CaptureSurface as V, ScenarioRecord as Vn, AssertionCategory as Vr, ArchiveLabelTarget as Vt, TraceResponse as W, ScenarioTrigger as Wn, Category as Wr, HumanLabelOutcome as Wt, SpansClient as X, TraceSearchParams as Xn, HttpClient as Xr, LabelOutcome as Xt, SpanListResult as Y, TraceSearchFilters as Yn, CodeChangeFile as Yr, LabelConfidence as Yt, BitfabRivetIntegration as Z, TraceSearchResult as Zn, SpanLookup as Zr, LabelSource as Zt, BitfabConfig as _, ReplayNodeIdentity as _i, AssertionGenerationError as _n, DatasetGraderRef as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, MockOverrideInput as ai, Verdict as an, ExperimentPage as ar, DbBranchOptions as at, CurrentSpan as b, SelectiveReplayReport as bi, AssertionLabelEvidence as bn, GraderRerun as br, ReplayInterrupt as bt, SeedResult as c, NO_MOCK_OVERRIDE as ci, VerdictOutcome as cn, ExperimentRunBy as cr, ReplayError as ct, seedFromRegistry as d, BitfabError as di, VerdictTarget as dn, ExperimentTotals as dr, ReplayItemFinishProgress as dt, TokenUsage as ei, LabelUpdate as en, TracesClient as er, RivetIntegrationOptions as et, finalizers as f, MixedTracingError as fi, VerdictUpdate as fn, ExperimentsClient as fr, ReplayItemStartProgress as ft, Bitfab as g, SUPPORTED_PROVIDERS as gi, AssertionGeneration as gn, Dataset as gr, ReplayResult as gt, CommitRef as h, DbSnapshotRef as hi, AssertionEvidenceParameter as hn, AddDatasetTracesResult as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, MockOverrideCtx as ii, TraceVerdicts as in, ExperimentJitter as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SaveScenarioParams as jn, SaveDatasetParams as jr, GetGraderVerdictsParams as jt, SpanMethodDecorator as k, JustificationSpan as ki, SaveScenarioData as kn, RerunGradersOptions as kr, BitfabLangGraphCallbackHandler as kt, defineReplayRegistry as l, NodeMatcher as li, VerdictSource as ln, ExperimentStatus as lr, ReplayExperiment as lt, __version__ as m, DbSnapshotProvider as mi, ArchiveAssertionsParams as mn, AddDatasetGradersResult as mr, ReplayProgress as mt, ReplayRegistration as n, DbBranchTimings as ni, PassFailVerdict as nn, ExperimentCategoryTally as nr, AdaptContext as nt, ReseedRegistryResult as o, MockOverrideResolver as oi, VerdictAction as on, ExperimentRollup as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, DbSnapshotConfig as pi, VerdictsClient as pn, ListExperimentsParams as pr, ReplayOptions as pt, SpanListField as q, TraceAssertionsResult as qn, SaveCategoryParams as qr, HumanVerdictUpdate as qt, ReplayRegistry as r, MockOverride as ri, TraceLabels as rn, ExperimentCodeChangeTotals as rr, AdaptInputsFn as rt, SeedCase as s, MockValue as si, VerdictConfidence as sn, ExperimentRollupResult as sr, MockStrategy as st, ReplayOptionsFactory as t, flushTraces as ti, LabelsClient as tn, Experiment as tr, ReplayBranch as tt, reseedFromRegistry as u, SpanNodeMeta as ui, VerdictStatus as un, ExperimentTally as ur, ReplayItem as ut, BitfabFunction as v, SelectiveReplayDecision as vi, AssertionGenerationStatus as vn, DatasetTraceIds as vr, reportReplayProgress as vt, NodeOptions as w, ApprovalFields as wi, GenerateAssertionsOptions as wn, GraderRerunStatus as wr, BitfabOpenAIAgentHandler as wt, CurrentTrace as x, AllowedEnvVars as xi, AssertionRewrite as xn, GraderRerunError as xr, ReplayInterruptSignal as xt, CaptureWhen as y, SelectiveReplayOptions as yi, AssertionGenerationTimeoutError as yn, DatasetsClient as yr, serializeReplayResult as yt, getCurrentSpan as z, ScenarioDataSources as zn, BitfabClaudeAgentHandler 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-B7_GnVaZ.cjs");
15
- const require_http = require("./http-DAMAcv_J.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 TraceTargetOccurrence, $r as SpanType, $t as LabelTarget, A as SpanMethodDecoratorContext, An as SaveScenarioHistoryEntry, Ar as RerunGradersResult, At as GetGraderLabelsParams, B as getCurrentTrace, Bn as ScenarioHistoryEntry, Br as AssertionCategoriesClient, Bt as GradersClient, C as NodeMethodDecorator, Ci as ProviderDefinition, Cn as AssertionVerdictEvidence, Cr as GraderRerunResult, Ct as OrganizationMembersClient, D as SeedCaseOptions, Di as Assignee, Dn as SaveAssertionsParams, Dr as RemoveDatasetGradersResult, Dt as BitfabLangGraphIntegration, E as ReseedResult, Ei as Approver, En as SaveAssertionsAllParams, Er as ListDatasetsParams, Et as BitfabLangGraphAgent, F as WrapOpenAIResponsesOptions, Fn as ScenarioActualOutcome, Fr as BitfabVercelAiHandler, Ft as GraderLabelUpdate, G as TracingProcessor, Gn as TraceAssertion, Gr as CategorySummary, Gt as HumanLabelUpdate, H as ActiveSpanContext, Hn as ScenarioRecordInput, Hr as AssertionCategorySummary, Ht as ArchiveVerdictTarget, I as WrapOpenRouterOptions, In as ScenarioData, Ir as VercelCallParams, It as GraderVerdict, J as SpanListParams, Jn as TraceAssertionsUpdate, Jr as CapturedSpan, Jt as LabelAction, K as ListedSpan, Kn as TraceAssertionSource, Kr as SaveAssertionCategoryParams, Kt as HumanVerdictOutcome, L as WrappedBamlFn, Ln as ScenarioDataAppend, Lr as VercelGenerateResult, Lt as GraderVerdictOutcome, M as WrapAnthropicOptions, Mn as SavedTraceAssertion, Mr as SaveDatasetResult, Mt as GraderLabel, N as WrapBAMLOptions, Nn as Scenario, Nr as UpdateDatasetParams, Nt as GraderLabelOutcome, O as SeedRunOptions, Oi as Justification, On as SaveScenarioActualOutcome, Or as RemoveDatasetTracesResult, Ot as LangGraphIntegrationOptions, P as WrapJevOptions, Pn as ScenarioAction, Pr as BitfabLanguageModelMiddleware, Pt as GraderLabelSource, Q as RivetContextLike, Qn as TraceTarget, Qr as SpanOccurrence, Qt as LabelStatus, R as getCurrentReplayBranch, Rn as ScenarioDataOrigin, Rr as VercelStreamResult, Rt as GraderVerdictSource, S as DetachedTrace, Si as BamlExecutionResult, Sn as AssertionRewriteStatus, Sr as GraderRerunProgress, St as OrganizationMember, T as ReseedOptions, Ti as ApprovalState, Tn as SaveAssertion, Tr as GraderRerunTimeoutError, Tt as BitfabAgentMiddleware, U as BitfabOpenAITracingProcessor, Un as ScenarioSource, Ur as CategoriesClient, Ut as AssertionVerdict, V as CaptureSurface, Vn as ScenarioRecord, Vr as AssertionCategory, Vt as ArchiveLabelTarget, W as TraceResponse, Wn as ScenarioTrigger, Wr as Category, Wt as HumanLabelOutcome, X as SpansClient, Xn as TraceSearchParams, Xr as HttpClient, Xt as LabelOutcome, Y as SpanListResult, Yn as TraceSearchFilters, Yr as CodeChangeFile, Yt as LabelConfidence, Z as BitfabRivetIntegration, Zn as TraceSearchResult, Zr as SpanLookup, Zt as LabelSource, _ as BitfabConfig, _i as ReplayNodeIdentity, _n as AssertionGenerationError, _r as DatasetGraderRef, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as MockOverrideInput, an as Verdict, ar as ExperimentPage, at as DbBranchOptions, b as CurrentSpan, bi as SelectiveReplayReport, bn as AssertionLabelEvidence, br as GraderRerun, bt as ReplayInterrupt, c as SeedResult, ci as NO_MOCK_OVERRIDE, cn as VerdictOutcome, cr as ExperimentRunBy, ct as ReplayError, d as seedFromRegistry, di as BitfabError, dn as VerdictTarget, dr as ExperimentTotals, dt as ReplayItemFinishProgress, ei as TokenUsage, en as LabelUpdate, er as TracesClient, et as RivetIntegrationOptions, f as finalizers, fi as MixedTracingError, fn as VerdictUpdate, fr as ExperimentsClient, ft as ReplayItemStartProgress, g as Bitfab, gi as SUPPORTED_PROVIDERS, gn as AssertionGeneration, gr as Dataset, gt as ReplayResult, h as CommitRef, hi as DbSnapshotRef, hn as AssertionEvidenceParameter, hr as AddDatasetTracesResult, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as MockOverrideCtx, in as TraceVerdicts, ir as ExperimentJitter, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, jn as SaveScenarioParams, jr as SaveDatasetParams, jt as GetGraderVerdictsParams, k as SpanMethodDecorator, ki as JustificationSpan, kn as SaveScenarioData, kr as RerunGradersOptions, kt as BitfabLangGraphCallbackHandler, l as defineReplayRegistry, li as NodeMatcher, ln as VerdictSource, lr as ExperimentStatus, lt as ReplayExperiment, m as __version__, mi as DbSnapshotProvider, mn as ArchiveAssertionsParams, mr as AddDatasetGradersResult, mt as ReplayProgress, n as ReplayRegistration, ni as DbBranchTimings, nn as PassFailVerdict, nr as ExperimentCategoryTally, nt as AdaptContext, o as ReseedRegistryResult, oi as MockOverrideResolver, on as VerdictAction, or as ExperimentRollup, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as DbSnapshotConfig, pn as VerdictsClient, pr as ListExperimentsParams, pt as ReplayOptions, q as SpanListField, qn as TraceAssertionsResult, qr as SaveCategoryParams, qt as HumanVerdictUpdate, r as ReplayRegistry, ri as MockOverride, rn as TraceLabels, rr as ExperimentCodeChangeTotals, rt as AdaptInputsFn, s as SeedCase, si as MockValue, sn as VerdictConfidence, sr as ExperimentRollupResult, st as MockStrategy, t as ReplayOptionsFactory, ti as flushTraces, tn as LabelsClient, tr as Experiment, tt as ReplayBranch, u as reseedFromRegistry, ui as SpanNodeMeta, un as VerdictStatus, ur as ExperimentTally, ut as ReplayItem, v as BitfabFunction, vi as SelectiveReplayDecision, vn as AssertionGenerationStatus, vr as DatasetTraceIds, vt as reportReplayProgress, w as NodeOptions, wi as ApprovalFields, wn as GenerateAssertionsOptions, wr as GraderRerunStatus, wt as BitfabOpenAIAgentHandler, x as CurrentTrace, xi as AllowedEnvVars, xn as AssertionRewrite, xr as GraderRerunError, xt as ReplayInterruptSignal, y as CaptureWhen, yi as SelectiveReplayOptions, yn as AssertionGenerationTimeoutError, yr as DatasetsClient, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioDataSources, zr as BitfabClaudeAgentHandler, zt as GraderVerdictUpdate } from "./index-Dh8URnQo.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 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 TraceTargetOccurrence, $r as SpanType, $t as LabelTarget, A as SpanMethodDecoratorContext, An as SaveScenarioHistoryEntry, Ar as RerunGradersResult, At as GetGraderLabelsParams, B as getCurrentTrace, Bn as ScenarioHistoryEntry, Br as AssertionCategoriesClient, Bt as GradersClient, C as NodeMethodDecorator, Ci as ProviderDefinition, Cn as AssertionVerdictEvidence, Cr as GraderRerunResult, Ct as OrganizationMembersClient, D as SeedCaseOptions, Di as Assignee, Dn as SaveAssertionsParams, Dr as RemoveDatasetGradersResult, Dt as BitfabLangGraphIntegration, E as ReseedResult, Ei as Approver, En as SaveAssertionsAllParams, Er as ListDatasetsParams, Et as BitfabLangGraphAgent, F as WrapOpenAIResponsesOptions, Fn as ScenarioActualOutcome, Fr as BitfabVercelAiHandler, Ft as GraderLabelUpdate, G as TracingProcessor, Gn as TraceAssertion, Gr as CategorySummary, Gt as HumanLabelUpdate, H as ActiveSpanContext, Hn as ScenarioRecordInput, Hr as AssertionCategorySummary, Ht as ArchiveVerdictTarget, I as WrapOpenRouterOptions, In as ScenarioData, Ir as VercelCallParams, It as GraderVerdict, J as SpanListParams, Jn as TraceAssertionsUpdate, Jr as CapturedSpan, Jt as LabelAction, K as ListedSpan, Kn as TraceAssertionSource, Kr as SaveAssertionCategoryParams, Kt as HumanVerdictOutcome, L as WrappedBamlFn, Ln as ScenarioDataAppend, Lr as VercelGenerateResult, Lt as GraderVerdictOutcome, M as WrapAnthropicOptions, Mn as SavedTraceAssertion, Mr as SaveDatasetResult, Mt as GraderLabel, N as WrapBAMLOptions, Nn as Scenario, Nr as UpdateDatasetParams, Nt as GraderLabelOutcome, O as SeedRunOptions, Oi as Justification, On as SaveScenarioActualOutcome, Or as RemoveDatasetTracesResult, Ot as LangGraphIntegrationOptions, P as WrapJevOptions, Pn as ScenarioAction, Pr as BitfabLanguageModelMiddleware, Pt as GraderLabelSource, Q as RivetContextLike, Qn as TraceTarget, Qr as SpanOccurrence, Qt as LabelStatus, R as getCurrentReplayBranch, Rn as ScenarioDataOrigin, Rr as VercelStreamResult, Rt as GraderVerdictSource, S as DetachedTrace, Si as BamlExecutionResult, Sn as AssertionRewriteStatus, Sr as GraderRerunProgress, St as OrganizationMember, T as ReseedOptions, Ti as ApprovalState, Tn as SaveAssertion, Tr as GraderRerunTimeoutError, Tt as BitfabAgentMiddleware, U as BitfabOpenAITracingProcessor, Un as ScenarioSource, Ur as CategoriesClient, Ut as AssertionVerdict, V as CaptureSurface, Vn as ScenarioRecord, Vr as AssertionCategory, Vt as ArchiveLabelTarget, W as TraceResponse, Wn as ScenarioTrigger, Wr as Category, Wt as HumanLabelOutcome, X as SpansClient, Xn as TraceSearchParams, Xr as HttpClient, Xt as LabelOutcome, Y as SpanListResult, Yn as TraceSearchFilters, Yr as CodeChangeFile, Yt as LabelConfidence, Z as BitfabRivetIntegration, Zn as TraceSearchResult, Zr as SpanLookup, Zt as LabelSource, _ as BitfabConfig, _i as ReplayNodeIdentity, _n as AssertionGenerationError, _r as DatasetGraderRef, _t as TraceIngestionType, a as ReplayRegistryOptions, ai as MockOverrideInput, an as Verdict, ar as ExperimentPage, at as DbBranchOptions, b as CurrentSpan, bi as SelectiveReplayReport, bn as AssertionLabelEvidence, br as GraderRerun, bt as ReplayInterrupt, c as SeedResult, ci as NO_MOCK_OVERRIDE, cn as VerdictOutcome, cr as ExperimentRunBy, ct as ReplayError, d as seedFromRegistry, di as BitfabError, dn as VerdictTarget, dr as ExperimentTotals, dt as ReplayItemFinishProgress, ei as TokenUsage, en as LabelUpdate, er as TracesClient, et as RivetIntegrationOptions, f as finalizers, fi as MixedTracingError, fn as VerdictUpdate, fr as ExperimentsClient, ft as ReplayItemStartProgress, g as Bitfab, gi as SUPPORTED_PROVIDERS, gn as AssertionGeneration, gr as Dataset, gt as ReplayResult, h as CommitRef, hi as DbSnapshotRef, hn as AssertionEvidenceParameter, hr as AddDatasetTracesResult, ht as ReplayProgressItem, i as ReplayRegistryContext, ii as MockOverrideCtx, in as TraceVerdicts, ir as ExperimentJitter, it as BITFAB_PROGRESS_PREFIX, j as SpanOptions, jn as SaveScenarioParams, jr as SaveDatasetParams, jt as GetGraderVerdictsParams, k as SpanMethodDecorator, ki as JustificationSpan, kn as SaveScenarioData, kr as RerunGradersOptions, kt as BitfabLangGraphCallbackHandler, l as defineReplayRegistry, li as NodeMatcher, ln as VerdictSource, lr as ExperimentStatus, lt as ReplayExperiment, m as __version__, mi as DbSnapshotProvider, mn as ArchiveAssertionsParams, mr as AddDatasetGradersResult, mt as ReplayProgress, n as ReplayRegistration, ni as DbBranchTimings, nn as PassFailVerdict, nr as ExperimentCategoryTally, nt as AdaptContext, o as ReseedRegistryResult, oi as MockOverrideResolver, on as VerdictAction, or as ExperimentRollup, ot as DbBranchReplayError, p as DEFAULT_SERVICE_URL, pi as DbSnapshotConfig, pn as VerdictsClient, pr as ListExperimentsParams, pt as ReplayOptions, q as SpanListField, qn as TraceAssertionsResult, qr as SaveCategoryParams, qt as HumanVerdictUpdate, r as ReplayRegistry, ri as MockOverride, rn as TraceLabels, rr as ExperimentCodeChangeTotals, rt as AdaptInputsFn, s as SeedCase, si as MockValue, sn as VerdictConfidence, sr as ExperimentRollupResult, st as MockStrategy, t as ReplayOptionsFactory, ti as flushTraces, tn as LabelsClient, tr as Experiment, tt as ReplayBranch, u as reseedFromRegistry, ui as SpanNodeMeta, un as VerdictStatus, ur as ExperimentTally, ut as ReplayItem, v as BitfabFunction, vi as SelectiveReplayDecision, vn as AssertionGenerationStatus, vr as DatasetTraceIds, vt as reportReplayProgress, w as NodeOptions, wi as ApprovalFields, wn as GenerateAssertionsOptions, wr as GraderRerunStatus, wt as BitfabOpenAIAgentHandler, x as CurrentTrace, xi as AllowedEnvVars, xn as AssertionRewrite, xr as GraderRerunError, xt as ReplayInterruptSignal, y as CaptureWhen, yi as SelectiveReplayOptions, yn as AssertionGenerationTimeoutError, yr as DatasetsClient, yt as serializeReplayResult, z as getCurrentSpan, zn as ScenarioDataSources, zr as BitfabClaudeAgentHandler, zt as GraderVerdictUpdate } from "./index-Dh8URnQo.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 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-DQnxOnL9.js";
11
- import { S as MixedTracingError, i as flushTraces, t as HttpClient, w as __version__, x as BitfabError } from "./http-2mlGh9MD.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 };