braintrust 0.4.3 → 0.4.4-alpha.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 +16 -15
- package/dev/dist/index.d.ts +16 -15
- package/dev/dist/index.js +181 -182
- package/dev/dist/index.mjs +158 -159
- package/dist/browser.d.mts +24 -23
- package/dist/browser.d.ts +24 -23
- package/dist/browser.js +180 -180
- package/dist/browser.mjs +157 -157
- package/dist/cli.js +339 -320
- package/dist/index.d.mts +24 -23
- package/dist/index.d.ts +24 -23
- package/dist/index.js +5946 -7509
- package/dist/index.mjs +5853 -7416
- package/package.json +1 -1
- package/util/dist/index.d.mts +1 -1
- package/util/dist/index.d.ts +1 -1
- package/dist/chunk-CDBUTZMH.js +0 -1713
- package/dist/chunk-NB5AEJPK.mjs +0 -19
- package/dist/chunk-VKR7HDRS.js +0 -19
- package/dist/chunk-WKBXJQ57.mjs +0 -1713
- package/dist/getMachineId-bsd-7YM2UMB4.js +0 -37
- package/dist/getMachineId-bsd-L7QQYES7.mjs +0 -37
- package/dist/getMachineId-darwin-QV3NVG7H.js +0 -37
- package/dist/getMachineId-darwin-YXDFFCXM.mjs +0 -37
- package/dist/getMachineId-linux-HKJ2YLJC.js +0 -29
- package/dist/getMachineId-linux-LWEEVKPU.mjs +0 -29
- package/dist/getMachineId-unsupported-EGJSIDYQ.mjs +0 -20
- package/dist/getMachineId-unsupported-TX34Q66M.js +0 -20
- package/dist/getMachineId-win-M5YW2KGK.js +0 -39
- package/dist/getMachineId-win-UDA4B6X2.mjs +0 -39
package/dev/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
|
-
import { z as z$1 } from 'zod';
|
|
3
2
|
|
|
4
3
|
declare const TRANSACTION_ID_FIELD = "_xact_id";
|
|
5
4
|
declare const IS_MERGE_FIELD = "_is_merge";
|
|
@@ -7302,6 +7301,8 @@ declare class LazyValue<T> {
|
|
|
7302
7301
|
get hasSucceeded(): boolean;
|
|
7303
7302
|
}
|
|
7304
7303
|
|
|
7304
|
+
/// <reference lib="dom" />
|
|
7305
|
+
|
|
7305
7306
|
interface ContextParentSpanIds {
|
|
7306
7307
|
rootSpanId: string;
|
|
7307
7308
|
spanParents: string[];
|
|
@@ -7497,25 +7498,25 @@ declare const NOOP_SPAN: NoopSpan;
|
|
|
7497
7498
|
declare global {
|
|
7498
7499
|
var __inherited_braintrust_state: BraintrustState;
|
|
7499
7500
|
}
|
|
7500
|
-
declare const loginSchema: z
|
|
7501
|
-
appUrl: z
|
|
7502
|
-
appPublicUrl: z
|
|
7503
|
-
orgName: z
|
|
7504
|
-
apiUrl: z
|
|
7505
|
-
proxyUrl: z
|
|
7506
|
-
loginToken: z
|
|
7507
|
-
orgId: z
|
|
7508
|
-
gitMetadataSettings: z
|
|
7509
|
-
collect: z
|
|
7510
|
-
fields: z
|
|
7511
|
-
}, "strip", z
|
|
7501
|
+
declare const loginSchema: z.ZodObject<{
|
|
7502
|
+
appUrl: z.ZodString;
|
|
7503
|
+
appPublicUrl: z.ZodString;
|
|
7504
|
+
orgName: z.ZodString;
|
|
7505
|
+
apiUrl: z.ZodString;
|
|
7506
|
+
proxyUrl: z.ZodString;
|
|
7507
|
+
loginToken: z.ZodString;
|
|
7508
|
+
orgId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7509
|
+
gitMetadataSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7510
|
+
collect: z.ZodEnum<["all", "none", "some"]>;
|
|
7511
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
|
|
7512
|
+
}, "strip", z.ZodTypeAny, {
|
|
7512
7513
|
collect: "some" | "none" | "all";
|
|
7513
7514
|
fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
|
|
7514
7515
|
}, {
|
|
7515
7516
|
collect: "some" | "none" | "all";
|
|
7516
7517
|
fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
|
|
7517
7518
|
}>>>;
|
|
7518
|
-
}, "strict", z
|
|
7519
|
+
}, "strict", z.ZodTypeAny, {
|
|
7519
7520
|
appUrl: string;
|
|
7520
7521
|
appPublicUrl: string;
|
|
7521
7522
|
orgName: string;
|
|
@@ -7540,7 +7541,7 @@ declare const loginSchema: z$1.ZodObject<{
|
|
|
7540
7541
|
fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
|
|
7541
7542
|
} | null | undefined;
|
|
7542
7543
|
}>;
|
|
7543
|
-
type SerializedBraintrustState = z
|
|
7544
|
+
type SerializedBraintrustState = z.infer<typeof loginSchema>;
|
|
7544
7545
|
declare class BraintrustState {
|
|
7545
7546
|
private loginParams;
|
|
7546
7547
|
id: string;
|
package/dev/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
|
-
import { z as z$1 } from 'zod';
|
|
3
2
|
|
|
4
3
|
declare const TRANSACTION_ID_FIELD = "_xact_id";
|
|
5
4
|
declare const IS_MERGE_FIELD = "_is_merge";
|
|
@@ -7302,6 +7301,8 @@ declare class LazyValue<T> {
|
|
|
7302
7301
|
get hasSucceeded(): boolean;
|
|
7303
7302
|
}
|
|
7304
7303
|
|
|
7304
|
+
/// <reference lib="dom" />
|
|
7305
|
+
|
|
7305
7306
|
interface ContextParentSpanIds {
|
|
7306
7307
|
rootSpanId: string;
|
|
7307
7308
|
spanParents: string[];
|
|
@@ -7497,25 +7498,25 @@ declare const NOOP_SPAN: NoopSpan;
|
|
|
7497
7498
|
declare global {
|
|
7498
7499
|
var __inherited_braintrust_state: BraintrustState;
|
|
7499
7500
|
}
|
|
7500
|
-
declare const loginSchema: z
|
|
7501
|
-
appUrl: z
|
|
7502
|
-
appPublicUrl: z
|
|
7503
|
-
orgName: z
|
|
7504
|
-
apiUrl: z
|
|
7505
|
-
proxyUrl: z
|
|
7506
|
-
loginToken: z
|
|
7507
|
-
orgId: z
|
|
7508
|
-
gitMetadataSettings: z
|
|
7509
|
-
collect: z
|
|
7510
|
-
fields: z
|
|
7511
|
-
}, "strip", z
|
|
7501
|
+
declare const loginSchema: z.ZodObject<{
|
|
7502
|
+
appUrl: z.ZodString;
|
|
7503
|
+
appPublicUrl: z.ZodString;
|
|
7504
|
+
orgName: z.ZodString;
|
|
7505
|
+
apiUrl: z.ZodString;
|
|
7506
|
+
proxyUrl: z.ZodString;
|
|
7507
|
+
loginToken: z.ZodString;
|
|
7508
|
+
orgId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7509
|
+
gitMetadataSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7510
|
+
collect: z.ZodEnum<["all", "none", "some"]>;
|
|
7511
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
|
|
7512
|
+
}, "strip", z.ZodTypeAny, {
|
|
7512
7513
|
collect: "some" | "none" | "all";
|
|
7513
7514
|
fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
|
|
7514
7515
|
}, {
|
|
7515
7516
|
collect: "some" | "none" | "all";
|
|
7516
7517
|
fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
|
|
7517
7518
|
}>>>;
|
|
7518
|
-
}, "strict", z
|
|
7519
|
+
}, "strict", z.ZodTypeAny, {
|
|
7519
7520
|
appUrl: string;
|
|
7520
7521
|
appPublicUrl: string;
|
|
7521
7522
|
orgName: string;
|
|
@@ -7540,7 +7541,7 @@ declare const loginSchema: z$1.ZodObject<{
|
|
|
7540
7541
|
fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
|
|
7541
7542
|
} | null | undefined;
|
|
7542
7543
|
}>;
|
|
7543
|
-
type SerializedBraintrustState = z
|
|
7544
|
+
type SerializedBraintrustState = z.infer<typeof loginSchema>;
|
|
7544
7545
|
declare class BraintrustState {
|
|
7545
7546
|
private loginParams;
|
|
7546
7547
|
id: string;
|