braintrust 3.8.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dev/dist/index.d.mts +84 -3
  2. package/dev/dist/index.d.ts +84 -3
  3. package/dev/dist/index.js +3687 -691
  4. package/dev/dist/index.mjs +3399 -403
  5. package/dist/auto-instrumentations/bundler/esbuild.cjs +575 -2
  6. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  7. package/dist/auto-instrumentations/bundler/rollup.cjs +575 -2
  8. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/vite.cjs +575 -2
  10. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  11. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +575 -2
  12. package/dist/auto-instrumentations/bundler/webpack.cjs +575 -2
  13. package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
  14. package/dist/auto-instrumentations/{chunk-MD7W27YH.mjs → chunk-G7F6HZGE.mjs} +5 -1
  15. package/dist/auto-instrumentations/{chunk-OLBMPZXE.mjs → chunk-KIMMUFAK.mjs} +578 -3
  16. package/dist/auto-instrumentations/hook.mjs +757 -10
  17. package/dist/auto-instrumentations/index.cjs +739 -2
  18. package/dist/auto-instrumentations/index.d.mts +18 -1
  19. package/dist/auto-instrumentations/index.d.ts +18 -1
  20. package/dist/auto-instrumentations/index.mjs +168 -1
  21. package/dist/auto-instrumentations/loader/esm-hook.mjs +2 -1
  22. package/dist/browser.d.mts +312 -6
  23. package/dist/browser.d.ts +312 -6
  24. package/dist/browser.js +5335 -1892
  25. package/dist/browser.mjs +5335 -1892
  26. package/dist/cli.js +3514 -489
  27. package/dist/edge-light.d.mts +1 -1
  28. package/dist/edge-light.d.ts +1 -1
  29. package/dist/edge-light.js +5335 -1892
  30. package/dist/edge-light.mjs +5335 -1892
  31. package/dist/index.d.mts +312 -6
  32. package/dist/index.d.ts +312 -6
  33. package/dist/index.js +4244 -801
  34. package/dist/index.mjs +5335 -1892
  35. package/dist/instrumentation/index.d.mts +10 -0
  36. package/dist/instrumentation/index.d.ts +10 -0
  37. package/dist/instrumentation/index.js +3160 -286
  38. package/dist/instrumentation/index.mjs +3160 -286
  39. package/dist/workerd.d.mts +1 -1
  40. package/dist/workerd.d.ts +1 -1
  41. package/dist/workerd.js +5335 -1892
  42. package/dist/workerd.mjs +5335 -1892
  43. package/package.json +52 -47
  44. package/util/dist/index.d.mts +42 -1
  45. package/util/dist/index.d.ts +42 -1
  46. package/util/dist/index.js +5 -1
  47. package/util/dist/index.mjs +4 -0
  48. package/LICENSE +0 -201
@@ -237,10 +237,13 @@ interface BraintrustPluginConfig {
237
237
  aisdk?: boolean;
238
238
  google?: boolean;
239
239
  googleGenAI?: boolean;
240
+ huggingface?: boolean;
240
241
  claudeAgentSDK?: boolean;
241
242
  openrouter?: boolean;
242
243
  openrouterAgent?: boolean;
243
244
  mistral?: boolean;
245
+ googleADK?: boolean;
246
+ cohere?: boolean;
244
247
  };
245
248
  }
246
249
  /**
@@ -252,7 +255,9 @@ interface BraintrustPluginConfig {
252
255
  * - Claude Agent SDK (agent interactions)
253
256
  * - Vercel AI SDK (generateText, streamText, etc.)
254
257
  * - Google GenAI SDK
258
+ * - HuggingFace Inference SDK
255
259
  * - Mistral SDK
260
+ * - Cohere SDK
256
261
  *
257
262
  * The plugin is automatically enabled when the Braintrust library is loaded.
258
263
  * Individual integrations can be disabled via configuration.
@@ -264,9 +269,12 @@ declare class BraintrustPlugin extends BasePlugin {
264
269
  private aiSDKPlugin;
265
270
  private claudeAgentSDKPlugin;
266
271
  private googleGenAIPlugin;
272
+ private huggingFacePlugin;
267
273
  private openRouterPlugin;
268
274
  private openRouterAgentPlugin;
269
275
  private mistralPlugin;
276
+ private googleADKPlugin;
277
+ private coherePlugin;
270
278
  constructor(config?: BraintrustPluginConfig);
271
279
  protected onEnable(): void;
272
280
  protected onDisable(): void;
@@ -289,10 +297,12 @@ interface InstrumentationConfig {
289
297
  vercel?: boolean;
290
298
  aisdk?: boolean;
291
299
  google?: boolean;
300
+ huggingface?: boolean;
292
301
  claudeAgentSDK?: boolean;
293
302
  openrouter?: boolean;
294
303
  openrouterAgent?: boolean;
295
304
  mistral?: boolean;
305
+ cohere?: boolean;
296
306
  };
297
307
  }
298
308
  /**
@@ -237,10 +237,13 @@ interface BraintrustPluginConfig {
237
237
  aisdk?: boolean;
238
238
  google?: boolean;
239
239
  googleGenAI?: boolean;
240
+ huggingface?: boolean;
240
241
  claudeAgentSDK?: boolean;
241
242
  openrouter?: boolean;
242
243
  openrouterAgent?: boolean;
243
244
  mistral?: boolean;
245
+ googleADK?: boolean;
246
+ cohere?: boolean;
244
247
  };
245
248
  }
246
249
  /**
@@ -252,7 +255,9 @@ interface BraintrustPluginConfig {
252
255
  * - Claude Agent SDK (agent interactions)
253
256
  * - Vercel AI SDK (generateText, streamText, etc.)
254
257
  * - Google GenAI SDK
258
+ * - HuggingFace Inference SDK
255
259
  * - Mistral SDK
260
+ * - Cohere SDK
256
261
  *
257
262
  * The plugin is automatically enabled when the Braintrust library is loaded.
258
263
  * Individual integrations can be disabled via configuration.
@@ -264,9 +269,12 @@ declare class BraintrustPlugin extends BasePlugin {
264
269
  private aiSDKPlugin;
265
270
  private claudeAgentSDKPlugin;
266
271
  private googleGenAIPlugin;
272
+ private huggingFacePlugin;
267
273
  private openRouterPlugin;
268
274
  private openRouterAgentPlugin;
269
275
  private mistralPlugin;
276
+ private googleADKPlugin;
277
+ private coherePlugin;
270
278
  constructor(config?: BraintrustPluginConfig);
271
279
  protected onEnable(): void;
272
280
  protected onDisable(): void;
@@ -289,10 +297,12 @@ interface InstrumentationConfig {
289
297
  vercel?: boolean;
290
298
  aisdk?: boolean;
291
299
  google?: boolean;
300
+ huggingface?: boolean;
292
301
  claudeAgentSDK?: boolean;
293
302
  openrouter?: boolean;
294
303
  openrouterAgent?: boolean;
295
304
  mistral?: boolean;
305
+ cohere?: boolean;
296
306
  };
297
307
  }
298
308
  /**