braintrust 3.23.1 → 3.25.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 +11 -0
- package/dev/dist/index.d.ts +11 -0
- package/dev/dist/index.js +2881 -1518
- package/dev/dist/index.mjs +2298 -935
- package/dist/apply-auto-instrumentation.js +218 -195
- package/dist/apply-auto-instrumentation.mjs +30 -7
- package/dist/auto-instrumentations/bundler/esbuild.cjs +618 -444
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/next.cjs +618 -444
- package/dist/auto-instrumentations/bundler/next.mjs +3 -3
- package/dist/auto-instrumentations/bundler/rollup.cjs +618 -444
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +618 -444
- package/dist/auto-instrumentations/bundler/vite.d.mts +1 -1
- package/dist/auto-instrumentations/bundler/vite.d.ts +1 -1
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +618 -444
- package/dist/auto-instrumentations/bundler/webpack.cjs +618 -444
- package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
- package/dist/auto-instrumentations/{chunk-KIMLYPRW.mjs → chunk-7P6563SW.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-YXLNSAMJ.mjs → chunk-CZ24KNHT.mjs} +591 -424
- package/dist/auto-instrumentations/{chunk-EXY7QCJD.mjs → chunk-JPVCUKTY.mjs} +30 -21
- package/dist/auto-instrumentations/hook.mjs +778 -457
- package/dist/auto-instrumentations/index.cjs +590 -424
- package/dist/auto-instrumentations/index.mjs +1 -1
- package/dist/browser.d.mts +138 -9
- package/dist/browser.d.ts +138 -9
- package/dist/browser.js +2700 -1011
- package/dist/browser.mjs +2700 -1011
- package/dist/{chunk-RBXD2KYN.mjs → chunk-2SANLSWX.mjs} +1577 -513
- package/dist/{chunk-36IPYKMG.mjs → chunk-ABR2QWDP.mjs} +704 -438
- package/dist/{chunk-B6ZQIAK3.js → chunk-GSIDVFE6.js} +2361 -1297
- package/dist/{chunk-CDIKAHDZ.js → chunk-P25IOOU4.js} +706 -440
- package/dist/cli.js +2307 -940
- package/dist/edge-light.js +2700 -1011
- package/dist/edge-light.mjs +2700 -1011
- package/dist/index.d.mts +138 -9
- package/dist/index.d.ts +138 -9
- package/dist/index.js +955 -551
- package/dist/index.mjs +493 -89
- package/dist/instrumentation/index.d.mts +135 -9
- package/dist/instrumentation/index.d.ts +135 -9
- package/dist/instrumentation/index.js +2554 -1009
- package/dist/instrumentation/index.mjs +2554 -1009
- package/dist/vitest-evals-reporter.js +17 -16
- package/dist/vitest-evals-reporter.mjs +3 -2
- package/dist/workerd.js +2700 -1011
- package/dist/workerd.mjs +2700 -1011
- package/package.json +4 -4
- package/util/dist/index.js +4 -0
- package/util/dist/index.mjs +4 -0
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
googleADKChannels,
|
|
13
13
|
googleGenAIChannels,
|
|
14
14
|
groqChannels,
|
|
15
|
+
harnessAgentChannels,
|
|
15
16
|
huggingFaceChannels,
|
|
16
17
|
isInstrumentationIntegrationDisabled,
|
|
17
18
|
langChainChannels,
|
|
@@ -29,7 +30,7 @@ import {
|
|
|
29
30
|
smithyClientChannels,
|
|
30
31
|
smithyCoreChannels,
|
|
31
32
|
strandsAgentSDKChannels
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ABR2QWDP.mjs";
|
|
33
34
|
|
|
34
35
|
// src/node/apply-auto-instrumentation-entry.ts
|
|
35
36
|
import * as diagnostics_channel from "node:diagnostics_channel";
|
|
@@ -38,6 +39,28 @@ import { pathToFileURL } from "node:url";
|
|
|
38
39
|
|
|
39
40
|
// src/auto-instrumentations/configs/ai-sdk.ts
|
|
40
41
|
var aiSDKConfigs = [
|
|
42
|
+
// HarnessAgent turn methods are published only from the package's ESM
|
|
43
|
+
// `./agent` entrypoint. The compiled class expression is anonymous, so match
|
|
44
|
+
// the first async method with each public name instead of a class name.
|
|
45
|
+
...[
|
|
46
|
+
["createSession", harnessAgentChannels.createSession.channelName],
|
|
47
|
+
["generate", harnessAgentChannels.generate.channelName],
|
|
48
|
+
["stream", harnessAgentChannels.stream.channelName],
|
|
49
|
+
["continueGenerate", harnessAgentChannels.continueGenerate.channelName],
|
|
50
|
+
["continueStream", harnessAgentChannels.continueStream.channelName]
|
|
51
|
+
].map(([methodName, channelName]) => ({
|
|
52
|
+
channelName,
|
|
53
|
+
module: {
|
|
54
|
+
name: "@ai-sdk/harness",
|
|
55
|
+
versionRange: ">=1.0.0 <2.0.0",
|
|
56
|
+
filePath: "dist/agent/index.js"
|
|
57
|
+
},
|
|
58
|
+
functionQuery: {
|
|
59
|
+
methodName,
|
|
60
|
+
kind: "Async",
|
|
61
|
+
index: 0
|
|
62
|
+
}
|
|
63
|
+
})),
|
|
41
64
|
// generateText - async function
|
|
42
65
|
{
|
|
43
66
|
channelName: aiSDKChannels.generateText.channelName,
|
|
@@ -2360,7 +2383,7 @@ var openRouterConfigs = [
|
|
|
2360
2383
|
channelName: openRouterChannels.chatSend.channelName,
|
|
2361
2384
|
module: {
|
|
2362
2385
|
name: "@openrouter/sdk",
|
|
2363
|
-
versionRange: ">=0.9.11 <
|
|
2386
|
+
versionRange: ">=0.9.11 <2.0.0",
|
|
2364
2387
|
filePath: "esm/sdk/chat.js"
|
|
2365
2388
|
},
|
|
2366
2389
|
functionQuery: {
|
|
@@ -2373,7 +2396,7 @@ var openRouterConfigs = [
|
|
|
2373
2396
|
channelName: openRouterChannels.embeddingsGenerate.channelName,
|
|
2374
2397
|
module: {
|
|
2375
2398
|
name: "@openrouter/sdk",
|
|
2376
|
-
versionRange: ">=0.9.11 <
|
|
2399
|
+
versionRange: ">=0.9.11 <2.0.0",
|
|
2377
2400
|
filePath: "esm/sdk/embeddings.js"
|
|
2378
2401
|
},
|
|
2379
2402
|
functionQuery: {
|
|
@@ -2386,7 +2409,7 @@ var openRouterConfigs = [
|
|
|
2386
2409
|
channelName: openRouterChannels.rerankRerank.channelName,
|
|
2387
2410
|
module: {
|
|
2388
2411
|
name: "@openrouter/sdk",
|
|
2389
|
-
versionRange: ">=0.12.0 <
|
|
2412
|
+
versionRange: ">=0.12.0 <2.0.0",
|
|
2390
2413
|
filePath: "esm/sdk/rerank.js"
|
|
2391
2414
|
},
|
|
2392
2415
|
functionQuery: {
|
|
@@ -2399,7 +2422,7 @@ var openRouterConfigs = [
|
|
|
2399
2422
|
channelName: openRouterChannels.betaResponsesSend.channelName,
|
|
2400
2423
|
module: {
|
|
2401
2424
|
name: "@openrouter/sdk",
|
|
2402
|
-
versionRange: ">=0.9.11 <
|
|
2425
|
+
versionRange: ">=0.9.11 <2.0.0",
|
|
2403
2426
|
filePath: "esm/sdk/responses.js"
|
|
2404
2427
|
},
|
|
2405
2428
|
functionQuery: {
|
|
@@ -2412,7 +2435,7 @@ var openRouterConfigs = [
|
|
|
2412
2435
|
channelName: openRouterChannels.callModel.channelName,
|
|
2413
2436
|
module: {
|
|
2414
2437
|
name: "@openrouter/sdk",
|
|
2415
|
-
versionRange: ">=0.9.11 <
|
|
2438
|
+
versionRange: ">=0.9.11 <2.0.0",
|
|
2416
2439
|
filePath: "esm/sdk/sdk.js"
|
|
2417
2440
|
},
|
|
2418
2441
|
functionQuery: {
|
|
@@ -2440,7 +2463,7 @@ var openRouterAgentConfigs = [
|
|
|
2440
2463
|
];
|
|
2441
2464
|
|
|
2442
2465
|
// src/auto-instrumentations/configs/pi-coding-agent.ts
|
|
2443
|
-
var piCodingAgentVersionRange = ">=0.79.0 <0.
|
|
2466
|
+
var piCodingAgentVersionRange = ">=0.79.0 <0.82.0";
|
|
2444
2467
|
var piCodingAgentConfigs = [
|
|
2445
2468
|
{
|
|
2446
2469
|
channelName: piCodingAgentChannels.prompt.channelName,
|