braintrust 3.23.0 → 3.24.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 (51) hide show
  1. package/dev/dist/index.d.mts +6 -0
  2. package/dev/dist/index.d.ts +6 -0
  3. package/dev/dist/index.js +902 -588
  4. package/dev/dist/index.mjs +320 -6
  5. package/dist/apply-auto-instrumentation.js +211 -189
  6. package/dist/apply-auto-instrumentation.mjs +23 -1
  7. package/dist/auto-instrumentations/bundler/esbuild.cjs +40 -0
  8. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/next.cjs +40 -0
  10. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  11. package/dist/auto-instrumentations/bundler/rollup.cjs +40 -0
  12. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  13. package/dist/auto-instrumentations/bundler/vite.cjs +40 -0
  14. package/dist/auto-instrumentations/bundler/vite.d.mts +1 -1
  15. package/dist/auto-instrumentations/bundler/vite.d.ts +1 -1
  16. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  17. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +40 -0
  18. package/dist/auto-instrumentations/bundler/webpack.cjs +40 -0
  19. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  20. package/dist/auto-instrumentations/{chunk-KIMLYPRW.mjs → chunk-BURMPO7L.mjs} +1 -1
  21. package/dist/auto-instrumentations/{chunk-YXLNSAMJ.mjs → chunk-F43DNLPD.mjs} +40 -0
  22. package/dist/auto-instrumentations/{chunk-EXY7QCJD.mjs → chunk-GSZHTAQW.mjs} +1 -1
  23. package/dist/auto-instrumentations/hook.mjs +150 -1
  24. package/dist/auto-instrumentations/index.cjs +40 -0
  25. package/dist/auto-instrumentations/index.mjs +1 -1
  26. package/dist/browser.d.mts +131 -9
  27. package/dist/browser.d.ts +131 -9
  28. package/dist/browser.js +703 -67
  29. package/dist/browser.mjs +703 -67
  30. package/dist/{chunk-CDIKAHDZ.js → chunk-7AUY2XWX.js} +21 -1
  31. package/dist/{chunk-36IPYKMG.mjs → chunk-7F6GCRHH.mjs} +20 -0
  32. package/dist/{chunk-FZWPFCVE.js → chunk-SU6EHKJV.js} +1085 -801
  33. package/dist/{chunk-IXL4PMY4.mjs → chunk-XE5FS7QY.mjs} +291 -7
  34. package/dist/cli.js +328 -10
  35. package/dist/edge-light.js +703 -67
  36. package/dist/edge-light.mjs +703 -67
  37. package/dist/index.d.mts +131 -9
  38. package/dist/index.d.ts +131 -9
  39. package/dist/index.js +891 -532
  40. package/dist/index.mjs +423 -64
  41. package/dist/instrumentation/index.d.mts +130 -9
  42. package/dist/instrumentation/index.d.ts +130 -9
  43. package/dist/instrumentation/index.js +601 -67
  44. package/dist/instrumentation/index.mjs +601 -67
  45. package/dist/vitest-evals-reporter.js +17 -16
  46. package/dist/vitest-evals-reporter.mjs +3 -2
  47. package/dist/workerd.js +703 -67
  48. package/dist/workerd.mjs +703 -67
  49. package/package.json +3 -3
  50. package/util/dist/index.js +4 -0
  51. package/util/dist/index.mjs +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braintrust",
3
- "version": "3.23.0",
3
+ "version": "3.24.0",
4
4
  "description": "SDK for integrating Braintrust",
5
5
  "repository": {
6
6
  "type": "git",
@@ -206,7 +206,7 @@
206
206
  "typedoc": "^0.25.13",
207
207
  "typedoc-plugin-markdown": "^3.17.1",
208
208
  "typescript": "5.4.4",
209
- "vite": "^6.4.3",
209
+ "vite": "^8.1.5",
210
210
  "vite-tsconfig-paths": "^4.3.2",
211
211
  "vitest": "4.1.5",
212
212
  "webpack": "^5.106.2",
@@ -226,7 +226,7 @@
226
226
  "cors": "^2.8.5",
227
227
  "dc-browser": "^1.0.4",
228
228
  "dotenv": "^16.4.5",
229
- "esbuild": "0.28.0",
229
+ "esbuild": "0.28.1",
230
230
  "esquery": "^1.7.0",
231
231
  "eventsource-parser": "^1.1.2",
232
232
  "express": "^5.2.1",
@@ -510,6 +510,7 @@ var SpanComponentsV3 = class _SpanComponentsV3 {
510
510
  constructor(data) {
511
511
  this.data = data;
512
512
  }
513
+
513
514
  toStr() {
514
515
  const jsonObj = {
515
516
  compute_object_metadata_args: this.data.compute_object_metadata_args || void 0,
@@ -1067,6 +1068,7 @@ var SpanComponentsV4 = class _SpanComponentsV4 {
1067
1068
  constructor(data) {
1068
1069
  this.data = data;
1069
1070
  }
1071
+
1070
1072
  toStr() {
1071
1073
  const jsonObj = {
1072
1074
  compute_object_metadata_args: this.data.compute_object_metadata_args || void 0,
@@ -1303,6 +1305,8 @@ var ExtraFieldsError = class extends Error {
1303
1305
  this.key = key;
1304
1306
  this.path = path;
1305
1307
  }
1308
+
1309
+
1306
1310
  };
1307
1311
  function parseNoStrip(schema, input) {
1308
1312
  const output = schema.parse(input);
@@ -510,6 +510,7 @@ var SpanComponentsV3 = class _SpanComponentsV3 {
510
510
  constructor(data) {
511
511
  this.data = data;
512
512
  }
513
+ data;
513
514
  toStr() {
514
515
  const jsonObj = {
515
516
  compute_object_metadata_args: this.data.compute_object_metadata_args || void 0,
@@ -1067,6 +1068,7 @@ var SpanComponentsV4 = class _SpanComponentsV4 {
1067
1068
  constructor(data) {
1068
1069
  this.data = data;
1069
1070
  }
1071
+ data;
1070
1072
  toStr() {
1071
1073
  const jsonObj = {
1072
1074
  compute_object_metadata_args: this.data.compute_object_metadata_args || void 0,
@@ -1303,6 +1305,8 @@ var ExtraFieldsError = class extends Error {
1303
1305
  this.key = key;
1304
1306
  this.path = path;
1305
1307
  }
1308
+ key;
1309
+ path;
1306
1310
  };
1307
1311
  function parseNoStrip(schema, input) {
1308
1312
  const output = schema.parse(input);