braintrust 3.18.0 → 3.20.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.
- package/README.md +0 -10
- package/dev/dist/index.js +3629 -1989
- package/dev/dist/index.mjs +4579 -2939
- package/dist/apply-auto-instrumentation.js +342 -175
- package/dist/apply-auto-instrumentation.mjs +170 -3
- package/dist/auto-instrumentations/bundler/esbuild.cjs +209 -3
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/next.cjs +209 -3
- package/dist/auto-instrumentations/bundler/next.mjs +3 -3
- package/dist/auto-instrumentations/bundler/rollup.cjs +209 -3
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +209 -3
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +209 -3
- package/dist/auto-instrumentations/bundler/webpack.cjs +209 -3
- package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
- package/dist/auto-instrumentations/{chunk-MYCHHXOE.mjs → chunk-K74TZGGM.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-GNUEZ2PE.mjs → chunk-S4374IP6.mjs} +84 -4
- package/dist/auto-instrumentations/{chunk-ZYKZEMRT.mjs → chunk-W4E36GIW.mjs} +128 -0
- package/dist/auto-instrumentations/hook.mjs +209 -3
- package/dist/auto-instrumentations/index.cjs +129 -0
- package/dist/auto-instrumentations/index.d.mts +3 -1
- package/dist/auto-instrumentations/index.d.ts +3 -1
- package/dist/auto-instrumentations/index.mjs +3 -1
- package/dist/browser.d.mts +88 -6
- package/dist/browser.d.ts +88 -6
- package/dist/browser.js +2059 -161
- package/dist/browser.mjs +4851 -2953
- package/dist/chunk-F73OMF66.mjs +29266 -0
- package/dist/{chunk-73IYIIOL.js → chunk-LPC4W2WX.js} +54 -4
- package/dist/chunk-POCCIJAL.js +29266 -0
- package/dist/{chunk-BYFADLEZ.mjs → chunk-Y7W7WP6H.mjs} +53 -3
- package/dist/cli.js +3495 -1849
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +2059 -161
- package/dist/edge-light.mjs +4851 -2953
- package/dist/index.d.mts +88 -6
- package/dist/index.d.ts +88 -6
- package/dist/index.js +838 -27963
- package/dist/index.mjs +581 -27706
- package/dist/instrumentation/index.d.mts +75 -5
- package/dist/instrumentation/index.d.ts +75 -5
- package/dist/instrumentation/index.js +4578 -2937
- package/dist/instrumentation/index.mjs +4577 -2937
- package/dist/vitest-evals-reporter.d.mts +22 -0
- package/dist/vitest-evals-reporter.d.ts +22 -0
- package/dist/vitest-evals-reporter.js +401 -0
- package/dist/vitest-evals-reporter.mjs +401 -0
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +2059 -161
- package/dist/workerd.mjs +4851 -2953
- package/package.json +7 -1
|
@@ -21,6 +21,10 @@ var envIntegrationAliases = {
|
|
|
21
21
|
picodingagent: "piCodingAgent",
|
|
22
22
|
picodingagentsdk: "piCodingAgent",
|
|
23
23
|
"@earendil-works/pi-coding-agent": "piCodingAgent",
|
|
24
|
+
strandsAgentSDK: "strandsAgentSDK",
|
|
25
|
+
strandsagentsdk: "strandsAgentSDK",
|
|
26
|
+
"strands-agent-sdk": "strandsAgentSDK",
|
|
27
|
+
"@strands-agents/sdk": "strandsAgentSDK",
|
|
24
28
|
anthropic: "anthropic",
|
|
25
29
|
aisdk: "aisdk",
|
|
26
30
|
"ai-sdk": "aisdk",
|
|
@@ -51,6 +55,12 @@ var envIntegrationAliases = {
|
|
|
51
55
|
cohere: "cohere",
|
|
52
56
|
groq: "groq",
|
|
53
57
|
"groq-sdk": "groq",
|
|
58
|
+
bedrock: "bedrock",
|
|
59
|
+
"aws-bedrock": "awsBedrock",
|
|
60
|
+
awsbedrock: "awsBedrock",
|
|
61
|
+
"aws-bedrock-runtime": "awsBedrockRuntime",
|
|
62
|
+
awsbedrockruntime: "awsBedrockRuntime",
|
|
63
|
+
"@aws-sdk/client-bedrock-runtime": "awsBedrockRuntime",
|
|
54
64
|
genkit: "genkit",
|
|
55
65
|
"firebase-genkit": "genkit",
|
|
56
66
|
githubcopilot: "gitHubCopilot",
|
|
@@ -65,9 +75,10 @@ function readDisabledInstrumentationEnvConfig(disabledList) {
|
|
|
65
75
|
const integrations = {};
|
|
66
76
|
if (disabledList) {
|
|
67
77
|
for (const value of disabledList.split(",")) {
|
|
68
|
-
const
|
|
78
|
+
const rawSdk = value.trim();
|
|
79
|
+
const sdk = rawSdk.toLowerCase();
|
|
69
80
|
if (sdk.length > 0) {
|
|
70
|
-
integrations[envIntegrationAliases[sdk] ?? sdk] = false;
|
|
81
|
+
integrations[envIntegrationAliases[rawSdk] ?? envIntegrationAliases[sdk] ?? sdk] = false;
|
|
71
82
|
}
|
|
72
83
|
}
|
|
73
84
|
}
|
|
@@ -8633,6 +8644,10 @@ var anthropicChannels = defineChannels("@anthropic-ai/sdk", {
|
|
|
8633
8644
|
|
|
8634
8645
|
// src/auto-instrumentations/configs/anthropic.ts
|
|
8635
8646
|
var anthropicConfigs = [
|
|
8647
|
+
// Each logical target is listed for both published module formats:
|
|
8648
|
+
// `.mjs` covers ESM imports, while `.js` covers CJS requires. The Bedrock
|
|
8649
|
+
// SDK delegates CJS `messages.create` calls through these Anthropic SDK
|
|
8650
|
+
// `.js` resource files.
|
|
8636
8651
|
// Messages API - create in older SDK layouts (supports streaming via stream=true parameter)
|
|
8637
8652
|
{
|
|
8638
8653
|
channelName: anthropicChannels.messagesCreate.channelName,
|
|
@@ -8647,6 +8662,19 @@ var anthropicConfigs = [
|
|
|
8647
8662
|
kind: "Async"
|
|
8648
8663
|
}
|
|
8649
8664
|
},
|
|
8665
|
+
{
|
|
8666
|
+
channelName: anthropicChannels.messagesCreate.channelName,
|
|
8667
|
+
module: {
|
|
8668
|
+
name: "@anthropic-ai/sdk",
|
|
8669
|
+
versionRange: ">=0.27.0 <0.39.0",
|
|
8670
|
+
filePath: "resources/messages.js"
|
|
8671
|
+
},
|
|
8672
|
+
functionQuery: {
|
|
8673
|
+
className: "Messages",
|
|
8674
|
+
methodName: "create",
|
|
8675
|
+
kind: "Async"
|
|
8676
|
+
}
|
|
8677
|
+
},
|
|
8650
8678
|
// Messages API - create (supports streaming via stream=true parameter)
|
|
8651
8679
|
{
|
|
8652
8680
|
channelName: anthropicChannels.messagesCreate.channelName,
|
|
@@ -8661,6 +8689,19 @@ var anthropicConfigs = [
|
|
|
8661
8689
|
kind: "Async"
|
|
8662
8690
|
}
|
|
8663
8691
|
},
|
|
8692
|
+
{
|
|
8693
|
+
channelName: anthropicChannels.messagesCreate.channelName,
|
|
8694
|
+
module: {
|
|
8695
|
+
name: "@anthropic-ai/sdk",
|
|
8696
|
+
versionRange: ">=0.39.0",
|
|
8697
|
+
filePath: "resources/messages/messages.js"
|
|
8698
|
+
},
|
|
8699
|
+
functionQuery: {
|
|
8700
|
+
className: "Messages",
|
|
8701
|
+
methodName: "create",
|
|
8702
|
+
kind: "Async"
|
|
8703
|
+
}
|
|
8704
|
+
},
|
|
8664
8705
|
// Beta Messages API - create (supports streaming via stream=true parameter)
|
|
8665
8706
|
{
|
|
8666
8707
|
channelName: anthropicChannels.betaMessagesCreate.channelName,
|
|
@@ -8675,6 +8716,19 @@ var anthropicConfigs = [
|
|
|
8675
8716
|
kind: "Async"
|
|
8676
8717
|
}
|
|
8677
8718
|
},
|
|
8719
|
+
{
|
|
8720
|
+
channelName: anthropicChannels.betaMessagesCreate.channelName,
|
|
8721
|
+
module: {
|
|
8722
|
+
name: "@anthropic-ai/sdk",
|
|
8723
|
+
versionRange: ">=0.39.0",
|
|
8724
|
+
filePath: "resources/beta/messages/messages.js"
|
|
8725
|
+
},
|
|
8726
|
+
functionQuery: {
|
|
8727
|
+
className: "Messages",
|
|
8728
|
+
methodName: "create",
|
|
8729
|
+
kind: "Async"
|
|
8730
|
+
}
|
|
8731
|
+
},
|
|
8678
8732
|
// Beta Messages API - toolRunner (sync helper returning async iterable/thenable)
|
|
8679
8733
|
{
|
|
8680
8734
|
channelName: anthropicChannels.betaMessagesToolRunner.channelName,
|
|
@@ -8688,6 +8742,90 @@ var anthropicConfigs = [
|
|
|
8688
8742
|
methodName: "toolRunner",
|
|
8689
8743
|
kind: "Sync"
|
|
8690
8744
|
}
|
|
8745
|
+
},
|
|
8746
|
+
{
|
|
8747
|
+
channelName: anthropicChannels.betaMessagesToolRunner.channelName,
|
|
8748
|
+
module: {
|
|
8749
|
+
name: "@anthropic-ai/sdk",
|
|
8750
|
+
versionRange: ">=0.39.0",
|
|
8751
|
+
filePath: "resources/beta/messages/messages.js"
|
|
8752
|
+
},
|
|
8753
|
+
functionQuery: {
|
|
8754
|
+
className: "Messages",
|
|
8755
|
+
methodName: "toolRunner",
|
|
8756
|
+
kind: "Sync"
|
|
8757
|
+
}
|
|
8758
|
+
}
|
|
8759
|
+
];
|
|
8760
|
+
|
|
8761
|
+
// src/instrumentation/plugins/bedrock-runtime-channels.ts
|
|
8762
|
+
var clientSendChannel = channel({
|
|
8763
|
+
channelName: "client.send",
|
|
8764
|
+
kind: "async"
|
|
8765
|
+
});
|
|
8766
|
+
var bedrockRuntimeChannels = defineChannels("aws-bedrock-runtime", {
|
|
8767
|
+
clientSend: clientSendChannel
|
|
8768
|
+
});
|
|
8769
|
+
var smithyCoreChannels = defineChannels("@smithy/core", {
|
|
8770
|
+
clientSend: clientSendChannel
|
|
8771
|
+
});
|
|
8772
|
+
var smithyClientChannels = defineChannels("@smithy/smithy-client", {
|
|
8773
|
+
clientSend: clientSendChannel
|
|
8774
|
+
});
|
|
8775
|
+
|
|
8776
|
+
// src/auto-instrumentations/configs/bedrock-runtime.ts
|
|
8777
|
+
var bedrockRuntimeConfigs = [
|
|
8778
|
+
{
|
|
8779
|
+
channelName: smithyCoreChannels.clientSend.channelName,
|
|
8780
|
+
module: {
|
|
8781
|
+
name: "@smithy/core",
|
|
8782
|
+
versionRange: ">=3.0.0 <4.0.0",
|
|
8783
|
+
filePath: "dist-cjs/submodules/client/index.js"
|
|
8784
|
+
},
|
|
8785
|
+
functionQuery: {
|
|
8786
|
+
className: "Client",
|
|
8787
|
+
methodName: "send",
|
|
8788
|
+
kind: "Async"
|
|
8789
|
+
}
|
|
8790
|
+
},
|
|
8791
|
+
{
|
|
8792
|
+
channelName: smithyCoreChannels.clientSend.channelName,
|
|
8793
|
+
module: {
|
|
8794
|
+
name: "@smithy/core",
|
|
8795
|
+
versionRange: ">=3.0.0 <4.0.0",
|
|
8796
|
+
filePath: "dist-es/submodules/client/smithy-client/client.js"
|
|
8797
|
+
},
|
|
8798
|
+
functionQuery: {
|
|
8799
|
+
className: "Client",
|
|
8800
|
+
methodName: "send",
|
|
8801
|
+
kind: "Async"
|
|
8802
|
+
}
|
|
8803
|
+
},
|
|
8804
|
+
{
|
|
8805
|
+
channelName: smithyClientChannels.clientSend.channelName,
|
|
8806
|
+
module: {
|
|
8807
|
+
name: "@smithy/smithy-client",
|
|
8808
|
+
versionRange: ">=3.0.0 <5.0.0",
|
|
8809
|
+
filePath: "dist-cjs/index.js"
|
|
8810
|
+
},
|
|
8811
|
+
functionQuery: {
|
|
8812
|
+
className: "Client",
|
|
8813
|
+
methodName: "send",
|
|
8814
|
+
kind: "Async"
|
|
8815
|
+
}
|
|
8816
|
+
},
|
|
8817
|
+
{
|
|
8818
|
+
channelName: smithyClientChannels.clientSend.channelName,
|
|
8819
|
+
module: {
|
|
8820
|
+
name: "@smithy/smithy-client",
|
|
8821
|
+
versionRange: ">=3.0.0 <5.0.0",
|
|
8822
|
+
filePath: "dist-es/client.js"
|
|
8823
|
+
},
|
|
8824
|
+
functionQuery: {
|
|
8825
|
+
className: "Client",
|
|
8826
|
+
methodName: "send",
|
|
8827
|
+
kind: "Async"
|
|
8828
|
+
}
|
|
8691
8829
|
}
|
|
8692
8830
|
];
|
|
8693
8831
|
|
|
@@ -9091,7 +9229,7 @@ var flueChannels = defineChannels("@flue/runtime", {
|
|
|
9091
9229
|
});
|
|
9092
9230
|
|
|
9093
9231
|
// src/auto-instrumentations/configs/flue.ts
|
|
9094
|
-
var flueVersionRange = ">=0.8.0";
|
|
9232
|
+
var flueVersionRange = ">=0.8.0 <1.0.0";
|
|
9095
9233
|
var flueConfigs = [
|
|
9096
9234
|
{
|
|
9097
9235
|
channelName: flueChannels.createContext.channelName,
|
|
@@ -10910,6 +11048,66 @@ var piCodingAgentConfigs = [
|
|
|
10910
11048
|
}
|
|
10911
11049
|
];
|
|
10912
11050
|
|
|
11051
|
+
// src/instrumentation/plugins/strands-agent-sdk-channels.ts
|
|
11052
|
+
var strandsAgentSDKChannels = defineChannels("@strands-agents/sdk", {
|
|
11053
|
+
agentStream: channel({
|
|
11054
|
+
channelName: "Agent.stream",
|
|
11055
|
+
kind: "sync-stream"
|
|
11056
|
+
}),
|
|
11057
|
+
graphStream: channel({
|
|
11058
|
+
channelName: "Graph.stream",
|
|
11059
|
+
kind: "sync-stream"
|
|
11060
|
+
}),
|
|
11061
|
+
swarmStream: channel({
|
|
11062
|
+
channelName: "Swarm.stream",
|
|
11063
|
+
kind: "sync-stream"
|
|
11064
|
+
})
|
|
11065
|
+
});
|
|
11066
|
+
|
|
11067
|
+
// src/auto-instrumentations/configs/strands-agent-sdk.ts
|
|
11068
|
+
var strandsAgentSDKVersionRange = ">=1.0.0 <2.0.0";
|
|
11069
|
+
var strandsAgentSDKConfigs = [
|
|
11070
|
+
{
|
|
11071
|
+
channelName: strandsAgentSDKChannels.agentStream.channelName,
|
|
11072
|
+
module: {
|
|
11073
|
+
name: "@strands-agents/sdk",
|
|
11074
|
+
versionRange: strandsAgentSDKVersionRange,
|
|
11075
|
+
filePath: "dist/src/agent/agent.js"
|
|
11076
|
+
},
|
|
11077
|
+
functionQuery: {
|
|
11078
|
+
className: "Agent",
|
|
11079
|
+
methodName: "stream",
|
|
11080
|
+
kind: "Sync"
|
|
11081
|
+
}
|
|
11082
|
+
},
|
|
11083
|
+
{
|
|
11084
|
+
channelName: strandsAgentSDKChannels.graphStream.channelName,
|
|
11085
|
+
module: {
|
|
11086
|
+
name: "@strands-agents/sdk",
|
|
11087
|
+
versionRange: strandsAgentSDKVersionRange,
|
|
11088
|
+
filePath: "dist/src/multiagent/graph.js"
|
|
11089
|
+
},
|
|
11090
|
+
functionQuery: {
|
|
11091
|
+
className: "Graph",
|
|
11092
|
+
methodName: "stream",
|
|
11093
|
+
kind: "Sync"
|
|
11094
|
+
}
|
|
11095
|
+
},
|
|
11096
|
+
{
|
|
11097
|
+
channelName: strandsAgentSDKChannels.swarmStream.channelName,
|
|
11098
|
+
module: {
|
|
11099
|
+
name: "@strands-agents/sdk",
|
|
11100
|
+
versionRange: strandsAgentSDKVersionRange,
|
|
11101
|
+
filePath: "dist/src/multiagent/swarm.js"
|
|
11102
|
+
},
|
|
11103
|
+
functionQuery: {
|
|
11104
|
+
className: "Swarm",
|
|
11105
|
+
methodName: "stream",
|
|
11106
|
+
kind: "Sync"
|
|
11107
|
+
}
|
|
11108
|
+
}
|
|
11109
|
+
];
|
|
11110
|
+
|
|
10913
11111
|
// src/auto-instrumentations/configs/all.ts
|
|
10914
11112
|
var defaultInstrumentationConfigGroups = [
|
|
10915
11113
|
{ integrations: ["openai"], configs: openaiConfigs },
|
|
@@ -10918,6 +11116,10 @@ var defaultInstrumentationConfigGroups = [
|
|
|
10918
11116
|
configs: openAICodexConfigs
|
|
10919
11117
|
},
|
|
10920
11118
|
{ integrations: ["anthropic"], configs: anthropicConfigs },
|
|
11119
|
+
{
|
|
11120
|
+
integrations: ["bedrock", "awsBedrock", "awsBedrockRuntime"],
|
|
11121
|
+
configs: bedrockRuntimeConfigs
|
|
11122
|
+
},
|
|
10921
11123
|
{
|
|
10922
11124
|
integrations: ["aisdk", "vercel"],
|
|
10923
11125
|
configs: aiSDKConfigs
|
|
@@ -10961,6 +11163,10 @@ var defaultInstrumentationConfigGroups = [
|
|
|
10961
11163
|
integrations: ["piCodingAgent"],
|
|
10962
11164
|
configs: piCodingAgentConfigs
|
|
10963
11165
|
},
|
|
11166
|
+
{
|
|
11167
|
+
integrations: ["strandsAgentSDK"],
|
|
11168
|
+
configs: strandsAgentSDKConfigs
|
|
11169
|
+
},
|
|
10964
11170
|
{
|
|
10965
11171
|
integrations: ["flue"],
|
|
10966
11172
|
configs: flueConfigs
|
|
@@ -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,
|
|
@@ -466,6 +467,10 @@ var anthropicChannels = defineChannels("@anthropic-ai/sdk", {
|
|
|
466
467
|
|
|
467
468
|
// src/auto-instrumentations/configs/anthropic.ts
|
|
468
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.
|
|
469
474
|
// Messages API - create in older SDK layouts (supports streaming via stream=true parameter)
|
|
470
475
|
{
|
|
471
476
|
channelName: anthropicChannels.messagesCreate.channelName,
|
|
@@ -480,6 +485,19 @@ var anthropicConfigs = [
|
|
|
480
485
|
kind: "Async"
|
|
481
486
|
}
|
|
482
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
|
+
},
|
|
483
501
|
// Messages API - create (supports streaming via stream=true parameter)
|
|
484
502
|
{
|
|
485
503
|
channelName: anthropicChannels.messagesCreate.channelName,
|
|
@@ -494,6 +512,19 @@ var anthropicConfigs = [
|
|
|
494
512
|
kind: "Async"
|
|
495
513
|
}
|
|
496
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
|
+
},
|
|
497
528
|
// Beta Messages API - create (supports streaming via stream=true parameter)
|
|
498
529
|
{
|
|
499
530
|
channelName: anthropicChannels.betaMessagesCreate.channelName,
|
|
@@ -508,6 +539,19 @@ var anthropicConfigs = [
|
|
|
508
539
|
kind: "Async"
|
|
509
540
|
}
|
|
510
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
|
+
},
|
|
511
555
|
// Beta Messages API - toolRunner (sync helper returning async iterable/thenable)
|
|
512
556
|
{
|
|
513
557
|
channelName: anthropicChannels.betaMessagesToolRunner.channelName,
|
|
@@ -521,6 +565,90 @@ var anthropicConfigs = [
|
|
|
521
565
|
methodName: "toolRunner",
|
|
522
566
|
kind: "Sync"
|
|
523
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
|
+
}
|
|
524
652
|
}
|
|
525
653
|
];
|
|
526
654
|
|
|
@@ -2885,6 +3013,7 @@ var piCodingAgentConfigs = [
|
|
|
2885
3013
|
0 && (module.exports = {
|
|
2886
3014
|
aiSDKConfigs,
|
|
2887
3015
|
anthropicConfigs,
|
|
3016
|
+
bedrockRuntimeConfigs,
|
|
2888
3017
|
claudeAgentSDKConfigs,
|
|
2889
3018
|
cohereConfigs,
|
|
2890
3019
|
cursorSDKConfigs,
|
|
@@ -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
|
*
|
|
@@ -112,4 +114,4 @@ declare const langchainConfigs: InstrumentationConfig[];
|
|
|
112
114
|
|
|
113
115
|
declare const piCodingAgentConfigs: InstrumentationConfig[];
|
|
114
116
|
|
|
115
|
-
export { aiSDKConfigs, anthropicConfigs, claudeAgentSDKConfigs, cohereConfigs, cursorSDKConfigs, genkitConfigs, gitHubCopilotConfigs, googleADKConfigs, googleGenAIConfigs, groqConfigs, huggingFaceConfigs, langchainConfigs, mistralConfigs, openAIAgentsCoreConfigs, openAICodexConfigs, openRouterAgentConfigs, openRouterConfigs, openaiConfigs, piCodingAgentConfigs };
|
|
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
|
*
|
|
@@ -112,4 +114,4 @@ declare const langchainConfigs: InstrumentationConfig[];
|
|
|
112
114
|
|
|
113
115
|
declare const piCodingAgentConfigs: InstrumentationConfig[];
|
|
114
116
|
|
|
115
|
-
export { aiSDKConfigs, anthropicConfigs, claudeAgentSDKConfigs, cohereConfigs, cursorSDKConfigs, genkitConfigs, gitHubCopilotConfigs, googleADKConfigs, googleGenAIConfigs, groqConfigs, huggingFaceConfigs, langchainConfigs, mistralConfigs, openAIAgentsCoreConfigs, openAICodexConfigs, openRouterAgentConfigs, openRouterConfigs, openaiConfigs, piCodingAgentConfigs };
|
|
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,
|
|
@@ -18,10 +19,11 @@ import {
|
|
|
18
19
|
openRouterConfigs,
|
|
19
20
|
openaiConfigs,
|
|
20
21
|
piCodingAgentConfigs
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-W4E36GIW.mjs";
|
|
22
23
|
export {
|
|
23
24
|
aiSDKConfigs,
|
|
24
25
|
anthropicConfigs,
|
|
26
|
+
bedrockRuntimeConfigs,
|
|
25
27
|
claudeAgentSDKConfigs,
|
|
26
28
|
cohereConfigs,
|
|
27
29
|
cursorSDKConfigs,
|