braintrust 3.28.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 (50) hide show
  1. package/README.md +1 -1
  2. package/dev/dist/index.d.mts +356 -7
  3. package/dev/dist/index.d.ts +356 -7
  4. package/dev/dist/index.js +1815 -1548
  5. package/dev/dist/index.mjs +1054 -787
  6. package/dist/apply-auto-instrumentation.js +297 -264
  7. package/dist/apply-auto-instrumentation.mjs +84 -51
  8. package/dist/auto-instrumentations/bundler/esbuild.cjs +43 -5
  9. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  10. package/dist/auto-instrumentations/bundler/next.cjs +43 -5
  11. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  12. package/dist/auto-instrumentations/bundler/rollup.cjs +43 -5
  13. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  14. package/dist/auto-instrumentations/bundler/vite.cjs +43 -5
  15. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  16. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +43 -5
  17. package/dist/auto-instrumentations/bundler/webpack.cjs +43 -5
  18. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  19. package/dist/auto-instrumentations/{chunk-NP7V4XB2.mjs → chunk-AOIYCVEL.mjs} +32 -2
  20. package/dist/auto-instrumentations/{chunk-26PKVUKB.mjs → chunk-DKTGDNA7.mjs} +12 -4
  21. package/dist/auto-instrumentations/{chunk-HD35AM3M.mjs → chunk-OMCZ3MV2.mjs} +1 -1
  22. package/dist/auto-instrumentations/hook.mjs +952 -133
  23. package/dist/auto-instrumentations/index.cjs +32 -2
  24. package/dist/auto-instrumentations/index.mjs +1 -1
  25. package/dist/browser.d.mts +760 -22
  26. package/dist/browser.d.ts +760 -22
  27. package/dist/browser.js +1661 -848
  28. package/dist/browser.mjs +1661 -848
  29. package/dist/{chunk-BBE7SNRV.js → chunk-6Z5S7VOU.js} +143 -23
  30. package/dist/{chunk-ZHUHZWFY.mjs → chunk-7FA6VP2S.mjs} +140 -20
  31. package/dist/{chunk-UPFNQCGB.mjs → chunk-M6XPNJC4.mjs} +1144 -931
  32. package/dist/{chunk-OBBWQW6K.js → chunk-XLLGRXGR.js} +2335 -2122
  33. package/dist/cli.js +5134 -1090
  34. package/dist/edge-light.js +1661 -848
  35. package/dist/edge-light.mjs +1661 -848
  36. package/dist/index.d.mts +760 -22
  37. package/dist/index.d.ts +760 -22
  38. package/dist/index.js +1054 -567
  39. package/dist/index.mjs +514 -27
  40. package/dist/instrumentation/index.d.mts +548 -9
  41. package/dist/instrumentation/index.d.ts +548 -9
  42. package/dist/instrumentation/index.js +1975 -765
  43. package/dist/instrumentation/index.mjs +1975 -765
  44. package/dist/vitest-evals-reporter.js +16 -16
  45. package/dist/vitest-evals-reporter.mjs +2 -2
  46. package/dist/workerd.js +1661 -848
  47. package/dist/workerd.mjs +1661 -848
  48. package/package.json +1 -1
  49. package/util/dist/index.d.mts +42 -0
  50. package/util/dist/index.d.ts +42 -0
@@ -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",
@@ -1364,6 +1363,10 @@ var aiSDKChannels = defineChannels(
1364
1363
  channelName: "generateText",
1365
1364
  kind: "async"
1366
1365
  }),
1366
+ generateImage: channel({
1367
+ channelName: "generateImage",
1368
+ kind: "async"
1369
+ }),
1367
1370
  streamText: channel({
1368
1371
  channelName: "streamText",
1369
1372
  kind: "async"
@@ -1503,6 +1506,33 @@ var aiSDKConfigs = [
1503
1506
  kind: "Async"
1504
1507
  }
1505
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
+ ),
1506
1536
  // streamText - async function (v3 only, before the sync refactor in v4)
1507
1537
  {
1508
1538
  channelName: aiSDKChannels.streamText.channelName,
@@ -24,7 +24,7 @@ import {
24
24
  openRouterConfigs,
25
25
  openaiConfigs,
26
26
  piCodingAgentConfigs
27
- } from "./chunk-NP7V4XB2.mjs";
27
+ } from "./chunk-AOIYCVEL.mjs";
28
28
  import "./chunk-JPUFNW7X.mjs";
29
29
  export {
30
30
  aiSDKConfigs,