braintrust 3.6.0 → 3.7.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.
@@ -400,12 +400,26 @@ var anthropicChannels = defineChannels("@anthropic-ai/sdk", {
400
400
 
401
401
  // src/auto-instrumentations/configs/anthropic.ts
402
402
  var anthropicConfigs = [
403
+ // Messages API - create in older SDK layouts (supports streaming via stream=true parameter)
404
+ {
405
+ channelName: anthropicChannels.messagesCreate.channelName,
406
+ module: {
407
+ name: "@anthropic-ai/sdk",
408
+ versionRange: ">=0.27.0 <0.39.0",
409
+ filePath: "resources/messages.mjs"
410
+ },
411
+ functionQuery: {
412
+ className: "Messages",
413
+ methodName: "create",
414
+ kind: "Async"
415
+ }
416
+ },
403
417
  // Messages API - create (supports streaming via stream=true parameter)
404
418
  {
405
419
  channelName: anthropicChannels.messagesCreate.channelName,
406
420
  module: {
407
421
  name: "@anthropic-ai/sdk",
408
- versionRange: ">=0.60.0",
422
+ versionRange: ">=0.39.0",
409
423
  filePath: "resources/messages/messages.mjs"
410
424
  },
411
425
  functionQuery: {
@@ -419,7 +433,7 @@ var anthropicConfigs = [
419
433
  channelName: anthropicChannels.betaMessagesCreate.channelName,
420
434
  module: {
421
435
  name: "@anthropic-ai/sdk",
422
- versionRange: ">=0.60.0",
436
+ versionRange: ">=0.39.0",
423
437
  filePath: "resources/beta/messages/messages.mjs"
424
438
  },
425
439
  functionQuery: {
@@ -700,24 +714,38 @@ var claudeAgentSDKChannels = defineChannels(
700
714
  {
701
715
  query: channel({
702
716
  channelName: "query",
703
- kind: "async"
717
+ kind: "sync-stream"
704
718
  })
705
719
  }
706
720
  );
707
721
 
708
722
  // src/auto-instrumentations/configs/claude-agent-sdk.ts
709
723
  var claudeAgentSDKConfigs = [
710
- // query - Main entry point for agent interactions (top-level exported async generator function)
724
+ // query - Main entry point for agent interactions. The SDK returns an async
725
+ // iterable, but the exported query function itself is synchronous.
711
726
  {
712
727
  channelName: claudeAgentSDKChannels.query.channelName,
713
728
  module: {
714
729
  name: "@anthropic-ai/claude-agent-sdk",
715
- versionRange: ">=0.1.0",
730
+ versionRange: ">=0.1.0 <0.2.0",
716
731
  filePath: "sdk.mjs"
717
732
  },
718
733
  functionQuery: {
719
734
  functionName: "query",
720
- kind: "Async"
735
+ kind: "Sync"
736
+ }
737
+ },
738
+ {
739
+ channelName: claudeAgentSDKChannels.query.channelName,
740
+ module: {
741
+ name: "@anthropic-ai/claude-agent-sdk",
742
+ versionRange: ">=0.2.0",
743
+ filePath: "sdk.mjs"
744
+ },
745
+ functionQuery: {
746
+ functionName: "query",
747
+ kind: "Sync",
748
+ isExportAlias: true
721
749
  }
722
750
  }
723
751
  ];
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin
3
- } from "../chunk-WOUC73KB.mjs";
4
- import "../chunk-F7WAXFNM.mjs";
3
+ } from "../chunk-ZK2IYER2.mjs";
4
+ import "../chunk-AKEXR4AL.mjs";
5
5
 
6
6
  // src/auto-instrumentations/bundler/esbuild.ts
7
7
  var esbuildPlugin = unplugin.esbuild;
@@ -400,12 +400,26 @@ var anthropicChannels = defineChannels("@anthropic-ai/sdk", {
400
400
 
401
401
  // src/auto-instrumentations/configs/anthropic.ts
402
402
  var anthropicConfigs = [
403
+ // Messages API - create in older SDK layouts (supports streaming via stream=true parameter)
404
+ {
405
+ channelName: anthropicChannels.messagesCreate.channelName,
406
+ module: {
407
+ name: "@anthropic-ai/sdk",
408
+ versionRange: ">=0.27.0 <0.39.0",
409
+ filePath: "resources/messages.mjs"
410
+ },
411
+ functionQuery: {
412
+ className: "Messages",
413
+ methodName: "create",
414
+ kind: "Async"
415
+ }
416
+ },
403
417
  // Messages API - create (supports streaming via stream=true parameter)
404
418
  {
405
419
  channelName: anthropicChannels.messagesCreate.channelName,
406
420
  module: {
407
421
  name: "@anthropic-ai/sdk",
408
- versionRange: ">=0.60.0",
422
+ versionRange: ">=0.39.0",
409
423
  filePath: "resources/messages/messages.mjs"
410
424
  },
411
425
  functionQuery: {
@@ -419,7 +433,7 @@ var anthropicConfigs = [
419
433
  channelName: anthropicChannels.betaMessagesCreate.channelName,
420
434
  module: {
421
435
  name: "@anthropic-ai/sdk",
422
- versionRange: ">=0.60.0",
436
+ versionRange: ">=0.39.0",
423
437
  filePath: "resources/beta/messages/messages.mjs"
424
438
  },
425
439
  functionQuery: {
@@ -700,24 +714,38 @@ var claudeAgentSDKChannels = defineChannels(
700
714
  {
701
715
  query: channel({
702
716
  channelName: "query",
703
- kind: "async"
717
+ kind: "sync-stream"
704
718
  })
705
719
  }
706
720
  );
707
721
 
708
722
  // src/auto-instrumentations/configs/claude-agent-sdk.ts
709
723
  var claudeAgentSDKConfigs = [
710
- // query - Main entry point for agent interactions (top-level exported async generator function)
724
+ // query - Main entry point for agent interactions. The SDK returns an async
725
+ // iterable, but the exported query function itself is synchronous.
711
726
  {
712
727
  channelName: claudeAgentSDKChannels.query.channelName,
713
728
  module: {
714
729
  name: "@anthropic-ai/claude-agent-sdk",
715
- versionRange: ">=0.1.0",
730
+ versionRange: ">=0.1.0 <0.2.0",
716
731
  filePath: "sdk.mjs"
717
732
  },
718
733
  functionQuery: {
719
734
  functionName: "query",
720
- kind: "Async"
735
+ kind: "Sync"
736
+ }
737
+ },
738
+ {
739
+ channelName: claudeAgentSDKChannels.query.channelName,
740
+ module: {
741
+ name: "@anthropic-ai/claude-agent-sdk",
742
+ versionRange: ">=0.2.0",
743
+ filePath: "sdk.mjs"
744
+ },
745
+ functionQuery: {
746
+ functionName: "query",
747
+ kind: "Sync",
748
+ isExportAlias: true
721
749
  }
722
750
  }
723
751
  ];
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin
3
- } from "../chunk-WOUC73KB.mjs";
4
- import "../chunk-F7WAXFNM.mjs";
3
+ } from "../chunk-ZK2IYER2.mjs";
4
+ import "../chunk-AKEXR4AL.mjs";
5
5
 
6
6
  // src/auto-instrumentations/bundler/rollup.ts
7
7
  var rollupPlugin = unplugin.rollup;
@@ -400,12 +400,26 @@ var anthropicChannels = defineChannels("@anthropic-ai/sdk", {
400
400
 
401
401
  // src/auto-instrumentations/configs/anthropic.ts
402
402
  var anthropicConfigs = [
403
+ // Messages API - create in older SDK layouts (supports streaming via stream=true parameter)
404
+ {
405
+ channelName: anthropicChannels.messagesCreate.channelName,
406
+ module: {
407
+ name: "@anthropic-ai/sdk",
408
+ versionRange: ">=0.27.0 <0.39.0",
409
+ filePath: "resources/messages.mjs"
410
+ },
411
+ functionQuery: {
412
+ className: "Messages",
413
+ methodName: "create",
414
+ kind: "Async"
415
+ }
416
+ },
403
417
  // Messages API - create (supports streaming via stream=true parameter)
404
418
  {
405
419
  channelName: anthropicChannels.messagesCreate.channelName,
406
420
  module: {
407
421
  name: "@anthropic-ai/sdk",
408
- versionRange: ">=0.60.0",
422
+ versionRange: ">=0.39.0",
409
423
  filePath: "resources/messages/messages.mjs"
410
424
  },
411
425
  functionQuery: {
@@ -419,7 +433,7 @@ var anthropicConfigs = [
419
433
  channelName: anthropicChannels.betaMessagesCreate.channelName,
420
434
  module: {
421
435
  name: "@anthropic-ai/sdk",
422
- versionRange: ">=0.60.0",
436
+ versionRange: ">=0.39.0",
423
437
  filePath: "resources/beta/messages/messages.mjs"
424
438
  },
425
439
  functionQuery: {
@@ -700,24 +714,38 @@ var claudeAgentSDKChannels = defineChannels(
700
714
  {
701
715
  query: channel({
702
716
  channelName: "query",
703
- kind: "async"
717
+ kind: "sync-stream"
704
718
  })
705
719
  }
706
720
  );
707
721
 
708
722
  // src/auto-instrumentations/configs/claude-agent-sdk.ts
709
723
  var claudeAgentSDKConfigs = [
710
- // query - Main entry point for agent interactions (top-level exported async generator function)
724
+ // query - Main entry point for agent interactions. The SDK returns an async
725
+ // iterable, but the exported query function itself is synchronous.
711
726
  {
712
727
  channelName: claudeAgentSDKChannels.query.channelName,
713
728
  module: {
714
729
  name: "@anthropic-ai/claude-agent-sdk",
715
- versionRange: ">=0.1.0",
730
+ versionRange: ">=0.1.0 <0.2.0",
716
731
  filePath: "sdk.mjs"
717
732
  },
718
733
  functionQuery: {
719
734
  functionName: "query",
720
- kind: "Async"
735
+ kind: "Sync"
736
+ }
737
+ },
738
+ {
739
+ channelName: claudeAgentSDKChannels.query.channelName,
740
+ module: {
741
+ name: "@anthropic-ai/claude-agent-sdk",
742
+ versionRange: ">=0.2.0",
743
+ filePath: "sdk.mjs"
744
+ },
745
+ functionQuery: {
746
+ functionName: "query",
747
+ kind: "Sync",
748
+ isExportAlias: true
721
749
  }
722
750
  }
723
751
  ];
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  unplugin
3
- } from "../chunk-WOUC73KB.mjs";
4
- import "../chunk-F7WAXFNM.mjs";
3
+ } from "../chunk-ZK2IYER2.mjs";
4
+ import "../chunk-AKEXR4AL.mjs";
5
5
 
6
6
  // src/auto-instrumentations/bundler/vite.ts
7
7
  var vitePlugin = unplugin.vite;