braintrust 3.14.0 → 3.16.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 (42) hide show
  1. package/dev/dist/index.js +655 -1059
  2. package/dev/dist/index.mjs +613 -1017
  3. package/dist/apply-auto-instrumentation.js +176 -186
  4. package/dist/apply-auto-instrumentation.mjs +6 -16
  5. package/dist/auto-instrumentations/bundler/esbuild.cjs +5 -39
  6. package/dist/auto-instrumentations/bundler/esbuild.mjs +1 -1
  7. package/dist/auto-instrumentations/bundler/next.cjs +5 -39
  8. package/dist/auto-instrumentations/bundler/next.mjs +2 -2
  9. package/dist/auto-instrumentations/bundler/rollup.cjs +5 -39
  10. package/dist/auto-instrumentations/bundler/rollup.mjs +1 -1
  11. package/dist/auto-instrumentations/bundler/vite.cjs +5 -39
  12. package/dist/auto-instrumentations/bundler/vite.mjs +1 -1
  13. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +5 -39
  14. package/dist/auto-instrumentations/bundler/webpack.cjs +5 -39
  15. package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
  16. package/dist/auto-instrumentations/{chunk-OTUQ7KH5.mjs → chunk-CNQ7BUKN.mjs} +1 -1
  17. package/dist/auto-instrumentations/{chunk-XKAAVWT6.mjs → chunk-VXJONZVX.mjs} +5 -39
  18. package/dist/auto-instrumentations/hook.mjs +10 -40
  19. package/dist/browser.d.mts +75 -18
  20. package/dist/browser.d.ts +75 -18
  21. package/dist/browser.js +616 -1042
  22. package/dist/browser.mjs +616 -1042
  23. package/dist/{chunk-NU2GSPHX.mjs → chunk-O4ZIWXO3.mjs} +0 -24
  24. package/dist/{chunk-NKD77KGB.js → chunk-VMBQETG3.js} +0 -24
  25. package/dist/cli.js +614 -1018
  26. package/dist/edge-light.d.mts +1 -1
  27. package/dist/edge-light.d.ts +1 -1
  28. package/dist/edge-light.js +616 -1042
  29. package/dist/edge-light.mjs +616 -1042
  30. package/dist/index.d.mts +75 -18
  31. package/dist/index.d.ts +75 -18
  32. package/dist/index.js +1007 -1409
  33. package/dist/index.mjs +620 -1022
  34. package/dist/instrumentation/index.d.mts +11 -1
  35. package/dist/instrumentation/index.d.ts +11 -1
  36. package/dist/instrumentation/index.js +616 -1016
  37. package/dist/instrumentation/index.mjs +615 -1016
  38. package/dist/workerd.d.mts +1 -1
  39. package/dist/workerd.d.ts +1 -1
  40. package/dist/workerd.js +616 -1042
  41. package/dist/workerd.mjs +616 -1042
  42. package/package.json +1 -1
@@ -24,7 +24,7 @@ import {
24
24
  patchMastraSource,
25
25
  patchTracingChannel,
26
26
  readDisabledInstrumentationEnvConfig
27
- } from "./chunk-NU2GSPHX.mjs";
27
+ } from "./chunk-O4ZIWXO3.mjs";
28
28
 
29
29
  // src/node/apply-auto-instrumentation-entry.ts
30
30
  import * as diagnostics_channel from "node:diagnostics_channel";
@@ -777,7 +777,7 @@ var cursorSDKConfigs = cursorSDKEntrypoints.flatMap((filePath) => [
777
777
  ]);
778
778
 
779
779
  // src/auto-instrumentations/configs/flue.ts
780
- var flueVersionRange = ">=0.7.0 <0.8.0";
780
+ var flueVersionRange = ">=0.8.0";
781
781
  var flueConfigs = [
782
782
  {
783
783
  channelName: flueChannels.createContext.channelName,
@@ -790,19 +790,6 @@ var flueConfigs = [
790
790
  functionName: "createFlueContext",
791
791
  kind: "Sync"
792
792
  }
793
- },
794
- {
795
- channelName: flueChannels.openSession.channelName,
796
- module: {
797
- name: "@flue/runtime",
798
- versionRange: flueVersionRange,
799
- filePath: "dist/internal.mjs"
800
- },
801
- functionQuery: {
802
- className: "Harness",
803
- methodName: "openSession",
804
- kind: "Async"
805
- }
806
793
  }
807
794
  ];
808
795
 
@@ -2277,7 +2264,6 @@ var defaultInstrumentationConfigGroups = [
2277
2264
  configs: claudeAgentSDKConfigs
2278
2265
  },
2279
2266
  { integrations: ["cursor", "cursorSDK"], configs: cursorSDKConfigs },
2280
- { integrations: ["flue"], configs: flueConfigs },
2281
2267
  {
2282
2268
  integrations: ["openAIAgents"],
2283
2269
  configs: openAIAgentsCoreConfigs
@@ -2307,6 +2293,10 @@ var defaultInstrumentationConfigGroups = [
2307
2293
  {
2308
2294
  integrations: ["gitHubCopilot"],
2309
2295
  configs: gitHubCopilotConfigs
2296
+ },
2297
+ {
2298
+ integrations: ["flue"],
2299
+ configs: flueConfigs
2310
2300
  }
2311
2301
  // Note: `@mastra/core` is not listed here because its instrumentation
2312
2302
  // doesn't go through the AST `code-transformer` matcher — Mastra's
@@ -1130,35 +1130,11 @@ var flueChannels = defineChannels("@flue/runtime", {
1130
1130
  createContext: channel({
1131
1131
  channelName: "createFlueContext",
1132
1132
  kind: "sync-stream"
1133
- }),
1134
- openSession: channel({
1135
- channelName: "Harness.openSession",
1136
- kind: "async"
1137
- }),
1138
- contextEvent: channel({
1139
- channelName: "context.event",
1140
- kind: "sync-stream"
1141
- }),
1142
- prompt: channel({
1143
- channelName: "session.prompt",
1144
- kind: "async"
1145
- }),
1146
- skill: channel({
1147
- channelName: "session.skill",
1148
- kind: "async"
1149
- }),
1150
- task: channel({
1151
- channelName: "session.task",
1152
- kind: "async"
1153
- }),
1154
- compact: channel({
1155
- channelName: "session.compact",
1156
- kind: "async"
1157
1133
  })
1158
1134
  });
1159
1135
 
1160
1136
  // src/auto-instrumentations/configs/flue.ts
1161
- var flueVersionRange = ">=0.7.0 <0.8.0";
1137
+ var flueVersionRange = ">=0.8.0";
1162
1138
  var flueConfigs = [
1163
1139
  {
1164
1140
  channelName: flueChannels.createContext.channelName,
@@ -1171,19 +1147,6 @@ var flueConfigs = [
1171
1147
  functionName: "createFlueContext",
1172
1148
  kind: "Sync"
1173
1149
  }
1174
- },
1175
- {
1176
- channelName: flueChannels.openSession.channelName,
1177
- module: {
1178
- name: "@flue/runtime",
1179
- versionRange: flueVersionRange,
1180
- filePath: "dist/internal.mjs"
1181
- },
1182
- functionQuery: {
1183
- className: "Harness",
1184
- methodName: "openSession",
1185
- kind: "Async"
1186
- }
1187
1150
  }
1188
1151
  ];
1189
1152
 
@@ -2960,7 +2923,6 @@ var defaultInstrumentationConfigGroups = [
2960
2923
  configs: claudeAgentSDKConfigs
2961
2924
  },
2962
2925
  { integrations: ["cursor", "cursorSDK"], configs: cursorSDKConfigs },
2963
- { integrations: ["flue"], configs: flueConfigs },
2964
2926
  {
2965
2927
  integrations: ["openAIAgents"],
2966
2928
  configs: openAIAgentsCoreConfigs
@@ -2990,6 +2952,10 @@ var defaultInstrumentationConfigGroups = [
2990
2952
  {
2991
2953
  integrations: ["gitHubCopilot"],
2992
2954
  configs: gitHubCopilotConfigs
2955
+ },
2956
+ {
2957
+ integrations: ["flue"],
2958
+ configs: flueConfigs
2993
2959
  }
2994
2960
  // Note: `@mastra/core` is not listed here because its instrumentation
2995
2961
  // doesn't go through the AST `code-transformer` matcher — Mastra's
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin
3
- } from "../chunk-XKAAVWT6.mjs";
3
+ } from "../chunk-VXJONZVX.mjs";
4
4
  import "../chunk-E5DUYJWK.mjs";
5
5
  import "../chunk-J57YF7WS.mjs";
6
6
 
@@ -1131,35 +1131,11 @@ var flueChannels = defineChannels("@flue/runtime", {
1131
1131
  createContext: channel({
1132
1132
  channelName: "createFlueContext",
1133
1133
  kind: "sync-stream"
1134
- }),
1135
- openSession: channel({
1136
- channelName: "Harness.openSession",
1137
- kind: "async"
1138
- }),
1139
- contextEvent: channel({
1140
- channelName: "context.event",
1141
- kind: "sync-stream"
1142
- }),
1143
- prompt: channel({
1144
- channelName: "session.prompt",
1145
- kind: "async"
1146
- }),
1147
- skill: channel({
1148
- channelName: "session.skill",
1149
- kind: "async"
1150
- }),
1151
- task: channel({
1152
- channelName: "session.task",
1153
- kind: "async"
1154
- }),
1155
- compact: channel({
1156
- channelName: "session.compact",
1157
- kind: "async"
1158
1134
  })
1159
1135
  });
1160
1136
 
1161
1137
  // src/auto-instrumentations/configs/flue.ts
1162
- var flueVersionRange = ">=0.7.0 <0.8.0";
1138
+ var flueVersionRange = ">=0.8.0";
1163
1139
  var flueConfigs = [
1164
1140
  {
1165
1141
  channelName: flueChannels.createContext.channelName,
@@ -1172,19 +1148,6 @@ var flueConfigs = [
1172
1148
  functionName: "createFlueContext",
1173
1149
  kind: "Sync"
1174
1150
  }
1175
- },
1176
- {
1177
- channelName: flueChannels.openSession.channelName,
1178
- module: {
1179
- name: "@flue/runtime",
1180
- versionRange: flueVersionRange,
1181
- filePath: "dist/internal.mjs"
1182
- },
1183
- functionQuery: {
1184
- className: "Harness",
1185
- methodName: "openSession",
1186
- kind: "Async"
1187
- }
1188
1151
  }
1189
1152
  ];
1190
1153
 
@@ -2961,7 +2924,6 @@ var defaultInstrumentationConfigGroups = [
2961
2924
  configs: claudeAgentSDKConfigs
2962
2925
  },
2963
2926
  { integrations: ["cursor", "cursorSDK"], configs: cursorSDKConfigs },
2964
- { integrations: ["flue"], configs: flueConfigs },
2965
2927
  {
2966
2928
  integrations: ["openAIAgents"],
2967
2929
  configs: openAIAgentsCoreConfigs
@@ -2991,6 +2953,10 @@ var defaultInstrumentationConfigGroups = [
2991
2953
  {
2992
2954
  integrations: ["gitHubCopilot"],
2993
2955
  configs: gitHubCopilotConfigs
2956
+ },
2957
+ {
2958
+ integrations: ["flue"],
2959
+ configs: flueConfigs
2994
2960
  }
2995
2961
  // Note: `@mastra/core` is not listed here because its instrumentation
2996
2962
  // doesn't go through the AST `code-transformer` matcher — Mastra's
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  webpackPlugin
3
- } from "../chunk-OTUQ7KH5.mjs";
4
- import "../chunk-XKAAVWT6.mjs";
3
+ } from "../chunk-CNQ7BUKN.mjs";
4
+ import "../chunk-VXJONZVX.mjs";
5
5
  import "../chunk-E5DUYJWK.mjs";
6
6
  import "../chunk-J57YF7WS.mjs";
7
7
 
@@ -1130,35 +1130,11 @@ var flueChannels = defineChannels("@flue/runtime", {
1130
1130
  createContext: channel({
1131
1131
  channelName: "createFlueContext",
1132
1132
  kind: "sync-stream"
1133
- }),
1134
- openSession: channel({
1135
- channelName: "Harness.openSession",
1136
- kind: "async"
1137
- }),
1138
- contextEvent: channel({
1139
- channelName: "context.event",
1140
- kind: "sync-stream"
1141
- }),
1142
- prompt: channel({
1143
- channelName: "session.prompt",
1144
- kind: "async"
1145
- }),
1146
- skill: channel({
1147
- channelName: "session.skill",
1148
- kind: "async"
1149
- }),
1150
- task: channel({
1151
- channelName: "session.task",
1152
- kind: "async"
1153
- }),
1154
- compact: channel({
1155
- channelName: "session.compact",
1156
- kind: "async"
1157
1133
  })
1158
1134
  });
1159
1135
 
1160
1136
  // src/auto-instrumentations/configs/flue.ts
1161
- var flueVersionRange = ">=0.7.0 <0.8.0";
1137
+ var flueVersionRange = ">=0.8.0";
1162
1138
  var flueConfigs = [
1163
1139
  {
1164
1140
  channelName: flueChannels.createContext.channelName,
@@ -1171,19 +1147,6 @@ var flueConfigs = [
1171
1147
  functionName: "createFlueContext",
1172
1148
  kind: "Sync"
1173
1149
  }
1174
- },
1175
- {
1176
- channelName: flueChannels.openSession.channelName,
1177
- module: {
1178
- name: "@flue/runtime",
1179
- versionRange: flueVersionRange,
1180
- filePath: "dist/internal.mjs"
1181
- },
1182
- functionQuery: {
1183
- className: "Harness",
1184
- methodName: "openSession",
1185
- kind: "Async"
1186
- }
1187
1150
  }
1188
1151
  ];
1189
1152
 
@@ -2960,7 +2923,6 @@ var defaultInstrumentationConfigGroups = [
2960
2923
  configs: claudeAgentSDKConfigs
2961
2924
  },
2962
2925
  { integrations: ["cursor", "cursorSDK"], configs: cursorSDKConfigs },
2963
- { integrations: ["flue"], configs: flueConfigs },
2964
2926
  {
2965
2927
  integrations: ["openAIAgents"],
2966
2928
  configs: openAIAgentsCoreConfigs
@@ -2990,6 +2952,10 @@ var defaultInstrumentationConfigGroups = [
2990
2952
  {
2991
2953
  integrations: ["gitHubCopilot"],
2992
2954
  configs: gitHubCopilotConfigs
2955
+ },
2956
+ {
2957
+ integrations: ["flue"],
2958
+ configs: flueConfigs
2993
2959
  }
2994
2960
  // Note: `@mastra/core` is not listed here because its instrumentation
2995
2961
  // doesn't go through the AST `code-transformer` matcher — Mastra's
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin
3
- } from "../chunk-XKAAVWT6.mjs";
3
+ } from "../chunk-VXJONZVX.mjs";
4
4
  import "../chunk-E5DUYJWK.mjs";
5
5
  import "../chunk-J57YF7WS.mjs";
6
6
 
@@ -1130,35 +1130,11 @@ var flueChannels = defineChannels("@flue/runtime", {
1130
1130
  createContext: channel({
1131
1131
  channelName: "createFlueContext",
1132
1132
  kind: "sync-stream"
1133
- }),
1134
- openSession: channel({
1135
- channelName: "Harness.openSession",
1136
- kind: "async"
1137
- }),
1138
- contextEvent: channel({
1139
- channelName: "context.event",
1140
- kind: "sync-stream"
1141
- }),
1142
- prompt: channel({
1143
- channelName: "session.prompt",
1144
- kind: "async"
1145
- }),
1146
- skill: channel({
1147
- channelName: "session.skill",
1148
- kind: "async"
1149
- }),
1150
- task: channel({
1151
- channelName: "session.task",
1152
- kind: "async"
1153
- }),
1154
- compact: channel({
1155
- channelName: "session.compact",
1156
- kind: "async"
1157
1133
  })
1158
1134
  });
1159
1135
 
1160
1136
  // src/auto-instrumentations/configs/flue.ts
1161
- var flueVersionRange = ">=0.7.0 <0.8.0";
1137
+ var flueVersionRange = ">=0.8.0";
1162
1138
  var flueConfigs = [
1163
1139
  {
1164
1140
  channelName: flueChannels.createContext.channelName,
@@ -1171,19 +1147,6 @@ var flueConfigs = [
1171
1147
  functionName: "createFlueContext",
1172
1148
  kind: "Sync"
1173
1149
  }
1174
- },
1175
- {
1176
- channelName: flueChannels.openSession.channelName,
1177
- module: {
1178
- name: "@flue/runtime",
1179
- versionRange: flueVersionRange,
1180
- filePath: "dist/internal.mjs"
1181
- },
1182
- functionQuery: {
1183
- className: "Harness",
1184
- methodName: "openSession",
1185
- kind: "Async"
1186
- }
1187
1150
  }
1188
1151
  ];
1189
1152
 
@@ -2960,7 +2923,6 @@ var defaultInstrumentationConfigGroups = [
2960
2923
  configs: claudeAgentSDKConfigs
2961
2924
  },
2962
2925
  { integrations: ["cursor", "cursorSDK"], configs: cursorSDKConfigs },
2963
- { integrations: ["flue"], configs: flueConfigs },
2964
2926
  {
2965
2927
  integrations: ["openAIAgents"],
2966
2928
  configs: openAIAgentsCoreConfigs
@@ -2990,6 +2952,10 @@ var defaultInstrumentationConfigGroups = [
2990
2952
  {
2991
2953
  integrations: ["gitHubCopilot"],
2992
2954
  configs: gitHubCopilotConfigs
2955
+ },
2956
+ {
2957
+ integrations: ["flue"],
2958
+ configs: flueConfigs
2993
2959
  }
2994
2960
  // Note: `@mastra/core` is not listed here because its instrumentation
2995
2961
  // doesn't go through the AST `code-transformer` matcher — Mastra's
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin
3
- } from "../chunk-XKAAVWT6.mjs";
3
+ } from "../chunk-VXJONZVX.mjs";
4
4
  import "../chunk-E5DUYJWK.mjs";
5
5
  import "../chunk-J57YF7WS.mjs";
6
6
 
@@ -1115,35 +1115,11 @@ var flueChannels = defineChannels("@flue/runtime", {
1115
1115
  createContext: channel({
1116
1116
  channelName: "createFlueContext",
1117
1117
  kind: "sync-stream"
1118
- }),
1119
- openSession: channel({
1120
- channelName: "Harness.openSession",
1121
- kind: "async"
1122
- }),
1123
- contextEvent: channel({
1124
- channelName: "context.event",
1125
- kind: "sync-stream"
1126
- }),
1127
- prompt: channel({
1128
- channelName: "session.prompt",
1129
- kind: "async"
1130
- }),
1131
- skill: channel({
1132
- channelName: "session.skill",
1133
- kind: "async"
1134
- }),
1135
- task: channel({
1136
- channelName: "session.task",
1137
- kind: "async"
1138
- }),
1139
- compact: channel({
1140
- channelName: "session.compact",
1141
- kind: "async"
1142
1118
  })
1143
1119
  });
1144
1120
 
1145
1121
  // src/auto-instrumentations/configs/flue.ts
1146
- var flueVersionRange = ">=0.7.0 <0.8.0";
1122
+ var flueVersionRange = ">=0.8.0";
1147
1123
  var flueConfigs = [
1148
1124
  {
1149
1125
  channelName: flueChannels.createContext.channelName,
@@ -1156,19 +1132,6 @@ var flueConfigs = [
1156
1132
  functionName: "createFlueContext",
1157
1133
  kind: "Sync"
1158
1134
  }
1159
- },
1160
- {
1161
- channelName: flueChannels.openSession.channelName,
1162
- module: {
1163
- name: "@flue/runtime",
1164
- versionRange: flueVersionRange,
1165
- filePath: "dist/internal.mjs"
1166
- },
1167
- functionQuery: {
1168
- className: "Harness",
1169
- methodName: "openSession",
1170
- kind: "Async"
1171
- }
1172
1135
  }
1173
1136
  ];
1174
1137
 
@@ -2945,7 +2908,6 @@ var defaultInstrumentationConfigGroups = [
2945
2908
  configs: claudeAgentSDKConfigs
2946
2909
  },
2947
2910
  { integrations: ["cursor", "cursorSDK"], configs: cursorSDKConfigs },
2948
- { integrations: ["flue"], configs: flueConfigs },
2949
2911
  {
2950
2912
  integrations: ["openAIAgents"],
2951
2913
  configs: openAIAgentsCoreConfigs
@@ -2975,6 +2937,10 @@ var defaultInstrumentationConfigGroups = [
2975
2937
  {
2976
2938
  integrations: ["gitHubCopilot"],
2977
2939
  configs: gitHubCopilotConfigs
2940
+ },
2941
+ {
2942
+ integrations: ["flue"],
2943
+ configs: flueConfigs
2978
2944
  }
2979
2945
  // Note: `@mastra/core` is not listed here because its instrumentation
2980
2946
  // doesn't go through the AST `code-transformer` matcher — Mastra's
@@ -1130,35 +1130,11 @@ var flueChannels = defineChannels("@flue/runtime", {
1130
1130
  createContext: channel({
1131
1131
  channelName: "createFlueContext",
1132
1132
  kind: "sync-stream"
1133
- }),
1134
- openSession: channel({
1135
- channelName: "Harness.openSession",
1136
- kind: "async"
1137
- }),
1138
- contextEvent: channel({
1139
- channelName: "context.event",
1140
- kind: "sync-stream"
1141
- }),
1142
- prompt: channel({
1143
- channelName: "session.prompt",
1144
- kind: "async"
1145
- }),
1146
- skill: channel({
1147
- channelName: "session.skill",
1148
- kind: "async"
1149
- }),
1150
- task: channel({
1151
- channelName: "session.task",
1152
- kind: "async"
1153
- }),
1154
- compact: channel({
1155
- channelName: "session.compact",
1156
- kind: "async"
1157
1133
  })
1158
1134
  });
1159
1135
 
1160
1136
  // src/auto-instrumentations/configs/flue.ts
1161
- var flueVersionRange = ">=0.7.0 <0.8.0";
1137
+ var flueVersionRange = ">=0.8.0";
1162
1138
  var flueConfigs = [
1163
1139
  {
1164
1140
  channelName: flueChannels.createContext.channelName,
@@ -1171,19 +1147,6 @@ var flueConfigs = [
1171
1147
  functionName: "createFlueContext",
1172
1148
  kind: "Sync"
1173
1149
  }
1174
- },
1175
- {
1176
- channelName: flueChannels.openSession.channelName,
1177
- module: {
1178
- name: "@flue/runtime",
1179
- versionRange: flueVersionRange,
1180
- filePath: "dist/internal.mjs"
1181
- },
1182
- functionQuery: {
1183
- className: "Harness",
1184
- methodName: "openSession",
1185
- kind: "Async"
1186
- }
1187
1150
  }
1188
1151
  ];
1189
1152
 
@@ -2960,7 +2923,6 @@ var defaultInstrumentationConfigGroups = [
2960
2923
  configs: claudeAgentSDKConfigs
2961
2924
  },
2962
2925
  { integrations: ["cursor", "cursorSDK"], configs: cursorSDKConfigs },
2963
- { integrations: ["flue"], configs: flueConfigs },
2964
2926
  {
2965
2927
  integrations: ["openAIAgents"],
2966
2928
  configs: openAIAgentsCoreConfigs
@@ -2990,6 +2952,10 @@ var defaultInstrumentationConfigGroups = [
2990
2952
  {
2991
2953
  integrations: ["gitHubCopilot"],
2992
2954
  configs: gitHubCopilotConfigs
2955
+ },
2956
+ {
2957
+ integrations: ["flue"],
2958
+ configs: flueConfigs
2993
2959
  }
2994
2960
  // Note: `@mastra/core` is not listed here because its instrumentation
2995
2961
  // doesn't go through the AST `code-transformer` matcher — Mastra's
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  braintrustWebpackPlugin,
3
3
  webpackPlugin
4
- } from "../chunk-OTUQ7KH5.mjs";
5
- import "../chunk-XKAAVWT6.mjs";
4
+ } from "../chunk-CNQ7BUKN.mjs";
5
+ import "../chunk-VXJONZVX.mjs";
6
6
  import "../chunk-E5DUYJWK.mjs";
7
7
  import "../chunk-J57YF7WS.mjs";
8
8
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unplugin
3
- } from "./chunk-XKAAVWT6.mjs";
3
+ } from "./chunk-VXJONZVX.mjs";
4
4
 
5
5
  // src/auto-instrumentations/bundler/webpack.ts
6
6
  function braintrustWebpackPlugin(options = {}) {
@@ -103,35 +103,11 @@ var flueChannels = defineChannels("@flue/runtime", {
103
103
  createContext: channel({
104
104
  channelName: "createFlueContext",
105
105
  kind: "sync-stream"
106
- }),
107
- openSession: channel({
108
- channelName: "Harness.openSession",
109
- kind: "async"
110
- }),
111
- contextEvent: channel({
112
- channelName: "context.event",
113
- kind: "sync-stream"
114
- }),
115
- prompt: channel({
116
- channelName: "session.prompt",
117
- kind: "async"
118
- }),
119
- skill: channel({
120
- channelName: "session.skill",
121
- kind: "async"
122
- }),
123
- task: channel({
124
- channelName: "session.task",
125
- kind: "async"
126
- }),
127
- compact: channel({
128
- channelName: "session.compact",
129
- kind: "async"
130
106
  })
131
107
  });
132
108
 
133
109
  // src/auto-instrumentations/configs/flue.ts
134
- var flueVersionRange = ">=0.7.0 <0.8.0";
110
+ var flueVersionRange = ">=0.8.0";
135
111
  var flueConfigs = [
136
112
  {
137
113
  channelName: flueChannels.createContext.channelName,
@@ -144,19 +120,6 @@ var flueConfigs = [
144
120
  functionName: "createFlueContext",
145
121
  kind: "Sync"
146
122
  }
147
- },
148
- {
149
- channelName: flueChannels.openSession.channelName,
150
- module: {
151
- name: "@flue/runtime",
152
- versionRange: flueVersionRange,
153
- filePath: "dist/internal.mjs"
154
- },
155
- functionQuery: {
156
- className: "Harness",
157
- methodName: "openSession",
158
- kind: "Async"
159
- }
160
123
  }
161
124
  ];
162
125
 
@@ -177,7 +140,6 @@ var defaultInstrumentationConfigGroups = [
177
140
  configs: claudeAgentSDKConfigs
178
141
  },
179
142
  { integrations: ["cursor", "cursorSDK"], configs: cursorSDKConfigs },
180
- { integrations: ["flue"], configs: flueConfigs },
181
143
  {
182
144
  integrations: ["openAIAgents"],
183
145
  configs: openAIAgentsCoreConfigs
@@ -207,6 +169,10 @@ var defaultInstrumentationConfigGroups = [
207
169
  {
208
170
  integrations: ["gitHubCopilot"],
209
171
  configs: gitHubCopilotConfigs
172
+ },
173
+ {
174
+ integrations: ["flue"],
175
+ configs: flueConfigs
210
176
  }
211
177
  // Note: `@mastra/core` is not listed here because its instrumentation
212
178
  // doesn't go through the AST `code-transformer` matcher — Mastra's