bitfab 0.68.4 → 0.68.6

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 (68) hide show
  1. package/dist/{autoTrace-D3-OZcmR.cjs → autoTrace-DUmR1KJ8.cjs} +417 -62
  2. package/dist/autoTrace-DUmR1KJ8.cjs.map +1 -0
  3. package/dist/{autoTrace-ghnojSj9.js → autoTrace-DVnpnuMb.js} +322 -57
  4. package/dist/autoTrace-DVnpnuMb.js.map +1 -0
  5. package/dist/autoTrace.cjs +3 -1
  6. package/dist/autoTrace.d.cts +29 -1
  7. package/dist/autoTrace.d.ts +29 -1
  8. package/dist/autoTrace.js +1 -1
  9. package/dist/{babelPlugin-0uOq-j1Q.cjs → babelPlugin-C0Im6AZ2.cjs} +37 -14
  10. package/dist/babelPlugin-C0Im6AZ2.cjs.map +1 -0
  11. package/dist/{babelPlugin-Muq0uuuu.js → babelPlugin-hS2Hb2vt.js} +37 -14
  12. package/dist/babelPlugin-hS2Hb2vt.js.map +1 -0
  13. package/dist/baml.cjs +1 -1
  14. package/dist/baml.js +1 -1
  15. package/dist/{bamlPeer-BUoZgNxZ.cjs → bamlPeer-5Ohpq8q9.cjs} +3 -17
  16. package/dist/bamlPeer-5Ohpq8q9.cjs.map +1 -0
  17. package/dist/{bamlPeer-CIVwS68E.js → bamlPeer-Dyeb3e5o.js} +3 -11
  18. package/dist/bamlPeer-Dyeb3e5o.js.map +1 -0
  19. package/dist/{http-C-HrwUb8.cjs → http-CARmid5D.cjs} +4 -4
  20. package/dist/{http-C-HrwUb8.cjs.map → http-CARmid5D.cjs.map} +1 -1
  21. package/dist/{http-BGY4ULH5.js → http-CYIjoMdj.js} +3 -3
  22. package/dist/{http-BGY4ULH5.js.map → http-CYIjoMdj.js.map} +1 -1
  23. package/dist/{index-BcGxu85i.d.cts → index-BuP59-AI.d.cts} +189 -4
  24. package/dist/{index-BcGxu85i.d.ts → index-BuP59-AI.d.ts} +189 -4
  25. package/dist/index.cjs +2 -2
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +2 -2
  29. package/dist/node.cjs +3 -3
  30. package/dist/node.d.cts +2 -2
  31. package/dist/node.d.ts +2 -2
  32. package/dist/node.js +3 -3
  33. package/dist/optionalPeer-CUH756lt.cjs +17 -0
  34. package/dist/optionalPeer-CUH756lt.cjs.map +1 -0
  35. package/dist/optionalPeer-CczrzrXx.js +12 -0
  36. package/dist/optionalPeer-CczrzrXx.js.map +1 -0
  37. package/dist/{registryCommand-Dk4Y1ZgW.js → registryCommand-D7bfo0Au.js} +179 -8
  38. package/dist/registryCommand-D7bfo0Au.js.map +1 -0
  39. package/dist/replayCli.js +1 -1
  40. package/dist/seedCli.js +1 -1
  41. package/dist/{src-BG2_8Fpf.cjs → src-C3H1v_hp.cjs} +62 -81
  42. package/dist/src-C3H1v_hp.cjs.map +1 -0
  43. package/dist/{src-Cmfs_7Ib.js → src-DgeGOhjN.js} +51 -70
  44. package/dist/src-DgeGOhjN.js.map +1 -0
  45. package/dist/transform/babel.cjs +1 -1
  46. package/dist/transform/babel.js +1 -1
  47. package/dist/transform/loaderRuntime.cjs +2 -2
  48. package/dist/transform/loaderRuntime.js +2 -2
  49. package/dist/transform/nodeLoader.js +36 -13
  50. package/dist/transform/nodeLoader.js.map +1 -1
  51. package/dist/transform/swc.cjs +1 -1
  52. package/dist/transform/swc.js +1 -1
  53. package/dist/transform/unplugin.cjs +2 -2
  54. package/dist/transform/unplugin.js +2 -2
  55. package/dist/{transform-CAJyLLe2.js → transform-BL1fJW-C.js} +2 -2
  56. package/dist/{transform-CAJyLLe2.js.map → transform-BL1fJW-C.js.map} +1 -1
  57. package/dist/{transform-ClCOpCZ2.cjs → transform-C4H7TKW-.cjs} +2 -2
  58. package/dist/{transform-ClCOpCZ2.cjs.map → transform-C4H7TKW-.cjs.map} +1 -1
  59. package/package.json +1 -1
  60. package/dist/autoTrace-D3-OZcmR.cjs.map +0 -1
  61. package/dist/autoTrace-ghnojSj9.js.map +0 -1
  62. package/dist/babelPlugin-0uOq-j1Q.cjs.map +0 -1
  63. package/dist/babelPlugin-Muq0uuuu.js.map +0 -1
  64. package/dist/bamlPeer-BUoZgNxZ.cjs.map +0 -1
  65. package/dist/bamlPeer-CIVwS68E.js.map +0 -1
  66. package/dist/registryCommand-Dk4Y1ZgW.js.map +0 -1
  67. package/dist/src-BG2_8Fpf.cjs.map +0 -1
  68. package/dist/src-Cmfs_7Ib.js.map +0 -1
@@ -1761,11 +1761,61 @@ type ScenarioHistoryEntry = {
1761
1761
  sincePrevious: string | null;
1762
1762
  source: ScenarioSource | null;
1763
1763
  };
1764
+ /**
1765
+ * One record your own systems hold that relates to the run, such as a
1766
+ * message, a memory, or an order, as sent to `saveScenario`.
1767
+ */
1768
+ type ScenarioRecordInput = {
1769
+ /** Any name for the kind of record, such as `"memory"` or `"order"`. */
1770
+ kind: string;
1771
+ /** Your own pointer to the record, such as `"Memory:812"`. */
1772
+ ref: string;
1773
+ /** When the record came to exist, as an ISO 8601 time, or null. */
1774
+ at: string | null;
1775
+ /** `"run"` when the record is as it was at the run, `"now"` when no history is kept for it. */
1776
+ asOf: "run" | "now";
1777
+ title: string;
1778
+ text: string;
1779
+ /**
1780
+ * The exact text Bitfab looks for in the run's spans, or null to look for
1781
+ * `text` instead.
1782
+ */
1783
+ quote: string | null;
1784
+ };
1785
+ /**
1786
+ * A saved record. `source` is the span Bitfab found it in, or null when it
1787
+ * shows up in none of the run's spans.
1788
+ */
1789
+ type ScenarioRecord = ScenarioRecordInput & {
1790
+ source: ScenarioSource | null;
1791
+ };
1792
+ /**
1793
+ * Where a scenario's records came from: when the run started, when its data
1794
+ * was captured, how many days each windowed kind reaches, and how fully each
1795
+ * kind of data was read.
1796
+ */
1797
+ type ScenarioDataSources = {
1798
+ frameAt: string;
1799
+ capturedAt: string | null;
1800
+ windows: Record<string, number>;
1801
+ coverage: {
1802
+ calendarExcludedCount?: number;
1803
+ filledColumns: {
1804
+ absentNullable: string[];
1805
+ defaultedNonNullable: string[];
1806
+ };
1807
+ [key: string]: unknown;
1808
+ };
1809
+ };
1764
1810
  type ScenarioData = {
1765
1811
  hasHistory: boolean;
1766
1812
  topic: string;
1767
1813
  history: ScenarioHistoryEntry[];
1768
1814
  missing: string[];
1815
+ /** The scenario's records, or absent when none have been saved. */
1816
+ records?: ScenarioRecord[];
1817
+ /** Where the records came from, or absent when not saved. */
1818
+ sources?: ScenarioDataSources;
1769
1819
  };
1770
1820
  /** One thing the run did, such as sending a message or calling a tool. */
1771
1821
  type ScenarioAction = {
@@ -1818,7 +1868,13 @@ type Scenario = {
1818
1868
  type SaveScenarioHistoryEntry = Omit<ScenarioHistoryEntry, "source"> & {
1819
1869
  source?: ScenarioSource | null;
1820
1870
  };
1821
- type SaveScenarioData = Omit<ScenarioData, "history"> & {
1871
+ /**
1872
+ * The whole data object sent to `saveScenario`. It has no records: the saved
1873
+ * records are kept, and `records` on `saveScenario` replaces them. A data
1874
+ * object read back from `getScenario` can be sent as it is, and its `records`
1875
+ * and `sources` are left out of the request.
1876
+ */
1877
+ type SaveScenarioData = Omit<ScenarioData, "history" | "records" | "sources"> & {
1822
1878
  history: SaveScenarioHistoryEntry[];
1823
1879
  };
1824
1880
  /**
@@ -1832,8 +1888,10 @@ type ScenarioDataAppend = {
1832
1888
  history?: SaveScenarioHistoryEntry[];
1833
1889
  missing?: string[];
1834
1890
  };
1835
- type SaveScenarioParams = {
1891
+ type SaveScenarioEditParams = {
1836
1892
  traceId: string;
1893
+ records?: never;
1894
+ sources?: never;
1837
1895
  name?: string;
1838
1896
  description?: string;
1839
1897
  trigger?: ScenarioTrigger;
@@ -1870,6 +1928,26 @@ type SaveScenarioParams = {
1870
1928
  } | {
1871
1929
  categoryIds: string[];
1872
1930
  });
1931
+ /**
1932
+ * Replaces the scenario's records whole. Bitfab looks for each record's
1933
+ * `quote`, or failing that its `text`, in the run's spans and saves the span
1934
+ * it shows up in. Records are saved on their own, with only `sources` beside
1935
+ * them. A non-empty list is refused while the scenario's trigger is empty.
1936
+ */
1937
+ type SaveScenarioRecordsParams = {
1938
+ traceId: string;
1939
+ records: ScenarioRecordInput[];
1940
+ /** Where the records came from. Leaving it out clears the saved sources. */
1941
+ sources?: ScenarioDataSources;
1942
+ name?: never;
1943
+ description?: never;
1944
+ trigger?: never;
1945
+ data?: never;
1946
+ appendData?: never;
1947
+ actualOutcome?: never;
1948
+ categoryIds?: never;
1949
+ };
1950
+ type SaveScenarioParams = SaveScenarioEditParams | SaveScenarioRecordsParams;
1873
1951
  type AssertionGenerationStatus = "running" | "completed" | "failed";
1874
1952
  type AssertionGeneration = {
1875
1953
  status: AssertionGenerationStatus;
@@ -3607,6 +3685,14 @@ interface WrapOpenRouterOptions<TResponse> {
3607
3685
  /** Called after each call with the chat completion, for the caller's own usage or cost reporting. */
3608
3686
  onResponse?: (response: TResponse) => void;
3609
3687
  }
3688
+ interface WrapAnthropicOptions<TResponse> {
3689
+ /** Called after each call with the Anthropic message, for the caller's own usage or cost reporting. */
3690
+ onResponse?: (response: TResponse) => void;
3691
+ }
3692
+ interface WrapOpenAIResponsesOptions<TResponse> {
3693
+ /** Called after each call with the OpenAI response, for the caller's own usage or cost reporting. */
3694
+ onResponse?: (response: TResponse) => void;
3695
+ }
3610
3696
  interface WrapBAMLOptions {
3611
3697
  /** Called after each BAML invocation with the Collector instance. */
3612
3698
  onCollector?: (collector: unknown) => void;
@@ -4350,6 +4436,79 @@ declare class Bitfab {
4350
4436
  * @returns An async function with the same signature that records each call
4351
4437
  */
4352
4438
  wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4439
+ /**
4440
+ * Wrap a function that sends a request to the Anthropic Messages API to
4441
+ * record the call's prompt, model, token usage, and duration. Bitfab works
4442
+ * out the cost from the model and token counts.
4443
+ *
4444
+ * Like `wrapOpenRouter`, it opens no span of its own. It writes into the
4445
+ * span that is current when the call starts, so call it inside a traced
4446
+ * function. The wrapped function must return the message, as
4447
+ * `anthropic.messages.create` does. When its first argument is the request,
4448
+ * the request's `system` and `messages` become the span's prompt. One
4449
+ * context entry holds `provider` (`"anthropic"`), `model`, `inputTokens`
4450
+ * (every prompt token, cache reads and cache writes included),
4451
+ * `outputTokens`, `cachedInputTokens` (cache reads), and `durationMs`;
4452
+ * fields the response omits are left out.
4453
+ *
4454
+ * Beneath a `withTrace()` root, each `.messages.create(...)` call on an
4455
+ * `@anthropic-ai/sdk` client in code compiled by the build transform is
4456
+ * recorded without this wrapper as its own `llm` span, and a
4457
+ * `wrapAnthropic` around such a call records nothing more. Streaming calls
4458
+ * (`stream: true`) are not recorded.
4459
+ *
4460
+ * ```typescript
4461
+ * const anthropic = new Anthropic()
4462
+ * const send = client.wrapAnthropic(
4463
+ * anthropic.messages.create.bind(anthropic.messages),
4464
+ * )
4465
+ * const message = await send({
4466
+ * model: "claude-sonnet-4-5",
4467
+ * max_tokens: 1024,
4468
+ * messages: [{ role: "user", content: text }],
4469
+ * })
4470
+ * ```
4471
+ *
4472
+ * @param method - A named function that sends the request and returns the message
4473
+ * @param options - `onResponse` is called with each message after it is recorded
4474
+ * @returns An async function with the same signature that records each call
4475
+ */
4476
+ wrapAnthropic<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapAnthropicOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4477
+ /**
4478
+ * Wrap a function that sends a request to the OpenAI Responses API to record
4479
+ * the call's prompt, model, token usage, and duration. Bitfab works out the
4480
+ * cost from the model and token counts.
4481
+ *
4482
+ * Like `wrapOpenRouter`, it opens no span of its own. It writes into the
4483
+ * span that is current when the call starts, so call it inside a traced
4484
+ * function. The wrapped function must return the response, as
4485
+ * `openai.responses.create` does. When its first argument is the request,
4486
+ * the request's `instructions` and `input` become the span's prompt. One
4487
+ * context entry holds `provider` (`"openai"`), `model`, `inputTokens`,
4488
+ * `outputTokens`, `cachedInputTokens`, `reasoningTokens`, `costUsd` (only
4489
+ * when the response reports `usage.cost`), and `durationMs`; fields the
4490
+ * response omits are left out.
4491
+ *
4492
+ * Beneath a `withTrace()` root, each `.responses.create(...)` call on an
4493
+ * `openai` client in code compiled by the build transform is recorded
4494
+ * without this wrapper as its own `llm` span, and a `wrapOpenAIResponses`
4495
+ * around such a call records nothing more. Streaming calls (`stream: true`)
4496
+ * are not recorded.
4497
+ *
4498
+ * ```typescript
4499
+ * const openai = new OpenAI()
4500
+ * const respond = client.wrapOpenAIResponses(
4501
+ * openai.responses.create.bind(openai.responses),
4502
+ * )
4503
+ * const response = await respond({ model: "gpt-5-mini", input: text })
4504
+ * ```
4505
+ *
4506
+ * @param method - A named function that sends the request and returns the response
4507
+ * @param options - `onResponse` is called with each response after it is recorded
4508
+ * @returns An async function with the same signature that records each call
4509
+ */
4510
+ wrapOpenAIResponses<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenAIResponsesOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4511
+ private wrapClientCall;
4353
4512
  /**
4354
4513
  * Wrap a function to automatically create a span for its inputs and outputs.
4355
4514
  *
@@ -4764,6 +4923,32 @@ declare class BitfabFunction {
4764
4923
  * @returns An async function with the same signature that records each call
4765
4924
  */
4766
4925
  wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4926
+ /**
4927
+ * Wrap a function that sends a request to the Anthropic Messages API to
4928
+ * record the call's prompt, model, token usage, and duration. Delegates to
4929
+ * the parent client's wrapAnthropic method.
4930
+ *
4931
+ * Like `wrapJev`, it does not use the bound key and opens no span of its
4932
+ * own: it writes into the span that is current when the call starts.
4933
+ *
4934
+ * @param method - A named function that sends the request and returns the message
4935
+ * @param options - `onResponse` is called with each message after it is recorded
4936
+ * @returns An async function with the same signature that records each call
4937
+ */
4938
+ wrapAnthropic<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapAnthropicOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4939
+ /**
4940
+ * Wrap a function that sends a request to the OpenAI Responses API to record
4941
+ * the call's prompt, model, token usage, and duration. Delegates to the
4942
+ * parent client's wrapOpenAIResponses method.
4943
+ *
4944
+ * Like `wrapJev`, it does not use the bound key and opens no span of its
4945
+ * own: it writes into the span that is current when the call starts.
4946
+ *
4947
+ * @param method - A named function that sends the request and returns the response
4948
+ * @param options - `onResponse` is called with each response after it is recorded
4949
+ * @returns An async function with the same signature that records each call
4950
+ */
4951
+ wrapOpenAIResponses<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenAIResponsesOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4767
4952
  }
4768
4953
  //#endregion
4769
4954
  //#region src/commitRef.d.ts
@@ -4784,7 +4969,7 @@ interface CommitRef {
4784
4969
  /**
4785
4970
  * SDK version from package.json (injected at build time)
4786
4971
  */
4787
- declare const __version__ = "0.68.4";
4972
+ declare const __version__ = "0.68.6";
4788
4973
  //#endregion
4789
4974
  //#region src/constants.d.ts
4790
4975
  /**
@@ -4926,4 +5111,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
4926
5111
  run?: boolean;
4927
5112
  }): Promise<SeedResult>;
4928
5113
  //#endregion
4929
- export { ReplayBranch as $, ExperimentJitter as $n, MockOverrideCtx as $r, LabelsClient as $t, SpanMethodDecoratorContext as A, SavedTraceAssertion as An, BitfabVercelAiHandler as Ar, GraderLabel as At, ActiveSpanContext as B, TraceAssertion as Bn, CategorySummary as Br, ArchiveVerdictTarget as Bt, NodeMethodDecorator as C, Justification as Ci, SaveAssertion as Cn, RemoveDatasetTracesResult as Cr, BitfabAgentMiddleware as Ct, SeedCaseOptions as D, SaveScenarioData as Dn, SaveDatasetResult as Dr, BitfabLangGraphCallbackHandler as Dt, ReseedResult as E, SaveScenarioActualOutcome as En, SaveDatasetParams as Er, LangGraphIntegrationOptions as Et, WrappedBamlFn as F, ScenarioDataAppend as Fn, AssertionCategoriesClient as Fr, GraderVerdictOutcome as Ft, SpanListField as G, TraceSearchParams as Gn, HttpClient as Gr, HumanVerdictUpdate as Gt, TraceResponse as H, TraceAssertionsResult as Hn, SaveCategoryParams as Hr, HumanLabelOutcome as Ht, getCurrentReplayBranch as I, ScenarioDataOrigin as In, AssertionCategory as Ir, GraderVerdictSource as It, SpansClient as J, TraceTargetOccurrence as Jn, SpanType as Jr, LabelOutcome as Jt, SpanListParams as K, TraceSearchResult as Kn, SpanLookup as Kr, LabelAction as Kt, getCurrentSpan as L, ScenarioHistoryEntry as Ln, AssertionCategorySummary as Lr, GraderVerdictUpdate as Lt, WrapBAMLOptions as M, ScenarioAction as Mn, VercelGenerateResult as Mr, GraderLabelSource as Mt, WrapJevOptions as N, ScenarioActualOutcome as Nn, VercelStreamResult as Nr, GraderLabelUpdate as Nt, SeedRunOptions as O, SaveScenarioHistoryEntry as On, UpdateDatasetParams as Or, GetGraderLabelsParams as Ot, WrapOpenRouterOptions as P, ScenarioData as Pn, BitfabClaudeAgentHandler as Pr, GraderVerdict as Pt, RivetIntegrationOptions as Q, ExperimentCodeChangeTotals as Qn, MockOverride as Qr, LabelUpdate as Qt, getCurrentTrace as R, ScenarioSource as Rn, CategoriesClient as Rr, GradersClient as Rt, DetachedTrace as S, Assignee as Si, GenerateAssertionsOptions as Sn, RemoveDatasetGradersResult as Sr, BitfabOpenAIAgentHandler as St, ReseedOptions as T, SaveAssertionsParams as Tn, RerunGradersResult as Tr, BitfabLangGraphIntegration as Tt, TracingProcessor as U, TraceAssertionsUpdate as Un, CapturedSpan as Ur, HumanLabelUpdate as Ut, BitfabOpenAITracingProcessor as V, TraceAssertionSource as Vn, SaveAssertionCategoryParams as Vr, AssertionVerdict as Vt, ListedSpan as W, TraceSearchFilters as Wn, CodeChangeFile as Wr, HumanVerdictOutcome as Wt, RivetContextLike as X, Experiment as Xn, flushTraces as Xr, LabelStatus as Xt, BitfabRivetIntegration as Y, TracesClient as Yn, TokenUsage as Yr, LabelSource as Yt, RivetEffectType as Z, ExperimentCategoryTally as Zn, DbBranchTimings as Zr, LabelTarget as Zt, BitfabConfig as _, BamlExecutionResult as _i, AssertionGenerationTimeoutError as _n, GraderRerunProgress as _r, serializeReplayResult as _t, ReplayRegistryOptions as a, SpanNodeMeta as ai, VerdictConfidence as an, ExperimentTally as ar, MockStrategy as at, CurrentSpan as b, ApprovalState as bi, AssertionRewriteStatus as bn, GraderRerunTimeoutError as br, OrganizationMember as bt, SeedResult as c, DbSnapshotConfig as ci, VerdictStatus as cn, ListExperimentsParams as cr, ReplayItem as ct, seedFromRegistry as d, SUPPORTED_PROVIDERS as di, VerdictsClient as dn, Dataset as dr, ReplayOptions as dt, MockOverrideInput as ei, PassFailVerdict as en, ExperimentPage as er, AdaptContext as et, finalizers as f, ReplayNodeIdentity as fi, ArchiveAssertionsParams as fn, DatasetGraderRef as fr, ReplayProgress as ft, Bitfab as g, AllowedEnvVars as gi, AssertionGenerationStatus as gn, GraderRerunError as gr, reportReplayProgress as gt, CommitRef as h, SelectiveReplayReport as hi, AssertionGenerationError as hn, GraderRerun as hr, TraceIngestionType as ht, ReplayRegistryContext as i, NodeMatcher as ii, VerdictAction as in, ExperimentStatus as ir, DbBranchReplayError as it, SpanOptions as j, Scenario as jn, VercelCallParams as jr, GraderLabelOutcome as jt, SpanMethodDecorator as k, SaveScenarioParams as kn, BitfabLanguageModelMiddleware as kr, GetGraderVerdictsParams as kt, defineReplayRegistry as l, DbSnapshotProvider as li, VerdictTarget as ln, AddDatasetGradersResult as lr, ReplayItemFinishProgress as lt, __version__ as m, SelectiveReplayOptions as mi, AssertionGeneration as mn, DatasetsClient as mr, ReplayResult as mt, ReplayRegistration as n, MockValue as ni, TraceVerdicts as nn, ExperimentRollupResult as nr, BITFAB_PROGRESS_PREFIX as nt, ReseedRegistryResult as o, BitfabError as oi, VerdictOutcome as on, ExperimentTotals as or, ReplayError as ot, DEFAULT_SERVICE_URL as p, SelectiveReplayDecision as pi, AssertionEvidenceParameter as pn, DatasetTraceIds as pr, ReplayProgressItem as pt, SpanListResult as q, TraceTarget as qn, SpanOccurrence as qr, LabelConfidence as qt, ReplayRegistry as r, NO_MOCK_OVERRIDE as ri, Verdict as rn, ExperimentRunBy as rr, DbBranchOptions as rt, SeedCase as s, MixedTracingError as si, VerdictSource as sn, ExperimentsClient as sr, ReplayExperiment as st, ReplayOptionsFactory as t, MockOverrideResolver as ti, TraceLabels as tn, ExperimentRollup as tr, AdaptInputsFn as tt, reseedFromRegistry as u, DbSnapshotRef as ui, VerdictUpdate as un, AddDatasetTracesResult as ur, ReplayItemStartProgress as ut, BitfabFunction as v, ProviderDefinition as vi, AssertionLabelEvidence as vn, GraderRerunResult as vr, ReplayInterrupt as vt, NodeOptions as w, JustificationSpan as wi, SaveAssertionsAllParams as wn, RerunGradersOptions as wr, BitfabLangGraphAgent as wt, CurrentTrace as x, Approver as xi, AssertionVerdictEvidence as xn, ListDatasetsParams as xr, OrganizationMembersClient as xt, CaptureWhen as y, ApprovalFields as yi, AssertionRewrite as yn, GraderRerunStatus as yr, ReplayInterruptSignal as yt, CaptureSurface as z, ScenarioTrigger as zn, Category as zr, ArchiveLabelTarget as zt };
5114
+ export { RivetEffectType as $, TraceTargetOccurrence as $n, SpanType as $r, LabelTarget as $t, SpanMethodDecoratorContext as A, SaveScenarioHistoryEntry as An, RerunGradersResult as Ar, GetGraderLabelsParams as At, getCurrentTrace as B, ScenarioHistoryEntry as Bn, AssertionCategoriesClient as Br, GradersClient as Bt, NodeMethodDecorator as C, ProviderDefinition as Ci, AssertionVerdictEvidence as Cn, GraderRerunResult as Cr, OrganizationMembersClient as Ct, SeedCaseOptions as D, Assignee as Di, SaveAssertionsParams as Dn, RemoveDatasetGradersResult as Dr, BitfabLangGraphIntegration as Dt, ReseedResult as E, Approver as Ei, SaveAssertionsAllParams as En, ListDatasetsParams as Er, BitfabLangGraphAgent as Et, WrapOpenAIResponsesOptions as F, ScenarioActualOutcome as Fn, BitfabVercelAiHandler as Fr, GraderLabelUpdate as Ft, TracingProcessor as G, TraceAssertion as Gn, CategorySummary as Gr, HumanLabelUpdate as Gt, ActiveSpanContext as H, ScenarioRecordInput as Hn, AssertionCategorySummary as Hr, ArchiveVerdictTarget as Ht, WrapOpenRouterOptions as I, ScenarioData as In, VercelCallParams as Ir, GraderVerdict as It, SpanListParams as J, TraceAssertionsUpdate as Jn, CapturedSpan as Jr, LabelAction as Jt, ListedSpan as K, TraceAssertionSource as Kn, SaveAssertionCategoryParams as Kr, HumanVerdictOutcome as Kt, WrappedBamlFn as L, ScenarioDataAppend as Ln, VercelGenerateResult as Lr, GraderVerdictOutcome as Lt, WrapAnthropicOptions as M, SavedTraceAssertion as Mn, SaveDatasetResult as Mr, GraderLabel as Mt, WrapBAMLOptions as N, Scenario as Nn, UpdateDatasetParams as Nr, GraderLabelOutcome as Nt, SeedRunOptions as O, Justification as Oi, SaveScenarioActualOutcome as On, RemoveDatasetTracesResult as Or, LangGraphIntegrationOptions as Ot, WrapJevOptions as P, ScenarioAction as Pn, BitfabLanguageModelMiddleware as Pr, GraderLabelSource as Pt, RivetContextLike as Q, TraceTarget as Qn, SpanOccurrence as Qr, LabelStatus as Qt, getCurrentReplayBranch as R, ScenarioDataOrigin as Rn, VercelStreamResult as Rr, GraderVerdictSource as Rt, DetachedTrace as S, BamlExecutionResult as Si, AssertionRewriteStatus as Sn, GraderRerunProgress as Sr, OrganizationMember as St, ReseedOptions as T, ApprovalState as Ti, SaveAssertion as Tn, GraderRerunTimeoutError as Tr, BitfabAgentMiddleware as Tt, BitfabOpenAITracingProcessor as U, ScenarioSource as Un, CategoriesClient as Ur, AssertionVerdict as Ut, CaptureSurface as V, ScenarioRecord as Vn, AssertionCategory as Vr, ArchiveLabelTarget as Vt, TraceResponse as W, ScenarioTrigger as Wn, Category as Wr, HumanLabelOutcome as Wt, SpansClient as X, TraceSearchParams as Xn, HttpClient as Xr, LabelOutcome as Xt, SpanListResult as Y, TraceSearchFilters as Yn, CodeChangeFile as Yr, LabelConfidence as Yt, BitfabRivetIntegration as Z, TraceSearchResult as Zn, SpanLookup as Zr, LabelSource as Zt, BitfabConfig as _, ReplayNodeIdentity as _i, AssertionGenerationError as _n, DatasetGraderRef as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, MockOverrideInput as ai, Verdict as an, ExperimentPage as ar, DbBranchOptions as at, CurrentSpan as b, SelectiveReplayReport as bi, AssertionLabelEvidence as bn, GraderRerun as br, ReplayInterrupt as bt, SeedResult as c, NO_MOCK_OVERRIDE as ci, VerdictOutcome as cn, ExperimentRunBy as cr, ReplayError as ct, seedFromRegistry as d, BitfabError as di, VerdictTarget as dn, ExperimentTotals as dr, ReplayItemFinishProgress as dt, TokenUsage as ei, LabelUpdate as en, TracesClient as er, RivetIntegrationOptions as et, finalizers as f, MixedTracingError as fi, VerdictUpdate as fn, ExperimentsClient as fr, ReplayItemStartProgress as ft, Bitfab as g, SUPPORTED_PROVIDERS as gi, AssertionGeneration as gn, Dataset as gr, ReplayResult as gt, CommitRef as h, DbSnapshotRef as hi, AssertionEvidenceParameter as hn, AddDatasetTracesResult as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, MockOverrideCtx as ii, TraceVerdicts as in, ExperimentJitter as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SaveScenarioParams as jn, SaveDatasetParams as jr, GetGraderVerdictsParams as jt, SpanMethodDecorator as k, JustificationSpan as ki, SaveScenarioData as kn, RerunGradersOptions as kr, BitfabLangGraphCallbackHandler as kt, defineReplayRegistry as l, NodeMatcher as li, VerdictSource as ln, ExperimentStatus as lr, ReplayExperiment as lt, __version__ as m, DbSnapshotProvider as mi, ArchiveAssertionsParams as mn, AddDatasetGradersResult as mr, ReplayProgress as mt, ReplayRegistration as n, DbBranchTimings as ni, PassFailVerdict as nn, ExperimentCategoryTally as nr, AdaptContext as nt, ReseedRegistryResult as o, MockOverrideResolver as oi, VerdictAction as on, ExperimentRollup as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, DbSnapshotConfig as pi, VerdictsClient as pn, ListExperimentsParams as pr, ReplayOptions as pt, SpanListField as q, TraceAssertionsResult as qn, SaveCategoryParams as qr, HumanVerdictUpdate as qt, ReplayRegistry as r, MockOverride as ri, TraceLabels as rn, ExperimentCodeChangeTotals as rr, AdaptInputsFn as rt, SeedCase as s, MockValue as si, VerdictConfidence as sn, ExperimentRollupResult as sr, MockStrategy as st, ReplayOptionsFactory as t, flushTraces as ti, LabelsClient as tn, Experiment as tr, ReplayBranch as tt, reseedFromRegistry as u, SpanNodeMeta as ui, VerdictStatus as un, ExperimentTally as ur, ReplayItem as ut, BitfabFunction as v, SelectiveReplayDecision as vi, AssertionGenerationStatus as vn, DatasetTraceIds as vr, reportReplayProgress as vt, NodeOptions as w, ApprovalFields as wi, GenerateAssertionsOptions as wn, GraderRerunStatus as wr, BitfabOpenAIAgentHandler as wt, CurrentTrace as x, AllowedEnvVars as xi, AssertionRewrite as xn, GraderRerunError as xr, ReplayInterruptSignal as xt, CaptureWhen as y, SelectiveReplayOptions as yi, AssertionGenerationTimeoutError as yn, DatasetsClient as yr, serializeReplayResult as yt, getCurrentSpan as z, ScenarioDataSources as zn, BitfabClaudeAgentHandler as zr, GraderVerdictUpdate as zt };
@@ -1761,11 +1761,61 @@ type ScenarioHistoryEntry = {
1761
1761
  sincePrevious: string | null;
1762
1762
  source: ScenarioSource | null;
1763
1763
  };
1764
+ /**
1765
+ * One record your own systems hold that relates to the run, such as a
1766
+ * message, a memory, or an order, as sent to `saveScenario`.
1767
+ */
1768
+ type ScenarioRecordInput = {
1769
+ /** Any name for the kind of record, such as `"memory"` or `"order"`. */
1770
+ kind: string;
1771
+ /** Your own pointer to the record, such as `"Memory:812"`. */
1772
+ ref: string;
1773
+ /** When the record came to exist, as an ISO 8601 time, or null. */
1774
+ at: string | null;
1775
+ /** `"run"` when the record is as it was at the run, `"now"` when no history is kept for it. */
1776
+ asOf: "run" | "now";
1777
+ title: string;
1778
+ text: string;
1779
+ /**
1780
+ * The exact text Bitfab looks for in the run's spans, or null to look for
1781
+ * `text` instead.
1782
+ */
1783
+ quote: string | null;
1784
+ };
1785
+ /**
1786
+ * A saved record. `source` is the span Bitfab found it in, or null when it
1787
+ * shows up in none of the run's spans.
1788
+ */
1789
+ type ScenarioRecord = ScenarioRecordInput & {
1790
+ source: ScenarioSource | null;
1791
+ };
1792
+ /**
1793
+ * Where a scenario's records came from: when the run started, when its data
1794
+ * was captured, how many days each windowed kind reaches, and how fully each
1795
+ * kind of data was read.
1796
+ */
1797
+ type ScenarioDataSources = {
1798
+ frameAt: string;
1799
+ capturedAt: string | null;
1800
+ windows: Record<string, number>;
1801
+ coverage: {
1802
+ calendarExcludedCount?: number;
1803
+ filledColumns: {
1804
+ absentNullable: string[];
1805
+ defaultedNonNullable: string[];
1806
+ };
1807
+ [key: string]: unknown;
1808
+ };
1809
+ };
1764
1810
  type ScenarioData = {
1765
1811
  hasHistory: boolean;
1766
1812
  topic: string;
1767
1813
  history: ScenarioHistoryEntry[];
1768
1814
  missing: string[];
1815
+ /** The scenario's records, or absent when none have been saved. */
1816
+ records?: ScenarioRecord[];
1817
+ /** Where the records came from, or absent when not saved. */
1818
+ sources?: ScenarioDataSources;
1769
1819
  };
1770
1820
  /** One thing the run did, such as sending a message or calling a tool. */
1771
1821
  type ScenarioAction = {
@@ -1818,7 +1868,13 @@ type Scenario = {
1818
1868
  type SaveScenarioHistoryEntry = Omit<ScenarioHistoryEntry, "source"> & {
1819
1869
  source?: ScenarioSource | null;
1820
1870
  };
1821
- type SaveScenarioData = Omit<ScenarioData, "history"> & {
1871
+ /**
1872
+ * The whole data object sent to `saveScenario`. It has no records: the saved
1873
+ * records are kept, and `records` on `saveScenario` replaces them. A data
1874
+ * object read back from `getScenario` can be sent as it is, and its `records`
1875
+ * and `sources` are left out of the request.
1876
+ */
1877
+ type SaveScenarioData = Omit<ScenarioData, "history" | "records" | "sources"> & {
1822
1878
  history: SaveScenarioHistoryEntry[];
1823
1879
  };
1824
1880
  /**
@@ -1832,8 +1888,10 @@ type ScenarioDataAppend = {
1832
1888
  history?: SaveScenarioHistoryEntry[];
1833
1889
  missing?: string[];
1834
1890
  };
1835
- type SaveScenarioParams = {
1891
+ type SaveScenarioEditParams = {
1836
1892
  traceId: string;
1893
+ records?: never;
1894
+ sources?: never;
1837
1895
  name?: string;
1838
1896
  description?: string;
1839
1897
  trigger?: ScenarioTrigger;
@@ -1870,6 +1928,26 @@ type SaveScenarioParams = {
1870
1928
  } | {
1871
1929
  categoryIds: string[];
1872
1930
  });
1931
+ /**
1932
+ * Replaces the scenario's records whole. Bitfab looks for each record's
1933
+ * `quote`, or failing that its `text`, in the run's spans and saves the span
1934
+ * it shows up in. Records are saved on their own, with only `sources` beside
1935
+ * them. A non-empty list is refused while the scenario's trigger is empty.
1936
+ */
1937
+ type SaveScenarioRecordsParams = {
1938
+ traceId: string;
1939
+ records: ScenarioRecordInput[];
1940
+ /** Where the records came from. Leaving it out clears the saved sources. */
1941
+ sources?: ScenarioDataSources;
1942
+ name?: never;
1943
+ description?: never;
1944
+ trigger?: never;
1945
+ data?: never;
1946
+ appendData?: never;
1947
+ actualOutcome?: never;
1948
+ categoryIds?: never;
1949
+ };
1950
+ type SaveScenarioParams = SaveScenarioEditParams | SaveScenarioRecordsParams;
1873
1951
  type AssertionGenerationStatus = "running" | "completed" | "failed";
1874
1952
  type AssertionGeneration = {
1875
1953
  status: AssertionGenerationStatus;
@@ -3607,6 +3685,14 @@ interface WrapOpenRouterOptions<TResponse> {
3607
3685
  /** Called after each call with the chat completion, for the caller's own usage or cost reporting. */
3608
3686
  onResponse?: (response: TResponse) => void;
3609
3687
  }
3688
+ interface WrapAnthropicOptions<TResponse> {
3689
+ /** Called after each call with the Anthropic message, for the caller's own usage or cost reporting. */
3690
+ onResponse?: (response: TResponse) => void;
3691
+ }
3692
+ interface WrapOpenAIResponsesOptions<TResponse> {
3693
+ /** Called after each call with the OpenAI response, for the caller's own usage or cost reporting. */
3694
+ onResponse?: (response: TResponse) => void;
3695
+ }
3610
3696
  interface WrapBAMLOptions {
3611
3697
  /** Called after each BAML invocation with the Collector instance. */
3612
3698
  onCollector?: (collector: unknown) => void;
@@ -4350,6 +4436,79 @@ declare class Bitfab {
4350
4436
  * @returns An async function with the same signature that records each call
4351
4437
  */
4352
4438
  wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4439
+ /**
4440
+ * Wrap a function that sends a request to the Anthropic Messages API to
4441
+ * record the call's prompt, model, token usage, and duration. Bitfab works
4442
+ * out the cost from the model and token counts.
4443
+ *
4444
+ * Like `wrapOpenRouter`, it opens no span of its own. It writes into the
4445
+ * span that is current when the call starts, so call it inside a traced
4446
+ * function. The wrapped function must return the message, as
4447
+ * `anthropic.messages.create` does. When its first argument is the request,
4448
+ * the request's `system` and `messages` become the span's prompt. One
4449
+ * context entry holds `provider` (`"anthropic"`), `model`, `inputTokens`
4450
+ * (every prompt token, cache reads and cache writes included),
4451
+ * `outputTokens`, `cachedInputTokens` (cache reads), and `durationMs`;
4452
+ * fields the response omits are left out.
4453
+ *
4454
+ * Beneath a `withTrace()` root, each `.messages.create(...)` call on an
4455
+ * `@anthropic-ai/sdk` client in code compiled by the build transform is
4456
+ * recorded without this wrapper as its own `llm` span, and a
4457
+ * `wrapAnthropic` around such a call records nothing more. Streaming calls
4458
+ * (`stream: true`) are not recorded.
4459
+ *
4460
+ * ```typescript
4461
+ * const anthropic = new Anthropic()
4462
+ * const send = client.wrapAnthropic(
4463
+ * anthropic.messages.create.bind(anthropic.messages),
4464
+ * )
4465
+ * const message = await send({
4466
+ * model: "claude-sonnet-4-5",
4467
+ * max_tokens: 1024,
4468
+ * messages: [{ role: "user", content: text }],
4469
+ * })
4470
+ * ```
4471
+ *
4472
+ * @param method - A named function that sends the request and returns the message
4473
+ * @param options - `onResponse` is called with each message after it is recorded
4474
+ * @returns An async function with the same signature that records each call
4475
+ */
4476
+ wrapAnthropic<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapAnthropicOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4477
+ /**
4478
+ * Wrap a function that sends a request to the OpenAI Responses API to record
4479
+ * the call's prompt, model, token usage, and duration. Bitfab works out the
4480
+ * cost from the model and token counts.
4481
+ *
4482
+ * Like `wrapOpenRouter`, it opens no span of its own. It writes into the
4483
+ * span that is current when the call starts, so call it inside a traced
4484
+ * function. The wrapped function must return the response, as
4485
+ * `openai.responses.create` does. When its first argument is the request,
4486
+ * the request's `instructions` and `input` become the span's prompt. One
4487
+ * context entry holds `provider` (`"openai"`), `model`, `inputTokens`,
4488
+ * `outputTokens`, `cachedInputTokens`, `reasoningTokens`, `costUsd` (only
4489
+ * when the response reports `usage.cost`), and `durationMs`; fields the
4490
+ * response omits are left out.
4491
+ *
4492
+ * Beneath a `withTrace()` root, each `.responses.create(...)` call on an
4493
+ * `openai` client in code compiled by the build transform is recorded
4494
+ * without this wrapper as its own `llm` span, and a `wrapOpenAIResponses`
4495
+ * around such a call records nothing more. Streaming calls (`stream: true`)
4496
+ * are not recorded.
4497
+ *
4498
+ * ```typescript
4499
+ * const openai = new OpenAI()
4500
+ * const respond = client.wrapOpenAIResponses(
4501
+ * openai.responses.create.bind(openai.responses),
4502
+ * )
4503
+ * const response = await respond({ model: "gpt-5-mini", input: text })
4504
+ * ```
4505
+ *
4506
+ * @param method - A named function that sends the request and returns the response
4507
+ * @param options - `onResponse` is called with each response after it is recorded
4508
+ * @returns An async function with the same signature that records each call
4509
+ */
4510
+ wrapOpenAIResponses<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenAIResponsesOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4511
+ private wrapClientCall;
4353
4512
  /**
4354
4513
  * Wrap a function to automatically create a span for its inputs and outputs.
4355
4514
  *
@@ -4764,6 +4923,32 @@ declare class BitfabFunction {
4764
4923
  * @returns An async function with the same signature that records each call
4765
4924
  */
4766
4925
  wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4926
+ /**
4927
+ * Wrap a function that sends a request to the Anthropic Messages API to
4928
+ * record the call's prompt, model, token usage, and duration. Delegates to
4929
+ * the parent client's wrapAnthropic method.
4930
+ *
4931
+ * Like `wrapJev`, it does not use the bound key and opens no span of its
4932
+ * own: it writes into the span that is current when the call starts.
4933
+ *
4934
+ * @param method - A named function that sends the request and returns the message
4935
+ * @param options - `onResponse` is called with each message after it is recorded
4936
+ * @returns An async function with the same signature that records each call
4937
+ */
4938
+ wrapAnthropic<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapAnthropicOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4939
+ /**
4940
+ * Wrap a function that sends a request to the OpenAI Responses API to record
4941
+ * the call's prompt, model, token usage, and duration. Delegates to the
4942
+ * parent client's wrapOpenAIResponses method.
4943
+ *
4944
+ * Like `wrapJev`, it does not use the bound key and opens no span of its
4945
+ * own: it writes into the span that is current when the call starts.
4946
+ *
4947
+ * @param method - A named function that sends the request and returns the response
4948
+ * @param options - `onResponse` is called with each response after it is recorded
4949
+ * @returns An async function with the same signature that records each call
4950
+ */
4951
+ wrapOpenAIResponses<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenAIResponsesOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
4767
4952
  }
4768
4953
  //#endregion
4769
4954
  //#region src/commitRef.d.ts
@@ -4784,7 +4969,7 @@ interface CommitRef {
4784
4969
  /**
4785
4970
  * SDK version from package.json (injected at build time)
4786
4971
  */
4787
- declare const __version__ = "0.68.4";
4972
+ declare const __version__ = "0.68.6";
4788
4973
  //#endregion
4789
4974
  //#region src/constants.d.ts
4790
4975
  /**
@@ -4926,4 +5111,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
4926
5111
  run?: boolean;
4927
5112
  }): Promise<SeedResult>;
4928
5113
  //#endregion
4929
- export { ReplayBranch as $, ExperimentJitter as $n, MockOverrideCtx as $r, LabelsClient as $t, SpanMethodDecoratorContext as A, SavedTraceAssertion as An, BitfabVercelAiHandler as Ar, GraderLabel as At, ActiveSpanContext as B, TraceAssertion as Bn, CategorySummary as Br, ArchiveVerdictTarget as Bt, NodeMethodDecorator as C, Justification as Ci, SaveAssertion as Cn, RemoveDatasetTracesResult as Cr, BitfabAgentMiddleware as Ct, SeedCaseOptions as D, SaveScenarioData as Dn, SaveDatasetResult as Dr, BitfabLangGraphCallbackHandler as Dt, ReseedResult as E, SaveScenarioActualOutcome as En, SaveDatasetParams as Er, LangGraphIntegrationOptions as Et, WrappedBamlFn as F, ScenarioDataAppend as Fn, AssertionCategoriesClient as Fr, GraderVerdictOutcome as Ft, SpanListField as G, TraceSearchParams as Gn, HttpClient as Gr, HumanVerdictUpdate as Gt, TraceResponse as H, TraceAssertionsResult as Hn, SaveCategoryParams as Hr, HumanLabelOutcome as Ht, getCurrentReplayBranch as I, ScenarioDataOrigin as In, AssertionCategory as Ir, GraderVerdictSource as It, SpansClient as J, TraceTargetOccurrence as Jn, SpanType as Jr, LabelOutcome as Jt, SpanListParams as K, TraceSearchResult as Kn, SpanLookup as Kr, LabelAction as Kt, getCurrentSpan as L, ScenarioHistoryEntry as Ln, AssertionCategorySummary as Lr, GraderVerdictUpdate as Lt, WrapBAMLOptions as M, ScenarioAction as Mn, VercelGenerateResult as Mr, GraderLabelSource as Mt, WrapJevOptions as N, ScenarioActualOutcome as Nn, VercelStreamResult as Nr, GraderLabelUpdate as Nt, SeedRunOptions as O, SaveScenarioHistoryEntry as On, UpdateDatasetParams as Or, GetGraderLabelsParams as Ot, WrapOpenRouterOptions as P, ScenarioData as Pn, BitfabClaudeAgentHandler as Pr, GraderVerdict as Pt, RivetIntegrationOptions as Q, ExperimentCodeChangeTotals as Qn, MockOverride as Qr, LabelUpdate as Qt, getCurrentTrace as R, ScenarioSource as Rn, CategoriesClient as Rr, GradersClient as Rt, DetachedTrace as S, Assignee as Si, GenerateAssertionsOptions as Sn, RemoveDatasetGradersResult as Sr, BitfabOpenAIAgentHandler as St, ReseedOptions as T, SaveAssertionsParams as Tn, RerunGradersResult as Tr, BitfabLangGraphIntegration as Tt, TracingProcessor as U, TraceAssertionsUpdate as Un, CapturedSpan as Ur, HumanLabelUpdate as Ut, BitfabOpenAITracingProcessor as V, TraceAssertionSource as Vn, SaveAssertionCategoryParams as Vr, AssertionVerdict as Vt, ListedSpan as W, TraceSearchFilters as Wn, CodeChangeFile as Wr, HumanVerdictOutcome as Wt, RivetContextLike as X, Experiment as Xn, flushTraces as Xr, LabelStatus as Xt, BitfabRivetIntegration as Y, TracesClient as Yn, TokenUsage as Yr, LabelSource as Yt, RivetEffectType as Z, ExperimentCategoryTally as Zn, DbBranchTimings as Zr, LabelTarget as Zt, BitfabConfig as _, BamlExecutionResult as _i, AssertionGenerationTimeoutError as _n, GraderRerunProgress as _r, serializeReplayResult as _t, ReplayRegistryOptions as a, SpanNodeMeta as ai, VerdictConfidence as an, ExperimentTally as ar, MockStrategy as at, CurrentSpan as b, ApprovalState as bi, AssertionRewriteStatus as bn, GraderRerunTimeoutError as br, OrganizationMember as bt, SeedResult as c, DbSnapshotConfig as ci, VerdictStatus as cn, ListExperimentsParams as cr, ReplayItem as ct, seedFromRegistry as d, SUPPORTED_PROVIDERS as di, VerdictsClient as dn, Dataset as dr, ReplayOptions as dt, MockOverrideInput as ei, PassFailVerdict as en, ExperimentPage as er, AdaptContext as et, finalizers as f, ReplayNodeIdentity as fi, ArchiveAssertionsParams as fn, DatasetGraderRef as fr, ReplayProgress as ft, Bitfab as g, AllowedEnvVars as gi, AssertionGenerationStatus as gn, GraderRerunError as gr, reportReplayProgress as gt, CommitRef as h, SelectiveReplayReport as hi, AssertionGenerationError as hn, GraderRerun as hr, TraceIngestionType as ht, ReplayRegistryContext as i, NodeMatcher as ii, VerdictAction as in, ExperimentStatus as ir, DbBranchReplayError as it, SpanOptions as j, Scenario as jn, VercelCallParams as jr, GraderLabelOutcome as jt, SpanMethodDecorator as k, SaveScenarioParams as kn, BitfabLanguageModelMiddleware as kr, GetGraderVerdictsParams as kt, defineReplayRegistry as l, DbSnapshotProvider as li, VerdictTarget as ln, AddDatasetGradersResult as lr, ReplayItemFinishProgress as lt, __version__ as m, SelectiveReplayOptions as mi, AssertionGeneration as mn, DatasetsClient as mr, ReplayResult as mt, ReplayRegistration as n, MockValue as ni, TraceVerdicts as nn, ExperimentRollupResult as nr, BITFAB_PROGRESS_PREFIX as nt, ReseedRegistryResult as o, BitfabError as oi, VerdictOutcome as on, ExperimentTotals as or, ReplayError as ot, DEFAULT_SERVICE_URL as p, SelectiveReplayDecision as pi, AssertionEvidenceParameter as pn, DatasetTraceIds as pr, ReplayProgressItem as pt, SpanListResult as q, TraceTarget as qn, SpanOccurrence as qr, LabelConfidence as qt, ReplayRegistry as r, NO_MOCK_OVERRIDE as ri, Verdict as rn, ExperimentRunBy as rr, DbBranchOptions as rt, SeedCase as s, MixedTracingError as si, VerdictSource as sn, ExperimentsClient as sr, ReplayExperiment as st, ReplayOptionsFactory as t, MockOverrideResolver as ti, TraceLabels as tn, ExperimentRollup as tr, AdaptInputsFn as tt, reseedFromRegistry as u, DbSnapshotRef as ui, VerdictUpdate as un, AddDatasetTracesResult as ur, ReplayItemStartProgress as ut, BitfabFunction as v, ProviderDefinition as vi, AssertionLabelEvidence as vn, GraderRerunResult as vr, ReplayInterrupt as vt, NodeOptions as w, JustificationSpan as wi, SaveAssertionsAllParams as wn, RerunGradersOptions as wr, BitfabLangGraphAgent as wt, CurrentTrace as x, Approver as xi, AssertionVerdictEvidence as xn, ListDatasetsParams as xr, OrganizationMembersClient as xt, CaptureWhen as y, ApprovalFields as yi, AssertionRewrite as yn, GraderRerunStatus as yr, ReplayInterruptSignal as yt, CaptureSurface as z, ScenarioTrigger as zn, Category as zr, ArchiveLabelTarget as zt };
5114
+ export { RivetEffectType as $, TraceTargetOccurrence as $n, SpanType as $r, LabelTarget as $t, SpanMethodDecoratorContext as A, SaveScenarioHistoryEntry as An, RerunGradersResult as Ar, GetGraderLabelsParams as At, getCurrentTrace as B, ScenarioHistoryEntry as Bn, AssertionCategoriesClient as Br, GradersClient as Bt, NodeMethodDecorator as C, ProviderDefinition as Ci, AssertionVerdictEvidence as Cn, GraderRerunResult as Cr, OrganizationMembersClient as Ct, SeedCaseOptions as D, Assignee as Di, SaveAssertionsParams as Dn, RemoveDatasetGradersResult as Dr, BitfabLangGraphIntegration as Dt, ReseedResult as E, Approver as Ei, SaveAssertionsAllParams as En, ListDatasetsParams as Er, BitfabLangGraphAgent as Et, WrapOpenAIResponsesOptions as F, ScenarioActualOutcome as Fn, BitfabVercelAiHandler as Fr, GraderLabelUpdate as Ft, TracingProcessor as G, TraceAssertion as Gn, CategorySummary as Gr, HumanLabelUpdate as Gt, ActiveSpanContext as H, ScenarioRecordInput as Hn, AssertionCategorySummary as Hr, ArchiveVerdictTarget as Ht, WrapOpenRouterOptions as I, ScenarioData as In, VercelCallParams as Ir, GraderVerdict as It, SpanListParams as J, TraceAssertionsUpdate as Jn, CapturedSpan as Jr, LabelAction as Jt, ListedSpan as K, TraceAssertionSource as Kn, SaveAssertionCategoryParams as Kr, HumanVerdictOutcome as Kt, WrappedBamlFn as L, ScenarioDataAppend as Ln, VercelGenerateResult as Lr, GraderVerdictOutcome as Lt, WrapAnthropicOptions as M, SavedTraceAssertion as Mn, SaveDatasetResult as Mr, GraderLabel as Mt, WrapBAMLOptions as N, Scenario as Nn, UpdateDatasetParams as Nr, GraderLabelOutcome as Nt, SeedRunOptions as O, Justification as Oi, SaveScenarioActualOutcome as On, RemoveDatasetTracesResult as Or, LangGraphIntegrationOptions as Ot, WrapJevOptions as P, ScenarioAction as Pn, BitfabLanguageModelMiddleware as Pr, GraderLabelSource as Pt, RivetContextLike as Q, TraceTarget as Qn, SpanOccurrence as Qr, LabelStatus as Qt, getCurrentReplayBranch as R, ScenarioDataOrigin as Rn, VercelStreamResult as Rr, GraderVerdictSource as Rt, DetachedTrace as S, BamlExecutionResult as Si, AssertionRewriteStatus as Sn, GraderRerunProgress as Sr, OrganizationMember as St, ReseedOptions as T, ApprovalState as Ti, SaveAssertion as Tn, GraderRerunTimeoutError as Tr, BitfabAgentMiddleware as Tt, BitfabOpenAITracingProcessor as U, ScenarioSource as Un, CategoriesClient as Ur, AssertionVerdict as Ut, CaptureSurface as V, ScenarioRecord as Vn, AssertionCategory as Vr, ArchiveLabelTarget as Vt, TraceResponse as W, ScenarioTrigger as Wn, Category as Wr, HumanLabelOutcome as Wt, SpansClient as X, TraceSearchParams as Xn, HttpClient as Xr, LabelOutcome as Xt, SpanListResult as Y, TraceSearchFilters as Yn, CodeChangeFile as Yr, LabelConfidence as Yt, BitfabRivetIntegration as Z, TraceSearchResult as Zn, SpanLookup as Zr, LabelSource as Zt, BitfabConfig as _, ReplayNodeIdentity as _i, AssertionGenerationError as _n, DatasetGraderRef as _r, TraceIngestionType as _t, ReplayRegistryOptions as a, MockOverrideInput as ai, Verdict as an, ExperimentPage as ar, DbBranchOptions as at, CurrentSpan as b, SelectiveReplayReport as bi, AssertionLabelEvidence as bn, GraderRerun as br, ReplayInterrupt as bt, SeedResult as c, NO_MOCK_OVERRIDE as ci, VerdictOutcome as cn, ExperimentRunBy as cr, ReplayError as ct, seedFromRegistry as d, BitfabError as di, VerdictTarget as dn, ExperimentTotals as dr, ReplayItemFinishProgress as dt, TokenUsage as ei, LabelUpdate as en, TracesClient as er, RivetIntegrationOptions as et, finalizers as f, MixedTracingError as fi, VerdictUpdate as fn, ExperimentsClient as fr, ReplayItemStartProgress as ft, Bitfab as g, SUPPORTED_PROVIDERS as gi, AssertionGeneration as gn, Dataset as gr, ReplayResult as gt, CommitRef as h, DbSnapshotRef as hi, AssertionEvidenceParameter as hn, AddDatasetTracesResult as hr, ReplayProgressItem as ht, ReplayRegistryContext as i, MockOverrideCtx as ii, TraceVerdicts as in, ExperimentJitter as ir, BITFAB_PROGRESS_PREFIX as it, SpanOptions as j, SaveScenarioParams as jn, SaveDatasetParams as jr, GetGraderVerdictsParams as jt, SpanMethodDecorator as k, JustificationSpan as ki, SaveScenarioData as kn, RerunGradersOptions as kr, BitfabLangGraphCallbackHandler as kt, defineReplayRegistry as l, NodeMatcher as li, VerdictSource as ln, ExperimentStatus as lr, ReplayExperiment as lt, __version__ as m, DbSnapshotProvider as mi, ArchiveAssertionsParams as mn, AddDatasetGradersResult as mr, ReplayProgress as mt, ReplayRegistration as n, DbBranchTimings as ni, PassFailVerdict as nn, ExperimentCategoryTally as nr, AdaptContext as nt, ReseedRegistryResult as o, MockOverrideResolver as oi, VerdictAction as on, ExperimentRollup as or, DbBranchReplayError as ot, DEFAULT_SERVICE_URL as p, DbSnapshotConfig as pi, VerdictsClient as pn, ListExperimentsParams as pr, ReplayOptions as pt, SpanListField as q, TraceAssertionsResult as qn, SaveCategoryParams as qr, HumanVerdictUpdate as qt, ReplayRegistry as r, MockOverride as ri, TraceLabels as rn, ExperimentCodeChangeTotals as rr, AdaptInputsFn as rt, SeedCase as s, MockValue as si, VerdictConfidence as sn, ExperimentRollupResult as sr, MockStrategy as st, ReplayOptionsFactory as t, flushTraces as ti, LabelsClient as tn, Experiment as tr, ReplayBranch as tt, reseedFromRegistry as u, SpanNodeMeta as ui, VerdictStatus as un, ExperimentTally as ur, ReplayItem as ut, BitfabFunction as v, SelectiveReplayDecision as vi, AssertionGenerationStatus as vn, DatasetTraceIds as vr, reportReplayProgress as vt, NodeOptions as w, ApprovalFields as wi, GenerateAssertionsOptions as wn, GraderRerunStatus as wr, BitfabOpenAIAgentHandler as wt, CurrentTrace as x, AllowedEnvVars as xi, AssertionRewrite as xn, GraderRerunError as xr, ReplayInterruptSignal as xt, CaptureWhen as y, SelectiveReplayOptions as yi, AssertionGenerationTimeoutError as yn, DatasetsClient as yr, serializeReplayResult as yt, getCurrentSpan as z, ScenarioDataSources as zn, BitfabClaudeAgentHandler as zr, GraderVerdictUpdate as zt };
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-BG2_8Fpf.cjs");
15
- const require_http = require("./http-C-HrwUb8.cjs");
14
+ const require_src = require("./src-C3H1v_hp.cjs");
15
+ const require_http = require("./http-CARmid5D.cjs");
16
16
  exports.AssertionCategoriesClient = require_src.AssertionCategoriesClient;
17
17
  exports.AssertionGenerationError = require_src.AssertionGenerationError;
18
18
  exports.AssertionGenerationTimeoutError = require_src.AssertionGenerationTimeoutError;