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.
- package/dev/dist/index.d.mts +191 -4
- package/dev/dist/index.d.ts +191 -4
- package/dev/dist/index.js +7269 -2590
- package/dev/dist/index.mjs +7281 -2602
- package/dist/auto-instrumentations/bundler/esbuild.cjs +741 -2
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/rollup.cjs +741 -2
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +741 -2
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +738 -2
- package/dist/auto-instrumentations/bundler/webpack.cjs +741 -2
- package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
- package/dist/auto-instrumentations/{chunk-OLBMPZXE.mjs → chunk-GZNXBBPU.mjs} +741 -3
- package/dist/auto-instrumentations/{chunk-MD7W27YH.mjs → chunk-XWEQQOQH.mjs} +12 -1
- package/dist/auto-instrumentations/hook.mjs +1193 -199
- package/dist/auto-instrumentations/index.cjs +1173 -187
- package/dist/auto-instrumentations/index.d.mts +22 -1
- package/dist/auto-instrumentations/index.d.ts +22 -1
- package/dist/auto-instrumentations/index.mjs +256 -1
- package/dist/auto-instrumentations/loader/esm-hook.mjs +2 -1
- package/dist/browser.d.mts +451 -11
- package/dist/browser.d.ts +451 -11
- package/dist/browser.js +7659 -2321
- package/dist/browser.mjs +7659 -2321
- package/dist/cli.js +7143 -2435
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +7659 -2321
- package/dist/edge-light.mjs +7659 -2321
- package/dist/index.d.mts +451 -11
- package/dist/index.d.ts +451 -11
- package/dist/index.js +8054 -2716
- package/dist/index.mjs +7659 -2321
- package/dist/instrumentation/index.d.mts +17 -0
- package/dist/instrumentation/index.d.ts +17 -0
- package/dist/instrumentation/index.js +6420 -2051
- package/dist/instrumentation/index.mjs +6420 -2051
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +7659 -2321
- package/dist/workerd.mjs +7659 -2321
- package/package.json +56 -51
- 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
|
@@ -2,12 +2,16 @@ import {
|
|
|
2
2
|
aiSDKConfigs,
|
|
3
3
|
anthropicConfigs,
|
|
4
4
|
claudeAgentSDKConfigs,
|
|
5
|
+
cohereConfigs,
|
|
6
|
+
cursorSDKConfigs,
|
|
5
7
|
googleGenAIConfigs,
|
|
8
|
+
groqConfigs,
|
|
9
|
+
huggingFaceConfigs,
|
|
6
10
|
mistralConfigs,
|
|
7
11
|
openRouterAgentConfigs,
|
|
8
12
|
openRouterConfigs,
|
|
9
13
|
openaiConfigs
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GZNXBBPU.mjs";
|
|
11
15
|
|
|
12
16
|
// src/auto-instrumentations/bundler/plugin.ts
|
|
13
17
|
import { createUnplugin } from "unplugin";
|
|
@@ -35,10 +39,14 @@ var unplugin = createUnplugin((options = {}) => {
|
|
|
35
39
|
...anthropicConfigs,
|
|
36
40
|
...aiSDKConfigs,
|
|
37
41
|
...claudeAgentSDKConfigs,
|
|
42
|
+
...cursorSDKConfigs,
|
|
38
43
|
...googleGenAIConfigs,
|
|
44
|
+
...huggingFaceConfigs,
|
|
39
45
|
...openRouterConfigs,
|
|
40
46
|
...openRouterAgentConfigs,
|
|
41
47
|
...mistralConfigs,
|
|
48
|
+
...cohereConfigs,
|
|
49
|
+
...groqConfigs,
|
|
42
50
|
...options.instrumentations || []
|
|
43
51
|
];
|
|
44
52
|
const dcModule = options.browser === false ? void 0 : "dc-browser";
|
|
@@ -47,6 +55,9 @@ var unplugin = createUnplugin((options = {}) => {
|
|
|
47
55
|
name: "code-transformer",
|
|
48
56
|
enforce: "pre",
|
|
49
57
|
transform(code, id) {
|
|
58
|
+
if (!id) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
50
61
|
const filePath = id.startsWith("file:") ? fileURLToPath(id) : id;
|
|
51
62
|
const ext = extname(filePath);
|
|
52
63
|
let isModule = ext === ".mjs" || ext === ".ts" || ext === ".tsx";
|