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.
- package/dist/{autoTrace-D3-OZcmR.cjs → autoTrace-DUmR1KJ8.cjs} +417 -62
- package/dist/autoTrace-DUmR1KJ8.cjs.map +1 -0
- package/dist/{autoTrace-ghnojSj9.js → autoTrace-DVnpnuMb.js} +322 -57
- package/dist/autoTrace-DVnpnuMb.js.map +1 -0
- package/dist/autoTrace.cjs +3 -1
- package/dist/autoTrace.d.cts +29 -1
- package/dist/autoTrace.d.ts +29 -1
- package/dist/autoTrace.js +1 -1
- package/dist/{babelPlugin-0uOq-j1Q.cjs → babelPlugin-C0Im6AZ2.cjs} +37 -14
- package/dist/babelPlugin-C0Im6AZ2.cjs.map +1 -0
- package/dist/{babelPlugin-Muq0uuuu.js → babelPlugin-hS2Hb2vt.js} +37 -14
- package/dist/babelPlugin-hS2Hb2vt.js.map +1 -0
- package/dist/baml.cjs +1 -1
- package/dist/baml.js +1 -1
- package/dist/{bamlPeer-BUoZgNxZ.cjs → bamlPeer-5Ohpq8q9.cjs} +3 -17
- package/dist/bamlPeer-5Ohpq8q9.cjs.map +1 -0
- package/dist/{bamlPeer-CIVwS68E.js → bamlPeer-Dyeb3e5o.js} +3 -11
- package/dist/bamlPeer-Dyeb3e5o.js.map +1 -0
- package/dist/{http-C-HrwUb8.cjs → http-CARmid5D.cjs} +4 -4
- package/dist/{http-C-HrwUb8.cjs.map → http-CARmid5D.cjs.map} +1 -1
- package/dist/{http-BGY4ULH5.js → http-CYIjoMdj.js} +3 -3
- package/dist/{http-BGY4ULH5.js.map → http-CYIjoMdj.js.map} +1 -1
- package/dist/{index-BcGxu85i.d.cts → index-BuP59-AI.d.cts} +189 -4
- package/dist/{index-BcGxu85i.d.ts → index-BuP59-AI.d.ts} +189 -4
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/node.cjs +3 -3
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +3 -3
- package/dist/optionalPeer-CUH756lt.cjs +17 -0
- package/dist/optionalPeer-CUH756lt.cjs.map +1 -0
- package/dist/optionalPeer-CczrzrXx.js +12 -0
- package/dist/optionalPeer-CczrzrXx.js.map +1 -0
- package/dist/{registryCommand-Dk4Y1ZgW.js → registryCommand-D7bfo0Au.js} +179 -8
- package/dist/registryCommand-D7bfo0Au.js.map +1 -0
- package/dist/replayCli.js +1 -1
- package/dist/seedCli.js +1 -1
- package/dist/{src-BG2_8Fpf.cjs → src-C3H1v_hp.cjs} +62 -81
- package/dist/src-C3H1v_hp.cjs.map +1 -0
- package/dist/{src-Cmfs_7Ib.js → src-DgeGOhjN.js} +51 -70
- package/dist/src-DgeGOhjN.js.map +1 -0
- package/dist/transform/babel.cjs +1 -1
- package/dist/transform/babel.js +1 -1
- package/dist/transform/loaderRuntime.cjs +2 -2
- package/dist/transform/loaderRuntime.js +2 -2
- package/dist/transform/nodeLoader.js +36 -13
- package/dist/transform/nodeLoader.js.map +1 -1
- package/dist/transform/swc.cjs +1 -1
- package/dist/transform/swc.js +1 -1
- package/dist/transform/unplugin.cjs +2 -2
- package/dist/transform/unplugin.js +2 -2
- package/dist/{transform-CAJyLLe2.js → transform-BL1fJW-C.js} +2 -2
- package/dist/{transform-CAJyLLe2.js.map → transform-BL1fJW-C.js.map} +1 -1
- package/dist/{transform-ClCOpCZ2.cjs → transform-C4H7TKW-.cjs} +2 -2
- package/dist/{transform-ClCOpCZ2.cjs.map → transform-C4H7TKW-.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/autoTrace-D3-OZcmR.cjs.map +0 -1
- package/dist/autoTrace-ghnojSj9.js.map +0 -1
- package/dist/babelPlugin-0uOq-j1Q.cjs.map +0 -1
- package/dist/babelPlugin-Muq0uuuu.js.map +0 -1
- package/dist/bamlPeer-BUoZgNxZ.cjs.map +0 -1
- package/dist/bamlPeer-CIVwS68E.js.map +0 -1
- package/dist/registryCommand-Dk4Y1ZgW.js.map +0 -1
- package/dist/src-BG2_8Fpf.cjs.map +0 -1
- 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
|
-
|
|
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
|
|
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.
|
|
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 {
|
|
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
|
-
|
|
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
|
|
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.
|
|
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 {
|
|
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-
|
|
15
|
-
const require_http = require("./http-
|
|
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;
|