braintrust 3.9.0 → 3.10.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/dev/dist/index.d.mts +107 -1
- package/dev/dist/index.d.ts +107 -1
- package/dev/dist/index.js +2126 -443
- package/dev/dist/index.mjs +1814 -131
- package/dist/auto-instrumentations/bundler/esbuild.cjs +166 -0
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/rollup.cjs +166 -0
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +166 -0
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +163 -0
- package/dist/auto-instrumentations/bundler/webpack.cjs +166 -0
- package/dist/auto-instrumentations/bundler/webpack.mjs +2 -2
- package/dist/auto-instrumentations/{chunk-KIMMUFAK.mjs → chunk-GZNXBBPU.mjs} +164 -1
- package/dist/auto-instrumentations/{chunk-G7F6HZGE.mjs → chunk-XWEQQOQH.mjs} +8 -1
- package/dist/auto-instrumentations/hook.mjs +255 -8
- package/dist/auto-instrumentations/index.cjs +256 -7
- package/dist/auto-instrumentations/index.d.mts +5 -1
- package/dist/auto-instrumentations/index.d.ts +5 -1
- package/dist/auto-instrumentations/index.mjs +96 -8
- package/dist/browser.d.mts +141 -7
- package/dist/browser.d.ts +141 -7
- package/dist/browser.js +2035 -140
- package/dist/browser.mjs +2035 -140
- package/dist/cli.js +1822 -139
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +2035 -140
- package/dist/edge-light.mjs +2035 -140
- package/dist/index.d.mts +141 -7
- package/dist/index.d.ts +141 -7
- package/dist/index.js +2397 -502
- package/dist/index.mjs +2035 -140
- package/dist/instrumentation/index.d.mts +7 -0
- package/dist/instrumentation/index.d.ts +7 -0
- package/dist/instrumentation/index.js +1662 -167
- package/dist/instrumentation/index.mjs +1662 -167
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +2035 -140
- package/dist/workerd.mjs +2035 -140
- package/package.json +6 -6
|
@@ -24,8 +24,10 @@ __export(index_exports, {
|
|
|
24
24
|
anthropicConfigs: () => anthropicConfigs,
|
|
25
25
|
claudeAgentSDKConfigs: () => claudeAgentSDKConfigs,
|
|
26
26
|
cohereConfigs: () => cohereConfigs,
|
|
27
|
+
cursorSDKConfigs: () => cursorSDKConfigs,
|
|
27
28
|
googleADKConfigs: () => googleADKConfigs,
|
|
28
29
|
googleGenAIConfigs: () => googleGenAIConfigs,
|
|
30
|
+
groqConfigs: () => groqConfigs,
|
|
29
31
|
huggingFaceConfigs: () => huggingFaceConfigs,
|
|
30
32
|
mistralConfigs: () => mistralConfigs,
|
|
31
33
|
openRouterAgentConfigs: () => openRouterAgentConfigs,
|
|
@@ -921,6 +923,71 @@ var claudeAgentSDKConfigs = [
|
|
|
921
923
|
}
|
|
922
924
|
];
|
|
923
925
|
|
|
926
|
+
// src/instrumentation/plugins/cursor-sdk-channels.ts
|
|
927
|
+
var cursorSDKChannels = defineChannels("@cursor/sdk", {
|
|
928
|
+
create: channel({
|
|
929
|
+
channelName: "Agent.create",
|
|
930
|
+
kind: "async"
|
|
931
|
+
}),
|
|
932
|
+
resume: channel({
|
|
933
|
+
channelName: "Agent.resume",
|
|
934
|
+
kind: "async"
|
|
935
|
+
}),
|
|
936
|
+
prompt: channel({
|
|
937
|
+
channelName: "Agent.prompt",
|
|
938
|
+
kind: "async"
|
|
939
|
+
}),
|
|
940
|
+
send: channel({
|
|
941
|
+
channelName: "agent.send",
|
|
942
|
+
kind: "async"
|
|
943
|
+
})
|
|
944
|
+
});
|
|
945
|
+
|
|
946
|
+
// src/auto-instrumentations/configs/cursor-sdk.ts
|
|
947
|
+
var cursorSDKVersionRange = ">=1.0.7 <2.0.0";
|
|
948
|
+
var cursorSDKEntrypoints = ["dist/esm/index.js", "dist/cjs/index.js"];
|
|
949
|
+
var cursorSDKConfigs = cursorSDKEntrypoints.flatMap((filePath) => [
|
|
950
|
+
{
|
|
951
|
+
channelName: cursorSDKChannels.create.channelName,
|
|
952
|
+
module: {
|
|
953
|
+
name: "@cursor/sdk",
|
|
954
|
+
versionRange: cursorSDKVersionRange,
|
|
955
|
+
filePath
|
|
956
|
+
},
|
|
957
|
+
functionQuery: {
|
|
958
|
+
className: "Agent",
|
|
959
|
+
methodName: "create",
|
|
960
|
+
kind: "Async"
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
channelName: cursorSDKChannels.resume.channelName,
|
|
965
|
+
module: {
|
|
966
|
+
name: "@cursor/sdk",
|
|
967
|
+
versionRange: cursorSDKVersionRange,
|
|
968
|
+
filePath
|
|
969
|
+
},
|
|
970
|
+
functionQuery: {
|
|
971
|
+
className: "Agent",
|
|
972
|
+
methodName: "resume",
|
|
973
|
+
kind: "Async"
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
channelName: cursorSDKChannels.prompt.channelName,
|
|
978
|
+
module: {
|
|
979
|
+
name: "@cursor/sdk",
|
|
980
|
+
versionRange: cursorSDKVersionRange,
|
|
981
|
+
filePath
|
|
982
|
+
},
|
|
983
|
+
functionQuery: {
|
|
984
|
+
className: "Agent",
|
|
985
|
+
methodName: "prompt",
|
|
986
|
+
kind: "Async"
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
]);
|
|
990
|
+
|
|
924
991
|
// src/instrumentation/plugins/google-genai-channels.ts
|
|
925
992
|
var googleGenAIChannels = defineChannels("@google/genai", {
|
|
926
993
|
generateContent: channel({
|
|
@@ -1639,7 +1706,8 @@ var googleADKChannels = defineChannels("@google/adk", {
|
|
|
1639
1706
|
|
|
1640
1707
|
// src/auto-instrumentations/configs/google-adk.ts
|
|
1641
1708
|
var googleADKVersionRange = ">=0.1.0";
|
|
1642
|
-
var
|
|
1709
|
+
var googleADKBundledIndexV06VersionRange = ">=0.6.1 <0.7.0";
|
|
1710
|
+
var googleADKBundledIndexV1VersionRange = ">=1.0.0 <2.0.0";
|
|
1643
1711
|
var googleADKConfigs = [
|
|
1644
1712
|
// --- Runner.runAsync --- async generator, kind "Sync" + sync-stream channel
|
|
1645
1713
|
// Runner.runAsync — ESM individual module file
|
|
@@ -1665,7 +1733,7 @@ var googleADKConfigs = [
|
|
|
1665
1733
|
channelName: googleADKChannels.runnerRunAsync.channelName,
|
|
1666
1734
|
module: {
|
|
1667
1735
|
name: "@google/adk",
|
|
1668
|
-
versionRange:
|
|
1736
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
1669
1737
|
filePath: "dist/cjs/index.js"
|
|
1670
1738
|
},
|
|
1671
1739
|
functionQuery: {
|
|
@@ -1678,7 +1746,7 @@ var googleADKConfigs = [
|
|
|
1678
1746
|
channelName: googleADKChannels.runnerRunAsync.channelName,
|
|
1679
1747
|
module: {
|
|
1680
1748
|
name: "@google/adk",
|
|
1681
|
-
versionRange:
|
|
1749
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
1682
1750
|
filePath: "dist/esm/index.js"
|
|
1683
1751
|
},
|
|
1684
1752
|
functionQuery: {
|
|
@@ -1687,6 +1755,34 @@ var googleADKConfigs = [
|
|
|
1687
1755
|
index: 11
|
|
1688
1756
|
}
|
|
1689
1757
|
},
|
|
1758
|
+
// The 1.x bundled entrypoints still inline the runtime into index.js, but
|
|
1759
|
+
// the minified method order changed. These indices are verified against 1.0.0.
|
|
1760
|
+
{
|
|
1761
|
+
channelName: googleADKChannels.runnerRunAsync.channelName,
|
|
1762
|
+
module: {
|
|
1763
|
+
name: "@google/adk",
|
|
1764
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
1765
|
+
filePath: "dist/cjs/index.js"
|
|
1766
|
+
},
|
|
1767
|
+
functionQuery: {
|
|
1768
|
+
methodName: "runAsync",
|
|
1769
|
+
kind: "Sync",
|
|
1770
|
+
index: 12
|
|
1771
|
+
}
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
channelName: googleADKChannels.runnerRunAsync.channelName,
|
|
1775
|
+
module: {
|
|
1776
|
+
name: "@google/adk",
|
|
1777
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
1778
|
+
filePath: "dist/esm/index.js"
|
|
1779
|
+
},
|
|
1780
|
+
functionQuery: {
|
|
1781
|
+
methodName: "runAsync",
|
|
1782
|
+
kind: "Sync",
|
|
1783
|
+
index: 12
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1690
1786
|
// --- BaseAgent.runAsync --- async generator, kind "Sync" + sync-stream channel
|
|
1691
1787
|
// BaseAgent.runAsync — ESM individual module file
|
|
1692
1788
|
{
|
|
@@ -1711,7 +1807,35 @@ var googleADKConfigs = [
|
|
|
1711
1807
|
channelName: googleADKChannels.agentRunAsync.channelName,
|
|
1712
1808
|
module: {
|
|
1713
1809
|
name: "@google/adk",
|
|
1714
|
-
versionRange:
|
|
1810
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
1811
|
+
filePath: "dist/cjs/index.js"
|
|
1812
|
+
},
|
|
1813
|
+
functionQuery: {
|
|
1814
|
+
methodName: "runAsync",
|
|
1815
|
+
kind: "Sync",
|
|
1816
|
+
index: 0
|
|
1817
|
+
}
|
|
1818
|
+
},
|
|
1819
|
+
{
|
|
1820
|
+
channelName: googleADKChannels.agentRunAsync.channelName,
|
|
1821
|
+
module: {
|
|
1822
|
+
name: "@google/adk",
|
|
1823
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
1824
|
+
filePath: "dist/esm/index.js"
|
|
1825
|
+
},
|
|
1826
|
+
functionQuery: {
|
|
1827
|
+
methodName: "runAsync",
|
|
1828
|
+
kind: "Sync",
|
|
1829
|
+
index: 0
|
|
1830
|
+
}
|
|
1831
|
+
},
|
|
1832
|
+
// The 1.x bundled entrypoints keep BaseAgent.runAsync as the first bundled
|
|
1833
|
+
// async-generator runAsync method in file order.
|
|
1834
|
+
{
|
|
1835
|
+
channelName: googleADKChannels.agentRunAsync.channelName,
|
|
1836
|
+
module: {
|
|
1837
|
+
name: "@google/adk",
|
|
1838
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
1715
1839
|
filePath: "dist/cjs/index.js"
|
|
1716
1840
|
},
|
|
1717
1841
|
functionQuery: {
|
|
@@ -1724,7 +1848,7 @@ var googleADKConfigs = [
|
|
|
1724
1848
|
channelName: googleADKChannels.agentRunAsync.channelName,
|
|
1725
1849
|
module: {
|
|
1726
1850
|
name: "@google/adk",
|
|
1727
|
-
versionRange:
|
|
1851
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
1728
1852
|
filePath: "dist/esm/index.js"
|
|
1729
1853
|
},
|
|
1730
1854
|
functionQuery: {
|
|
@@ -1757,7 +1881,34 @@ var googleADKConfigs = [
|
|
|
1757
1881
|
channelName: googleADKChannels.toolRunAsync.channelName,
|
|
1758
1882
|
module: {
|
|
1759
1883
|
name: "@google/adk",
|
|
1760
|
-
versionRange:
|
|
1884
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
1885
|
+
filePath: "dist/cjs/index.js"
|
|
1886
|
+
},
|
|
1887
|
+
functionQuery: {
|
|
1888
|
+
methodName: "runAsync",
|
|
1889
|
+
kind: "Async",
|
|
1890
|
+
index: 1
|
|
1891
|
+
}
|
|
1892
|
+
},
|
|
1893
|
+
{
|
|
1894
|
+
channelName: googleADKChannels.toolRunAsync.channelName,
|
|
1895
|
+
module: {
|
|
1896
|
+
name: "@google/adk",
|
|
1897
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
1898
|
+
filePath: "dist/esm/index.js"
|
|
1899
|
+
},
|
|
1900
|
+
functionQuery: {
|
|
1901
|
+
methodName: "runAsync",
|
|
1902
|
+
kind: "Async",
|
|
1903
|
+
index: 1
|
|
1904
|
+
}
|
|
1905
|
+
},
|
|
1906
|
+
// The 1.x bundle moves FunctionTool.runAsync behind one helper method.
|
|
1907
|
+
{
|
|
1908
|
+
channelName: googleADKChannels.toolRunAsync.channelName,
|
|
1909
|
+
module: {
|
|
1910
|
+
name: "@google/adk",
|
|
1911
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
1761
1912
|
filePath: "dist/cjs/index.js"
|
|
1762
1913
|
},
|
|
1763
1914
|
functionQuery: {
|
|
@@ -1770,7 +1921,7 @@ var googleADKConfigs = [
|
|
|
1770
1921
|
channelName: googleADKChannels.toolRunAsync.channelName,
|
|
1771
1922
|
module: {
|
|
1772
1923
|
name: "@google/adk",
|
|
1773
|
-
versionRange:
|
|
1924
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
1774
1925
|
filePath: "dist/esm/index.js"
|
|
1775
1926
|
},
|
|
1776
1927
|
functionQuery: {
|
|
@@ -1816,6 +1967,19 @@ var cohereConfigs = [
|
|
|
1816
1967
|
kind: "Async"
|
|
1817
1968
|
}
|
|
1818
1969
|
},
|
|
1970
|
+
{
|
|
1971
|
+
channelName: cohereChannels.chat.channelName,
|
|
1972
|
+
module: {
|
|
1973
|
+
name: "cohere-ai",
|
|
1974
|
+
versionRange: ">=7.20.0 <8.0.0",
|
|
1975
|
+
filePath: "api/resources/v2/client/Client.js"
|
|
1976
|
+
},
|
|
1977
|
+
functionQuery: {
|
|
1978
|
+
className: "V2Client",
|
|
1979
|
+
methodName: "chat",
|
|
1980
|
+
kind: "Async"
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1819
1983
|
{
|
|
1820
1984
|
channelName: cohereChannels.chat.channelName,
|
|
1821
1985
|
module: {
|
|
@@ -1855,6 +2019,19 @@ var cohereConfigs = [
|
|
|
1855
2019
|
kind: "Async"
|
|
1856
2020
|
}
|
|
1857
2021
|
},
|
|
2022
|
+
{
|
|
2023
|
+
channelName: cohereChannels.chatStream.channelName,
|
|
2024
|
+
module: {
|
|
2025
|
+
name: "cohere-ai",
|
|
2026
|
+
versionRange: ">=7.20.0 <8.0.0",
|
|
2027
|
+
filePath: "api/resources/v2/client/Client.js"
|
|
2028
|
+
},
|
|
2029
|
+
functionQuery: {
|
|
2030
|
+
className: "V2Client",
|
|
2031
|
+
methodName: "chatStream",
|
|
2032
|
+
kind: "Async"
|
|
2033
|
+
}
|
|
2034
|
+
},
|
|
1858
2035
|
{
|
|
1859
2036
|
channelName: cohereChannels.chatStream.channelName,
|
|
1860
2037
|
module: {
|
|
@@ -1894,6 +2071,19 @@ var cohereConfigs = [
|
|
|
1894
2071
|
kind: "Async"
|
|
1895
2072
|
}
|
|
1896
2073
|
},
|
|
2074
|
+
{
|
|
2075
|
+
channelName: cohereChannels.embed.channelName,
|
|
2076
|
+
module: {
|
|
2077
|
+
name: "cohere-ai",
|
|
2078
|
+
versionRange: ">=7.20.0 <8.0.0",
|
|
2079
|
+
filePath: "api/resources/v2/client/Client.js"
|
|
2080
|
+
},
|
|
2081
|
+
functionQuery: {
|
|
2082
|
+
className: "V2Client",
|
|
2083
|
+
methodName: "embed",
|
|
2084
|
+
kind: "Async"
|
|
2085
|
+
}
|
|
2086
|
+
},
|
|
1897
2087
|
{
|
|
1898
2088
|
channelName: cohereChannels.embed.channelName,
|
|
1899
2089
|
module: {
|
|
@@ -1933,6 +2123,19 @@ var cohereConfigs = [
|
|
|
1933
2123
|
kind: "Async"
|
|
1934
2124
|
}
|
|
1935
2125
|
},
|
|
2126
|
+
{
|
|
2127
|
+
channelName: cohereChannels.rerank.channelName,
|
|
2128
|
+
module: {
|
|
2129
|
+
name: "cohere-ai",
|
|
2130
|
+
versionRange: ">=7.20.0 <8.0.0",
|
|
2131
|
+
filePath: "api/resources/v2/client/Client.js"
|
|
2132
|
+
},
|
|
2133
|
+
functionQuery: {
|
|
2134
|
+
className: "V2Client",
|
|
2135
|
+
methodName: "rerank",
|
|
2136
|
+
kind: "Async"
|
|
2137
|
+
}
|
|
2138
|
+
},
|
|
1936
2139
|
{
|
|
1937
2140
|
channelName: cohereChannels.rerank.channelName,
|
|
1938
2141
|
module: {
|
|
@@ -1960,14 +2163,60 @@ var cohereConfigs = [
|
|
|
1960
2163
|
}
|
|
1961
2164
|
}
|
|
1962
2165
|
];
|
|
2166
|
+
|
|
2167
|
+
// src/instrumentation/plugins/groq-channels.ts
|
|
2168
|
+
var groqChannels = defineChannels("groq-sdk", {
|
|
2169
|
+
chatCompletionsCreate: channel({
|
|
2170
|
+
channelName: "chat.completions.create",
|
|
2171
|
+
kind: "async"
|
|
2172
|
+
}),
|
|
2173
|
+
embeddingsCreate: channel(
|
|
2174
|
+
{
|
|
2175
|
+
channelName: "embeddings.create",
|
|
2176
|
+
kind: "async"
|
|
2177
|
+
}
|
|
2178
|
+
)
|
|
2179
|
+
});
|
|
2180
|
+
|
|
2181
|
+
// src/auto-instrumentations/configs/groq.ts
|
|
2182
|
+
var groqConfigs = [
|
|
2183
|
+
{
|
|
2184
|
+
channelName: groqChannels.chatCompletionsCreate.channelName,
|
|
2185
|
+
module: {
|
|
2186
|
+
name: "groq-sdk",
|
|
2187
|
+
versionRange: ">=1.0.0",
|
|
2188
|
+
filePath: "resources/chat/completions.mjs"
|
|
2189
|
+
},
|
|
2190
|
+
functionQuery: {
|
|
2191
|
+
className: "Completions",
|
|
2192
|
+
methodName: "create",
|
|
2193
|
+
kind: "Async"
|
|
2194
|
+
}
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
channelName: groqChannels.embeddingsCreate.channelName,
|
|
2198
|
+
module: {
|
|
2199
|
+
name: "groq-sdk",
|
|
2200
|
+
versionRange: ">=1.0.0",
|
|
2201
|
+
filePath: "resources/embeddings.mjs"
|
|
2202
|
+
},
|
|
2203
|
+
functionQuery: {
|
|
2204
|
+
className: "Embeddings",
|
|
2205
|
+
methodName: "create",
|
|
2206
|
+
kind: "Async"
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
];
|
|
1963
2210
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1964
2211
|
0 && (module.exports = {
|
|
1965
2212
|
aiSDKConfigs,
|
|
1966
2213
|
anthropicConfigs,
|
|
1967
2214
|
claudeAgentSDKConfigs,
|
|
1968
2215
|
cohereConfigs,
|
|
2216
|
+
cursorSDKConfigs,
|
|
1969
2217
|
googleADKConfigs,
|
|
1970
2218
|
googleGenAIConfigs,
|
|
2219
|
+
groqConfigs,
|
|
1971
2220
|
huggingFaceConfigs,
|
|
1972
2221
|
mistralConfigs,
|
|
1973
2222
|
openRouterAgentConfigs,
|
|
@@ -53,6 +53,8 @@ declare const aiSDKConfigs: InstrumentationConfig[];
|
|
|
53
53
|
*/
|
|
54
54
|
declare const claudeAgentSDKConfigs: InstrumentationConfig[];
|
|
55
55
|
|
|
56
|
+
declare const cursorSDKConfigs: InstrumentationConfig[];
|
|
57
|
+
|
|
56
58
|
/**
|
|
57
59
|
* Instrumentation configurations for the Google GenAI SDK.
|
|
58
60
|
*
|
|
@@ -89,4 +91,6 @@ declare const googleADKConfigs: InstrumentationConfig[];
|
|
|
89
91
|
|
|
90
92
|
declare const cohereConfigs: InstrumentationConfig[];
|
|
91
93
|
|
|
92
|
-
|
|
94
|
+
declare const groqConfigs: InstrumentationConfig[];
|
|
95
|
+
|
|
96
|
+
export { aiSDKConfigs, anthropicConfigs, claudeAgentSDKConfigs, cohereConfigs, cursorSDKConfigs, googleADKConfigs, googleGenAIConfigs, groqConfigs, huggingFaceConfigs, mistralConfigs, openRouterAgentConfigs, openRouterConfigs, openaiConfigs };
|
|
@@ -53,6 +53,8 @@ declare const aiSDKConfigs: InstrumentationConfig[];
|
|
|
53
53
|
*/
|
|
54
54
|
declare const claudeAgentSDKConfigs: InstrumentationConfig[];
|
|
55
55
|
|
|
56
|
+
declare const cursorSDKConfigs: InstrumentationConfig[];
|
|
57
|
+
|
|
56
58
|
/**
|
|
57
59
|
* Instrumentation configurations for the Google GenAI SDK.
|
|
58
60
|
*
|
|
@@ -89,4 +91,6 @@ declare const googleADKConfigs: InstrumentationConfig[];
|
|
|
89
91
|
|
|
90
92
|
declare const cohereConfigs: InstrumentationConfig[];
|
|
91
93
|
|
|
92
|
-
|
|
94
|
+
declare const groqConfigs: InstrumentationConfig[];
|
|
95
|
+
|
|
96
|
+
export { aiSDKConfigs, anthropicConfigs, claudeAgentSDKConfigs, cohereConfigs, cursorSDKConfigs, googleADKConfigs, googleGenAIConfigs, groqConfigs, huggingFaceConfigs, mistralConfigs, openRouterAgentConfigs, openRouterConfigs, openaiConfigs };
|
|
@@ -4,14 +4,16 @@ import {
|
|
|
4
4
|
channel,
|
|
5
5
|
claudeAgentSDKConfigs,
|
|
6
6
|
cohereConfigs,
|
|
7
|
+
cursorSDKConfigs,
|
|
7
8
|
defineChannels,
|
|
8
9
|
googleGenAIConfigs,
|
|
10
|
+
groqConfigs,
|
|
9
11
|
huggingFaceConfigs,
|
|
10
12
|
mistralConfigs,
|
|
11
13
|
openRouterAgentConfigs,
|
|
12
14
|
openRouterConfigs,
|
|
13
15
|
openaiConfigs
|
|
14
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GZNXBBPU.mjs";
|
|
15
17
|
|
|
16
18
|
// src/instrumentation/plugins/google-adk-channels.ts
|
|
17
19
|
var googleADKChannels = defineChannels("@google/adk", {
|
|
@@ -31,7 +33,8 @@ var googleADKChannels = defineChannels("@google/adk", {
|
|
|
31
33
|
|
|
32
34
|
// src/auto-instrumentations/configs/google-adk.ts
|
|
33
35
|
var googleADKVersionRange = ">=0.1.0";
|
|
34
|
-
var
|
|
36
|
+
var googleADKBundledIndexV06VersionRange = ">=0.6.1 <0.7.0";
|
|
37
|
+
var googleADKBundledIndexV1VersionRange = ">=1.0.0 <2.0.0";
|
|
35
38
|
var googleADKConfigs = [
|
|
36
39
|
// --- Runner.runAsync --- async generator, kind "Sync" + sync-stream channel
|
|
37
40
|
// Runner.runAsync — ESM individual module file
|
|
@@ -57,7 +60,7 @@ var googleADKConfigs = [
|
|
|
57
60
|
channelName: googleADKChannels.runnerRunAsync.channelName,
|
|
58
61
|
module: {
|
|
59
62
|
name: "@google/adk",
|
|
60
|
-
versionRange:
|
|
63
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
61
64
|
filePath: "dist/cjs/index.js"
|
|
62
65
|
},
|
|
63
66
|
functionQuery: {
|
|
@@ -70,7 +73,7 @@ var googleADKConfigs = [
|
|
|
70
73
|
channelName: googleADKChannels.runnerRunAsync.channelName,
|
|
71
74
|
module: {
|
|
72
75
|
name: "@google/adk",
|
|
73
|
-
versionRange:
|
|
76
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
74
77
|
filePath: "dist/esm/index.js"
|
|
75
78
|
},
|
|
76
79
|
functionQuery: {
|
|
@@ -79,6 +82,34 @@ var googleADKConfigs = [
|
|
|
79
82
|
index: 11
|
|
80
83
|
}
|
|
81
84
|
},
|
|
85
|
+
// The 1.x bundled entrypoints still inline the runtime into index.js, but
|
|
86
|
+
// the minified method order changed. These indices are verified against 1.0.0.
|
|
87
|
+
{
|
|
88
|
+
channelName: googleADKChannels.runnerRunAsync.channelName,
|
|
89
|
+
module: {
|
|
90
|
+
name: "@google/adk",
|
|
91
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
92
|
+
filePath: "dist/cjs/index.js"
|
|
93
|
+
},
|
|
94
|
+
functionQuery: {
|
|
95
|
+
methodName: "runAsync",
|
|
96
|
+
kind: "Sync",
|
|
97
|
+
index: 12
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
channelName: googleADKChannels.runnerRunAsync.channelName,
|
|
102
|
+
module: {
|
|
103
|
+
name: "@google/adk",
|
|
104
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
105
|
+
filePath: "dist/esm/index.js"
|
|
106
|
+
},
|
|
107
|
+
functionQuery: {
|
|
108
|
+
methodName: "runAsync",
|
|
109
|
+
kind: "Sync",
|
|
110
|
+
index: 12
|
|
111
|
+
}
|
|
112
|
+
},
|
|
82
113
|
// --- BaseAgent.runAsync --- async generator, kind "Sync" + sync-stream channel
|
|
83
114
|
// BaseAgent.runAsync — ESM individual module file
|
|
84
115
|
{
|
|
@@ -103,7 +134,35 @@ var googleADKConfigs = [
|
|
|
103
134
|
channelName: googleADKChannels.agentRunAsync.channelName,
|
|
104
135
|
module: {
|
|
105
136
|
name: "@google/adk",
|
|
106
|
-
versionRange:
|
|
137
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
138
|
+
filePath: "dist/cjs/index.js"
|
|
139
|
+
},
|
|
140
|
+
functionQuery: {
|
|
141
|
+
methodName: "runAsync",
|
|
142
|
+
kind: "Sync",
|
|
143
|
+
index: 0
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
channelName: googleADKChannels.agentRunAsync.channelName,
|
|
148
|
+
module: {
|
|
149
|
+
name: "@google/adk",
|
|
150
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
151
|
+
filePath: "dist/esm/index.js"
|
|
152
|
+
},
|
|
153
|
+
functionQuery: {
|
|
154
|
+
methodName: "runAsync",
|
|
155
|
+
kind: "Sync",
|
|
156
|
+
index: 0
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
// The 1.x bundled entrypoints keep BaseAgent.runAsync as the first bundled
|
|
160
|
+
// async-generator runAsync method in file order.
|
|
161
|
+
{
|
|
162
|
+
channelName: googleADKChannels.agentRunAsync.channelName,
|
|
163
|
+
module: {
|
|
164
|
+
name: "@google/adk",
|
|
165
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
107
166
|
filePath: "dist/cjs/index.js"
|
|
108
167
|
},
|
|
109
168
|
functionQuery: {
|
|
@@ -116,7 +175,7 @@ var googleADKConfigs = [
|
|
|
116
175
|
channelName: googleADKChannels.agentRunAsync.channelName,
|
|
117
176
|
module: {
|
|
118
177
|
name: "@google/adk",
|
|
119
|
-
versionRange:
|
|
178
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
120
179
|
filePath: "dist/esm/index.js"
|
|
121
180
|
},
|
|
122
181
|
functionQuery: {
|
|
@@ -149,7 +208,34 @@ var googleADKConfigs = [
|
|
|
149
208
|
channelName: googleADKChannels.toolRunAsync.channelName,
|
|
150
209
|
module: {
|
|
151
210
|
name: "@google/adk",
|
|
152
|
-
versionRange:
|
|
211
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
212
|
+
filePath: "dist/cjs/index.js"
|
|
213
|
+
},
|
|
214
|
+
functionQuery: {
|
|
215
|
+
methodName: "runAsync",
|
|
216
|
+
kind: "Async",
|
|
217
|
+
index: 1
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
channelName: googleADKChannels.toolRunAsync.channelName,
|
|
222
|
+
module: {
|
|
223
|
+
name: "@google/adk",
|
|
224
|
+
versionRange: googleADKBundledIndexV06VersionRange,
|
|
225
|
+
filePath: "dist/esm/index.js"
|
|
226
|
+
},
|
|
227
|
+
functionQuery: {
|
|
228
|
+
methodName: "runAsync",
|
|
229
|
+
kind: "Async",
|
|
230
|
+
index: 1
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
// The 1.x bundle moves FunctionTool.runAsync behind one helper method.
|
|
234
|
+
{
|
|
235
|
+
channelName: googleADKChannels.toolRunAsync.channelName,
|
|
236
|
+
module: {
|
|
237
|
+
name: "@google/adk",
|
|
238
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
153
239
|
filePath: "dist/cjs/index.js"
|
|
154
240
|
},
|
|
155
241
|
functionQuery: {
|
|
@@ -162,7 +248,7 @@ var googleADKConfigs = [
|
|
|
162
248
|
channelName: googleADKChannels.toolRunAsync.channelName,
|
|
163
249
|
module: {
|
|
164
250
|
name: "@google/adk",
|
|
165
|
-
versionRange:
|
|
251
|
+
versionRange: googleADKBundledIndexV1VersionRange,
|
|
166
252
|
filePath: "dist/esm/index.js"
|
|
167
253
|
},
|
|
168
254
|
functionQuery: {
|
|
@@ -177,8 +263,10 @@ export {
|
|
|
177
263
|
anthropicConfigs,
|
|
178
264
|
claudeAgentSDKConfigs,
|
|
179
265
|
cohereConfigs,
|
|
266
|
+
cursorSDKConfigs,
|
|
180
267
|
googleADKConfigs,
|
|
181
268
|
googleGenAIConfigs,
|
|
269
|
+
groqConfigs,
|
|
182
270
|
huggingFaceConfigs,
|
|
183
271
|
mistralConfigs,
|
|
184
272
|
openRouterAgentConfigs,
|