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.
- package/dev/dist/index.d.mts +84 -3
- package/dev/dist/index.d.ts +84 -3
- package/dev/dist/index.js +3687 -691
- package/dev/dist/index.mjs +3399 -403
- package/dist/auto-instrumentations/bundler/esbuild.cjs +575 -2
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/rollup.cjs +575 -2
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +575 -2
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +575 -2
- package/dist/auto-instrumentations/bundler/webpack.cjs +575 -2
- package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
- package/dist/auto-instrumentations/{chunk-MD7W27YH.mjs → chunk-G7F6HZGE.mjs} +5 -1
- package/dist/auto-instrumentations/{chunk-OLBMPZXE.mjs → chunk-KIMMUFAK.mjs} +578 -3
- package/dist/auto-instrumentations/hook.mjs +757 -10
- package/dist/auto-instrumentations/index.cjs +739 -2
- package/dist/auto-instrumentations/index.d.mts +18 -1
- package/dist/auto-instrumentations/index.d.ts +18 -1
- package/dist/auto-instrumentations/index.mjs +168 -1
- package/dist/auto-instrumentations/loader/esm-hook.mjs +2 -1
- package/dist/browser.d.mts +312 -6
- package/dist/browser.d.ts +312 -6
- package/dist/browser.js +5335 -1892
- package/dist/browser.mjs +5335 -1892
- package/dist/cli.js +3514 -489
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +5335 -1892
- package/dist/edge-light.mjs +5335 -1892
- package/dist/index.d.mts +312 -6
- package/dist/index.d.ts +312 -6
- package/dist/index.js +4244 -801
- package/dist/index.mjs +5335 -1892
- package/dist/instrumentation/index.d.mts +10 -0
- package/dist/instrumentation/index.d.ts +10 -0
- package/dist/instrumentation/index.js +3160 -286
- package/dist/instrumentation/index.mjs +3160 -286
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +5335 -1892
- package/dist/workerd.mjs +5335 -1892
- package/package.json +52 -47
- package/util/dist/index.d.mts +42 -1
- package/util/dist/index.d.ts +42 -1
- package/util/dist/index.js +5 -1
- package/util/dist/index.mjs +4 -0
- 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
|
/**
|