braintrust 3.8.0 → 3.10.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 +191 -4
  2. package/dev/dist/index.d.ts +191 -4
  3. package/dev/dist/index.js +7269 -2590
  4. package/dev/dist/index.mjs +7281 -2602
  5. package/dist/auto-instrumentations/bundler/esbuild.cjs +741 -2
  6. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  7. package/dist/auto-instrumentations/bundler/rollup.cjs +741 -2
  8. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/vite.cjs +741 -2
  10. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  11. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +738 -2
  12. package/dist/auto-instrumentations/bundler/webpack.cjs +741 -2
  13. package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
  14. package/dist/auto-instrumentations/{chunk-OLBMPZXE.mjs → chunk-GZNXBBPU.mjs} +741 -3
  15. package/dist/auto-instrumentations/{chunk-MD7W27YH.mjs → chunk-XWEQQOQH.mjs} +12 -1
  16. package/dist/auto-instrumentations/hook.mjs +1193 -199
  17. package/dist/auto-instrumentations/index.cjs +1173 -187
  18. package/dist/auto-instrumentations/index.d.mts +22 -1
  19. package/dist/auto-instrumentations/index.d.ts +22 -1
  20. package/dist/auto-instrumentations/index.mjs +256 -1
  21. package/dist/auto-instrumentations/loader/esm-hook.mjs +2 -1
  22. package/dist/browser.d.mts +451 -11
  23. package/dist/browser.d.ts +451 -11
  24. package/dist/browser.js +7659 -2321
  25. package/dist/browser.mjs +7659 -2321
  26. package/dist/cli.js +7143 -2435
  27. package/dist/edge-light.d.mts +1 -1
  28. package/dist/edge-light.d.ts +1 -1
  29. package/dist/edge-light.js +7659 -2321
  30. package/dist/edge-light.mjs +7659 -2321
  31. package/dist/index.d.mts +451 -11
  32. package/dist/index.d.ts +451 -11
  33. package/dist/index.js +8054 -2716
  34. package/dist/index.mjs +7659 -2321
  35. package/dist/instrumentation/index.d.mts +17 -0
  36. package/dist/instrumentation/index.d.ts +17 -0
  37. package/dist/instrumentation/index.js +6420 -2051
  38. package/dist/instrumentation/index.mjs +6420 -2051
  39. package/dist/workerd.d.mts +1 -1
  40. package/dist/workerd.d.ts +1 -1
  41. package/dist/workerd.js +7659 -2321
  42. package/dist/workerd.mjs +7659 -2321
  43. package/package.json +56 -51
  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,16 @@ interface BraintrustPluginConfig {
237
237
  aisdk?: boolean;
238
238
  google?: boolean;
239
239
  googleGenAI?: boolean;
240
+ huggingface?: boolean;
240
241
  claudeAgentSDK?: boolean;
242
+ cursor?: boolean;
243
+ cursorSDK?: boolean;
241
244
  openrouter?: boolean;
242
245
  openrouterAgent?: boolean;
243
246
  mistral?: boolean;
247
+ googleADK?: boolean;
248
+ cohere?: boolean;
249
+ groq?: boolean;
244
250
  };
245
251
  }
246
252
  /**
@@ -252,7 +258,9 @@ interface BraintrustPluginConfig {
252
258
  * - Claude Agent SDK (agent interactions)
253
259
  * - Vercel AI SDK (generateText, streamText, etc.)
254
260
  * - Google GenAI SDK
261
+ * - HuggingFace Inference SDK
255
262
  * - Mistral SDK
263
+ * - Cohere SDK
256
264
  *
257
265
  * The plugin is automatically enabled when the Braintrust library is loaded.
258
266
  * Individual integrations can be disabled via configuration.
@@ -263,10 +271,15 @@ declare class BraintrustPlugin extends BasePlugin {
263
271
  private anthropicPlugin;
264
272
  private aiSDKPlugin;
265
273
  private claudeAgentSDKPlugin;
274
+ private cursorSDKPlugin;
266
275
  private googleGenAIPlugin;
276
+ private huggingFacePlugin;
267
277
  private openRouterPlugin;
268
278
  private openRouterAgentPlugin;
269
279
  private mistralPlugin;
280
+ private googleADKPlugin;
281
+ private coherePlugin;
282
+ private groqPlugin;
270
283
  constructor(config?: BraintrustPluginConfig);
271
284
  protected onEnable(): void;
272
285
  protected onDisable(): void;
@@ -289,10 +302,14 @@ interface InstrumentationConfig {
289
302
  vercel?: boolean;
290
303
  aisdk?: boolean;
291
304
  google?: boolean;
305
+ huggingface?: boolean;
292
306
  claudeAgentSDK?: boolean;
307
+ cursor?: boolean;
308
+ cursorSDK?: boolean;
293
309
  openrouter?: boolean;
294
310
  openrouterAgent?: boolean;
295
311
  mistral?: boolean;
312
+ cohere?: boolean;
296
313
  };
297
314
  }
298
315
  /**
@@ -237,10 +237,16 @@ interface BraintrustPluginConfig {
237
237
  aisdk?: boolean;
238
238
  google?: boolean;
239
239
  googleGenAI?: boolean;
240
+ huggingface?: boolean;
240
241
  claudeAgentSDK?: boolean;
242
+ cursor?: boolean;
243
+ cursorSDK?: boolean;
241
244
  openrouter?: boolean;
242
245
  openrouterAgent?: boolean;
243
246
  mistral?: boolean;
247
+ googleADK?: boolean;
248
+ cohere?: boolean;
249
+ groq?: boolean;
244
250
  };
245
251
  }
246
252
  /**
@@ -252,7 +258,9 @@ interface BraintrustPluginConfig {
252
258
  * - Claude Agent SDK (agent interactions)
253
259
  * - Vercel AI SDK (generateText, streamText, etc.)
254
260
  * - Google GenAI SDK
261
+ * - HuggingFace Inference SDK
255
262
  * - Mistral SDK
263
+ * - Cohere SDK
256
264
  *
257
265
  * The plugin is automatically enabled when the Braintrust library is loaded.
258
266
  * Individual integrations can be disabled via configuration.
@@ -263,10 +271,15 @@ declare class BraintrustPlugin extends BasePlugin {
263
271
  private anthropicPlugin;
264
272
  private aiSDKPlugin;
265
273
  private claudeAgentSDKPlugin;
274
+ private cursorSDKPlugin;
266
275
  private googleGenAIPlugin;
276
+ private huggingFacePlugin;
267
277
  private openRouterPlugin;
268
278
  private openRouterAgentPlugin;
269
279
  private mistralPlugin;
280
+ private googleADKPlugin;
281
+ private coherePlugin;
282
+ private groqPlugin;
270
283
  constructor(config?: BraintrustPluginConfig);
271
284
  protected onEnable(): void;
272
285
  protected onDisable(): void;
@@ -289,10 +302,14 @@ interface InstrumentationConfig {
289
302
  vercel?: boolean;
290
303
  aisdk?: boolean;
291
304
  google?: boolean;
305
+ huggingface?: boolean;
292
306
  claudeAgentSDK?: boolean;
307
+ cursor?: boolean;
308
+ cursorSDK?: boolean;
293
309
  openrouter?: boolean;
294
310
  openrouterAgent?: boolean;
295
311
  mistral?: boolean;
312
+ cohere?: boolean;
296
313
  };
297
314
  }
298
315
  /**