braintrust 3.28.0 → 3.29.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 +1 -1
- package/dev/dist/index.d.mts +356 -7
- package/dev/dist/index.d.ts +356 -7
- package/dev/dist/index.js +1815 -1548
- package/dev/dist/index.mjs +1054 -787
- package/dist/apply-auto-instrumentation.js +297 -264
- package/dist/apply-auto-instrumentation.mjs +84 -51
- package/dist/auto-instrumentations/bundler/esbuild.cjs +43 -5
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/next.cjs +43 -5
- package/dist/auto-instrumentations/bundler/next.mjs +3 -3
- package/dist/auto-instrumentations/bundler/rollup.cjs +43 -5
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +43 -5
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +43 -5
- package/dist/auto-instrumentations/bundler/webpack.cjs +43 -5
- package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
- package/dist/auto-instrumentations/{chunk-NP7V4XB2.mjs → chunk-AOIYCVEL.mjs} +32 -2
- package/dist/auto-instrumentations/{chunk-26PKVUKB.mjs → chunk-DKTGDNA7.mjs} +12 -4
- package/dist/auto-instrumentations/{chunk-HD35AM3M.mjs → chunk-OMCZ3MV2.mjs} +1 -1
- package/dist/auto-instrumentations/hook.mjs +952 -133
- package/dist/auto-instrumentations/index.cjs +32 -2
- package/dist/auto-instrumentations/index.mjs +1 -1
- package/dist/browser.d.mts +760 -22
- package/dist/browser.d.ts +760 -22
- package/dist/browser.js +1661 -848
- package/dist/browser.mjs +1661 -848
- package/dist/{chunk-BBE7SNRV.js → chunk-6Z5S7VOU.js} +143 -23
- package/dist/{chunk-ZHUHZWFY.mjs → chunk-7FA6VP2S.mjs} +140 -20
- package/dist/{chunk-UPFNQCGB.mjs → chunk-M6XPNJC4.mjs} +1144 -931
- package/dist/{chunk-OBBWQW6K.js → chunk-XLLGRXGR.js} +2335 -2122
- package/dist/cli.js +5134 -1090
- package/dist/edge-light.js +1661 -848
- package/dist/edge-light.mjs +1661 -848
- package/dist/index.d.mts +760 -22
- package/dist/index.d.ts +760 -22
- package/dist/index.js +1054 -567
- package/dist/index.mjs +514 -27
- package/dist/instrumentation/index.d.mts +548 -9
- package/dist/instrumentation/index.d.ts +548 -9
- package/dist/instrumentation/index.js +1975 -765
- package/dist/instrumentation/index.mjs +1975 -765
- package/dist/vitest-evals-reporter.js +16 -16
- package/dist/vitest-evals-reporter.mjs +2 -2
- package/dist/workerd.js +1661 -848
- package/dist/workerd.mjs +1661 -848
- package/package.json +1 -1
- package/util/dist/index.d.mts +42 -0
- package/util/dist/index.d.ts +42 -0
|
@@ -694,8 +694,6 @@ function newGlobalTracingChannel(nameOrChannels) {
|
|
|
694
694
|
var DefaultAsyncLocalStorage = class {
|
|
695
695
|
constructor() {
|
|
696
696
|
}
|
|
697
|
-
enterWith(_) {
|
|
698
|
-
}
|
|
699
697
|
run(_, callback) {
|
|
700
698
|
return callback();
|
|
701
699
|
}
|
|
@@ -803,6 +801,7 @@ var INSTRUMENTATION_NAMES = {
|
|
|
803
801
|
CLOUDFLARE_THINK: "cloudflare-think",
|
|
804
802
|
COHERE: "cohere",
|
|
805
803
|
CURSOR_SDK: "cursor-sdk",
|
|
804
|
+
DEEPSEEK_HARNESS: "deepseek-harness",
|
|
806
805
|
EVE: "eve",
|
|
807
806
|
FLUE: "flue",
|
|
808
807
|
GENKIT: "genkit",
|
|
@@ -1364,6 +1363,10 @@ var aiSDKChannels = defineChannels(
|
|
|
1364
1363
|
channelName: "generateText",
|
|
1365
1364
|
kind: "async"
|
|
1366
1365
|
}),
|
|
1366
|
+
generateImage: channel({
|
|
1367
|
+
channelName: "generateImage",
|
|
1368
|
+
kind: "async"
|
|
1369
|
+
}),
|
|
1367
1370
|
streamText: channel({
|
|
1368
1371
|
channelName: "streamText",
|
|
1369
1372
|
kind: "async"
|
|
@@ -1503,6 +1506,33 @@ var aiSDKConfigs = [
|
|
|
1503
1506
|
kind: "Async"
|
|
1504
1507
|
}
|
|
1505
1508
|
},
|
|
1509
|
+
// generateImage - stable in v6+, experimental alias in v5
|
|
1510
|
+
...[
|
|
1511
|
+
{
|
|
1512
|
+
functionName: "generateImage",
|
|
1513
|
+
versionRange: ">=6.0.0 <8.0.0",
|
|
1514
|
+
isExportAlias: false
|
|
1515
|
+
},
|
|
1516
|
+
{
|
|
1517
|
+
functionName: "experimental_generateImage",
|
|
1518
|
+
versionRange: ">=5.0.0 <6.0.0",
|
|
1519
|
+
isExportAlias: true
|
|
1520
|
+
}
|
|
1521
|
+
].flatMap(
|
|
1522
|
+
({ functionName, versionRange: versionRange2, isExportAlias }) => ["dist/index.mjs", "dist/index.js"].map((filePath) => ({
|
|
1523
|
+
channelName: aiSDKChannels.generateImage.channelName,
|
|
1524
|
+
module: {
|
|
1525
|
+
name: "ai",
|
|
1526
|
+
versionRange: versionRange2,
|
|
1527
|
+
filePath
|
|
1528
|
+
},
|
|
1529
|
+
functionQuery: {
|
|
1530
|
+
functionName,
|
|
1531
|
+
kind: "Async",
|
|
1532
|
+
...isExportAlias ? { isExportAlias } : {}
|
|
1533
|
+
}
|
|
1534
|
+
}))
|
|
1535
|
+
),
|
|
1506
1536
|
// streamText - async function (v3 only, before the sync refactor in v4)
|
|
1507
1537
|
{
|
|
1508
1538
|
channelName: aiSDKChannels.streamText.channelName,
|