bitfab 0.16.0 → 0.16.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/{chunk-53G5GR7B.js → chunk-4WJPQT2X.js} +24 -6
- package/dist/{chunk-53G5GR7B.js.map → chunk-4WJPQT2X.js.map} +1 -1
- package/dist/index.cjs +30 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -8
- package/dist/index.d.ts +24 -8
- package/dist/index.js +2 -1
- package/dist/node.cjs +30 -7
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +2 -1
- package/dist/{replay-WIBKB3BK.js → replay-BIPIDXX6.js} +7 -4
- package/dist/replay-BIPIDXX6.js.map +1 -0
- package/package.json +1 -1
- package/dist/replay-WIBKB3BK.js.map +0 -1
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-QT7HWOKU.js";
|
|
10
10
|
|
|
11
11
|
// src/version.generated.ts
|
|
12
|
-
var __version__ = "0.16.
|
|
12
|
+
var __version__ = "0.16.2";
|
|
13
13
|
|
|
14
14
|
// src/constants.ts
|
|
15
15
|
var DEFAULT_SERVICE_URL = "https://bitfab.ai";
|
|
@@ -2284,6 +2284,24 @@ var Bitfab = class {
|
|
|
2284
2284
|
}
|
|
2285
2285
|
});
|
|
2286
2286
|
}
|
|
2287
|
+
/**
|
|
2288
|
+
* Get a LangChain callback handler for tracing.
|
|
2289
|
+
*
|
|
2290
|
+
* Alias of {@link getLangGraphCallbackHandler}: LangChain chains and
|
|
2291
|
+
* LangGraph graphs share the same callback system, so one handler serves
|
|
2292
|
+
* both.
|
|
2293
|
+
*
|
|
2294
|
+
* ```typescript
|
|
2295
|
+
* const handler = client.getLangChainCallbackHandler("my-chain");
|
|
2296
|
+
* const result = await chain.invoke(input, { callbacks: [handler] });
|
|
2297
|
+
* ```
|
|
2298
|
+
*
|
|
2299
|
+
* @param traceFunctionKey - Groups traces under this key in Bitfab
|
|
2300
|
+
* @returns A BitfabLangGraphCallbackHandler configured for this client
|
|
2301
|
+
*/
|
|
2302
|
+
getLangChainCallbackHandler(traceFunctionKey) {
|
|
2303
|
+
return this.getLangGraphCallbackHandler(traceFunctionKey);
|
|
2304
|
+
}
|
|
2287
2305
|
/**
|
|
2288
2306
|
* Get a Claude Agent SDK handler for tracing.
|
|
2289
2307
|
*
|
|
@@ -2787,13 +2805,13 @@ var Bitfab = class {
|
|
|
2787
2805
|
*
|
|
2788
2806
|
* @param traceFunctionKey - The trace function key to replay
|
|
2789
2807
|
* @param fn - The function to replay (must be the return value of `withSpan`)
|
|
2790
|
-
* @param options - Optional replay options.
|
|
2791
|
-
*
|
|
2792
|
-
*
|
|
2808
|
+
* @param options - Optional replay options. When `traceIds` is passed,
|
|
2809
|
+
* `limit` is ignored (with a warning): an explicit ID list already
|
|
2810
|
+
* determines how many traces replay.
|
|
2793
2811
|
* @returns ReplayResult with items, testRunId, and testRunUrl
|
|
2794
2812
|
*/
|
|
2795
2813
|
async replay(traceFunctionKey, fn, options) {
|
|
2796
|
-
const { replay: doReplay } = await import("./replay-
|
|
2814
|
+
const { replay: doReplay } = await import("./replay-BIPIDXX6.js");
|
|
2797
2815
|
return doReplay(
|
|
2798
2816
|
this.httpClient,
|
|
2799
2817
|
this.serviceUrl,
|
|
@@ -2872,4 +2890,4 @@ export {
|
|
|
2872
2890
|
Bitfab,
|
|
2873
2891
|
BitfabFunction
|
|
2874
2892
|
};
|
|
2875
|
-
//# sourceMappingURL=chunk-
|
|
2893
|
+
//# sourceMappingURL=chunk-4WJPQT2X.js.map
|