braintrust 3.28.0 → 3.30.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 +2679 -1828
- package/dev/dist/index.mjs +1862 -1011
- package/dist/apply-auto-instrumentation.js +298 -265
- package/dist/apply-auto-instrumentation.mjs +85 -52
- package/dist/auto-instrumentations/bundler/esbuild.cjs +56 -6
- package/dist/auto-instrumentations/bundler/esbuild.mjs +2 -2
- package/dist/auto-instrumentations/bundler/next.cjs +56 -6
- package/dist/auto-instrumentations/bundler/next.mjs +3 -3
- package/dist/auto-instrumentations/bundler/rollup.cjs +56 -6
- package/dist/auto-instrumentations/bundler/rollup.mjs +2 -2
- package/dist/auto-instrumentations/bundler/vite.cjs +56 -6
- package/dist/auto-instrumentations/bundler/vite.mjs +2 -2
- package/dist/auto-instrumentations/bundler/webpack-loader.cjs +56 -6
- package/dist/auto-instrumentations/bundler/webpack.cjs +56 -6
- package/dist/auto-instrumentations/bundler/webpack.mjs +3 -3
- package/dist/auto-instrumentations/{chunk-26PKVUKB.mjs → chunk-LW4HDHXT.mjs} +12 -4
- package/dist/auto-instrumentations/{chunk-HD35AM3M.mjs → chunk-OXINGIEZ.mjs} +1 -1
- package/dist/auto-instrumentations/{chunk-NP7V4XB2.mjs → chunk-U64OYU4Q.mjs} +45 -3
- package/dist/auto-instrumentations/hook.mjs +967 -136
- package/dist/auto-instrumentations/index.cjs +45 -3
- package/dist/auto-instrumentations/index.mjs +1 -1
- package/dist/browser.d.mts +893 -24
- package/dist/browser.d.ts +893 -24
- package/dist/browser.js +2795 -1136
- package/dist/browser.mjs +2795 -1136
- package/dist/{chunk-BBE7SNRV.js → chunk-2XDW3UCG.js} +155 -23
- package/dist/{chunk-UPFNQCGB.mjs → chunk-BU6SM54N.mjs} +1830 -1045
- package/dist/{chunk-ZHUHZWFY.mjs → chunk-N3JKQ3D3.mjs} +152 -20
- package/dist/{chunk-OBBWQW6K.js → chunk-TWCDSYJN.js} +2890 -2105
- package/dist/cli.js +5976 -1348
- package/dist/edge-light.d.mts +1 -1
- package/dist/edge-light.d.ts +1 -1
- package/dist/edge-light.js +2795 -1136
- package/dist/edge-light.mjs +2795 -1136
- package/dist/index.d.mts +893 -24
- package/dist/index.d.ts +893 -24
- package/dist/index.js +1448 -699
- package/dist/index.mjs +848 -99
- package/dist/instrumentation/index.d.mts +563 -9
- package/dist/instrumentation/index.d.ts +563 -9
- package/dist/instrumentation/index.js +2794 -989
- package/dist/instrumentation/index.mjs +2794 -989
- package/dist/vitest-evals-reporter.js +16 -16
- package/dist/vitest-evals-reporter.mjs +2 -2
- package/dist/workerd.d.mts +1 -1
- package/dist/workerd.d.ts +1 -1
- package/dist/workerd.js +2795 -1136
- package/dist/workerd.mjs +2795 -1136
- package/package.json +1 -1
- package/util/dist/index.d.mts +42 -0
- package/util/dist/index.d.ts +42 -0
package/package.json
CHANGED
package/util/dist/index.d.mts
CHANGED
|
@@ -1735,6 +1735,15 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1735
1735
|
type: "global";
|
|
1736
1736
|
name: string;
|
|
1737
1737
|
function_type?: "preprocessor" | undefined;
|
|
1738
|
+
}>, z.ZodObject<{
|
|
1739
|
+
type: z.ZodLiteral<"inline">;
|
|
1740
|
+
code: z.ZodString;
|
|
1741
|
+
}, "strip", z.ZodTypeAny, {
|
|
1742
|
+
code: string;
|
|
1743
|
+
type: "inline";
|
|
1744
|
+
}, {
|
|
1745
|
+
code: string;
|
|
1746
|
+
type: "inline";
|
|
1738
1747
|
}>, z.ZodNull]>>;
|
|
1739
1748
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1740
1749
|
type: z.ZodLiteral<"function">;
|
|
@@ -2045,6 +2054,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2045
2054
|
type: "global";
|
|
2046
2055
|
name: string;
|
|
2047
2056
|
function_type: "preprocessor";
|
|
2057
|
+
} | {
|
|
2058
|
+
code: string;
|
|
2059
|
+
type: "inline";
|
|
2048
2060
|
} | null | undefined;
|
|
2049
2061
|
origin?: {
|
|
2050
2062
|
project_id?: string | undefined;
|
|
@@ -2319,6 +2331,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2319
2331
|
type: "global";
|
|
2320
2332
|
name: string;
|
|
2321
2333
|
function_type?: "preprocessor" | undefined;
|
|
2334
|
+
} | {
|
|
2335
|
+
code: string;
|
|
2336
|
+
type: "inline";
|
|
2322
2337
|
} | null | undefined;
|
|
2323
2338
|
origin?: {
|
|
2324
2339
|
project_id?: string | undefined;
|
|
@@ -2603,6 +2618,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2603
2618
|
type: "global";
|
|
2604
2619
|
name: string;
|
|
2605
2620
|
function_type: "preprocessor";
|
|
2621
|
+
} | {
|
|
2622
|
+
code: string;
|
|
2623
|
+
type: "inline";
|
|
2606
2624
|
} | null | undefined;
|
|
2607
2625
|
origin?: {
|
|
2608
2626
|
project_id?: string | undefined;
|
|
@@ -2884,6 +2902,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2884
2902
|
type: "global";
|
|
2885
2903
|
name: string;
|
|
2886
2904
|
function_type?: "preprocessor" | undefined;
|
|
2905
|
+
} | {
|
|
2906
|
+
code: string;
|
|
2907
|
+
type: "inline";
|
|
2887
2908
|
} | null | undefined;
|
|
2888
2909
|
origin?: {
|
|
2889
2910
|
project_id?: string | undefined;
|
|
@@ -4286,6 +4307,15 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4286
4307
|
type: "global";
|
|
4287
4308
|
name: string;
|
|
4288
4309
|
function_type?: "preprocessor" | undefined;
|
|
4310
|
+
}>, z.ZodObject<{
|
|
4311
|
+
type: z.ZodLiteral<"inline">;
|
|
4312
|
+
code: z.ZodString;
|
|
4313
|
+
}, "strip", z.ZodTypeAny, {
|
|
4314
|
+
code: string;
|
|
4315
|
+
type: "inline";
|
|
4316
|
+
}, {
|
|
4317
|
+
code: string;
|
|
4318
|
+
type: "inline";
|
|
4289
4319
|
}>, z.ZodNull]>>;
|
|
4290
4320
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
4291
4321
|
type: z.ZodLiteral<"function">;
|
|
@@ -4596,6 +4626,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4596
4626
|
type: "global";
|
|
4597
4627
|
name: string;
|
|
4598
4628
|
function_type: "preprocessor";
|
|
4629
|
+
} | {
|
|
4630
|
+
code: string;
|
|
4631
|
+
type: "inline";
|
|
4599
4632
|
} | null | undefined;
|
|
4600
4633
|
origin?: {
|
|
4601
4634
|
project_id?: string | undefined;
|
|
@@ -4870,6 +4903,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4870
4903
|
type: "global";
|
|
4871
4904
|
name: string;
|
|
4872
4905
|
function_type?: "preprocessor" | undefined;
|
|
4906
|
+
} | {
|
|
4907
|
+
code: string;
|
|
4908
|
+
type: "inline";
|
|
4873
4909
|
} | null | undefined;
|
|
4874
4910
|
origin?: {
|
|
4875
4911
|
project_id?: string | undefined;
|
|
@@ -5149,6 +5185,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
5149
5185
|
type: "global";
|
|
5150
5186
|
name: string;
|
|
5151
5187
|
function_type: "preprocessor";
|
|
5188
|
+
} | {
|
|
5189
|
+
code: string;
|
|
5190
|
+
type: "inline";
|
|
5152
5191
|
} | null | undefined;
|
|
5153
5192
|
origin?: {
|
|
5154
5193
|
project_id?: string | undefined;
|
|
@@ -5426,6 +5465,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
5426
5465
|
type: "global";
|
|
5427
5466
|
name: string;
|
|
5428
5467
|
function_type?: "preprocessor" | undefined;
|
|
5468
|
+
} | {
|
|
5469
|
+
code: string;
|
|
5470
|
+
type: "inline";
|
|
5429
5471
|
} | null | undefined;
|
|
5430
5472
|
origin?: {
|
|
5431
5473
|
project_id?: string | undefined;
|
package/util/dist/index.d.ts
CHANGED
|
@@ -1735,6 +1735,15 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
1735
1735
|
type: "global";
|
|
1736
1736
|
name: string;
|
|
1737
1737
|
function_type?: "preprocessor" | undefined;
|
|
1738
|
+
}>, z.ZodObject<{
|
|
1739
|
+
type: z.ZodLiteral<"inline">;
|
|
1740
|
+
code: z.ZodString;
|
|
1741
|
+
}, "strip", z.ZodTypeAny, {
|
|
1742
|
+
code: string;
|
|
1743
|
+
type: "inline";
|
|
1744
|
+
}, {
|
|
1745
|
+
code: string;
|
|
1746
|
+
type: "inline";
|
|
1738
1747
|
}>, z.ZodNull]>>;
|
|
1739
1748
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1740
1749
|
type: z.ZodLiteral<"function">;
|
|
@@ -2045,6 +2054,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2045
2054
|
type: "global";
|
|
2046
2055
|
name: string;
|
|
2047
2056
|
function_type: "preprocessor";
|
|
2057
|
+
} | {
|
|
2058
|
+
code: string;
|
|
2059
|
+
type: "inline";
|
|
2048
2060
|
} | null | undefined;
|
|
2049
2061
|
origin?: {
|
|
2050
2062
|
project_id?: string | undefined;
|
|
@@ -2319,6 +2331,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2319
2331
|
type: "global";
|
|
2320
2332
|
name: string;
|
|
2321
2333
|
function_type?: "preprocessor" | undefined;
|
|
2334
|
+
} | {
|
|
2335
|
+
code: string;
|
|
2336
|
+
type: "inline";
|
|
2322
2337
|
} | null | undefined;
|
|
2323
2338
|
origin?: {
|
|
2324
2339
|
project_id?: string | undefined;
|
|
@@ -2603,6 +2618,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2603
2618
|
type: "global";
|
|
2604
2619
|
name: string;
|
|
2605
2620
|
function_type: "preprocessor";
|
|
2621
|
+
} | {
|
|
2622
|
+
code: string;
|
|
2623
|
+
type: "inline";
|
|
2606
2624
|
} | null | undefined;
|
|
2607
2625
|
origin?: {
|
|
2608
2626
|
project_id?: string | undefined;
|
|
@@ -2884,6 +2902,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
2884
2902
|
type: "global";
|
|
2885
2903
|
name: string;
|
|
2886
2904
|
function_type?: "preprocessor" | undefined;
|
|
2905
|
+
} | {
|
|
2906
|
+
code: string;
|
|
2907
|
+
type: "inline";
|
|
2887
2908
|
} | null | undefined;
|
|
2888
2909
|
origin?: {
|
|
2889
2910
|
project_id?: string | undefined;
|
|
@@ -4286,6 +4307,15 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4286
4307
|
type: "global";
|
|
4287
4308
|
name: string;
|
|
4288
4309
|
function_type?: "preprocessor" | undefined;
|
|
4310
|
+
}>, z.ZodObject<{
|
|
4311
|
+
type: z.ZodLiteral<"inline">;
|
|
4312
|
+
code: z.ZodString;
|
|
4313
|
+
}, "strip", z.ZodTypeAny, {
|
|
4314
|
+
code: string;
|
|
4315
|
+
type: "inline";
|
|
4316
|
+
}, {
|
|
4317
|
+
code: string;
|
|
4318
|
+
type: "inline";
|
|
4289
4319
|
}>, z.ZodNull]>>;
|
|
4290
4320
|
tool_functions: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
4291
4321
|
type: z.ZodLiteral<"function">;
|
|
@@ -4596,6 +4626,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4596
4626
|
type: "global";
|
|
4597
4627
|
name: string;
|
|
4598
4628
|
function_type: "preprocessor";
|
|
4629
|
+
} | {
|
|
4630
|
+
code: string;
|
|
4631
|
+
type: "inline";
|
|
4599
4632
|
} | null | undefined;
|
|
4600
4633
|
origin?: {
|
|
4601
4634
|
project_id?: string | undefined;
|
|
@@ -4870,6 +4903,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
4870
4903
|
type: "global";
|
|
4871
4904
|
name: string;
|
|
4872
4905
|
function_type?: "preprocessor" | undefined;
|
|
4906
|
+
} | {
|
|
4907
|
+
code: string;
|
|
4908
|
+
type: "inline";
|
|
4873
4909
|
} | null | undefined;
|
|
4874
4910
|
origin?: {
|
|
4875
4911
|
project_id?: string | undefined;
|
|
@@ -5149,6 +5185,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
5149
5185
|
type: "global";
|
|
5150
5186
|
name: string;
|
|
5151
5187
|
function_type: "preprocessor";
|
|
5188
|
+
} | {
|
|
5189
|
+
code: string;
|
|
5190
|
+
type: "inline";
|
|
5152
5191
|
} | null | undefined;
|
|
5153
5192
|
origin?: {
|
|
5154
5193
|
project_id?: string | undefined;
|
|
@@ -5426,6 +5465,9 @@ declare const InvokeFunction: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
|
|
|
5426
5465
|
type: "global";
|
|
5427
5466
|
name: string;
|
|
5428
5467
|
function_type?: "preprocessor" | undefined;
|
|
5468
|
+
} | {
|
|
5469
|
+
code: string;
|
|
5470
|
+
type: "inline";
|
|
5429
5471
|
} | null | undefined;
|
|
5430
5472
|
origin?: {
|
|
5431
5473
|
project_id?: string | undefined;
|