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.
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-QT7HWOKU.js";
10
10
 
11
11
  // src/version.generated.ts
12
- var __version__ = "0.16.0";
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. `limit` and `traceIds` are
2791
- * mutually exclusive an explicit ID list already determines how many
2792
- * traces replay, so passing both throws a BitfabError.
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-WIBKB3BK.js");
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-53G5GR7B.js.map
2893
+ //# sourceMappingURL=chunk-4WJPQT2X.js.map