bitfab 0.67.0 → 0.68.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/{autoTrace-CQw0qMBt.cjs → autoTrace-D3-OZcmR.cjs} +265 -4
  2. package/dist/autoTrace-D3-OZcmR.cjs.map +1 -0
  3. package/dist/{autoTrace-O40k8f5M.js → autoTrace-ghnojSj9.js} +230 -5
  4. package/dist/autoTrace-ghnojSj9.js.map +1 -0
  5. package/dist/autoTrace.cjs +4 -1
  6. package/dist/autoTrace.d.cts +36 -0
  7. package/dist/autoTrace.d.ts +36 -0
  8. package/dist/autoTrace.js +1 -1
  9. package/dist/{babelPlugin-ZR9ilYct.cjs → babelPlugin-0uOq-j1Q.cjs} +86 -2
  10. package/dist/babelPlugin-0uOq-j1Q.cjs.map +1 -0
  11. package/dist/{babelPlugin-CBjx6aJe.js → babelPlugin-Muq0uuuu.js} +86 -2
  12. package/dist/babelPlugin-Muq0uuuu.js.map +1 -0
  13. package/dist/{http-CcYPHER5.js → http-f8Rl8oRa.js} +3 -3
  14. package/dist/{http-CcYPHER5.js.map → http-f8Rl8oRa.js.map} +1 -1
  15. package/dist/{http-CxT_WDAh.cjs → http-r1r6injY.cjs} +3 -3
  16. package/dist/{http-CxT_WDAh.cjs.map → http-r1r6injY.cjs.map} +1 -1
  17. package/dist/{index-BFgtvRni.d.cts → index-BQV7zzJx.d.cts} +98 -2
  18. package/dist/{index-BFgtvRni.d.ts → index-BQV7zzJx.d.ts} +98 -2
  19. package/dist/index.cjs +2 -2
  20. package/dist/index.d.cts +2 -2
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +2 -2
  23. package/dist/node.cjs +3 -3
  24. package/dist/node.d.cts +2 -2
  25. package/dist/node.d.ts +2 -2
  26. package/dist/node.js +3 -3
  27. package/dist/registryCommand-Dk4Y1ZgW.js.map +1 -1
  28. package/dist/{src-DXmdXbOL.cjs → src-BYXxPnpE.cjs} +138 -8
  29. package/dist/src-BYXxPnpE.cjs.map +1 -0
  30. package/dist/{src-CFDoTgXw.js → src-Cps3Xs_J.js} +138 -8
  31. package/dist/src-Cps3Xs_J.js.map +1 -0
  32. package/dist/transform/babel.cjs +1 -1
  33. package/dist/transform/babel.d.cts +9 -0
  34. package/dist/transform/babel.d.ts +9 -0
  35. package/dist/transform/babel.js +1 -1
  36. package/dist/transform/loaderRuntime.cjs +2 -2
  37. package/dist/transform/loaderRuntime.js +2 -2
  38. package/dist/transform/nodeLoader.js +85 -1
  39. package/dist/transform/nodeLoader.js.map +1 -1
  40. package/dist/transform/swc.cjs +1 -1
  41. package/dist/transform/swc.js +1 -1
  42. package/dist/transform/unplugin.cjs +2 -2
  43. package/dist/transform/unplugin.js +2 -2
  44. package/dist/{transform-DP1qnD8u.js → transform-CAJyLLe2.js} +2 -2
  45. package/dist/{transform-DP1qnD8u.js.map → transform-CAJyLLe2.js.map} +1 -1
  46. package/dist/{transform-D_pSvPJc.cjs → transform-ClCOpCZ2.cjs} +2 -2
  47. package/dist/{transform-D_pSvPJc.cjs.map → transform-ClCOpCZ2.cjs.map} +1 -1
  48. package/package.json +3 -1
  49. package/dist/autoTrace-CQw0qMBt.cjs.map +0 -1
  50. package/dist/autoTrace-O40k8f5M.js.map +0 -1
  51. package/dist/babelPlugin-CBjx6aJe.js.map +0 -1
  52. package/dist/babelPlugin-ZR9ilYct.cjs.map +0 -1
  53. package/dist/src-CFDoTgXw.js.map +0 -1
  54. package/dist/src-DXmdXbOL.cjs.map +0 -1
@@ -3446,6 +3446,14 @@ type CaptureSurface = "opt-in" | "opt-out";
3446
3446
  /**
3447
3447
  * Options for wrapBAML.
3448
3448
  */
3449
+ interface WrapJevOptions<TReply> {
3450
+ /** Called after each Jev call with the reply, for the caller's own usage or cost reporting. */
3451
+ onReply?: (reply: TReply) => void;
3452
+ }
3453
+ interface WrapOpenRouterOptions<TResponse> {
3454
+ /** Called after each call with the chat completion, for the caller's own usage or cost reporting. */
3455
+ onResponse?: (response: TResponse) => void;
3456
+ }
3449
3457
  interface WrapBAMLOptions {
3450
3458
  /** Called after each BAML invocation with the Collector instance. */
3451
3459
  onCollector?: (collector: unknown) => void;
@@ -4115,6 +4123,69 @@ declare class Bitfab {
4115
4123
  * @returns An async function with the same signature that instruments the BAML call
4116
4124
  */
4117
4125
  wrapBAML<TArgs extends unknown[], TReturn>(methodOrClient: unknown, maybeMethodOrOptions?: ((...args: TArgs) => Promise<TReturn>) | WrapBAMLOptions, maybeOptions?: WrapBAMLOptions): WrappedBamlFn<TArgs, TReturn>;
4126
+ /**
4127
+ * Wrap a function that calls Jev (TypeSafe's System One model) to record the
4128
+ * call's model, provider, token usage, and duration.
4129
+ *
4130
+ * Like `wrapBAML`, it opens no span of its own. It writes into the span that
4131
+ * is current when the call starts, so call it inside a traced function. The
4132
+ * wrapped function must return Jev's reply (`{ model, answers, usage }`), as
4133
+ * `TypeSafeClient.systemOne` from `@typesafe-ai/sdk` does, or the JSON body of
4134
+ * a request you send yourself.
4135
+ *
4136
+ * Beneath a `withTrace()` root, each `.systemOne(...)` call in code compiled
4137
+ * by the build transform is recorded without this wrapper as its own `llm`
4138
+ * span, and a `wrapJev` around such a call records nothing more. `withNode`
4139
+ * on a wrapper named `systemOne` configures that span.
4140
+ *
4141
+ * ```typescript
4142
+ * const jev = new TypeSafeClient()
4143
+ * const askJev = client.wrapJev(jev.systemOne.bind(jev))
4144
+ * const { answers } = await askJev({ state, questions })
4145
+ * ```
4146
+ *
4147
+ * @param method - A named function that calls Jev and returns its reply
4148
+ * @param options - `onReply` is called with each reply after it is recorded
4149
+ * @returns An async function with the same signature that records each call
4150
+ */
4151
+ wrapJev<TArgs extends unknown[], TReply>(method: (...args: TArgs) => TReply | Promise<TReply>, options?: WrapJevOptions<TReply>): (...args: TArgs) => Promise<TReply>;
4152
+ /**
4153
+ * Wrap a function that sends a chat completion to OpenRouter to record the
4154
+ * call's prompt, model, token usage, the cost OpenRouter reports, and
4155
+ * duration.
4156
+ *
4157
+ * Like `wrapJev`, it opens no span of its own. It writes into the span that
4158
+ * is current when the call starts, so call it inside a traced function. The
4159
+ * wrapped function must return the chat completion, as
4160
+ * `openai.chat.completions.create` does. When its first argument is the
4161
+ * request, the request's messages become the span's prompt. One context
4162
+ * entry holds `provider` (`"openrouter"`), `model` (the model OpenRouter
4163
+ * routed to), `upstreamProvider`, `inputTokens`, `outputTokens`,
4164
+ * `cachedInputTokens`, `reasoningTokens`, `costUsd` (OpenRouter's
4165
+ * `usage.cost`), and `durationMs`; fields the response omits are left out.
4166
+ *
4167
+ * Beneath a `withTrace()` root, each `.chat.completions.create(...)` call in
4168
+ * code compiled by the build transform, on a client whose base URL is
4169
+ * `openrouter.ai`, is recorded without this wrapper as its own `llm` span,
4170
+ * and a `wrapOpenRouter` around such a call records nothing more. Streaming
4171
+ * calls (`stream: true`) are not recorded.
4172
+ *
4173
+ * ```typescript
4174
+ * const openai = new OpenAI({ baseURL: "https://openrouter.ai/api/v1", apiKey })
4175
+ * const complete = client.wrapOpenRouter(
4176
+ * openai.chat.completions.create.bind(openai.chat.completions),
4177
+ * )
4178
+ * const response = await complete({
4179
+ * model: "anthropic/claude-sonnet-4.5",
4180
+ * messages: [{ role: "user", content: text }],
4181
+ * })
4182
+ * ```
4183
+ *
4184
+ * @param method - A named function that sends the request and returns the chat completion
4185
+ * @param options - `onResponse` is called with each chat completion after it is recorded
4186
+ * @returns An async function with the same signature that records each call
4187
+ */
4188
+ wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4118
4189
  /**
4119
4190
  * Wrap a function to automatically create a span for its inputs and outputs.
4120
4191
  *
@@ -4495,6 +4566,31 @@ declare class BitfabFunction {
4495
4566
  * @returns An async function with the same signature that instruments the BAML call
4496
4567
  */
4497
4568
  wrapBAML<TArgs extends unknown[], TReturn>(methodOrClient: unknown, maybeMethodOrOptions?: ((...args: TArgs) => Promise<TReturn>) | WrapBAMLOptions, maybeOptions?: WrapBAMLOptions): WrappedBamlFn<TArgs, TReturn>;
4569
+ /**
4570
+ * Wrap a function that calls Jev to record the call's model, provider, token
4571
+ * usage, and duration. Delegates to the parent client's wrapJev method.
4572
+ *
4573
+ * Like `wrapBAML`, it does not use the bound key and opens no span of its
4574
+ * own: it writes into the span that is current when the call starts.
4575
+ *
4576
+ * @param method - A named function that calls Jev and returns its reply
4577
+ * @param options - `onReply` is called with each reply after it is recorded
4578
+ * @returns An async function with the same signature that records each call
4579
+ */
4580
+ wrapJev<TArgs extends unknown[], TReply>(method: (...args: TArgs) => TReply | Promise<TReply>, options?: WrapJevOptions<TReply>): (...args: TArgs) => Promise<TReply>;
4581
+ /**
4582
+ * Wrap a function that sends a chat completion to OpenRouter to record the
4583
+ * call's prompt, model, token usage, cost, and duration. Delegates to the
4584
+ * parent client's wrapOpenRouter method.
4585
+ *
4586
+ * Like `wrapJev`, it does not use the bound key and opens no span of its
4587
+ * own: it writes into the span that is current when the call starts.
4588
+ *
4589
+ * @param method - A named function that sends the request and returns the chat completion
4590
+ * @param options - `onResponse` is called with each chat completion after it is recorded
4591
+ * @returns An async function with the same signature that records each call
4592
+ */
4593
+ wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4498
4594
  }
4499
4595
  //#endregion
4500
4596
  //#region src/commitRef.d.ts
@@ -4515,7 +4611,7 @@ interface CommitRef {
4515
4611
  /**
4516
4612
  * SDK version from package.json (injected at build time)
4517
4613
  */
4518
- declare const __version__ = "0.67.0";
4614
+ declare const __version__ = "0.68.1";
4519
4615
  //#endregion
4520
4616
  //#region src/constants.d.ts
4521
4617
  /**
@@ -4657,4 +4753,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
4657
4753
  run?: boolean;
4658
4754
  }): Promise<SeedResult>;
4659
4755
  //#endregion
4660
- export { AdaptInputsFn as $, ExperimentRunBy as $n, NO_MOCK_OVERRIDE as $r, Verdict as $t, SpanMethodDecoratorContext as A, ScenarioData as An, BitfabClaudeAgentHandler as Ar, GraderVerdict as At, TraceResponse as B, TraceSearchFilters as Bn, CodeChangeFile as Br, HumanVerdictOutcome as Bt, NodeMethodDecorator as C, SaveScenarioData as Cn, SaveDatasetResult as Cr, BitfabLangGraphCallbackHandler as Ct, SeedCaseOptions as D, Scenario as Dn, VercelCallParams as Dr, GraderLabelOutcome as Dt, ReseedResult as E, SavedTraceAssertion as En, BitfabVercelAiHandler as Er, GraderLabel as Et, getCurrentSpan as F, ScenarioTrigger as Fn, Category as Fr, ArchiveLabelTarget as Ft, SpanListResult as G, TracesClient as Gn, TokenUsage as Gr, LabelSource as Gt, ListedSpan as H, TraceSearchResult as Hn, SpanLookup as Hr, LabelAction as Ht, getCurrentTrace as I, TraceAssertion as In, CategorySummary as Ir, ArchiveVerdictTarget as It, RivetContextLike as J, ExperimentCodeChangeTotals as Jn, MockOverride as Jr, LabelUpdate as Jt, SpansClient as K, Experiment as Kn, flushTraces as Kr, LabelStatus as Kt, CaptureSurface as L, TraceAssertionSource as Ln, SaveAssertionCategoryParams as Lr, AssertionVerdict as Lt, WrapBAMLOptions as M, ScenarioDataOrigin as Mn, AssertionCategory as Mr, GraderVerdictSource as Mt, WrappedBamlFn as N, ScenarioHistoryEntry as Nn, AssertionCategorySummary as Nr, GraderVerdictUpdate as Nt, SeedRunOptions as O, ScenarioAction as On, VercelGenerateResult as Or, GraderLabelSource as Ot, getCurrentReplayBranch as P, ScenarioSource as Pn, CategoriesClient as Pr, GradersClient as Pt, AdaptContext as Q, ExperimentRollupResult as Qn, MockValue as Qr, TraceVerdicts as Qt, ActiveSpanContext as R, TraceAssertionsResult as Rn, SaveCategoryParams as Rr, HumanLabelOutcome as Rt, DetachedTrace as S, SaveScenarioActualOutcome as Sn, SaveDatasetParams as Sr, LangGraphIntegrationOptions as St, ReseedOptions as T, SaveScenarioParams as Tn, BitfabLanguageModelMiddleware as Tr, GetGraderVerdictsParams as Tt, SpanListField as U, TraceTarget as Un, SpanOccurrence as Ur, LabelConfidence as Ut, TracingProcessor as V, TraceSearchParams as Vn, HttpClient as Vr, HumanVerdictUpdate as Vt, SpanListParams as W, TraceTargetOccurrence as Wn, SpanType as Wr, LabelOutcome as Wt, RivetIntegrationOptions as X, ExperimentPage as Xn, MockOverrideInput as Xr, PassFailVerdict as Xt, RivetEffectType as Y, ExperimentJitter as Yn, MockOverrideCtx as Yr, LabelsClient as Yt, ReplayBranch as Z, ExperimentRollup as Zn, MockOverrideResolver as Zr, TraceLabels as Zt, BitfabConfig as _, Approver as _i, AssertionVerdictEvidence as _n, ListDatasetsParams as _r, ReplayInterruptSignal as _t, ReplayRegistryOptions as a, DbSnapshotProvider as ai, VerdictTarget as an, AddDatasetGradersResult as ar, ReplayExperiment as at, CurrentSpan as b, JustificationSpan as bi, SaveAssertionsAllParams as bn, RerunGradersOptions as br, BitfabOpenAIAgentHandler as bt, SeedResult as c, ReplayNodeIdentity as ci, ArchiveAssertionsParams as cn, DatasetGraderRef as cr, ReplayItemStartProgress as ct, seedFromRegistry as d, SelectiveReplayReport as di, AssertionGenerationError as dn, GraderRerun as dr, ReplayProgressItem as dt, NodeMatcher as ei, VerdictAction as en, ExperimentStatus as er, BITFAB_PROGRESS_PREFIX as et, finalizers as f, AllowedEnvVars as fi, AssertionGenerationStatus as fn, GraderRerunError as fr, ReplayResult as ft, Bitfab as g, ApprovalState as gi, AssertionRewriteStatus as gn, GraderRerunTimeoutError as gr, ReplayInterrupt as gt, CommitRef as h, ApprovalFields as hi, AssertionRewrite as hn, GraderRerunStatus as hr, serializeReplayResult as ht, ReplayRegistryContext as i, DbSnapshotConfig as ii, VerdictStatus as in, ListExperimentsParams as ir, ReplayError as it, SpanOptions as j, ScenarioDataAppend as jn, AssertionCategoriesClient as jr, GraderVerdictOutcome as jt, SpanMethodDecorator as k, ScenarioActualOutcome as kn, VercelStreamResult as kr, GraderLabelUpdate as kt, defineReplayRegistry as l, SelectiveReplayDecision as li, AssertionEvidenceParameter as ln, DatasetTraceIds as lr, ReplayOptions as lt, __version__ as m, ProviderDefinition as mi, AssertionLabelEvidence as mn, GraderRerunResult as mr, reportReplayProgress as mt, ReplayRegistration as n, BitfabError as ni, VerdictOutcome as nn, ExperimentTotals as nr, DbBranchReplayError as nt, ReseedRegistryResult as o, DbSnapshotRef as oi, VerdictUpdate as on, AddDatasetTracesResult as or, ReplayItem as ot, DEFAULT_SERVICE_URL as p, BamlExecutionResult as pi, AssertionGenerationTimeoutError as pn, GraderRerunProgress as pr, TraceIngestionType as pt, BitfabRivetIntegration as q, ExperimentCategoryTally as qn, DbBranchTimings as qr, LabelTarget as qt, ReplayRegistry as r, MixedTracingError as ri, VerdictSource as rn, ExperimentsClient as rr, MockStrategy as rt, SeedCase as s, SUPPORTED_PROVIDERS as si, VerdictsClient as sn, Dataset as sr, ReplayItemFinishProgress as st, ReplayOptionsFactory as t, SpanNodeMeta as ti, VerdictConfidence as tn, ExperimentTally as tr, DbBranchOptions as tt, reseedFromRegistry as u, SelectiveReplayOptions as ui, AssertionGeneration as un, DatasetsClient as ur, ReplayProgress as ut, BitfabFunction as v, Assignee as vi, GenerateAssertionsOptions as vn, RemoveDatasetGradersResult as vr, OrganizationMember as vt, NodeOptions as w, SaveScenarioHistoryEntry as wn, UpdateDatasetParams as wr, GetGraderLabelsParams as wt, CurrentTrace as x, SaveAssertionsParams as xn, RerunGradersResult as xr, BitfabLangGraphIntegration as xt, CaptureWhen as y, Justification as yi, SaveAssertion as yn, RemoveDatasetTracesResult as yr, OrganizationMembersClient as yt, BitfabOpenAITracingProcessor as z, TraceAssertionsUpdate as zn, CapturedSpan as zr, HumanLabelUpdate as zt };
4756
+ export { ReplayBranch as $, ExperimentRollup as $n, MockOverrideResolver as $r, TraceLabels as $t, SpanMethodDecoratorContext as A, ScenarioAction as An, VercelGenerateResult as Ar, GraderLabelSource as At, ActiveSpanContext as B, TraceAssertionsResult as Bn, SaveCategoryParams as Br, HumanLabelOutcome as Bt, NodeMethodDecorator as C, SaveAssertionsParams as Cn, RerunGradersResult as Cr, BitfabLangGraphIntegration as Ct, SeedCaseOptions as D, SaveScenarioParams as Dn, BitfabLanguageModelMiddleware as Dr, GetGraderVerdictsParams as Dt, ReseedResult as E, SaveScenarioHistoryEntry as En, UpdateDatasetParams as Er, GetGraderLabelsParams as Et, WrappedBamlFn as F, ScenarioHistoryEntry as Fn, AssertionCategorySummary as Fr, GraderVerdictUpdate as Ft, SpanListField as G, TraceTarget as Gn, SpanOccurrence as Gr, LabelConfidence as Gt, TraceResponse as H, TraceSearchFilters as Hn, CodeChangeFile as Hr, HumanVerdictOutcome as Ht, getCurrentReplayBranch as I, ScenarioSource as In, CategoriesClient as Ir, GradersClient as It, SpansClient as J, Experiment as Jn, flushTraces as Jr, LabelStatus as Jt, SpanListParams as K, TraceTargetOccurrence as Kn, SpanType as Kr, LabelOutcome as Kt, getCurrentSpan as L, ScenarioTrigger as Ln, Category as Lr, ArchiveLabelTarget as Lt, WrapBAMLOptions as M, ScenarioData as Mn, BitfabClaudeAgentHandler as Mr, GraderVerdict as Mt, WrapJevOptions as N, ScenarioDataAppend as Nn, AssertionCategoriesClient as Nr, GraderVerdictOutcome as Nt, SeedRunOptions as O, SavedTraceAssertion as On, BitfabVercelAiHandler as Or, GraderLabel as Ot, WrapOpenRouterOptions as P, ScenarioDataOrigin as Pn, AssertionCategory as Pr, GraderVerdictSource as Pt, RivetIntegrationOptions as Q, ExperimentPage as Qn, MockOverrideInput as Qr, PassFailVerdict as Qt, getCurrentTrace as R, TraceAssertion as Rn, CategorySummary as Rr, ArchiveVerdictTarget as Rt, DetachedTrace as S, JustificationSpan as Si, SaveAssertionsAllParams as Sn, RerunGradersOptions as Sr, BitfabOpenAIAgentHandler as St, ReseedOptions as T, SaveScenarioData as Tn, SaveDatasetResult as Tr, BitfabLangGraphCallbackHandler as Tt, TracingProcessor as U, TraceSearchParams as Un, HttpClient as Ur, HumanVerdictUpdate as Ut, BitfabOpenAITracingProcessor as V, TraceAssertionsUpdate as Vn, CapturedSpan as Vr, HumanLabelUpdate as Vt, ListedSpan as W, TraceSearchResult as Wn, SpanLookup as Wr, LabelAction as Wt, RivetContextLike as X, ExperimentCodeChangeTotals as Xn, MockOverride as Xr, LabelUpdate as Xt, BitfabRivetIntegration as Y, ExperimentCategoryTally as Yn, DbBranchTimings as Yr, LabelTarget as Yt, RivetEffectType as Z, ExperimentJitter as Zn, MockOverrideCtx as Zr, LabelsClient as Zt, BitfabConfig as _, ApprovalFields as _i, AssertionRewrite as _n, GraderRerunStatus as _r, serializeReplayResult as _t, ReplayRegistryOptions as a, MixedTracingError as ai, VerdictSource as an, ExperimentsClient as ar, MockStrategy as at, CurrentSpan as b, Assignee as bi, GenerateAssertionsOptions as bn, RemoveDatasetGradersResult as br, OrganizationMember as bt, SeedResult as c, DbSnapshotRef as ci, VerdictUpdate as cn, AddDatasetTracesResult as cr, ReplayItem as ct, seedFromRegistry as d, SelectiveReplayDecision as di, AssertionEvidenceParameter as dn, DatasetTraceIds as dr, ReplayOptions as dt, MockValue as ei, TraceVerdicts as en, ExperimentRollupResult as er, AdaptContext as et, finalizers as f, SelectiveReplayOptions as fi, AssertionGeneration as fn, DatasetsClient as fr, ReplayProgress as ft, Bitfab as g, ProviderDefinition as gi, AssertionLabelEvidence as gn, GraderRerunResult as gr, reportReplayProgress as gt, CommitRef as h, BamlExecutionResult as hi, AssertionGenerationTimeoutError as hn, GraderRerunProgress as hr, TraceIngestionType as ht, ReplayRegistryContext as i, BitfabError as ii, VerdictOutcome as in, ExperimentTotals as ir, DbBranchReplayError as it, SpanOptions as j, ScenarioActualOutcome as jn, VercelStreamResult as jr, GraderLabelUpdate as jt, SpanMethodDecorator as k, Scenario as kn, VercelCallParams as kr, GraderLabelOutcome as kt, defineReplayRegistry as l, SUPPORTED_PROVIDERS as li, VerdictsClient as ln, Dataset as lr, ReplayItemFinishProgress as lt, __version__ as m, AllowedEnvVars as mi, AssertionGenerationStatus as mn, GraderRerunError as mr, ReplayResult as mt, ReplayRegistration as n, NodeMatcher as ni, VerdictAction as nn, ExperimentStatus as nr, BITFAB_PROGRESS_PREFIX as nt, ReseedRegistryResult as o, DbSnapshotConfig as oi, VerdictStatus as on, ListExperimentsParams as or, ReplayError as ot, DEFAULT_SERVICE_URL as p, SelectiveReplayReport as pi, AssertionGenerationError as pn, GraderRerun as pr, ReplayProgressItem as pt, SpanListResult as q, TracesClient as qn, TokenUsage as qr, LabelSource as qt, ReplayRegistry as r, SpanNodeMeta as ri, VerdictConfidence as rn, ExperimentTally as rr, DbBranchOptions as rt, SeedCase as s, DbSnapshotProvider as si, VerdictTarget as sn, AddDatasetGradersResult as sr, ReplayExperiment as st, ReplayOptionsFactory as t, NO_MOCK_OVERRIDE as ti, Verdict as tn, ExperimentRunBy as tr, AdaptInputsFn as tt, reseedFromRegistry as u, ReplayNodeIdentity as ui, ArchiveAssertionsParams as un, DatasetGraderRef as ur, ReplayItemStartProgress as ut, BitfabFunction as v, ApprovalState as vi, AssertionRewriteStatus as vn, GraderRerunTimeoutError as vr, ReplayInterrupt as vt, NodeOptions as w, SaveScenarioActualOutcome as wn, SaveDatasetParams as wr, LangGraphIntegrationOptions as wt, CurrentTrace as x, Justification as xi, SaveAssertion as xn, RemoveDatasetTracesResult as xr, OrganizationMembersClient as xt, CaptureWhen as y, Approver as yi, AssertionVerdictEvidence as yn, ListDatasetsParams as yr, ReplayInterruptSignal as yt, CaptureSurface as z, TraceAssertionSource as zn, SaveAssertionCategoryParams as zr, AssertionVerdict as zt };
@@ -3446,6 +3446,14 @@ type CaptureSurface = "opt-in" | "opt-out";
3446
3446
  /**
3447
3447
  * Options for wrapBAML.
3448
3448
  */
3449
+ interface WrapJevOptions<TReply> {
3450
+ /** Called after each Jev call with the reply, for the caller's own usage or cost reporting. */
3451
+ onReply?: (reply: TReply) => void;
3452
+ }
3453
+ interface WrapOpenRouterOptions<TResponse> {
3454
+ /** Called after each call with the chat completion, for the caller's own usage or cost reporting. */
3455
+ onResponse?: (response: TResponse) => void;
3456
+ }
3449
3457
  interface WrapBAMLOptions {
3450
3458
  /** Called after each BAML invocation with the Collector instance. */
3451
3459
  onCollector?: (collector: unknown) => void;
@@ -4115,6 +4123,69 @@ declare class Bitfab {
4115
4123
  * @returns An async function with the same signature that instruments the BAML call
4116
4124
  */
4117
4125
  wrapBAML<TArgs extends unknown[], TReturn>(methodOrClient: unknown, maybeMethodOrOptions?: ((...args: TArgs) => Promise<TReturn>) | WrapBAMLOptions, maybeOptions?: WrapBAMLOptions): WrappedBamlFn<TArgs, TReturn>;
4126
+ /**
4127
+ * Wrap a function that calls Jev (TypeSafe's System One model) to record the
4128
+ * call's model, provider, token usage, and duration.
4129
+ *
4130
+ * Like `wrapBAML`, it opens no span of its own. It writes into the span that
4131
+ * is current when the call starts, so call it inside a traced function. The
4132
+ * wrapped function must return Jev's reply (`{ model, answers, usage }`), as
4133
+ * `TypeSafeClient.systemOne` from `@typesafe-ai/sdk` does, or the JSON body of
4134
+ * a request you send yourself.
4135
+ *
4136
+ * Beneath a `withTrace()` root, each `.systemOne(...)` call in code compiled
4137
+ * by the build transform is recorded without this wrapper as its own `llm`
4138
+ * span, and a `wrapJev` around such a call records nothing more. `withNode`
4139
+ * on a wrapper named `systemOne` configures that span.
4140
+ *
4141
+ * ```typescript
4142
+ * const jev = new TypeSafeClient()
4143
+ * const askJev = client.wrapJev(jev.systemOne.bind(jev))
4144
+ * const { answers } = await askJev({ state, questions })
4145
+ * ```
4146
+ *
4147
+ * @param method - A named function that calls Jev and returns its reply
4148
+ * @param options - `onReply` is called with each reply after it is recorded
4149
+ * @returns An async function with the same signature that records each call
4150
+ */
4151
+ wrapJev<TArgs extends unknown[], TReply>(method: (...args: TArgs) => TReply | Promise<TReply>, options?: WrapJevOptions<TReply>): (...args: TArgs) => Promise<TReply>;
4152
+ /**
4153
+ * Wrap a function that sends a chat completion to OpenRouter to record the
4154
+ * call's prompt, model, token usage, the cost OpenRouter reports, and
4155
+ * duration.
4156
+ *
4157
+ * Like `wrapJev`, it opens no span of its own. It writes into the span that
4158
+ * is current when the call starts, so call it inside a traced function. The
4159
+ * wrapped function must return the chat completion, as
4160
+ * `openai.chat.completions.create` does. When its first argument is the
4161
+ * request, the request's messages become the span's prompt. One context
4162
+ * entry holds `provider` (`"openrouter"`), `model` (the model OpenRouter
4163
+ * routed to), `upstreamProvider`, `inputTokens`, `outputTokens`,
4164
+ * `cachedInputTokens`, `reasoningTokens`, `costUsd` (OpenRouter's
4165
+ * `usage.cost`), and `durationMs`; fields the response omits are left out.
4166
+ *
4167
+ * Beneath a `withTrace()` root, each `.chat.completions.create(...)` call in
4168
+ * code compiled by the build transform, on a client whose base URL is
4169
+ * `openrouter.ai`, is recorded without this wrapper as its own `llm` span,
4170
+ * and a `wrapOpenRouter` around such a call records nothing more. Streaming
4171
+ * calls (`stream: true`) are not recorded.
4172
+ *
4173
+ * ```typescript
4174
+ * const openai = new OpenAI({ baseURL: "https://openrouter.ai/api/v1", apiKey })
4175
+ * const complete = client.wrapOpenRouter(
4176
+ * openai.chat.completions.create.bind(openai.chat.completions),
4177
+ * )
4178
+ * const response = await complete({
4179
+ * model: "anthropic/claude-sonnet-4.5",
4180
+ * messages: [{ role: "user", content: text }],
4181
+ * })
4182
+ * ```
4183
+ *
4184
+ * @param method - A named function that sends the request and returns the chat completion
4185
+ * @param options - `onResponse` is called with each chat completion after it is recorded
4186
+ * @returns An async function with the same signature that records each call
4187
+ */
4188
+ wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4118
4189
  /**
4119
4190
  * Wrap a function to automatically create a span for its inputs and outputs.
4120
4191
  *
@@ -4495,6 +4566,31 @@ declare class BitfabFunction {
4495
4566
  * @returns An async function with the same signature that instruments the BAML call
4496
4567
  */
4497
4568
  wrapBAML<TArgs extends unknown[], TReturn>(methodOrClient: unknown, maybeMethodOrOptions?: ((...args: TArgs) => Promise<TReturn>) | WrapBAMLOptions, maybeOptions?: WrapBAMLOptions): WrappedBamlFn<TArgs, TReturn>;
4569
+ /**
4570
+ * Wrap a function that calls Jev to record the call's model, provider, token
4571
+ * usage, and duration. Delegates to the parent client's wrapJev method.
4572
+ *
4573
+ * Like `wrapBAML`, it does not use the bound key and opens no span of its
4574
+ * own: it writes into the span that is current when the call starts.
4575
+ *
4576
+ * @param method - A named function that calls Jev and returns its reply
4577
+ * @param options - `onReply` is called with each reply after it is recorded
4578
+ * @returns An async function with the same signature that records each call
4579
+ */
4580
+ wrapJev<TArgs extends unknown[], TReply>(method: (...args: TArgs) => TReply | Promise<TReply>, options?: WrapJevOptions<TReply>): (...args: TArgs) => Promise<TReply>;
4581
+ /**
4582
+ * Wrap a function that sends a chat completion to OpenRouter to record the
4583
+ * call's prompt, model, token usage, cost, and duration. Delegates to the
4584
+ * parent client's wrapOpenRouter method.
4585
+ *
4586
+ * Like `wrapJev`, it does not use the bound key and opens no span of its
4587
+ * own: it writes into the span that is current when the call starts.
4588
+ *
4589
+ * @param method - A named function that sends the request and returns the chat completion
4590
+ * @param options - `onResponse` is called with each chat completion after it is recorded
4591
+ * @returns An async function with the same signature that records each call
4592
+ */
4593
+ wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4498
4594
  }
4499
4595
  //#endregion
4500
4596
  //#region src/commitRef.d.ts
@@ -4515,7 +4611,7 @@ interface CommitRef {
4515
4611
  /**
4516
4612
  * SDK version from package.json (injected at build time)
4517
4613
  */
4518
- declare const __version__ = "0.67.0";
4614
+ declare const __version__ = "0.68.1";
4519
4615
  //#endregion
4520
4616
  //#region src/constants.d.ts
4521
4617
  /**
@@ -4657,4 +4753,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
4657
4753
  run?: boolean;
4658
4754
  }): Promise<SeedResult>;
4659
4755
  //#endregion
4660
- export { AdaptInputsFn as $, ExperimentRunBy as $n, NO_MOCK_OVERRIDE as $r, Verdict as $t, SpanMethodDecoratorContext as A, ScenarioData as An, BitfabClaudeAgentHandler as Ar, GraderVerdict as At, TraceResponse as B, TraceSearchFilters as Bn, CodeChangeFile as Br, HumanVerdictOutcome as Bt, NodeMethodDecorator as C, SaveScenarioData as Cn, SaveDatasetResult as Cr, BitfabLangGraphCallbackHandler as Ct, SeedCaseOptions as D, Scenario as Dn, VercelCallParams as Dr, GraderLabelOutcome as Dt, ReseedResult as E, SavedTraceAssertion as En, BitfabVercelAiHandler as Er, GraderLabel as Et, getCurrentSpan as F, ScenarioTrigger as Fn, Category as Fr, ArchiveLabelTarget as Ft, SpanListResult as G, TracesClient as Gn, TokenUsage as Gr, LabelSource as Gt, ListedSpan as H, TraceSearchResult as Hn, SpanLookup as Hr, LabelAction as Ht, getCurrentTrace as I, TraceAssertion as In, CategorySummary as Ir, ArchiveVerdictTarget as It, RivetContextLike as J, ExperimentCodeChangeTotals as Jn, MockOverride as Jr, LabelUpdate as Jt, SpansClient as K, Experiment as Kn, flushTraces as Kr, LabelStatus as Kt, CaptureSurface as L, TraceAssertionSource as Ln, SaveAssertionCategoryParams as Lr, AssertionVerdict as Lt, WrapBAMLOptions as M, ScenarioDataOrigin as Mn, AssertionCategory as Mr, GraderVerdictSource as Mt, WrappedBamlFn as N, ScenarioHistoryEntry as Nn, AssertionCategorySummary as Nr, GraderVerdictUpdate as Nt, SeedRunOptions as O, ScenarioAction as On, VercelGenerateResult as Or, GraderLabelSource as Ot, getCurrentReplayBranch as P, ScenarioSource as Pn, CategoriesClient as Pr, GradersClient as Pt, AdaptContext as Q, ExperimentRollupResult as Qn, MockValue as Qr, TraceVerdicts as Qt, ActiveSpanContext as R, TraceAssertionsResult as Rn, SaveCategoryParams as Rr, HumanLabelOutcome as Rt, DetachedTrace as S, SaveScenarioActualOutcome as Sn, SaveDatasetParams as Sr, LangGraphIntegrationOptions as St, ReseedOptions as T, SaveScenarioParams as Tn, BitfabLanguageModelMiddleware as Tr, GetGraderVerdictsParams as Tt, SpanListField as U, TraceTarget as Un, SpanOccurrence as Ur, LabelConfidence as Ut, TracingProcessor as V, TraceSearchParams as Vn, HttpClient as Vr, HumanVerdictUpdate as Vt, SpanListParams as W, TraceTargetOccurrence as Wn, SpanType as Wr, LabelOutcome as Wt, RivetIntegrationOptions as X, ExperimentPage as Xn, MockOverrideInput as Xr, PassFailVerdict as Xt, RivetEffectType as Y, ExperimentJitter as Yn, MockOverrideCtx as Yr, LabelsClient as Yt, ReplayBranch as Z, ExperimentRollup as Zn, MockOverrideResolver as Zr, TraceLabels as Zt, BitfabConfig as _, Approver as _i, AssertionVerdictEvidence as _n, ListDatasetsParams as _r, ReplayInterruptSignal as _t, ReplayRegistryOptions as a, DbSnapshotProvider as ai, VerdictTarget as an, AddDatasetGradersResult as ar, ReplayExperiment as at, CurrentSpan as b, JustificationSpan as bi, SaveAssertionsAllParams as bn, RerunGradersOptions as br, BitfabOpenAIAgentHandler as bt, SeedResult as c, ReplayNodeIdentity as ci, ArchiveAssertionsParams as cn, DatasetGraderRef as cr, ReplayItemStartProgress as ct, seedFromRegistry as d, SelectiveReplayReport as di, AssertionGenerationError as dn, GraderRerun as dr, ReplayProgressItem as dt, NodeMatcher as ei, VerdictAction as en, ExperimentStatus as er, BITFAB_PROGRESS_PREFIX as et, finalizers as f, AllowedEnvVars as fi, AssertionGenerationStatus as fn, GraderRerunError as fr, ReplayResult as ft, Bitfab as g, ApprovalState as gi, AssertionRewriteStatus as gn, GraderRerunTimeoutError as gr, ReplayInterrupt as gt, CommitRef as h, ApprovalFields as hi, AssertionRewrite as hn, GraderRerunStatus as hr, serializeReplayResult as ht, ReplayRegistryContext as i, DbSnapshotConfig as ii, VerdictStatus as in, ListExperimentsParams as ir, ReplayError as it, SpanOptions as j, ScenarioDataAppend as jn, AssertionCategoriesClient as jr, GraderVerdictOutcome as jt, SpanMethodDecorator as k, ScenarioActualOutcome as kn, VercelStreamResult as kr, GraderLabelUpdate as kt, defineReplayRegistry as l, SelectiveReplayDecision as li, AssertionEvidenceParameter as ln, DatasetTraceIds as lr, ReplayOptions as lt, __version__ as m, ProviderDefinition as mi, AssertionLabelEvidence as mn, GraderRerunResult as mr, reportReplayProgress as mt, ReplayRegistration as n, BitfabError as ni, VerdictOutcome as nn, ExperimentTotals as nr, DbBranchReplayError as nt, ReseedRegistryResult as o, DbSnapshotRef as oi, VerdictUpdate as on, AddDatasetTracesResult as or, ReplayItem as ot, DEFAULT_SERVICE_URL as p, BamlExecutionResult as pi, AssertionGenerationTimeoutError as pn, GraderRerunProgress as pr, TraceIngestionType as pt, BitfabRivetIntegration as q, ExperimentCategoryTally as qn, DbBranchTimings as qr, LabelTarget as qt, ReplayRegistry as r, MixedTracingError as ri, VerdictSource as rn, ExperimentsClient as rr, MockStrategy as rt, SeedCase as s, SUPPORTED_PROVIDERS as si, VerdictsClient as sn, Dataset as sr, ReplayItemFinishProgress as st, ReplayOptionsFactory as t, SpanNodeMeta as ti, VerdictConfidence as tn, ExperimentTally as tr, DbBranchOptions as tt, reseedFromRegistry as u, SelectiveReplayOptions as ui, AssertionGeneration as un, DatasetsClient as ur, ReplayProgress as ut, BitfabFunction as v, Assignee as vi, GenerateAssertionsOptions as vn, RemoveDatasetGradersResult as vr, OrganizationMember as vt, NodeOptions as w, SaveScenarioHistoryEntry as wn, UpdateDatasetParams as wr, GetGraderLabelsParams as wt, CurrentTrace as x, SaveAssertionsParams as xn, RerunGradersResult as xr, BitfabLangGraphIntegration as xt, CaptureWhen as y, Justification as yi, SaveAssertion as yn, RemoveDatasetTracesResult as yr, OrganizationMembersClient as yt, BitfabOpenAITracingProcessor as z, TraceAssertionsUpdate as zn, CapturedSpan as zr, HumanLabelUpdate as zt };
4756
+ export { ReplayBranch as $, ExperimentRollup as $n, MockOverrideResolver as $r, TraceLabels as $t, SpanMethodDecoratorContext as A, ScenarioAction as An, VercelGenerateResult as Ar, GraderLabelSource as At, ActiveSpanContext as B, TraceAssertionsResult as Bn, SaveCategoryParams as Br, HumanLabelOutcome as Bt, NodeMethodDecorator as C, SaveAssertionsParams as Cn, RerunGradersResult as Cr, BitfabLangGraphIntegration as Ct, SeedCaseOptions as D, SaveScenarioParams as Dn, BitfabLanguageModelMiddleware as Dr, GetGraderVerdictsParams as Dt, ReseedResult as E, SaveScenarioHistoryEntry as En, UpdateDatasetParams as Er, GetGraderLabelsParams as Et, WrappedBamlFn as F, ScenarioHistoryEntry as Fn, AssertionCategorySummary as Fr, GraderVerdictUpdate as Ft, SpanListField as G, TraceTarget as Gn, SpanOccurrence as Gr, LabelConfidence as Gt, TraceResponse as H, TraceSearchFilters as Hn, CodeChangeFile as Hr, HumanVerdictOutcome as Ht, getCurrentReplayBranch as I, ScenarioSource as In, CategoriesClient as Ir, GradersClient as It, SpansClient as J, Experiment as Jn, flushTraces as Jr, LabelStatus as Jt, SpanListParams as K, TraceTargetOccurrence as Kn, SpanType as Kr, LabelOutcome as Kt, getCurrentSpan as L, ScenarioTrigger as Ln, Category as Lr, ArchiveLabelTarget as Lt, WrapBAMLOptions as M, ScenarioData as Mn, BitfabClaudeAgentHandler as Mr, GraderVerdict as Mt, WrapJevOptions as N, ScenarioDataAppend as Nn, AssertionCategoriesClient as Nr, GraderVerdictOutcome as Nt, SeedRunOptions as O, SavedTraceAssertion as On, BitfabVercelAiHandler as Or, GraderLabel as Ot, WrapOpenRouterOptions as P, ScenarioDataOrigin as Pn, AssertionCategory as Pr, GraderVerdictSource as Pt, RivetIntegrationOptions as Q, ExperimentPage as Qn, MockOverrideInput as Qr, PassFailVerdict as Qt, getCurrentTrace as R, TraceAssertion as Rn, CategorySummary as Rr, ArchiveVerdictTarget as Rt, DetachedTrace as S, JustificationSpan as Si, SaveAssertionsAllParams as Sn, RerunGradersOptions as Sr, BitfabOpenAIAgentHandler as St, ReseedOptions as T, SaveScenarioData as Tn, SaveDatasetResult as Tr, BitfabLangGraphCallbackHandler as Tt, TracingProcessor as U, TraceSearchParams as Un, HttpClient as Ur, HumanVerdictUpdate as Ut, BitfabOpenAITracingProcessor as V, TraceAssertionsUpdate as Vn, CapturedSpan as Vr, HumanLabelUpdate as Vt, ListedSpan as W, TraceSearchResult as Wn, SpanLookup as Wr, LabelAction as Wt, RivetContextLike as X, ExperimentCodeChangeTotals as Xn, MockOverride as Xr, LabelUpdate as Xt, BitfabRivetIntegration as Y, ExperimentCategoryTally as Yn, DbBranchTimings as Yr, LabelTarget as Yt, RivetEffectType as Z, ExperimentJitter as Zn, MockOverrideCtx as Zr, LabelsClient as Zt, BitfabConfig as _, ApprovalFields as _i, AssertionRewrite as _n, GraderRerunStatus as _r, serializeReplayResult as _t, ReplayRegistryOptions as a, MixedTracingError as ai, VerdictSource as an, ExperimentsClient as ar, MockStrategy as at, CurrentSpan as b, Assignee as bi, GenerateAssertionsOptions as bn, RemoveDatasetGradersResult as br, OrganizationMember as bt, SeedResult as c, DbSnapshotRef as ci, VerdictUpdate as cn, AddDatasetTracesResult as cr, ReplayItem as ct, seedFromRegistry as d, SelectiveReplayDecision as di, AssertionEvidenceParameter as dn, DatasetTraceIds as dr, ReplayOptions as dt, MockValue as ei, TraceVerdicts as en, ExperimentRollupResult as er, AdaptContext as et, finalizers as f, SelectiveReplayOptions as fi, AssertionGeneration as fn, DatasetsClient as fr, ReplayProgress as ft, Bitfab as g, ProviderDefinition as gi, AssertionLabelEvidence as gn, GraderRerunResult as gr, reportReplayProgress as gt, CommitRef as h, BamlExecutionResult as hi, AssertionGenerationTimeoutError as hn, GraderRerunProgress as hr, TraceIngestionType as ht, ReplayRegistryContext as i, BitfabError as ii, VerdictOutcome as in, ExperimentTotals as ir, DbBranchReplayError as it, SpanOptions as j, ScenarioActualOutcome as jn, VercelStreamResult as jr, GraderLabelUpdate as jt, SpanMethodDecorator as k, Scenario as kn, VercelCallParams as kr, GraderLabelOutcome as kt, defineReplayRegistry as l, SUPPORTED_PROVIDERS as li, VerdictsClient as ln, Dataset as lr, ReplayItemFinishProgress as lt, __version__ as m, AllowedEnvVars as mi, AssertionGenerationStatus as mn, GraderRerunError as mr, ReplayResult as mt, ReplayRegistration as n, NodeMatcher as ni, VerdictAction as nn, ExperimentStatus as nr, BITFAB_PROGRESS_PREFIX as nt, ReseedRegistryResult as o, DbSnapshotConfig as oi, VerdictStatus as on, ListExperimentsParams as or, ReplayError as ot, DEFAULT_SERVICE_URL as p, SelectiveReplayReport as pi, AssertionGenerationError as pn, GraderRerun as pr, ReplayProgressItem as pt, SpanListResult as q, TracesClient as qn, TokenUsage as qr, LabelSource as qt, ReplayRegistry as r, SpanNodeMeta as ri, VerdictConfidence as rn, ExperimentTally as rr, DbBranchOptions as rt, SeedCase as s, DbSnapshotProvider as si, VerdictTarget as sn, AddDatasetGradersResult as sr, ReplayExperiment as st, ReplayOptionsFactory as t, NO_MOCK_OVERRIDE as ti, Verdict as tn, ExperimentRunBy as tr, AdaptInputsFn as tt, reseedFromRegistry as u, ReplayNodeIdentity as ui, ArchiveAssertionsParams as un, DatasetGraderRef as ur, ReplayItemStartProgress as ut, BitfabFunction as v, ApprovalState as vi, AssertionRewriteStatus as vn, GraderRerunTimeoutError as vr, ReplayInterrupt as vt, NodeOptions as w, SaveScenarioActualOutcome as wn, SaveDatasetParams as wr, LangGraphIntegrationOptions as wt, CurrentTrace as x, Justification as xi, SaveAssertion as xn, RemoveDatasetTracesResult as xr, OrganizationMembersClient as xt, CaptureWhen as y, Approver as yi, AssertionVerdictEvidence as yn, ListDatasetsParams as yr, ReplayInterruptSignal as yt, CaptureSurface as z, TraceAssertionSource as zn, SaveAssertionCategoryParams as zr, AssertionVerdict 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-DXmdXbOL.cjs");
15
- const require_http = require("./http-CxT_WDAh.cjs");
14
+ const require_src = require("./src-BYXxPnpE.cjs");
15
+ const require_http = require("./http-r1r6injY.cjs");
16
16
  exports.AssertionCategoriesClient = require_src.AssertionCategoriesClient;
17
17
  exports.AssertionGenerationError = require_src.AssertionGenerationError;
18
18
  exports.AssertionGenerationTimeoutError = require_src.AssertionGenerationTimeoutError;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as AdaptInputsFn, $n as ExperimentRunBy, $r as NO_MOCK_OVERRIDE, $t as Verdict, A as SpanMethodDecoratorContext, An as ScenarioData, Ar as BitfabClaudeAgentHandler, At as GraderVerdict, B as TraceResponse, Bn as TraceSearchFilters, Br as CodeChangeFile, Bt as HumanVerdictOutcome, C as NodeMethodDecorator, Cn as SaveScenarioData, Cr as SaveDatasetResult, Ct as BitfabLangGraphCallbackHandler, D as SeedCaseOptions, Dn as Scenario, Dr as VercelCallParams, Dt as GraderLabelOutcome, E as ReseedResult, En as SavedTraceAssertion, Er as BitfabVercelAiHandler, Et as GraderLabel, F as getCurrentSpan, Fn as ScenarioTrigger, Fr as Category, Ft as ArchiveLabelTarget, G as SpanListResult, Gn as TracesClient, Gr as TokenUsage, Gt as LabelSource, H as ListedSpan, Hn as TraceSearchResult, Hr as SpanLookup, Ht as LabelAction, I as getCurrentTrace, In as TraceAssertion, Ir as CategorySummary, It as ArchiveVerdictTarget, J as RivetContextLike, Jn as ExperimentCodeChangeTotals, Jr as MockOverride, Jt as LabelUpdate, K as SpansClient, Kn as Experiment, Kr as flushTraces, Kt as LabelStatus, L as CaptureSurface, Ln as TraceAssertionSource, Lr as SaveAssertionCategoryParams, Lt as AssertionVerdict, M as WrapBAMLOptions, Mn as ScenarioDataOrigin, Mr as AssertionCategory, Mt as GraderVerdictSource, N as WrappedBamlFn, Nn as ScenarioHistoryEntry, Nr as AssertionCategorySummary, Nt as GraderVerdictUpdate, O as SeedRunOptions, On as ScenarioAction, Or as VercelGenerateResult, Ot as GraderLabelSource, P as getCurrentReplayBranch, Pn as ScenarioSource, Pr as CategoriesClient, Pt as GradersClient, Q as AdaptContext, Qn as ExperimentRollupResult, Qr as MockValue, Qt as TraceVerdicts, R as ActiveSpanContext, Rn as TraceAssertionsResult, Rr as SaveCategoryParams, Rt as HumanLabelOutcome, S as DetachedTrace, Sn as SaveScenarioActualOutcome, Sr as SaveDatasetParams, St as LangGraphIntegrationOptions, T as ReseedOptions, Tn as SaveScenarioParams, Tr as BitfabLanguageModelMiddleware, Tt as GetGraderVerdictsParams, U as SpanListField, Un as TraceTarget, Ur as SpanOccurrence, Ut as LabelConfidence, V as TracingProcessor, Vn as TraceSearchParams, Vr as HttpClient, Vt as HumanVerdictUpdate, W as SpanListParams, Wn as TraceTargetOccurrence, Wr as SpanType, Wt as LabelOutcome, X as RivetIntegrationOptions, Xn as ExperimentPage, Xr as MockOverrideInput, Xt as PassFailVerdict, Y as RivetEffectType, Yn as ExperimentJitter, Yr as MockOverrideCtx, Yt as LabelsClient, Z as ReplayBranch, Zn as ExperimentRollup, Zr as MockOverrideResolver, Zt as TraceLabels, _ as BitfabConfig, _i as Approver, _n as AssertionVerdictEvidence, _r as ListDatasetsParams, _t as ReplayInterruptSignal, a as ReplayRegistryOptions, ai as DbSnapshotProvider, an as VerdictTarget, ar as AddDatasetGradersResult, at as ReplayExperiment, b as CurrentSpan, bi as JustificationSpan, bn as SaveAssertionsAllParams, br as RerunGradersOptions, bt as BitfabOpenAIAgentHandler, c as SeedResult, ci as ReplayNodeIdentity, cn as ArchiveAssertionsParams, cr as DatasetGraderRef, ct as ReplayItemStartProgress, d as seedFromRegistry, di as SelectiveReplayReport, dn as AssertionGenerationError, dr as GraderRerun, dt as ReplayProgressItem, ei as NodeMatcher, en as VerdictAction, er as ExperimentStatus, et as BITFAB_PROGRESS_PREFIX, f as finalizers, fi as AllowedEnvVars, fn as AssertionGenerationStatus, fr as GraderRerunError, ft as ReplayResult, g as Bitfab, gi as ApprovalState, gn as AssertionRewriteStatus, gr as GraderRerunTimeoutError, gt as ReplayInterrupt, h as CommitRef, hi as ApprovalFields, hn as AssertionRewrite, hr as GraderRerunStatus, ht as serializeReplayResult, i as ReplayRegistryContext, ii as DbSnapshotConfig, in as VerdictStatus, ir as ListExperimentsParams, it as ReplayError, j as SpanOptions, jn as ScenarioDataAppend, jr as AssertionCategoriesClient, jt as GraderVerdictOutcome, k as SpanMethodDecorator, kn as ScenarioActualOutcome, kr as VercelStreamResult, kt as GraderLabelUpdate, l as defineReplayRegistry, li as SelectiveReplayDecision, ln as AssertionEvidenceParameter, lr as DatasetTraceIds, lt as ReplayOptions, m as __version__, mi as ProviderDefinition, mn as AssertionLabelEvidence, mr as GraderRerunResult, mt as reportReplayProgress, n as ReplayRegistration, ni as BitfabError, nn as VerdictOutcome, nr as ExperimentTotals, nt as DbBranchReplayError, o as ReseedRegistryResult, oi as DbSnapshotRef, on as VerdictUpdate, or as AddDatasetTracesResult, ot as ReplayItem, p as DEFAULT_SERVICE_URL, pi as BamlExecutionResult, pn as AssertionGenerationTimeoutError, pr as GraderRerunProgress, pt as TraceIngestionType, q as BitfabRivetIntegration, qn as ExperimentCategoryTally, qr as DbBranchTimings, qt as LabelTarget, r as ReplayRegistry, ri as MixedTracingError, rn as VerdictSource, rr as ExperimentsClient, rt as MockStrategy, s as SeedCase, si as SUPPORTED_PROVIDERS, sn as VerdictsClient, sr as Dataset, st as ReplayItemFinishProgress, t as ReplayOptionsFactory, ti as SpanNodeMeta, tn as VerdictConfidence, tr as ExperimentTally, tt as DbBranchOptions, u as reseedFromRegistry, ui as SelectiveReplayOptions, un as AssertionGeneration, ur as DatasetsClient, ut as ReplayProgress, v as BitfabFunction, vi as Assignee, vn as GenerateAssertionsOptions, vr as RemoveDatasetGradersResult, vt as OrganizationMember, w as NodeOptions, wn as SaveScenarioHistoryEntry, wr as UpdateDatasetParams, wt as GetGraderLabelsParams, x as CurrentTrace, xn as SaveAssertionsParams, xr as RerunGradersResult, xt as BitfabLangGraphIntegration, y as CaptureWhen, yi as Justification, yn as SaveAssertion, yr as RemoveDatasetTracesResult, yt as OrganizationMembersClient, z as BitfabOpenAITracingProcessor, zn as TraceAssertionsUpdate, zr as CapturedSpan, zt as HumanLabelUpdate } from "./index-BFgtvRni.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, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, 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 ScenarioHistoryEntry, 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 WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
1
+ import { $ as ReplayBranch, $n as ExperimentRollup, $r as MockOverrideResolver, $t as TraceLabels, A as SpanMethodDecoratorContext, An as ScenarioAction, Ar as VercelGenerateResult, At as GraderLabelSource, B as ActiveSpanContext, Bn as TraceAssertionsResult, Br as SaveCategoryParams, Bt as HumanLabelOutcome, C as NodeMethodDecorator, Cn as SaveAssertionsParams, Cr as RerunGradersResult, Ct as BitfabLangGraphIntegration, D as SeedCaseOptions, Dn as SaveScenarioParams, Dr as BitfabLanguageModelMiddleware, Dt as GetGraderVerdictsParams, E as ReseedResult, En as SaveScenarioHistoryEntry, Er as UpdateDatasetParams, Et as GetGraderLabelsParams, F as WrappedBamlFn, Fn as ScenarioHistoryEntry, Fr as AssertionCategorySummary, Ft as GraderVerdictUpdate, G as SpanListField, Gn as TraceTarget, Gr as SpanOccurrence, Gt as LabelConfidence, H as TraceResponse, Hn as TraceSearchFilters, Hr as CodeChangeFile, Ht as HumanVerdictOutcome, I as getCurrentReplayBranch, In as ScenarioSource, Ir as CategoriesClient, It as GradersClient, J as SpansClient, Jn as Experiment, Jr as flushTraces, Jt as LabelStatus, K as SpanListParams, Kn as TraceTargetOccurrence, Kr as SpanType, Kt as LabelOutcome, L as getCurrentSpan, Ln as ScenarioTrigger, Lr as Category, Lt as ArchiveLabelTarget, M as WrapBAMLOptions, Mn as ScenarioData, Mr as BitfabClaudeAgentHandler, Mt as GraderVerdict, N as WrapJevOptions, Nn as ScenarioDataAppend, Nr as AssertionCategoriesClient, Nt as GraderVerdictOutcome, O as SeedRunOptions, On as SavedTraceAssertion, Or as BitfabVercelAiHandler, Ot as GraderLabel, P as WrapOpenRouterOptions, Pn as ScenarioDataOrigin, Pr as AssertionCategory, Pt as GraderVerdictSource, Q as RivetIntegrationOptions, Qn as ExperimentPage, Qr as MockOverrideInput, Qt as PassFailVerdict, R as getCurrentTrace, Rn as TraceAssertion, Rr as CategorySummary, Rt as ArchiveVerdictTarget, S as DetachedTrace, Si as JustificationSpan, Sn as SaveAssertionsAllParams, Sr as RerunGradersOptions, St as BitfabOpenAIAgentHandler, T as ReseedOptions, Tn as SaveScenarioData, Tr as SaveDatasetResult, Tt as BitfabLangGraphCallbackHandler, U as TracingProcessor, Un as TraceSearchParams, Ur as HttpClient, Ut as HumanVerdictUpdate, V as BitfabOpenAITracingProcessor, Vn as TraceAssertionsUpdate, Vr as CapturedSpan, Vt as HumanLabelUpdate, W as ListedSpan, Wn as TraceSearchResult, Wr as SpanLookup, Wt as LabelAction, X as RivetContextLike, Xn as ExperimentCodeChangeTotals, Xr as MockOverride, Xt as LabelUpdate, Y as BitfabRivetIntegration, Yn as ExperimentCategoryTally, Yr as DbBranchTimings, Yt as LabelTarget, Z as RivetEffectType, Zn as ExperimentJitter, Zr as MockOverrideCtx, Zt as LabelsClient, _ as BitfabConfig, _i as ApprovalFields, _n as AssertionRewrite, _r as GraderRerunStatus, _t as serializeReplayResult, a as ReplayRegistryOptions, ai as MixedTracingError, an as VerdictSource, ar as ExperimentsClient, at as MockStrategy, b as CurrentSpan, bi as Assignee, bn as GenerateAssertionsOptions, br as RemoveDatasetGradersResult, bt as OrganizationMember, c as SeedResult, ci as DbSnapshotRef, cn as VerdictUpdate, cr as AddDatasetTracesResult, ct as ReplayItem, d as seedFromRegistry, di as SelectiveReplayDecision, dn as AssertionEvidenceParameter, dr as DatasetTraceIds, dt as ReplayOptions, ei as MockValue, en as TraceVerdicts, er as ExperimentRollupResult, et as AdaptContext, f as finalizers, fi as SelectiveReplayOptions, fn as AssertionGeneration, fr as DatasetsClient, ft as ReplayProgress, g as Bitfab, gi as ProviderDefinition, gn as AssertionLabelEvidence, gr as GraderRerunResult, gt as reportReplayProgress, h as CommitRef, hi as BamlExecutionResult, hn as AssertionGenerationTimeoutError, hr as GraderRerunProgress, ht as TraceIngestionType, i as ReplayRegistryContext, ii as BitfabError, in as VerdictOutcome, ir as ExperimentTotals, it as DbBranchReplayError, j as SpanOptions, jn as ScenarioActualOutcome, jr as VercelStreamResult, jt as GraderLabelUpdate, k as SpanMethodDecorator, kn as Scenario, kr as VercelCallParams, kt as GraderLabelOutcome, l as defineReplayRegistry, li as SUPPORTED_PROVIDERS, ln as VerdictsClient, lr as Dataset, lt as ReplayItemFinishProgress, m as __version__, mi as AllowedEnvVars, mn as AssertionGenerationStatus, mr as GraderRerunError, mt as ReplayResult, n as ReplayRegistration, ni as NodeMatcher, nn as VerdictAction, nr as ExperimentStatus, nt as BITFAB_PROGRESS_PREFIX, o as ReseedRegistryResult, oi as DbSnapshotConfig, on as VerdictStatus, or as ListExperimentsParams, ot as ReplayError, p as DEFAULT_SERVICE_URL, pi as SelectiveReplayReport, pn as AssertionGenerationError, pr as GraderRerun, pt as ReplayProgressItem, q as SpanListResult, qn as TracesClient, qr as TokenUsage, qt as LabelSource, r as ReplayRegistry, ri as SpanNodeMeta, rn as VerdictConfidence, rr as ExperimentTally, rt as DbBranchOptions, s as SeedCase, si as DbSnapshotProvider, sn as VerdictTarget, sr as AddDatasetGradersResult, st as ReplayExperiment, t as ReplayOptionsFactory, ti as NO_MOCK_OVERRIDE, tn as Verdict, tr as ExperimentRunBy, tt as AdaptInputsFn, u as reseedFromRegistry, ui as ReplayNodeIdentity, un as ArchiveAssertionsParams, ur as DatasetGraderRef, ut as ReplayItemStartProgress, v as BitfabFunction, vi as ApprovalState, vn as AssertionRewriteStatus, vr as GraderRerunTimeoutError, vt as ReplayInterrupt, w as NodeOptions, wn as SaveScenarioActualOutcome, wr as SaveDatasetParams, wt as LangGraphIntegrationOptions, x as CurrentTrace, xi as Justification, xn as SaveAssertion, xr as RemoveDatasetTracesResult, xt as OrganizationMembersClient, y as CaptureWhen, yi as Approver, yn as AssertionVerdictEvidence, yr as ListDatasetsParams, yt as ReplayInterruptSignal, z as CaptureSurface, zn as TraceAssertionSource, zr as SaveAssertionCategoryParams, zt as AssertionVerdict } from "./index-BQV7zzJx.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, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, 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 ScenarioHistoryEntry, 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 WrapBAMLOptions, type WrapJevOptions, 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 AdaptInputsFn, $n as ExperimentRunBy, $r as NO_MOCK_OVERRIDE, $t as Verdict, A as SpanMethodDecoratorContext, An as ScenarioData, Ar as BitfabClaudeAgentHandler, At as GraderVerdict, B as TraceResponse, Bn as TraceSearchFilters, Br as CodeChangeFile, Bt as HumanVerdictOutcome, C as NodeMethodDecorator, Cn as SaveScenarioData, Cr as SaveDatasetResult, Ct as BitfabLangGraphCallbackHandler, D as SeedCaseOptions, Dn as Scenario, Dr as VercelCallParams, Dt as GraderLabelOutcome, E as ReseedResult, En as SavedTraceAssertion, Er as BitfabVercelAiHandler, Et as GraderLabel, F as getCurrentSpan, Fn as ScenarioTrigger, Fr as Category, Ft as ArchiveLabelTarget, G as SpanListResult, Gn as TracesClient, Gr as TokenUsage, Gt as LabelSource, H as ListedSpan, Hn as TraceSearchResult, Hr as SpanLookup, Ht as LabelAction, I as getCurrentTrace, In as TraceAssertion, Ir as CategorySummary, It as ArchiveVerdictTarget, J as RivetContextLike, Jn as ExperimentCodeChangeTotals, Jr as MockOverride, Jt as LabelUpdate, K as SpansClient, Kn as Experiment, Kr as flushTraces, Kt as LabelStatus, L as CaptureSurface, Ln as TraceAssertionSource, Lr as SaveAssertionCategoryParams, Lt as AssertionVerdict, M as WrapBAMLOptions, Mn as ScenarioDataOrigin, Mr as AssertionCategory, Mt as GraderVerdictSource, N as WrappedBamlFn, Nn as ScenarioHistoryEntry, Nr as AssertionCategorySummary, Nt as GraderVerdictUpdate, O as SeedRunOptions, On as ScenarioAction, Or as VercelGenerateResult, Ot as GraderLabelSource, P as getCurrentReplayBranch, Pn as ScenarioSource, Pr as CategoriesClient, Pt as GradersClient, Q as AdaptContext, Qn as ExperimentRollupResult, Qr as MockValue, Qt as TraceVerdicts, R as ActiveSpanContext, Rn as TraceAssertionsResult, Rr as SaveCategoryParams, Rt as HumanLabelOutcome, S as DetachedTrace, Sn as SaveScenarioActualOutcome, Sr as SaveDatasetParams, St as LangGraphIntegrationOptions, T as ReseedOptions, Tn as SaveScenarioParams, Tr as BitfabLanguageModelMiddleware, Tt as GetGraderVerdictsParams, U as SpanListField, Un as TraceTarget, Ur as SpanOccurrence, Ut as LabelConfidence, V as TracingProcessor, Vn as TraceSearchParams, Vr as HttpClient, Vt as HumanVerdictUpdate, W as SpanListParams, Wn as TraceTargetOccurrence, Wr as SpanType, Wt as LabelOutcome, X as RivetIntegrationOptions, Xn as ExperimentPage, Xr as MockOverrideInput, Xt as PassFailVerdict, Y as RivetEffectType, Yn as ExperimentJitter, Yr as MockOverrideCtx, Yt as LabelsClient, Z as ReplayBranch, Zn as ExperimentRollup, Zr as MockOverrideResolver, Zt as TraceLabels, _ as BitfabConfig, _i as Approver, _n as AssertionVerdictEvidence, _r as ListDatasetsParams, _t as ReplayInterruptSignal, a as ReplayRegistryOptions, ai as DbSnapshotProvider, an as VerdictTarget, ar as AddDatasetGradersResult, at as ReplayExperiment, b as CurrentSpan, bi as JustificationSpan, bn as SaveAssertionsAllParams, br as RerunGradersOptions, bt as BitfabOpenAIAgentHandler, c as SeedResult, ci as ReplayNodeIdentity, cn as ArchiveAssertionsParams, cr as DatasetGraderRef, ct as ReplayItemStartProgress, d as seedFromRegistry, di as SelectiveReplayReport, dn as AssertionGenerationError, dr as GraderRerun, dt as ReplayProgressItem, ei as NodeMatcher, en as VerdictAction, er as ExperimentStatus, et as BITFAB_PROGRESS_PREFIX, f as finalizers, fi as AllowedEnvVars, fn as AssertionGenerationStatus, fr as GraderRerunError, ft as ReplayResult, g as Bitfab, gi as ApprovalState, gn as AssertionRewriteStatus, gr as GraderRerunTimeoutError, gt as ReplayInterrupt, h as CommitRef, hi as ApprovalFields, hn as AssertionRewrite, hr as GraderRerunStatus, ht as serializeReplayResult, i as ReplayRegistryContext, ii as DbSnapshotConfig, in as VerdictStatus, ir as ListExperimentsParams, it as ReplayError, j as SpanOptions, jn as ScenarioDataAppend, jr as AssertionCategoriesClient, jt as GraderVerdictOutcome, k as SpanMethodDecorator, kn as ScenarioActualOutcome, kr as VercelStreamResult, kt as GraderLabelUpdate, l as defineReplayRegistry, li as SelectiveReplayDecision, ln as AssertionEvidenceParameter, lr as DatasetTraceIds, lt as ReplayOptions, m as __version__, mi as ProviderDefinition, mn as AssertionLabelEvidence, mr as GraderRerunResult, mt as reportReplayProgress, n as ReplayRegistration, ni as BitfabError, nn as VerdictOutcome, nr as ExperimentTotals, nt as DbBranchReplayError, o as ReseedRegistryResult, oi as DbSnapshotRef, on as VerdictUpdate, or as AddDatasetTracesResult, ot as ReplayItem, p as DEFAULT_SERVICE_URL, pi as BamlExecutionResult, pn as AssertionGenerationTimeoutError, pr as GraderRerunProgress, pt as TraceIngestionType, q as BitfabRivetIntegration, qn as ExperimentCategoryTally, qr as DbBranchTimings, qt as LabelTarget, r as ReplayRegistry, ri as MixedTracingError, rn as VerdictSource, rr as ExperimentsClient, rt as MockStrategy, s as SeedCase, si as SUPPORTED_PROVIDERS, sn as VerdictsClient, sr as Dataset, st as ReplayItemFinishProgress, t as ReplayOptionsFactory, ti as SpanNodeMeta, tn as VerdictConfidence, tr as ExperimentTally, tt as DbBranchOptions, u as reseedFromRegistry, ui as SelectiveReplayOptions, un as AssertionGeneration, ur as DatasetsClient, ut as ReplayProgress, v as BitfabFunction, vi as Assignee, vn as GenerateAssertionsOptions, vr as RemoveDatasetGradersResult, vt as OrganizationMember, w as NodeOptions, wn as SaveScenarioHistoryEntry, wr as UpdateDatasetParams, wt as GetGraderLabelsParams, x as CurrentTrace, xn as SaveAssertionsParams, xr as RerunGradersResult, xt as BitfabLangGraphIntegration, y as CaptureWhen, yi as Justification, yn as SaveAssertion, yr as RemoveDatasetTracesResult, yt as OrganizationMembersClient, z as BitfabOpenAITracingProcessor, zn as TraceAssertionsUpdate, zr as CapturedSpan, zt as HumanLabelUpdate } from "./index-BFgtvRni.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, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, 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 ScenarioHistoryEntry, 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 WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
1
+ import { $ as ReplayBranch, $n as ExperimentRollup, $r as MockOverrideResolver, $t as TraceLabels, A as SpanMethodDecoratorContext, An as ScenarioAction, Ar as VercelGenerateResult, At as GraderLabelSource, B as ActiveSpanContext, Bn as TraceAssertionsResult, Br as SaveCategoryParams, Bt as HumanLabelOutcome, C as NodeMethodDecorator, Cn as SaveAssertionsParams, Cr as RerunGradersResult, Ct as BitfabLangGraphIntegration, D as SeedCaseOptions, Dn as SaveScenarioParams, Dr as BitfabLanguageModelMiddleware, Dt as GetGraderVerdictsParams, E as ReseedResult, En as SaveScenarioHistoryEntry, Er as UpdateDatasetParams, Et as GetGraderLabelsParams, F as WrappedBamlFn, Fn as ScenarioHistoryEntry, Fr as AssertionCategorySummary, Ft as GraderVerdictUpdate, G as SpanListField, Gn as TraceTarget, Gr as SpanOccurrence, Gt as LabelConfidence, H as TraceResponse, Hn as TraceSearchFilters, Hr as CodeChangeFile, Ht as HumanVerdictOutcome, I as getCurrentReplayBranch, In as ScenarioSource, Ir as CategoriesClient, It as GradersClient, J as SpansClient, Jn as Experiment, Jr as flushTraces, Jt as LabelStatus, K as SpanListParams, Kn as TraceTargetOccurrence, Kr as SpanType, Kt as LabelOutcome, L as getCurrentSpan, Ln as ScenarioTrigger, Lr as Category, Lt as ArchiveLabelTarget, M as WrapBAMLOptions, Mn as ScenarioData, Mr as BitfabClaudeAgentHandler, Mt as GraderVerdict, N as WrapJevOptions, Nn as ScenarioDataAppend, Nr as AssertionCategoriesClient, Nt as GraderVerdictOutcome, O as SeedRunOptions, On as SavedTraceAssertion, Or as BitfabVercelAiHandler, Ot as GraderLabel, P as WrapOpenRouterOptions, Pn as ScenarioDataOrigin, Pr as AssertionCategory, Pt as GraderVerdictSource, Q as RivetIntegrationOptions, Qn as ExperimentPage, Qr as MockOverrideInput, Qt as PassFailVerdict, R as getCurrentTrace, Rn as TraceAssertion, Rr as CategorySummary, Rt as ArchiveVerdictTarget, S as DetachedTrace, Si as JustificationSpan, Sn as SaveAssertionsAllParams, Sr as RerunGradersOptions, St as BitfabOpenAIAgentHandler, T as ReseedOptions, Tn as SaveScenarioData, Tr as SaveDatasetResult, Tt as BitfabLangGraphCallbackHandler, U as TracingProcessor, Un as TraceSearchParams, Ur as HttpClient, Ut as HumanVerdictUpdate, V as BitfabOpenAITracingProcessor, Vn as TraceAssertionsUpdate, Vr as CapturedSpan, Vt as HumanLabelUpdate, W as ListedSpan, Wn as TraceSearchResult, Wr as SpanLookup, Wt as LabelAction, X as RivetContextLike, Xn as ExperimentCodeChangeTotals, Xr as MockOverride, Xt as LabelUpdate, Y as BitfabRivetIntegration, Yn as ExperimentCategoryTally, Yr as DbBranchTimings, Yt as LabelTarget, Z as RivetEffectType, Zn as ExperimentJitter, Zr as MockOverrideCtx, Zt as LabelsClient, _ as BitfabConfig, _i as ApprovalFields, _n as AssertionRewrite, _r as GraderRerunStatus, _t as serializeReplayResult, a as ReplayRegistryOptions, ai as MixedTracingError, an as VerdictSource, ar as ExperimentsClient, at as MockStrategy, b as CurrentSpan, bi as Assignee, bn as GenerateAssertionsOptions, br as RemoveDatasetGradersResult, bt as OrganizationMember, c as SeedResult, ci as DbSnapshotRef, cn as VerdictUpdate, cr as AddDatasetTracesResult, ct as ReplayItem, d as seedFromRegistry, di as SelectiveReplayDecision, dn as AssertionEvidenceParameter, dr as DatasetTraceIds, dt as ReplayOptions, ei as MockValue, en as TraceVerdicts, er as ExperimentRollupResult, et as AdaptContext, f as finalizers, fi as SelectiveReplayOptions, fn as AssertionGeneration, fr as DatasetsClient, ft as ReplayProgress, g as Bitfab, gi as ProviderDefinition, gn as AssertionLabelEvidence, gr as GraderRerunResult, gt as reportReplayProgress, h as CommitRef, hi as BamlExecutionResult, hn as AssertionGenerationTimeoutError, hr as GraderRerunProgress, ht as TraceIngestionType, i as ReplayRegistryContext, ii as BitfabError, in as VerdictOutcome, ir as ExperimentTotals, it as DbBranchReplayError, j as SpanOptions, jn as ScenarioActualOutcome, jr as VercelStreamResult, jt as GraderLabelUpdate, k as SpanMethodDecorator, kn as Scenario, kr as VercelCallParams, kt as GraderLabelOutcome, l as defineReplayRegistry, li as SUPPORTED_PROVIDERS, ln as VerdictsClient, lr as Dataset, lt as ReplayItemFinishProgress, m as __version__, mi as AllowedEnvVars, mn as AssertionGenerationStatus, mr as GraderRerunError, mt as ReplayResult, n as ReplayRegistration, ni as NodeMatcher, nn as VerdictAction, nr as ExperimentStatus, nt as BITFAB_PROGRESS_PREFIX, o as ReseedRegistryResult, oi as DbSnapshotConfig, on as VerdictStatus, or as ListExperimentsParams, ot as ReplayError, p as DEFAULT_SERVICE_URL, pi as SelectiveReplayReport, pn as AssertionGenerationError, pr as GraderRerun, pt as ReplayProgressItem, q as SpanListResult, qn as TracesClient, qr as TokenUsage, qt as LabelSource, r as ReplayRegistry, ri as SpanNodeMeta, rn as VerdictConfidence, rr as ExperimentTally, rt as DbBranchOptions, s as SeedCase, si as DbSnapshotProvider, sn as VerdictTarget, sr as AddDatasetGradersResult, st as ReplayExperiment, t as ReplayOptionsFactory, ti as NO_MOCK_OVERRIDE, tn as Verdict, tr as ExperimentRunBy, tt as AdaptInputsFn, u as reseedFromRegistry, ui as ReplayNodeIdentity, un as ArchiveAssertionsParams, ur as DatasetGraderRef, ut as ReplayItemStartProgress, v as BitfabFunction, vi as ApprovalState, vn as AssertionRewriteStatus, vr as GraderRerunTimeoutError, vt as ReplayInterrupt, w as NodeOptions, wn as SaveScenarioActualOutcome, wr as SaveDatasetParams, wt as LangGraphIntegrationOptions, x as CurrentTrace, xi as Justification, xn as SaveAssertion, xr as RemoveDatasetTracesResult, xt as OrganizationMembersClient, y as CaptureWhen, yi as Approver, yn as AssertionVerdictEvidence, yr as ListDatasetsParams, yt as ReplayInterruptSignal, z as CaptureSurface, zn as TraceAssertionSource, zr as SaveAssertionCategoryParams, zt as AssertionVerdict } from "./index-BQV7zzJx.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, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, 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 ScenarioHistoryEntry, 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 WrapBAMLOptions, type WrapJevOptions, 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-CFDoTgXw.js";
11
- import { S as MixedTracingError, i as flushTraces, t as HttpClient, w as __version__, x as BitfabError } from "./http-CcYPHER5.js";
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-Cps3Xs_J.js";
11
+ import { S as MixedTracingError, i as flushTraces, t as HttpClient, w as __version__, x as BitfabError } from "./http-f8Rl8oRa.js";
12
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 };
package/dist/node.cjs CHANGED
@@ -11,9 +11,9 @@ Object.defineProperties(exports, {
11
11
  __esModule: { value: true },
12
12
  [Symbol.toStringTag]: { value: "Module" }
13
13
  });
14
- const require_src = require("./src-DXmdXbOL.cjs");
15
- const require_http = require("./http-CxT_WDAh.cjs");
16
- const require_autoTrace = require("./autoTrace-CQw0qMBt.cjs");
14
+ const require_src = require("./src-BYXxPnpE.cjs");
15
+ const require_http = require("./http-r1r6injY.cjs");
16
+ const require_autoTrace = require("./autoTrace-D3-OZcmR.cjs");
17
17
  let async_hooks = require("async_hooks");
18
18
  //#region src/asyncStorageNode.ts
19
19
  require_autoTrace.registerAsyncLocalStorageClass(async_hooks.AsyncLocalStorage);
package/dist/node.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as AdaptInputsFn, $n as ExperimentRunBy, $r as NO_MOCK_OVERRIDE, $t as Verdict, A as SpanMethodDecoratorContext, An as ScenarioData, Ar as BitfabClaudeAgentHandler, At as GraderVerdict, B as TraceResponse, Bn as TraceSearchFilters, Br as CodeChangeFile, Bt as HumanVerdictOutcome, C as NodeMethodDecorator, Cn as SaveScenarioData, Cr as SaveDatasetResult, Ct as BitfabLangGraphCallbackHandler, D as SeedCaseOptions, Dn as Scenario, Dr as VercelCallParams, Dt as GraderLabelOutcome, E as ReseedResult, En as SavedTraceAssertion, Er as BitfabVercelAiHandler, Et as GraderLabel, F as getCurrentSpan, Fn as ScenarioTrigger, Fr as Category, Ft as ArchiveLabelTarget, G as SpanListResult, Gn as TracesClient, Gr as TokenUsage, Gt as LabelSource, H as ListedSpan, Hn as TraceSearchResult, Hr as SpanLookup, Ht as LabelAction, I as getCurrentTrace, In as TraceAssertion, Ir as CategorySummary, It as ArchiveVerdictTarget, J as RivetContextLike, Jn as ExperimentCodeChangeTotals, Jr as MockOverride, Jt as LabelUpdate, K as SpansClient, Kn as Experiment, Kr as flushTraces, Kt as LabelStatus, L as CaptureSurface, Ln as TraceAssertionSource, Lr as SaveAssertionCategoryParams, Lt as AssertionVerdict, M as WrapBAMLOptions, Mn as ScenarioDataOrigin, Mr as AssertionCategory, Mt as GraderVerdictSource, N as WrappedBamlFn, Nn as ScenarioHistoryEntry, Nr as AssertionCategorySummary, Nt as GraderVerdictUpdate, O as SeedRunOptions, On as ScenarioAction, Or as VercelGenerateResult, Ot as GraderLabelSource, P as getCurrentReplayBranch, Pn as ScenarioSource, Pr as CategoriesClient, Pt as GradersClient, Q as AdaptContext, Qn as ExperimentRollupResult, Qr as MockValue, Qt as TraceVerdicts, R as ActiveSpanContext, Rn as TraceAssertionsResult, Rr as SaveCategoryParams, Rt as HumanLabelOutcome, S as DetachedTrace, Sn as SaveScenarioActualOutcome, Sr as SaveDatasetParams, St as LangGraphIntegrationOptions, T as ReseedOptions, Tn as SaveScenarioParams, Tr as BitfabLanguageModelMiddleware, Tt as GetGraderVerdictsParams, U as SpanListField, Un as TraceTarget, Ur as SpanOccurrence, Ut as LabelConfidence, V as TracingProcessor, Vn as TraceSearchParams, Vr as HttpClient, Vt as HumanVerdictUpdate, W as SpanListParams, Wn as TraceTargetOccurrence, Wr as SpanType, Wt as LabelOutcome, X as RivetIntegrationOptions, Xn as ExperimentPage, Xr as MockOverrideInput, Xt as PassFailVerdict, Y as RivetEffectType, Yn as ExperimentJitter, Yr as MockOverrideCtx, Yt as LabelsClient, Z as ReplayBranch, Zn as ExperimentRollup, Zr as MockOverrideResolver, Zt as TraceLabels, _ as BitfabConfig, _i as Approver, _n as AssertionVerdictEvidence, _r as ListDatasetsParams, _t as ReplayInterruptSignal, a as ReplayRegistryOptions, ai as DbSnapshotProvider, an as VerdictTarget, ar as AddDatasetGradersResult, at as ReplayExperiment, b as CurrentSpan, bi as JustificationSpan, bn as SaveAssertionsAllParams, br as RerunGradersOptions, bt as BitfabOpenAIAgentHandler, c as SeedResult, ci as ReplayNodeIdentity, cn as ArchiveAssertionsParams, cr as DatasetGraderRef, ct as ReplayItemStartProgress, d as seedFromRegistry, di as SelectiveReplayReport, dn as AssertionGenerationError, dr as GraderRerun, dt as ReplayProgressItem, ei as NodeMatcher, en as VerdictAction, er as ExperimentStatus, et as BITFAB_PROGRESS_PREFIX, f as finalizers, fi as AllowedEnvVars, fn as AssertionGenerationStatus, fr as GraderRerunError, ft as ReplayResult, g as Bitfab, gi as ApprovalState, gn as AssertionRewriteStatus, gr as GraderRerunTimeoutError, gt as ReplayInterrupt, h as CommitRef, hi as ApprovalFields, hn as AssertionRewrite, hr as GraderRerunStatus, ht as serializeReplayResult, i as ReplayRegistryContext, ii as DbSnapshotConfig, in as VerdictStatus, ir as ListExperimentsParams, it as ReplayError, j as SpanOptions, jn as ScenarioDataAppend, jr as AssertionCategoriesClient, jt as GraderVerdictOutcome, k as SpanMethodDecorator, kn as ScenarioActualOutcome, kr as VercelStreamResult, kt as GraderLabelUpdate, l as defineReplayRegistry, li as SelectiveReplayDecision, ln as AssertionEvidenceParameter, lr as DatasetTraceIds, lt as ReplayOptions, m as __version__, mi as ProviderDefinition, mn as AssertionLabelEvidence, mr as GraderRerunResult, mt as reportReplayProgress, n as ReplayRegistration, ni as BitfabError, nn as VerdictOutcome, nr as ExperimentTotals, nt as DbBranchReplayError, o as ReseedRegistryResult, oi as DbSnapshotRef, on as VerdictUpdate, or as AddDatasetTracesResult, ot as ReplayItem, p as DEFAULT_SERVICE_URL, pi as BamlExecutionResult, pn as AssertionGenerationTimeoutError, pr as GraderRerunProgress, pt as TraceIngestionType, q as BitfabRivetIntegration, qn as ExperimentCategoryTally, qr as DbBranchTimings, qt as LabelTarget, r as ReplayRegistry, ri as MixedTracingError, rn as VerdictSource, rr as ExperimentsClient, rt as MockStrategy, s as SeedCase, si as SUPPORTED_PROVIDERS, sn as VerdictsClient, sr as Dataset, st as ReplayItemFinishProgress, t as ReplayOptionsFactory, ti as SpanNodeMeta, tn as VerdictConfidence, tr as ExperimentTally, tt as DbBranchOptions, u as reseedFromRegistry, ui as SelectiveReplayOptions, un as AssertionGeneration, ur as DatasetsClient, ut as ReplayProgress, v as BitfabFunction, vi as Assignee, vn as GenerateAssertionsOptions, vr as RemoveDatasetGradersResult, vt as OrganizationMember, w as NodeOptions, wn as SaveScenarioHistoryEntry, wr as UpdateDatasetParams, wt as GetGraderLabelsParams, x as CurrentTrace, xn as SaveAssertionsParams, xr as RerunGradersResult, xt as BitfabLangGraphIntegration, y as CaptureWhen, yi as Justification, yn as SaveAssertion, yr as RemoveDatasetTracesResult, yt as OrganizationMembersClient, z as BitfabOpenAITracingProcessor, zn as TraceAssertionsUpdate, zr as CapturedSpan, zt as HumanLabelUpdate } from "./index-BFgtvRni.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, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, 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 ScenarioHistoryEntry, 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 WrapBAMLOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
1
+ import { $ as ReplayBranch, $n as ExperimentRollup, $r as MockOverrideResolver, $t as TraceLabels, A as SpanMethodDecoratorContext, An as ScenarioAction, Ar as VercelGenerateResult, At as GraderLabelSource, B as ActiveSpanContext, Bn as TraceAssertionsResult, Br as SaveCategoryParams, Bt as HumanLabelOutcome, C as NodeMethodDecorator, Cn as SaveAssertionsParams, Cr as RerunGradersResult, Ct as BitfabLangGraphIntegration, D as SeedCaseOptions, Dn as SaveScenarioParams, Dr as BitfabLanguageModelMiddleware, Dt as GetGraderVerdictsParams, E as ReseedResult, En as SaveScenarioHistoryEntry, Er as UpdateDatasetParams, Et as GetGraderLabelsParams, F as WrappedBamlFn, Fn as ScenarioHistoryEntry, Fr as AssertionCategorySummary, Ft as GraderVerdictUpdate, G as SpanListField, Gn as TraceTarget, Gr as SpanOccurrence, Gt as LabelConfidence, H as TraceResponse, Hn as TraceSearchFilters, Hr as CodeChangeFile, Ht as HumanVerdictOutcome, I as getCurrentReplayBranch, In as ScenarioSource, Ir as CategoriesClient, It as GradersClient, J as SpansClient, Jn as Experiment, Jr as flushTraces, Jt as LabelStatus, K as SpanListParams, Kn as TraceTargetOccurrence, Kr as SpanType, Kt as LabelOutcome, L as getCurrentSpan, Ln as ScenarioTrigger, Lr as Category, Lt as ArchiveLabelTarget, M as WrapBAMLOptions, Mn as ScenarioData, Mr as BitfabClaudeAgentHandler, Mt as GraderVerdict, N as WrapJevOptions, Nn as ScenarioDataAppend, Nr as AssertionCategoriesClient, Nt as GraderVerdictOutcome, O as SeedRunOptions, On as SavedTraceAssertion, Or as BitfabVercelAiHandler, Ot as GraderLabel, P as WrapOpenRouterOptions, Pn as ScenarioDataOrigin, Pr as AssertionCategory, Pt as GraderVerdictSource, Q as RivetIntegrationOptions, Qn as ExperimentPage, Qr as MockOverrideInput, Qt as PassFailVerdict, R as getCurrentTrace, Rn as TraceAssertion, Rr as CategorySummary, Rt as ArchiveVerdictTarget, S as DetachedTrace, Si as JustificationSpan, Sn as SaveAssertionsAllParams, Sr as RerunGradersOptions, St as BitfabOpenAIAgentHandler, T as ReseedOptions, Tn as SaveScenarioData, Tr as SaveDatasetResult, Tt as BitfabLangGraphCallbackHandler, U as TracingProcessor, Un as TraceSearchParams, Ur as HttpClient, Ut as HumanVerdictUpdate, V as BitfabOpenAITracingProcessor, Vn as TraceAssertionsUpdate, Vr as CapturedSpan, Vt as HumanLabelUpdate, W as ListedSpan, Wn as TraceSearchResult, Wr as SpanLookup, Wt as LabelAction, X as RivetContextLike, Xn as ExperimentCodeChangeTotals, Xr as MockOverride, Xt as LabelUpdate, Y as BitfabRivetIntegration, Yn as ExperimentCategoryTally, Yr as DbBranchTimings, Yt as LabelTarget, Z as RivetEffectType, Zn as ExperimentJitter, Zr as MockOverrideCtx, Zt as LabelsClient, _ as BitfabConfig, _i as ApprovalFields, _n as AssertionRewrite, _r as GraderRerunStatus, _t as serializeReplayResult, a as ReplayRegistryOptions, ai as MixedTracingError, an as VerdictSource, ar as ExperimentsClient, at as MockStrategy, b as CurrentSpan, bi as Assignee, bn as GenerateAssertionsOptions, br as RemoveDatasetGradersResult, bt as OrganizationMember, c as SeedResult, ci as DbSnapshotRef, cn as VerdictUpdate, cr as AddDatasetTracesResult, ct as ReplayItem, d as seedFromRegistry, di as SelectiveReplayDecision, dn as AssertionEvidenceParameter, dr as DatasetTraceIds, dt as ReplayOptions, ei as MockValue, en as TraceVerdicts, er as ExperimentRollupResult, et as AdaptContext, f as finalizers, fi as SelectiveReplayOptions, fn as AssertionGeneration, fr as DatasetsClient, ft as ReplayProgress, g as Bitfab, gi as ProviderDefinition, gn as AssertionLabelEvidence, gr as GraderRerunResult, gt as reportReplayProgress, h as CommitRef, hi as BamlExecutionResult, hn as AssertionGenerationTimeoutError, hr as GraderRerunProgress, ht as TraceIngestionType, i as ReplayRegistryContext, ii as BitfabError, in as VerdictOutcome, ir as ExperimentTotals, it as DbBranchReplayError, j as SpanOptions, jn as ScenarioActualOutcome, jr as VercelStreamResult, jt as GraderLabelUpdate, k as SpanMethodDecorator, kn as Scenario, kr as VercelCallParams, kt as GraderLabelOutcome, l as defineReplayRegistry, li as SUPPORTED_PROVIDERS, ln as VerdictsClient, lr as Dataset, lt as ReplayItemFinishProgress, m as __version__, mi as AllowedEnvVars, mn as AssertionGenerationStatus, mr as GraderRerunError, mt as ReplayResult, n as ReplayRegistration, ni as NodeMatcher, nn as VerdictAction, nr as ExperimentStatus, nt as BITFAB_PROGRESS_PREFIX, o as ReseedRegistryResult, oi as DbSnapshotConfig, on as VerdictStatus, or as ListExperimentsParams, ot as ReplayError, p as DEFAULT_SERVICE_URL, pi as SelectiveReplayReport, pn as AssertionGenerationError, pr as GraderRerun, pt as ReplayProgressItem, q as SpanListResult, qn as TracesClient, qr as TokenUsage, qt as LabelSource, r as ReplayRegistry, ri as SpanNodeMeta, rn as VerdictConfidence, rr as ExperimentTally, rt as DbBranchOptions, s as SeedCase, si as DbSnapshotProvider, sn as VerdictTarget, sr as AddDatasetGradersResult, st as ReplayExperiment, t as ReplayOptionsFactory, ti as NO_MOCK_OVERRIDE, tn as Verdict, tr as ExperimentRunBy, tt as AdaptInputsFn, u as reseedFromRegistry, ui as ReplayNodeIdentity, un as ArchiveAssertionsParams, ur as DatasetGraderRef, ut as ReplayItemStartProgress, v as BitfabFunction, vi as ApprovalState, vn as AssertionRewriteStatus, vr as GraderRerunTimeoutError, vt as ReplayInterrupt, w as NodeOptions, wn as SaveScenarioActualOutcome, wr as SaveDatasetParams, wt as LangGraphIntegrationOptions, x as CurrentTrace, xi as Justification, xn as SaveAssertion, xr as RemoveDatasetTracesResult, xt as OrganizationMembersClient, y as CaptureWhen, yi as Approver, yn as AssertionVerdictEvidence, yr as ListDatasetsParams, yt as ReplayInterruptSignal, z as CaptureSurface, zn as TraceAssertionSource, zr as SaveAssertionCategoryParams, zt as AssertionVerdict } from "./index-BQV7zzJx.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, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, 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 ScenarioHistoryEntry, 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 WrapBAMLOptions, type WrapJevOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };