braintrust 3.27.0 → 3.29.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 (54) hide show
  1. package/README.md +1 -1
  2. package/dev/dist/index.d.mts +879 -197
  3. package/dev/dist/index.d.ts +879 -197
  4. package/dev/dist/index.js +2960 -1865
  5. package/dev/dist/index.mjs +2217 -1122
  6. package/dist/apply-auto-instrumentation.js +345 -260
  7. package/dist/apply-auto-instrumentation.mjs +137 -52
  8. package/dist/auto-instrumentations/bundler/esbuild.cjs +124 -7
  9. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  10. package/dist/auto-instrumentations/bundler/next.cjs +124 -7
  11. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  12. package/dist/auto-instrumentations/bundler/rollup.cjs +124 -7
  13. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  14. package/dist/auto-instrumentations/bundler/vite.cjs +124 -7
  15. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  16. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +124 -7
  17. package/dist/auto-instrumentations/bundler/webpack.cjs +124 -7
  18. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  19. package/dist/auto-instrumentations/{chunk-ZNHTSSGI.mjs → chunk-AOIYCVEL.mjs} +34 -3
  20. package/dist/auto-instrumentations/{chunk-XEYKUBLY.mjs → chunk-DKTGDNA7.mjs} +91 -5
  21. package/dist/auto-instrumentations/{chunk-BW33ULMW.mjs → chunk-OMCZ3MV2.mjs} +1 -1
  22. package/dist/auto-instrumentations/hook.mjs +1186 -161
  23. package/dist/auto-instrumentations/index.cjs +34 -3
  24. package/dist/auto-instrumentations/index.mjs +1 -1
  25. package/dist/browser.d.mts +1388 -75
  26. package/dist/browser.d.ts +1388 -75
  27. package/dist/browser.js +3954 -1124
  28. package/dist/browser.mjs +3954 -1124
  29. package/dist/{chunk-MF7NU6BT.js → chunk-6Z5S7VOU.js} +175 -25
  30. package/dist/{chunk-CZM5JIQL.mjs → chunk-7FA6VP2S.mjs} +172 -22
  31. package/dist/{chunk-YKD22IMR.mjs → chunk-M6XPNJC4.mjs} +2102 -1113
  32. package/dist/{chunk-QRHGVBKU.js → chunk-XLLGRXGR.js} +3273 -2284
  33. package/dist/cli.js +6353 -1483
  34. package/dist/edge-light.d.mts +1 -1
  35. package/dist/edge-light.d.ts +1 -1
  36. package/dist/edge-light.js +3954 -1124
  37. package/dist/edge-light.mjs +3954 -1124
  38. package/dist/index.d.mts +1972 -659
  39. package/dist/index.d.ts +1972 -659
  40. package/dist/index.js +2453 -676
  41. package/dist/index.mjs +1973 -196
  42. package/dist/instrumentation/index.d.mts +738 -15
  43. package/dist/instrumentation/index.d.ts +738 -15
  44. package/dist/instrumentation/index.js +2791 -874
  45. package/dist/instrumentation/index.mjs +2791 -874
  46. package/dist/vitest-evals-reporter.js +16 -16
  47. package/dist/vitest-evals-reporter.mjs +2 -2
  48. package/dist/workerd.d.mts +1 -1
  49. package/dist/workerd.d.ts +1 -1
  50. package/dist/workerd.js +3954 -1124
  51. package/dist/workerd.mjs +3954 -1124
  52. package/package.json +2 -3
  53. package/util/dist/index.d.mts +1596 -109
  54. package/util/dist/index.d.ts +1596 -109
@@ -694,8 +694,6 @@ function newGlobalTracingChannel(nameOrChannels) {
694
694
  var DefaultAsyncLocalStorage = class {
695
695
  constructor() {
696
696
  }
697
- enterWith(_) {
698
- }
699
697
  run(_, callback) {
700
698
  return callback();
701
699
  }
@@ -803,6 +801,7 @@ var INSTRUMENTATION_NAMES = {
803
801
  CLOUDFLARE_THINK: "cloudflare-think",
804
802
  COHERE: "cohere",
805
803
  CURSOR_SDK: "cursor-sdk",
804
+ DEEPSEEK_HARNESS: "deepseek-harness",
806
805
  EVE: "eve",
807
806
  FLUE: "flue",
808
807
  GENKIT: "genkit",
@@ -822,7 +821,8 @@ var INSTRUMENTATION_NAMES = {
822
821
  OPENROUTER: "openrouter",
823
822
  OPENROUTER_AGENT: "openrouter-agent",
824
823
  PI_CODING_AGENT: "pi-coding-agent",
825
- STRANDS_AGENT_SDK: "strands-agent-sdk"
824
+ STRANDS_AGENT_SDK: "strands-agent-sdk",
825
+ VOYAGEAI: "voyageai"
826
826
  };
827
827
 
828
828
  // src/instrumentation/plugins/openai-channels.ts
@@ -1363,6 +1363,10 @@ var aiSDKChannels = defineChannels(
1363
1363
  channelName: "generateText",
1364
1364
  kind: "async"
1365
1365
  }),
1366
+ generateImage: channel({
1367
+ channelName: "generateImage",
1368
+ kind: "async"
1369
+ }),
1366
1370
  streamText: channel({
1367
1371
  channelName: "streamText",
1368
1372
  kind: "async"
@@ -1502,6 +1506,33 @@ var aiSDKConfigs = [
1502
1506
  kind: "Async"
1503
1507
  }
1504
1508
  },
1509
+ // generateImage - stable in v6+, experimental alias in v5
1510
+ ...[
1511
+ {
1512
+ functionName: "generateImage",
1513
+ versionRange: ">=6.0.0 <8.0.0",
1514
+ isExportAlias: false
1515
+ },
1516
+ {
1517
+ functionName: "experimental_generateImage",
1518
+ versionRange: ">=5.0.0 <6.0.0",
1519
+ isExportAlias: true
1520
+ }
1521
+ ].flatMap(
1522
+ ({ functionName, versionRange: versionRange2, isExportAlias }) => ["dist/index.mjs", "dist/index.js"].map((filePath) => ({
1523
+ channelName: aiSDKChannels.generateImage.channelName,
1524
+ module: {
1525
+ name: "ai",
1526
+ versionRange: versionRange2,
1527
+ filePath
1528
+ },
1529
+ functionQuery: {
1530
+ functionName,
1531
+ kind: "Async",
1532
+ ...isExportAlias ? { isExportAlias } : {}
1533
+ }
1534
+ }))
1535
+ ),
1505
1536
  // streamText - async function (v3 only, before the sync refactor in v4)
1506
1537
  {
1507
1538
  channelName: aiSDKChannels.streamText.channelName,
@@ -24,7 +24,7 @@ import {
24
24
  openRouterConfigs,
25
25
  openaiConfigs,
26
26
  piCodingAgentConfigs
27
- } from "./chunk-ZNHTSSGI.mjs";
27
+ } from "./chunk-AOIYCVEL.mjs";
28
28
  import "./chunk-JPUFNW7X.mjs";
29
29
  export {
30
30
  aiSDKConfigs,