braintrust 3.17.0 → 3.19.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 (59) hide show
  1. package/README.md +0 -10
  2. package/dev/dist/index.d.mts +13 -0
  3. package/dev/dist/index.d.ts +13 -0
  4. package/dev/dist/index.js +11289 -7551
  5. package/dev/dist/index.mjs +11249 -7511
  6. package/dist/apply-auto-instrumentation.js +406 -187
  7. package/dist/apply-auto-instrumentation.mjs +237 -18
  8. package/dist/auto-instrumentations/bundler/esbuild.cjs +299 -18
  9. package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
  10. package/dist/auto-instrumentations/bundler/next.cjs +299 -18
  11. package/dist/auto-instrumentations/bundler/next.mjs +3 -3
  12. package/dist/auto-instrumentations/bundler/rollup.cjs +299 -18
  13. package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
  14. package/dist/auto-instrumentations/bundler/vite.cjs +299 -18
  15. package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
  16. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +298 -17
  17. package/dist/auto-instrumentations/bundler/webpack.cjs +299 -18
  18. package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
  19. package/dist/auto-instrumentations/{chunk-CNQ7BUKN.mjs → chunk-K74TZGGM.mjs} +1 -1
  20. package/dist/auto-instrumentations/{chunk-VXJONZVX.mjs → chunk-S4374IP6.mjs} +96 -6
  21. package/dist/auto-instrumentations/{chunk-E5DUYJWK.mjs → chunk-W4E36GIW.mjs} +210 -15
  22. package/dist/auto-instrumentations/hook.mjs +311 -18
  23. package/dist/auto-instrumentations/index.cjs +213 -16
  24. package/dist/auto-instrumentations/index.d.mts +5 -1
  25. package/dist/auto-instrumentations/index.d.ts +5 -1
  26. package/dist/auto-instrumentations/index.mjs +7 -3
  27. package/dist/auto-instrumentations/loader/cjs-patch.cjs +1 -1
  28. package/dist/auto-instrumentations/loader/cjs-patch.mjs +1 -1
  29. package/dist/auto-instrumentations/loader/esm-hook.mjs +1 -1
  30. package/dist/browser.d.mts +254 -17
  31. package/dist/browser.d.ts +254 -17
  32. package/dist/browser.js +4470 -385
  33. package/dist/browser.mjs +8610 -4525
  34. package/dist/chunk-37RLJF2U.js +29262 -0
  35. package/dist/{chunk-VMBQETG3.js → chunk-LPC4W2WX.js} +80 -4
  36. package/dist/chunk-VEQ2PCMC.mjs +29262 -0
  37. package/dist/{chunk-O4ZIWXO3.mjs → chunk-Y7W7WP6H.mjs} +79 -3
  38. package/dist/cli.js +11262 -7518
  39. package/dist/edge-light.d.mts +1 -1
  40. package/dist/edge-light.d.ts +1 -1
  41. package/dist/edge-light.js +4470 -385
  42. package/dist/edge-light.mjs +8610 -4525
  43. package/dist/index.d.mts +254 -17
  44. package/dist/index.d.ts +254 -17
  45. package/dist/index.js +952 -25912
  46. package/dist/index.mjs +699 -25659
  47. package/dist/instrumentation/index.d.mts +69 -6
  48. package/dist/instrumentation/index.d.ts +69 -6
  49. package/dist/instrumentation/index.js +12602 -8900
  50. package/dist/instrumentation/index.mjs +12602 -8900
  51. package/dist/vitest-evals-reporter.d.mts +22 -0
  52. package/dist/vitest-evals-reporter.d.ts +22 -0
  53. package/dist/vitest-evals-reporter.js +401 -0
  54. package/dist/vitest-evals-reporter.mjs +401 -0
  55. package/dist/workerd.d.mts +1 -1
  56. package/dist/workerd.d.ts +1 -1
  57. package/dist/workerd.js +4470 -385
  58. package/dist/workerd.mjs +8610 -4525
  59. package/package.json +16 -10
@@ -22,6 +22,7 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  aiSDKConfigs: () => aiSDKConfigs,
24
24
  anthropicConfigs: () => anthropicConfigs,
25
+ bedrockRuntimeConfigs: () => bedrockRuntimeConfigs,
25
26
  claudeAgentSDKConfigs: () => claudeAgentSDKConfigs,
26
27
  cohereConfigs: () => cohereConfigs,
27
28
  cursorSDKConfigs: () => cursorSDKConfigs,
@@ -37,7 +38,8 @@ __export(index_exports, {
37
38
  openAICodexConfigs: () => openAICodexConfigs,
38
39
  openRouterAgentConfigs: () => openRouterAgentConfigs,
39
40
  openRouterConfigs: () => openRouterConfigs,
40
- openaiConfigs: () => openaiConfigs
41
+ openaiConfigs: () => openaiConfigs,
42
+ piCodingAgentConfigs: () => piCodingAgentConfigs
41
43
  });
42
44
  module.exports = __toCommonJS(index_exports);
43
45
 
@@ -465,6 +467,10 @@ var anthropicChannels = defineChannels("@anthropic-ai/sdk", {
465
467
 
466
468
  // src/auto-instrumentations/configs/anthropic.ts
467
469
  var anthropicConfigs = [
470
+ // Each logical target is listed for both published module formats:
471
+ // `.mjs` covers ESM imports, while `.js` covers CJS requires. The Bedrock
472
+ // SDK delegates CJS `messages.create` calls through these Anthropic SDK
473
+ // `.js` resource files.
468
474
  // Messages API - create in older SDK layouts (supports streaming via stream=true parameter)
469
475
  {
470
476
  channelName: anthropicChannels.messagesCreate.channelName,
@@ -479,6 +485,19 @@ var anthropicConfigs = [
479
485
  kind: "Async"
480
486
  }
481
487
  },
488
+ {
489
+ channelName: anthropicChannels.messagesCreate.channelName,
490
+ module: {
491
+ name: "@anthropic-ai/sdk",
492
+ versionRange: ">=0.27.0 <0.39.0",
493
+ filePath: "resources/messages.js"
494
+ },
495
+ functionQuery: {
496
+ className: "Messages",
497
+ methodName: "create",
498
+ kind: "Async"
499
+ }
500
+ },
482
501
  // Messages API - create (supports streaming via stream=true parameter)
483
502
  {
484
503
  channelName: anthropicChannels.messagesCreate.channelName,
@@ -493,6 +512,19 @@ var anthropicConfigs = [
493
512
  kind: "Async"
494
513
  }
495
514
  },
515
+ {
516
+ channelName: anthropicChannels.messagesCreate.channelName,
517
+ module: {
518
+ name: "@anthropic-ai/sdk",
519
+ versionRange: ">=0.39.0",
520
+ filePath: "resources/messages/messages.js"
521
+ },
522
+ functionQuery: {
523
+ className: "Messages",
524
+ methodName: "create",
525
+ kind: "Async"
526
+ }
527
+ },
496
528
  // Beta Messages API - create (supports streaming via stream=true parameter)
497
529
  {
498
530
  channelName: anthropicChannels.betaMessagesCreate.channelName,
@@ -507,6 +539,19 @@ var anthropicConfigs = [
507
539
  kind: "Async"
508
540
  }
509
541
  },
542
+ {
543
+ channelName: anthropicChannels.betaMessagesCreate.channelName,
544
+ module: {
545
+ name: "@anthropic-ai/sdk",
546
+ versionRange: ">=0.39.0",
547
+ filePath: "resources/beta/messages/messages.js"
548
+ },
549
+ functionQuery: {
550
+ className: "Messages",
551
+ methodName: "create",
552
+ kind: "Async"
553
+ }
554
+ },
510
555
  // Beta Messages API - toolRunner (sync helper returning async iterable/thenable)
511
556
  {
512
557
  channelName: anthropicChannels.betaMessagesToolRunner.channelName,
@@ -520,6 +565,90 @@ var anthropicConfigs = [
520
565
  methodName: "toolRunner",
521
566
  kind: "Sync"
522
567
  }
568
+ },
569
+ {
570
+ channelName: anthropicChannels.betaMessagesToolRunner.channelName,
571
+ module: {
572
+ name: "@anthropic-ai/sdk",
573
+ versionRange: ">=0.39.0",
574
+ filePath: "resources/beta/messages/messages.js"
575
+ },
576
+ functionQuery: {
577
+ className: "Messages",
578
+ methodName: "toolRunner",
579
+ kind: "Sync"
580
+ }
581
+ }
582
+ ];
583
+
584
+ // src/instrumentation/plugins/bedrock-runtime-channels.ts
585
+ var clientSendChannel = channel({
586
+ channelName: "client.send",
587
+ kind: "async"
588
+ });
589
+ var bedrockRuntimeChannels = defineChannels("aws-bedrock-runtime", {
590
+ clientSend: clientSendChannel
591
+ });
592
+ var smithyCoreChannels = defineChannels("@smithy/core", {
593
+ clientSend: clientSendChannel
594
+ });
595
+ var smithyClientChannels = defineChannels("@smithy/smithy-client", {
596
+ clientSend: clientSendChannel
597
+ });
598
+
599
+ // src/auto-instrumentations/configs/bedrock-runtime.ts
600
+ var bedrockRuntimeConfigs = [
601
+ {
602
+ channelName: smithyCoreChannels.clientSend.channelName,
603
+ module: {
604
+ name: "@smithy/core",
605
+ versionRange: ">=3.0.0 <4.0.0",
606
+ filePath: "dist-cjs/submodules/client/index.js"
607
+ },
608
+ functionQuery: {
609
+ className: "Client",
610
+ methodName: "send",
611
+ kind: "Async"
612
+ }
613
+ },
614
+ {
615
+ channelName: smithyCoreChannels.clientSend.channelName,
616
+ module: {
617
+ name: "@smithy/core",
618
+ versionRange: ">=3.0.0 <4.0.0",
619
+ filePath: "dist-es/submodules/client/smithy-client/client.js"
620
+ },
621
+ functionQuery: {
622
+ className: "Client",
623
+ methodName: "send",
624
+ kind: "Async"
625
+ }
626
+ },
627
+ {
628
+ channelName: smithyClientChannels.clientSend.channelName,
629
+ module: {
630
+ name: "@smithy/smithy-client",
631
+ versionRange: ">=3.0.0 <5.0.0",
632
+ filePath: "dist-cjs/index.js"
633
+ },
634
+ functionQuery: {
635
+ className: "Client",
636
+ methodName: "send",
637
+ kind: "Async"
638
+ }
639
+ },
640
+ {
641
+ channelName: smithyClientChannels.clientSend.channelName,
642
+ module: {
643
+ name: "@smithy/smithy-client",
644
+ versionRange: ">=3.0.0 <5.0.0",
645
+ filePath: "dist-es/client.js"
646
+ },
647
+ functionQuery: {
648
+ className: "Client",
649
+ methodName: "send",
650
+ kind: "Async"
651
+ }
523
652
  }
524
653
  ];
525
654
 
@@ -582,6 +711,10 @@ var aiSDKChannels = defineChannels("ai", {
582
711
  toolLoopAgentStream: channel({
583
712
  channelName: "ToolLoopAgent.stream",
584
713
  kind: "async"
714
+ }),
715
+ v7CreateTelemetryDispatcher: channel({
716
+ channelName: "createTelemetryDispatcher",
717
+ kind: "sync-stream"
585
718
  })
586
719
  });
587
720
 
@@ -592,7 +725,7 @@ var aiSDKConfigs = [
592
725
  channelName: aiSDKChannels.generateText.channelName,
593
726
  module: {
594
727
  name: "ai",
595
- versionRange: ">=3.0.0",
728
+ versionRange: ">=3.0.0 <7.0.0",
596
729
  filePath: "dist/index.mjs"
597
730
  },
598
731
  functionQuery: {
@@ -604,7 +737,7 @@ var aiSDKConfigs = [
604
737
  channelName: aiSDKChannels.generateText.channelName,
605
738
  module: {
606
739
  name: "ai",
607
- versionRange: ">=3.0.0",
740
+ versionRange: ">=3.0.0 <7.0.0",
608
741
  filePath: "dist/index.js"
609
742
  },
610
743
  functionQuery: {
@@ -630,7 +763,7 @@ var aiSDKConfigs = [
630
763
  channelName: aiSDKChannels.streamTextSync.channelName,
631
764
  module: {
632
765
  name: "ai",
633
- versionRange: ">=4.0.0",
766
+ versionRange: ">=4.0.0 <7.0.0",
634
767
  filePath: "dist/index.mjs"
635
768
  },
636
769
  functionQuery: {
@@ -654,7 +787,7 @@ var aiSDKConfigs = [
654
787
  channelName: aiSDKChannels.streamTextSync.channelName,
655
788
  module: {
656
789
  name: "ai",
657
- versionRange: ">=4.0.0",
790
+ versionRange: ">=4.0.0 <7.0.0",
658
791
  filePath: "dist/index.js"
659
792
  },
660
793
  functionQuery: {
@@ -667,7 +800,7 @@ var aiSDKConfigs = [
667
800
  channelName: aiSDKChannels.generateObject.channelName,
668
801
  module: {
669
802
  name: "ai",
670
- versionRange: ">=3.0.0",
803
+ versionRange: ">=3.0.0 <7.0.0",
671
804
  filePath: "dist/index.mjs"
672
805
  },
673
806
  functionQuery: {
@@ -679,7 +812,7 @@ var aiSDKConfigs = [
679
812
  channelName: aiSDKChannels.generateObject.channelName,
680
813
  module: {
681
814
  name: "ai",
682
- versionRange: ">=3.0.0",
815
+ versionRange: ">=3.0.0 <7.0.0",
683
816
  filePath: "dist/index.js"
684
817
  },
685
818
  functionQuery: {
@@ -692,7 +825,7 @@ var aiSDKConfigs = [
692
825
  channelName: aiSDKChannels.embed.channelName,
693
826
  module: {
694
827
  name: "ai",
695
- versionRange: ">=3.0.0",
828
+ versionRange: ">=3.0.0 <7.0.0",
696
829
  filePath: "dist/index.mjs"
697
830
  },
698
831
  functionQuery: {
@@ -704,7 +837,7 @@ var aiSDKConfigs = [
704
837
  channelName: aiSDKChannels.embed.channelName,
705
838
  module: {
706
839
  name: "ai",
707
- versionRange: ">=3.0.0",
840
+ versionRange: ">=3.0.0 <7.0.0",
708
841
  filePath: "dist/index.js"
709
842
  },
710
843
  functionQuery: {
@@ -717,7 +850,7 @@ var aiSDKConfigs = [
717
850
  channelName: aiSDKChannels.embedMany.channelName,
718
851
  module: {
719
852
  name: "ai",
720
- versionRange: ">=3.0.0",
853
+ versionRange: ">=3.0.0 <7.0.0",
721
854
  filePath: "dist/index.mjs"
722
855
  },
723
856
  functionQuery: {
@@ -729,7 +862,7 @@ var aiSDKConfigs = [
729
862
  channelName: aiSDKChannels.embedMany.channelName,
730
863
  module: {
731
864
  name: "ai",
732
- versionRange: ">=3.0.0",
865
+ versionRange: ">=3.0.0 <7.0.0",
733
866
  filePath: "dist/index.js"
734
867
  },
735
868
  functionQuery: {
@@ -742,7 +875,7 @@ var aiSDKConfigs = [
742
875
  channelName: aiSDKChannels.rerank.channelName,
743
876
  module: {
744
877
  name: "ai",
745
- versionRange: ">=5.0.0",
878
+ versionRange: ">=5.0.0 <7.0.0",
746
879
  filePath: "dist/index.mjs"
747
880
  },
748
881
  functionQuery: {
@@ -754,7 +887,7 @@ var aiSDKConfigs = [
754
887
  channelName: aiSDKChannels.rerank.channelName,
755
888
  module: {
756
889
  name: "ai",
757
- versionRange: ">=5.0.0",
890
+ versionRange: ">=5.0.0 <7.0.0",
758
891
  filePath: "dist/index.js"
759
892
  },
760
893
  functionQuery: {
@@ -762,6 +895,21 @@ var aiSDKConfigs = [
762
895
  kind: "Async"
763
896
  }
764
897
  },
898
+ // AI SDK v7 exposes its telemetry lifecycle through a dispatcher created for
899
+ // each operation. We patch that dispatcher in the plugin instead of rewriting
900
+ // the module to call registerTelemetry().
901
+ {
902
+ channelName: aiSDKChannels.v7CreateTelemetryDispatcher.channelName,
903
+ module: {
904
+ name: "ai",
905
+ versionRange: ">=7.0.0-0 <8.0.0",
906
+ filePath: "dist/index.js"
907
+ },
908
+ functionQuery: {
909
+ functionName: "createTelemetryDispatcher",
910
+ kind: "Sync"
911
+ }
912
+ },
765
913
  // streamObject - async function (v3 only, before the sync refactor in v4)
766
914
  {
767
915
  channelName: aiSDKChannels.streamObject.channelName,
@@ -780,7 +928,7 @@ var aiSDKConfigs = [
780
928
  channelName: aiSDKChannels.streamObjectSync.channelName,
781
929
  module: {
782
930
  name: "ai",
783
- versionRange: ">=4.0.0",
931
+ versionRange: ">=4.0.0 <7.0.0",
784
932
  filePath: "dist/index.mjs"
785
933
  },
786
934
  functionQuery: {
@@ -804,7 +952,7 @@ var aiSDKConfigs = [
804
952
  channelName: aiSDKChannels.streamObjectSync.channelName,
805
953
  module: {
806
954
  name: "ai",
807
- versionRange: ">=4.0.0",
955
+ versionRange: ">=4.0.0 <7.0.0",
808
956
  filePath: "dist/index.js"
809
957
  },
810
958
  functionQuery: {
@@ -1095,6 +1243,10 @@ var googleGenAIChannels = defineChannels("@google/genai", {
1095
1243
  embedContent: channel({
1096
1244
  channelName: "models.embedContent",
1097
1245
  kind: "async"
1246
+ }),
1247
+ interactionsCreate: channel({
1248
+ channelName: "interactions.create",
1249
+ kind: "async"
1098
1250
  })
1099
1251
  });
1100
1252
 
@@ -1158,6 +1310,20 @@ var googleGenAIConfigs = [
1158
1310
  methodName: "embedContentInternal",
1159
1311
  kind: "Async"
1160
1312
  }
1313
+ },
1314
+ // BaseInteractions.create - Interactions API entry point
1315
+ {
1316
+ channelName: googleGenAIChannels.interactionsCreate.channelName,
1317
+ module: {
1318
+ name: "@google/genai",
1319
+ versionRange: ">=1.33.0",
1320
+ filePath: "dist/node/index.mjs"
1321
+ },
1322
+ functionQuery: {
1323
+ className: "BaseInteractions",
1324
+ methodName: "create",
1325
+ kind: "Async"
1326
+ }
1161
1327
  }
1162
1328
  ];
1163
1329
 
@@ -2814,10 +2980,40 @@ var langchainConfigs = [
2814
2980
  }
2815
2981
  }
2816
2982
  ];
2983
+
2984
+ // src/instrumentation/plugins/pi-coding-agent-channels.ts
2985
+ var piCodingAgentChannels = defineChannels(
2986
+ "@earendil-works/pi-coding-agent",
2987
+ {
2988
+ prompt: channel({
2989
+ channelName: "AgentSession.prompt",
2990
+ kind: "async"
2991
+ })
2992
+ }
2993
+ );
2994
+
2995
+ // src/auto-instrumentations/configs/pi-coding-agent.ts
2996
+ var piCodingAgentVersionRange = ">=0.79.0 <0.80.0";
2997
+ var piCodingAgentConfigs = [
2998
+ {
2999
+ channelName: piCodingAgentChannels.prompt.channelName,
3000
+ module: {
3001
+ name: "@earendil-works/pi-coding-agent",
3002
+ versionRange: piCodingAgentVersionRange,
3003
+ filePath: "dist/core/agent-session.js"
3004
+ },
3005
+ functionQuery: {
3006
+ className: "AgentSession",
3007
+ methodName: "prompt",
3008
+ kind: "Async"
3009
+ }
3010
+ }
3011
+ ];
2817
3012
  // Annotate the CommonJS export names for ESM import in node:
2818
3013
  0 && (module.exports = {
2819
3014
  aiSDKConfigs,
2820
3015
  anthropicConfigs,
3016
+ bedrockRuntimeConfigs,
2821
3017
  claudeAgentSDKConfigs,
2822
3018
  cohereConfigs,
2823
3019
  cursorSDKConfigs,
@@ -2833,5 +3029,6 @@ var langchainConfigs = [
2833
3029
  openAICodexConfigs,
2834
3030
  openRouterAgentConfigs,
2835
3031
  openRouterConfigs,
2836
- openaiConfigs
3032
+ openaiConfigs,
3033
+ piCodingAgentConfigs
2837
3034
  });
@@ -29,6 +29,8 @@ declare const openAICodexConfigs: InstrumentationConfig[];
29
29
  */
30
30
  declare const anthropicConfigs: InstrumentationConfig[];
31
31
 
32
+ declare const bedrockRuntimeConfigs: InstrumentationConfig[];
33
+
32
34
  /**
33
35
  * Instrumentation configurations for the Vercel AI SDK.
34
36
  *
@@ -110,4 +112,6 @@ declare const gitHubCopilotConfigs: InstrumentationConfig[];
110
112
 
111
113
  declare const langchainConfigs: InstrumentationConfig[];
112
114
 
113
- export { aiSDKConfigs, anthropicConfigs, claudeAgentSDKConfigs, cohereConfigs, cursorSDKConfigs, genkitConfigs, gitHubCopilotConfigs, googleADKConfigs, googleGenAIConfigs, groqConfigs, huggingFaceConfigs, langchainConfigs, mistralConfigs, openAIAgentsCoreConfigs, openAICodexConfigs, openRouterAgentConfigs, openRouterConfigs, openaiConfigs };
115
+ declare const piCodingAgentConfigs: InstrumentationConfig[];
116
+
117
+ export { aiSDKConfigs, anthropicConfigs, bedrockRuntimeConfigs, claudeAgentSDKConfigs, cohereConfigs, cursorSDKConfigs, genkitConfigs, gitHubCopilotConfigs, googleADKConfigs, googleGenAIConfigs, groqConfigs, huggingFaceConfigs, langchainConfigs, mistralConfigs, openAIAgentsCoreConfigs, openAICodexConfigs, openRouterAgentConfigs, openRouterConfigs, openaiConfigs, piCodingAgentConfigs };
@@ -29,6 +29,8 @@ declare const openAICodexConfigs: InstrumentationConfig[];
29
29
  */
30
30
  declare const anthropicConfigs: InstrumentationConfig[];
31
31
 
32
+ declare const bedrockRuntimeConfigs: InstrumentationConfig[];
33
+
32
34
  /**
33
35
  * Instrumentation configurations for the Vercel AI SDK.
34
36
  *
@@ -110,4 +112,6 @@ declare const gitHubCopilotConfigs: InstrumentationConfig[];
110
112
 
111
113
  declare const langchainConfigs: InstrumentationConfig[];
112
114
 
113
- export { aiSDKConfigs, anthropicConfigs, claudeAgentSDKConfigs, cohereConfigs, cursorSDKConfigs, genkitConfigs, gitHubCopilotConfigs, googleADKConfigs, googleGenAIConfigs, groqConfigs, huggingFaceConfigs, langchainConfigs, mistralConfigs, openAIAgentsCoreConfigs, openAICodexConfigs, openRouterAgentConfigs, openRouterConfigs, openaiConfigs };
115
+ declare const piCodingAgentConfigs: InstrumentationConfig[];
116
+
117
+ export { aiSDKConfigs, anthropicConfigs, bedrockRuntimeConfigs, claudeAgentSDKConfigs, cohereConfigs, cursorSDKConfigs, genkitConfigs, gitHubCopilotConfigs, googleADKConfigs, googleGenAIConfigs, groqConfigs, huggingFaceConfigs, langchainConfigs, mistralConfigs, openAIAgentsCoreConfigs, openAICodexConfigs, openRouterAgentConfigs, openRouterConfigs, openaiConfigs, piCodingAgentConfigs };
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  aiSDKConfigs,
3
3
  anthropicConfigs,
4
+ bedrockRuntimeConfigs,
4
5
  claudeAgentSDKConfigs,
5
6
  cohereConfigs,
6
7
  cursorSDKConfigs,
@@ -16,11 +17,13 @@ import {
16
17
  openAICodexConfigs,
17
18
  openRouterAgentConfigs,
18
19
  openRouterConfigs,
19
- openaiConfigs
20
- } from "./chunk-E5DUYJWK.mjs";
20
+ openaiConfigs,
21
+ piCodingAgentConfigs
22
+ } from "./chunk-W4E36GIW.mjs";
21
23
  export {
22
24
  aiSDKConfigs,
23
25
  anthropicConfigs,
26
+ bedrockRuntimeConfigs,
24
27
  claudeAgentSDKConfigs,
25
28
  cohereConfigs,
26
29
  cursorSDKConfigs,
@@ -36,5 +39,6 @@ export {
36
39
  openAICodexConfigs,
37
40
  openRouterAgentConfigs,
38
41
  openRouterConfigs,
39
- openaiConfigs
42
+ openaiConfigs,
43
+ piCodingAgentConfigs
40
44
  };
@@ -327,6 +327,7 @@ var ModulePatch = class {
327
327
  if (resolvedModule) {
328
328
  const packageName = getPackageName(resolvedModule.basedir) ?? resolvedModule.name;
329
329
  const normalizedModulePath = resolvedModule.path.replace(/\\/g, "/");
330
+ const version = getPackageVersion(resolvedModule.basedir);
330
331
  const patched = applySpecialCasePatch({
331
332
  packageName,
332
333
  modulePath: normalizedModulePath,
@@ -340,7 +341,6 @@ var ModulePatch = class {
340
341
  if (!self.packages.has(packageName)) {
341
342
  return self.originalCompile.apply(this, args);
342
343
  }
343
- const version = getPackageVersion(resolvedModule.basedir);
344
344
  const transformer = self.instrumentator.getTransformer(
345
345
  packageName,
346
346
  version,
@@ -41,6 +41,7 @@ var ModulePatch = class {
41
41
  if (resolvedModule) {
42
42
  const packageName = getPackageName(resolvedModule.basedir) ?? resolvedModule.name;
43
43
  const normalizedModulePath = resolvedModule.path.replace(/\\/g, "/");
44
+ const version = getPackageVersion(resolvedModule.basedir);
44
45
  const patched = applySpecialCasePatch({
45
46
  packageName,
46
47
  modulePath: normalizedModulePath,
@@ -54,7 +55,6 @@ var ModulePatch = class {
54
55
  if (!self.packages.has(packageName)) {
55
56
  return self.originalCompile.apply(this, args);
56
57
  }
57
- const version = getPackageVersion(resolvedModule.basedir);
58
58
  const transformer = self.instrumentator.getTransformer(
59
59
  packageName,
60
60
  version,
@@ -47,6 +47,7 @@ async function resolve(specifier, context, nextResolve) {
47
47
  if (resolvedModule) {
48
48
  const packageName = getPackageName(resolvedModule.basedir) ?? resolvedModule.name;
49
49
  const normalizedModulePath = resolvedModule.path.replace(/\\/g, "/");
50
+ const version = getPackageVersion(resolvedModule.basedir);
50
51
  if (isSpecialCaseTarget(packageName, normalizedModulePath)) {
51
52
  specialCaseUrls.set(url.url, {
52
53
  packageName,
@@ -56,7 +57,6 @@ async function resolve(specifier, context, nextResolve) {
56
57
  if (!packages?.has(packageName)) {
57
58
  return url;
58
59
  }
59
- const version = getPackageVersion(resolvedModule.basedir);
60
60
  const transformer = instrumentator.getTransformer(
61
61
  packageName,
62
62
  version,