bitfab 0.68.0 → 0.68.2
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-BikML0lX.cjs → autoTrace-D3-OZcmR.cjs} +196 -17
- package/dist/autoTrace-D3-OZcmR.cjs.map +1 -0
- package/dist/{autoTrace-CVt9EDyo.js → autoTrace-ghnojSj9.js} +173 -18
- package/dist/autoTrace-ghnojSj9.js.map +1 -0
- package/dist/autoTrace.cjs +2 -1
- package/dist/autoTrace.d.cts +15 -0
- package/dist/autoTrace.d.ts +15 -0
- package/dist/autoTrace.js +1 -1
- package/dist/{babelPlugin-s8EFjT6e.cjs → babelPlugin-0uOq-j1Q.cjs} +48 -18
- package/dist/babelPlugin-0uOq-j1Q.cjs.map +1 -0
- package/dist/{babelPlugin-a7ofCoOd.js → babelPlugin-Muq0uuuu.js} +48 -18
- package/dist/babelPlugin-Muq0uuuu.js.map +1 -0
- package/dist/{http-_cgR_DM2.js → http-Cs_vVjrS.js} +3 -3
- package/dist/http-Cs_vVjrS.js.map +1 -0
- package/dist/{http-psFF1ptn.cjs → http-Dqc-f3sp.cjs} +3 -3
- package/dist/http-Dqc-f3sp.cjs.map +1 -0
- package/dist/{index-j7SrvOqe.d.cts → index-Cmrec4hc.d.cts} +238 -5
- package/dist/{index-j7SrvOqe.d.ts → index-Cmrec4hc.d.ts} +238 -5
- 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/registryCommand-Dk4Y1ZgW.js.map +1 -1
- package/dist/{src-DyEKM7yn.js → src-BF95TP1K.js} +494 -87
- package/dist/src-BF95TP1K.js.map +1 -0
- package/dist/{src-Dze8o7iU.cjs → src-CdQRfsrA.cjs} +494 -87
- package/dist/src-CdQRfsrA.cjs.map +1 -0
- package/dist/transform/babel.cjs +1 -1
- package/dist/transform/babel.d.cts +9 -2
- package/dist/transform/babel.d.ts +9 -2
- 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 +47 -17
- 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-DkcFn_tg.js → transform-CAJyLLe2.js} +2 -2
- package/dist/{transform-DkcFn_tg.js.map → transform-CAJyLLe2.js.map} +1 -1
- package/dist/{transform-BBzrqpVH.cjs → transform-ClCOpCZ2.cjs} +2 -2
- package/dist/{transform-BBzrqpVH.cjs.map → transform-ClCOpCZ2.cjs.map} +1 -1
- package/package.json +13 -2
- package/dist/autoTrace-BikML0lX.cjs.map +0 -1
- package/dist/autoTrace-CVt9EDyo.js.map +0 -1
- package/dist/babelPlugin-a7ofCoOd.js.map +0 -1
- package/dist/babelPlugin-s8EFjT6e.cjs.map +0 -1
- package/dist/http-_cgR_DM2.js.map +0 -1
- package/dist/http-psFF1ptn.cjs.map +0 -1
- package/dist/src-DyEKM7yn.js.map +0 -1
- package/dist/src-Dze8o7iU.cjs.map +0 -1
|
@@ -461,6 +461,12 @@ interface ReplayContext {
|
|
|
461
461
|
fetchSpanOutput?: (externalSpanId: string) => Promise<unknown>;
|
|
462
462
|
/** Internal framework state captured on the historical root span. */
|
|
463
463
|
integrationFixtures?: Map<string, unknown>;
|
|
464
|
+
/**
|
|
465
|
+
* The final state of a streamed framework run replayed from this item's
|
|
466
|
+
* root, set by the framework integration so a drained stream replays to
|
|
467
|
+
* the same result its recording did.
|
|
468
|
+
*/
|
|
469
|
+
streamResult?: unknown;
|
|
464
470
|
dbBranchLease?: DbBranchLease;
|
|
465
471
|
/**
|
|
466
472
|
* Server-measured provisioning timings for this item's branch, echoed back
|
|
@@ -2323,6 +2329,7 @@ interface ActiveSpanContext$1 {
|
|
|
2323
2329
|
*/
|
|
2324
2330
|
declare class BitfabLangGraphCallbackHandler {
|
|
2325
2331
|
name: string;
|
|
2332
|
+
awaitHandlers: boolean;
|
|
2326
2333
|
ignoreRetry: boolean;
|
|
2327
2334
|
ignoreRetriever: boolean;
|
|
2328
2335
|
ignoreCustomEvent: boolean;
|
|
@@ -2334,6 +2341,9 @@ declare class BitfabLangGraphCallbackHandler {
|
|
|
2334
2341
|
private readonly captureTools;
|
|
2335
2342
|
private runToSpan;
|
|
2336
2343
|
private invocations;
|
|
2344
|
+
private claimedToolCalls;
|
|
2345
|
+
private stepRunIdByNamespace;
|
|
2346
|
+
private namespaceByStepRunId;
|
|
2337
2347
|
constructor(config: {
|
|
2338
2348
|
apiKey?: ApiKeyInput;
|
|
2339
2349
|
traceFunctionKey: string;
|
|
@@ -2357,6 +2367,21 @@ declare class BitfabLangGraphCallbackHandler {
|
|
|
2357
2367
|
* `close()` owns the worker's lifetime.
|
|
2358
2368
|
*/
|
|
2359
2369
|
close(timeoutMs?: number): Promise<boolean>;
|
|
2370
|
+
/**
|
|
2371
|
+
* Mark a tool call as recorded by the LangGraph integration, so this
|
|
2372
|
+
* handler does not also record it. Returns the function that releases it.
|
|
2373
|
+
* @internal
|
|
2374
|
+
*/
|
|
2375
|
+
claimToolCall(traceId: string, toolCallId: string): () => void;
|
|
2376
|
+
/**
|
|
2377
|
+
* The span ID of the running graph step with this checkpoint namespace,
|
|
2378
|
+
* when it is a recorded span in the given trace.
|
|
2379
|
+
* @internal
|
|
2380
|
+
*/
|
|
2381
|
+
visibleStepSpanId(checkpointNamespace: string, traceId: string): string | null;
|
|
2382
|
+
private isClaimedToolCall;
|
|
2383
|
+
private rememberStep;
|
|
2384
|
+
private forgetStep;
|
|
2360
2385
|
private startSpan;
|
|
2361
2386
|
private completeSpan;
|
|
2362
2387
|
private sendSpan;
|
|
@@ -2370,7 +2395,7 @@ declare class BitfabLangGraphCallbackHandler {
|
|
|
2370
2395
|
handleLLMEnd(output: Record<string, unknown>, runId: string): Promise<void>;
|
|
2371
2396
|
handleLLMError(error: unknown, runId: string): Promise<void>;
|
|
2372
2397
|
handleLLMNewToken(): Promise<void>;
|
|
2373
|
-
handleToolStart(tool: Record<string, unknown> | null | undefined, input: string, runId: string, parentRunId?: string, tags?: string[], metadata?: Record<string, unknown>, runName?: string): Promise<void>;
|
|
2398
|
+
handleToolStart(tool: Record<string, unknown> | null | undefined, input: string, runId: string, parentRunId?: string, tags?: string[], metadata?: Record<string, unknown>, runName?: string, toolCallId?: string): Promise<void>;
|
|
2374
2399
|
handleToolEnd(output: unknown, runId: string): Promise<void>;
|
|
2375
2400
|
handleToolError(error: unknown, runId: string): Promise<void>;
|
|
2376
2401
|
handleRetrieverStart(retriever: Record<string, unknown> | null | undefined, query: string, runId: string, parentRunId?: string, tags?: string[], metadata?: Record<string, unknown>, runName?: string): Promise<void>;
|
|
@@ -2378,6 +2403,13 @@ declare class BitfabLangGraphCallbackHandler {
|
|
|
2378
2403
|
handleRetrieverError(error: unknown, runId: string): Promise<void>;
|
|
2379
2404
|
}
|
|
2380
2405
|
//#endregion
|
|
2406
|
+
//#region src/langgraphRuns.d.ts
|
|
2407
|
+
interface InstrumentableGraph {
|
|
2408
|
+
invoke(input: unknown, config?: unknown): Promise<unknown>;
|
|
2409
|
+
stream(input: unknown, config?: unknown): Promise<AsyncIterable<unknown>>;
|
|
2410
|
+
withConfig(config: Record<string, unknown>): InstrumentableGraph;
|
|
2411
|
+
}
|
|
2412
|
+
//#endregion
|
|
2381
2413
|
//#region src/langgraphIntegration.d.ts
|
|
2382
2414
|
interface SpanClient {
|
|
2383
2415
|
withSpan<TArgs extends unknown[], TReturn>(traceFunctionKey: string, options: {
|
|
@@ -2388,6 +2420,7 @@ interface SpanClient {
|
|
|
2388
2420
|
finalize?: (result: unknown) => unknown | Promise<unknown>;
|
|
2389
2421
|
surface?: "inherit";
|
|
2390
2422
|
instrumentation?: "langgraph";
|
|
2423
|
+
frameworkParentSpanId?: string;
|
|
2391
2424
|
}, fn: (...args: TArgs) => TReturn): (...args: TArgs) => TReturn;
|
|
2392
2425
|
}
|
|
2393
2426
|
interface LangGraphTool {
|
|
@@ -2402,6 +2435,56 @@ interface LangGraphRunnable<TInput, TConfig, TReturn> {
|
|
|
2402
2435
|
callbacks: unknown[];
|
|
2403
2436
|
}): ConfiguredLangGraphRunnable<TInput, TConfig, TReturn>;
|
|
2404
2437
|
}
|
|
2438
|
+
/**
|
|
2439
|
+
* The agent returned by the integration's `createAgent()` and
|
|
2440
|
+
* `createDeepAgent()`: the framework's own agent with `invoke` and `stream`
|
|
2441
|
+
* traced. Its state is typed loosely because the framework packages are
|
|
2442
|
+
* optional; pass the framework's own agent type as the builder's type
|
|
2443
|
+
* argument to keep its exact types.
|
|
2444
|
+
*
|
|
2445
|
+
* @experimental This API may change before it is stable.
|
|
2446
|
+
*/
|
|
2447
|
+
interface BitfabLangGraphAgent {
|
|
2448
|
+
invoke(input: unknown, config?: Record<string, unknown>): Promise<any>;
|
|
2449
|
+
stream(input: unknown, config?: Record<string, unknown>): Promise<AsyncIterable<any>>;
|
|
2450
|
+
streamEvents(input: unknown, config: Record<string, unknown>, streamOptions?: Record<string, unknown>): AsyncIterable<any>;
|
|
2451
|
+
batch(inputs: unknown[], config?: Record<string, unknown> | Record<string, unknown>[]): Promise<any[]>;
|
|
2452
|
+
withConfig(config: Record<string, unknown>): BitfabLangGraphAgent;
|
|
2453
|
+
getState(config: Record<string, unknown>): Promise<unknown>;
|
|
2454
|
+
}
|
|
2455
|
+
/** The active Bitfab span, as the integration needs it. @internal */
|
|
2456
|
+
interface LangGraphActiveSpan {
|
|
2457
|
+
traceId: string;
|
|
2458
|
+
rootTraceFunctionKey: string;
|
|
2459
|
+
isRoot: boolean;
|
|
2460
|
+
}
|
|
2461
|
+
interface AgentToolCallRequest {
|
|
2462
|
+
toolCall: {
|
|
2463
|
+
id?: string;
|
|
2464
|
+
name: string;
|
|
2465
|
+
args?: unknown;
|
|
2466
|
+
};
|
|
2467
|
+
runtime?: {
|
|
2468
|
+
configurable?: Record<string, unknown>;
|
|
2469
|
+
};
|
|
2470
|
+
}
|
|
2471
|
+
type AgentToolCallHandler<TRequest extends AgentToolCallRequest> = (request: TRequest) => unknown;
|
|
2472
|
+
/**
|
|
2473
|
+
* A LangChain agent middleware that routes each tool call through the
|
|
2474
|
+
* integration. Pass it in `createAgent({ middleware: [...] })` or
|
|
2475
|
+
* `createDeepAgent({ middleware: [...] })`.
|
|
2476
|
+
*
|
|
2477
|
+
* @experimental This API may change before it is stable.
|
|
2478
|
+
*/
|
|
2479
|
+
interface BitfabAgentMiddleware {
|
|
2480
|
+
readonly name: string;
|
|
2481
|
+
wrapToolCall<TRequest extends AgentToolCallRequest>(request: TRequest, handler: AgentToolCallHandler<TRequest>): Promise<any>;
|
|
2482
|
+
}
|
|
2483
|
+
interface AgentParams {
|
|
2484
|
+
middleware?: readonly unknown[];
|
|
2485
|
+
subagents?: readonly unknown[];
|
|
2486
|
+
[key: string]: unknown;
|
|
2487
|
+
}
|
|
2405
2488
|
/**
|
|
2406
2489
|
* Options for first-class LangGraph ToolNode replay interception.
|
|
2407
2490
|
*
|
|
@@ -2428,12 +2511,80 @@ declare class BitfabLangGraphIntegration {
|
|
|
2428
2511
|
private readonly client;
|
|
2429
2512
|
private readonly traceFunctionKey;
|
|
2430
2513
|
private readonly mockToolsOnReplay;
|
|
2514
|
+
private readonly getActiveSpan;
|
|
2515
|
+
private readonly addRootContext;
|
|
2516
|
+
private agentMiddleware;
|
|
2517
|
+
private runHost;
|
|
2431
2518
|
constructor(config: {
|
|
2432
2519
|
client: SpanClient;
|
|
2433
2520
|
traceFunctionKey: string;
|
|
2434
2521
|
callbackHandler: BitfabLangGraphCallbackHandler;
|
|
2435
2522
|
options?: LangGraphIntegrationOptions;
|
|
2523
|
+
getActiveSpan?: () => LangGraphActiveSpan | null;
|
|
2524
|
+
addContext?: (context: Record<string, unknown>) => void;
|
|
2436
2525
|
});
|
|
2526
|
+
/**
|
|
2527
|
+
* LangChain agent middleware that makes each tool call a replayable span
|
|
2528
|
+
* under the agent's `tools` step. Pass it in `createAgent({ middleware })`
|
|
2529
|
+
* or `createDeepAgent({ middleware })` and run the agent through
|
|
2530
|
+
* {@link instrument}. {@link createAgent} and {@link createDeepAgent} add it
|
|
2531
|
+
* for you.
|
|
2532
|
+
*
|
|
2533
|
+
* @experimental This API may change before it is stable.
|
|
2534
|
+
*/
|
|
2535
|
+
get middleware(): BitfabAgentMiddleware;
|
|
2536
|
+
/**
|
|
2537
|
+
* Trace a compiled graph or agent as this trace function. Returns the same
|
|
2538
|
+
* graph, so it can be used anywhere the graph can (called directly, nested
|
|
2539
|
+
* as a node, or exported to LangGraph Platform), with every way of running
|
|
2540
|
+
* it traced: `invoke`, `stream`, `streamEvents`, and `batch`. Each attaches
|
|
2541
|
+
* the Bitfab callback handler and records the run as a replayable root
|
|
2542
|
+
* span carrying the graph input, with the final graph state as its output.
|
|
2543
|
+
* `withConfig` returns a graph that stays traced, and every other property
|
|
2544
|
+
* is the graph's own.
|
|
2545
|
+
*
|
|
2546
|
+
* When the graph has a checkpointer and the run has a `thread_id`, the
|
|
2547
|
+
* thread's checkpoint at the start of the run is recorded too, and replay
|
|
2548
|
+
* runs against that checkpoint in memory instead of the graph's own
|
|
2549
|
+
* checkpointer.
|
|
2550
|
+
*
|
|
2551
|
+
* Replay a recorded run through any run method, for example
|
|
2552
|
+
* `bitfab.replay(key, (input) => agent.invoke(input))` or
|
|
2553
|
+
* `bitfab.replay(key, (input) => agent.stream(input))`; a streamed replay
|
|
2554
|
+
* is drained and its result is the final graph state.
|
|
2555
|
+
*
|
|
2556
|
+
* @experimental This API may change before it is stable.
|
|
2557
|
+
*/
|
|
2558
|
+
instrument<TGraph extends InstrumentableGraph>(graph: TGraph): TGraph;
|
|
2559
|
+
private get graphRunHost();
|
|
2560
|
+
/**
|
|
2561
|
+
* Build a LangChain Deep Agents agent traced as this trace function: a
|
|
2562
|
+
* drop-in for `createDeepAgent` from `deepagents`. Every parameter is passed
|
|
2563
|
+
* through unchanged, except that `middleware` and each declarative
|
|
2564
|
+
* subagent's `middleware` gain {@link middleware}, so the tool calls of the
|
|
2565
|
+
* main agent and its subagents are replayable spans. Subagents given as a
|
|
2566
|
+
* compiled `runnable` or a remote `graphId` pass through as they are.
|
|
2567
|
+
* Returns the agent wrapped by {@link instrument}.
|
|
2568
|
+
*
|
|
2569
|
+
* @experimental This API may change before it is stable.
|
|
2570
|
+
*/
|
|
2571
|
+
createDeepAgent<TAgent = BitfabLangGraphAgent>(params?: AgentParams): Promise<TAgent>;
|
|
2572
|
+
/**
|
|
2573
|
+
* Build a LangChain `createAgent` agent traced as this trace function: a
|
|
2574
|
+
* drop-in for `createAgent` from `langchain`. Every parameter is passed
|
|
2575
|
+
* through unchanged, except that `middleware` gains {@link middleware}.
|
|
2576
|
+
* Returns the agent wrapped by {@link instrument}.
|
|
2577
|
+
*
|
|
2578
|
+
* @experimental This API may change before it is stable.
|
|
2579
|
+
*/
|
|
2580
|
+
createAgent<TAgent = BitfabLangGraphAgent>(params: AgentParams): Promise<TAgent>;
|
|
2581
|
+
private withMiddleware;
|
|
2582
|
+
private withSubagentMiddleware;
|
|
2583
|
+
private interceptToolCall;
|
|
2584
|
+
private stepSpanIdFor;
|
|
2585
|
+
private recordingTraceId;
|
|
2586
|
+
private runClaimedToolCall;
|
|
2587
|
+
private shouldMock;
|
|
2437
2588
|
/**
|
|
2438
2589
|
* Wrap tools before passing the same returned array to both
|
|
2439
2590
|
* `model.bindTools()` and `new ToolNode()`. Each invocation becomes an
|
|
@@ -2445,7 +2596,7 @@ declare class BitfabLangGraphIntegration {
|
|
|
2445
2596
|
* callback handler, preserves invocation config, and records only the graph
|
|
2446
2597
|
* input as the replayable root input.
|
|
2447
2598
|
*
|
|
2448
|
-
* @
|
|
2599
|
+
* @deprecated Use `instrument(graph).invoke`, which also traces `stream`.
|
|
2449
2600
|
*/
|
|
2450
2601
|
createInvoker<TInput, TConfig, TReturn>(graph: LangGraphRunnable<TInput, TConfig, TReturn>): (input: TInput, config?: TConfig) => TReturn;
|
|
2451
2602
|
private wrapTool;
|
|
@@ -3450,6 +3601,10 @@ interface WrapJevOptions<TReply> {
|
|
|
3450
3601
|
/** Called after each Jev call with the reply, for the caller's own usage or cost reporting. */
|
|
3451
3602
|
onReply?: (reply: TReply) => void;
|
|
3452
3603
|
}
|
|
3604
|
+
interface WrapOpenRouterOptions<TResponse> {
|
|
3605
|
+
/** Called after each call with the chat completion, for the caller's own usage or cost reporting. */
|
|
3606
|
+
onResponse?: (response: TResponse) => void;
|
|
3607
|
+
}
|
|
3453
3608
|
interface WrapBAMLOptions {
|
|
3454
3609
|
/** Called after each BAML invocation with the Collector instance. */
|
|
3455
3610
|
onCollector?: (collector: unknown) => void;
|
|
@@ -3718,7 +3873,9 @@ interface SpanOptions {
|
|
|
3718
3873
|
* tees internally) does not disturb the caller's own consumption. For the
|
|
3719
3874
|
* Vercel AI SDK shape, pass the prebuilt `finalizers.aiSdk` helper.
|
|
3720
3875
|
*
|
|
3721
|
-
*
|
|
3876
|
+
* For an async-generator result, `finalize` receives the array of yielded
|
|
3877
|
+
* values once iteration completes, and its return is recorded instead of
|
|
3878
|
+
* the default `{ yielded, return }`.
|
|
3722
3879
|
*/
|
|
3723
3880
|
finalize?: (result: any) => unknown | Promise<unknown>;
|
|
3724
3881
|
}
|
|
@@ -4031,6 +4188,23 @@ declare class Bitfab {
|
|
|
4031
4188
|
* @experimental This API may change before it is stable.
|
|
4032
4189
|
*/
|
|
4033
4190
|
getLangGraphIntegration(traceFunctionKey: string, options?: LangGraphIntegrationOptions): BitfabLangGraphIntegration;
|
|
4191
|
+
/**
|
|
4192
|
+
* Get the LangGraph integration for a LangChain Deep Agents agent. Alias of
|
|
4193
|
+
* {@link getLangGraphIntegration}, named for Deep Agents: build the agent
|
|
4194
|
+
* with its `createDeepAgent()`, which takes the same parameters as
|
|
4195
|
+
* `createDeepAgent` from `deepagents`.
|
|
4196
|
+
*
|
|
4197
|
+
* ```typescript
|
|
4198
|
+
* const integration = client.getDeepAgentsIntegration("research-agent")
|
|
4199
|
+
* const agent = await integration.createDeepAgent({ model, tools, subagents })
|
|
4200
|
+
* await agent.invoke({ messages: [{ role: "user", content: "..." }] })
|
|
4201
|
+
* ```
|
|
4202
|
+
*
|
|
4203
|
+
* @param traceFunctionKey - Groups traces under this key in Bitfab
|
|
4204
|
+
* @param options - Controls which tools are marked for replay mocking
|
|
4205
|
+
* @experimental This API may change before it is stable.
|
|
4206
|
+
*/
|
|
4207
|
+
getDeepAgentsIntegration(traceFunctionKey: string, options?: LangGraphIntegrationOptions): BitfabLangGraphIntegration;
|
|
4034
4208
|
/**
|
|
4035
4209
|
* Get the first-class Rivet actor/workflow-context integration for an
|
|
4036
4210
|
* existing trace root. The integration binds context and records effect
|
|
@@ -4145,6 +4319,43 @@ declare class Bitfab {
|
|
|
4145
4319
|
* @returns An async function with the same signature that records each call
|
|
4146
4320
|
*/
|
|
4147
4321
|
wrapJev<TArgs extends unknown[], TReply>(method: (...args: TArgs) => TReply | Promise<TReply>, options?: WrapJevOptions<TReply>): (...args: TArgs) => Promise<TReply>;
|
|
4322
|
+
/**
|
|
4323
|
+
* Wrap a function that sends a chat completion to OpenRouter to record the
|
|
4324
|
+
* call's prompt, model, token usage, the cost OpenRouter reports, and
|
|
4325
|
+
* duration.
|
|
4326
|
+
*
|
|
4327
|
+
* Like `wrapJev`, it opens no span of its own. It writes into the span that
|
|
4328
|
+
* is current when the call starts, so call it inside a traced function. The
|
|
4329
|
+
* wrapped function must return the chat completion, as
|
|
4330
|
+
* `openai.chat.completions.create` does. When its first argument is the
|
|
4331
|
+
* request, the request's messages become the span's prompt. One context
|
|
4332
|
+
* entry holds `provider` (`"openrouter"`), `model` (the model OpenRouter
|
|
4333
|
+
* routed to), `upstreamProvider`, `inputTokens`, `outputTokens`,
|
|
4334
|
+
* `cachedInputTokens`, `reasoningTokens`, `costUsd` (OpenRouter's
|
|
4335
|
+
* `usage.cost`), and `durationMs`; fields the response omits are left out.
|
|
4336
|
+
*
|
|
4337
|
+
* Beneath a `withTrace()` root, each `.chat.completions.create(...)` call in
|
|
4338
|
+
* code compiled by the build transform, on a client whose base URL is
|
|
4339
|
+
* `openrouter.ai`, is recorded without this wrapper as its own `llm` span,
|
|
4340
|
+
* and a `wrapOpenRouter` around such a call records nothing more. Streaming
|
|
4341
|
+
* calls (`stream: true`) are not recorded.
|
|
4342
|
+
*
|
|
4343
|
+
* ```typescript
|
|
4344
|
+
* const openai = new OpenAI({ baseURL: "https://openrouter.ai/api/v1", apiKey })
|
|
4345
|
+
* const complete = client.wrapOpenRouter(
|
|
4346
|
+
* openai.chat.completions.create.bind(openai.chat.completions),
|
|
4347
|
+
* )
|
|
4348
|
+
* const response = await complete({
|
|
4349
|
+
* model: "anthropic/claude-sonnet-4.5",
|
|
4350
|
+
* messages: [{ role: "user", content: text }],
|
|
4351
|
+
* })
|
|
4352
|
+
* ```
|
|
4353
|
+
*
|
|
4354
|
+
* @param method - A named function that sends the request and returns the chat completion
|
|
4355
|
+
* @param options - `onResponse` is called with each chat completion after it is recorded
|
|
4356
|
+
* @returns An async function with the same signature that records each call
|
|
4357
|
+
*/
|
|
4358
|
+
wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4148
4359
|
/**
|
|
4149
4360
|
* Wrap a function to automatically create a span for its inputs and outputs.
|
|
4150
4361
|
*
|
|
@@ -4500,6 +4711,15 @@ declare class BitfabFunction {
|
|
|
4500
4711
|
* @experimental This API may change before it is stable.
|
|
4501
4712
|
*/
|
|
4502
4713
|
getLangGraphIntegration(options?: LangGraphIntegrationOptions): BitfabLangGraphIntegration;
|
|
4714
|
+
/**
|
|
4715
|
+
* Get the LangChain Deep Agents integration bound to this key. Build the
|
|
4716
|
+
* agent with its `createDeepAgent()`, which takes the same parameters as
|
|
4717
|
+
* `createDeepAgent` from `deepagents`.
|
|
4718
|
+
*
|
|
4719
|
+
* @param options - Controls which tools are marked for replay mocking
|
|
4720
|
+
* @experimental This API may change before it is stable.
|
|
4721
|
+
*/
|
|
4722
|
+
getDeepAgentsIntegration(options?: LangGraphIntegrationOptions): BitfabLangGraphIntegration;
|
|
4503
4723
|
/**
|
|
4504
4724
|
* Get the first-class Rivet actor-context integration bound to this key.
|
|
4505
4725
|
* Use its `bind()` or `withContext()` outside this handle's `withTrace()`
|
|
@@ -4537,6 +4757,19 @@ declare class BitfabFunction {
|
|
|
4537
4757
|
* @returns An async function with the same signature that records each call
|
|
4538
4758
|
*/
|
|
4539
4759
|
wrapJev<TArgs extends unknown[], TReply>(method: (...args: TArgs) => TReply | Promise<TReply>, options?: WrapJevOptions<TReply>): (...args: TArgs) => Promise<TReply>;
|
|
4760
|
+
/**
|
|
4761
|
+
* Wrap a function that sends a chat completion to OpenRouter to record the
|
|
4762
|
+
* call's prompt, model, token usage, cost, and duration. Delegates to the
|
|
4763
|
+
* parent client's wrapOpenRouter method.
|
|
4764
|
+
*
|
|
4765
|
+
* Like `wrapJev`, it does not use the bound key and opens no span of its
|
|
4766
|
+
* own: it writes into the span that is current when the call starts.
|
|
4767
|
+
*
|
|
4768
|
+
* @param method - A named function that sends the request and returns the chat completion
|
|
4769
|
+
* @param options - `onResponse` is called with each chat completion after it is recorded
|
|
4770
|
+
* @returns An async function with the same signature that records each call
|
|
4771
|
+
*/
|
|
4772
|
+
wrapOpenRouter<TArgs extends unknown[], TResponse>(method: (...args: TArgs) => TResponse | Promise<TResponse>, options?: WrapOpenRouterOptions<TResponse>): (...args: TArgs) => Promise<TResponse>;
|
|
4540
4773
|
}
|
|
4541
4774
|
//#endregion
|
|
4542
4775
|
//#region src/commitRef.d.ts
|
|
@@ -4557,7 +4790,7 @@ interface CommitRef {
|
|
|
4557
4790
|
/**
|
|
4558
4791
|
* SDK version from package.json (injected at build time)
|
|
4559
4792
|
*/
|
|
4560
|
-
declare const __version__ = "0.68.
|
|
4793
|
+
declare const __version__ = "0.68.2";
|
|
4561
4794
|
//#endregion
|
|
4562
4795
|
//#region src/constants.d.ts
|
|
4563
4796
|
/**
|
|
@@ -4699,4 +4932,4 @@ declare function seedFromRegistry(registry: ReplayRegistry, pipeline: string, ca
|
|
|
4699
4932
|
run?: boolean;
|
|
4700
4933
|
}): Promise<SeedResult>;
|
|
4701
4934
|
//#endregion
|
|
4702
|
-
export {
|
|
4935
|
+
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 };
|
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-CdQRfsrA.cjs");
|
|
15
|
+
const require_http = require("./http-Dqc-f3sp.cjs");
|
|
16
16
|
exports.AssertionCategoriesClient = require_src.AssertionCategoriesClient;
|
|
17
17
|
exports.AssertionGenerationError = require_src.AssertionGenerationError;
|
|
18
18
|
exports.AssertionGenerationTimeoutError = require_src.AssertionGenerationTimeoutError;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapBAMLOptions, type WrapJevOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
|
1
|
+
import { $ as ReplayBranch, $n as ExperimentJitter, $r as MockOverrideCtx, $t as LabelsClient, A as SpanMethodDecoratorContext, An as SavedTraceAssertion, Ar as BitfabVercelAiHandler, At as GraderLabel, B as ActiveSpanContext, Bn as TraceAssertion, Br as CategorySummary, Bt as ArchiveVerdictTarget, C as NodeMethodDecorator, Ci as Justification, Cn as SaveAssertion, Cr as RemoveDatasetTracesResult, Ct as BitfabAgentMiddleware, D as SeedCaseOptions, Dn as SaveScenarioData, Dr as SaveDatasetResult, Dt as BitfabLangGraphCallbackHandler, E as ReseedResult, En as SaveScenarioActualOutcome, Er as SaveDatasetParams, Et as LangGraphIntegrationOptions, F as WrappedBamlFn, Fn as ScenarioDataAppend, Fr as AssertionCategoriesClient, Ft as GraderVerdictOutcome, G as SpanListField, Gn as TraceSearchParams, Gr as HttpClient, Gt as HumanVerdictUpdate, H as TraceResponse, Hn as TraceAssertionsResult, Hr as SaveCategoryParams, Ht as HumanLabelOutcome, I as getCurrentReplayBranch, In as ScenarioDataOrigin, Ir as AssertionCategory, It as GraderVerdictSource, J as SpansClient, Jn as TraceTargetOccurrence, Jr as SpanType, Jt as LabelOutcome, K as SpanListParams, Kn as TraceSearchResult, Kr as SpanLookup, Kt as LabelAction, L as getCurrentSpan, Ln as ScenarioHistoryEntry, Lr as AssertionCategorySummary, Lt as GraderVerdictUpdate, M as WrapBAMLOptions, Mn as ScenarioAction, Mr as VercelGenerateResult, Mt as GraderLabelSource, N as WrapJevOptions, Nn as ScenarioActualOutcome, Nr as VercelStreamResult, Nt as GraderLabelUpdate, O as SeedRunOptions, On as SaveScenarioHistoryEntry, Or as UpdateDatasetParams, Ot as GetGraderLabelsParams, P as WrapOpenRouterOptions, Pn as ScenarioData, Pr as BitfabClaudeAgentHandler, Pt as GraderVerdict, Q as RivetIntegrationOptions, Qn as ExperimentCodeChangeTotals, Qr as MockOverride, Qt as LabelUpdate, R as getCurrentTrace, Rn as ScenarioSource, Rr as CategoriesClient, Rt as GradersClient, S as DetachedTrace, Si as Assignee, Sn as GenerateAssertionsOptions, Sr as RemoveDatasetGradersResult, St as BitfabOpenAIAgentHandler, T as ReseedOptions, Tn as SaveAssertionsParams, Tr as RerunGradersResult, Tt as BitfabLangGraphIntegration, U as TracingProcessor, Un as TraceAssertionsUpdate, Ur as CapturedSpan, Ut as HumanLabelUpdate, V as BitfabOpenAITracingProcessor, Vn as TraceAssertionSource, Vr as SaveAssertionCategoryParams, Vt as AssertionVerdict, W as ListedSpan, Wn as TraceSearchFilters, Wr as CodeChangeFile, Wt as HumanVerdictOutcome, X as RivetContextLike, Xn as Experiment, Xr as flushTraces, Xt as LabelStatus, Y as BitfabRivetIntegration, Yn as TracesClient, Yr as TokenUsage, Yt as LabelSource, Z as RivetEffectType, Zn as ExperimentCategoryTally, Zr as DbBranchTimings, Zt as LabelTarget, _ as BitfabConfig, _i as BamlExecutionResult, _n as AssertionGenerationTimeoutError, _r as GraderRerunProgress, _t as serializeReplayResult, a as ReplayRegistryOptions, ai as SpanNodeMeta, an as VerdictConfidence, ar as ExperimentTally, at as MockStrategy, b as CurrentSpan, bi as ApprovalState, bn as AssertionRewriteStatus, br as GraderRerunTimeoutError, bt as OrganizationMember, c as SeedResult, ci as DbSnapshotConfig, cn as VerdictStatus, cr as ListExperimentsParams, ct as ReplayItem, d as seedFromRegistry, di as SUPPORTED_PROVIDERS, dn as VerdictsClient, dr as Dataset, dt as ReplayOptions, ei as MockOverrideInput, en as PassFailVerdict, er as ExperimentPage, et as AdaptContext, f as finalizers, fi as ReplayNodeIdentity, fn as ArchiveAssertionsParams, fr as DatasetGraderRef, ft as ReplayProgress, g as Bitfab, gi as AllowedEnvVars, gn as AssertionGenerationStatus, gr as GraderRerunError, gt as reportReplayProgress, h as CommitRef, hi as SelectiveReplayReport, hn as AssertionGenerationError, hr as GraderRerun, ht as TraceIngestionType, i as ReplayRegistryContext, ii as NodeMatcher, in as VerdictAction, ir as ExperimentStatus, it as DbBranchReplayError, j as SpanOptions, jn as Scenario, jr as VercelCallParams, jt as GraderLabelOutcome, k as SpanMethodDecorator, kn as SaveScenarioParams, kr as BitfabLanguageModelMiddleware, kt as GetGraderVerdictsParams, l as defineReplayRegistry, li as DbSnapshotProvider, ln as VerdictTarget, lr as AddDatasetGradersResult, lt as ReplayItemFinishProgress, m as __version__, mi as SelectiveReplayOptions, mn as AssertionGeneration, mr as DatasetsClient, mt as ReplayResult, n as ReplayRegistration, ni as MockValue, nn as TraceVerdicts, nr as ExperimentRollupResult, nt as BITFAB_PROGRESS_PREFIX, o as ReseedRegistryResult, oi as BitfabError, on as VerdictOutcome, or as ExperimentTotals, ot as ReplayError, p as DEFAULT_SERVICE_URL, pi as SelectiveReplayDecision, pn as AssertionEvidenceParameter, pr as DatasetTraceIds, pt as ReplayProgressItem, q as SpanListResult, qn as TraceTarget, qr as SpanOccurrence, qt as LabelConfidence, r as ReplayRegistry, ri as NO_MOCK_OVERRIDE, rn as Verdict, rr as ExperimentRunBy, rt as DbBranchOptions, s as SeedCase, si as MixedTracingError, sn as VerdictSource, sr as ExperimentsClient, st as ReplayExperiment, t as ReplayOptionsFactory, ti as MockOverrideResolver, tn as TraceLabels, tr as ExperimentRollup, tt as AdaptInputsFn, u as reseedFromRegistry, ui as DbSnapshotRef, un as VerdictUpdate, ur as AddDatasetTracesResult, ut as ReplayItemStartProgress, v as BitfabFunction, vi as ProviderDefinition, vn as AssertionLabelEvidence, vr as GraderRerunResult, vt as ReplayInterrupt, w as NodeOptions, wi as JustificationSpan, wn as SaveAssertionsAllParams, wr as RerunGradersOptions, wt as BitfabLangGraphAgent, x as CurrentTrace, xi as Approver, xn as AssertionVerdictEvidence, xr as ListDatasetsParams, xt as OrganizationMembersClient, y as CaptureWhen, yi as ApprovalFields, yn as AssertionRewrite, yr as GraderRerunStatus, yt as ReplayInterruptSignal, z as CaptureSurface, zn as ScenarioTrigger, zr as Category, zt as ArchiveLabelTarget } from "./index-Cmrec4hc.cjs";
|
|
2
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapBAMLOptions, type WrapJevOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
|
1
|
+
import { $ as ReplayBranch, $n as ExperimentJitter, $r as MockOverrideCtx, $t as LabelsClient, A as SpanMethodDecoratorContext, An as SavedTraceAssertion, Ar as BitfabVercelAiHandler, At as GraderLabel, B as ActiveSpanContext, Bn as TraceAssertion, Br as CategorySummary, Bt as ArchiveVerdictTarget, C as NodeMethodDecorator, Ci as Justification, Cn as SaveAssertion, Cr as RemoveDatasetTracesResult, Ct as BitfabAgentMiddleware, D as SeedCaseOptions, Dn as SaveScenarioData, Dr as SaveDatasetResult, Dt as BitfabLangGraphCallbackHandler, E as ReseedResult, En as SaveScenarioActualOutcome, Er as SaveDatasetParams, Et as LangGraphIntegrationOptions, F as WrappedBamlFn, Fn as ScenarioDataAppend, Fr as AssertionCategoriesClient, Ft as GraderVerdictOutcome, G as SpanListField, Gn as TraceSearchParams, Gr as HttpClient, Gt as HumanVerdictUpdate, H as TraceResponse, Hn as TraceAssertionsResult, Hr as SaveCategoryParams, Ht as HumanLabelOutcome, I as getCurrentReplayBranch, In as ScenarioDataOrigin, Ir as AssertionCategory, It as GraderVerdictSource, J as SpansClient, Jn as TraceTargetOccurrence, Jr as SpanType, Jt as LabelOutcome, K as SpanListParams, Kn as TraceSearchResult, Kr as SpanLookup, Kt as LabelAction, L as getCurrentSpan, Ln as ScenarioHistoryEntry, Lr as AssertionCategorySummary, Lt as GraderVerdictUpdate, M as WrapBAMLOptions, Mn as ScenarioAction, Mr as VercelGenerateResult, Mt as GraderLabelSource, N as WrapJevOptions, Nn as ScenarioActualOutcome, Nr as VercelStreamResult, Nt as GraderLabelUpdate, O as SeedRunOptions, On as SaveScenarioHistoryEntry, Or as UpdateDatasetParams, Ot as GetGraderLabelsParams, P as WrapOpenRouterOptions, Pn as ScenarioData, Pr as BitfabClaudeAgentHandler, Pt as GraderVerdict, Q as RivetIntegrationOptions, Qn as ExperimentCodeChangeTotals, Qr as MockOverride, Qt as LabelUpdate, R as getCurrentTrace, Rn as ScenarioSource, Rr as CategoriesClient, Rt as GradersClient, S as DetachedTrace, Si as Assignee, Sn as GenerateAssertionsOptions, Sr as RemoveDatasetGradersResult, St as BitfabOpenAIAgentHandler, T as ReseedOptions, Tn as SaveAssertionsParams, Tr as RerunGradersResult, Tt as BitfabLangGraphIntegration, U as TracingProcessor, Un as TraceAssertionsUpdate, Ur as CapturedSpan, Ut as HumanLabelUpdate, V as BitfabOpenAITracingProcessor, Vn as TraceAssertionSource, Vr as SaveAssertionCategoryParams, Vt as AssertionVerdict, W as ListedSpan, Wn as TraceSearchFilters, Wr as CodeChangeFile, Wt as HumanVerdictOutcome, X as RivetContextLike, Xn as Experiment, Xr as flushTraces, Xt as LabelStatus, Y as BitfabRivetIntegration, Yn as TracesClient, Yr as TokenUsage, Yt as LabelSource, Z as RivetEffectType, Zn as ExperimentCategoryTally, Zr as DbBranchTimings, Zt as LabelTarget, _ as BitfabConfig, _i as BamlExecutionResult, _n as AssertionGenerationTimeoutError, _r as GraderRerunProgress, _t as serializeReplayResult, a as ReplayRegistryOptions, ai as SpanNodeMeta, an as VerdictConfidence, ar as ExperimentTally, at as MockStrategy, b as CurrentSpan, bi as ApprovalState, bn as AssertionRewriteStatus, br as GraderRerunTimeoutError, bt as OrganizationMember, c as SeedResult, ci as DbSnapshotConfig, cn as VerdictStatus, cr as ListExperimentsParams, ct as ReplayItem, d as seedFromRegistry, di as SUPPORTED_PROVIDERS, dn as VerdictsClient, dr as Dataset, dt as ReplayOptions, ei as MockOverrideInput, en as PassFailVerdict, er as ExperimentPage, et as AdaptContext, f as finalizers, fi as ReplayNodeIdentity, fn as ArchiveAssertionsParams, fr as DatasetGraderRef, ft as ReplayProgress, g as Bitfab, gi as AllowedEnvVars, gn as AssertionGenerationStatus, gr as GraderRerunError, gt as reportReplayProgress, h as CommitRef, hi as SelectiveReplayReport, hn as AssertionGenerationError, hr as GraderRerun, ht as TraceIngestionType, i as ReplayRegistryContext, ii as NodeMatcher, in as VerdictAction, ir as ExperimentStatus, it as DbBranchReplayError, j as SpanOptions, jn as Scenario, jr as VercelCallParams, jt as GraderLabelOutcome, k as SpanMethodDecorator, kn as SaveScenarioParams, kr as BitfabLanguageModelMiddleware, kt as GetGraderVerdictsParams, l as defineReplayRegistry, li as DbSnapshotProvider, ln as VerdictTarget, lr as AddDatasetGradersResult, lt as ReplayItemFinishProgress, m as __version__, mi as SelectiveReplayOptions, mn as AssertionGeneration, mr as DatasetsClient, mt as ReplayResult, n as ReplayRegistration, ni as MockValue, nn as TraceVerdicts, nr as ExperimentRollupResult, nt as BITFAB_PROGRESS_PREFIX, o as ReseedRegistryResult, oi as BitfabError, on as VerdictOutcome, or as ExperimentTotals, ot as ReplayError, p as DEFAULT_SERVICE_URL, pi as SelectiveReplayDecision, pn as AssertionEvidenceParameter, pr as DatasetTraceIds, pt as ReplayProgressItem, q as SpanListResult, qn as TraceTarget, qr as SpanOccurrence, qt as LabelConfidence, r as ReplayRegistry, ri as NO_MOCK_OVERRIDE, rn as Verdict, rr as ExperimentRunBy, rt as DbBranchOptions, s as SeedCase, si as MixedTracingError, sn as VerdictSource, sr as ExperimentsClient, st as ReplayExperiment, t as ReplayOptionsFactory, ti as MockOverrideResolver, tn as TraceLabels, tr as ExperimentRollup, tt as AdaptInputsFn, u as reseedFromRegistry, ui as DbSnapshotRef, un as VerdictUpdate, ur as AddDatasetTracesResult, ut as ReplayItemStartProgress, v as BitfabFunction, vi as ProviderDefinition, vn as AssertionLabelEvidence, vr as GraderRerunResult, vt as ReplayInterrupt, w as NodeOptions, wi as JustificationSpan, wn as SaveAssertionsAllParams, wr as RerunGradersOptions, wt as BitfabLangGraphAgent, x as CurrentTrace, xi as Approver, xn as AssertionVerdictEvidence, xr as ListDatasetsParams, xt as OrganizationMembersClient, y as CaptureWhen, yi as ApprovalFields, yn as AssertionRewrite, yr as GraderRerunStatus, yt as ReplayInterruptSignal, z as CaptureSurface, zn as ScenarioTrigger, zr as Category, zt as ArchiveLabelTarget } from "./index-Cmrec4hc.js";
|
|
2
|
+
export { type ActiveSpanContext, type AdaptContext, type AdaptInputsFn, type AddDatasetGradersResult, type AddDatasetTracesResult, type AllowedEnvVars, type ApprovalFields, type ApprovalState, type Approver, type ArchiveAssertionsParams, type ArchiveLabelTarget, type ArchiveVerdictTarget, AssertionCategoriesClient, type AssertionCategory, type AssertionCategorySummary, type AssertionEvidenceParameter, type AssertionGeneration, AssertionGenerationError, type AssertionGenerationStatus, AssertionGenerationTimeoutError, type AssertionLabelEvidence, type AssertionRewrite, type AssertionRewriteStatus, type AssertionVerdict, type AssertionVerdictEvidence, type Assignee, BITFAB_PROGRESS_PREFIX, type BamlExecutionResult, Bitfab, type BitfabAgentMiddleware, BitfabClaudeAgentHandler, type BitfabConfig, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, type BitfabLangGraphAgent, BitfabLangGraphIntegration, type BitfabLanguageModelMiddleware, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, type CaptureSurface, type CaptureWhen, type CapturedSpan, CategoriesClient, type Category, type CategorySummary, type CodeChangeFile, type CommitRef, type CurrentSpan, type CurrentTrace, DEFAULT_SERVICE_URL, type Dataset, type DatasetGraderRef, type DatasetTraceIds, DatasetsClient, type DbBranchOptions, DbBranchReplayError, type DbBranchTimings, type DbSnapshotConfig, type DbSnapshotProvider, type DbSnapshotRef, type DetachedTrace, type Experiment, type ExperimentCategoryTally, type ExperimentCodeChangeTotals, type ExperimentJitter, type ExperimentPage, type ExperimentRollup, type ExperimentRollupResult, type ExperimentRunBy, type ExperimentStatus, type ExperimentTally, type ExperimentTotals, ExperimentsClient, type GenerateAssertionsOptions, type GetGraderLabelsParams, type GetGraderVerdictsParams, type GraderLabel, type GraderLabelOutcome, type GraderLabelSource, type GraderLabelUpdate, type GraderRerun, GraderRerunError, type GraderRerunProgress, type GraderRerunResult, type GraderRerunStatus, GraderRerunTimeoutError, type GraderVerdict, type GraderVerdictOutcome, type GraderVerdictSource, type GraderVerdictUpdate, GradersClient, HttpClient, type HumanLabelOutcome, type HumanLabelUpdate, type HumanVerdictOutcome, type HumanVerdictUpdate, type Justification, type JustificationSpan, type LabelAction, type LabelConfidence, type LabelOutcome, type LabelSource, type LabelStatus, type LabelTarget, type LabelUpdate, LabelsClient, type LangGraphIntegrationOptions, type ListDatasetsParams, type ListExperimentsParams, type ListedSpan, MixedTracingError, type MockOverride, type MockOverrideCtx, type MockOverrideInput, type MockOverrideResolver, type MockStrategy, type MockValue, NO_MOCK_OVERRIDE, type NodeMatcher, type NodeMethodDecorator, type NodeOptions, type OrganizationMember, OrganizationMembersClient, type PassFailVerdict, type ProviderDefinition, type RemoveDatasetGradersResult, type RemoveDatasetTracesResult, type ReplayBranch, ReplayError, type ReplayExperiment, type ReplayInterrupt, type ReplayInterruptSignal, type ReplayItem, type ReplayItemFinishProgress, type ReplayItemStartProgress, type ReplayNodeIdentity, type ReplayOptions, type ReplayOptionsFactory, type ReplayProgress, type ReplayProgressItem, type ReplayRegistration, type ReplayRegistry, type ReplayRegistryContext, type ReplayRegistryOptions, type ReplayResult, type RerunGradersOptions, type RerunGradersResult, type ReseedOptions, type ReseedRegistryResult, type ReseedResult, type RivetContextLike, type RivetEffectType, type RivetIntegrationOptions, SUPPORTED_PROVIDERS, type SaveAssertion, type SaveAssertionCategoryParams, type SaveAssertionsAllParams, type SaveAssertionsParams, type SaveCategoryParams, type SaveDatasetParams, type SaveDatasetResult, type SaveScenarioActualOutcome, type SaveScenarioData, type SaveScenarioHistoryEntry, type SaveScenarioParams, type SavedTraceAssertion, type Scenario, type ScenarioAction, type ScenarioActualOutcome, type ScenarioData, type ScenarioDataAppend, type ScenarioDataOrigin, type ScenarioHistoryEntry, type ScenarioSource, type ScenarioTrigger, type SeedCase, type SeedCaseOptions, type SeedResult, type SeedRunOptions, type SelectiveReplayDecision, type SelectiveReplayOptions, type SelectiveReplayReport, type SpanListField, type SpanListParams, type SpanListResult, type SpanLookup, type SpanMethodDecorator, type SpanMethodDecoratorContext, type SpanNodeMeta, type SpanOccurrence, type SpanOptions, type SpanType, SpansClient, type TokenUsage, type TraceAssertion, type TraceAssertionSource, type TraceAssertionsResult, type TraceAssertionsUpdate, type TraceIngestionType, type TraceLabels, type TraceResponse, type TraceSearchFilters, type TraceSearchParams, type TraceSearchResult, type TraceTarget, type TraceTargetOccurrence, type TraceVerdicts, TracesClient, type TracingProcessor, type UpdateDatasetParams, type VercelCallParams, type VercelGenerateResult, type VercelStreamResult, type Verdict, type VerdictAction, type VerdictConfidence, type VerdictOutcome, type VerdictSource, type VerdictStatus, type VerdictTarget, type VerdictUpdate, VerdictsClient, type WrapBAMLOptions, type WrapJevOptions, type WrapOpenRouterOptions, type WrappedBamlFn, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,6 @@ if (typeof globalThis.__bitfab_deprecation_warned === "undefined") {
|
|
|
7
7
|
"The bitfab package will stop receiving updates in a future release."
|
|
8
8
|
);
|
|
9
9
|
}
|
|
10
|
-
import { A as ExperimentsClient, C as BitfabOpenAIAgentHandler, D as GradersClient, E as BitfabLangGraphCallbackHandler, F as BitfabClaudeAgentHandler, I as DEFAULT_SERVICE_URL, L as AssertionCategoriesClient, M as DatasetsClient, N as GraderRerunError, O as LabelsClient, P as GraderRerunTimeoutError, R as CategoriesClient, S as OrganizationMembersClient, T as BitfabLangGraphIntegration, _ as BITFAB_PROGRESS_PREFIX, a as Bitfab, b as reportReplayProgress, c as getCurrentSpan, d as BitfabOpenAITracingProcessor, f as AssertionGenerationError, g as BitfabRivetIntegration, h as SpansClient, i as finalizers, j as SUPPORTED_PROVIDERS, k as VerdictsClient, l as getCurrentTrace, m as TracesClient, n as reseedFromRegistry, o as BitfabFunction, p as AssertionGenerationTimeoutError, r as seedFromRegistry, s as getCurrentReplayBranch, t as defineReplayRegistry, u as BitfabVercelAiHandler, v as DbBranchReplayError, w as NO_MOCK_OVERRIDE, x as serializeReplayResult, y as ReplayError } from "./src-
|
|
11
|
-
import { S as MixedTracingError, i as flushTraces, t as HttpClient, w as __version__, x as BitfabError } from "./http-
|
|
10
|
+
import { A as ExperimentsClient, C as BitfabOpenAIAgentHandler, D as GradersClient, E as BitfabLangGraphCallbackHandler, F as BitfabClaudeAgentHandler, I as DEFAULT_SERVICE_URL, L as AssertionCategoriesClient, M as DatasetsClient, N as GraderRerunError, O as LabelsClient, P as GraderRerunTimeoutError, R as CategoriesClient, S as OrganizationMembersClient, T as BitfabLangGraphIntegration, _ as BITFAB_PROGRESS_PREFIX, a as Bitfab, b as reportReplayProgress, c as getCurrentSpan, d as BitfabOpenAITracingProcessor, f as AssertionGenerationError, g as BitfabRivetIntegration, h as SpansClient, i as finalizers, j as SUPPORTED_PROVIDERS, k as VerdictsClient, l as getCurrentTrace, m as TracesClient, n as reseedFromRegistry, o as BitfabFunction, p as AssertionGenerationTimeoutError, r as seedFromRegistry, s as getCurrentReplayBranch, t as defineReplayRegistry, u as BitfabVercelAiHandler, v as DbBranchReplayError, w as NO_MOCK_OVERRIDE, x as serializeReplayResult, y as ReplayError } from "./src-BF95TP1K.js";
|
|
11
|
+
import { S as MixedTracingError, i as flushTraces, t as HttpClient, w as __version__, x as BitfabError } from "./http-Cs_vVjrS.js";
|
|
12
12
|
export { AssertionCategoriesClient, AssertionGenerationError, AssertionGenerationTimeoutError, BITFAB_PROGRESS_PREFIX, Bitfab, BitfabClaudeAgentHandler, BitfabError, BitfabFunction, BitfabLangGraphCallbackHandler as BitfabLangChainCallbackHandler, BitfabLangGraphCallbackHandler, BitfabLangGraphIntegration, BitfabOpenAIAgentHandler, BitfabOpenAITracingProcessor, BitfabRivetIntegration, BitfabVercelAiHandler, CategoriesClient, DEFAULT_SERVICE_URL, DatasetsClient, DbBranchReplayError, ExperimentsClient, GraderRerunError, GraderRerunTimeoutError, GradersClient, HttpClient, LabelsClient, MixedTracingError, NO_MOCK_OVERRIDE, OrganizationMembersClient, ReplayError, SUPPORTED_PROVIDERS, SpansClient, TracesClient, VerdictsClient, __version__, defineReplayRegistry, finalizers, flushTraces, getCurrentReplayBranch, getCurrentSpan, getCurrentTrace, reportReplayProgress, reseedFromRegistry, seedFromRegistry, serializeReplayResult };
|
package/dist/node.cjs
CHANGED
|
@@ -11,9 +11,9 @@ Object.defineProperties(exports, {
|
|
|
11
11
|
__esModule: { value: true },
|
|
12
12
|
[Symbol.toStringTag]: { value: "Module" }
|
|
13
13
|
});
|
|
14
|
-
const require_src = require("./src-
|
|
15
|
-
const require_http = require("./http-
|
|
16
|
-
const require_autoTrace = require("./autoTrace-
|
|
14
|
+
const require_src = require("./src-CdQRfsrA.cjs");
|
|
15
|
+
const require_http = require("./http-Dqc-f3sp.cjs");
|
|
16
|
+
const require_autoTrace = require("./autoTrace-D3-OZcmR.cjs");
|
|
17
17
|
let async_hooks = require("async_hooks");
|
|
18
18
|
//#region src/asyncStorageNode.ts
|
|
19
19
|
require_autoTrace.registerAsyncLocalStorageClass(async_hooks.AsyncLocalStorage);
|