braintrust 3.9.0 → 3.11.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 (46) hide show
  1. package/dev/dist/index.d.mts +157 -3
  2. package/dev/dist/index.d.ts +157 -3
  3. package/dev/dist/index.js +10819 -7204
  4. package/dev/dist/index.mjs +7458 -3843
  5. package/dist/auto-instrumentations/bundler/esbuild.cjs +686 -1
  6. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  7. package/dist/auto-instrumentations/bundler/rollup.cjs +686 -1
  8. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/vite.cjs +686 -1
  10. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  11. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +634 -0
  12. package/dist/auto-instrumentations/bundler/webpack.cjs +686 -1
  13. package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
  14. package/dist/auto-instrumentations/{chunk-KIMMUFAK.mjs → chunk-DIV5TO4S.mjs} +679 -1
  15. package/dist/auto-instrumentations/{chunk-G7F6HZGE.mjs → chunk-G6ZWXGZB.mjs} +19 -2
  16. package/dist/auto-instrumentations/{chunk-ITP7RAUY.mjs → chunk-MWZXZQUO.mjs} +23 -1
  17. package/dist/auto-instrumentations/hook.mjs +793 -11
  18. package/dist/auto-instrumentations/index.cjs +774 -7
  19. package/dist/auto-instrumentations/index.d.mts +18 -1
  20. package/dist/auto-instrumentations/index.d.ts +18 -1
  21. package/dist/auto-instrumentations/index.mjs +102 -8
  22. package/dist/auto-instrumentations/loader/cjs-patch.cjs +26 -1
  23. package/dist/auto-instrumentations/loader/cjs-patch.mjs +28 -1
  24. package/dist/auto-instrumentations/loader/esm-hook.mjs +16 -1
  25. package/dist/browser.d.mts +600 -265
  26. package/dist/browser.d.ts +600 -265
  27. package/dist/browser.js +6171 -1851
  28. package/dist/browser.mjs +6171 -1851
  29. package/dist/cli.js +6417 -2794
  30. package/dist/edge-light.d.mts +1 -1
  31. package/dist/edge-light.d.ts +1 -1
  32. package/dist/edge-light.js +6171 -1851
  33. package/dist/edge-light.mjs +6171 -1851
  34. package/dist/index.d.mts +613 -278
  35. package/dist/index.d.ts +613 -278
  36. package/dist/index.js +6507 -2187
  37. package/dist/index.mjs +6171 -1851
  38. package/dist/instrumentation/index.d.mts +19 -0
  39. package/dist/instrumentation/index.d.ts +19 -0
  40. package/dist/instrumentation/index.js +10265 -6841
  41. package/dist/instrumentation/index.mjs +10265 -6841
  42. package/dist/workerd.d.mts +1 -1
  43. package/dist/workerd.d.ts +1 -1
  44. package/dist/workerd.js +6171 -1851
  45. package/dist/workerd.mjs +6171 -1851
  46. package/package.json +16 -22
@@ -239,11 +239,17 @@ interface BraintrustPluginConfig {
239
239
  googleGenAI?: boolean;
240
240
  huggingface?: boolean;
241
241
  claudeAgentSDK?: boolean;
242
+ cursor?: boolean;
243
+ cursorSDK?: boolean;
242
244
  openrouter?: boolean;
243
245
  openrouterAgent?: boolean;
244
246
  mistral?: boolean;
245
247
  googleADK?: boolean;
246
248
  cohere?: boolean;
249
+ groq?: boolean;
250
+ genkit?: boolean;
251
+ gitHubCopilot?: boolean;
252
+ openaiCodexSDK?: boolean;
247
253
  };
248
254
  }
249
255
  /**
@@ -265,9 +271,11 @@ interface BraintrustPluginConfig {
265
271
  declare class BraintrustPlugin extends BasePlugin {
266
272
  private config;
267
273
  private openaiPlugin;
274
+ private openAICodexPlugin;
268
275
  private anthropicPlugin;
269
276
  private aiSDKPlugin;
270
277
  private claudeAgentSDKPlugin;
278
+ private cursorSDKPlugin;
271
279
  private googleGenAIPlugin;
272
280
  private huggingFacePlugin;
273
281
  private openRouterPlugin;
@@ -275,6 +283,9 @@ declare class BraintrustPlugin extends BasePlugin {
275
283
  private mistralPlugin;
276
284
  private googleADKPlugin;
277
285
  private coherePlugin;
286
+ private groqPlugin;
287
+ private genkitPlugin;
288
+ private gitHubCopilotPlugin;
278
289
  constructor(config?: BraintrustPluginConfig);
279
290
  protected onEnable(): void;
280
291
  protected onDisable(): void;
@@ -297,12 +308,20 @@ interface InstrumentationConfig {
297
308
  vercel?: boolean;
298
309
  aisdk?: boolean;
299
310
  google?: boolean;
311
+ googleGenAI?: boolean;
312
+ googleADK?: boolean;
300
313
  huggingface?: boolean;
301
314
  claudeAgentSDK?: boolean;
315
+ cursor?: boolean;
316
+ cursorSDK?: boolean;
302
317
  openrouter?: boolean;
303
318
  openrouterAgent?: boolean;
304
319
  mistral?: boolean;
305
320
  cohere?: boolean;
321
+ groq?: boolean;
322
+ genkit?: boolean;
323
+ gitHubCopilot?: boolean;
324
+ openaiCodexSDK?: boolean;
306
325
  };
307
326
  }
308
327
  /**
@@ -239,11 +239,17 @@ interface BraintrustPluginConfig {
239
239
  googleGenAI?: boolean;
240
240
  huggingface?: boolean;
241
241
  claudeAgentSDK?: boolean;
242
+ cursor?: boolean;
243
+ cursorSDK?: boolean;
242
244
  openrouter?: boolean;
243
245
  openrouterAgent?: boolean;
244
246
  mistral?: boolean;
245
247
  googleADK?: boolean;
246
248
  cohere?: boolean;
249
+ groq?: boolean;
250
+ genkit?: boolean;
251
+ gitHubCopilot?: boolean;
252
+ openaiCodexSDK?: boolean;
247
253
  };
248
254
  }
249
255
  /**
@@ -265,9 +271,11 @@ interface BraintrustPluginConfig {
265
271
  declare class BraintrustPlugin extends BasePlugin {
266
272
  private config;
267
273
  private openaiPlugin;
274
+ private openAICodexPlugin;
268
275
  private anthropicPlugin;
269
276
  private aiSDKPlugin;
270
277
  private claudeAgentSDKPlugin;
278
+ private cursorSDKPlugin;
271
279
  private googleGenAIPlugin;
272
280
  private huggingFacePlugin;
273
281
  private openRouterPlugin;
@@ -275,6 +283,9 @@ declare class BraintrustPlugin extends BasePlugin {
275
283
  private mistralPlugin;
276
284
  private googleADKPlugin;
277
285
  private coherePlugin;
286
+ private groqPlugin;
287
+ private genkitPlugin;
288
+ private gitHubCopilotPlugin;
278
289
  constructor(config?: BraintrustPluginConfig);
279
290
  protected onEnable(): void;
280
291
  protected onDisable(): void;
@@ -297,12 +308,20 @@ interface InstrumentationConfig {
297
308
  vercel?: boolean;
298
309
  aisdk?: boolean;
299
310
  google?: boolean;
311
+ googleGenAI?: boolean;
312
+ googleADK?: boolean;
300
313
  huggingface?: boolean;
301
314
  claudeAgentSDK?: boolean;
315
+ cursor?: boolean;
316
+ cursorSDK?: boolean;
302
317
  openrouter?: boolean;
303
318
  openrouterAgent?: boolean;
304
319
  mistral?: boolean;
305
320
  cohere?: boolean;
321
+ groq?: boolean;
322
+ genkit?: boolean;
323
+ gitHubCopilot?: boolean;
324
+ openaiCodexSDK?: boolean;
306
325
  };
307
326
  }
308
327
  /**