braintrust 3.23.1 → 3.25.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 +11 -0
  2. package/dev/dist/index.d.ts +11 -0
  3. package/dev/dist/index.js +2881 -1518
  4. package/dev/dist/index.mjs +2298 -935
  5. package/dist/apply-auto-instrumentation.js +218 -195
  6. package/dist/apply-auto-instrumentation.mjs +30 -7
  7. package/dist/auto-instrumentations/bundler/esbuild.cjs +618 -444
  8. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/next.cjs +618 -444
  10. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  11. package/dist/auto-instrumentations/bundler/rollup.cjs +618 -444
  12. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  13. package/dist/auto-instrumentations/bundler/vite.cjs +618 -444
  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 +618 -444
  18. package/dist/auto-instrumentations/bundler/webpack.cjs +618 -444
  19. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  20. package/dist/auto-instrumentations/{chunk-KIMLYPRW.mjs → chunk-7P6563SW.mjs} +1 -1
  21. package/dist/auto-instrumentations/{chunk-YXLNSAMJ.mjs → chunk-CZ24KNHT.mjs} +591 -424
  22. package/dist/auto-instrumentations/{chunk-EXY7QCJD.mjs → chunk-JPVCUKTY.mjs} +30 -21
  23. package/dist/auto-instrumentations/hook.mjs +778 -457
  24. package/dist/auto-instrumentations/index.cjs +590 -424
  25. package/dist/auto-instrumentations/index.mjs +1 -1
  26. package/dist/browser.d.mts +138 -9
  27. package/dist/browser.d.ts +138 -9
  28. package/dist/browser.js +2700 -1011
  29. package/dist/browser.mjs +2700 -1011
  30. package/dist/{chunk-RBXD2KYN.mjs → chunk-2SANLSWX.mjs} +1577 -513
  31. package/dist/{chunk-36IPYKMG.mjs → chunk-ABR2QWDP.mjs} +704 -438
  32. package/dist/{chunk-B6ZQIAK3.js → chunk-GSIDVFE6.js} +2361 -1297
  33. package/dist/{chunk-CDIKAHDZ.js → chunk-P25IOOU4.js} +706 -440
  34. package/dist/cli.js +2307 -940
  35. package/dist/edge-light.js +2700 -1011
  36. package/dist/edge-light.mjs +2700 -1011
  37. package/dist/index.d.mts +138 -9
  38. package/dist/index.d.ts +138 -9
  39. package/dist/index.js +955 -551
  40. package/dist/index.mjs +493 -89
  41. package/dist/instrumentation/index.d.mts +135 -9
  42. package/dist/instrumentation/index.d.ts +135 -9
  43. package/dist/instrumentation/index.js +2554 -1009
  44. package/dist/instrumentation/index.mjs +2554 -1009
  45. package/dist/vitest-evals-reporter.js +17 -16
  46. package/dist/vitest-evals-reporter.mjs +3 -2
  47. package/dist/workerd.js +2700 -1011
  48. package/dist/workerd.mjs +2700 -1011
  49. package/package.json +4 -4
  50. package/util/dist/index.js +4 -0
  51. package/util/dist/index.mjs +4 -0
@@ -1,4 +1,5 @@
1
1
  import {
2
+ INSTRUMENTATION_NAMES,
2
3
  aiSDKConfigs,
3
4
  anthropicConfigs,
4
5
  bedrockRuntimeConfigs,
@@ -22,7 +23,7 @@ import {
22
23
  openRouterConfigs,
23
24
  openaiConfigs,
24
25
  piCodingAgentConfigs
25
- } from "./chunk-YXLNSAMJ.mjs";
26
+ } from "./chunk-CZ24KNHT.mjs";
26
27
  import {
27
28
  applySpecialCasePatch,
28
29
  create
@@ -117,12 +118,16 @@ function isInstrumentationIntegrationDisabled(integrations, ...names) {
117
118
  }
118
119
 
119
120
  // src/instrumentation/plugins/flue-channels.ts
120
- var flueChannels = defineChannels("@flue/runtime", {
121
- createContext: channel({
122
- channelName: "createFlueContext",
123
- kind: "sync-stream"
124
- })
125
- });
121
+ var flueChannels = defineChannels(
122
+ "@flue/runtime",
123
+ {
124
+ createContext: channel({
125
+ channelName: "createFlueContext",
126
+ kind: "sync-stream"
127
+ })
128
+ },
129
+ { instrumentationName: INSTRUMENTATION_NAMES.FLUE }
130
+ );
126
131
 
127
132
  // src/auto-instrumentations/configs/flue.ts
128
133
  var flueVersionRange = ">=0.8.0 <1.0.0";
@@ -142,20 +147,24 @@ var flueConfigs = [
142
147
  ];
143
148
 
144
149
  // src/instrumentation/plugins/strands-agent-sdk-channels.ts
145
- var strandsAgentSDKChannels = defineChannels("@strands-agents/sdk", {
146
- agentStream: channel({
147
- channelName: "Agent.stream",
148
- kind: "sync-stream"
149
- }),
150
- graphStream: channel({
151
- channelName: "Graph.stream",
152
- kind: "sync-stream"
153
- }),
154
- swarmStream: channel({
155
- channelName: "Swarm.stream",
156
- kind: "sync-stream"
157
- })
158
- });
150
+ var strandsAgentSDKChannels = defineChannels(
151
+ "@strands-agents/sdk",
152
+ {
153
+ agentStream: channel({
154
+ channelName: "Agent.stream",
155
+ kind: "sync-stream"
156
+ }),
157
+ graphStream: channel({
158
+ channelName: "Graph.stream",
159
+ kind: "sync-stream"
160
+ }),
161
+ swarmStream: channel({
162
+ channelName: "Swarm.stream",
163
+ kind: "sync-stream"
164
+ })
165
+ },
166
+ { instrumentationName: INSTRUMENTATION_NAMES.STRANDS_AGENT_SDK }
167
+ );
159
168
 
160
169
  // src/auto-instrumentations/configs/strands-agent-sdk.ts
161
170
  var strandsAgentSDKVersionRange = ">=1.0.0 <2.0.0";