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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braintrust",
3
- "version": "3.9.0",
3
+ "version": "3.11.0",
4
4
  "description": "SDK for integrating Braintrust",
5
5
  "repository": {
6
6
  "type": "git",
@@ -79,13 +79,13 @@
79
79
  "types": "./dist/auto-instrumentations/bundler/vite.d.ts",
80
80
  "import": "./dist/auto-instrumentations/bundler/vite.mjs",
81
81
  "module": "./dist/auto-instrumentations/bundler/vite.mjs",
82
- "require": "./dist/auto-instrumentations/bundler/vite.js"
82
+ "require": "./dist/auto-instrumentations/bundler/vite.cjs"
83
83
  },
84
84
  "./webpack": {
85
85
  "types": "./dist/auto-instrumentations/bundler/webpack.d.ts",
86
86
  "import": "./dist/auto-instrumentations/bundler/webpack.mjs",
87
87
  "module": "./dist/auto-instrumentations/bundler/webpack.mjs",
88
- "require": "./dist/auto-instrumentations/bundler/webpack.js"
88
+ "require": "./dist/auto-instrumentations/bundler/webpack.cjs"
89
89
  },
90
90
  "./webpack-loader": {
91
91
  "types": "./dist/auto-instrumentations/bundler/webpack-loader.d.ts",
@@ -95,13 +95,13 @@
95
95
  "types": "./dist/auto-instrumentations/bundler/esbuild.d.ts",
96
96
  "import": "./dist/auto-instrumentations/bundler/esbuild.mjs",
97
97
  "module": "./dist/auto-instrumentations/bundler/esbuild.mjs",
98
- "require": "./dist/auto-instrumentations/bundler/esbuild.js"
98
+ "require": "./dist/auto-instrumentations/bundler/esbuild.cjs"
99
99
  },
100
100
  "./rollup": {
101
101
  "types": "./dist/auto-instrumentations/bundler/rollup.d.ts",
102
102
  "import": "./dist/auto-instrumentations/bundler/rollup.mjs",
103
103
  "module": "./dist/auto-instrumentations/bundler/rollup.mjs",
104
- "require": "./dist/auto-instrumentations/bundler/rollup.js"
104
+ "require": "./dist/auto-instrumentations/bundler/rollup.cjs"
105
105
  }
106
106
  },
107
107
  "files": [
@@ -113,7 +113,7 @@
113
113
  "build": "cross-env NODE_OPTIONS=\"--max-old-space-size=8192\" tsup",
114
114
  "check:typings": "tsc --noEmit",
115
115
  "watch": "tsup --watch",
116
- "clean": "rm -r dist/* && rm -r dev/dist/*",
116
+ "clean": "rm -r dist/* && rm -r dev/dist/* && rm -r util/dist/*",
117
117
  "docs": "typedoc --options typedoc.json src/node/index.ts",
118
118
  "test": "vitest run --exclude \"src/wrappers/**/*.test.ts\" --exclude \"src/otel/**/*.test.ts\" --exclude \"smoke/**/*.test.ts\" --exclude \"src/zod/**/*.test.ts\" --exclude \"tests/api-compatibility/**\"",
119
119
  "test:core": "pnpm prune && pnpm test",
@@ -148,7 +148,8 @@
148
148
  "playground": "tsx playground.ts",
149
149
  "playground:auto": "mkdir -p .context && pnpm exec esbuild playground.ts --platform=node --format=esm --outfile=.context/playground.auto.mjs && node --import ./dist/auto-instrumentations/hook.mjs ./.context/playground.auto.mjs",
150
150
  "playground:cli:push": "node dist/cli.js push playground.ts",
151
- "playground:cli:eval": "node dist/cli.js eval playground.ts"
151
+ "playground:cli:eval": "node dist/cli.js eval playground.ts",
152
+ "yalc:publish": "yalc publish"
152
153
  },
153
154
  "author": "",
154
155
  "license": "MIT",
@@ -157,9 +158,7 @@
157
158
  "@anthropic-ai/sdk": "^0.60.0",
158
159
  "@google/adk": "^0.6.1",
159
160
  "@google/genai": "^1.25.0",
160
- "@jest/globals": "^29.7.0",
161
161
  "@nodelib/fs.walk": "^1.2.8",
162
- "@openai/agents": "^0.0.14",
163
162
  "@types/argparse": "^2.0.14",
164
163
  "@types/async": "^3.2.24",
165
164
  "@types/cli-progress": "^3.11.5",
@@ -179,13 +178,11 @@
179
178
  "autoevals": "^0.0.131",
180
179
  "cross-env": "^7.0.3",
181
180
  "eslint-plugin-node-import": "^1.0.5",
182
- "jiti": "^2.6.1",
183
181
  "openai": "6.25.0",
184
182
  "openapi-zod-client": "^1.18.3",
185
- "rollup": "^4.28.1",
183
+ "rollup": "^4.60.3",
186
184
  "tar": "^7.5.2",
187
185
  "tinybench": "^4.0.1",
188
- "ts-jest": "^29.1.4",
189
186
  "tsup": "^8.5.1",
190
187
  "tsx": "^4.21.0",
191
188
  "typedoc": "^0.25.13",
@@ -193,34 +190,31 @@
193
190
  "typescript": "5.4.4",
194
191
  "vite": "^6.4.2",
195
192
  "vite-tsconfig-paths": "^4.3.2",
196
- "vitest": "^4.1.2",
197
- "webpack": "^5.97.1",
193
+ "vitest": "4.1.5",
194
+ "webpack": "^5.106.2",
198
195
  "zod": "^3.25.34"
199
196
  },
200
197
  "dependencies": {
201
- "@ai-sdk/provider": "^1.1.3",
202
198
  "@apm-js-collab/code-transformer": "^0.12.0",
203
199
  "@next/env": "^14.2.3",
204
200
  "@vercel/functions": "^1.0.2",
205
- "ajv": "^8.17.1",
201
+ "ajv": "^8.20.0",
206
202
  "argparse": "^2.0.1",
207
- "boxen": "^8.0.1",
208
- "chalk": "^4.1.2",
209
203
  "cli-progress": "^3.12.0",
210
204
  "cli-table3": "^0.6.5",
211
205
  "cors": "^2.8.5",
212
206
  "dc-browser": "^1.0.4",
213
207
  "dotenv": "^16.4.5",
214
- "esbuild": "^0.27.0",
208
+ "esbuild": "0.28.0",
215
209
  "eventsource-parser": "^1.1.2",
216
- "express": "^4.21.2",
210
+ "express": "^5.2.1",
217
211
  "graceful-fs": "^4.2.11",
218
212
  "http-errors": "^2.0.0",
219
- "minimatch": "^9.0.3",
213
+ "minimatch": "^10.2.5",
220
214
  "module-details-from-path": "^1.0.4",
221
215
  "mustache": "^4.2.0",
222
216
  "pluralize": "^8.0.0",
223
- "simple-git": "^3.21.0",
217
+ "simple-git": "^3.36.0",
224
218
  "source-map": "^0.7.4",
225
219
  "termi-link": "^1.0.1",
226
220
  "unplugin": "^2.3.5",