bitfab 0.68.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 (53) hide show
  1. package/dist/{autoTrace-BikML0lX.cjs → autoTrace-D3-OZcmR.cjs} +196 -17
  2. package/dist/autoTrace-D3-OZcmR.cjs.map +1 -0
  3. package/dist/{autoTrace-CVt9EDyo.js → autoTrace-ghnojSj9.js} +173 -18
  4. package/dist/autoTrace-ghnojSj9.js.map +1 -0
  5. package/dist/autoTrace.cjs +2 -1
  6. package/dist/autoTrace.d.cts +15 -0
  7. package/dist/autoTrace.d.ts +15 -0
  8. package/dist/autoTrace.js +1 -1
  9. package/dist/{babelPlugin-s8EFjT6e.cjs → babelPlugin-0uOq-j1Q.cjs} +48 -18
  10. package/dist/babelPlugin-0uOq-j1Q.cjs.map +1 -0
  11. package/dist/{babelPlugin-a7ofCoOd.js → babelPlugin-Muq0uuuu.js} +48 -18
  12. package/dist/babelPlugin-Muq0uuuu.js.map +1 -0
  13. package/dist/{http-_cgR_DM2.js → http-f8Rl8oRa.js} +3 -3
  14. package/dist/{http-_cgR_DM2.js.map → http-f8Rl8oRa.js.map} +1 -1
  15. package/dist/{http-psFF1ptn.cjs → http-r1r6injY.cjs} +3 -3
  16. package/dist/{http-psFF1ptn.cjs.map → http-r1r6injY.cjs.map} +1 -1
  17. package/dist/{index-j7SrvOqe.d.cts → index-BQV7zzJx.d.cts} +56 -2
  18. package/dist/{index-j7SrvOqe.d.ts → index-BQV7zzJx.d.ts} +56 -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-Dze8o7iU.cjs → src-BYXxPnpE.cjs} +30 -7
  29. package/dist/src-BYXxPnpE.cjs.map +1 -0
  30. package/dist/{src-DyEKM7yn.js → src-Cps3Xs_J.js} +30 -7
  31. package/dist/{src-DyEKM7yn.js.map → src-Cps3Xs_J.js.map} +1 -1
  32. package/dist/transform/babel.cjs +1 -1
  33. package/dist/transform/babel.d.cts +9 -2
  34. package/dist/transform/babel.d.ts +9 -2
  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 +47 -17
  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-DkcFn_tg.js → transform-CAJyLLe2.js} +2 -2
  45. package/dist/{transform-DkcFn_tg.js.map → transform-CAJyLLe2.js.map} +1 -1
  46. package/dist/{transform-BBzrqpVH.cjs → transform-ClCOpCZ2.cjs} +2 -2
  47. package/dist/{transform-BBzrqpVH.cjs.map → transform-ClCOpCZ2.cjs.map} +1 -1
  48. package/package.json +2 -1
  49. package/dist/autoTrace-BikML0lX.cjs.map +0 -1
  50. package/dist/autoTrace-CVt9EDyo.js.map +0 -1
  51. package/dist/babelPlugin-a7ofCoOd.js.map +0 -1
  52. package/dist/babelPlugin-s8EFjT6e.cjs.map +0 -1
  53. package/dist/src-Dze8o7iU.cjs.map +0 -1
@@ -3450,6 +3450,10 @@ interface WrapJevOptions<TReply> {
3450
3450
  /** Called after each Jev call with the reply, for the caller's own usage or cost reporting. */
3451
3451
  onReply?: (reply: TReply) => void;
3452
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
+ }
3453
3457
  interface WrapBAMLOptions {
3454
3458
  /** Called after each BAML invocation with the Collector instance. */
3455
3459
  onCollector?: (collector: unknown) => void;
@@ -4145,6 +4149,43 @@ declare class Bitfab {
4145
4149
  * @returns An async function with the same signature that records each call
4146
4150
  */
4147
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>;
4148
4189
  /**
4149
4190
  * Wrap a function to automatically create a span for its inputs and outputs.
4150
4191
  *
@@ -4537,6 +4578,19 @@ declare class BitfabFunction {
4537
4578
  * @returns An async function with the same signature that records each call
4538
4579
  */
4539
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>;
4540
4594
  }
4541
4595
  //#endregion
4542
4596
  //#region src/commitRef.d.ts
@@ -4557,7 +4611,7 @@ interface CommitRef {
4557
4611
  /**
4558
4612
  * SDK version from package.json (injected at build time)
4559
4613
  */
4560
- declare const __version__ = "0.68.0";
4614
+ declare const __version__ = "0.68.1";
4561
4615
  //#endregion
4562
4616
  //#region src/constants.d.ts
4563
4617
  /**
@@ -4699,4 +4753,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
4699
4753
  run?: boolean;
4700
4754
  }): Promise<SeedResult>;
4701
4755
  //#endregion
4702
- export { AdaptContext as $, ExperimentRollupResult as $n, MockValue as $r, TraceVerdicts as $t, SpanMethodDecoratorContext as A, ScenarioActualOutcome as An, VercelStreamResult as Ar, GraderLabelUpdate as At, BitfabOpenAITracingProcessor as B, TraceAssertionsUpdate as Bn, CapturedSpan as Br, HumanLabelUpdate as Bt, NodeMethodDecorator as C, SaveScenarioActualOutcome as Cn, SaveDatasetParams as Cr, LangGraphIntegrationOptions as Ct, SeedCaseOptions as D, SavedTraceAssertion as Dn, BitfabVercelAiHandler as Dr, GraderLabel as Dt, ReseedResult as E, SaveScenarioParams as En, BitfabLanguageModelMiddleware as Er, GetGraderVerdictsParams as Et, getCurrentReplayBranch as F, ScenarioSource as Fn, CategoriesClient as Fr, GradersClient as Ft, SpanListParams as G, TraceTargetOccurrence as Gn, SpanType as Gr, LabelOutcome as Gt, TracingProcessor as H, TraceSearchParams as Hn, HttpClient as Hr, HumanVerdictUpdate as Ht, getCurrentSpan as I, ScenarioTrigger as In, Category as Ir, ArchiveLabelTarget as It, BitfabRivetIntegration as J, ExperimentCategoryTally as Jn, DbBranchTimings as Jr, LabelTarget as Jt, SpanListResult as K, TracesClient as Kn, TokenUsage as Kr, LabelSource as Kt, getCurrentTrace as L, TraceAssertion as Ln, CategorySummary as Lr, ArchiveVerdictTarget as Lt, WrapBAMLOptions as M, ScenarioDataAppend as Mn, AssertionCategoriesClient as Mr, GraderVerdictOutcome as Mt, WrapJevOptions as N, ScenarioDataOrigin as Nn, AssertionCategory as Nr, GraderVerdictSource as Nt, SeedRunOptions as O, Scenario as On, VercelCallParams as Or, GraderLabelOutcome as Ot, WrappedBamlFn as P, ScenarioHistoryEntry as Pn, AssertionCategorySummary as Pr, GraderVerdictUpdate as Pt, ReplayBranch as Q, ExperimentRollup as Qn, MockOverrideResolver as Qr, TraceLabels as Qt, CaptureSurface as R, TraceAssertionSource as Rn, SaveAssertionCategoryParams as Rr, AssertionVerdict as Rt, DetachedTrace as S, SaveAssertionsParams as Sn, RerunGradersResult as Sr, BitfabLangGraphIntegration as St, ReseedOptions as T, SaveScenarioHistoryEntry as Tn, UpdateDatasetParams as Tr, GetGraderLabelsParams as Tt, ListedSpan as U, TraceSearchResult as Un, SpanLookup as Ur, LabelAction as Ut, TraceResponse as V, TraceSearchFilters as Vn, CodeChangeFile as Vr, HumanVerdictOutcome as Vt, SpanListField as W, TraceTarget as Wn, SpanOccurrence as Wr, LabelConfidence as Wt, RivetEffectType as X, ExperimentJitter as Xn, MockOverrideCtx as Xr, LabelsClient as Xt, RivetContextLike as Y, ExperimentCodeChangeTotals as Yn, MockOverride as Yr, LabelUpdate as Yt, RivetIntegrationOptions as Z, ExperimentPage as Zn, MockOverrideInput as Zr, PassFailVerdict as Zt, BitfabConfig as _, ApprovalState as _i, AssertionRewriteStatus as _n, GraderRerunTimeoutError as _r, ReplayInterrupt as _t, ReplayRegistryOptions as a, DbSnapshotConfig as ai, VerdictStatus as an, ListExperimentsParams as ar, ReplayError as at, CurrentSpan as b, Justification as bi, SaveAssertion as bn, RemoveDatasetTracesResult as br, OrganizationMembersClient as bt, SeedResult as c, SUPPORTED_PROVIDERS as ci, VerdictsClient as cn, Dataset as cr, ReplayItemFinishProgress as ct, seedFromRegistry as d, SelectiveReplayOptions as di, AssertionGeneration as dn, DatasetsClient as dr, ReplayProgress as dt, NO_MOCK_OVERRIDE as ei, Verdict as en, ExperimentRunBy as er, AdaptInputsFn as et, finalizers as f, SelectiveReplayReport as fi, AssertionGenerationError as fn, GraderRerun as fr, ReplayProgressItem as ft, Bitfab as g, ApprovalFields as gi, AssertionRewrite as gn, GraderRerunStatus as gr, serializeReplayResult as gt, CommitRef as h, ProviderDefinition as hi, AssertionLabelEvidence as hn, GraderRerunResult as hr, reportReplayProgress as ht, ReplayRegistryContext as i, MixedTracingError as ii, VerdictSource as in, ExperimentsClient as ir, MockStrategy as it, SpanOptions as j, ScenarioData as jn, BitfabClaudeAgentHandler as jr, GraderVerdict as jt, SpanMethodDecorator as k, ScenarioAction as kn, VercelGenerateResult as kr, GraderLabelSource as kt, defineReplayRegistry as l, ReplayNodeIdentity as li, ArchiveAssertionsParams as ln, DatasetGraderRef as lr, ReplayItemStartProgress as lt, __version__ as m, BamlExecutionResult as mi, AssertionGenerationTimeoutError as mn, GraderRerunProgress as mr, TraceIngestionType as mt, ReplayRegistration as n, SpanNodeMeta as ni, VerdictConfidence as nn, ExperimentTally as nr, DbBranchOptions as nt, ReseedRegistryResult as o, DbSnapshotProvider as oi, VerdictTarget as on, AddDatasetGradersResult as or, ReplayExperiment as ot, DEFAULT_SERVICE_URL as p, AllowedEnvVars as pi, AssertionGenerationStatus as pn, GraderRerunError as pr, ReplayResult as pt, SpansClient as q, Experiment as qn, flushTraces as qr, LabelStatus as qt, ReplayRegistry as r, BitfabError as ri, VerdictOutcome as rn, ExperimentTotals as rr, DbBranchReplayError as rt, SeedCase as s, DbSnapshotRef as si, VerdictUpdate as sn, AddDatasetTracesResult as sr, ReplayItem as st, ReplayOptionsFactory as t, NodeMatcher as ti, VerdictAction as tn, ExperimentStatus as tr, BITFAB_PROGRESS_PREFIX as tt, reseedFromRegistry as u, SelectiveReplayDecision as ui, AssertionEvidenceParameter as un, DatasetTraceIds as ur, ReplayOptions as ut, BitfabFunction as v, Approver as vi, AssertionVerdictEvidence as vn, ListDatasetsParams as vr, ReplayInterruptSignal as vt, NodeOptions as w, SaveScenarioData as wn, SaveDatasetResult as wr, BitfabLangGraphCallbackHandler as wt, CurrentTrace as x, JustificationSpan as xi, SaveAssertionsAllParams as xn, RerunGradersOptions as xr, BitfabOpenAIAgentHandler as xt, CaptureWhen as y, Assignee as yi, GenerateAssertionsOptions as yn, RemoveDatasetGradersResult as yr, OrganizationMember as yt, ActiveSpanContext as z, TraceAssertionsResult as zn, SaveCategoryParams as zr, HumanLabelOutcome 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 };
@@ -3450,6 +3450,10 @@ interface WrapJevOptions<TReply> {
3450
3450
  /** Called after each Jev call with the reply, for the caller's own usage or cost reporting. */
3451
3451
  onReply?: (reply: TReply) => void;
3452
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
+ }
3453
3457
  interface WrapBAMLOptions {
3454
3458
  /** Called after each BAML invocation with the Collector instance. */
3455
3459
  onCollector?: (collector: unknown) => void;
@@ -4145,6 +4149,43 @@ declare class Bitfab {
4145
4149
  * @returns An async function with the same signature that records each call
4146
4150
  */
4147
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>;
4148
4189
  /**
4149
4190
  * Wrap a function to automatically create a span for its inputs and outputs.
4150
4191
  *
@@ -4537,6 +4578,19 @@ declare class BitfabFunction {
4537
4578
  * @returns An async function with the same signature that records each call
4538
4579
  */
4539
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>;
4540
4594
  }
4541
4595
  //#endregion
4542
4596
  //#region src/commitRef.d.ts
@@ -4557,7 +4611,7 @@ interface CommitRef {
4557
4611
  /**
4558
4612
  * SDK version from package.json (injected at build time)
4559
4613
  */
4560
- declare const __version__ = "0.68.0";
4614
+ declare const __version__ = "0.68.1";
4561
4615
  //#endregion
4562
4616
  //#region src/constants.d.ts
4563
4617
  /**
@@ -4699,4 +4753,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
4699
4753
  run?: boolean;
4700
4754
  }): Promise<SeedResult>;
4701
4755
  //#endregion
4702
- export { AdaptContext as $, ExperimentRollupResult as $n, MockValue as $r, TraceVerdicts as $t, SpanMethodDecoratorContext as A, ScenarioActualOutcome as An, VercelStreamResult as Ar, GraderLabelUpdate as At, BitfabOpenAITracingProcessor as B, TraceAssertionsUpdate as Bn, CapturedSpan as Br, HumanLabelUpdate as Bt, NodeMethodDecorator as C, SaveScenarioActualOutcome as Cn, SaveDatasetParams as Cr, LangGraphIntegrationOptions as Ct, SeedCaseOptions as D, SavedTraceAssertion as Dn, BitfabVercelAiHandler as Dr, GraderLabel as Dt, ReseedResult as E, SaveScenarioParams as En, BitfabLanguageModelMiddleware as Er, GetGraderVerdictsParams as Et, getCurrentReplayBranch as F, ScenarioSource as Fn, CategoriesClient as Fr, GradersClient as Ft, SpanListParams as G, TraceTargetOccurrence as Gn, SpanType as Gr, LabelOutcome as Gt, TracingProcessor as H, TraceSearchParams as Hn, HttpClient as Hr, HumanVerdictUpdate as Ht, getCurrentSpan as I, ScenarioTrigger as In, Category as Ir, ArchiveLabelTarget as It, BitfabRivetIntegration as J, ExperimentCategoryTally as Jn, DbBranchTimings as Jr, LabelTarget as Jt, SpanListResult as K, TracesClient as Kn, TokenUsage as Kr, LabelSource as Kt, getCurrentTrace as L, TraceAssertion as Ln, CategorySummary as Lr, ArchiveVerdictTarget as Lt, WrapBAMLOptions as M, ScenarioDataAppend as Mn, AssertionCategoriesClient as Mr, GraderVerdictOutcome as Mt, WrapJevOptions as N, ScenarioDataOrigin as Nn, AssertionCategory as Nr, GraderVerdictSource as Nt, SeedRunOptions as O, Scenario as On, VercelCallParams as Or, GraderLabelOutcome as Ot, WrappedBamlFn as P, ScenarioHistoryEntry as Pn, AssertionCategorySummary as Pr, GraderVerdictUpdate as Pt, ReplayBranch as Q, ExperimentRollup as Qn, MockOverrideResolver as Qr, TraceLabels as Qt, CaptureSurface as R, TraceAssertionSource as Rn, SaveAssertionCategoryParams as Rr, AssertionVerdict as Rt, DetachedTrace as S, SaveAssertionsParams as Sn, RerunGradersResult as Sr, BitfabLangGraphIntegration as St, ReseedOptions as T, SaveScenarioHistoryEntry as Tn, UpdateDatasetParams as Tr, GetGraderLabelsParams as Tt, ListedSpan as U, TraceSearchResult as Un, SpanLookup as Ur, LabelAction as Ut, TraceResponse as V, TraceSearchFilters as Vn, CodeChangeFile as Vr, HumanVerdictOutcome as Vt, SpanListField as W, TraceTarget as Wn, SpanOccurrence as Wr, LabelConfidence as Wt, RivetEffectType as X, ExperimentJitter as Xn, MockOverrideCtx as Xr, LabelsClient as Xt, RivetContextLike as Y, ExperimentCodeChangeTotals as Yn, MockOverride as Yr, LabelUpdate as Yt, RivetIntegrationOptions as Z, ExperimentPage as Zn, MockOverrideInput as Zr, PassFailVerdict as Zt, BitfabConfig as _, ApprovalState as _i, AssertionRewriteStatus as _n, GraderRerunTimeoutError as _r, ReplayInterrupt as _t, ReplayRegistryOptions as a, DbSnapshotConfig as ai, VerdictStatus as an, ListExperimentsParams as ar, ReplayError as at, CurrentSpan as b, Justification as bi, SaveAssertion as bn, RemoveDatasetTracesResult as br, OrganizationMembersClient as bt, SeedResult as c, SUPPORTED_PROVIDERS as ci, VerdictsClient as cn, Dataset as cr, ReplayItemFinishProgress as ct, seedFromRegistry as d, SelectiveReplayOptions as di, AssertionGeneration as dn, DatasetsClient as dr, ReplayProgress as dt, NO_MOCK_OVERRIDE as ei, Verdict as en, ExperimentRunBy as er, AdaptInputsFn as et, finalizers as f, SelectiveReplayReport as fi, AssertionGenerationError as fn, GraderRerun as fr, ReplayProgressItem as ft, Bitfab as g, ApprovalFields as gi, AssertionRewrite as gn, GraderRerunStatus as gr, serializeReplayResult as gt, CommitRef as h, ProviderDefinition as hi, AssertionLabelEvidence as hn, GraderRerunResult as hr, reportReplayProgress as ht, ReplayRegistryContext as i, MixedTracingError as ii, VerdictSource as in, ExperimentsClient as ir, MockStrategy as it, SpanOptions as j, ScenarioData as jn, BitfabClaudeAgentHandler as jr, GraderVerdict as jt, SpanMethodDecorator as k, ScenarioAction as kn, VercelGenerateResult as kr, GraderLabelSource as kt, defineReplayRegistry as l, ReplayNodeIdentity as li, ArchiveAssertionsParams as ln, DatasetGraderRef as lr, ReplayItemStartProgress as lt, __version__ as m, BamlExecutionResult as mi, AssertionGenerationTimeoutError as mn, GraderRerunProgress as mr, TraceIngestionType as mt, ReplayRegistration as n, SpanNodeMeta as ni, VerdictConfidence as nn, ExperimentTally as nr, DbBranchOptions as nt, ReseedRegistryResult as o, DbSnapshotProvider as oi, VerdictTarget as on, AddDatasetGradersResult as or, ReplayExperiment as ot, DEFAULT_SERVICE_URL as p, AllowedEnvVars as pi, AssertionGenerationStatus as pn, GraderRerunError as pr, ReplayResult as pt, SpansClient as q, Experiment as qn, flushTraces as qr, LabelStatus as qt, ReplayRegistry as r, BitfabError as ri, VerdictOutcome as rn, ExperimentTotals as rr, DbBranchReplayError as rt, SeedCase as s, DbSnapshotRef as si, VerdictUpdate as sn, AddDatasetTracesResult as sr, ReplayItem as st, ReplayOptionsFactory as t, NodeMatcher as ti, VerdictAction as tn, ExperimentStatus as tr, BITFAB_PROGRESS_PREFIX as tt, reseedFromRegistry as u, SelectiveReplayDecision as ui, AssertionEvidenceParameter as un, DatasetTraceIds as ur, ReplayOptions as ut, BitfabFunction as v, Approver as vi, AssertionVerdictEvidence as vn, ListDatasetsParams as vr, ReplayInterruptSignal as vt, NodeOptions as w, SaveScenarioData as wn, SaveDatasetResult as wr, BitfabLangGraphCallbackHandler as wt, CurrentTrace as x, JustificationSpan as xi, SaveAssertionsAllParams as xn, RerunGradersOptions as xr, BitfabOpenAIAgentHandler as xt, CaptureWhen as y, Assignee as yi, GenerateAssertionsOptions as yn, RemoveDatasetGradersResult as yr, OrganizationMember as yt, ActiveSpanContext as z, TraceAssertionsResult as zn, SaveCategoryParams as zr, HumanLabelOutcome 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-Dze8o7iU.cjs");
15
- const require_http = require("./http-psFF1ptn.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 AdaptContext, $n as ExperimentRollupResult, $r as MockValue, $t as TraceVerdicts, A as SpanMethodDecoratorContext, An as ScenarioActualOutcome, Ar as VercelStreamResult, At as GraderLabelUpdate, B as BitfabOpenAITracingProcessor, Bn as TraceAssertionsUpdate, Br as CapturedSpan, Bt as HumanLabelUpdate, C as NodeMethodDecorator, Cn as SaveScenarioActualOutcome, Cr as SaveDatasetParams, Ct as LangGraphIntegrationOptions, D as SeedCaseOptions, Dn as SavedTraceAssertion, Dr as BitfabVercelAiHandler, Dt as GraderLabel, E as ReseedResult, En as SaveScenarioParams, Er as BitfabLanguageModelMiddleware, Et as GetGraderVerdictsParams, F as getCurrentReplayBranch, Fn as ScenarioSource, Fr as CategoriesClient, Ft as GradersClient, G as SpanListParams, Gn as TraceTargetOccurrence, Gr as SpanType, Gt as LabelOutcome, H as TracingProcessor, Hn as TraceSearchParams, Hr as HttpClient, Ht as HumanVerdictUpdate, I as getCurrentSpan, In as ScenarioTrigger, Ir as Category, It as ArchiveLabelTarget, J as BitfabRivetIntegration, Jn as ExperimentCategoryTally, Jr as DbBranchTimings, Jt as LabelTarget, K as SpanListResult, Kn as TracesClient, Kr as TokenUsage, Kt as LabelSource, L as getCurrentTrace, Ln as TraceAssertion, Lr as CategorySummary, Lt as ArchiveVerdictTarget, M as WrapBAMLOptions, Mn as ScenarioDataAppend, Mr as AssertionCategoriesClient, Mt as GraderVerdictOutcome, N as WrapJevOptions, Nn as ScenarioDataOrigin, Nr as AssertionCategory, Nt as GraderVerdictSource, O as SeedRunOptions, On as Scenario, Or as VercelCallParams, Ot as GraderLabelOutcome, P as WrappedBamlFn, Pn as ScenarioHistoryEntry, Pr as AssertionCategorySummary, Pt as GraderVerdictUpdate, Q as ReplayBranch, Qn as ExperimentRollup, Qr as MockOverrideResolver, Qt as TraceLabels, R as CaptureSurface, Rn as TraceAssertionSource, Rr as SaveAssertionCategoryParams, Rt as AssertionVerdict, S as DetachedTrace, Sn as SaveAssertionsParams, Sr as RerunGradersResult, St as BitfabLangGraphIntegration, T as ReseedOptions, Tn as SaveScenarioHistoryEntry, Tr as UpdateDatasetParams, Tt as GetGraderLabelsParams, U as ListedSpan, Un as TraceSearchResult, Ur as SpanLookup, Ut as LabelAction, V as TraceResponse, Vn as TraceSearchFilters, Vr as CodeChangeFile, Vt as HumanVerdictOutcome, W as SpanListField, Wn as TraceTarget, Wr as SpanOccurrence, Wt as LabelConfidence, X as RivetEffectType, Xn as ExperimentJitter, Xr as MockOverrideCtx, Xt as LabelsClient, Y as RivetContextLike, Yn as ExperimentCodeChangeTotals, Yr as MockOverride, Yt as LabelUpdate, Z as RivetIntegrationOptions, Zn as ExperimentPage, Zr as MockOverrideInput, Zt as PassFailVerdict, _ as BitfabConfig, _i as ApprovalState, _n as AssertionRewriteStatus, _r as GraderRerunTimeoutError, _t as ReplayInterrupt, a as ReplayRegistryOptions, ai as DbSnapshotConfig, an as VerdictStatus, ar as ListExperimentsParams, at as ReplayError, b as CurrentSpan, bi as Justification, bn as SaveAssertion, br as RemoveDatasetTracesResult, bt as OrganizationMembersClient, c as SeedResult, ci as SUPPORTED_PROVIDERS, cn as VerdictsClient, cr as Dataset, ct as ReplayItemFinishProgress, d as seedFromRegistry, di as SelectiveReplayOptions, dn as AssertionGeneration, dr as DatasetsClient, dt as ReplayProgress, ei as NO_MOCK_OVERRIDE, en as Verdict, er as ExperimentRunBy, et as AdaptInputsFn, f as finalizers, fi as SelectiveReplayReport, fn as AssertionGenerationError, fr as GraderRerun, ft as ReplayProgressItem, g as Bitfab, gi as ApprovalFields, gn as AssertionRewrite, gr as GraderRerunStatus, gt as serializeReplayResult, h as CommitRef, hi as ProviderDefinition, hn as AssertionLabelEvidence, hr as GraderRerunResult, ht as reportReplayProgress, i as ReplayRegistryContext, ii as MixedTracingError, in as VerdictSource, ir as ExperimentsClient, it as MockStrategy, j as SpanOptions, jn as ScenarioData, jr as BitfabClaudeAgentHandler, jt as GraderVerdict, k as SpanMethodDecorator, kn as ScenarioAction, kr as VercelGenerateResult, kt as GraderLabelSource, l as defineReplayRegistry, li as ReplayNodeIdentity, ln as ArchiveAssertionsParams, lr as DatasetGraderRef, lt as ReplayItemStartProgress, m as __version__, mi as BamlExecutionResult, mn as AssertionGenerationTimeoutError, mr as GraderRerunProgress, mt as TraceIngestionType, n as ReplayRegistration, ni as SpanNodeMeta, nn as VerdictConfidence, nr as ExperimentTally, nt as DbBranchOptions, o as ReseedRegistryResult, oi as DbSnapshotProvider, on as VerdictTarget, or as AddDatasetGradersResult, ot as ReplayExperiment, p as DEFAULT_SERVICE_URL, pi as AllowedEnvVars, pn as AssertionGenerationStatus, pr as GraderRerunError, pt as ReplayResult, q as SpansClient, qn as Experiment, qr as flushTraces, qt as LabelStatus, r as ReplayRegistry, ri as BitfabError, rn as VerdictOutcome, rr as ExperimentTotals, rt as DbBranchReplayError, s as SeedCase, si as DbSnapshotRef, sn as VerdictUpdate, sr as AddDatasetTracesResult, st as ReplayItem, t as ReplayOptionsFactory, ti as NodeMatcher, tn as VerdictAction, tr as ExperimentStatus, tt as BITFAB_PROGRESS_PREFIX, u as reseedFromRegistry, ui as SelectiveReplayDecision, un as AssertionEvidenceParameter, ur as DatasetTraceIds, ut as ReplayOptions, v as BitfabFunction, vi as Approver, vn as AssertionVerdictEvidence, vr as ListDatasetsParams, vt as ReplayInterruptSignal, w as NodeOptions, wn as SaveScenarioData, wr as SaveDatasetResult, wt as BitfabLangGraphCallbackHandler, x as CurrentTrace, xi as JustificationSpan, xn as SaveAssertionsAllParams, xr as RerunGradersOptions, xt as BitfabOpenAIAgentHandler, y as CaptureWhen, yi as Assignee, yn as GenerateAssertionsOptions, yr as RemoveDatasetGradersResult, yt as OrganizationMember, z as ActiveSpanContext, zn as TraceAssertionsResult, zr as SaveCategoryParams, zt as HumanLabelOutcome } from "./index-j7SrvOqe.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 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 AdaptContext, $n as ExperimentRollupResult, $r as MockValue, $t as TraceVerdicts, A as SpanMethodDecoratorContext, An as ScenarioActualOutcome, Ar as VercelStreamResult, At as GraderLabelUpdate, B as BitfabOpenAITracingProcessor, Bn as TraceAssertionsUpdate, Br as CapturedSpan, Bt as HumanLabelUpdate, C as NodeMethodDecorator, Cn as SaveScenarioActualOutcome, Cr as SaveDatasetParams, Ct as LangGraphIntegrationOptions, D as SeedCaseOptions, Dn as SavedTraceAssertion, Dr as BitfabVercelAiHandler, Dt as GraderLabel, E as ReseedResult, En as SaveScenarioParams, Er as BitfabLanguageModelMiddleware, Et as GetGraderVerdictsParams, F as getCurrentReplayBranch, Fn as ScenarioSource, Fr as CategoriesClient, Ft as GradersClient, G as SpanListParams, Gn as TraceTargetOccurrence, Gr as SpanType, Gt as LabelOutcome, H as TracingProcessor, Hn as TraceSearchParams, Hr as HttpClient, Ht as HumanVerdictUpdate, I as getCurrentSpan, In as ScenarioTrigger, Ir as Category, It as ArchiveLabelTarget, J as BitfabRivetIntegration, Jn as ExperimentCategoryTally, Jr as DbBranchTimings, Jt as LabelTarget, K as SpanListResult, Kn as TracesClient, Kr as TokenUsage, Kt as LabelSource, L as getCurrentTrace, Ln as TraceAssertion, Lr as CategorySummary, Lt as ArchiveVerdictTarget, M as WrapBAMLOptions, Mn as ScenarioDataAppend, Mr as AssertionCategoriesClient, Mt as GraderVerdictOutcome, N as WrapJevOptions, Nn as ScenarioDataOrigin, Nr as AssertionCategory, Nt as GraderVerdictSource, O as SeedRunOptions, On as Scenario, Or as VercelCallParams, Ot as GraderLabelOutcome, P as WrappedBamlFn, Pn as ScenarioHistoryEntry, Pr as AssertionCategorySummary, Pt as GraderVerdictUpdate, Q as ReplayBranch, Qn as ExperimentRollup, Qr as MockOverrideResolver, Qt as TraceLabels, R as CaptureSurface, Rn as TraceAssertionSource, Rr as SaveAssertionCategoryParams, Rt as AssertionVerdict, S as DetachedTrace, Sn as SaveAssertionsParams, Sr as RerunGradersResult, St as BitfabLangGraphIntegration, T as ReseedOptions, Tn as SaveScenarioHistoryEntry, Tr as UpdateDatasetParams, Tt as GetGraderLabelsParams, U as ListedSpan, Un as TraceSearchResult, Ur as SpanLookup, Ut as LabelAction, V as TraceResponse, Vn as TraceSearchFilters, Vr as CodeChangeFile, Vt as HumanVerdictOutcome, W as SpanListField, Wn as TraceTarget, Wr as SpanOccurrence, Wt as LabelConfidence, X as RivetEffectType, Xn as ExperimentJitter, Xr as MockOverrideCtx, Xt as LabelsClient, Y as RivetContextLike, Yn as ExperimentCodeChangeTotals, Yr as MockOverride, Yt as LabelUpdate, Z as RivetIntegrationOptions, Zn as ExperimentPage, Zr as MockOverrideInput, Zt as PassFailVerdict, _ as BitfabConfig, _i as ApprovalState, _n as AssertionRewriteStatus, _r as GraderRerunTimeoutError, _t as ReplayInterrupt, a as ReplayRegistryOptions, ai as DbSnapshotConfig, an as VerdictStatus, ar as ListExperimentsParams, at as ReplayError, b as CurrentSpan, bi as Justification, bn as SaveAssertion, br as RemoveDatasetTracesResult, bt as OrganizationMembersClient, c as SeedResult, ci as SUPPORTED_PROVIDERS, cn as VerdictsClient, cr as Dataset, ct as ReplayItemFinishProgress, d as seedFromRegistry, di as SelectiveReplayOptions, dn as AssertionGeneration, dr as DatasetsClient, dt as ReplayProgress, ei as NO_MOCK_OVERRIDE, en as Verdict, er as ExperimentRunBy, et as AdaptInputsFn, f as finalizers, fi as SelectiveReplayReport, fn as AssertionGenerationError, fr as GraderRerun, ft as ReplayProgressItem, g as Bitfab, gi as ApprovalFields, gn as AssertionRewrite, gr as GraderRerunStatus, gt as serializeReplayResult, h as CommitRef, hi as ProviderDefinition, hn as AssertionLabelEvidence, hr as GraderRerunResult, ht as reportReplayProgress, i as ReplayRegistryContext, ii as MixedTracingError, in as VerdictSource, ir as ExperimentsClient, it as MockStrategy, j as SpanOptions, jn as ScenarioData, jr as BitfabClaudeAgentHandler, jt as GraderVerdict, k as SpanMethodDecorator, kn as ScenarioAction, kr as VercelGenerateResult, kt as GraderLabelSource, l as defineReplayRegistry, li as ReplayNodeIdentity, ln as ArchiveAssertionsParams, lr as DatasetGraderRef, lt as ReplayItemStartProgress, m as __version__, mi as BamlExecutionResult, mn as AssertionGenerationTimeoutError, mr as GraderRerunProgress, mt as TraceIngestionType, n as ReplayRegistration, ni as SpanNodeMeta, nn as VerdictConfidence, nr as ExperimentTally, nt as DbBranchOptions, o as ReseedRegistryResult, oi as DbSnapshotProvider, on as VerdictTarget, or as AddDatasetGradersResult, ot as ReplayExperiment, p as DEFAULT_SERVICE_URL, pi as AllowedEnvVars, pn as AssertionGenerationStatus, pr as GraderRerunError, pt as ReplayResult, q as SpansClient, qn as Experiment, qr as flushTraces, qt as LabelStatus, r as ReplayRegistry, ri as BitfabError, rn as VerdictOutcome, rr as ExperimentTotals, rt as DbBranchReplayError, s as SeedCase, si as DbSnapshotRef, sn as VerdictUpdate, sr as AddDatasetTracesResult, st as ReplayItem, t as ReplayOptionsFactory, ti as NodeMatcher, tn as VerdictAction, tr as ExperimentStatus, tt as BITFAB_PROGRESS_PREFIX, u as reseedFromRegistry, ui as SelectiveReplayDecision, un as AssertionEvidenceParameter, ur as DatasetTraceIds, ut as ReplayOptions, v as BitfabFunction, vi as Approver, vn as AssertionVerdictEvidence, vr as ListDatasetsParams, vt as ReplayInterruptSignal, w as NodeOptions, wn as SaveScenarioData, wr as SaveDatasetResult, wt as BitfabLangGraphCallbackHandler, x as CurrentTrace, xi as JustificationSpan, xn as SaveAssertionsAllParams, xr as RerunGradersOptions, xt as BitfabOpenAIAgentHandler, y as CaptureWhen, yi as Assignee, yn as GenerateAssertionsOptions, yr as RemoveDatasetGradersResult, yt as OrganizationMember, z as ActiveSpanContext, zn as TraceAssertionsResult, zr as SaveCategoryParams, zt as HumanLabelOutcome } from "./index-j7SrvOqe.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 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-DyEKM7yn.js";
11
- import { S as MixedTracingError, i as flushTraces, t as HttpClient, w as __version__, x as BitfabError } from "./http-_cgR_DM2.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-Dze8o7iU.cjs");
15
- const require_http = require("./http-psFF1ptn.cjs");
16
- const require_autoTrace = require("./autoTrace-BikML0lX.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 AdaptContext, $n as ExperimentRollupResult, $r as MockValue, $t as TraceVerdicts, A as SpanMethodDecoratorContext, An as ScenarioActualOutcome, Ar as VercelStreamResult, At as GraderLabelUpdate, B as BitfabOpenAITracingProcessor, Bn as TraceAssertionsUpdate, Br as CapturedSpan, Bt as HumanLabelUpdate, C as NodeMethodDecorator, Cn as SaveScenarioActualOutcome, Cr as SaveDatasetParams, Ct as LangGraphIntegrationOptions, D as SeedCaseOptions, Dn as SavedTraceAssertion, Dr as BitfabVercelAiHandler, Dt as GraderLabel, E as ReseedResult, En as SaveScenarioParams, Er as BitfabLanguageModelMiddleware, Et as GetGraderVerdictsParams, F as getCurrentReplayBranch, Fn as ScenarioSource, Fr as CategoriesClient, Ft as GradersClient, G as SpanListParams, Gn as TraceTargetOccurrence, Gr as SpanType, Gt as LabelOutcome, H as TracingProcessor, Hn as TraceSearchParams, Hr as HttpClient, Ht as HumanVerdictUpdate, I as getCurrentSpan, In as ScenarioTrigger, Ir as Category, It as ArchiveLabelTarget, J as BitfabRivetIntegration, Jn as ExperimentCategoryTally, Jr as DbBranchTimings, Jt as LabelTarget, K as SpanListResult, Kn as TracesClient, Kr as TokenUsage, Kt as LabelSource, L as getCurrentTrace, Ln as TraceAssertion, Lr as CategorySummary, Lt as ArchiveVerdictTarget, M as WrapBAMLOptions, Mn as ScenarioDataAppend, Mr as AssertionCategoriesClient, Mt as GraderVerdictOutcome, N as WrapJevOptions, Nn as ScenarioDataOrigin, Nr as AssertionCategory, Nt as GraderVerdictSource, O as SeedRunOptions, On as Scenario, Or as VercelCallParams, Ot as GraderLabelOutcome, P as WrappedBamlFn, Pn as ScenarioHistoryEntry, Pr as AssertionCategorySummary, Pt as GraderVerdictUpdate, Q as ReplayBranch, Qn as ExperimentRollup, Qr as MockOverrideResolver, Qt as TraceLabels, R as CaptureSurface, Rn as TraceAssertionSource, Rr as SaveAssertionCategoryParams, Rt as AssertionVerdict, S as DetachedTrace, Sn as SaveAssertionsParams, Sr as RerunGradersResult, St as BitfabLangGraphIntegration, T as ReseedOptions, Tn as SaveScenarioHistoryEntry, Tr as UpdateDatasetParams, Tt as GetGraderLabelsParams, U as ListedSpan, Un as TraceSearchResult, Ur as SpanLookup, Ut as LabelAction, V as TraceResponse, Vn as TraceSearchFilters, Vr as CodeChangeFile, Vt as HumanVerdictOutcome, W as SpanListField, Wn as TraceTarget, Wr as SpanOccurrence, Wt as LabelConfidence, X as RivetEffectType, Xn as ExperimentJitter, Xr as MockOverrideCtx, Xt as LabelsClient, Y as RivetContextLike, Yn as ExperimentCodeChangeTotals, Yr as MockOverride, Yt as LabelUpdate, Z as RivetIntegrationOptions, Zn as ExperimentPage, Zr as MockOverrideInput, Zt as PassFailVerdict, _ as BitfabConfig, _i as ApprovalState, _n as AssertionRewriteStatus, _r as GraderRerunTimeoutError, _t as ReplayInterrupt, a as ReplayRegistryOptions, ai as DbSnapshotConfig, an as VerdictStatus, ar as ListExperimentsParams, at as ReplayError, b as CurrentSpan, bi as Justification, bn as SaveAssertion, br as RemoveDatasetTracesResult, bt as OrganizationMembersClient, c as SeedResult, ci as SUPPORTED_PROVIDERS, cn as VerdictsClient, cr as Dataset, ct as ReplayItemFinishProgress, d as seedFromRegistry, di as SelectiveReplayOptions, dn as AssertionGeneration, dr as DatasetsClient, dt as ReplayProgress, ei as NO_MOCK_OVERRIDE, en as Verdict, er as ExperimentRunBy, et as AdaptInputsFn, f as finalizers, fi as SelectiveReplayReport, fn as AssertionGenerationError, fr as GraderRerun, ft as ReplayProgressItem, g as Bitfab, gi as ApprovalFields, gn as AssertionRewrite, gr as GraderRerunStatus, gt as serializeReplayResult, h as CommitRef, hi as ProviderDefinition, hn as AssertionLabelEvidence, hr as GraderRerunResult, ht as reportReplayProgress, i as ReplayRegistryContext, ii as MixedTracingError, in as VerdictSource, ir as ExperimentsClient, it as MockStrategy, j as SpanOptions, jn as ScenarioData, jr as BitfabClaudeAgentHandler, jt as GraderVerdict, k as SpanMethodDecorator, kn as ScenarioAction, kr as VercelGenerateResult, kt as GraderLabelSource, l as defineReplayRegistry, li as ReplayNodeIdentity, ln as ArchiveAssertionsParams, lr as DatasetGraderRef, lt as ReplayItemStartProgress, m as __version__, mi as BamlExecutionResult, mn as AssertionGenerationTimeoutError, mr as GraderRerunProgress, mt as TraceIngestionType, n as ReplayRegistration, ni as SpanNodeMeta, nn as VerdictConfidence, nr as ExperimentTally, nt as DbBranchOptions, o as ReseedRegistryResult, oi as DbSnapshotProvider, on as VerdictTarget, or as AddDatasetGradersResult, ot as ReplayExperiment, p as DEFAULT_SERVICE_URL, pi as AllowedEnvVars, pn as AssertionGenerationStatus, pr as GraderRerunError, pt as ReplayResult, q as SpansClient, qn as Experiment, qr as flushTraces, qt as LabelStatus, r as ReplayRegistry, ri as BitfabError, rn as VerdictOutcome, rr as ExperimentTotals, rt as DbBranchReplayError, s as SeedCase, si as DbSnapshotRef, sn as VerdictUpdate, sr as AddDatasetTracesResult, st as ReplayItem, t as ReplayOptionsFactory, ti as NodeMatcher, tn as VerdictAction, tr as ExperimentStatus, tt as BITFAB_PROGRESS_PREFIX, u as reseedFromRegistry, ui as SelectiveReplayDecision, un as AssertionEvidenceParameter, ur as DatasetTraceIds, ut as ReplayOptions, v as BitfabFunction, vi as Approver, vn as AssertionVerdictEvidence, vr as ListDatasetsParams, vt as ReplayInterruptSignal, w as NodeOptions, wn as SaveScenarioData, wr as SaveDatasetResult, wt as BitfabLangGraphCallbackHandler, x as CurrentTrace, xi as JustificationSpan, xn as SaveAssertionsAllParams, xr as RerunGradersOptions, xt as BitfabOpenAIAgentHandler, y as CaptureWhen, yi as Assignee, yn as GenerateAssertionsOptions, yr as RemoveDatasetGradersResult, yt as OrganizationMember, z as ActiveSpanContext, zn as TraceAssertionsResult, zr as SaveCategoryParams, zt as HumanLabelOutcome } from "./index-j7SrvOqe.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 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/node.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as AdaptContext, $n as ExperimentRollupResult, $r as MockValue, $t as TraceVerdicts, A as SpanMethodDecoratorContext, An as ScenarioActualOutcome, Ar as VercelStreamResult, At as GraderLabelUpdate, B as BitfabOpenAITracingProcessor, Bn as TraceAssertionsUpdate, Br as CapturedSpan, Bt as HumanLabelUpdate, C as NodeMethodDecorator, Cn as SaveScenarioActualOutcome, Cr as SaveDatasetParams, Ct as LangGraphIntegrationOptions, D as SeedCaseOptions, Dn as SavedTraceAssertion, Dr as BitfabVercelAiHandler, Dt as GraderLabel, E as ReseedResult, En as SaveScenarioParams, Er as BitfabLanguageModelMiddleware, Et as GetGraderVerdictsParams, F as getCurrentReplayBranch, Fn as ScenarioSource, Fr as CategoriesClient, Ft as GradersClient, G as SpanListParams, Gn as TraceTargetOccurrence, Gr as SpanType, Gt as LabelOutcome, H as TracingProcessor, Hn as TraceSearchParams, Hr as HttpClient, Ht as HumanVerdictUpdate, I as getCurrentSpan, In as ScenarioTrigger, Ir as Category, It as ArchiveLabelTarget, J as BitfabRivetIntegration, Jn as ExperimentCategoryTally, Jr as DbBranchTimings, Jt as LabelTarget, K as SpanListResult, Kn as TracesClient, Kr as TokenUsage, Kt as LabelSource, L as getCurrentTrace, Ln as TraceAssertion, Lr as CategorySummary, Lt as ArchiveVerdictTarget, M as WrapBAMLOptions, Mn as ScenarioDataAppend, Mr as AssertionCategoriesClient, Mt as GraderVerdictOutcome, N as WrapJevOptions, Nn as ScenarioDataOrigin, Nr as AssertionCategory, Nt as GraderVerdictSource, O as SeedRunOptions, On as Scenario, Or as VercelCallParams, Ot as GraderLabelOutcome, P as WrappedBamlFn, Pn as ScenarioHistoryEntry, Pr as AssertionCategorySummary, Pt as GraderVerdictUpdate, Q as ReplayBranch, Qn as ExperimentRollup, Qr as MockOverrideResolver, Qt as TraceLabels, R as CaptureSurface, Rn as TraceAssertionSource, Rr as SaveAssertionCategoryParams, Rt as AssertionVerdict, S as DetachedTrace, Sn as SaveAssertionsParams, Sr as RerunGradersResult, St as BitfabLangGraphIntegration, T as ReseedOptions, Tn as SaveScenarioHistoryEntry, Tr as UpdateDatasetParams, Tt as GetGraderLabelsParams, U as ListedSpan, Un as TraceSearchResult, Ur as SpanLookup, Ut as LabelAction, V as TraceResponse, Vn as TraceSearchFilters, Vr as CodeChangeFile, Vt as HumanVerdictOutcome, W as SpanListField, Wn as TraceTarget, Wr as SpanOccurrence, Wt as LabelConfidence, X as RivetEffectType, Xn as ExperimentJitter, Xr as MockOverrideCtx, Xt as LabelsClient, Y as RivetContextLike, Yn as ExperimentCodeChangeTotals, Yr as MockOverride, Yt as LabelUpdate, Z as RivetIntegrationOptions, Zn as ExperimentPage, Zr as MockOverrideInput, Zt as PassFailVerdict, _ as BitfabConfig, _i as ApprovalState, _n as AssertionRewriteStatus, _r as GraderRerunTimeoutError, _t as ReplayInterrupt, a as ReplayRegistryOptions, ai as DbSnapshotConfig, an as VerdictStatus, ar as ListExperimentsParams, at as ReplayError, b as CurrentSpan, bi as Justification, bn as SaveAssertion, br as RemoveDatasetTracesResult, bt as OrganizationMembersClient, c as SeedResult, ci as SUPPORTED_PROVIDERS, cn as VerdictsClient, cr as Dataset, ct as ReplayItemFinishProgress, d as seedFromRegistry, di as SelectiveReplayOptions, dn as AssertionGeneration, dr as DatasetsClient, dt as ReplayProgress, ei as NO_MOCK_OVERRIDE, en as Verdict, er as ExperimentRunBy, et as AdaptInputsFn, f as finalizers, fi as SelectiveReplayReport, fn as AssertionGenerationError, fr as GraderRerun, ft as ReplayProgressItem, g as Bitfab, gi as ApprovalFields, gn as AssertionRewrite, gr as GraderRerunStatus, gt as serializeReplayResult, h as CommitRef, hi as ProviderDefinition, hn as AssertionLabelEvidence, hr as GraderRerunResult, ht as reportReplayProgress, i as ReplayRegistryContext, ii as MixedTracingError, in as VerdictSource, ir as ExperimentsClient, it as MockStrategy, j as SpanOptions, jn as ScenarioData, jr as BitfabClaudeAgentHandler, jt as GraderVerdict, k as SpanMethodDecorator, kn as ScenarioAction, kr as VercelGenerateResult, kt as GraderLabelSource, l as defineReplayRegistry, li as ReplayNodeIdentity, ln as ArchiveAssertionsParams, lr as DatasetGraderRef, lt as ReplayItemStartProgress, m as __version__, mi as BamlExecutionResult, mn as AssertionGenerationTimeoutError, mr as GraderRerunProgress, mt as TraceIngestionType, n as ReplayRegistration, ni as SpanNodeMeta, nn as VerdictConfidence, nr as ExperimentTally, nt as DbBranchOptions, o as ReseedRegistryResult, oi as DbSnapshotProvider, on as VerdictTarget, or as AddDatasetGradersResult, ot as ReplayExperiment, p as DEFAULT_SERVICE_URL, pi as AllowedEnvVars, pn as AssertionGenerationStatus, pr as GraderRerunError, pt as ReplayResult, q as SpansClient, qn as Experiment, qr as flushTraces, qt as LabelStatus, r as ReplayRegistry, ri as BitfabError, rn as VerdictOutcome, rr as ExperimentTotals, rt as DbBranchReplayError, s as SeedCase, si as DbSnapshotRef, sn as VerdictUpdate, sr as AddDatasetTracesResult, st as ReplayItem, t as ReplayOptionsFactory, ti as NodeMatcher, tn as VerdictAction, tr as ExperimentStatus, tt as BITFAB_PROGRESS_PREFIX, u as reseedFromRegistry, ui as SelectiveReplayDecision, un as AssertionEvidenceParameter, ur as DatasetTraceIds, ut as ReplayOptions, v as BitfabFunction, vi as Approver, vn as AssertionVerdictEvidence, vr as ListDatasetsParams, vt as ReplayInterruptSignal, w as NodeOptions, wn as SaveScenarioData, wr as SaveDatasetResult, wt as BitfabLangGraphCallbackHandler, x as CurrentTrace, xi as JustificationSpan, xn as SaveAssertionsAllParams, xr as RerunGradersOptions, xt as BitfabOpenAIAgentHandler, y as CaptureWhen, yi as Assignee, yn as GenerateAssertionsOptions, yr as RemoveDatasetGradersResult, yt as OrganizationMember, z as ActiveSpanContext, zn as TraceAssertionsResult, zr as SaveCategoryParams, zt as HumanLabelOutcome } from "./index-j7SrvOqe.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 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/node.js CHANGED
@@ -7,9 +7,9 @@ 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-DyEKM7yn.js";
11
- import { S as MixedTracingError, i as flushTraces, t as HttpClient, w as __version__, x as BitfabError } from "./http-_cgR_DM2.js";
12
- import { C as registerAsyncLocalStorageClass, y as assertAsyncStorageRegistered } from "./autoTrace-CVt9EDyo.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
+ import { C as assertAsyncStorageRegistered, D as registerAsyncLocalStorageClass } from "./autoTrace-ghnojSj9.js";
13
13
  import { AsyncLocalStorage } from "async_hooks";
14
14
  //#region src/asyncStorageNode.ts
15
15
  registerAsyncLocalStorageClass(AsyncLocalStorage);