braintrust 3.4.0 → 3.6.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 +49 -7
- package/dev/dist/index.d.ts +49 -7
- package/dev/dist/index.js +2383 -494
- package/dev/dist/index.mjs +2213 -324
- package/dist/auto-instrumentations/bundler/esbuild.cjs +289 -10
- package/dist/auto-instrumentations/bundler/esbuild.d.mts +2 -2
- package/dist/auto-instrumentations/bundler/esbuild.d.ts +2 -2
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/rollup.cjs +289 -10
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +289 -10
- package/dist/auto-instrumentations/bundler/vite.d.mts +2 -2
- package/dist/auto-instrumentations/bundler/vite.d.ts +2 -2
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack.cjs +289 -10
- package/dist/auto-instrumentations/bundler/webpack.d.mts +2 -2
- package/dist/auto-instrumentations/bundler/webpack.d.ts +2 -2
- package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
- package/dist/auto-instrumentations/chunk-EVUKFMHG.mjs +41 -0
- package/dist/auto-instrumentations/{chunk-LVWWLUMN.mjs → chunk-F7WAXFNM.mjs} +290 -11
- package/dist/auto-instrumentations/chunk-VLEJ5AEK.mjs +41 -0
- package/dist/auto-instrumentations/{chunk-D5ZPIUEL.mjs → chunk-WOUC73KB.mjs} +3 -1
- package/dist/auto-instrumentations/hook.mjs +358 -48
- package/dist/auto-instrumentations/index.cjs +290 -10
- package/dist/auto-instrumentations/index.d.mts +3 -1
- package/dist/auto-instrumentations/index.d.ts +3 -1
- package/dist/auto-instrumentations/index.mjs +3 -1
- package/dist/auto-instrumentations/loader/cjs-patch.cjs +32 -10
- package/dist/auto-instrumentations/loader/cjs-patch.mjs +10 -5
- package/dist/auto-instrumentations/loader/esm-hook.mjs +4 -4
- package/dist/auto-instrumentations/loader/get-package-version.cjs +28 -8
- package/dist/auto-instrumentations/loader/get-package-version.d.mts +2 -1
- package/dist/auto-instrumentations/loader/get-package-version.d.ts +2 -1
- package/dist/auto-instrumentations/loader/get-package-version.mjs +3 -1
- package/dist/browser.d.mts +357 -271
- package/dist/browser.d.ts +357 -271
- package/dist/browser.js +2345 -343
- package/dist/browser.mjs +2345 -343
- package/dist/cli.js +2296 -414
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +2292 -315
- package/dist/edge-light.mjs +2292 -315
- package/dist/index.d.mts +370 -284
- package/dist/index.d.ts +370 -284
- package/dist/index.js +2642 -638
- package/dist/index.mjs +2385 -381
- package/dist/instrumentation/index.d.mts +3 -0
- package/dist/instrumentation/index.d.ts +3 -0
- package/dist/instrumentation/index.js +1955 -198
- package/dist/instrumentation/index.mjs +1955 -198
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +2292 -315
- package/dist/workerd.mjs +2292 -315
- package/package.json +22 -6
- package/dist/auto-instrumentations/chunk-XDBPUTVE.mjs +0 -22
- package/dist/auto-instrumentations/chunk-ZEC7BCL4.mjs +0 -22
|
@@ -238,6 +238,7 @@ interface BraintrustPluginConfig {
|
|
|
238
238
|
google?: boolean;
|
|
239
239
|
googleGenAI?: boolean;
|
|
240
240
|
claudeAgentSDK?: boolean;
|
|
241
|
+
openrouter?: boolean;
|
|
241
242
|
};
|
|
242
243
|
}
|
|
243
244
|
/**
|
|
@@ -260,6 +261,7 @@ declare class BraintrustPlugin extends BasePlugin {
|
|
|
260
261
|
private aiSDKPlugin;
|
|
261
262
|
private claudeAgentSDKPlugin;
|
|
262
263
|
private googleGenAIPlugin;
|
|
264
|
+
private openRouterPlugin;
|
|
263
265
|
constructor(config?: BraintrustPluginConfig);
|
|
264
266
|
protected onEnable(): void;
|
|
265
267
|
protected onDisable(): void;
|
|
@@ -283,6 +285,7 @@ interface InstrumentationConfig {
|
|
|
283
285
|
aisdk?: boolean;
|
|
284
286
|
google?: boolean;
|
|
285
287
|
claudeAgentSDK?: boolean;
|
|
288
|
+
openrouter?: boolean;
|
|
286
289
|
};
|
|
287
290
|
}
|
|
288
291
|
/**
|
|
@@ -238,6 +238,7 @@ interface BraintrustPluginConfig {
|
|
|
238
238
|
google?: boolean;
|
|
239
239
|
googleGenAI?: boolean;
|
|
240
240
|
claudeAgentSDK?: boolean;
|
|
241
|
+
openrouter?: boolean;
|
|
241
242
|
};
|
|
242
243
|
}
|
|
243
244
|
/**
|
|
@@ -260,6 +261,7 @@ declare class BraintrustPlugin extends BasePlugin {
|
|
|
260
261
|
private aiSDKPlugin;
|
|
261
262
|
private claudeAgentSDKPlugin;
|
|
262
263
|
private googleGenAIPlugin;
|
|
264
|
+
private openRouterPlugin;
|
|
263
265
|
constructor(config?: BraintrustPluginConfig);
|
|
264
266
|
protected onEnable(): void;
|
|
265
267
|
protected onDisable(): void;
|
|
@@ -283,6 +285,7 @@ interface InstrumentationConfig {
|
|
|
283
285
|
aisdk?: boolean;
|
|
284
286
|
google?: boolean;
|
|
285
287
|
claudeAgentSDK?: boolean;
|
|
288
|
+
openrouter?: boolean;
|
|
286
289
|
};
|
|
287
290
|
}
|
|
288
291
|
/**
|